From 1bec991fb4af5a19859d54d8433d73e83decbce6 Mon Sep 17 00:00:00 2001 From: Anukul Pandey Date: Wed, 24 Jul 2024 13:41:58 +0530 Subject: [PATCH 1/5] batch tx --- lib/js/packages/reef-mobile-js/dist/index.js | 153 ++++++++++++------ .../reef-mobile-js/src/jsApi/swapApi.ts | 111 +++++++++++-- 2 files changed, 198 insertions(+), 66 deletions(-) diff --git a/lib/js/packages/reef-mobile-js/dist/index.js b/lib/js/packages/reef-mobile-js/dist/index.js index 991b54f4..e375153a 100644 --- a/lib/js/packages/reef-mobile-js/dist/index.js +++ b/lib/js/packages/reef-mobile-js/dist/index.js @@ -3770,10 +3770,10 @@ Object.freeze(this); } BigNumber20.prototype.fromTwos = function(value) { - return toBigNumber(toBN(this).fromTwos(value)); + return toBigNumber(toBN2(this).fromTwos(value)); }; BigNumber20.prototype.toTwos = function(value) { - return toBigNumber(toBN(this).toTwos(value)); + return toBigNumber(toBN2(this).toTwos(value)); }; BigNumber20.prototype.abs = function() { if (this._hex[0] === "-") { @@ -3782,98 +3782,98 @@ return this; }; BigNumber20.prototype.add = function(other) { - return toBigNumber(toBN(this).add(toBN(other))); + return toBigNumber(toBN2(this).add(toBN2(other))); }; BigNumber20.prototype.sub = function(other) { - return toBigNumber(toBN(this).sub(toBN(other))); + return toBigNumber(toBN2(this).sub(toBN2(other))); }; BigNumber20.prototype.div = function(other) { var o = BigNumber20.from(other); if (o.isZero()) { throwFault("division-by-zero", "div"); } - return toBigNumber(toBN(this).div(toBN(other))); + return toBigNumber(toBN2(this).div(toBN2(other))); }; BigNumber20.prototype.mul = function(other) { - return toBigNumber(toBN(this).mul(toBN(other))); + return toBigNumber(toBN2(this).mul(toBN2(other))); }; BigNumber20.prototype.mod = function(other) { - var value = toBN(other); + var value = toBN2(other); if (value.isNeg()) { throwFault("division-by-zero", "mod"); } - return toBigNumber(toBN(this).umod(value)); + return toBigNumber(toBN2(this).umod(value)); }; BigNumber20.prototype.pow = function(other) { - var value = toBN(other); + var value = toBN2(other); if (value.isNeg()) { throwFault("negative-power", "pow"); } - return toBigNumber(toBN(this).pow(value)); + return toBigNumber(toBN2(this).pow(value)); }; BigNumber20.prototype.and = function(other) { - var value = toBN(other); + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "and"); } - return toBigNumber(toBN(this).and(value)); + return toBigNumber(toBN2(this).and(value)); }; BigNumber20.prototype.or = function(other) { - var value = toBN(other); + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "or"); } - return toBigNumber(toBN(this).or(value)); + return toBigNumber(toBN2(this).or(value)); }; BigNumber20.prototype.xor = function(other) { - var value = toBN(other); + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "xor"); } - return toBigNumber(toBN(this).xor(value)); + return toBigNumber(toBN2(this).xor(value)); }; BigNumber20.prototype.mask = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "mask"); } - return toBigNumber(toBN(this).maskn(value)); + return toBigNumber(toBN2(this).maskn(value)); }; BigNumber20.prototype.shl = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shl"); } - return toBigNumber(toBN(this).shln(value)); + return toBigNumber(toBN2(this).shln(value)); }; BigNumber20.prototype.shr = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shr"); } - return toBigNumber(toBN(this).shrn(value)); + return toBigNumber(toBN2(this).shrn(value)); }; BigNumber20.prototype.eq = function(other) { - return toBN(this).eq(toBN(other)); + return toBN2(this).eq(toBN2(other)); }; BigNumber20.prototype.lt = function(other) { - return toBN(this).lt(toBN(other)); + return toBN2(this).lt(toBN2(other)); }; BigNumber20.prototype.lte = function(other) { - return toBN(this).lte(toBN(other)); + return toBN2(this).lte(toBN2(other)); }; BigNumber20.prototype.gt = function(other) { - return toBN(this).gt(toBN(other)); + return toBN2(this).gt(toBN2(other)); }; BigNumber20.prototype.gte = function(other) { - return toBN(this).gte(toBN(other)); + return toBN2(this).gte(toBN2(other)); }; BigNumber20.prototype.isNegative = function() { return this._hex[0] === "-"; }; BigNumber20.prototype.isZero = function() { - return toBN(this).isZero(); + return toBN2(this).isZero(); }; BigNumber20.prototype.toNumber = function() { try { - return toBN(this).toNumber(); + return toBN2(this).toNumber(); } catch (error) { throwFault("overflow", "toNumber", this.toString()); } @@ -3901,7 +3901,7 @@ logger46.throwError("BigNumber.toString does not accept parameters", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); } } - return toBN(this).toString(10); + return toBN2(this).toString(10); }; BigNumber20.prototype.toHexString = function() { return this._hex; @@ -3996,7 +3996,7 @@ function toBigNumber(value) { return BigNumber19.from(toHex2(value)); } - function toBN(value) { + function toBN2(value) { var hex8 = BigNumber19.from(value).toHexString(); if (hex8[0] === "-") { return new BN7("-" + hex8.substring(3), 16); @@ -26695,7 +26695,7 @@ ${formatDisplay(all, fmt)}`); }); } exports2.handleTxResponse = handleTxResponse; - function toBN(bigNumberis = 0) { + function toBN2(bigNumberis = 0) { if ((0, util_1.isU8a)(bigNumberis)) { return (0, util_1.u8aToBn)(bigNumberis); } @@ -26711,7 +26711,7 @@ ${formatDisplay(all, fmt)}`); } return new bn_js_1.default(bigNumberis); } - exports2.toBN = toBN; + exports2.toBN = toBN2; function dataToString(bytes5) { if ((0, util_1.isBuffer)(bytes5)) { return (0, util_1.u8aToHex)((0, util_1.bufferToU8a)(bytes5)); @@ -26777,7 +26777,7 @@ ${formatDisplay(all, fmt)}`); const resources = yield provider.estimateResources(tx2); const gasLimit = resources.gas.mul(31).div(10); const storageLimit = resources.storage.mul(31).div(10); - const extrinsic = provider.api.tx.evm.call(tx2.to, tx2.data, toBN(tx2.value), toBN(gasLimit), toBN(storageLimit.isNegative() ? 0 : storageLimit)); + const extrinsic = provider.api.tx.evm.call(tx2.to, tx2.data, toBN2(tx2.value), toBN2(gasLimit), toBN2(storageLimit.isNegative() ? 0 : storageLimit)); const method = provider.api.createType("Call", extrinsic); const era = provider.api.registry.createType("ExtrinsicEra", { current: lastHeader.number.toNumber(), @@ -175868,14 +175868,6 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { throw new Error("Unknown address"); } }; - var approveTokenAmount = async (tokenAddress, sellAmount, routerAddress, signer) => { - const tokenContract = await getREEF20Contract(tokenAddress, signer); - if (tokenContract) { - await tokenContract.approve(routerAddress, sellAmount); - return; - } - throw new Error(`Token contract does not exist addr=${tokenAddress}`); - }; var fetchTokenData = (httpClient, searchAddress, provider, factoryAddress, reefPrice) => firstValueFrom( F7e.queryGql$( httpClient, @@ -175917,6 +175909,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { }; // src/jsApi/swapApi.ts + var import_utils4 = __toESM(require_utils3()); var defaultSwapSettings = { deadline: 1, slippageTolerance: 0.8 @@ -175925,6 +175918,30 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { deadline: Number.isNaN(deadline) ? defaultSwapSettings.deadline : deadline, slippageTolerance: Number.isNaN(slippageTolerance) ? defaultSwapSettings.slippageTolerance : slippageTolerance }); + var hexToAscii = (str1) => { + const hex8 = str1.toString(); + let str2 = ""; + for (let n = 0; n < hex8.length; n += 2) { + str2 += String.fromCharCode(parseInt(hex8.substr(n, 2), 16)); + } + return str2; + }; + var captureError2 = (events) => { + for (const event of events) { + const eventCompression = `${event.event.section.toString()}.${event.event.method.toString()}`; + if (eventCompression === "evm.ExecutedFailed") { + const eventData = event.event.data.toJSON(); + let message = eventData[eventData.length - 2]; + if (typeof message === "string" || message instanceof String) { + message = hexToAscii(message.substring(138)); + } else { + message = JSON.stringify(message); + } + return message; + } + } + return void 0; + }; var initApi3 = (signingKey) => { window.swap = { execute: (signerAddress, token1, token2, settings) => { @@ -175955,27 +175972,61 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { ); try { observer.next({ status: "approve-started" }); - await approveTokenAmount( - token1.address, - sellAmount, + const tokenContract = await getREEF20Contract(token1.address, signer); + let approveTransaction = await tokenContract.populateTransaction.approve( x7e.getReefswapNetworkConfig(network2).routerAddress, - signer + sellAmount ); observer.next({ status: "approved" }); - console.log("Token approved"); - console.log("Waiting for confirmation of swap..."); - const tx2 = await swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens( + const tradeTransaction = await swapRouter.populateTransaction.swapExactTokensForTokensSupportingFeeOnTransferTokens( sellAmount, minBuyAmount, [token1.address, token2.address], reefSigner.evmAddress, calculateDeadline(settings.deadline) ); - observer.next({ status: "broadcast", transactionResponse: tx2 }); - const receipt = await tx2.wait(); - console.log("SWAP RESULT=", receipt); - observer.next({ status: "included-in-block", transactionReceipt: receipt }); - observer.next({ status: "finalized", transactionReceipt: receipt }); + const approveResources = await signer.provider.estimateResources(approveTransaction); + const approveExtrinsic = signer.provider.api.tx.evm.call( + approveTransaction.to, + approveTransaction.data, + (0, import_utils4.toBN)(approveTransaction.value || 0), + (0, import_utils4.toBN)(approveResources.gas), + approveResources.storage.lt(0) ? (0, import_utils4.toBN)(0) : (0, import_utils4.toBN)(approveResources.storage) + ); + const tradeExtrinsic = signer.provider.api.tx.evm.call( + tradeTransaction.to, + tradeTransaction.data, + (0, import_utils4.toBN)(tradeTransaction.value || 0), + (0, import_utils4.toBN)(582938 * 2), + (0, import_utils4.toBN)(64 * 2) + ); + const batch = signer.provider.api.tx.utility.batchAll([ + approveExtrinsic, + tradeExtrinsic + ]); + const signAndSend = new Promise((resolve, reject) => { + batch.signAndSend( + reefSigner.address, + { signer: signer.signingKey }, + (status) => { + const err = captureError2(status.events); + if (err) { + reject({ message: err }); + } + if (status.dispatchError) { + reject({ message: status.dispatchError.toString() }); + } + if (status.status.isInBlock) { + resolve(); + } + if (status.status.isFinalized) { + } + } + ); + }); + await signAndSend; + observer.next({ status: "included-in-block", transactionReceipt: "receipt" }); + observer.next({ status: "finalized", transactionReceipt: "receipt" }); observer.complete(); } catch (e) { console.log("ERROR swapping tokens", e.message); diff --git a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts index 5501b26e..cac2a485 100644 --- a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts +++ b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts @@ -4,9 +4,10 @@ import { Contract} from "ethers"; import { ReefswapRouter } from "./abi/ReefswapRouter"; import { Observable, combineLatest, firstValueFrom } from "rxjs"; import { calculateAmount, calculateAmountWithPercentage, calculateDeadline, getInputAmount, getOutputAmount } from "./utils/math"; -import { approveTokenAmount } from './utils/tokenUtils'; +import { approveTokenAmount, getREEF20Contract } from './utils/tokenUtils'; import { getPoolReserves } from './utils/poolUtils'; import Signer from "./background/Signer"; +import { toBN } from '@reef-chain/evm-provider/utils'; interface SwapSettings { deadline: number; @@ -25,6 +26,32 @@ const resolveSettings = ( slippageTolerance: Number.isNaN(slippageTolerance) ? defaultSwapSettings.slippageTolerance : slippageTolerance, }); +const hexToAscii = (str1: string): string => { + const hex = str1.toString(); + let str = ''; + for (let n = 0; n < hex.length; n += 2) { + str += String.fromCharCode(parseInt(hex.substr(n, 2), 16)); + } + return str; +}; + +const captureError = (events: Event[]): string|undefined => { + for (const event of events) { + const eventCompression = `${(event as any).event.section.toString()}.${(event as any).event.method.toString()}`; + if (eventCompression === 'evm.ExecutedFailed') { + const eventData = ((event as any).event.data.toJSON() as any[]); + let message = eventData[eventData.length - 2]; + if (typeof message === 'string' || message instanceof String) { + message = hexToAscii(message.substring(138)); + } else { + message = JSON.stringify(message); + } + return message; + } + } + return undefined; + }; + export const initApi = (signingKey: Signer) => { (window as any).swap = { // Executes a swap @@ -54,6 +81,7 @@ export const initApi = (signingKey: Signer) => { ); const signer = await getAccountSigner(reefSigner.address, provider, signingKey); + const swapRouter = new Contract( nw.getReefswapNetworkConfig(network).routerAddress, ReefswapRouter, @@ -62,31 +90,84 @@ export const initApi = (signingKey: Signer) => { try { observer.next({ status: 'approve-started' }); + // Approve token1 - await approveTokenAmount( - token1.address, - sellAmount, - nw.getReefswapNetworkConfig(network).routerAddress, - signer, - ); + const tokenContract = await getREEF20Contract(token1.address, signer); + let approveTransaction = + await tokenContract + .populateTransaction + .approve( + nw.getReefswapNetworkConfig(network).routerAddress, + sellAmount + ); + observer.next({ status: 'approved' }); - console.log("Token approved"); // Swap - console.log("Waiting for confirmation of swap..."); - const tx = await swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens( + const tradeTransaction = await swapRouter.populateTransaction.swapExactTokensForTokensSupportingFeeOnTransferTokens( sellAmount, minBuyAmount, [token1.address, token2.address], reefSigner.evmAddress, calculateDeadline(settings.deadline) ); - observer.next({ status: 'broadcast', transactionResponse: tx }); + + + const approveResources = await signer.provider.estimateResources(approveTransaction); + + const approveExtrinsic = signer.provider.api.tx.evm.call( + approveTransaction.to, + approveTransaction.data, + toBN(approveTransaction.value || 0), + toBN(approveResources.gas), + approveResources.storage.lt(0) ? toBN(0) : toBN(approveResources.storage), + ); + + const tradeExtrinsic = signer.provider.api.tx.evm.call( + tradeTransaction.to, + tradeTransaction.data, + toBN(tradeTransaction.value || 0), + toBN(582938 * 2), // hardcoded gas estimation, multiply by 2 as a safety margin + toBN(64 * 2), // hardcoded storage estimation, multiply by 2 as a safety margin + ); + + // Batching extrinsics + const batch = signer.provider.api.tx.utility.batchAll([ + approveExtrinsic, + tradeExtrinsic, + ]); + + // Signing and awaiting when data comes in block + const signAndSend = new Promise((resolve, reject): void => { + batch.signAndSend( + reefSigner.address, + { signer: signer.signingKey }, + (status: any) => { + const err = captureError(status.events); + if (err) { + reject({ message: err }); + } + if (status.dispatchError) { + reject({ message: status.dispatchError.toString() }); + } + if (status.status.isInBlock) { + resolve(); + } + // If you want to await until block is finalized use below if + if (status.status.isFinalized) { + + } + }, + ); + }); + await signAndSend; + + // observer.next({ status: 'broadcast', transactionResponse: tx }); - const receipt = await tx.wait(); - console.log("SWAP RESULT=", receipt); - observer.next({ status: 'included-in-block', transactionReceipt: receipt }); - observer.next({ status: 'finalized', transactionReceipt: receipt }); + // const receipt = await tx.wait(); + // console.log("SWAP RESULT=", receipt); + observer.next({ status: 'included-in-block', transactionReceipt: "receipt" }); + observer.next({ status: 'finalized', transactionReceipt: "receipt" }); observer.complete(); } catch (e) { From 52e59f133b770bdff626b614b983cc2d9525a499 Mon Sep 17 00:00:00 2001 From: Anukul Pandey Date: Thu, 1 Aug 2024 12:52:43 +0530 Subject: [PATCH 2/5] fix: signer --- lib/js/packages/reef-mobile-js/dist/index.js | 62119 +++++++++++++++- .../reef-mobile-js/src/jsApi/swapApi.ts | 67 +- 2 files changed, 59812 insertions(+), 2374 deletions(-) diff --git a/lib/js/packages/reef-mobile-js/dist/index.js b/lib/js/packages/reef-mobile-js/dist/index.js index e375153a..b70afda4 100644 --- a/lib/js/packages/reef-mobile-js/dist/index.js +++ b/lib/js/packages/reef-mobile-js/dist/index.js @@ -3080,15 +3080,15 @@ ErrorCode2["ACTION_REJECTED"] = "ACTION_REJECTED"; })(ErrorCode = exports2.ErrorCode || (exports2.ErrorCode = {})); var HEX = "0123456789abcdef"; - var Logger46 = function() { - function Logger47(version27) { + var Logger42 = function() { + function Logger43(version23) { Object.defineProperty(this, "version", { enumerable: true, - value: version27, + value: version23, writable: false }); } - Logger47.prototype._log = function(logLevel, args) { + Logger43.prototype._log = function(logLevel, args) { var level = logLevel.toLowerCase(); if (LogLevels[level] == null) { this.throwArgumentError("invalid log level name", "logLevel", logLevel); @@ -3098,33 +3098,33 @@ } console.log.apply(console, args); }; - Logger47.prototype.debug = function() { + Logger43.prototype.debug = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.DEBUG, args); + this._log(Logger43.levels.DEBUG, args); }; - Logger47.prototype.info = function() { + Logger43.prototype.info = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.INFO, args); + this._log(Logger43.levels.INFO, args); }; - Logger47.prototype.warn = function() { + Logger43.prototype.warn = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.WARNING, args); + this._log(Logger43.levels.WARNING, args); }; - Logger47.prototype.makeError = function(message, code, params) { + Logger43.prototype.makeError = function(message, code, params) { if (_censorErrors) { return this.makeError("censored error", code, {}); } if (!code) { - code = Logger47.errors.UNKNOWN_ERROR; + code = Logger43.errors.UNKNOWN_ERROR; } if (!params) { params = {}; @@ -3195,39 +3195,39 @@ }); return error; }; - Logger47.prototype.throwError = function(message, code, params) { + Logger43.prototype.throwError = function(message, code, params) { throw this.makeError(message, code, params); }; - Logger47.prototype.throwArgumentError = function(message, name6, value) { - return this.throwError(message, Logger47.errors.INVALID_ARGUMENT, { + Logger43.prototype.throwArgumentError = function(message, name6, value) { + return this.throwError(message, Logger43.errors.INVALID_ARGUMENT, { argument: name6, value }); }; - Logger47.prototype.assert = function(condition, message, code, params) { + Logger43.prototype.assert = function(condition, message, code, params) { if (!!condition) { return; } this.throwError(message, code, params); }; - Logger47.prototype.assertArgument = function(condition, message, name6, value) { + Logger43.prototype.assertArgument = function(condition, message, name6, value) { if (!!condition) { return; } this.throwArgumentError(message, name6, value); }; - Logger47.prototype.checkNormalize = function(message) { + Logger43.prototype.checkNormalize = function(message) { if (message == null) { message = "platform missing String.prototype.normalize"; } if (_normalizeError) { - this.throwError("platform missing String.prototype.normalize", Logger47.errors.UNSUPPORTED_OPERATION, { + this.throwError("platform missing String.prototype.normalize", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", form: _normalizeError }); } }; - Logger47.prototype.checkSafeUint53 = function(value, message) { + Logger43.prototype.checkSafeUint53 = function(value, message) { if (typeof value !== "number") { return; } @@ -3235,60 +3235,60 @@ message = "value not safe"; } if (value < 0 || value >= 9007199254740991) { - this.throwError(message, Logger47.errors.NUMERIC_FAULT, { + this.throwError(message, Logger43.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "out-of-safe-range", value }); } if (value % 1) { - this.throwError(message, Logger47.errors.NUMERIC_FAULT, { + this.throwError(message, Logger43.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "non-integer", value }); } }; - Logger47.prototype.checkArgumentCount = function(count, expectedCount, message) { + Logger43.prototype.checkArgumentCount = function(count, expectedCount, message) { if (message) { message = ": " + message; } else { message = ""; } if (count < expectedCount) { - this.throwError("missing argument" + message, Logger47.errors.MISSING_ARGUMENT, { + this.throwError("missing argument" + message, Logger43.errors.MISSING_ARGUMENT, { count, expectedCount }); } if (count > expectedCount) { - this.throwError("too many arguments" + message, Logger47.errors.UNEXPECTED_ARGUMENT, { + this.throwError("too many arguments" + message, Logger43.errors.UNEXPECTED_ARGUMENT, { count, expectedCount }); } }; - Logger47.prototype.checkNew = function(target, kind) { + Logger43.prototype.checkNew = function(target, kind) { if (target === Object || target == null) { - this.throwError("missing new", Logger47.errors.MISSING_NEW, { name: kind.name }); + this.throwError("missing new", Logger43.errors.MISSING_NEW, { name: kind.name }); } }; - Logger47.prototype.checkAbstract = function(target, kind) { + Logger43.prototype.checkAbstract = function(target, kind) { if (target === kind) { - this.throwError("cannot instantiate abstract class " + JSON.stringify(kind.name) + " directly; use a sub-class", Logger47.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: "new" }); + this.throwError("cannot instantiate abstract class " + JSON.stringify(kind.name) + " directly; use a sub-class", Logger43.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: "new" }); } else if (target === Object || target == null) { - this.throwError("missing new", Logger47.errors.MISSING_NEW, { name: kind.name }); + this.throwError("missing new", Logger43.errors.MISSING_NEW, { name: kind.name }); } }; - Logger47.globalLogger = function() { + Logger43.globalLogger = function() { if (!_globalLogger) { - _globalLogger = new Logger47(_version_1.version); + _globalLogger = new Logger43(_version_1.version); } return _globalLogger; }; - Logger47.setCensorship = function(censorship, permanent) { + Logger43.setCensorship = function(censorship, permanent) { if (!censorship && permanent) { - this.globalLogger().throwError("cannot permanently disable censorship", Logger47.errors.UNSUPPORTED_OPERATION, { + this.globalLogger().throwError("cannot permanently disable censorship", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } @@ -3296,29 +3296,29 @@ if (!censorship) { return; } - this.globalLogger().throwError("error censorship permanent", Logger47.errors.UNSUPPORTED_OPERATION, { + this.globalLogger().throwError("error censorship permanent", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } _censorErrors = !!censorship; _permanentCensorErrors = !!permanent; }; - Logger47.setLogLevel = function(logLevel) { + Logger43.setLogLevel = function(logLevel) { var level = LogLevels[logLevel.toLowerCase()]; if (level == null) { - Logger47.globalLogger().warn("invalid log level - " + logLevel); + Logger43.globalLogger().warn("invalid log level - " + logLevel); return; } _logLevel = level; }; - Logger47.from = function(version27) { - return new Logger47(version27); + Logger43.from = function(version23) { + return new Logger43(version23); }; - Logger47.errors = ErrorCode; - Logger47.levels = LogLevel2; - return Logger47; + Logger43.errors = ErrorCode; + Logger43.levels = LogLevel2; + return Logger43; }(); - exports2.Logger = Logger46; + exports2.Logger = Logger42; } }); @@ -3340,7 +3340,7 @@ exports2.joinSignature = exports2.splitSignature = exports2.hexZeroPad = exports2.hexStripZeros = exports2.hexValue = exports2.hexConcat = exports2.hexDataSlice = exports2.hexDataLength = exports2.hexlify = exports2.isHexString = exports2.zeroPad = exports2.stripZeros = exports2.concat = exports2.arrayify = exports2.isBytes = exports2.isBytesLike = void 0; var logger_1 = require_lib(); var _version_1 = require_version2(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); function isHexable(value) { return !!value.toHexString; } @@ -3354,10 +3354,10 @@ }; return array; } - function isBytesLike5(value) { - return isHexString12(value) && !(value.length % 2) || isBytes8(value); + function isBytesLike4(value) { + return isHexString11(value) && !(value.length % 2) || isBytes8(value); } - exports2.isBytesLike = isBytesLike5; + exports2.isBytesLike = isBytesLike4; function isInteger(value) { return typeof value === "number" && value == value && value % 1 === 0; } @@ -3383,12 +3383,12 @@ return true; } exports2.isBytes = isBytes8; - function arrayify27(value, options) { + function arrayify24(value, options) { if (!options) { options = {}; } if (typeof value === "number") { - logger46.checkSafeUint53(value, "invalid arrayify value"); + logger42.checkSafeUint53(value, "invalid arrayify value"); var result = []; while (value) { result.unshift(value & 255); @@ -3405,7 +3405,7 @@ if (isHexable(value)) { value = value.toHexString(); } - if (isHexString12(value)) { + if (isHexString11(value)) { var hex8 = value.substring(2); if (hex8.length % 2) { if (options.hexPad === "left") { @@ -3413,7 +3413,7 @@ } else if (options.hexPad === "right") { hex8 += "0"; } else { - logger46.throwArgumentError("hex data is odd-length", "value", value); + logger42.throwArgumentError("hex data is odd-length", "value", value); } } var result = []; @@ -3425,12 +3425,12 @@ if (isBytes8(value)) { return addSlice(new Uint8Array(value)); } - return logger46.throwArgumentError("invalid arrayify value", "value", value); + return logger42.throwArgumentError("invalid arrayify value", "value", value); } - exports2.arrayify = arrayify27; - function concat13(items) { + exports2.arrayify = arrayify24; + function concat12(items) { var objects = items.map(function(item) { - return arrayify27(item); + return arrayify24(item); }); var length = objects.reduce(function(accum, item) { return accum + item.length; @@ -3442,9 +3442,9 @@ }, 0); return addSlice(result); } - exports2.concat = concat13; - function stripZeros4(value) { - var result = arrayify27(value); + exports2.concat = concat12; + function stripZeros3(value) { + var result = arrayify24(value); if (result.length === 0) { return result; } @@ -3457,18 +3457,18 @@ } return result; } - exports2.stripZeros = stripZeros4; + exports2.stripZeros = stripZeros3; function zeroPad4(value, length) { - value = arrayify27(value); + value = arrayify24(value); if (value.length > length) { - logger46.throwArgumentError("value out of range", "value", arguments[0]); + logger42.throwArgumentError("value out of range", "value", arguments[0]); } var result = new Uint8Array(length); result.set(value, length - value.length); return addSlice(result); } exports2.zeroPad = zeroPad4; - function isHexString12(value, length) { + function isHexString11(value, length) { if (typeof value !== "string" || !value.match(/^0x[0-9A-Fa-f]*$/)) { return false; } @@ -3477,14 +3477,14 @@ } return true; } - exports2.isHexString = isHexString12; + exports2.isHexString = isHexString11; var HexCharacters = "0123456789abcdef"; - function hexlify21(value, options) { + function hexlify20(value, options) { if (!options) { options = {}; } if (typeof value === "number") { - logger46.checkSafeUint53(value, "invalid hexlify value"); + logger42.checkSafeUint53(value, "invalid hexlify value"); var hex8 = ""; while (value) { hex8 = HexCharacters[value & 15] + hex8; @@ -3511,14 +3511,14 @@ if (isHexable(value)) { return value.toHexString(); } - if (isHexString12(value)) { + if (isHexString11(value)) { if (value.length % 2) { if (options.hexPad === "left") { value = "0x0" + value.substring(2); } else if (options.hexPad === "right") { value += "0"; } else { - logger46.throwArgumentError("hex data is odd-length", "value", value); + logger42.throwArgumentError("hex data is odd-length", "value", value); } } return value.toLowerCase(); @@ -3531,23 +3531,23 @@ } return result; } - return logger46.throwArgumentError("invalid hexlify value", "value", value); + return logger42.throwArgumentError("invalid hexlify value", "value", value); } - exports2.hexlify = hexlify21; - function hexDataLength7(data) { + exports2.hexlify = hexlify20; + function hexDataLength6(data) { if (typeof data !== "string") { - data = hexlify21(data); - } else if (!isHexString12(data) || data.length % 2) { + data = hexlify20(data); + } else if (!isHexString11(data) || data.length % 2) { return null; } return (data.length - 2) / 2; } - exports2.hexDataLength = hexDataLength7; - function hexDataSlice9(data, offset, endOffset) { + exports2.hexDataLength = hexDataLength6; + function hexDataSlice8(data, offset, endOffset) { if (typeof data !== "string") { - data = hexlify21(data); - } else if (!isHexString12(data) || data.length % 2) { - logger46.throwArgumentError("invalid hexData", "value", data); + data = hexlify20(data); + } else if (!isHexString11(data) || data.length % 2) { + logger42.throwArgumentError("invalid hexData", "value", data); } offset = 2 + 2 * offset; if (endOffset != null) { @@ -3555,17 +3555,17 @@ } return "0x" + data.substring(offset); } - exports2.hexDataSlice = hexDataSlice9; + exports2.hexDataSlice = hexDataSlice8; function hexConcat6(items) { var result = "0x"; items.forEach(function(item) { - result += hexlify21(item).substring(2); + result += hexlify20(item).substring(2); }); return result; } exports2.hexConcat = hexConcat6; function hexValue6(value) { - var trimmed = hexStripZeros2(hexlify21(value, { hexPad: "left" })); + var trimmed = hexStripZeros2(hexlify20(value, { hexPad: "left" })); if (trimmed === "0x") { return "0x0"; } @@ -3574,10 +3574,10 @@ exports2.hexValue = hexValue6; function hexStripZeros2(value) { if (typeof value !== "string") { - value = hexlify21(value); + value = hexlify20(value); } - if (!isHexString12(value)) { - logger46.throwArgumentError("invalid hex string", "value", value); + if (!isHexString11(value)) { + logger42.throwArgumentError("invalid hex string", "value", value); } value = value.substring(2); var offset = 0; @@ -3589,12 +3589,12 @@ exports2.hexStripZeros = hexStripZeros2; function hexZeroPad11(value, length) { if (typeof value !== "string") { - value = hexlify21(value); - } else if (!isHexString12(value)) { - logger46.throwArgumentError("invalid hex string", "value", value); + value = hexlify20(value); + } else if (!isHexString11(value)) { + logger42.throwArgumentError("invalid hex string", "value", value); } if (value.length > 2 * length + 2) { - logger46.throwArgumentError("value out of range", "value", arguments[1]); + logger42.throwArgumentError("value out of range", "value", arguments[1]); } while (value.length < 2 * length + 2) { value = "0x0" + value.substring(2); @@ -3612,32 +3612,32 @@ yParityAndS: "0x", compact: "0x" }; - if (isBytesLike5(signature2)) { - var bytes5 = arrayify27(signature2); + if (isBytesLike4(signature2)) { + var bytes5 = arrayify24(signature2); if (bytes5.length === 64) { result.v = 27 + (bytes5[32] >> 7); bytes5[32] &= 127; - result.r = hexlify21(bytes5.slice(0, 32)); - result.s = hexlify21(bytes5.slice(32, 64)); + result.r = hexlify20(bytes5.slice(0, 32)); + result.s = hexlify20(bytes5.slice(32, 64)); } else if (bytes5.length === 65) { - result.r = hexlify21(bytes5.slice(0, 32)); - result.s = hexlify21(bytes5.slice(32, 64)); + result.r = hexlify20(bytes5.slice(0, 32)); + result.s = hexlify20(bytes5.slice(32, 64)); result.v = bytes5[64]; } else { - logger46.throwArgumentError("invalid signature string", "signature", signature2); + logger42.throwArgumentError("invalid signature string", "signature", signature2); } if (result.v < 27) { if (result.v === 0 || result.v === 1) { result.v += 27; } else { - logger46.throwArgumentError("signature invalid v byte", "signature", signature2); + logger42.throwArgumentError("signature invalid v byte", "signature", signature2); } } result.recoveryParam = 1 - result.v % 2; if (result.recoveryParam) { bytes5[32] |= 128; } - result._vs = hexlify21(bytes5.slice(32, 64)); + result._vs = hexlify20(bytes5.slice(32, 64)); } else { result.r = signature2.r; result.s = signature2.s; @@ -3645,25 +3645,25 @@ result.recoveryParam = signature2.recoveryParam; result._vs = signature2._vs; if (result._vs != null) { - var vs_1 = zeroPad4(arrayify27(result._vs), 32); - result._vs = hexlify21(vs_1); + var vs_1 = zeroPad4(arrayify24(result._vs), 32); + result._vs = hexlify20(vs_1); var recoveryParam = vs_1[0] >= 128 ? 1 : 0; if (result.recoveryParam == null) { result.recoveryParam = recoveryParam; } else if (result.recoveryParam !== recoveryParam) { - logger46.throwArgumentError("signature recoveryParam mismatch _vs", "signature", signature2); + logger42.throwArgumentError("signature recoveryParam mismatch _vs", "signature", signature2); } vs_1[0] &= 127; - var s = hexlify21(vs_1); + var s = hexlify20(vs_1); if (result.s == null) { result.s = s; } else if (result.s !== s) { - logger46.throwArgumentError("signature v mismatch _vs", "signature", signature2); + logger42.throwArgumentError("signature v mismatch _vs", "signature", signature2); } } if (result.recoveryParam == null) { if (result.v == null) { - logger46.throwArgumentError("signature missing v and recoveryParam", "signature", signature2); + logger42.throwArgumentError("signature missing v and recoveryParam", "signature", signature2); } else if (result.v === 0 || result.v === 1) { result.recoveryParam = result.v; } else { @@ -3675,38 +3675,38 @@ } else { var recId = result.v === 0 || result.v === 1 ? result.v : 1 - result.v % 2; if (result.recoveryParam !== recId) { - logger46.throwArgumentError("signature recoveryParam mismatch v", "signature", signature2); + logger42.throwArgumentError("signature recoveryParam mismatch v", "signature", signature2); } } } - if (result.r == null || !isHexString12(result.r)) { - logger46.throwArgumentError("signature missing or invalid r", "signature", signature2); + if (result.r == null || !isHexString11(result.r)) { + logger42.throwArgumentError("signature missing or invalid r", "signature", signature2); } else { result.r = hexZeroPad11(result.r, 32); } - if (result.s == null || !isHexString12(result.s)) { - logger46.throwArgumentError("signature missing or invalid s", "signature", signature2); + if (result.s == null || !isHexString11(result.s)) { + logger42.throwArgumentError("signature missing or invalid s", "signature", signature2); } else { result.s = hexZeroPad11(result.s, 32); } - var vs2 = arrayify27(result.s); + var vs2 = arrayify24(result.s); if (vs2[0] >= 128) { - logger46.throwArgumentError("signature s out of range", "signature", signature2); + logger42.throwArgumentError("signature s out of range", "signature", signature2); } if (result.recoveryParam) { vs2[0] |= 128; } - var _vs = hexlify21(vs2); + var _vs = hexlify20(vs2); if (result._vs) { - if (!isHexString12(result._vs)) { - logger46.throwArgumentError("signature invalid _vs", "signature", signature2); + if (!isHexString11(result._vs)) { + logger42.throwArgumentError("signature invalid _vs", "signature", signature2); } result._vs = hexZeroPad11(result._vs, 32); } if (result._vs == null) { result._vs = _vs; } else if (result._vs !== _vs) { - logger46.throwArgumentError("signature _vs mismatch v and s", "signature", signature2); + logger42.throwArgumentError("signature _vs mismatch v and s", "signature", signature2); } } result.yParityAndS = result._vs; @@ -3716,7 +3716,7 @@ exports2.splitSignature = splitSignature4; function joinSignature3(signature2) { signature2 = splitSignature4(signature2); - return hexlify21(concat13([ + return hexlify20(concat12([ signature2.r, signature2.s, signature2.recoveryParam ? "0x1c" : "0x1b" @@ -3750,18 +3750,18 @@ var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version3(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var _constructorGuard4 = {}; var MAX_SAFE = 9007199254740991; function isBigNumberish(value) { - return value != null && (BigNumber19.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || (0, bytes_1.isHexString)(value) || typeof value === "bigint" || (0, bytes_1.isBytes)(value)); + return value != null && (BigNumber18.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || (0, bytes_1.isHexString)(value) || typeof value === "bigint" || (0, bytes_1.isBytes)(value)); } exports2.isBigNumberish = isBigNumberish; var _warnedToStringRadix = false; - var BigNumber19 = function() { - function BigNumber20(constructorGuard, hex8) { + var BigNumber18 = function() { + function BigNumber19(constructorGuard, hex8) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot call constructor directly; use BigNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot call constructor directly; use BigNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }); } @@ -3769,109 +3769,109 @@ this._isBigNumber = true; Object.freeze(this); } - BigNumber20.prototype.fromTwos = function(value) { + BigNumber19.prototype.fromTwos = function(value) { return toBigNumber(toBN2(this).fromTwos(value)); }; - BigNumber20.prototype.toTwos = function(value) { + BigNumber19.prototype.toTwos = function(value) { return toBigNumber(toBN2(this).toTwos(value)); }; - BigNumber20.prototype.abs = function() { + BigNumber19.prototype.abs = function() { if (this._hex[0] === "-") { - return BigNumber20.from(this._hex.substring(1)); + return BigNumber19.from(this._hex.substring(1)); } return this; }; - BigNumber20.prototype.add = function(other) { + BigNumber19.prototype.add = function(other) { return toBigNumber(toBN2(this).add(toBN2(other))); }; - BigNumber20.prototype.sub = function(other) { + BigNumber19.prototype.sub = function(other) { return toBigNumber(toBN2(this).sub(toBN2(other))); }; - BigNumber20.prototype.div = function(other) { - var o = BigNumber20.from(other); + BigNumber19.prototype.div = function(other) { + var o = BigNumber19.from(other); if (o.isZero()) { throwFault("division-by-zero", "div"); } return toBigNumber(toBN2(this).div(toBN2(other))); }; - BigNumber20.prototype.mul = function(other) { + BigNumber19.prototype.mul = function(other) { return toBigNumber(toBN2(this).mul(toBN2(other))); }; - BigNumber20.prototype.mod = function(other) { + BigNumber19.prototype.mod = function(other) { var value = toBN2(other); if (value.isNeg()) { throwFault("division-by-zero", "mod"); } return toBigNumber(toBN2(this).umod(value)); }; - BigNumber20.prototype.pow = function(other) { + BigNumber19.prototype.pow = function(other) { var value = toBN2(other); if (value.isNeg()) { throwFault("negative-power", "pow"); } return toBigNumber(toBN2(this).pow(value)); }; - BigNumber20.prototype.and = function(other) { + BigNumber19.prototype.and = function(other) { var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "and"); } return toBigNumber(toBN2(this).and(value)); }; - BigNumber20.prototype.or = function(other) { + BigNumber19.prototype.or = function(other) { var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "or"); } return toBigNumber(toBN2(this).or(value)); }; - BigNumber20.prototype.xor = function(other) { + BigNumber19.prototype.xor = function(other) { var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "xor"); } return toBigNumber(toBN2(this).xor(value)); }; - BigNumber20.prototype.mask = function(value) { + BigNumber19.prototype.mask = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "mask"); } return toBigNumber(toBN2(this).maskn(value)); }; - BigNumber20.prototype.shl = function(value) { + BigNumber19.prototype.shl = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shl"); } return toBigNumber(toBN2(this).shln(value)); }; - BigNumber20.prototype.shr = function(value) { + BigNumber19.prototype.shr = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shr"); } return toBigNumber(toBN2(this).shrn(value)); }; - BigNumber20.prototype.eq = function(other) { + BigNumber19.prototype.eq = function(other) { return toBN2(this).eq(toBN2(other)); }; - BigNumber20.prototype.lt = function(other) { + BigNumber19.prototype.lt = function(other) { return toBN2(this).lt(toBN2(other)); }; - BigNumber20.prototype.lte = function(other) { + BigNumber19.prototype.lte = function(other) { return toBN2(this).lte(toBN2(other)); }; - BigNumber20.prototype.gt = function(other) { + BigNumber19.prototype.gt = function(other) { return toBN2(this).gt(toBN2(other)); }; - BigNumber20.prototype.gte = function(other) { + BigNumber19.prototype.gte = function(other) { return toBN2(this).gte(toBN2(other)); }; - BigNumber20.prototype.isNegative = function() { + BigNumber19.prototype.isNegative = function() { return this._hex[0] === "-"; }; - BigNumber20.prototype.isZero = function() { + BigNumber19.prototype.isZero = function() { return toBN2(this).isZero(); }; - BigNumber20.prototype.toNumber = function() { + BigNumber19.prototype.toNumber = function() { try { return toBN2(this).toNumber(); } catch (error) { @@ -3879,48 +3879,48 @@ } return null; }; - BigNumber20.prototype.toBigInt = function() { + BigNumber19.prototype.toBigInt = function() { try { return BigInt(this.toString()); } catch (e) { } - return logger46.throwError("this platform does not support BigInt", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + return logger42.throwError("this platform does not support BigInt", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); }; - BigNumber20.prototype.toString = function() { + BigNumber19.prototype.toString = function() { if (arguments.length > 0) { if (arguments[0] === 10) { if (!_warnedToStringRadix) { _warnedToStringRadix = true; - logger46.warn("BigNumber.toString does not accept any parameters; base-10 is assumed"); + logger42.warn("BigNumber.toString does not accept any parameters; base-10 is assumed"); } } else if (arguments[0] === 16) { - logger46.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); + logger42.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); } else { - logger46.throwError("BigNumber.toString does not accept parameters", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); + logger42.throwError("BigNumber.toString does not accept parameters", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); } } return toBN2(this).toString(10); }; - BigNumber20.prototype.toHexString = function() { + BigNumber19.prototype.toHexString = function() { return this._hex; }; - BigNumber20.prototype.toJSON = function(key2) { + BigNumber19.prototype.toJSON = function(key2) { return { type: "BigNumber", hex: this.toHexString() }; }; - BigNumber20.from = function(value) { - if (value instanceof BigNumber20) { + BigNumber19.from = function(value) { + if (value instanceof BigNumber19) { return value; } if (typeof value === "string") { if (value.match(/^-?0x[0-9a-f]+$/i)) { - return new BigNumber20(_constructorGuard4, toHex2(value)); + return new BigNumber19(_constructorGuard4, toHex2(value)); } if (value.match(/^-?[0-9]+$/)) { - return new BigNumber20(_constructorGuard4, toHex2(new BN7(value))); + return new BigNumber19(_constructorGuard4, toHex2(new BN7(value))); } - return logger46.throwArgumentError("invalid BigNumber string", "value", value); + return logger42.throwArgumentError("invalid BigNumber string", "value", value); } if (typeof value === "number") { if (value % 1) { @@ -3929,20 +3929,20 @@ if (value >= MAX_SAFE || value <= -MAX_SAFE) { throwFault("overflow", "BigNumber.from", value); } - return BigNumber20.from(String(value)); + return BigNumber19.from(String(value)); } var anyValue = value; if (typeof anyValue === "bigint") { - return BigNumber20.from(anyValue.toString()); + return BigNumber19.from(anyValue.toString()); } if ((0, bytes_1.isBytes)(anyValue)) { - return BigNumber20.from((0, bytes_1.hexlify)(anyValue)); + return BigNumber19.from((0, bytes_1.hexlify)(anyValue)); } if (anyValue) { if (anyValue.toHexString) { var hex8 = anyValue.toHexString(); if (typeof hex8 === "string") { - return BigNumber20.from(hex8); + return BigNumber19.from(hex8); } } else { var hex8 = anyValue._hex; @@ -3951,19 +3951,19 @@ } if (typeof hex8 === "string") { if ((0, bytes_1.isHexString)(hex8) || hex8[0] === "-" && (0, bytes_1.isHexString)(hex8.substring(1))) { - return BigNumber20.from(hex8); + return BigNumber19.from(hex8); } } } } - return logger46.throwArgumentError("invalid BigNumber value", "value", value); + return logger42.throwArgumentError("invalid BigNumber value", "value", value); }; - BigNumber20.isBigNumber = function(value) { + BigNumber19.isBigNumber = function(value) { return !!(value && value._isBigNumber); }; - return BigNumber20; + return BigNumber19; }(); - exports2.BigNumber = BigNumber19; + exports2.BigNumber = BigNumber18; function toHex2(value) { if (typeof value !== "string") { return toHex2(value.toString(16)); @@ -3971,7 +3971,7 @@ if (value[0] === "-") { value = value.substring(1); if (value[0] === "-") { - logger46.throwArgumentError("invalid hex", "value", value); + logger42.throwArgumentError("invalid hex", "value", value); } value = toHex2(value); if (value === "0x00") { @@ -3994,10 +3994,10 @@ return value; } function toBigNumber(value) { - return BigNumber19.from(toHex2(value)); + return BigNumber18.from(toHex2(value)); } function toBN2(value) { - var hex8 = BigNumber19.from(value).toHexString(); + var hex8 = BigNumber18.from(value).toHexString(); if (hex8[0] === "-") { return new BN7("-" + hex8.substring(3), 16); } @@ -4008,16 +4008,16 @@ if (value != null) { params.value = value; } - return logger46.throwError(fault, logger_1.Logger.errors.NUMERIC_FAULT, params); + return logger42.throwError(fault, logger_1.Logger.errors.NUMERIC_FAULT, params); } - function _base36To162(value) { + function _base36To16(value) { return new BN7(value, 36).toString(16); } - exports2._base36To16 = _base36To162; - function _base16To362(value) { + exports2._base36To16 = _base36To16; + function _base16To36(value) { return new BN7(value, 16).toString(36); } - exports2._base16To36 = _base16To362; + exports2._base16To36 = _base16To36; } }); @@ -4030,7 +4030,7 @@ var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version3(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var bignumber_1 = require_bignumber(); var _constructorGuard4 = {}; var Zero4 = bignumber_1.BigNumber.from(0); @@ -4040,7 +4040,7 @@ if (value !== void 0) { params.value = value; } - return logger46.throwError(message, logger_1.Logger.errors.NUMERIC_FAULT, params); + return logger42.throwError(message, logger_1.Logger.errors.NUMERIC_FAULT, params); } var zeros = "0"; while (zeros.length < 256) { @@ -4056,7 +4056,7 @@ if (typeof decimals === "number" && decimals >= 0 && decimals <= 256 && !(decimals % 1)) { return "1" + zeros.substring(0, decimals); } - return logger46.throwArgumentError("invalid decimal size", "decimals", decimals); + return logger42.throwArgumentError("invalid decimal size", "decimals", decimals); } function formatFixed2(value, decimals) { if (decimals == null) { @@ -4091,18 +4091,18 @@ } var multiplier = getMultiplier(decimals); if (typeof value !== "string" || !value.match(/^-?[0-9.]+$/)) { - logger46.throwArgumentError("invalid decimal value", "value", value); + logger42.throwArgumentError("invalid decimal value", "value", value); } var negative = value.substring(0, 1) === "-"; if (negative) { value = value.substring(1); } if (value === ".") { - logger46.throwArgumentError("missing value", "value", value); + logger42.throwArgumentError("missing value", "value", value); } var comps = value.split("."); if (comps.length > 2) { - logger46.throwArgumentError("too many decimal points", "value", value); + logger42.throwArgumentError("too many decimal points", "value", value); } var whole = comps[0], fraction = comps[1]; if (!whole) { @@ -4135,7 +4135,7 @@ var FixedFormat = function() { function FixedFormat2(constructorGuard, signed2, width, decimals) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot use FixedFormat constructor; use FixedFormat.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot use FixedFormat constructor; use FixedFormat.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }); } @@ -4163,7 +4163,7 @@ } else { var match = value.match(/^(u?)fixed([0-9]+)x([0-9]+)$/); if (!match) { - logger46.throwArgumentError("invalid fixed format", "format", value); + logger42.throwArgumentError("invalid fixed format", "format", value); } signed2 = match[1] !== "u"; width = parseInt(match[2]); @@ -4175,7 +4175,7 @@ return defaultValue; } if (typeof value[key2] !== type) { - logger46.throwArgumentError("invalid fixed format (" + key2 + " not " + type + ")", "format." + key2, value[key2]); + logger42.throwArgumentError("invalid fixed format (" + key2 + " not " + type + ")", "format." + key2, value[key2]); } return value[key2]; }; @@ -4184,10 +4184,10 @@ decimals = check("decimals", "number", decimals); } if (width % 8) { - logger46.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", width); + logger42.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", width); } if (decimals > 80) { - logger46.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", decimals); + logger42.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", decimals); } return new FixedFormat2(_constructorGuard4, signed2, width, decimals); }; @@ -4197,7 +4197,7 @@ var FixedNumber2 = function() { function FixedNumber3(constructorGuard, hex8, value, format) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot use FixedNumber constructor; use FixedNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot use FixedNumber constructor; use FixedNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }); } @@ -4209,7 +4209,7 @@ } FixedNumber3.prototype._checkFormat = function(other) { if (this.format.name !== other.format.name) { - logger46.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", other); + logger42.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", other); } }; FixedNumber3.prototype.addUnsafe = function(other) { @@ -4269,7 +4269,7 @@ comps.push("0"); } if (decimals < 0 || decimals > 80 || decimals % 1) { - logger46.throwArgumentError("invalid decimal count", "decimals", decimals); + logger42.throwArgumentError("invalid decimal count", "decimals", decimals); } if (comps[1].length <= decimals) { return this; @@ -4292,7 +4292,7 @@ return this._hex; } if (width % 8) { - logger46.throwArgumentError("invalid byte width", "width", width); + logger42.throwArgumentError("invalid byte width", "width", width); } var hex8 = bignumber_1.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(width).toHexString(); return (0, bytes_1.hexZeroPad)(hex8, width / 8); @@ -4365,7 +4365,7 @@ throw error; } } - return logger46.throwArgumentError("invalid FixedNumber value", "value", value); + return logger42.throwArgumentError("invalid FixedNumber value", "value", value); }; FixedNumber3.isFixedNumber = function(value) { return !!(value && value._isFixedNumber); @@ -4424,7 +4424,7 @@ var __propKey; var __setFunctionName; var __metadata; - var __awaiter18; + var __awaiter16; var __generator2; var __exportStar; var __values2; @@ -4584,7 +4584,7 @@ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); }; - __awaiter18 = function(thisArg, _arguments, P, generator) { + __awaiter16 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -4966,7 +4966,7 @@ exporter("__propKey", __propKey); exporter("__setFunctionName", __setFunctionName); exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter18); + exporter("__awaiter", __awaiter16); exporter("__generator", __generator2); exporter("__exportStar", __exportStar); exporter("__createBinding", __createBinding); @@ -5184,13 +5184,13 @@ } return all.map((d) => ` ${fmt(d.version.padEnd(max2), d).join(" ")}`).join("\n"); } - function formatInfo(version27, { name: name6 }) { + function formatInfo(version23, { name: name6 }) { return [ - version27, + version23, name6 ]; } - function formatVersion(version27, { path, type }) { + function formatVersion(version23, { path, type }) { let extracted; if (path && path.length >= 5) { const nmIndex = path.indexOf("node_modules"); @@ -5199,7 +5199,7 @@ extracted = ""; } return [ - `${`${type || ""}`.padStart(3)} ${version27}`, + `${`${type || ""}`.padStart(3)} ${version23}`, extracted ]; } @@ -5220,22 +5220,22 @@ ${DEDUPE} ${formatDisplay(all, fmt)}`); } - function detectPackage({ name: name6, path, type, version: version27 }, pathOrFn, deps = []) { + function detectPackage({ name: name6, path, type, version: version23 }, pathOrFn, deps = []) { if (!name6.startsWith("@polkadot")) { throw new Error(`Invalid package descriptor ${name6}`); } const entry = getEntry(name6); - entry.push({ path: getPath(path, pathOrFn), type, version: version27 }); - const entriesSameVersion = entry.every((e) => e.version === version27); + entry.push({ path: getPath(path, pathOrFn), type, version: version23 }); + const entriesSameVersion = entry.every((e) => e.version === version23); const esmCjsWarningDisabled = x_global_1.xglobal.process?.env?.[exports2.POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG] === "1"; const multipleEntries = entry.length !== 1; const disableWarnings = esmCjsWarningDisabled && entriesSameVersion; if (multipleEntries && !disableWarnings) { warn(`${name6} has multiple versions, ensure that there is only one installed.`, entry, formatVersion); } else { - const mismatches = deps.filter((d) => d && d.version !== version27); + const mismatches = deps.filter((d) => d && d.version !== version23); if (mismatches.length) { - warn(`${name6} requires direct dependencies exactly matching version ${version27}.`, mismatches, formatInfo); + warn(`${name6} requires direct dependencies exactly matching version ${version23}.`, mismatches, formatInfo); } } } @@ -11022,7 +11022,7 @@ ${formatDisplay(all, fmt)}`); isNaN(maxSize) ? -1 : maxSize ]; } - function logger46(origin) { + function logger42(origin) { const type = `${origin.toUpperCase()}:`.padStart(16); const [isDebug, maxSize] = parseEnv2(origin.toLowerCase()); return { @@ -11033,7 +11033,7 @@ ${formatDisplay(all, fmt)}`); warn: (...values) => apply2("warn", type, values) }; } - exports2.logger = logger46; + exports2.logger = logger42; } }); @@ -15276,11 +15276,11 @@ ${formatDisplay(all, fmt)}`); return (0, _bridge.resultU8a)(); }); exports2.hmacSha512 = hmacSha5122; - var keccak2564 = (0, _bridge.withWasm)((wasm2, data) => { + var keccak25613 = (0, _bridge.withWasm)((wasm2, data) => { wasm2.ext_keccak256(8, ...(0, _bridge.allocU8a)(data)); return (0, _bridge.resultU8a)(); }); - exports2.keccak256 = keccak2564; + exports2.keccak256 = keccak25613; var keccak5122 = (0, _bridge.withWasm)((wasm2, data) => { wasm2.ext_keccak512(8, ...(0, _bridge.allocU8a)(data)); return (0, _bridge.resultU8a)(); @@ -26122,7 +26122,7 @@ ${formatDisplay(all, fmt)}`); var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version4(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var UnicodeNormalizationForm4; (function(UnicodeNormalizationForm5) { UnicodeNormalizationForm5["current"] = ""; @@ -26142,7 +26142,7 @@ ${formatDisplay(all, fmt)}`); Utf8ErrorReason3["OVERLONG"] = "overlong representation"; })(Utf8ErrorReason2 = exports2.Utf8ErrorReason || (exports2.Utf8ErrorReason = {})); function errorFunc(reason, offset, bytes5, output4, badCodepoint) { - return logger46.throwArgumentError("invalid codepoint at offset " + offset + "; " + reason, "bytes", bytes5); + return logger42.throwArgumentError("invalid codepoint at offset " + offset + "; " + reason, "bytes", bytes5); } function ignoreFunc(reason, offset, bytes5, output4, badCodepoint) { if (reason === Utf8ErrorReason2.BAD_PREFIX || reason === Utf8ErrorReason2.UNEXPECTED_CONTINUE) { @@ -26245,7 +26245,7 @@ ${formatDisplay(all, fmt)}`); form = UnicodeNormalizationForm4.current; } if (form != UnicodeNormalizationForm4.current) { - logger46.checkNormalize(); + logger42.checkNormalize(); str2 = str2.normalize(form); } var result = []; @@ -26601,7 +26601,7 @@ ${formatDisplay(all, fmt)}`); var require_utils3 = __commonJS({ "../../node_modules/@reef-chain/evm-provider/utils.js"(exports2) { "use strict"; - var __awaiter18 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -26744,7 +26744,7 @@ ${formatDisplay(all, fmt)}`); } exports2.isMainnet = isMainnet; function resolveEvmAddress(provider, nativeAddressOrName) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { const resolved = yield nativeAddressOrName; if (resolved.length === 42) { return resolved; @@ -26755,7 +26755,7 @@ ${formatDisplay(all, fmt)}`); } exports2.resolveEvmAddress = resolveEvmAddress; function resolveAddress(provider, evmAddressOrName) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { const resolved = yield evmAddressOrName; if (isSubstrateAddress2(resolved)) { return resolved; @@ -26766,7 +26766,7 @@ ${formatDisplay(all, fmt)}`); } exports2.resolveAddress = resolveAddress; function buildPayload(provider, signerAddress, tx2) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { try { const lastHeader = yield provider.api.rpc.chain.getHeader(); const blockNumber = provider.api.registry.createType("BlockNumber", lastHeader.number.toNumber()); @@ -26817,7 +26817,7 @@ ${formatDisplay(all, fmt)}`); } exports2.buildPayload = buildPayload; function sendSignedTransaction(provider, signerAddress, tx2, payload, extrinsic, signature2) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { extrinsic.addSignature(signerAddress, signature2, payload); const txResult = yield new Promise((resolve, reject) => { extrinsic.send((result) => { @@ -26850,6 +26850,255 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@ethersproject/properties/lib/_version.js + var require_version5 = __commonJS({ + "../../node_modules/@ethersproject/properties/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "properties/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/properties/lib/index.js + var require_lib7 = __commonJS({ + "../../node_modules/@ethersproject/properties/lib/index.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Description = exports2.deepCopy = exports2.shallowCopy = exports2.checkProperties = exports2.resolveProperties = exports2.getStatic = exports2.defineReadOnly = void 0; + var logger_1 = require_lib(); + var _version_1 = require_version5(); + var logger42 = new logger_1.Logger(_version_1.version); + function defineReadOnly23(object, name6, value) { + Object.defineProperty(object, name6, { + enumerable: true, + value, + writable: false + }); + } + exports2.defineReadOnly = defineReadOnly23; + function getStatic7(ctor, key2) { + for (var i = 0; i < 32; i++) { + if (ctor[key2]) { + return ctor[key2]; + } + if (!ctor.prototype || typeof ctor.prototype !== "object") { + break; + } + ctor = Object.getPrototypeOf(ctor.prototype).constructor; + } + return null; + } + exports2.getStatic = getStatic7; + function resolveProperties7(object) { + return __awaiter16(this, void 0, void 0, function() { + var promises, results; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + promises = Object.keys(object).map(function(key2) { + var value = object[key2]; + return Promise.resolve(value).then(function(v) { + return { key: key2, value: v }; + }); + }); + return [4, Promise.all(promises)]; + case 1: + results = _a2.sent(); + return [2, results.reduce(function(accum, result) { + accum[result.key] = result.value; + return accum; + }, {})]; + } + }); + }); + } + exports2.resolveProperties = resolveProperties7; + function checkProperties4(object, properties) { + if (!object || typeof object !== "object") { + logger42.throwArgumentError("invalid object", "object", object); + } + Object.keys(object).forEach(function(key2) { + if (!properties[key2]) { + logger42.throwArgumentError("invalid object key - " + key2, "transaction:" + key2, object); + } + }); + } + exports2.checkProperties = checkProperties4; + function shallowCopy8(object) { + var result = {}; + for (var key2 in object) { + result[key2] = object[key2]; + } + return result; + } + exports2.shallowCopy = shallowCopy8; + var opaque = { bigint: true, boolean: true, "function": true, number: true, string: true }; + function _isFrozen(object) { + if (object === void 0 || object === null || opaque[typeof object]) { + return true; + } + if (Array.isArray(object) || typeof object === "object") { + if (!Object.isFrozen(object)) { + return false; + } + var keys = Object.keys(object); + for (var i = 0; i < keys.length; i++) { + var value = null; + try { + value = object[keys[i]]; + } catch (error) { + continue; + } + if (!_isFrozen(value)) { + return false; + } + } + return true; + } + return logger42.throwArgumentError("Cannot deepCopy " + typeof object, "object", object); + } + function _deepCopy(object) { + if (_isFrozen(object)) { + return object; + } + if (Array.isArray(object)) { + return Object.freeze(object.map(function(item) { + return deepCopy9(item); + })); + } + if (typeof object === "object") { + var result = {}; + for (var key2 in object) { + var value = object[key2]; + if (value === void 0) { + continue; + } + defineReadOnly23(result, key2, deepCopy9(value)); + } + return result; + } + return logger42.throwArgumentError("Cannot deepCopy " + typeof object, "object", object); + } + function deepCopy9(object) { + return _deepCopy(object); + } + exports2.deepCopy = deepCopy9; + var Description5 = function() { + function Description6(info) { + for (var key2 in info) { + this[key2] = deepCopy9(info[key2]); + } + } + return Description6; + }(); + exports2.Description = Description5; + } + }); + // ../../node_modules/js-sha3/src/sha3.js var require_sha32 = __commonJS({ "../../node_modules/js-sha3/src/sha3.js"(exports2, module2) { @@ -27499,6 +27748,806 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@ethersproject/keccak256/lib/index.js + var require_lib8 = __commonJS({ + "../../node_modules/@ethersproject/keccak256/lib/index.js"(exports2) { + "use strict"; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.keccak256 = void 0; + var js_sha3_1 = __importDefault(require_sha32()); + var bytes_1 = require_lib2(); + function keccak25613(data) { + return "0x" + js_sha3_1.default.keccak_256((0, bytes_1.arrayify)(data)); + } + exports2.keccak256 = keccak25613; + } + }); + + // ../../node_modules/@ethersproject/rlp/lib/_version.js + var require_version6 = __commonJS({ + "../../node_modules/@ethersproject/rlp/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "rlp/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/rlp/lib/index.js + var require_lib9 = __commonJS({ + "../../node_modules/@ethersproject/rlp/lib/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decode = exports2.encode = void 0; + var bytes_1 = require_lib2(); + var logger_1 = require_lib(); + var _version_1 = require_version6(); + var logger42 = new logger_1.Logger(_version_1.version); + function arrayifyInteger(value) { + var result = []; + while (value) { + result.unshift(value & 255); + value >>= 8; + } + return result; + } + function unarrayifyInteger(data, offset, length) { + var result = 0; + for (var i = 0; i < length; i++) { + result = result * 256 + data[offset + i]; + } + return result; + } + function _encode2(object) { + if (Array.isArray(object)) { + var payload_1 = []; + object.forEach(function(child) { + payload_1 = payload_1.concat(_encode2(child)); + }); + if (payload_1.length <= 55) { + payload_1.unshift(192 + payload_1.length); + return payload_1; + } + var length_1 = arrayifyInteger(payload_1.length); + length_1.unshift(247 + length_1.length); + return length_1.concat(payload_1); + } + if (!(0, bytes_1.isBytesLike)(object)) { + logger42.throwArgumentError("RLP object must be BytesLike", "object", object); + } + var data = Array.prototype.slice.call((0, bytes_1.arrayify)(object)); + if (data.length === 1 && data[0] <= 127) { + return data; + } else if (data.length <= 55) { + data.unshift(128 + data.length); + return data; + } + var length = arrayifyInteger(data.length); + length.unshift(183 + length.length); + return length.concat(data); + } + function encode5(object) { + return (0, bytes_1.hexlify)(_encode2(object)); + } + exports2.encode = encode5; + function _decodeChildren(data, offset, childOffset, length) { + var result = []; + while (childOffset < offset + 1 + length) { + var decoded = _decode(data, childOffset); + result.push(decoded.result); + childOffset += decoded.consumed; + if (childOffset > offset + 1 + length) { + logger42.throwError("child data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + } + return { consumed: 1 + length, result }; + } + function _decode(data, offset) { + if (data.length === 0) { + logger42.throwError("data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + if (data[offset] >= 248) { + var lengthLength = data[offset] - 247; + if (offset + 1 + lengthLength > data.length) { + logger42.throwError("data short segment too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var length_2 = unarrayifyInteger(data, offset + 1, lengthLength); + if (offset + 1 + lengthLength + length_2 > data.length) { + logger42.throwError("data long segment too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length_2); + } else if (data[offset] >= 192) { + var length_3 = data[offset] - 192; + if (offset + 1 + length_3 > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + return _decodeChildren(data, offset, offset + 1, length_3); + } else if (data[offset] >= 184) { + var lengthLength = data[offset] - 183; + if (offset + 1 + lengthLength > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var length_4 = unarrayifyInteger(data, offset + 1, lengthLength); + if (offset + 1 + lengthLength + length_4 > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var result = (0, bytes_1.hexlify)(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length_4)); + return { consumed: 1 + lengthLength + length_4, result }; + } else if (data[offset] >= 128) { + var length_5 = data[offset] - 128; + if (offset + 1 + length_5 > data.length) { + logger42.throwError("data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var result = (0, bytes_1.hexlify)(data.slice(offset + 1, offset + 1 + length_5)); + return { consumed: 1 + length_5, result }; + } + return { consumed: 1, result: (0, bytes_1.hexlify)(data[offset]) }; + } + function decode4(data) { + var bytes5 = (0, bytes_1.arrayify)(data); + var decoded = _decode(bytes5, 0); + if (decoded.consumed !== bytes5.length) { + logger42.throwArgumentError("invalid rlp data", "data", data); + } + return decoded.result; + } + exports2.decode = decode4; + } + }); + + // ../../node_modules/@ethersproject/address/lib/_version.js + var require_version7 = __commonJS({ + "../../node_modules/@ethersproject/address/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "address/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/address/lib/index.js + var require_lib10 = __commonJS({ + "../../node_modules/@ethersproject/address/lib/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getCreate2Address = exports2.getContractAddress = exports2.getIcapAddress = exports2.isAddress = exports2.getAddress = void 0; + var bytes_1 = require_lib2(); + var bignumber_1 = require_lib3(); + var keccak256_1 = require_lib8(); + var rlp_1 = require_lib9(); + var logger_1 = require_lib(); + var _version_1 = require_version7(); + var logger42 = new logger_1.Logger(_version_1.version); + function getChecksumAddress(address) { + if (!(0, bytes_1.isHexString)(address, 20)) { + logger42.throwArgumentError("invalid address", "address", address); + } + address = address.toLowerCase(); + var chars2 = address.substring(2).split(""); + var expanded = new Uint8Array(40); + for (var i10 = 0; i10 < 40; i10++) { + expanded[i10] = chars2[i10].charCodeAt(0); + } + var hashed = (0, bytes_1.arrayify)((0, keccak256_1.keccak256)(expanded)); + for (var i10 = 0; i10 < 40; i10 += 2) { + if (hashed[i10 >> 1] >> 4 >= 8) { + chars2[i10] = chars2[i10].toUpperCase(); + } + if ((hashed[i10 >> 1] & 15) >= 8) { + chars2[i10 + 1] = chars2[i10 + 1].toUpperCase(); + } + } + return "0x" + chars2.join(""); + } + var MAX_SAFE_INTEGER2 = 9007199254740991; + function log10(x) { + if (Math.log10) { + return Math.log10(x); + } + return Math.log(x) / Math.LN10; + } + var ibanLookup = {}; + for (i = 0; i < 10; i++) { + ibanLookup[String(i)] = String(i); + } + var i; + for (i = 0; i < 26; i++) { + ibanLookup[String.fromCharCode(65 + i)] = String(10 + i); + } + var i; + var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER2)); + function ibanChecksum(address) { + address = address.toUpperCase(); + address = address.substring(4) + address.substring(0, 2) + "00"; + var expanded = address.split("").map(function(c) { + return ibanLookup[c]; + }).join(""); + while (expanded.length >= safeDigits) { + var block = expanded.substring(0, safeDigits); + expanded = parseInt(block, 10) % 97 + expanded.substring(block.length); + } + var checksum = String(98 - parseInt(expanded, 10) % 97); + while (checksum.length < 2) { + checksum = "0" + checksum; + } + return checksum; + } + function getAddress12(address) { + var result = null; + if (typeof address !== "string") { + logger42.throwArgumentError("invalid address", "address", address); + } + if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { + if (address.substring(0, 2) !== "0x") { + address = "0x" + address; + } + result = getChecksumAddress(address); + if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { + logger42.throwArgumentError("bad address checksum", "address", address); + } + } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { + if (address.substring(2, 4) !== ibanChecksum(address)) { + logger42.throwArgumentError("bad icap checksum", "address", address); + } + result = (0, bignumber_1._base36To16)(address.substring(4)); + while (result.length < 40) { + result = "0" + result; + } + result = getChecksumAddress("0x" + result); + } else { + logger42.throwArgumentError("invalid address", "address", address); + } + return result; + } + exports2.getAddress = getAddress12; + function isAddress2(address) { + try { + getAddress12(address); + return true; + } catch (error) { + } + return false; + } + exports2.isAddress = isAddress2; + function getIcapAddress2(address) { + var base36 = (0, bignumber_1._base16To36)(getAddress12(address).substring(2)).toUpperCase(); + while (base36.length < 30) { + base36 = "0" + base36; + } + return "XE" + ibanChecksum("XE00" + base36) + base36; + } + exports2.getIcapAddress = getIcapAddress2; + function getContractAddress4(transaction) { + var from2 = null; + try { + from2 = getAddress12(transaction.from); + } catch (error) { + logger42.throwArgumentError("missing from address", "transaction", transaction); + } + var nonce = (0, bytes_1.stripZeros)((0, bytes_1.arrayify)(bignumber_1.BigNumber.from(transaction.nonce).toHexString())); + return getAddress12((0, bytes_1.hexDataSlice)((0, keccak256_1.keccak256)((0, rlp_1.encode)([from2, nonce])), 12)); + } + exports2.getContractAddress = getContractAddress4; + function getCreate2Address2(from2, salt, initCodeHash) { + if ((0, bytes_1.hexDataLength)(salt) !== 32) { + logger42.throwArgumentError("salt must be 32 bytes", "salt", salt); + } + if ((0, bytes_1.hexDataLength)(initCodeHash) !== 32) { + logger42.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash); + } + return getAddress12((0, bytes_1.hexDataSlice)((0, keccak256_1.keccak256)((0, bytes_1.concat)(["0xff", getAddress12(from2), salt, initCodeHash])), 12)); + } + exports2.getCreate2Address = getCreate2Address2; + } + }); + + // ../../node_modules/@ethersproject/abstract-signer/lib/_version.js + var require_version8 = __commonJS({ + "../../node_modules/@ethersproject/abstract-signer/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "abstract-signer/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/abstract-signer/lib/index.js + var require_lib11 = __commonJS({ + "../../node_modules/@ethersproject/abstract-signer/lib/index.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VoidSigner = exports2.Signer = void 0; + var properties_1 = require_lib7(); + var logger_1 = require_lib(); + var _version_1 = require_version8(); + var logger42 = new logger_1.Logger(_version_1.version); + var allowedTransactionKeys4 = [ + "accessList", + "ccipReadEnabled", + "chainId", + "customData", + "data", + "from", + "gasLimit", + "gasPrice", + "maxFeePerGas", + "maxPriorityFeePerGas", + "nonce", + "to", + "type", + "value" + ]; + var forwardErrors = [ + logger_1.Logger.errors.INSUFFICIENT_FUNDS, + logger_1.Logger.errors.NONCE_EXPIRED, + logger_1.Logger.errors.REPLACEMENT_UNDERPRICED + ]; + var Signer6 = function() { + function Signer7() { + var _newTarget = this.constructor; + logger42.checkAbstract(_newTarget, Signer7); + (0, properties_1.defineReadOnly)(this, "_isSigner", true); + } + Signer7.prototype.getBalance = function(blockTag) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getBalance"); + return [4, this.provider.getBalance(this.getAddress(), blockTag)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getTransactionCount = function(blockTag) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getTransactionCount"); + return [4, this.provider.getTransactionCount(this.getAddress(), blockTag)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.estimateGas = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("estimateGas"); + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + return [4, this.provider.estimateGas(tx2)]; + case 2: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.call = function(transaction, blockTag) { + return __awaiter16(this, void 0, void 0, function() { + var tx2; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("call"); + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + return [4, this.provider.call(tx2, blockTag)]; + case 2: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.sendTransaction = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2, signedTx; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("sendTransaction"); + return [4, this.populateTransaction(transaction)]; + case 1: + tx2 = _a2.sent(); + return [4, this.signTransaction(tx2)]; + case 2: + signedTx = _a2.sent(); + return [4, this.provider.sendTransaction(signedTx)]; + case 3: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getChainId = function() { + return __awaiter16(this, void 0, void 0, function() { + var network2; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getChainId"); + return [4, this.provider.getNetwork()]; + case 1: + network2 = _a2.sent(); + return [2, network2.chainId]; + } + }); + }); + }; + Signer7.prototype.getGasPrice = function() { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getGasPrice"); + return [4, this.provider.getGasPrice()]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getFeeData = function() { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getFeeData"); + return [4, this.provider.getFeeData()]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.resolveName = function(name6) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("resolveName"); + return [4, this.provider.resolveName(name6)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.checkTransaction = function(transaction) { + for (var key2 in transaction) { + if (allowedTransactionKeys4.indexOf(key2) === -1) { + logger42.throwArgumentError("invalid transaction key: " + key2, "transaction", transaction); + } + } + var tx2 = (0, properties_1.shallowCopy)(transaction); + if (tx2.from == null) { + tx2.from = this.getAddress(); + } else { + tx2.from = Promise.all([ + Promise.resolve(tx2.from), + this.getAddress() + ]).then(function(result) { + if (result[0].toLowerCase() !== result[1].toLowerCase()) { + logger42.throwArgumentError("from address mismatch", "transaction", transaction); + } + return result[0]; + }); + } + return tx2; + }; + Signer7.prototype.populateTransaction = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2, hasEip1559, feeData, gasPrice; + var _this = this; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + if (tx2.to != null) { + tx2.to = Promise.resolve(tx2.to).then(function(to2) { + return __awaiter16(_this, void 0, void 0, function() { + var address; + return __generator2(this, function(_a3) { + switch (_a3.label) { + case 0: + if (to2 == null) { + return [2, null]; + } + return [4, this.resolveName(to2)]; + case 1: + address = _a3.sent(); + if (address == null) { + logger42.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); + } + return [2, address]; + } + }); + }); + }); + tx2.to.catch(function(error) { + }); + } + hasEip1559 = tx2.maxFeePerGas != null || tx2.maxPriorityFeePerGas != null; + if (tx2.gasPrice != null && (tx2.type === 2 || hasEip1559)) { + logger42.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction); + } else if ((tx2.type === 0 || tx2.type === 1) && hasEip1559) { + logger42.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction); + } + if (!((tx2.type === 2 || tx2.type == null) && (tx2.maxFeePerGas != null && tx2.maxPriorityFeePerGas != null))) + return [3, 2]; + tx2.type = 2; + return [3, 5]; + case 2: + if (!(tx2.type === 0 || tx2.type === 1)) + return [3, 3]; + if (tx2.gasPrice == null) { + tx2.gasPrice = this.getGasPrice(); + } + return [3, 5]; + case 3: + return [4, this.getFeeData()]; + case 4: + feeData = _a2.sent(); + if (tx2.type == null) { + if (feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null) { + tx2.type = 2; + if (tx2.gasPrice != null) { + gasPrice = tx2.gasPrice; + delete tx2.gasPrice; + tx2.maxFeePerGas = gasPrice; + tx2.maxPriorityFeePerGas = gasPrice; + } else { + if (tx2.maxFeePerGas == null) { + tx2.maxFeePerGas = feeData.maxFeePerGas; + } + if (tx2.maxPriorityFeePerGas == null) { + tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; + } + } + } else if (feeData.gasPrice != null) { + if (hasEip1559) { + logger42.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "populateTransaction" + }); + } + if (tx2.gasPrice == null) { + tx2.gasPrice = feeData.gasPrice; + } + tx2.type = 0; + } else { + logger42.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "signer.getFeeData" + }); + } + } else if (tx2.type === 2) { + if (tx2.maxFeePerGas == null) { + tx2.maxFeePerGas = feeData.maxFeePerGas; + } + if (tx2.maxPriorityFeePerGas == null) { + tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; + } + } + _a2.label = 5; + case 5: + if (tx2.nonce == null) { + tx2.nonce = this.getTransactionCount("pending"); + } + if (tx2.gasLimit == null) { + tx2.gasLimit = this.estimateGas(tx2).catch(function(error) { + if (forwardErrors.indexOf(error.code) >= 0) { + throw error; + } + return logger42.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + error, + tx: tx2 + }); + }); + } + if (tx2.chainId == null) { + tx2.chainId = this.getChainId(); + } else { + tx2.chainId = Promise.all([ + Promise.resolve(tx2.chainId), + this.getChainId() + ]).then(function(results) { + if (results[1] !== 0 && results[0] !== results[1]) { + logger42.throwArgumentError("chainId address mismatch", "transaction", transaction); + } + return results[0]; + }); + } + return [4, (0, properties_1.resolveProperties)(tx2)]; + case 6: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype._checkProvider = function(operation) { + if (!this.provider) { + logger42.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: operation || "_checkProvider" + }); + } + }; + Signer7.isSigner = function(value) { + return !!(value && value._isSigner); + }; + return Signer7; + }(); + exports2.Signer = Signer6; + var VoidSigner3 = function(_super) { + __extends2(VoidSigner4, _super); + function VoidSigner4(address, provider) { + var _this = _super.call(this) || this; + (0, properties_1.defineReadOnly)(_this, "address", address); + (0, properties_1.defineReadOnly)(_this, "provider", provider || null); + return _this; + } + VoidSigner4.prototype.getAddress = function() { + return Promise.resolve(this.address); + }; + VoidSigner4.prototype._fail = function(message, operation) { + return Promise.resolve().then(function() { + logger42.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation }); + }); + }; + VoidSigner4.prototype.signMessage = function(message) { + return this._fail("VoidSigner cannot sign messages", "signMessage"); + }; + VoidSigner4.prototype.signTransaction = function(transaction) { + return this._fail("VoidSigner cannot sign transactions", "signTransaction"); + }; + VoidSigner4.prototype._signTypedData = function(domain, types2, value) { + return this._fail("VoidSigner cannot sign typed data", "signTypedData"); + }; + VoidSigner4.prototype.connect = function(provider) { + return new VoidSigner4(this.address, provider); + }; + return VoidSigner4; + }(Signer6); + exports2.VoidSigner = VoidSigner3; + } + }); + // ../../node_modules/@ethersproject/signing-key/node_modules/bn.js/lib/bn.js var require_bn8 = __commonJS({ "../../node_modules/@ethersproject/signing-key/node_modules/bn.js/lib/bn.js"(exports2, module2) { @@ -33297,6 +34346,56906 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@reef-chain/evm-provider/Signer.js + var require_Signer = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/Signer.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Signer = void 0; + var abstract_signer_1 = require_lib11(); + var address_1 = require_lib10(); + var bignumber_1 = require_lib3(); + var bytes_1 = require_lib2(); + var logger_1 = require_lib(); + var properties_1 = require_lib7(); + var strings_1 = require_lib6(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var utils_12 = require_utils3(); + var logger42 = new logger_1.Logger("evm-provider"); + var Signer6 = class extends abstract_signer_1.Signer { + constructor(provider, address, signingKey) { + super(); + (0, properties_1.defineReadOnly)(this, "provider", provider); + (0, properties_1.defineReadOnly)(this, "signingKey", signingKey); + this.provider.api.setSigner(signingKey); + if (typeof address === "string" && (0, util_crypto_1.isEthereumAddress)(address)) { + logger42.throwError("expect substrate address"); + } else { + try { + (0, util_crypto_1.decodeAddress)(address); + (0, properties_1.defineReadOnly)(this, "_substrateAddress", address); + } catch (_a2) { + logger42.throwArgumentError("invalid address", "address", address); + } + } + } + connect(provider) { + return logger42.throwError("cannot alter JSON-RPC Signer connection", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "connect" + }); + } + isClaimed(evmAddress) { + return __awaiter16(this, void 0, void 0, function* () { + const rpcEvmAddress = yield this.queryEvmAddress(); + if (!rpcEvmAddress) + return false; + if (!evmAddress) + return true; + if (rpcEvmAddress === evmAddress) { + return true; + } + return logger42.throwError("An evm account already exists to bind to this account"); + }); + } + getAddress() { + return __awaiter16(this, void 0, void 0, function* () { + const address = yield this.queryEvmAddress(); + if (address) { + return address; + } else { + return this.computeDefaultEvmAddress(); + } + }); + } + queryEvmAddress() { + return __awaiter16(this, void 0, void 0, function* () { + const address = yield this.provider.api.query.evmAccounts.evmAddresses(this._substrateAddress); + if (!address.isEmpty) { + const evmAddress = (0, address_1.getAddress)(address.toString()); + return evmAddress; + } + return ""; + }); + } + computeDefaultEvmAddress() { + const address = this._substrateAddress; + const publicKey = (0, util_crypto_1.decodeAddress)(address); + const isStartWithEvm = (0, util_1.u8aEq)("evm:", publicKey.slice(0, 4)); + if (isStartWithEvm) { + return (0, address_1.getAddress)((0, util_1.u8aToHex)(publicKey.slice(4, 24))); + } + return (0, address_1.getAddress)((0, util_1.u8aToHex)((0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)("evm:", publicKey), 256).slice(0, 20))); + } + getSubstrateAddress() { + return __awaiter16(this, void 0, void 0, function* () { + return this._substrateAddress; + }); + } + claimEvmAccount(evmAddress) { + return __awaiter16(this, void 0, void 0, function* () { + const isConnented = yield this.isClaimed(evmAddress); + if (isConnented) + return; + const publicKey = (0, util_crypto_1.decodeAddress)(this._substrateAddress); + const data = "Reef evm:" + Buffer.from(publicKey).toString("hex"); + const signature2 = yield this._signMessage(evmAddress, data); + const extrinsic = this.provider.api.tx.evmAccounts.claimAccount(evmAddress, signature2); + yield extrinsic.signAsync(this._substrateAddress); + yield new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve(); + }).catch(({ message, result: result2 }) => { + if (message === "evmAccounts.AccountIdHasMapped") { + resolve(); + } + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + claimDefaultAccount() { + return __awaiter16(this, void 0, void 0, function* () { + const extrinsic = this.provider.api.tx.evmAccounts.claimDefaultAccount(); + yield extrinsic.signAsync(this._substrateAddress); + yield new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve(); + }).catch(({ message, result: result2 }) => { + if (message === "evmAccounts.AccountIdHasMapped") { + resolve(); + } + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + getBalance(blockTag) { + return this.provider.getBalance(this._substrateAddress, blockTag); + } + signTransaction(transaction) { + return logger42.throwError("signing transactions is unsupported", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "signTransaction" + }); + } + sendTransaction(_transaction) { + return __awaiter16(this, void 0, void 0, function* () { + this._checkProvider("sendTransaction"); + const signerAddress = yield this.getSubstrateAddress(); + const evmAddress = yield this.getAddress(); + const transaction = Object.assign({ from: evmAddress }, _transaction); + const resources = yield this.provider.estimateResources(transaction); + const gasLimit = resources.gas.mul(31).div(10); + let storageLimit; + if (transaction.customData) { + if ("storageLimit" in transaction.customData) { + storageLimit = transaction.customData.storageLimit; + if ((0, util_1.isNumber)(storageLimit)) { + storageLimit = bignumber_1.BigNumber.from(storageLimit); + } + } + } else { + storageLimit = resources.storage.mul(31).div(10); + } + let totalLimit = yield transaction.gasLimit; + if (totalLimit === null || totalLimit === void 0) { + totalLimit = gasLimit.add(storageLimit); + } + transaction.gasLimit = totalLimit; + const tx2 = yield this.populateTransaction(transaction); + const data = tx2.data; + const from2 = tx2.from; + if (!data) { + return logger42.throwError("Request data not found"); + } + if (!from2) { + return logger42.throwError("Request from not found"); + } + let extrinsic; + if (!tx2.to) { + extrinsic = this.provider.api.tx.evm.create(tx2.data, (0, utils_12.toBN)(tx2.value), (0, utils_12.toBN)(gasLimit), (0, utils_12.toBN)(storageLimit.isNegative() ? 0 : storageLimit)); + } else { + extrinsic = this.provider.api.tx.evm.call(tx2.to, tx2.data, (0, utils_12.toBN)(tx2.value), (0, utils_12.toBN)(gasLimit), (0, utils_12.toBN)(storageLimit.isNegative() ? 0 : storageLimit)); + } + yield extrinsic.signAsync(signerAddress); + return new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve({ + hash: extrinsic.hash.toHex(), + from: from2 || "", + confirmations: 0, + nonce: (0, utils_12.toBN)(tx2.nonce).toNumber(), + gasLimit: bignumber_1.BigNumber.from(tx2.gasLimit || "0"), + gasPrice: bignumber_1.BigNumber.from(0), + data: (0, utils_12.dataToString)(data), + value: bignumber_1.BigNumber.from(tx2.value || "0"), + chainId: 13939, + wait: (confirmations) => { + return this.provider._resolveTransactionReceipt(extrinsic.hash.toHex(), result.status.asInBlock.toHex(), from2); + } + }); + }).catch(({ message, result: result2 }) => { + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + signMessage(message) { + return __awaiter16(this, void 0, void 0, function* () { + const evmAddress = yield this.queryEvmAddress(); + return this._signMessage(evmAddress, message); + }); + } + _signMessage(evmAddress, message) { + return __awaiter16(this, void 0, void 0, function* () { + if (!evmAddress) { + return logger42.throwError("No binding evm address"); + } + const messagePrefix2 = "Ethereum Signed Message:\n"; + if (typeof message === "string") { + message = (0, strings_1.toUtf8Bytes)(message); + } + const msg = (0, util_1.u8aToHex)((0, bytes_1.concat)([ + (0, strings_1.toUtf8Bytes)(messagePrefix2), + (0, strings_1.toUtf8Bytes)(String(message.length)), + message + ])); + if (!this.signingKey.signRaw) { + return logger42.throwError("Need to implement signRaw method"); + } + const result = yield this.signingKey.signRaw({ + address: evmAddress, + data: msg, + type: "bytes" + }); + return (0, bytes_1.joinSignature)(result.signature); + }); + } + _signTypedData(domain, types2, value) { + return __awaiter16(this, void 0, void 0, function* () { + return logger42.throwError("_signTypedData is unsupported", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "_signTypedData" + }); + }); + } + }; + exports2.Signer = Signer6; + } + }); + + // ../../node_modules/@babel/runtime/helpers/typeof.js + var require_typeof = __commonJS({ + "../../node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) { + function _typeof(o) { + "@babel/helpers - typeof"; + return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) { + return typeof o10; + } : function(o10) { + return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10; + }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof(o); + } + module2.exports = _typeof, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/toPrimitive.js + var require_toPrimitive = __commonJS({ + "../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports2, module2) { + var _typeof = require_typeof()["default"]; + function toPrimitive(t, r10) { + if ("object" != _typeof(t) || !t) + return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r10 || "default"); + if ("object" != _typeof(i)) + return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r10 ? String : Number)(t); + } + module2.exports = toPrimitive, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/toPropertyKey.js + var require_toPropertyKey = __commonJS({ + "../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports2, module2) { + var _typeof = require_typeof()["default"]; + var toPrimitive = require_toPrimitive(); + function toPropertyKey(t) { + var i = toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + module2.exports = toPropertyKey, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/defineProperty.js + var require_defineProperty = __commonJS({ + "../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports2, module2) { + var toPropertyKey = require_toPropertyKey(); + function _defineProperty(e, r10, t) { + return (r10 = toPropertyKey(r10)) in e ? Object.defineProperty(e, r10, { + value: t, + enumerable: true, + configurable: true, + writable: true + }) : e[r10] = t, e; + } + module2.exports = _defineProperty, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/packageInfo.js + var require_packageInfo12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-derive", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/packageDetect.js + var require_packageDetect = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo12(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, []); + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/packageInfo.js + var require_packageInfo13 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-provider", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/packageInfo.js + var require_packageInfo14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/packageInfo.js + var require_packageInfo15 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-core", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/packageDetect.js + var require_packageDetect2 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo13(); + var packageInfo_2 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo15(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isFunction.js + var require_isFunction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isFunction.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isFunction = void 0; + function isFunction6(value) { + return typeof value === "function"; + } + exports2.isFunction = isFunction6; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js + var require_createErrorClass = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createErrorClass = void 0; + function createErrorClass2(createImpl) { + var _super = function(instance) { + Error.call(instance); + instance.stack = new Error().stack; + }; + var ctorFunc = createImpl(_super); + ctorFunc.prototype = Object.create(Error.prototype); + ctorFunc.prototype.constructor = ctorFunc; + return ctorFunc; + } + exports2.createErrorClass = createErrorClass2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js + var require_UnsubscriptionError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UnsubscriptionError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.UnsubscriptionError = createErrorClass_1.createErrorClass(function(_super) { + return function UnsubscriptionErrorImpl(errors2) { + _super(this); + this.message = errors2 ? errors2.length + " errors occurred during unsubscription:\n" + errors2.map(function(err, i) { + return i + 1 + ") " + err.toString(); + }).join("\n ") : ""; + this.name = "UnsubscriptionError"; + this.errors = errors2; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/arrRemove.js + var require_arrRemove = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.arrRemove = void 0; + function arrRemove2(arr, item) { + if (arr) { + var index = arr.indexOf(item); + 0 <= index && arr.splice(index, 1); + } + } + exports2.arrRemove = arrRemove2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subscription.js + var require_Subscription = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subscription.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isSubscription = exports2.EMPTY_SUBSCRIPTION = exports2.Subscription = void 0; + var isFunction_1 = require_isFunction(); + var UnsubscriptionError_1 = require_UnsubscriptionError(); + var arrRemove_1 = require_arrRemove(); + var Subscription2 = function() { + function Subscription3(initialTeardown) { + this.initialTeardown = initialTeardown; + this.closed = false; + this._parentage = null; + this._finalizers = null; + } + Subscription3.prototype.unsubscribe = function() { + var e_1, _a2, e_2, _b2; + var errors2; + if (!this.closed) { + this.closed = true; + var _parentage = this._parentage; + if (_parentage) { + this._parentage = null; + if (Array.isArray(_parentage)) { + try { + for (var _parentage_1 = __values2(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { + var parent_1 = _parentage_1_1.value; + parent_1.remove(this); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (_parentage_1_1 && !_parentage_1_1.done && (_a2 = _parentage_1.return)) + _a2.call(_parentage_1); + } finally { + if (e_1) + throw e_1.error; + } + } + } else { + _parentage.remove(this); + } + } + var initialFinalizer = this.initialTeardown; + if (isFunction_1.isFunction(initialFinalizer)) { + try { + initialFinalizer(); + } catch (e) { + errors2 = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e]; + } + } + var _finalizers = this._finalizers; + if (_finalizers) { + this._finalizers = null; + try { + for (var _finalizers_1 = __values2(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { + var finalizer = _finalizers_1_1.value; + try { + execFinalizer2(finalizer); + } catch (err) { + errors2 = errors2 !== null && errors2 !== void 0 ? errors2 : []; + if (err instanceof UnsubscriptionError_1.UnsubscriptionError) { + errors2 = __spreadArray2(__spreadArray2([], __read2(errors2)), __read2(err.errors)); + } else { + errors2.push(err); + } + } + } + } catch (e_2_1) { + e_2 = { error: e_2_1 }; + } finally { + try { + if (_finalizers_1_1 && !_finalizers_1_1.done && (_b2 = _finalizers_1.return)) + _b2.call(_finalizers_1); + } finally { + if (e_2) + throw e_2.error; + } + } + } + if (errors2) { + throw new UnsubscriptionError_1.UnsubscriptionError(errors2); + } + } + }; + Subscription3.prototype.add = function(teardown) { + var _a2; + if (teardown && teardown !== this) { + if (this.closed) { + execFinalizer2(teardown); + } else { + if (teardown instanceof Subscription3) { + if (teardown.closed || teardown._hasParent(this)) { + return; + } + teardown._addParent(this); + } + (this._finalizers = (_a2 = this._finalizers) !== null && _a2 !== void 0 ? _a2 : []).push(teardown); + } + } + }; + Subscription3.prototype._hasParent = function(parent) { + var _parentage = this._parentage; + return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent); + }; + Subscription3.prototype._addParent = function(parent) { + var _parentage = this._parentage; + this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; + }; + Subscription3.prototype._removeParent = function(parent) { + var _parentage = this._parentage; + if (_parentage === parent) { + this._parentage = null; + } else if (Array.isArray(_parentage)) { + arrRemove_1.arrRemove(_parentage, parent); + } + }; + Subscription3.prototype.remove = function(teardown) { + var _finalizers = this._finalizers; + _finalizers && arrRemove_1.arrRemove(_finalizers, teardown); + if (teardown instanceof Subscription3) { + teardown._removeParent(this); + } + }; + Subscription3.EMPTY = function() { + var empty = new Subscription3(); + empty.closed = true; + return empty; + }(); + return Subscription3; + }(); + exports2.Subscription = Subscription2; + exports2.EMPTY_SUBSCRIPTION = Subscription2.EMPTY; + function isSubscription2(value) { + return value instanceof Subscription2 || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe); + } + exports2.isSubscription = isSubscription2; + function execFinalizer2(finalizer) { + if (isFunction_1.isFunction(finalizer)) { + finalizer(); + } else { + finalizer.unsubscribe(); + } + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/config.js + var require_config = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/config.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.config = void 0; + exports2.config = { + onUnhandledError: null, + onStoppedNotification: null, + Promise: void 0, + useDeprecatedSynchronousErrorHandling: false, + useDeprecatedNextContext: false + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js + var require_timeoutProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeoutProvider = void 0; + exports2.timeoutProvider = { + setTimeout: function(handler, timeout) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + var delegate = exports2.timeoutProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { + return delegate.setTimeout.apply(delegate, __spreadArray2([handler, timeout], __read2(args))); + } + return setTimeout.apply(void 0, __spreadArray2([handler, timeout], __read2(args))); + }, + clearTimeout: function(handle) { + var delegate = exports2.timeoutProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js + var require_reportUnhandledError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.reportUnhandledError = void 0; + var config_1 = require_config(); + var timeoutProvider_1 = require_timeoutProvider(); + function reportUnhandledError2(err) { + timeoutProvider_1.timeoutProvider.setTimeout(function() { + var onUnhandledError = config_1.config.onUnhandledError; + if (onUnhandledError) { + onUnhandledError(err); + } else { + throw err; + } + }); + } + exports2.reportUnhandledError = reportUnhandledError2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/noop.js + var require_noop2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/noop.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.noop = void 0; + function noop3() { + } + exports2.noop = noop3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/NotificationFactories.js + var require_NotificationFactories = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/NotificationFactories.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createNotification = exports2.nextNotification = exports2.errorNotification = exports2.COMPLETE_NOTIFICATION = void 0; + exports2.COMPLETE_NOTIFICATION = function() { + return createNotification2("C", void 0, void 0); + }(); + function errorNotification2(error) { + return createNotification2("E", void 0, error); + } + exports2.errorNotification = errorNotification2; + function nextNotification2(value) { + return createNotification2("N", value, void 0); + } + exports2.nextNotification = nextNotification2; + function createNotification2(kind, value, error) { + return { + kind, + value, + error + }; + } + exports2.createNotification = createNotification2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/errorContext.js + var require_errorContext = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/errorContext.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.captureError = exports2.errorContext = void 0; + var config_1 = require_config(); + var context2 = null; + function errorContext2(cb2) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + var isRoot = !context2; + if (isRoot) { + context2 = { errorThrown: false, error: null }; + } + cb2(); + if (isRoot) { + var _a2 = context2, errorThrown = _a2.errorThrown, error = _a2.error; + context2 = null; + if (errorThrown) { + throw error; + } + } + } else { + cb2(); + } + } + exports2.errorContext = errorContext2; + function captureError3(err) { + if (config_1.config.useDeprecatedSynchronousErrorHandling && context2) { + context2.errorThrown = true; + context2.error = err; + } + } + exports2.captureError = captureError3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subscriber.js + var require_Subscriber = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subscriber.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EMPTY_OBSERVER = exports2.SafeSubscriber = exports2.Subscriber = void 0; + var isFunction_1 = require_isFunction(); + var Subscription_1 = require_Subscription(); + var config_1 = require_config(); + var reportUnhandledError_1 = require_reportUnhandledError(); + var noop_1 = require_noop2(); + var NotificationFactories_1 = require_NotificationFactories(); + var timeoutProvider_1 = require_timeoutProvider(); + var errorContext_1 = require_errorContext(); + var Subscriber2 = function(_super) { + __extends2(Subscriber3, _super); + function Subscriber3(destination) { + var _this = _super.call(this) || this; + _this.isStopped = false; + if (destination) { + _this.destination = destination; + if (Subscription_1.isSubscription(destination)) { + destination.add(_this); + } + } else { + _this.destination = exports2.EMPTY_OBSERVER; + } + return _this; + } + Subscriber3.create = function(next, error, complete) { + return new SafeSubscriber2(next, error, complete); + }; + Subscriber3.prototype.next = function(value) { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.nextNotification(value), this); + } else { + this._next(value); + } + }; + Subscriber3.prototype.error = function(err) { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.errorNotification(err), this); + } else { + this.isStopped = true; + this._error(err); + } + }; + Subscriber3.prototype.complete = function() { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.COMPLETE_NOTIFICATION, this); + } else { + this.isStopped = true; + this._complete(); + } + }; + Subscriber3.prototype.unsubscribe = function() { + if (!this.closed) { + this.isStopped = true; + _super.prototype.unsubscribe.call(this); + this.destination = null; + } + }; + Subscriber3.prototype._next = function(value) { + this.destination.next(value); + }; + Subscriber3.prototype._error = function(err) { + try { + this.destination.error(err); + } finally { + this.unsubscribe(); + } + }; + Subscriber3.prototype._complete = function() { + try { + this.destination.complete(); + } finally { + this.unsubscribe(); + } + }; + return Subscriber3; + }(Subscription_1.Subscription); + exports2.Subscriber = Subscriber2; + var _bind2 = Function.prototype.bind; + function bind2(fn2, thisArg) { + return _bind2.call(fn2, thisArg); + } + var ConsumerObserver2 = function() { + function ConsumerObserver3(partialObserver) { + this.partialObserver = partialObserver; + } + ConsumerObserver3.prototype.next = function(value) { + var partialObserver = this.partialObserver; + if (partialObserver.next) { + try { + partialObserver.next(value); + } catch (error) { + handleUnhandledError2(error); + } + } + }; + ConsumerObserver3.prototype.error = function(err) { + var partialObserver = this.partialObserver; + if (partialObserver.error) { + try { + partialObserver.error(err); + } catch (error) { + handleUnhandledError2(error); + } + } else { + handleUnhandledError2(err); + } + }; + ConsumerObserver3.prototype.complete = function() { + var partialObserver = this.partialObserver; + if (partialObserver.complete) { + try { + partialObserver.complete(); + } catch (error) { + handleUnhandledError2(error); + } + } + }; + return ConsumerObserver3; + }(); + var SafeSubscriber2 = function(_super) { + __extends2(SafeSubscriber3, _super); + function SafeSubscriber3(observerOrNext, error, complete) { + var _this = _super.call(this) || this; + var partialObserver; + if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) { + partialObserver = { + next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0, + error: error !== null && error !== void 0 ? error : void 0, + complete: complete !== null && complete !== void 0 ? complete : void 0 + }; + } else { + var context_1; + if (_this && config_1.config.useDeprecatedNextContext) { + context_1 = Object.create(observerOrNext); + context_1.unsubscribe = function() { + return _this.unsubscribe(); + }; + partialObserver = { + next: observerOrNext.next && bind2(observerOrNext.next, context_1), + error: observerOrNext.error && bind2(observerOrNext.error, context_1), + complete: observerOrNext.complete && bind2(observerOrNext.complete, context_1) + }; + } else { + partialObserver = observerOrNext; + } + } + _this.destination = new ConsumerObserver2(partialObserver); + return _this; + } + return SafeSubscriber3; + }(Subscriber2); + exports2.SafeSubscriber = SafeSubscriber2; + function handleUnhandledError2(error) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + errorContext_1.captureError(error); + } else { + reportUnhandledError_1.reportUnhandledError(error); + } + } + function defaultErrorHandler2(err) { + throw err; + } + function handleStoppedNotification2(notification, subscriber) { + var onStoppedNotification = config_1.config.onStoppedNotification; + onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function() { + return onStoppedNotification(notification, subscriber); + }); + } + exports2.EMPTY_OBSERVER = { + closed: true, + next: noop_1.noop, + error: defaultErrorHandler2, + complete: noop_1.noop + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/symbol/observable.js + var require_observable2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/symbol/observable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observable = void 0; + exports2.observable = function() { + return typeof Symbol === "function" && Symbol.observable || "@@observable"; + }(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/identity.js + var require_identity = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/identity.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.identity = void 0; + function identity3(x) { + return x; + } + exports2.identity = identity3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/pipe.js + var require_pipe = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/pipe.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pipeFromArray = exports2.pipe = void 0; + var identity_1 = require_identity(); + function pipe2() { + var fns = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + fns[_i2] = arguments[_i2]; + } + return pipeFromArray2(fns); + } + exports2.pipe = pipe2; + function pipeFromArray2(fns) { + if (fns.length === 0) { + return identity_1.identity; + } + if (fns.length === 1) { + return fns[0]; + } + return function piped(input) { + return fns.reduce(function(prev, fn2) { + return fn2(prev); + }, input); + }; + } + exports2.pipeFromArray = pipeFromArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Observable.js + var require_Observable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Observable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Observable = void 0; + var Subscriber_1 = require_Subscriber(); + var Subscription_1 = require_Subscription(); + var observable_1 = require_observable2(); + var pipe_1 = require_pipe(); + var config_1 = require_config(); + var isFunction_1 = require_isFunction(); + var errorContext_1 = require_errorContext(); + var Observable3 = function() { + function Observable4(subscribe) { + if (subscribe) { + this._subscribe = subscribe; + } + } + Observable4.prototype.lift = function(operator) { + var observable2 = new Observable4(); + observable2.source = this; + observable2.operator = operator; + return observable2; + }; + Observable4.prototype.subscribe = function(observerOrNext, error, complete) { + var _this = this; + var subscriber = isSubscriber2(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete); + errorContext_1.errorContext(function() { + var _a2 = _this, operator = _a2.operator, source = _a2.source; + subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber)); + }); + return subscriber; + }; + Observable4.prototype._trySubscribe = function(sink) { + try { + return this._subscribe(sink); + } catch (err) { + sink.error(err); + } + }; + Observable4.prototype.forEach = function(next, promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor2(promiseCtor); + return new promiseCtor(function(resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function(value) { + try { + next(value); + } catch (err) { + reject(err); + subscriber.unsubscribe(); + } + }, + error: reject, + complete: resolve + }); + _this.subscribe(subscriber); + }); + }; + Observable4.prototype._subscribe = function(subscriber) { + var _a2; + return (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber); + }; + Observable4.prototype[observable_1.observable] = function() { + return this; + }; + Observable4.prototype.pipe = function() { + var operations = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + operations[_i2] = arguments[_i2]; + } + return pipe_1.pipeFromArray(operations)(this); + }; + Observable4.prototype.toPromise = function(promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor2(promiseCtor); + return new promiseCtor(function(resolve, reject) { + var value; + _this.subscribe(function(x) { + return value = x; + }, function(err) { + return reject(err); + }, function() { + return resolve(value); + }); + }); + }; + Observable4.create = function(subscribe) { + return new Observable4(subscribe); + }; + return Observable4; + }(); + exports2.Observable = Observable3; + function getPromiseCtor2(promiseCtor) { + var _a2; + return (_a2 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config_1.config.Promise) !== null && _a2 !== void 0 ? _a2 : Promise; + } + function isObserver2(value) { + return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete); + } + function isSubscriber2(value) { + return value && value instanceof Subscriber_1.Subscriber || isObserver2(value) && Subscription_1.isSubscription(value); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/lift.js + var require_lift = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/lift.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.operate = exports2.hasLift = void 0; + var isFunction_1 = require_isFunction(); + function hasLift2(source) { + return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift); + } + exports2.hasLift = hasLift2; + function operate2(init2) { + return function(source) { + if (hasLift2(source)) { + return source.lift(function(liftedSource) { + try { + return init2(liftedSource, this); + } catch (err) { + this.error(err); + } + }); + } + throw new TypeError("Unable to lift unknown Observable type"); + }; + } + exports2.operate = operate2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js + var require_OperatorSubscriber = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OperatorSubscriber = exports2.createOperatorSubscriber = void 0; + var Subscriber_1 = require_Subscriber(); + function createOperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize) { + return new OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize); + } + exports2.createOperatorSubscriber = createOperatorSubscriber2; + var OperatorSubscriber2 = function(_super) { + __extends2(OperatorSubscriber3, _super); + function OperatorSubscriber3(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { + var _this = _super.call(this, destination) || this; + _this.onFinalize = onFinalize; + _this.shouldUnsubscribe = shouldUnsubscribe; + _this._next = onNext ? function(value) { + try { + onNext(value); + } catch (err) { + destination.error(err); + } + } : _super.prototype._next; + _this._error = onError ? function(err) { + try { + onError(err); + } catch (err2) { + destination.error(err2); + } finally { + this.unsubscribe(); + } + } : _super.prototype._error; + _this._complete = onComplete ? function() { + try { + onComplete(); + } catch (err) { + destination.error(err); + } finally { + this.unsubscribe(); + } + } : _super.prototype._complete; + return _this; + } + OperatorSubscriber3.prototype.unsubscribe = function() { + var _a2; + if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { + var closed_1 = this.closed; + _super.prototype.unsubscribe.call(this); + !closed_1 && ((_a2 = this.onFinalize) === null || _a2 === void 0 ? void 0 : _a2.call(this)); + } + }; + return OperatorSubscriber3; + }(Subscriber_1.Subscriber); + exports2.OperatorSubscriber = OperatorSubscriber2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/refCount.js + var require_refCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/refCount.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.refCount = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function refCount() { + return lift_1.operate(function(source, subscriber) { + var connection = null; + source._refCount++; + var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, void 0, function() { + if (!source || source._refCount <= 0 || 0 < --source._refCount) { + connection = null; + return; + } + var sharedConnection = source._connection; + var conn = connection; + connection = null; + if (sharedConnection && (!conn || sharedConnection === conn)) { + sharedConnection.unsubscribe(); + } + subscriber.unsubscribe(); + }); + source.subscribe(refCounter); + if (!refCounter.closed) { + connection = source.connect(); + } + }); + } + exports2.refCount = refCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js + var require_ConnectableObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ConnectableObservable = void 0; + var Observable_1 = require_Observable(); + var Subscription_1 = require_Subscription(); + var refCount_1 = require_refCount(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var lift_1 = require_lift(); + var ConnectableObservable = function(_super) { + __extends2(ConnectableObservable2, _super); + function ConnectableObservable2(source, subjectFactory) { + var _this = _super.call(this) || this; + _this.source = source; + _this.subjectFactory = subjectFactory; + _this._subject = null; + _this._refCount = 0; + _this._connection = null; + if (lift_1.hasLift(source)) { + _this.lift = source.lift; + } + return _this; + } + ConnectableObservable2.prototype._subscribe = function(subscriber) { + return this.getSubject().subscribe(subscriber); + }; + ConnectableObservable2.prototype.getSubject = function() { + var subject2 = this._subject; + if (!subject2 || subject2.isStopped) { + this._subject = this.subjectFactory(); + } + return this._subject; + }; + ConnectableObservable2.prototype._teardown = function() { + this._refCount = 0; + var _connection = this._connection; + this._subject = this._connection = null; + _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); + }; + ConnectableObservable2.prototype.connect = function() { + var _this = this; + var connection = this._connection; + if (!connection) { + connection = this._connection = new Subscription_1.Subscription(); + var subject_1 = this.getSubject(); + connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, void 0, function() { + _this._teardown(); + subject_1.complete(); + }, function(err) { + _this._teardown(); + subject_1.error(err); + }, function() { + return _this._teardown(); + }))); + if (connection.closed) { + this._connection = null; + connection = Subscription_1.Subscription.EMPTY; + } + } + return connection; + }; + ConnectableObservable2.prototype.refCount = function() { + return refCount_1.refCount()(this); + }; + return ConnectableObservable2; + }(Observable_1.Observable); + exports2.ConnectableObservable = ConnectableObservable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js + var require_performanceTimestampProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.performanceTimestampProvider = void 0; + exports2.performanceTimestampProvider = { + now: function() { + return (exports2.performanceTimestampProvider.delegate || performance).now(); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js + var require_animationFrameProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrameProvider = void 0; + var Subscription_1 = require_Subscription(); + exports2.animationFrameProvider = { + schedule: function(callback) { + var request = requestAnimationFrame; + var cancel = cancelAnimationFrame; + var delegate = exports2.animationFrameProvider.delegate; + if (delegate) { + request = delegate.requestAnimationFrame; + cancel = delegate.cancelAnimationFrame; + } + var handle = request(function(timestamp) { + cancel = void 0; + callback(timestamp); + }); + return new Subscription_1.Subscription(function() { + return cancel === null || cancel === void 0 ? void 0 : cancel(handle); + }); + }, + requestAnimationFrame: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray2([], __read2(args))); + }, + cancelAnimationFrame: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray2([], __read2(args))); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js + var require_animationFrames = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrames = void 0; + var Observable_1 = require_Observable(); + var performanceTimestampProvider_1 = require_performanceTimestampProvider(); + var animationFrameProvider_1 = require_animationFrameProvider(); + function animationFrames(timestampProvider) { + return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; + } + exports2.animationFrames = animationFrames; + function animationFramesFactory(timestampProvider) { + return new Observable_1.Observable(function(subscriber) { + var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider; + var start = provider.now(); + var id4 = 0; + var run = function() { + if (!subscriber.closed) { + id4 = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) { + id4 = 0; + var now2 = provider.now(); + subscriber.next({ + timestamp: timestampProvider ? now2 : timestamp, + elapsed: now2 - start + }); + run(); + }); + } + }; + run(); + return function() { + if (id4) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id4); + } + }; + }); + } + var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js + var require_ObjectUnsubscribedError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ObjectUnsubscribedError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function(_super) { + return function ObjectUnsubscribedErrorImpl() { + _super(this); + this.name = "ObjectUnsubscribedError"; + this.message = "object unsubscribed"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subject.js + var require_Subject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnonymousSubject = exports2.Subject = void 0; + var Observable_1 = require_Observable(); + var Subscription_1 = require_Subscription(); + var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError(); + var arrRemove_1 = require_arrRemove(); + var errorContext_1 = require_errorContext(); + var Subject3 = function(_super) { + __extends2(Subject4, _super); + function Subject4() { + var _this = _super.call(this) || this; + _this.closed = false; + _this.currentObservers = null; + _this.observers = []; + _this.isStopped = false; + _this.hasError = false; + _this.thrownError = null; + return _this; + } + Subject4.prototype.lift = function(operator) { + var subject2 = new AnonymousSubject2(this, this); + subject2.operator = operator; + return subject2; + }; + Subject4.prototype._throwIfClosed = function() { + if (this.closed) { + throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError(); + } + }; + Subject4.prototype.next = function(value) { + var _this = this; + errorContext_1.errorContext(function() { + var e_1, _a2; + _this._throwIfClosed(); + if (!_this.isStopped) { + if (!_this.currentObservers) { + _this.currentObservers = Array.from(_this.observers); + } + try { + for (var _b2 = __values2(_this.currentObservers), _c2 = _b2.next(); !_c2.done; _c2 = _b2.next()) { + var observer = _c2.value; + observer.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (_c2 && !_c2.done && (_a2 = _b2.return)) + _a2.call(_b2); + } finally { + if (e_1) + throw e_1.error; + } + } + } + }); + }; + Subject4.prototype.error = function(err) { + var _this = this; + errorContext_1.errorContext(function() { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.hasError = _this.isStopped = true; + _this.thrownError = err; + var observers = _this.observers; + while (observers.length) { + observers.shift().error(err); + } + } + }); + }; + Subject4.prototype.complete = function() { + var _this = this; + errorContext_1.errorContext(function() { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.isStopped = true; + var observers = _this.observers; + while (observers.length) { + observers.shift().complete(); + } + } + }); + }; + Subject4.prototype.unsubscribe = function() { + this.isStopped = this.closed = true; + this.observers = this.currentObservers = null; + }; + Object.defineProperty(Subject4.prototype, "observed", { + get: function() { + var _a2; + return ((_a2 = this.observers) === null || _a2 === void 0 ? void 0 : _a2.length) > 0; + }, + enumerable: false, + configurable: true + }); + Subject4.prototype._trySubscribe = function(subscriber) { + this._throwIfClosed(); + return _super.prototype._trySubscribe.call(this, subscriber); + }; + Subject4.prototype._subscribe = function(subscriber) { + this._throwIfClosed(); + this._checkFinalizedStatuses(subscriber); + return this._innerSubscribe(subscriber); + }; + Subject4.prototype._innerSubscribe = function(subscriber) { + var _this = this; + var _a2 = this, hasError = _a2.hasError, isStopped = _a2.isStopped, observers = _a2.observers; + if (hasError || isStopped) { + return Subscription_1.EMPTY_SUBSCRIPTION; + } + this.currentObservers = null; + observers.push(subscriber); + return new Subscription_1.Subscription(function() { + _this.currentObservers = null; + arrRemove_1.arrRemove(observers, subscriber); + }); + }; + Subject4.prototype._checkFinalizedStatuses = function(subscriber) { + var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, isStopped = _a2.isStopped; + if (hasError) { + subscriber.error(thrownError); + } else if (isStopped) { + subscriber.complete(); + } + }; + Subject4.prototype.asObservable = function() { + var observable2 = new Observable_1.Observable(); + observable2.source = this; + return observable2; + }; + Subject4.create = function(destination, source) { + return new AnonymousSubject2(destination, source); + }; + return Subject4; + }(Observable_1.Observable); + exports2.Subject = Subject3; + var AnonymousSubject2 = function(_super) { + __extends2(AnonymousSubject3, _super); + function AnonymousSubject3(destination, source) { + var _this = _super.call(this) || this; + _this.destination = destination; + _this.source = source; + return _this; + } + AnonymousSubject3.prototype.next = function(value) { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, value); + }; + AnonymousSubject3.prototype.error = function(err) { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, err); + }; + AnonymousSubject3.prototype.complete = function() { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a2); + }; + AnonymousSubject3.prototype._subscribe = function(subscriber) { + var _a2, _b2; + return (_b2 = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : Subscription_1.EMPTY_SUBSCRIPTION; + }; + return AnonymousSubject3; + }(Subject3); + exports2.AnonymousSubject = AnonymousSubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js + var require_BehaviorSubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BehaviorSubject = void 0; + var Subject_1 = require_Subject(); + var BehaviorSubject2 = function(_super) { + __extends2(BehaviorSubject3, _super); + function BehaviorSubject3(_value) { + var _this = _super.call(this) || this; + _this._value = _value; + return _this; + } + Object.defineProperty(BehaviorSubject3.prototype, "value", { + get: function() { + return this.getValue(); + }, + enumerable: false, + configurable: true + }); + BehaviorSubject3.prototype._subscribe = function(subscriber) { + var subscription = _super.prototype._subscribe.call(this, subscriber); + !subscription.closed && subscriber.next(this._value); + return subscription; + }; + BehaviorSubject3.prototype.getValue = function() { + var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, _value = _a2._value; + if (hasError) { + throw thrownError; + } + this._throwIfClosed(); + return _value; + }; + BehaviorSubject3.prototype.next = function(value) { + _super.prototype.next.call(this, this._value = value); + }; + return BehaviorSubject3; + }(Subject_1.Subject); + exports2.BehaviorSubject = BehaviorSubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js + var require_dateTimestampProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dateTimestampProvider = void 0; + exports2.dateTimestampProvider = { + now: function() { + return (exports2.dateTimestampProvider.delegate || Date).now(); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/ReplaySubject.js + var require_ReplaySubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ReplaySubject = void 0; + var Subject_1 = require_Subject(); + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var ReplaySubject2 = function(_super) { + __extends2(ReplaySubject3, _super); + function ReplaySubject3(_bufferSize, _windowTime, _timestampProvider) { + if (_bufferSize === void 0) { + _bufferSize = Infinity; + } + if (_windowTime === void 0) { + _windowTime = Infinity; + } + if (_timestampProvider === void 0) { + _timestampProvider = dateTimestampProvider_1.dateTimestampProvider; + } + var _this = _super.call(this) || this; + _this._bufferSize = _bufferSize; + _this._windowTime = _windowTime; + _this._timestampProvider = _timestampProvider; + _this._buffer = []; + _this._infiniteTimeWindow = true; + _this._infiniteTimeWindow = _windowTime === Infinity; + _this._bufferSize = Math.max(1, _bufferSize); + _this._windowTime = Math.max(1, _windowTime); + return _this; + } + ReplaySubject3.prototype.next = function(value) { + var _a2 = this, isStopped = _a2.isStopped, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow, _timestampProvider = _a2._timestampProvider, _windowTime = _a2._windowTime; + if (!isStopped) { + _buffer.push(value); + !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); + } + this._trimBuffer(); + _super.prototype.next.call(this, value); + }; + ReplaySubject3.prototype._subscribe = function(subscriber) { + this._throwIfClosed(); + this._trimBuffer(); + var subscription = this._innerSubscribe(subscriber); + var _a2 = this, _infiniteTimeWindow = _a2._infiniteTimeWindow, _buffer = _a2._buffer; + var copy = _buffer.slice(); + for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { + subscriber.next(copy[i]); + } + this._checkFinalizedStatuses(subscriber); + return subscription; + }; + ReplaySubject3.prototype._trimBuffer = function() { + var _a2 = this, _bufferSize = _a2._bufferSize, _timestampProvider = _a2._timestampProvider, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow; + var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; + _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); + if (!_infiniteTimeWindow) { + var now2 = _timestampProvider.now(); + var last2 = 0; + for (var i = 1; i < _buffer.length && _buffer[i] <= now2; i += 2) { + last2 = i; + } + last2 && _buffer.splice(0, last2 + 1); + } + }; + return ReplaySubject3; + }(Subject_1.Subject); + exports2.ReplaySubject = ReplaySubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/AsyncSubject.js + var require_AsyncSubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncSubject = void 0; + var Subject_1 = require_Subject(); + var AsyncSubject = function(_super) { + __extends2(AsyncSubject2, _super); + function AsyncSubject2() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this._value = null; + _this._hasValue = false; + _this._isComplete = false; + return _this; + } + AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) { + var _a2 = this, hasError = _a2.hasError, _hasValue = _a2._hasValue, _value = _a2._value, thrownError = _a2.thrownError, isStopped = _a2.isStopped, _isComplete = _a2._isComplete; + if (hasError) { + subscriber.error(thrownError); + } else if (isStopped || _isComplete) { + _hasValue && subscriber.next(_value); + subscriber.complete(); + } + }; + AsyncSubject2.prototype.next = function(value) { + if (!this.isStopped) { + this._value = value; + this._hasValue = true; + } + }; + AsyncSubject2.prototype.complete = function() { + var _a2 = this, _hasValue = _a2._hasValue, _value = _a2._value, _isComplete = _a2._isComplete; + if (!_isComplete) { + this._isComplete = true; + _hasValue && _super.prototype.next.call(this, _value); + _super.prototype.complete.call(this); + } + }; + return AsyncSubject2; + }(Subject_1.Subject); + exports2.AsyncSubject = AsyncSubject; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/Action.js + var require_Action = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Action = void 0; + var Subscription_1 = require_Subscription(); + var Action2 = function(_super) { + __extends2(Action3, _super); + function Action3(scheduler, work) { + return _super.call(this) || this; + } + Action3.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + return this; + }; + return Action3; + }(Subscription_1.Subscription); + exports2.Action = Action2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js + var require_intervalProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.intervalProvider = void 0; + exports2.intervalProvider = { + setInterval: function(handler, timeout) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + var delegate = exports2.intervalProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { + return delegate.setInterval.apply(delegate, __spreadArray2([handler, timeout], __read2(args))); + } + return setInterval.apply(void 0, __spreadArray2([handler, timeout], __read2(args))); + }, + clearInterval: function(handle) { + var delegate = exports2.intervalProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js + var require_AsyncAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncAction = void 0; + var Action_1 = require_Action(); + var intervalProvider_1 = require_intervalProvider(); + var arrRemove_1 = require_arrRemove(); + var AsyncAction2 = function(_super) { + __extends2(AsyncAction3, _super); + function AsyncAction3(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.pending = false; + return _this; + } + AsyncAction3.prototype.schedule = function(state, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (this.closed) { + return this; + } + this.state = state; + var id4 = this.id; + var scheduler = this.scheduler; + if (id4 != null) { + this.id = this.recycleAsyncId(scheduler, id4, delay); + } + this.pending = true; + this.delay = delay; + this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay); + return this; + }; + AsyncAction3.prototype.requestAsyncId = function(scheduler, _id, delay) { + if (delay === void 0) { + delay = 0; + } + return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); + }; + AsyncAction3.prototype.recycleAsyncId = function(_scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay != null && this.delay === delay && this.pending === false) { + return id4; + } + if (id4 != null) { + intervalProvider_1.intervalProvider.clearInterval(id4); + } + return void 0; + }; + AsyncAction3.prototype.execute = function(state, delay) { + if (this.closed) { + return new Error("executing a cancelled action"); + } + this.pending = false; + var error = this._execute(state, delay); + if (error) { + return error; + } else if (this.pending === false && this.id != null) { + this.id = this.recycleAsyncId(this.scheduler, this.id, null); + } + }; + AsyncAction3.prototype._execute = function(state, _delay) { + var errored = false; + var errorValue; + try { + this.work(state); + } catch (e) { + errored = true; + errorValue = e ? e : new Error("Scheduled action threw falsy error"); + } + if (errored) { + this.unsubscribe(); + return errorValue; + } + }; + AsyncAction3.prototype.unsubscribe = function() { + if (!this.closed) { + var _a2 = this, id4 = _a2.id, scheduler = _a2.scheduler; + var actions = scheduler.actions; + this.work = this.state = this.scheduler = null; + this.pending = false; + arrRemove_1.arrRemove(actions, this); + if (id4 != null) { + this.id = this.recycleAsyncId(scheduler, id4, null); + } + this.delay = null; + _super.prototype.unsubscribe.call(this); + } + }; + return AsyncAction3; + }(Action_1.Action); + exports2.AsyncAction = AsyncAction2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/Immediate.js + var require_Immediate = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/Immediate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TestTools = exports2.Immediate = void 0; + var nextHandle = 1; + var resolved; + var activeHandles = {}; + function findAndClearHandle(handle) { + if (handle in activeHandles) { + delete activeHandles[handle]; + return true; + } + return false; + } + exports2.Immediate = { + setImmediate: function(cb2) { + var handle = nextHandle++; + activeHandles[handle] = true; + if (!resolved) { + resolved = Promise.resolve(); + } + resolved.then(function() { + return findAndClearHandle(handle) && cb2(); + }); + return handle; + }, + clearImmediate: function(handle) { + findAndClearHandle(handle); + } + }; + exports2.TestTools = { + pending: function() { + return Object.keys(activeHandles).length; + } + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js + var require_immediateProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.immediateProvider = void 0; + var Immediate_1 = require_Immediate(); + var setImmediate2 = Immediate_1.Immediate.setImmediate; + var clearImmediate = Immediate_1.Immediate.clearImmediate; + exports2.immediateProvider = { + setImmediate: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate2).apply(void 0, __spreadArray2([], __read2(args))); + }, + clearImmediate: function(handle) { + var delegate = exports2.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js + var require_AsapAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsapAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var immediateProvider_1 = require_immediateProvider(); + var AsapAction = function(_super) { + __extends2(AsapAction2, _super); + function AsapAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + AsapAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0))); + }; + AsapAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id4, delay); + } + var actions = scheduler.actions; + if (id4 != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id4) { + immediateProvider_1.immediateProvider.clearImmediate(id4); + if (scheduler._scheduled === id4) { + scheduler._scheduled = void 0; + } + } + return void 0; + }; + return AsapAction2; + }(AsyncAction_1.AsyncAction); + exports2.AsapAction = AsapAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Scheduler.js + var require_Scheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Scheduler.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Scheduler = void 0; + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var Scheduler2 = function() { + function Scheduler3(schedulerActionCtor, now2) { + if (now2 === void 0) { + now2 = Scheduler3.now; + } + this.schedulerActionCtor = schedulerActionCtor; + this.now = now2; + } + Scheduler3.prototype.schedule = function(work, delay, state) { + if (delay === void 0) { + delay = 0; + } + return new this.schedulerActionCtor(this, work).schedule(state, delay); + }; + Scheduler3.now = dateTimestampProvider_1.dateTimestampProvider.now; + return Scheduler3; + }(); + exports2.Scheduler = Scheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js + var require_AsyncScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncScheduler = void 0; + var Scheduler_1 = require_Scheduler(); + var AsyncScheduler2 = function(_super) { + __extends2(AsyncScheduler3, _super); + function AsyncScheduler3(SchedulerAction, now2) { + if (now2 === void 0) { + now2 = Scheduler_1.Scheduler.now; + } + var _this = _super.call(this, SchedulerAction, now2) || this; + _this.actions = []; + _this._active = false; + return _this; + } + AsyncScheduler3.prototype.flush = function(action) { + var actions = this.actions; + if (this._active) { + actions.push(action); + return; + } + var error; + this._active = true; + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while (action = actions.shift()); + this._active = false; + if (error) { + while (action = actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AsyncScheduler3; + }(Scheduler_1.Scheduler); + exports2.AsyncScheduler = AsyncScheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js + var require_AsapScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsapScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var AsapScheduler = function(_super) { + __extends2(AsapScheduler2, _super); + function AsapScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + AsapScheduler2.prototype.flush = function(action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = void 0; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AsapScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.AsapScheduler = AsapScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/asap.js + var require_asap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.asap = exports2.asapScheduler = void 0; + var AsapAction_1 = require_AsapAction(); + var AsapScheduler_1 = require_AsapScheduler(); + exports2.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction); + exports2.asap = exports2.asapScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/async.js + var require_async = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/async.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.async = exports2.asyncScheduler = void 0; + var AsyncAction_1 = require_AsyncAction(); + var AsyncScheduler_1 = require_AsyncScheduler(); + exports2.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction); + exports2.async = exports2.asyncScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js + var require_QueueAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.QueueAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var QueueAction = function(_super) { + __extends2(QueueAction2, _super); + function QueueAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + QueueAction2.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay > 0) { + return _super.prototype.schedule.call(this, state, delay); + } + this.delay = delay; + this.state = state; + this.scheduler.flush(this); + return this; + }; + QueueAction2.prototype.execute = function(state, delay) { + return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); + }; + QueueAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay != null && delay > 0 || delay == null && this.delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.flush(this); + return 0; + }; + return QueueAction2; + }(AsyncAction_1.AsyncAction); + exports2.QueueAction = QueueAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js + var require_QueueScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.QueueScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var QueueScheduler = function(_super) { + __extends2(QueueScheduler2, _super); + function QueueScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + return QueueScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.QueueScheduler = QueueScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/queue.js + var require_queue = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.queue = exports2.queueScheduler = void 0; + var QueueAction_1 = require_QueueAction(); + var QueueScheduler_1 = require_QueueScheduler(); + exports2.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction); + exports2.queue = exports2.queueScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js + var require_AnimationFrameAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnimationFrameAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var animationFrameProvider_1 = require_animationFrameProvider(); + var AnimationFrameAction = function(_super) { + __extends2(AnimationFrameAction2, _super); + function AnimationFrameAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function() { + return scheduler.flush(void 0); + })); + }; + AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id4, delay); + } + var actions = scheduler.actions; + if (id4 != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id4) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id4); + scheduler._scheduled = void 0; + } + return void 0; + }; + return AnimationFrameAction2; + }(AsyncAction_1.AsyncAction); + exports2.AnimationFrameAction = AnimationFrameAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js + var require_AnimationFrameScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnimationFrameScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var AnimationFrameScheduler = function(_super) { + __extends2(AnimationFrameScheduler2, _super); + function AnimationFrameScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + AnimationFrameScheduler2.prototype.flush = function(action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = void 0; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AnimationFrameScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.AnimationFrameScheduler = AnimationFrameScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js + var require_animationFrame = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrame = exports2.animationFrameScheduler = void 0; + var AnimationFrameAction_1 = require_AnimationFrameAction(); + var AnimationFrameScheduler_1 = require_AnimationFrameScheduler(); + exports2.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction); + exports2.animationFrame = exports2.animationFrameScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js + var require_VirtualTimeScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VirtualAction = exports2.VirtualTimeScheduler = void 0; + var AsyncAction_1 = require_AsyncAction(); + var Subscription_1 = require_Subscription(); + var AsyncScheduler_1 = require_AsyncScheduler(); + var VirtualTimeScheduler = function(_super) { + __extends2(VirtualTimeScheduler2, _super); + function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) { + if (schedulerActionCtor === void 0) { + schedulerActionCtor = VirtualAction; + } + if (maxFrames === void 0) { + maxFrames = Infinity; + } + var _this = _super.call(this, schedulerActionCtor, function() { + return _this.frame; + }) || this; + _this.maxFrames = maxFrames; + _this.frame = 0; + _this.index = -1; + return _this; + } + VirtualTimeScheduler2.prototype.flush = function() { + var _a2 = this, actions = _a2.actions, maxFrames = _a2.maxFrames; + var error; + var action; + while ((action = actions[0]) && action.delay <= maxFrames) { + actions.shift(); + this.frame = action.delay; + if (error = action.execute(action.state, action.delay)) { + break; + } + } + if (error) { + while (action = actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + VirtualTimeScheduler2.frameTimeFactor = 10; + return VirtualTimeScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.VirtualTimeScheduler = VirtualTimeScheduler; + var VirtualAction = function(_super) { + __extends2(VirtualAction2, _super); + function VirtualAction2(scheduler, work, index) { + if (index === void 0) { + index = scheduler.index += 1; + } + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.index = index; + _this.active = true; + _this.index = scheduler.index = index; + return _this; + } + VirtualAction2.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + if (Number.isFinite(delay)) { + if (!this.id) { + return _super.prototype.schedule.call(this, state, delay); + } + this.active = false; + var action = new VirtualAction2(this.scheduler, this.work); + this.add(action); + return action.schedule(state, delay); + } else { + return Subscription_1.Subscription.EMPTY; + } + }; + VirtualAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + this.delay = scheduler.frame + delay; + var actions = scheduler.actions; + actions.push(this); + actions.sort(VirtualAction2.sortActions); + return 1; + }; + VirtualAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + return void 0; + }; + VirtualAction2.prototype._execute = function(state, delay) { + if (this.active === true) { + return _super.prototype._execute.call(this, state, delay); + } + }; + VirtualAction2.sortActions = function(a, b) { + if (a.delay === b.delay) { + if (a.index === b.index) { + return 0; + } else if (a.index > b.index) { + return 1; + } else { + return -1; + } + } else if (a.delay > b.delay) { + return 1; + } else { + return -1; + } + }; + return VirtualAction2; + }(AsyncAction_1.AsyncAction); + exports2.VirtualAction = VirtualAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/empty.js + var require_empty3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/empty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.empty = exports2.EMPTY = void 0; + var Observable_1 = require_Observable(); + exports2.EMPTY = new Observable_1.Observable(function(subscriber) { + return subscriber.complete(); + }); + function empty(scheduler) { + return scheduler ? emptyScheduled(scheduler) : exports2.EMPTY; + } + exports2.empty = empty; + function emptyScheduled(scheduler) { + return new Observable_1.Observable(function(subscriber) { + return scheduler.schedule(function() { + return subscriber.complete(); + }); + }); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isScheduler.js + var require_isScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isScheduler = void 0; + var isFunction_1 = require_isFunction(); + function isScheduler2(value) { + return value && isFunction_1.isFunction(value.schedule); + } + exports2.isScheduler = isScheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/args.js + var require_args = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/args.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.popNumber = exports2.popScheduler = exports2.popResultSelector = void 0; + var isFunction_1 = require_isFunction(); + var isScheduler_1 = require_isScheduler(); + function last2(arr) { + return arr[arr.length - 1]; + } + function popResultSelector2(args) { + return isFunction_1.isFunction(last2(args)) ? args.pop() : void 0; + } + exports2.popResultSelector = popResultSelector2; + function popScheduler2(args) { + return isScheduler_1.isScheduler(last2(args)) ? args.pop() : void 0; + } + exports2.popScheduler = popScheduler2; + function popNumber(args, defaultValue) { + return typeof last2(args) === "number" ? args.pop() : defaultValue; + } + exports2.popNumber = popNumber; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js + var require_isArrayLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isArrayLike = void 0; + exports2.isArrayLike = function(x) { + return x && typeof x.length === "number" && typeof x !== "function"; + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isPromise.js + var require_isPromise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isPromise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isPromise = void 0; + var isFunction_1 = require_isFunction(); + function isPromise2(value) { + return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then); + } + exports2.isPromise = isPromise2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js + var require_isInteropObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isInteropObservable = void 0; + var observable_1 = require_observable2(); + var isFunction_1 = require_isFunction(); + function isInteropObservable2(input) { + return isFunction_1.isFunction(input[observable_1.observable]); + } + exports2.isInteropObservable = isInteropObservable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js + var require_isAsyncIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isAsyncIterable = void 0; + var isFunction_1 = require_isFunction(); + function isAsyncIterable2(obj) { + return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); + } + exports2.isAsyncIterable = isAsyncIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js + var require_throwUnobservableError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createInvalidObservableTypeError = void 0; + function createInvalidObservableTypeError2(input) { + return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); + } + exports2.createInvalidObservableTypeError = createInvalidObservableTypeError2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/symbol/iterator.js + var require_iterator = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.iterator = exports2.getSymbolIterator = void 0; + function getSymbolIterator2() { + if (typeof Symbol !== "function" || !Symbol.iterator) { + return "@@iterator"; + } + return Symbol.iterator; + } + exports2.getSymbolIterator = getSymbolIterator2; + exports2.iterator = getSymbolIterator2(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isIterable.js + var require_isIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isIterable = void 0; + var iterator_1 = require_iterator(); + var isFunction_1 = require_isFunction(); + function isIterable2(input) { + return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]); + } + exports2.isIterable = isIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js + var require_isReadableStreamLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js"(exports2) { + "use strict"; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + var __await2 = exports2 && exports2.__await || function(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); + }; + var __asyncGenerator2 = exports2 && exports2.__asyncGenerator || function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r10) { + r10.value instanceof __await2 ? Promise.resolve(r10.value.v).then(fulfill, reject) : settle(q[0][2], r10); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f10, v) { + if (f10(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isReadableStreamLike = exports2.readableStreamLikeToAsyncGenerator = void 0; + var isFunction_1 = require_isFunction(); + function readableStreamLikeToAsyncGenerator2(readableStream) { + return __asyncGenerator2(this, arguments, function readableStreamLikeToAsyncGenerator_1() { + var reader, _a2, value, done; + return __generator2(this, function(_b2) { + switch (_b2.label) { + case 0: + reader = readableStream.getReader(); + _b2.label = 1; + case 1: + _b2.trys.push([1, , 9, 10]); + _b2.label = 2; + case 2: + if (false) + return [3, 8]; + return [4, __await2(reader.read())]; + case 3: + _a2 = _b2.sent(), value = _a2.value, done = _a2.done; + if (!done) + return [3, 5]; + return [4, __await2(void 0)]; + case 4: + return [2, _b2.sent()]; + case 5: + return [4, __await2(value)]; + case 6: + return [4, _b2.sent()]; + case 7: + _b2.sent(); + return [3, 2]; + case 8: + return [3, 10]; + case 9: + reader.releaseLock(); + return [7]; + case 10: + return [2]; + } + }); + }); + } + exports2.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator2; + function isReadableStreamLike2(obj) { + return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); + } + exports2.isReadableStreamLike = isReadableStreamLike2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js + var require_innerFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + var __asyncValues2 = exports2 && exports2.__asyncValues || function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v17) { + resolve({ value: v17, done: d }); + }, reject); + } + }; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromReadableStreamLike = exports2.fromAsyncIterable = exports2.fromIterable = exports2.fromPromise = exports2.fromArrayLike = exports2.fromInteropObservable = exports2.innerFrom = void 0; + var isArrayLike_1 = require_isArrayLike(); + var isPromise_1 = require_isPromise(); + var Observable_1 = require_Observable(); + var isInteropObservable_1 = require_isInteropObservable(); + var isAsyncIterable_1 = require_isAsyncIterable(); + var throwUnobservableError_1 = require_throwUnobservableError(); + var isIterable_1 = require_isIterable(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + var isFunction_1 = require_isFunction(); + var reportUnhandledError_1 = require_reportUnhandledError(); + var observable_1 = require_observable2(); + function innerFrom2(input) { + if (input instanceof Observable_1.Observable) { + return input; + } + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return fromInteropObservable2(input); + } + if (isArrayLike_1.isArrayLike(input)) { + return fromArrayLike2(input); + } + if (isPromise_1.isPromise(input)) { + return fromPromise2(input); + } + if (isAsyncIterable_1.isAsyncIterable(input)) { + return fromAsyncIterable2(input); + } + if (isIterable_1.isIterable(input)) { + return fromIterable2(input); + } + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return fromReadableStreamLike2(input); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); + } + exports2.innerFrom = innerFrom2; + function fromInteropObservable2(obj) { + return new Observable_1.Observable(function(subscriber) { + var obs = obj[observable_1.observable](); + if (isFunction_1.isFunction(obs.subscribe)) { + return obs.subscribe(subscriber); + } + throw new TypeError("Provided object does not correctly implement Symbol.observable"); + }); + } + exports2.fromInteropObservable = fromInteropObservable2; + function fromArrayLike2(array) { + return new Observable_1.Observable(function(subscriber) { + for (var i = 0; i < array.length && !subscriber.closed; i++) { + subscriber.next(array[i]); + } + subscriber.complete(); + }); + } + exports2.fromArrayLike = fromArrayLike2; + function fromPromise2(promise) { + return new Observable_1.Observable(function(subscriber) { + promise.then(function(value) { + if (!subscriber.closed) { + subscriber.next(value); + subscriber.complete(); + } + }, function(err) { + return subscriber.error(err); + }).then(null, reportUnhandledError_1.reportUnhandledError); + }); + } + exports2.fromPromise = fromPromise2; + function fromIterable2(iterable) { + return new Observable_1.Observable(function(subscriber) { + var e_1, _a2; + try { + for (var iterable_1 = __values2(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { + var value = iterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return; + } + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (iterable_1_1 && !iterable_1_1.done && (_a2 = iterable_1.return)) + _a2.call(iterable_1); + } finally { + if (e_1) + throw e_1.error; + } + } + subscriber.complete(); + }); + } + exports2.fromIterable = fromIterable2; + function fromAsyncIterable2(asyncIterable) { + return new Observable_1.Observable(function(subscriber) { + process3(asyncIterable, subscriber).catch(function(err) { + return subscriber.error(err); + }); + }); + } + exports2.fromAsyncIterable = fromAsyncIterable2; + function fromReadableStreamLike2(readableStream) { + return fromAsyncIterable2(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream)); + } + exports2.fromReadableStreamLike = fromReadableStreamLike2; + function process3(asyncIterable, subscriber) { + var asyncIterable_1, asyncIterable_1_1; + var e_2, _a2; + return __awaiter16(this, void 0, void 0, function() { + var value, e_2_1; + return __generator2(this, function(_b2) { + switch (_b2.label) { + case 0: + _b2.trys.push([0, 5, 6, 11]); + asyncIterable_1 = __asyncValues2(asyncIterable); + _b2.label = 1; + case 1: + return [4, asyncIterable_1.next()]; + case 2: + if (!(asyncIterable_1_1 = _b2.sent(), !asyncIterable_1_1.done)) + return [3, 4]; + value = asyncIterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return [2]; + } + _b2.label = 3; + case 3: + return [3, 1]; + case 4: + return [3, 11]; + case 5: + e_2_1 = _b2.sent(); + e_2 = { error: e_2_1 }; + return [3, 11]; + case 6: + _b2.trys.push([6, , 9, 10]); + if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a2 = asyncIterable_1.return))) + return [3, 8]; + return [4, _a2.call(asyncIterable_1)]; + case 7: + _b2.sent(); + _b2.label = 8; + case 8: + return [3, 10]; + case 9: + if (e_2) + throw e_2.error; + return [7]; + case 10: + return [7]; + case 11: + subscriber.complete(); + return [2]; + } + }); + }); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js + var require_executeSchedule = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.executeSchedule = void 0; + function executeSchedule2(parentSubscription, scheduler, work, delay, repeat) { + if (delay === void 0) { + delay = 0; + } + if (repeat === void 0) { + repeat = false; + } + var scheduleSubscription = scheduler.schedule(function() { + work(); + if (repeat) { + parentSubscription.add(this.schedule(null, delay)); + } else { + this.unsubscribe(); + } + }, delay); + parentSubscription.add(scheduleSubscription); + if (!repeat) { + return scheduleSubscription; + } + } + exports2.executeSchedule = executeSchedule2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/observeOn.js + var require_observeOn = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observeOn = void 0; + var executeSchedule_1 = require_executeSchedule(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function observeOn2(scheduler, delay) { + if (delay === void 0) { + delay = 0; + } + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.next(value); + }, delay); + }, function() { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.complete(); + }, delay); + }, function(err) { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.error(err); + }, delay); + })); + }); + } + exports2.observeOn = observeOn2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js + var require_subscribeOn = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeOn = void 0; + var lift_1 = require_lift(); + function subscribeOn2(scheduler, delay) { + if (delay === void 0) { + delay = 0; + } + return lift_1.operate(function(source, subscriber) { + subscriber.add(scheduler.schedule(function() { + return source.subscribe(subscriber); + }, delay)); + }); + } + exports2.subscribeOn = subscribeOn2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js + var require_scheduleObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleObservable = void 0; + var innerFrom_1 = require_innerFrom(); + var observeOn_1 = require_observeOn(); + var subscribeOn_1 = require_subscribeOn(); + function scheduleObservable2(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + } + exports2.scheduleObservable = scheduleObservable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js + var require_schedulePromise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.schedulePromise = void 0; + var innerFrom_1 = require_innerFrom(); + var observeOn_1 = require_observeOn(); + var subscribeOn_1 = require_subscribeOn(); + function schedulePromise2(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + } + exports2.schedulePromise = schedulePromise2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js + var require_scheduleArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleArray = void 0; + var Observable_1 = require_Observable(); + function scheduleArray2(input, scheduler) { + return new Observable_1.Observable(function(subscriber) { + var i = 0; + return scheduler.schedule(function() { + if (i === input.length) { + subscriber.complete(); + } else { + subscriber.next(input[i++]); + if (!subscriber.closed) { + this.schedule(); + } + } + }); + }); + } + exports2.scheduleArray = scheduleArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js + var require_scheduleIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleIterable = void 0; + var Observable_1 = require_Observable(); + var iterator_1 = require_iterator(); + var isFunction_1 = require_isFunction(); + var executeSchedule_1 = require_executeSchedule(); + function scheduleIterable2(input, scheduler) { + return new Observable_1.Observable(function(subscriber) { + var iterator2; + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + iterator2 = input[iterator_1.iterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + var _a2; + var value; + var done; + try { + _a2 = iterator2.next(), value = _a2.value, done = _a2.done; + } catch (err) { + subscriber.error(err); + return; + } + if (done) { + subscriber.complete(); + } else { + subscriber.next(value); + } + }, 0, true); + }); + return function() { + return isFunction_1.isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return(); + }; + }); + } + exports2.scheduleIterable = scheduleIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js + var require_scheduleAsyncIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleAsyncIterable = void 0; + var Observable_1 = require_Observable(); + var executeSchedule_1 = require_executeSchedule(); + function scheduleAsyncIterable2(input, scheduler) { + if (!input) { + throw new Error("Iterable cannot be null"); + } + return new Observable_1.Observable(function(subscriber) { + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + var iterator2 = input[Symbol.asyncIterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + iterator2.next().then(function(result) { + if (result.done) { + subscriber.complete(); + } else { + subscriber.next(result.value); + } + }); + }, 0, true); + }); + }); + } + exports2.scheduleAsyncIterable = scheduleAsyncIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js + var require_scheduleReadableStreamLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleReadableStreamLike = void 0; + var scheduleAsyncIterable_1 = require_scheduleAsyncIterable(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + function scheduleReadableStreamLike2(input, scheduler) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler); + } + exports2.scheduleReadableStreamLike = scheduleReadableStreamLike2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js + var require_scheduled = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduled = void 0; + var scheduleObservable_1 = require_scheduleObservable(); + var schedulePromise_1 = require_schedulePromise(); + var scheduleArray_1 = require_scheduleArray(); + var scheduleIterable_1 = require_scheduleIterable(); + var scheduleAsyncIterable_1 = require_scheduleAsyncIterable(); + var isInteropObservable_1 = require_isInteropObservable(); + var isPromise_1 = require_isPromise(); + var isArrayLike_1 = require_isArrayLike(); + var isIterable_1 = require_isIterable(); + var isAsyncIterable_1 = require_isAsyncIterable(); + var throwUnobservableError_1 = require_throwUnobservableError(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + var scheduleReadableStreamLike_1 = require_scheduleReadableStreamLike(); + function scheduled2(input, scheduler) { + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return scheduleObservable_1.scheduleObservable(input, scheduler); + } + if (isArrayLike_1.isArrayLike(input)) { + return scheduleArray_1.scheduleArray(input, scheduler); + } + if (isPromise_1.isPromise(input)) { + return schedulePromise_1.schedulePromise(input, scheduler); + } + if (isAsyncIterable_1.isAsyncIterable(input)) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler); + } + if (isIterable_1.isIterable(input)) { + return scheduleIterable_1.scheduleIterable(input, scheduler); + } + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); + } + exports2.scheduled = scheduled2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/from.js + var require_from = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/from.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.from = void 0; + var scheduled_1 = require_scheduled(); + var innerFrom_1 = require_innerFrom(); + function from2(input, scheduler) { + return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input); + } + exports2.from = from2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/of.js + var require_of = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/of.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.of = void 0; + var args_1 = require_args(); + var from_1 = require_from(); + function of4() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + return from_1.from(args, scheduler); + } + exports2.of = of4; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/throwError.js + var require_throwError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/throwError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throwError = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + function throwError(errorOrErrorFactory, scheduler) { + var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() { + return errorOrErrorFactory; + }; + var init2 = function(subscriber) { + return subscriber.error(errorFactory()); + }; + return new Observable_1.Observable(scheduler ? function(subscriber) { + return scheduler.schedule(init2, 0, subscriber); + } : init2); + } + exports2.throwError = throwError; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Notification.js + var require_Notification = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Notification.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observeNotification = exports2.Notification = exports2.NotificationKind = void 0; + var empty_1 = require_empty3(); + var of_1 = require_of(); + var throwError_1 = require_throwError(); + var isFunction_1 = require_isFunction(); + var NotificationKind; + (function(NotificationKind2) { + NotificationKind2["NEXT"] = "N"; + NotificationKind2["ERROR"] = "E"; + NotificationKind2["COMPLETE"] = "C"; + })(NotificationKind = exports2.NotificationKind || (exports2.NotificationKind = {})); + var Notification = function() { + function Notification2(kind, value, error) { + this.kind = kind; + this.value = value; + this.error = error; + this.hasValue = kind === "N"; + } + Notification2.prototype.observe = function(observer) { + return observeNotification(this, observer); + }; + Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) { + var _a2 = this, kind = _a2.kind, value = _a2.value, error = _a2.error; + return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); + }; + Notification2.prototype.accept = function(nextOrObserver, error, complete) { + var _a2; + return isFunction_1.isFunction((_a2 = nextOrObserver) === null || _a2 === void 0 ? void 0 : _a2.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete); + }; + Notification2.prototype.toObservable = function() { + var _a2 = this, kind = _a2.kind, value = _a2.value, error = _a2.error; + var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() { + return error; + }) : kind === "C" ? empty_1.EMPTY : 0; + if (!result) { + throw new TypeError("Unexpected notification kind " + kind); + } + return result; + }; + Notification2.createNext = function(value) { + return new Notification2("N", value); + }; + Notification2.createError = function(err) { + return new Notification2("E", void 0, err); + }; + Notification2.createComplete = function() { + return Notification2.completeNotification; + }; + Notification2.completeNotification = new Notification2("C"); + return Notification2; + }(); + exports2.Notification = Notification; + function observeNotification(notification, observer) { + var _a2, _b2, _c2; + var _d2 = notification, kind = _d2.kind, value = _d2.value, error = _d2.error; + if (typeof kind !== "string") { + throw new TypeError('Invalid notification, missing "kind"'); + } + kind === "N" ? (_a2 = observer.next) === null || _a2 === void 0 ? void 0 : _a2.call(observer, value) : kind === "E" ? (_b2 = observer.error) === null || _b2 === void 0 ? void 0 : _b2.call(observer, error) : (_c2 = observer.complete) === null || _c2 === void 0 ? void 0 : _c2.call(observer); + } + exports2.observeNotification = observeNotification; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isObservable.js + var require_isObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isObservable = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + function isObservable(obj) { + return !!obj && (obj instanceof Observable_1.Observable || isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe)); + } + exports2.isObservable = isObservable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/EmptyError.js + var require_EmptyError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EmptyError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.EmptyError = createErrorClass_1.createErrorClass(function(_super) { + return function EmptyErrorImpl() { + _super(this); + this.name = "EmptyError"; + this.message = "no elements in sequence"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/lastValueFrom.js + var require_lastValueFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lastValueFrom = void 0; + var EmptyError_1 = require_EmptyError(); + function lastValueFrom(source, config7) { + var hasConfig = typeof config7 === "object"; + return new Promise(function(resolve, reject) { + var _hasValue = false; + var _value; + source.subscribe({ + next: function(value) { + _value = value; + _hasValue = true; + }, + error: reject, + complete: function() { + if (_hasValue) { + resolve(_value); + } else if (hasConfig) { + resolve(config7.defaultValue); + } else { + reject(new EmptyError_1.EmptyError()); + } + } + }); + }); + } + exports2.lastValueFrom = lastValueFrom; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/firstValueFrom.js + var require_firstValueFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.firstValueFrom = void 0; + var EmptyError_1 = require_EmptyError(); + var Subscriber_1 = require_Subscriber(); + function firstValueFrom2(source, config7) { + var hasConfig = typeof config7 === "object"; + return new Promise(function(resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function(value) { + resolve(value); + subscriber.unsubscribe(); + }, + error: reject, + complete: function() { + if (hasConfig) { + resolve(config7.defaultValue); + } else { + reject(new EmptyError_1.EmptyError()); + } + } + }); + source.subscribe(subscriber); + }); + } + exports2.firstValueFrom = firstValueFrom2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js + var require_ArgumentOutOfRangeError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ArgumentOutOfRangeError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function(_super) { + return function ArgumentOutOfRangeErrorImpl() { + _super(this); + this.name = "ArgumentOutOfRangeError"; + this.message = "argument out of range"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js + var require_NotFoundError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.NotFoundError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.NotFoundError = createErrorClass_1.createErrorClass(function(_super) { + return function NotFoundErrorImpl(message) { + _super(this); + this.name = "NotFoundError"; + this.message = message; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/SequenceError.js + var require_SequenceError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SequenceError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.SequenceError = createErrorClass_1.createErrorClass(function(_super) { + return function SequenceErrorImpl(message) { + _super(this); + this.name = "SequenceError"; + this.message = message; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isDate.js + var require_isDate = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isDate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isValidDate = void 0; + function isValidDate(value) { + return value instanceof Date && !isNaN(value); + } + exports2.isValidDate = isValidDate; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeout.js + var require_timeout = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeout.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeout = exports2.TimeoutError = void 0; + var async_1 = require_async(); + var isDate_1 = require_isDate(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var createErrorClass_1 = require_createErrorClass(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var executeSchedule_1 = require_executeSchedule(); + exports2.TimeoutError = createErrorClass_1.createErrorClass(function(_super) { + return function TimeoutErrorImpl(info) { + if (info === void 0) { + info = null; + } + _super(this); + this.message = "Timeout has occurred"; + this.name = "TimeoutError"; + this.info = info; + }; + }); + function timeout(config7, schedulerArg) { + var _a2 = isDate_1.isValidDate(config7) ? { first: config7 } : typeof config7 === "number" ? { each: config7 } : config7, first = _a2.first, each = _a2.each, _b2 = _a2.with, _with = _b2 === void 0 ? timeoutErrorFactory : _b2, _c2 = _a2.scheduler, scheduler = _c2 === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c2, _d2 = _a2.meta, meta2 = _d2 === void 0 ? null : _d2; + if (first == null && each == null) { + throw new TypeError("No timeout provided."); + } + return lift_1.operate(function(source, subscriber) { + var originalSourceSubscription; + var timerSubscription; + var lastValue = null; + var seen = 0; + var startTimer = function(delay) { + timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + try { + originalSourceSubscription.unsubscribe(); + innerFrom_1.innerFrom(_with({ + meta: meta2, + lastValue, + seen + })).subscribe(subscriber); + } catch (err) { + subscriber.error(err); + } + }, delay); + }; + originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + seen++; + subscriber.next(lastValue = value); + each > 0 && startTimer(each); + }, void 0, void 0, function() { + if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + } + lastValue = null; + })); + !seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each); + }); + } + exports2.timeout = timeout; + function timeoutErrorFactory(info) { + throw new exports2.TimeoutError(info); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/map.js + var require_map = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/map.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.map = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function map2(project, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + subscriber.next(project.call(thisArg, value, index++)); + })); + }); + } + exports2.map = map2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js + var require_mapOneOrManyArgs = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapOneOrManyArgs = void 0; + var map_1 = require_map(); + var isArray4 = Array.isArray; + function callOrApply2(fn2, args) { + return isArray4(args) ? fn2.apply(void 0, __spreadArray2([], __read2(args))) : fn2(args); + } + function mapOneOrManyArgs2(fn2) { + return map_1.map(function(args) { + return callOrApply2(fn2, args); + }); + } + exports2.mapOneOrManyArgs = mapOneOrManyArgs2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js + var require_bindCallbackInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindCallbackInternals = void 0; + var isScheduler_1 = require_isScheduler(); + var Observable_1 = require_Observable(); + var subscribeOn_1 = require_subscribeOn(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var observeOn_1 = require_observeOn(); + var AsyncSubject_1 = require_AsyncSubject(); + function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { + if (resultSelector) { + if (isScheduler_1.isScheduler(resultSelector)) { + scheduler = resultSelector; + } else { + return function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler).apply(this, args).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + }; + } + } + if (scheduler) { + return function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc).apply(this, args).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + }; + } + return function() { + var _this = this; + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var subject2 = new AsyncSubject_1.AsyncSubject(); + var uninitialized = true; + return new Observable_1.Observable(function(subscriber) { + var subs = subject2.subscribe(subscriber); + if (uninitialized) { + uninitialized = false; + var isAsync_1 = false; + var isComplete_1 = false; + callbackFunc.apply(_this, __spreadArray2(__spreadArray2([], __read2(args)), [ + function() { + var results = []; + for (var _i3 = 0; _i3 < arguments.length; _i3++) { + results[_i3] = arguments[_i3]; + } + if (isNodeStyle) { + var err = results.shift(); + if (err != null) { + subject2.error(err); + return; + } + } + subject2.next(1 < results.length ? results : results[0]); + isComplete_1 = true; + if (isAsync_1) { + subject2.complete(); + } + } + ])); + if (isComplete_1) { + subject2.complete(); + } + isAsync_1 = true; + } + return subs; + }); + }; + } + exports2.bindCallbackInternals = bindCallbackInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js + var require_bindCallback = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindCallback = void 0; + var bindCallbackInternals_1 = require_bindCallbackInternals(); + function bindCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); + } + exports2.bindCallback = bindCallback; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js + var require_bindNodeCallback = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindNodeCallback = void 0; + var bindCallbackInternals_1 = require_bindCallbackInternals(); + function bindNodeCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); + } + exports2.bindNodeCallback = bindNodeCallback; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js + var require_argsArgArrayOrObject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.argsArgArrayOrObject = void 0; + var isArray4 = Array.isArray; + var getPrototypeOf2 = Object.getPrototypeOf; + var objectProto2 = Object.prototype; + var getKeys2 = Object.keys; + function argsArgArrayOrObject2(args) { + if (args.length === 1) { + var first_1 = args[0]; + if (isArray4(first_1)) { + return { args: first_1, keys: null }; + } + if (isPOJO2(first_1)) { + var keys = getKeys2(first_1); + return { + args: keys.map(function(key2) { + return first_1[key2]; + }), + keys + }; + } + } + return { args, keys: null }; + } + exports2.argsArgArrayOrObject = argsArgArrayOrObject2; + function isPOJO2(obj) { + return obj && typeof obj === "object" && getPrototypeOf2(obj) === objectProto2; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/createObject.js + var require_createObject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/createObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createObject = void 0; + function createObject2(keys, values) { + return keys.reduce(function(result, key2, i) { + return result[key2] = values[i], result; + }, {}); + } + exports2.createObject = createObject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js + var require_combineLatest = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestInit = exports2.combineLatest = void 0; + var Observable_1 = require_Observable(); + var argsArgArrayOrObject_1 = require_argsArgArrayOrObject(); + var from_1 = require_from(); + var identity_1 = require_identity(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var args_1 = require_args(); + var createObject_1 = require_createObject(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var executeSchedule_1 = require_executeSchedule(); + function combineLatest3() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var resultSelector = args_1.popResultSelector(args); + var _a2 = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a2.args, keys = _a2.keys; + if (observables.length === 0) { + return from_1.from([], scheduler); + } + var result = new Observable_1.Observable(combineLatestInit2(observables, scheduler, keys ? function(values) { + return createObject_1.createObject(keys, values); + } : identity_1.identity)); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; + } + exports2.combineLatest = combineLatest3; + function combineLatestInit2(observables, scheduler, valueTransform) { + if (valueTransform === void 0) { + valueTransform = identity_1.identity; + } + return function(subscriber) { + maybeSchedule2(scheduler, function() { + var length = observables.length; + var values = new Array(length); + var active = length; + var remainingFirstValues = length; + var _loop_1 = function(i10) { + maybeSchedule2(scheduler, function() { + var source = from_1.from(observables[i10], scheduler); + var hasFirstValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + values[i10] = value; + if (!hasFirstValue) { + hasFirstValue = true; + remainingFirstValues--; + } + if (!remainingFirstValues) { + subscriber.next(valueTransform(values.slice())); + } + }, function() { + if (!--active) { + subscriber.complete(); + } + })); + }, subscriber); + }; + for (var i = 0; i < length; i++) { + _loop_1(i); + } + }, subscriber); + }; + } + exports2.combineLatestInit = combineLatestInit2; + function maybeSchedule2(scheduler, execute, subscription) { + if (scheduler) { + executeSchedule_1.executeSchedule(subscription, scheduler, execute); + } else { + execute(); + } + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js + var require_mergeInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeInternals = void 0; + var innerFrom_1 = require_innerFrom(); + var executeSchedule_1 = require_executeSchedule(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { + var buffer = []; + var active = 0; + var index = 0; + var isComplete = false; + var checkComplete = function() { + if (isComplete && !buffer.length && !active) { + subscriber.complete(); + } + }; + var outerNext = function(value) { + return active < concurrent ? doInnerSub(value) : buffer.push(value); + }; + var doInnerSub = function(value) { + expand && subscriber.next(value); + active++; + var innerComplete = false; + innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) { + onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); + if (expand) { + outerNext(innerValue); + } else { + subscriber.next(innerValue); + } + }, function() { + innerComplete = true; + }, void 0, function() { + if (innerComplete) { + try { + active--; + var _loop_1 = function() { + var bufferedValue = buffer.shift(); + if (innerSubScheduler) { + executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function() { + return doInnerSub(bufferedValue); + }); + } else { + doInnerSub(bufferedValue); + } + }; + while (buffer.length && active < concurrent) { + _loop_1(); + } + checkComplete(); + } catch (err) { + subscriber.error(err); + } + } + })); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function() { + isComplete = true; + checkComplete(); + })); + return function() { + additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); + }; + } + exports2.mergeInternals = mergeInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js + var require_mergeMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeMap = void 0; + var map_1 = require_map(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + var isFunction_1 = require_isFunction(); + function mergeMap(project, resultSelector, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap(function(a, i) { + return map_1.map(function(b, ii2) { + return resultSelector(a, b, i, ii2); + })(innerFrom_1.innerFrom(project(a, i))); + }, concurrent); + } else if (typeof resultSelector === "number") { + concurrent = resultSelector; + } + return lift_1.operate(function(source, subscriber) { + return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent); + }); + } + exports2.mergeMap = mergeMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js + var require_mergeAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeAll = void 0; + var mergeMap_1 = require_mergeMap(); + var identity_1 = require_identity(); + function mergeAll(concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + return mergeMap_1.mergeMap(identity_1.identity, concurrent); + } + exports2.mergeAll = mergeAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatAll.js + var require_concatAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatAll = void 0; + var mergeAll_1 = require_mergeAll(); + function concatAll() { + return mergeAll_1.mergeAll(1); + } + exports2.concatAll = concatAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/concat.js + var require_concat2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/concat.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concat = void 0; + var concatAll_1 = require_concatAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function concat12() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args))); + } + exports2.concat = concat12; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/defer.js + var require_defer = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/defer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defer = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + function defer(observableFactory) { + return new Observable_1.Observable(function(subscriber) { + innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber); + }); + } + exports2.defer = defer; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/connectable.js + var require_connectable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/connectable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.connectable = void 0; + var Subject_1 = require_Subject(); + var Observable_1 = require_Observable(); + var defer_1 = require_defer(); + var DEFAULT_CONFIG = { + connector: function() { + return new Subject_1.Subject(); + }, + resetOnDisconnect: true + }; + function connectable(source, config7) { + if (config7 === void 0) { + config7 = DEFAULT_CONFIG; + } + var connection = null; + var connector = config7.connector, _a2 = config7.resetOnDisconnect, resetOnDisconnect = _a2 === void 0 ? true : _a2; + var subject2 = connector(); + var result = new Observable_1.Observable(function(subscriber) { + return subject2.subscribe(subscriber); + }); + result.connect = function() { + if (!connection || connection.closed) { + connection = defer_1.defer(function() { + return source; + }).subscribe(subject2); + if (resetOnDisconnect) { + connection.add(function() { + return subject2 = connector(); + }); + } + } + return connection; + }; + return result; + } + exports2.connectable = connectable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js + var require_forkJoin = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.forkJoin = void 0; + var Observable_1 = require_Observable(); + var argsArgArrayOrObject_1 = require_argsArgArrayOrObject(); + var innerFrom_1 = require_innerFrom(); + var args_1 = require_args(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var createObject_1 = require_createObject(); + function forkJoin() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + var _a2 = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a2.args, keys = _a2.keys; + var result = new Observable_1.Observable(function(subscriber) { + var length = sources.length; + if (!length) { + subscriber.complete(); + return; + } + var values = new Array(length); + var remainingCompletions = length; + var remainingEmissions = length; + var _loop_1 = function(sourceIndex2) { + var hasValue = false; + innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (!hasValue) { + hasValue = true; + remainingEmissions--; + } + values[sourceIndex2] = value; + }, function() { + return remainingCompletions--; + }, void 0, function() { + if (!remainingCompletions || !hasValue) { + if (!remainingEmissions) { + subscriber.next(keys ? createObject_1.createObject(keys, values) : values); + } + subscriber.complete(); + } + })); + }; + for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { + _loop_1(sourceIndex); + } + }); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; + } + exports2.forkJoin = forkJoin; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js + var require_fromEvent = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromEvent = void 0; + var innerFrom_1 = require_innerFrom(); + var Observable_1 = require_Observable(); + var mergeMap_1 = require_mergeMap(); + var isArrayLike_1 = require_isArrayLike(); + var isFunction_1 = require_isFunction(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var nodeEventEmitterMethods = ["addListener", "removeListener"]; + var eventTargetMethods = ["addEventListener", "removeEventListener"]; + var jqueryMethods = ["on", "off"]; + function fromEvent(target, eventName, options, resultSelector) { + if (isFunction_1.isFunction(options)) { + resultSelector = options; + options = void 0; + } + if (resultSelector) { + return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + var _a2 = __read2(isEventTarget(target) ? eventTargetMethods.map(function(methodName) { + return function(handler) { + return target[methodName](eventName, handler, options); + }; + }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add6 = _a2[0], remove2 = _a2[1]; + if (!add6) { + if (isArrayLike_1.isArrayLike(target)) { + return mergeMap_1.mergeMap(function(subTarget) { + return fromEvent(subTarget, eventName, options); + })(innerFrom_1.innerFrom(target)); + } + } + if (!add6) { + throw new TypeError("Invalid event target"); + } + return new Observable_1.Observable(function(subscriber) { + var handler = function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return subscriber.next(1 < args.length ? args : args[0]); + }; + add6(handler); + return function() { + return remove2(handler); + }; + }); + } + exports2.fromEvent = fromEvent; + function toCommonHandlerRegistry(target, eventName) { + return function(methodName) { + return function(handler) { + return target[methodName](eventName, handler); + }; + }; + } + function isNodeStyleEventEmitter(target) { + return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener); + } + function isJQueryStyleEventEmitter(target) { + return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off); + } + function isEventTarget(target) { + return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js + var require_fromEventPattern = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromEventPattern = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + function fromEventPattern(addHandler, removeHandler, resultSelector) { + if (resultSelector) { + return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + return new Observable_1.Observable(function(subscriber) { + var handler = function() { + var e = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + e[_i2] = arguments[_i2]; + } + return subscriber.next(e.length === 1 ? e[0] : e); + }; + var retValue = addHandler(handler); + return isFunction_1.isFunction(removeHandler) ? function() { + return removeHandler(handler, retValue); + } : void 0; + }); + } + exports2.fromEventPattern = fromEventPattern; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/generate.js + var require_generate2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/generate.js"(exports2) { + "use strict"; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.generate = void 0; + var identity_1 = require_identity(); + var isScheduler_1 = require_isScheduler(); + var defer_1 = require_defer(); + var scheduleIterable_1 = require_scheduleIterable(); + function generate3(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { + var _a2, _b2; + var resultSelector; + var initialState; + if (arguments.length === 1) { + _a2 = initialStateOrOptions, initialState = _a2.initialState, condition = _a2.condition, iterate = _a2.iterate, _b2 = _a2.resultSelector, resultSelector = _b2 === void 0 ? identity_1.identity : _b2, scheduler = _a2.scheduler; + } else { + initialState = initialStateOrOptions; + if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) { + resultSelector = identity_1.identity; + scheduler = resultSelectorOrScheduler; + } else { + resultSelector = resultSelectorOrScheduler; + } + } + function gen3() { + var state; + return __generator2(this, function(_a3) { + switch (_a3.label) { + case 0: + state = initialState; + _a3.label = 1; + case 1: + if (!(!condition || condition(state))) + return [3, 4]; + return [4, resultSelector(state)]; + case 2: + _a3.sent(); + _a3.label = 3; + case 3: + state = iterate(state); + return [3, 1]; + case 4: + return [2]; + } + }); + } + return defer_1.defer(scheduler ? function() { + return scheduleIterable_1.scheduleIterable(gen3(), scheduler); + } : gen3); + } + exports2.generate = generate3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/iif.js + var require_iif = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/iif.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.iif = void 0; + var defer_1 = require_defer(); + function iif(condition, trueResult, falseResult) { + return defer_1.defer(function() { + return condition() ? trueResult : falseResult; + }); + } + exports2.iif = iif; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/timer.js + var require_timer = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/timer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timer = void 0; + var Observable_1 = require_Observable(); + var async_1 = require_async(); + var isScheduler_1 = require_isScheduler(); + var isDate_1 = require_isDate(); + function timer2(dueTime, intervalOrScheduler, scheduler) { + if (dueTime === void 0) { + dueTime = 0; + } + if (scheduler === void 0) { + scheduler = async_1.async; + } + var intervalDuration = -1; + if (intervalOrScheduler != null) { + if (isScheduler_1.isScheduler(intervalOrScheduler)) { + scheduler = intervalOrScheduler; + } else { + intervalDuration = intervalOrScheduler; + } + } + return new Observable_1.Observable(function(subscriber) { + var due2 = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; + if (due2 < 0) { + due2 = 0; + } + var n = 0; + return scheduler.schedule(function() { + if (!subscriber.closed) { + subscriber.next(n++); + if (0 <= intervalDuration) { + this.schedule(void 0, intervalDuration); + } else { + subscriber.complete(); + } + } + }, due2); + }); + } + exports2.timer = timer2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/interval.js + var require_interval = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/interval.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.interval = void 0; + var async_1 = require_async(); + var timer_1 = require_timer(); + function interval(period, scheduler) { + if (period === void 0) { + period = 0; + } + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + if (period < 0) { + period = 0; + } + return timer_1.timer(period, period, scheduler); + } + exports2.interval = interval; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/merge.js + var require_merge = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/merge.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.merge = void 0; + var mergeAll_1 = require_mergeAll(); + var innerFrom_1 = require_innerFrom(); + var empty_1 = require_empty3(); + var args_1 = require_args(); + var from_1 = require_from(); + function merge() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + var sources = args; + return !sources.length ? empty_1.EMPTY : sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler)); + } + exports2.merge = merge; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/never.js + var require_never = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/never.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.never = exports2.NEVER = void 0; + var Observable_1 = require_Observable(); + var noop_1 = require_noop2(); + exports2.NEVER = new Observable_1.Observable(noop_1.noop); + function never() { + return exports2.NEVER; + } + exports2.never = never; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js + var require_argsOrArgArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.argsOrArgArray = void 0; + var isArray4 = Array.isArray; + function argsOrArgArray2(args) { + return args.length === 1 && isArray4(args[0]) ? args[0] : args; + } + exports2.argsOrArgArray = argsOrArgArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js + var require_onErrorResumeNext = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.onErrorResumeNext = void 0; + var Observable_1 = require_Observable(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function onErrorResumeNext() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return new Observable_1.Observable(function(subscriber) { + var sourceIndex = 0; + var subscribeNext = function() { + if (sourceIndex < nextSources.length) { + var nextSource = void 0; + try { + nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]); + } catch (err) { + subscribeNext(); + return; + } + var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop); + nextSource.subscribe(innerSubscriber); + innerSubscriber.add(subscribeNext); + } else { + subscriber.complete(); + } + }; + subscribeNext(); + }); + } + exports2.onErrorResumeNext = onErrorResumeNext; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/pairs.js + var require_pairs = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/pairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairs = void 0; + var from_1 = require_from(); + function pairs(obj, scheduler) { + return from_1.from(Object.entries(obj), scheduler); + } + exports2.pairs = pairs; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/not.js + var require_not = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/not.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.not = void 0; + function not(pred, thisArg) { + return function(value, index) { + return !pred.call(thisArg, value, index); + }; + } + exports2.not = not; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/filter.js + var require_filter2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/filter.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filter = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function filter(predicate, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return predicate.call(thisArg, value, index++) && subscriber.next(value); + })); + }); + } + exports2.filter = filter; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/partition.js + var require_partition = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/partition.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.partition = void 0; + var not_1 = require_not(); + var filter_1 = require_filter2(); + var innerFrom_1 = require_innerFrom(); + function partition(source, predicate, thisArg) { + return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))]; + } + exports2.partition = partition; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/race.js + var require_race = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/race.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.raceInit = exports2.race = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function race() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + sources = argsOrArgArray_1.argsOrArgArray(sources); + return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources)); + } + exports2.race = race; + function raceInit(sources) { + return function(subscriber) { + var subscriptions = []; + var _loop_1 = function(i10) { + subscriptions.push(innerFrom_1.innerFrom(sources[i10]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (subscriptions) { + for (var s = 0; s < subscriptions.length; s++) { + s !== i10 && subscriptions[s].unsubscribe(); + } + subscriptions = null; + } + subscriber.next(value); + }))); + }; + for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { + _loop_1(i); + } + }; + } + exports2.raceInit = raceInit; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/range.js + var require_range2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/range.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.range = void 0; + var Observable_1 = require_Observable(); + var empty_1 = require_empty3(); + function range(start, count, scheduler) { + if (count == null) { + count = start; + start = 0; + } + if (count <= 0) { + return empty_1.EMPTY; + } + var end = count + start; + return new Observable_1.Observable(scheduler ? function(subscriber) { + var n = start; + return scheduler.schedule(function() { + if (n < end) { + subscriber.next(n++); + this.schedule(); + } else { + subscriber.complete(); + } + }); + } : function(subscriber) { + var n = start; + while (n < end && !subscriber.closed) { + subscriber.next(n++); + } + subscriber.complete(); + }); + } + exports2.range = range; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/using.js + var require_using = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/using.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.using = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var empty_1 = require_empty3(); + function using(resourceFactory, observableFactory) { + return new Observable_1.Observable(function(subscriber) { + var resource = resourceFactory(); + var result = observableFactory(resource); + var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY; + source.subscribe(subscriber); + return function() { + if (resource) { + resource.unsubscribe(); + } + }; + }); + } + exports2.using = using; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/zip.js + var require_zip2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/zip.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zip = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var empty_1 = require_empty3(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var args_1 = require_args(); + function zip() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + var sources = argsOrArgArray_1.argsOrArgArray(args); + return sources.length ? new Observable_1.Observable(function(subscriber) { + var buffers = sources.map(function() { + return []; + }); + var completed = sources.map(function() { + return false; + }); + subscriber.add(function() { + buffers = completed = null; + }); + var _loop_1 = function(sourceIndex2) { + innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + buffers[sourceIndex2].push(value); + if (buffers.every(function(buffer) { + return buffer.length; + })) { + var result = buffers.map(function(buffer) { + return buffer.shift(); + }); + subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray2([], __read2(result))) : result); + if (buffers.some(function(buffer, i) { + return !buffer.length && completed[i]; + })) { + subscriber.complete(); + } + } + }, function() { + completed[sourceIndex2] = true; + !buffers[sourceIndex2].length && subscriber.complete(); + })); + }; + for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { + _loop_1(sourceIndex); + } + return function() { + buffers = completed = null; + }; + }) : empty_1.EMPTY; + } + exports2.zip = zip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/types.js + var require_types = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/audit.js + var require_audit = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/audit.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.audit = void 0; + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function audit(durationSelector) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var isComplete = false; + var endDuration = function() { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + isComplete && subscriber.complete(); + }; + var cleanupDuration = function() { + durationSubscriber = null; + isComplete && subscriber.complete(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + lastValue = value; + if (!durationSubscriber) { + innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration)); + } + }, function() { + isComplete = true; + (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); + })); + }); + } + exports2.audit = audit; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/auditTime.js + var require_auditTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.auditTime = void 0; + var async_1 = require_async(); + var audit_1 = require_audit(); + var timer_1 = require_timer(); + function auditTime(duration, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return audit_1.audit(function() { + return timer_1.timer(duration, scheduler); + }); + } + exports2.auditTime = auditTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/buffer.js + var require_buffer4 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/buffer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.buffer = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function buffer(closingNotifier) { + return lift_1.operate(function(source, subscriber) { + var currentBuffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return currentBuffer.push(value); + }, function() { + subscriber.next(currentBuffer); + subscriber.complete(); + })); + innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + var b = currentBuffer; + currentBuffer = []; + subscriber.next(b); + }, noop_1.noop)); + return function() { + currentBuffer = null; + }; + }); + } + exports2.buffer = buffer; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js + var require_bufferCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferCount = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + function bufferCount(bufferSize, startBufferEvery) { + if (startBufferEvery === void 0) { + startBufferEvery = null; + } + startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; + return lift_1.operate(function(source, subscriber) { + var buffers = []; + var count = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2, e_2, _b2; + var toEmit = null; + if (count++ % startBufferEvery === 0) { + buffers.push([]); + } + try { + for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + if (bufferSize <= buffer.length) { + toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; + toEmit.push(buffer); + } + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a2 = buffers_1.return)) + _a2.call(buffers_1); + } finally { + if (e_1) + throw e_1.error; + } + } + if (toEmit) { + try { + for (var toEmit_1 = __values2(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { + var buffer = toEmit_1_1.value; + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + } + } catch (e_2_1) { + e_2 = { error: e_2_1 }; + } finally { + try { + if (toEmit_1_1 && !toEmit_1_1.done && (_b2 = toEmit_1.return)) + _b2.call(toEmit_1); + } finally { + if (e_2) + throw e_2.error; + } + } + } + }, function() { + var e_3, _a2; + try { + for (var buffers_2 = __values2(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { + var buffer = buffers_2_1.value; + subscriber.next(buffer); + } + } catch (e_3_1) { + e_3 = { error: e_3_1 }; + } finally { + try { + if (buffers_2_1 && !buffers_2_1.done && (_a2 = buffers_2.return)) + _a2.call(buffers_2); + } finally { + if (e_3) + throw e_3.error; + } + } + subscriber.complete(); + }, void 0, function() { + buffers = null; + })); + }); + } + exports2.bufferCount = bufferCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js + var require_bufferTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferTime = void 0; + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + var async_1 = require_async(); + var args_1 = require_args(); + var executeSchedule_1 = require_executeSchedule(); + function bufferTime(bufferTimeSpan) { + var _a2, _b2; + var otherArgs = []; + for (var _i2 = 1; _i2 < arguments.length; _i2++) { + otherArgs[_i2 - 1] = arguments[_i2]; + } + var scheduler = (_a2 = args_1.popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : async_1.asyncScheduler; + var bufferCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null; + var maxBufferSize = otherArgs[1] || Infinity; + return lift_1.operate(function(source, subscriber) { + var bufferRecords = []; + var restartOnEmit = false; + var emit = function(record) { + var buffer = record.buffer, subs = record.subs; + subs.unsubscribe(); + arrRemove_1.arrRemove(bufferRecords, record); + subscriber.next(buffer); + restartOnEmit && startBuffer(); + }; + var startBuffer = function() { + if (bufferRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var buffer = []; + var record_1 = { + buffer, + subs + }; + bufferRecords.push(record_1); + executeSchedule_1.executeSchedule(subs, scheduler, function() { + return emit(record_1); + }, bufferTimeSpan); + } + }; + if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); + } else { + restartOnEmit = true; + } + startBuffer(); + var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a3; + var recordsCopy = bufferRecords.slice(); + try { + for (var recordsCopy_1 = __values2(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { + var record = recordsCopy_1_1.value; + var buffer = record.buffer; + buffer.push(value); + maxBufferSize <= buffer.length && emit(record); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a3 = recordsCopy_1.return)) + _a3.call(recordsCopy_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { + subscriber.next(bufferRecords.shift().buffer); + } + bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); + subscriber.complete(); + subscriber.unsubscribe(); + }, void 0, function() { + return bufferRecords = null; + }); + source.subscribe(bufferTimeSubscriber); + }); + } + exports2.bufferTime = bufferTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js + var require_bufferToggle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferToggle = void 0; + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var arrRemove_1 = require_arrRemove(); + function bufferToggle(openings, closingSelector) { + return lift_1.operate(function(source, subscriber) { + var buffers = []; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) { + var buffer = []; + buffers.push(buffer); + var closingSubscription = new Subscription_1.Subscription(); + var emitBuffer = function() { + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + closingSubscription.unsubscribe(); + }; + closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + try { + for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a2 = buffers_1.return)) + _a2.call(buffers_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (buffers.length > 0) { + subscriber.next(buffers.shift()); + } + subscriber.complete(); + })); + }); + } + exports2.bufferToggle = bufferToggle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js + var require_bufferWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferWhen = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function bufferWhen(closingSelector) { + return lift_1.operate(function(source, subscriber) { + var buffer = null; + var closingSubscriber = null; + var openBuffer = function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + var b = buffer; + buffer = []; + b && subscriber.next(b); + innerFrom_1.innerFrom(closingSelector()).subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop)); + }; + openBuffer(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); + }, function() { + buffer && subscriber.next(buffer); + subscriber.complete(); + }, void 0, function() { + return buffer = closingSubscriber = null; + })); + }); + } + exports2.bufferWhen = bufferWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/catchError.js + var require_catchError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/catchError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.catchError = void 0; + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var lift_1 = require_lift(); + function catchError3(selector) { + return lift_1.operate(function(source, subscriber) { + var innerSub = null; + var syncUnsub = false; + var handledResult; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) { + handledResult = innerFrom_1.innerFrom(selector(err, catchError3(selector)(source))); + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } else { + syncUnsub = true; + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } + }); + } + exports2.catchError = catchError3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js + var require_scanInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scanInternals = void 0; + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { + return function(source, subscriber) { + var hasState = hasSeed; + var state = seed; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var i = index++; + state = hasState ? accumulator(state, value, i) : (hasState = true, value); + emitOnNext && subscriber.next(state); + }, emitBeforeComplete && function() { + hasState && subscriber.next(state); + subscriber.complete(); + })); + }; + } + exports2.scanInternals = scanInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/reduce.js + var require_reduce = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/reduce.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.reduce = void 0; + var scanInternals_1 = require_scanInternals(); + var lift_1 = require_lift(); + function reduce(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true)); + } + exports2.reduce = reduce; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/toArray.js + var require_toArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/toArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toArray = void 0; + var reduce_1 = require_reduce(); + var lift_1 = require_lift(); + var arrReducer = function(arr, value) { + return arr.push(value), arr; + }; + function toArray() { + return lift_1.operate(function(source, subscriber) { + reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber); + }); + } + exports2.toArray = toArray; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js + var require_joinAllInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.joinAllInternals = void 0; + var identity_1 = require_identity(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var pipe_1 = require_pipe(); + var mergeMap_1 = require_mergeMap(); + var toArray_1 = require_toArray(); + function joinAllInternals(joinFn, project) { + return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function(sources) { + return joinFn(sources); + }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity); + } + exports2.joinAllInternals = joinAllInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js + var require_combineLatestAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestAll = void 0; + var combineLatest_1 = require_combineLatest(); + var joinAllInternals_1 = require_joinAllInternals(); + function combineLatestAll(project) { + return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project); + } + exports2.combineLatestAll = combineLatestAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineAll.js + var require_combineAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineAll = void 0; + var combineLatestAll_1 = require_combineLatestAll(); + exports2.combineAll = combineLatestAll_1.combineLatestAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js + var require_combineLatest2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatest = void 0; + var combineLatest_1 = require_combineLatest(); + var lift_1 = require_lift(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var pipe_1 = require_pipe(); + var args_1 = require_args(); + function combineLatest3() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + return resultSelector ? pipe_1.pipe(combineLatest3.apply(void 0, __spreadArray2([], __read2(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) { + combineLatest_1.combineLatestInit(__spreadArray2([source], __read2(argsOrArgArray_1.argsOrArgArray(args))))(subscriber); + }); + } + exports2.combineLatest = combineLatest3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js + var require_combineLatestWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestWith = void 0; + var combineLatest_1 = require_combineLatest2(); + function combineLatestWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return combineLatest_1.combineLatest.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.combineLatestWith = combineLatestWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMap.js + var require_concatMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatMap = void 0; + var mergeMap_1 = require_mergeMap(); + var isFunction_1 = require_isFunction(); + function concatMap(project, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1); + } + exports2.concatMap = concatMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js + var require_concatMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatMapTo = void 0; + var concatMap_1 = require_concatMap(); + var isFunction_1 = require_isFunction(); + function concatMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function() { + return innerObservable; + }, resultSelector) : concatMap_1.concatMap(function() { + return innerObservable; + }); + } + exports2.concatMapTo = concatMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concat.js + var require_concat3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concat.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concat = void 0; + var lift_1 = require_lift(); + var concatAll_1 = require_concatAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function concat12() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + return lift_1.operate(function(source, subscriber) { + concatAll_1.concatAll()(from_1.from(__spreadArray2([source], __read2(args)), scheduler)).subscribe(subscriber); + }); + } + exports2.concat = concat12; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatWith.js + var require_concatWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatWith = void 0; + var concat_1 = require_concat3(); + function concatWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return concat_1.concat.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.concatWith = concatWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js + var require_fromSubscribable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromSubscribable = void 0; + var Observable_1 = require_Observable(); + function fromSubscribable(subscribable) { + return new Observable_1.Observable(function(subscriber) { + return subscribable.subscribe(subscriber); + }); + } + exports2.fromSubscribable = fromSubscribable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/connect.js + var require_connect = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/connect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.connect = void 0; + var Subject_1 = require_Subject(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var fromSubscribable_1 = require_fromSubscribable(); + var DEFAULT_CONFIG = { + connector: function() { + return new Subject_1.Subject(); + } + }; + function connect(selector, config7) { + if (config7 === void 0) { + config7 = DEFAULT_CONFIG; + } + var connector = config7.connector; + return lift_1.operate(function(source, subscriber) { + var subject2 = connector(); + innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject2))).subscribe(subscriber); + subscriber.add(source.subscribe(subject2)); + }); + } + exports2.connect = connect; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/count.js + var require_count = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/count.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.count = void 0; + var reduce_1 = require_reduce(); + function count(predicate) { + return reduce_1.reduce(function(total, value, i) { + return !predicate || predicate(value, i) ? total + 1 : total; + }, 0); + } + exports2.count = count; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/debounce.js + var require_debounce = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/debounce.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.debounce = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function debounce(durationSelector) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var emit = function() { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + hasValue = true; + lastValue = value; + durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop); + innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber); + }, function() { + emit(); + subscriber.complete(); + }, void 0, function() { + lastValue = durationSubscriber = null; + })); + }); + } + exports2.debounce = debounce; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js + var require_debounceTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.debounceTime = void 0; + var async_1 = require_async(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function debounceTime2(dueTime, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return lift_1.operate(function(source, subscriber) { + var activeTask = null; + var lastValue = null; + var lastTime = null; + var emit = function() { + if (activeTask) { + activeTask.unsubscribe(); + activeTask = null; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + function emitWhenIdle() { + var targetTime = lastTime + dueTime; + var now2 = scheduler.now(); + if (now2 < targetTime) { + activeTask = this.schedule(void 0, targetTime - now2); + subscriber.add(activeTask); + return; + } + emit(); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + lastValue = value; + lastTime = scheduler.now(); + if (!activeTask) { + activeTask = scheduler.schedule(emitWhenIdle, dueTime); + subscriber.add(activeTask); + } + }, function() { + emit(); + subscriber.complete(); + }, void 0, function() { + lastValue = activeTask = null; + })); + }); + } + exports2.debounceTime = debounceTime2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js + var require_defaultIfEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultIfEmpty = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function defaultIfEmpty(defaultValue) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + subscriber.next(value); + }, function() { + if (!hasValue) { + subscriber.next(defaultValue); + } + subscriber.complete(); + })); + }); + } + exports2.defaultIfEmpty = defaultIfEmpty; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/take.js + var require_take = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/take.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.take = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function take2(count) { + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (++seen <= count) { + subscriber.next(value); + if (count <= seen) { + subscriber.complete(); + } + } + })); + }); + } + exports2.take = take2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js + var require_ignoreElements = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ignoreElements = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + function ignoreElements() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop)); + }); + } + exports2.ignoreElements = ignoreElements; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mapTo.js + var require_mapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapTo = void 0; + var map_1 = require_map(); + function mapTo(value) { + return map_1.map(function() { + return value; + }); + } + exports2.mapTo = mapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js + var require_delayWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.delayWhen = void 0; + var concat_1 = require_concat2(); + var take_1 = require_take(); + var ignoreElements_1 = require_ignoreElements(); + var mapTo_1 = require_mapTo(); + var mergeMap_1 = require_mergeMap(); + var innerFrom_1 = require_innerFrom(); + function delayWhen(delayDurationSelector, subscriptionDelay) { + if (subscriptionDelay) { + return function(source) { + return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); + }; + } + return mergeMap_1.mergeMap(function(value, index) { + return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value)); + }); + } + exports2.delayWhen = delayWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/delay.js + var require_delay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/delay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.delay = void 0; + var async_1 = require_async(); + var delayWhen_1 = require_delayWhen(); + var timer_1 = require_timer(); + function delay(due2, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + var duration = timer_1.timer(due2, scheduler); + return delayWhen_1.delayWhen(function() { + return duration; + }); + } + exports2.delay = delay; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js + var require_dematerialize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dematerialize = void 0; + var Notification_1 = require_Notification(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function dematerialize() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(notification) { + return Notification_1.observeNotification(notification, subscriber); + })); + }); + } + exports2.dematerialize = dematerialize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinct.js + var require_distinct = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinct = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function distinct(keySelector, flushes) { + return lift_1.operate(function(source, subscriber) { + var distinctKeys = /* @__PURE__ */ new Set(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var key2 = keySelector ? keySelector(value) : value; + if (!distinctKeys.has(key2)) { + distinctKeys.add(key2); + subscriber.next(value); + } + })); + flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return distinctKeys.clear(); + }, noop_1.noop)); + }); + } + exports2.distinct = distinct; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js + var require_distinctUntilChanged = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinctUntilChanged = void 0; + var identity_1 = require_identity(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function distinctUntilChanged(comparator, keySelector) { + if (keySelector === void 0) { + keySelector = identity_1.identity; + } + comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; + return lift_1.operate(function(source, subscriber) { + var previousKey; + var first = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var currentKey = keySelector(value); + if (first || !comparator(previousKey, currentKey)) { + first = false; + previousKey = currentKey; + subscriber.next(value); + } + })); + }); + } + exports2.distinctUntilChanged = distinctUntilChanged; + function defaultCompare(a, b) { + return a === b; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js + var require_distinctUntilKeyChanged = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinctUntilKeyChanged = void 0; + var distinctUntilChanged_1 = require_distinctUntilChanged(); + function distinctUntilKeyChanged(key2, compare2) { + return distinctUntilChanged_1.distinctUntilChanged(function(x, y) { + return compare2 ? compare2(x[key2], y[key2]) : x[key2] === y[key2]; + }); + } + exports2.distinctUntilKeyChanged = distinctUntilKeyChanged; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js + var require_throwIfEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throwIfEmpty = void 0; + var EmptyError_1 = require_EmptyError(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function throwIfEmpty(errorFactory) { + if (errorFactory === void 0) { + errorFactory = defaultErrorFactory; + } + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + subscriber.next(value); + }, function() { + return hasValue ? subscriber.complete() : subscriber.error(errorFactory()); + })); + }); + } + exports2.throwIfEmpty = throwIfEmpty; + function defaultErrorFactory() { + return new EmptyError_1.EmptyError(); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/elementAt.js + var require_elementAt = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.elementAt = void 0; + var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError(); + var filter_1 = require_filter2(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var take_1 = require_take(); + function elementAt(index, defaultValue) { + if (index < 0) { + throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); + } + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(filter_1.filter(function(v, i) { + return i === index; + }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); + })); + }; + } + exports2.elementAt = elementAt; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/endWith.js + var require_endWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.endWith = void 0; + var concat_1 = require_concat2(); + var of_1 = require_of(); + function endWith() { + var values = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + values[_i2] = arguments[_i2]; + } + return function(source) { + return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray2([], __read2(values)))); + }; + } + exports2.endWith = endWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/every.js + var require_every = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/every.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.every = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function every(predicate, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (!predicate.call(thisArg, value, index++, source)) { + subscriber.next(false); + subscriber.complete(); + } + }, function() { + subscriber.next(true); + subscriber.complete(); + })); + }); + } + exports2.every = every; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js + var require_exhaustMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaustMap = void 0; + var map_1 = require_map(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function exhaustMap(project, resultSelector) { + if (resultSelector) { + return function(source) { + return source.pipe(exhaustMap(function(a, i) { + return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function(b, ii2) { + return resultSelector(a, b, i, ii2); + })); + })); + }; + } + return lift_1.operate(function(source, subscriber) { + var index = 0; + var innerSub = null; + var isComplete = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(outerValue) { + if (!innerSub) { + innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + innerSub = null; + isComplete && subscriber.complete(); + }); + innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub); + } + }, function() { + isComplete = true; + !innerSub && subscriber.complete(); + })); + }); + } + exports2.exhaustMap = exhaustMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js + var require_exhaustAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaustAll = void 0; + var exhaustMap_1 = require_exhaustMap(); + var identity_1 = require_identity(); + function exhaustAll() { + return exhaustMap_1.exhaustMap(identity_1.identity); + } + exports2.exhaustAll = exhaustAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaust.js + var require_exhaust = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaust.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaust = void 0; + var exhaustAll_1 = require_exhaustAll(); + exports2.exhaust = exhaustAll_1.exhaustAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/expand.js + var require_expand2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/expand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.expand = void 0; + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + function expand(project, concurrent, scheduler) { + if (concurrent === void 0) { + concurrent = Infinity; + } + concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; + return lift_1.operate(function(source, subscriber) { + return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, void 0, true, scheduler); + }); + } + exports2.expand = expand; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/finalize.js + var require_finalize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/finalize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.finalize = void 0; + var lift_1 = require_lift(); + function finalize(callback) { + return lift_1.operate(function(source, subscriber) { + try { + source.subscribe(subscriber); + } finally { + subscriber.add(callback); + } + }); + } + exports2.finalize = finalize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/find.js + var require_find = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/find.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createFind = exports2.find = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function find(predicate, thisArg) { + return lift_1.operate(createFind(predicate, thisArg, "value")); + } + exports2.find = find; + function createFind(predicate, thisArg, emit) { + var findIndex = emit === "index"; + return function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var i = index++; + if (predicate.call(thisArg, value, i, source)) { + subscriber.next(findIndex ? i : value); + subscriber.complete(); + } + }, function() { + subscriber.next(findIndex ? -1 : void 0); + subscriber.complete(); + })); + }; + } + exports2.createFind = createFind; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/findIndex.js + var require_findIndex = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.findIndex = void 0; + var lift_1 = require_lift(); + var find_1 = require_find(); + function findIndex(predicate, thisArg) { + return lift_1.operate(find_1.createFind(predicate, thisArg, "index")); + } + exports2.findIndex = findIndex; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/first.js + var require_first = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/first.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.first = void 0; + var EmptyError_1 = require_EmptyError(); + var filter_1 = require_filter2(); + var take_1 = require_take(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var identity_1 = require_identity(); + function first(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(predicate ? filter_1.filter(function(v, i) { + return predicate(v, i, source); + }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new EmptyError_1.EmptyError(); + })); + }; + } + exports2.first = first; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/groupBy.js + var require_groupBy = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.groupBy = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function groupBy(keySelector, elementOrOptions, duration, connector) { + return lift_1.operate(function(source, subscriber) { + var element; + if (!elementOrOptions || typeof elementOrOptions === "function") { + element = elementOrOptions; + } else { + duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector; + } + var groups = /* @__PURE__ */ new Map(); + var notify = function(cb2) { + groups.forEach(cb2); + cb2(subscriber); + }; + var handleError = function(err) { + return notify(function(consumer) { + return consumer.error(err); + }); + }; + var activeGroups = 0; + var teardownAttempted = false; + var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function(value) { + try { + var key_1 = keySelector(value); + var group_1 = groups.get(key_1); + if (!group_1) { + groups.set(key_1, group_1 = connector ? connector() : new Subject_1.Subject()); + var grouped = createGroupedObservable(key_1, group_1); + subscriber.next(grouped); + if (duration) { + var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function() { + group_1.complete(); + durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); + }, void 0, void 0, function() { + return groups.delete(key_1); + }); + groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); + } + } + group_1.next(element ? element(value) : value); + } catch (err) { + handleError(err); + } + }, function() { + return notify(function(consumer) { + return consumer.complete(); + }); + }, handleError, function() { + return groups.clear(); + }, function() { + teardownAttempted = true; + return activeGroups === 0; + }); + source.subscribe(groupBySourceSubscriber); + function createGroupedObservable(key2, groupSubject) { + var result = new Observable_1.Observable(function(groupSubscriber) { + activeGroups++; + var innerSub = groupSubject.subscribe(groupSubscriber); + return function() { + innerSub.unsubscribe(); + --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); + }; + }); + result.key = key2; + return result; + } + }); + } + exports2.groupBy = groupBy; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js + var require_isEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isEmpty = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function isEmpty() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + subscriber.next(false); + subscriber.complete(); + }, function() { + subscriber.next(true); + subscriber.complete(); + })); + }); + } + exports2.isEmpty = isEmpty; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeLast.js + var require_takeLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeLast = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function takeLast(count) { + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var buffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + buffer.push(value); + count < buffer.length && buffer.shift(); + }, function() { + var e_1, _a2; + try { + for (var buffer_1 = __values2(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { + var value = buffer_1_1.value; + subscriber.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffer_1_1 && !buffer_1_1.done && (_a2 = buffer_1.return)) + _a2.call(buffer_1); + } finally { + if (e_1) + throw e_1.error; + } + } + subscriber.complete(); + }, void 0, function() { + buffer = null; + })); + }); + } + exports2.takeLast = takeLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/last.js + var require_last = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/last.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.last = void 0; + var EmptyError_1 = require_EmptyError(); + var filter_1 = require_filter2(); + var takeLast_1 = require_takeLast(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var identity_1 = require_identity(); + function last2(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(predicate ? filter_1.filter(function(v, i) { + return predicate(v, i, source); + }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new EmptyError_1.EmptyError(); + })); + }; + } + exports2.last = last2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/materialize.js + var require_materialize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/materialize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.materialize = void 0; + var Notification_1 = require_Notification(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function materialize() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + subscriber.next(Notification_1.Notification.createNext(value)); + }, function() { + subscriber.next(Notification_1.Notification.createComplete()); + subscriber.complete(); + }, function(err) { + subscriber.next(Notification_1.Notification.createError(err)); + subscriber.complete(); + })); + }); + } + exports2.materialize = materialize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/max.js + var require_max = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/max.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.max = void 0; + var reduce_1 = require_reduce(); + var isFunction_1 = require_isFunction(); + function max2(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) { + return comparer(x, y) > 0 ? x : y; + } : function(x, y) { + return x > y ? x : y; + }); + } + exports2.max = max2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/flatMap.js + var require_flatMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/flatMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flatMap = void 0; + var mergeMap_1 = require_mergeMap(); + exports2.flatMap = mergeMap_1.mergeMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js + var require_mergeMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeMapTo = void 0; + var mergeMap_1 = require_mergeMap(); + var isFunction_1 = require_isFunction(); + function mergeMapTo(innerObservable, resultSelector, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap_1.mergeMap(function() { + return innerObservable; + }, resultSelector, concurrent); + } + if (typeof resultSelector === "number") { + concurrent = resultSelector; + } + return mergeMap_1.mergeMap(function() { + return innerObservable; + }, concurrent); + } + exports2.mergeMapTo = mergeMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js + var require_mergeScan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeScan = void 0; + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + function mergeScan(accumulator, seed, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + return lift_1.operate(function(source, subscriber) { + var state = seed; + return mergeInternals_1.mergeInternals(source, subscriber, function(value, index) { + return accumulator(state, value, index); + }, concurrent, function(value) { + state = value; + }, false, void 0, function() { + return state = null; + }); + }); + } + exports2.mergeScan = mergeScan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/merge.js + var require_merge2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/merge.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.merge = void 0; + var lift_1 = require_lift(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var mergeAll_1 = require_mergeAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function merge() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + args = argsOrArgArray_1.argsOrArgArray(args); + return lift_1.operate(function(source, subscriber) { + mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray2([source], __read2(args)), scheduler)).subscribe(subscriber); + }); + } + exports2.merge = merge; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js + var require_mergeWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeWith = void 0; + var merge_1 = require_merge2(); + function mergeWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return merge_1.merge.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.mergeWith = mergeWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/min.js + var require_min3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/min.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.min = void 0; + var reduce_1 = require_reduce(); + var isFunction_1 = require_isFunction(); + function min(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) { + return comparer(x, y) < 0 ? x : y; + } : function(x, y) { + return x < y ? x : y; + }); + } + exports2.min = min; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/multicast.js + var require_multicast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/multicast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.multicast = void 0; + var ConnectableObservable_1 = require_ConnectableObservable(); + var isFunction_1 = require_isFunction(); + var connect_1 = require_connect(); + function multicast(subjectOrSubjectFactory, selector) { + var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() { + return subjectOrSubjectFactory; + }; + if (isFunction_1.isFunction(selector)) { + return connect_1.connect(selector, { + connector: subjectFactory + }); + } + return function(source) { + return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory); + }; + } + exports2.multicast = multicast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js + var require_onErrorResumeNextWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.onErrorResumeNext = exports2.onErrorResumeNextWith = void 0; + var argsOrArgArray_1 = require_argsOrArgArray(); + var onErrorResumeNext_1 = require_onErrorResumeNext(); + function onErrorResumeNextWith() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return function(source) { + return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray2([source], __read2(nextSources))); + }; + } + exports2.onErrorResumeNextWith = onErrorResumeNextWith; + exports2.onErrorResumeNext = onErrorResumeNextWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/pairwise.js + var require_pairwise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairwise = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function pairwise() { + return lift_1.operate(function(source, subscriber) { + var prev; + var hasPrev = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var p = prev; + prev = value; + hasPrev && subscriber.next([p, value]); + hasPrev = true; + })); + }); + } + exports2.pairwise = pairwise; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/pluck.js + var require_pluck = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/pluck.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pluck = void 0; + var map_1 = require_map(); + function pluck() { + var properties = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + properties[_i2] = arguments[_i2]; + } + var length = properties.length; + if (length === 0) { + throw new Error("list of properties cannot be empty."); + } + return map_1.map(function(x) { + var currentProp = x; + for (var i = 0; i < length; i++) { + var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; + if (typeof p !== "undefined") { + currentProp = p; + } else { + return void 0; + } + } + return currentProp; + }); + } + exports2.pluck = pluck; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publish.js + var require_publish = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publish.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publish = void 0; + var Subject_1 = require_Subject(); + var multicast_1 = require_multicast(); + var connect_1 = require_connect(); + function publish(selector) { + return selector ? function(source) { + return connect_1.connect(selector)(source); + } : function(source) { + return multicast_1.multicast(new Subject_1.Subject())(source); + }; + } + exports2.publish = publish; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js + var require_publishBehavior = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishBehavior = void 0; + var BehaviorSubject_1 = require_BehaviorSubject(); + var ConnectableObservable_1 = require_ConnectableObservable(); + function publishBehavior(initialValue) { + return function(source) { + var subject2 = new BehaviorSubject_1.BehaviorSubject(initialValue); + return new ConnectableObservable_1.ConnectableObservable(source, function() { + return subject2; + }); + }; + } + exports2.publishBehavior = publishBehavior; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishLast.js + var require_publishLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishLast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishLast = void 0; + var AsyncSubject_1 = require_AsyncSubject(); + var ConnectableObservable_1 = require_ConnectableObservable(); + function publishLast() { + return function(source) { + var subject2 = new AsyncSubject_1.AsyncSubject(); + return new ConnectableObservable_1.ConnectableObservable(source, function() { + return subject2; + }); + }; + } + exports2.publishLast = publishLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js + var require_publishReplay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishReplay = void 0; + var ReplaySubject_1 = require_ReplaySubject(); + var multicast_1 = require_multicast(); + var isFunction_1 = require_isFunction(); + function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { + if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) { + timestampProvider = selectorOrScheduler; + } + var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : void 0; + return function(source) { + return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); + }; + } + exports2.publishReplay = publishReplay; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/raceWith.js + var require_raceWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.raceWith = void 0; + var race_1 = require_race(); + var lift_1 = require_lift(); + var identity_1 = require_identity(); + function raceWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) { + race_1.raceInit(__spreadArray2([source], __read2(otherSources)))(subscriber); + }); + } + exports2.raceWith = raceWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/repeat.js + var require_repeat = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/repeat.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.repeat = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var timer_1 = require_timer(); + function repeat(countOrConfig) { + var _a2; + var count = Infinity; + var delay; + if (countOrConfig != null) { + if (typeof countOrConfig === "object") { + _a2 = countOrConfig.count, count = _a2 === void 0 ? Infinity : _a2, delay = countOrConfig.delay; + } else { + count = countOrConfig; + } + } + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var soFar = 0; + var sourceSub; + var resubscribe = function() { + sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); + sourceSub = null; + if (delay != null) { + var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + notifierSubscriber_1.unsubscribe(); + subscribeToSource(); + }); + notifier.subscribe(notifierSubscriber_1); + } else { + subscribeToSource(); + } + }; + var subscribeToSource = function() { + var syncUnsub = false; + sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + if (++soFar < count) { + if (sourceSub) { + resubscribe(); + } else { + syncUnsub = true; + } + } else { + subscriber.complete(); + } + })); + if (syncUnsub) { + resubscribe(); + } + }; + subscribeToSource(); + }); + } + exports2.repeat = repeat; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js + var require_repeatWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.repeatWhen = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function repeatWhen(notifier) { + return lift_1.operate(function(source, subscriber) { + var innerSub; + var syncResub = false; + var completions$; + var isNotifierComplete = false; + var isMainComplete = false; + var checkComplete = function() { + return isMainComplete && isNotifierComplete && (subscriber.complete(), true); + }; + var getCompletionSubject = function() { + if (!completions$) { + completions$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + if (innerSub) { + subscribeForRepeatWhen(); + } else { + syncResub = true; + } + }, function() { + isNotifierComplete = true; + checkComplete(); + })); + } + return completions$; + }; + var subscribeForRepeatWhen = function() { + isMainComplete = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + isMainComplete = true; + !checkComplete() && getCompletionSubject().next(); + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRepeatWhen(); + } + }; + subscribeForRepeatWhen(); + }); + } + exports2.repeatWhen = repeatWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/retry.js + var require_retry = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/retry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.retry = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var identity_1 = require_identity(); + var timer_1 = require_timer(); + var innerFrom_1 = require_innerFrom(); + function retry(configOrCount) { + if (configOrCount === void 0) { + configOrCount = Infinity; + } + var config7; + if (configOrCount && typeof configOrCount === "object") { + config7 = configOrCount; + } else { + config7 = { + count: configOrCount + }; + } + var _a2 = config7.count, count = _a2 === void 0 ? Infinity : _a2, delay = config7.delay, _b2 = config7.resetOnSuccess, resetOnSuccess = _b2 === void 0 ? false : _b2; + return count <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) { + var soFar = 0; + var innerSub; + var subscribeForRetry = function() { + var syncUnsub = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (resetOnSuccess) { + soFar = 0; + } + subscriber.next(value); + }, void 0, function(err) { + if (soFar++ < count) { + var resub_1 = function() { + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } else { + syncUnsub = true; + } + }; + if (delay != null) { + var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + notifierSubscriber_1.unsubscribe(); + resub_1(); + }, function() { + subscriber.complete(); + }); + notifier.subscribe(notifierSubscriber_1); + } else { + resub_1(); + } + } else { + subscriber.error(err); + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } + }; + subscribeForRetry(); + }); + } + exports2.retry = retry; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js + var require_retryWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.retryWhen = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function retryWhen(notifier) { + return lift_1.operate(function(source, subscriber) { + var innerSub; + var syncResub = false; + var errors$; + var subscribeForRetryWhen = function() { + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) { + if (!errors$) { + errors$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return innerSub ? subscribeForRetryWhen() : syncResub = true; + })); + } + if (errors$) { + errors$.next(err); + } + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRetryWhen(); + } + }; + subscribeForRetryWhen(); + }); + } + exports2.retryWhen = retryWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sample.js + var require_sample = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sample.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sample = void 0; + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function sample(notifier) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + lastValue = value; + })); + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }, noop_1.noop)); + }); + } + exports2.sample = sample; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js + var require_sampleTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sampleTime = void 0; + var async_1 = require_async(); + var sample_1 = require_sample(); + var interval_1 = require_interval(); + function sampleTime(period, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return sample_1.sample(interval_1.interval(period, scheduler)); + } + exports2.sampleTime = sampleTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/scan.js + var require_scan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/scan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scan = void 0; + var lift_1 = require_lift(); + var scanInternals_1 = require_scanInternals(); + function scan(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true)); + } + exports2.scan = scan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js + var require_sequenceEqual = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sequenceEqual = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function sequenceEqual(compareTo, comparator) { + if (comparator === void 0) { + comparator = function(a, b) { + return a === b; + }; + } + return lift_1.operate(function(source, subscriber) { + var aState = createState(); + var bState = createState(); + var emit = function(isEqual) { + subscriber.next(isEqual); + subscriber.complete(); + }; + var createSubscriber = function(selfState, otherState) { + var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(a) { + var buffer = otherState.buffer, complete = otherState.complete; + if (buffer.length === 0) { + complete ? emit(false) : selfState.buffer.push(a); + } else { + !comparator(a, buffer.shift()) && emit(false); + } + }, function() { + selfState.complete = true; + var complete = otherState.complete, buffer = otherState.buffer; + complete && emit(buffer.length === 0); + sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); + }); + return sequenceEqualSubscriber; + }; + source.subscribe(createSubscriber(aState, bState)); + innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); + }); + } + exports2.sequenceEqual = sequenceEqual; + function createState() { + return { + buffer: [], + complete: false + }; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/share.js + var require_share = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/share.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.share = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var Subscriber_1 = require_Subscriber(); + var lift_1 = require_lift(); + function share2(options) { + if (options === void 0) { + options = {}; + } + var _a2 = options.connector, connector = _a2 === void 0 ? function() { + return new Subject_1.Subject(); + } : _a2, _b2 = options.resetOnError, resetOnError = _b2 === void 0 ? true : _b2, _c2 = options.resetOnComplete, resetOnComplete = _c2 === void 0 ? true : _c2, _d2 = options.resetOnRefCountZero, resetOnRefCountZero = _d2 === void 0 ? true : _d2; + return function(wrapperSource) { + var connection; + var resetConnection; + var subject2; + var refCount = 0; + var hasCompleted = false; + var hasErrored = false; + var cancelReset = function() { + resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); + resetConnection = void 0; + }; + var reset = function() { + cancelReset(); + connection = subject2 = void 0; + hasCompleted = hasErrored = false; + }; + var resetAndUnsubscribe = function() { + var conn = connection; + reset(); + conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); + }; + return lift_1.operate(function(source, subscriber) { + refCount++; + if (!hasErrored && !hasCompleted) { + cancelReset(); + } + var dest = subject2 = subject2 !== null && subject2 !== void 0 ? subject2 : connector(); + subscriber.add(function() { + refCount--; + if (refCount === 0 && !hasErrored && !hasCompleted) { + resetConnection = handleReset2(resetAndUnsubscribe, resetOnRefCountZero); + } + }); + dest.subscribe(subscriber); + if (!connection && refCount > 0) { + connection = new Subscriber_1.SafeSubscriber({ + next: function(value) { + return dest.next(value); + }, + error: function(err) { + hasErrored = true; + cancelReset(); + resetConnection = handleReset2(reset, resetOnError, err); + dest.error(err); + }, + complete: function() { + hasCompleted = true; + cancelReset(); + resetConnection = handleReset2(reset, resetOnComplete); + dest.complete(); + } + }); + innerFrom_1.innerFrom(source).subscribe(connection); + } + })(wrapperSource); + }; + } + exports2.share = share2; + function handleReset2(reset, on2) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + if (on2 === true) { + reset(); + return; + } + if (on2 === false) { + return; + } + var onSubscriber = new Subscriber_1.SafeSubscriber({ + next: function() { + onSubscriber.unsubscribe(); + reset(); + } + }); + return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray2([], __read2(args)))).subscribe(onSubscriber); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js + var require_shareReplay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.shareReplay = void 0; + var ReplaySubject_1 = require_ReplaySubject(); + var share_1 = require_share(); + function shareReplay2(configOrBufferSize, windowTime, scheduler) { + var _a2, _b2, _c2; + var bufferSize; + var refCount = false; + if (configOrBufferSize && typeof configOrBufferSize === "object") { + _a2 = configOrBufferSize.bufferSize, bufferSize = _a2 === void 0 ? Infinity : _a2, _b2 = configOrBufferSize.windowTime, windowTime = _b2 === void 0 ? Infinity : _b2, _c2 = configOrBufferSize.refCount, refCount = _c2 === void 0 ? false : _c2, scheduler = configOrBufferSize.scheduler; + } else { + bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity; + } + return share_1.share({ + connector: function() { + return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); + }, + resetOnError: true, + resetOnComplete: false, + resetOnRefCountZero: refCount + }); + } + exports2.shareReplay = shareReplay2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/single.js + var require_single = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/single.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.single = void 0; + var EmptyError_1 = require_EmptyError(); + var SequenceError_1 = require_SequenceError(); + var NotFoundError_1 = require_NotFoundError(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function single(predicate) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var singleValue; + var seenValue = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + seenValue = true; + if (!predicate || predicate(value, index++, source)) { + hasValue && subscriber.error(new SequenceError_1.SequenceError("Too many matching values")); + hasValue = true; + singleValue = value; + } + }, function() { + if (hasValue) { + subscriber.next(singleValue); + subscriber.complete(); + } else { + subscriber.error(seenValue ? new NotFoundError_1.NotFoundError("No matching values") : new EmptyError_1.EmptyError()); + } + })); + }); + } + exports2.single = single; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skip.js + var require_skip = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skip.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skip = void 0; + var filter_1 = require_filter2(); + function skip(count) { + return filter_1.filter(function(_, index) { + return count <= index; + }); + } + exports2.skip = skip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipLast.js + var require_skipLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipLast = void 0; + var identity_1 = require_identity(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function skipLast(skipCount) { + return skipCount <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) { + var ring = new Array(skipCount); + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var valueIndex = seen++; + if (valueIndex < skipCount) { + ring[valueIndex] = value; + } else { + var index = valueIndex % skipCount; + var oldValue = ring[index]; + ring[index] = value; + subscriber.next(oldValue); + } + })); + return function() { + ring = null; + }; + }); + } + exports2.skipLast = skipLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js + var require_skipUntil = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipUntil = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var noop_1 = require_noop2(); + function skipUntil(notifier) { + return lift_1.operate(function(source, subscriber) { + var taking = false; + var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); + taking = true; + }, noop_1.noop); + innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return taking && subscriber.next(value); + })); + }); + } + exports2.skipUntil = skipUntil; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js + var require_skipWhile = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipWhile = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function skipWhile(predicate) { + return lift_1.operate(function(source, subscriber) { + var taking = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); + })); + }); + } + exports2.skipWhile = skipWhile; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/startWith.js + var require_startWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/startWith.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.startWith = void 0; + var concat_1 = require_concat2(); + var args_1 = require_args(); + var lift_1 = require_lift(); + function startWith2() { + var values = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + values[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(values); + return lift_1.operate(function(source, subscriber) { + (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber); + }); + } + exports2.startWith = startWith2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMap.js + var require_switchMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchMap = void 0; + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function switchMap2(project, resultSelector) { + return lift_1.operate(function(source, subscriber) { + var innerSubscriber = null; + var index = 0; + var isComplete = false; + var checkComplete = function() { + return isComplete && !innerSubscriber && subscriber.complete(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); + var innerIndex = 0; + var outerIndex = index++; + innerFrom_1.innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) { + return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); + }, function() { + innerSubscriber = null; + checkComplete(); + })); + }, function() { + isComplete = true; + checkComplete(); + })); + }); + } + exports2.switchMap = switchMap2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchAll.js + var require_switchAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchAll = void 0; + var switchMap_1 = require_switchMap(); + var identity_1 = require_identity(); + function switchAll() { + return switchMap_1.switchMap(identity_1.identity); + } + exports2.switchAll = switchAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js + var require_switchMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchMapTo = void 0; + var switchMap_1 = require_switchMap(); + var isFunction_1 = require_isFunction(); + function switchMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function() { + return innerObservable; + }, resultSelector) : switchMap_1.switchMap(function() { + return innerObservable; + }); + } + exports2.switchMapTo = switchMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchScan.js + var require_switchScan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchScan = void 0; + var switchMap_1 = require_switchMap(); + var lift_1 = require_lift(); + function switchScan(accumulator, seed) { + return lift_1.operate(function(source, subscriber) { + var state = seed; + switchMap_1.switchMap(function(value, index) { + return accumulator(state, value, index); + }, function(_, innerValue) { + return state = innerValue, innerValue; + })(source).subscribe(subscriber); + return function() { + state = null; + }; + }); + } + exports2.switchScan = switchScan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js + var require_takeUntil = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeUntil = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var noop_1 = require_noop2(); + function takeUntil(notifier) { + return lift_1.operate(function(source, subscriber) { + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return subscriber.complete(); + }, noop_1.noop)); + !subscriber.closed && source.subscribe(subscriber); + }); + } + exports2.takeUntil = takeUntil; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js + var require_takeWhile = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeWhile = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function takeWhile(predicate, inclusive) { + if (inclusive === void 0) { + inclusive = false; + } + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var result = predicate(value, index++); + (result || inclusive) && subscriber.next(value); + !result && subscriber.complete(); + })); + }); + } + exports2.takeWhile = takeWhile; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/tap.js + var require_tap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/tap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.tap = void 0; + var isFunction_1 = require_isFunction(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var identity_1 = require_identity(); + function tap2(observerOrNext, error, complete) { + var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext; + return tapObserver ? lift_1.operate(function(source, subscriber) { + var _a2; + (_a2 = tapObserver.subscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver); + var isUnsub = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var _a3; + (_a3 = tapObserver.next) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, value); + subscriber.next(value); + }, function() { + var _a3; + isUnsub = false; + (_a3 = tapObserver.complete) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver); + subscriber.complete(); + }, function(err) { + var _a3; + isUnsub = false; + (_a3 = tapObserver.error) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, err); + subscriber.error(err); + }, function() { + var _a3, _b2; + if (isUnsub) { + (_a3 = tapObserver.unsubscribe) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver); + } + (_b2 = tapObserver.finalize) === null || _b2 === void 0 ? void 0 : _b2.call(tapObserver); + })); + }) : identity_1.identity; + } + exports2.tap = tap2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throttle.js + var require_throttle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throttle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throttle = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function throttle(durationSelector, config7) { + return lift_1.operate(function(source, subscriber) { + var _a2 = config7 !== null && config7 !== void 0 ? config7 : {}, _b2 = _a2.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a2.trailing, trailing = _c2 === void 0 ? false : _c2; + var hasValue = false; + var sendValue = null; + var throttled = null; + var isComplete = false; + var endThrottling = function() { + throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); + throttled = null; + if (trailing) { + send(); + isComplete && subscriber.complete(); + } + }; + var cleanupThrottling = function() { + throttled = null; + isComplete && subscriber.complete(); + }; + var startThrottle = function(value) { + return throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)); + }; + var send = function() { + if (hasValue) { + hasValue = false; + var value = sendValue; + sendValue = null; + subscriber.next(value); + !isComplete && startThrottle(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + sendValue = value; + !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); + }, function() { + isComplete = true; + !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); + })); + }); + } + exports2.throttle = throttle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js + var require_throttleTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throttleTime = void 0; + var async_1 = require_async(); + var throttle_1 = require_throttle(); + var timer_1 = require_timer(); + function throttleTime(duration, scheduler, config7) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + var duration$ = timer_1.timer(duration, scheduler); + return throttle_1.throttle(function() { + return duration$; + }, config7); + } + exports2.throttleTime = throttleTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js + var require_timeInterval = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TimeInterval = exports2.timeInterval = void 0; + var async_1 = require_async(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function timeInterval(scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return lift_1.operate(function(source, subscriber) { + var last2 = scheduler.now(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var now2 = scheduler.now(); + var interval = now2 - last2; + last2 = now2; + subscriber.next(new TimeInterval(value, interval)); + })); + }); + } + exports2.timeInterval = timeInterval; + var TimeInterval = function() { + function TimeInterval2(value, interval) { + this.value = value; + this.interval = interval; + } + return TimeInterval2; + }(); + exports2.TimeInterval = TimeInterval; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js + var require_timeoutWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeoutWith = void 0; + var async_1 = require_async(); + var isDate_1 = require_isDate(); + var timeout_1 = require_timeout(); + function timeoutWith(due2, withObservable, scheduler) { + var first; + var each; + var _with; + scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async; + if (isDate_1.isValidDate(due2)) { + first = due2; + } else if (typeof due2 === "number") { + each = due2; + } + if (withObservable) { + _with = function() { + return withObservable; + }; + } else { + throw new TypeError("No observable provided to switch to"); + } + if (first == null && each == null) { + throw new TypeError("No timeout provided."); + } + return timeout_1.timeout({ + first, + each, + scheduler, + with: _with + }); + } + exports2.timeoutWith = timeoutWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timestamp.js + var require_timestamp = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timestamp = void 0; + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var map_1 = require_map(); + function timestamp(timestampProvider) { + if (timestampProvider === void 0) { + timestampProvider = dateTimestampProvider_1.dateTimestampProvider; + } + return map_1.map(function(value) { + return { value, timestamp: timestampProvider.now() }; + }); + } + exports2.timestamp = timestamp; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/window.js + var require_window = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/window.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.window = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function window2(windowBoundaries) { + return lift_1.operate(function(source, subscriber) { + var windowSubject = new Subject_1.Subject(); + subscriber.next(windowSubject.asObservable()); + var errorHandler = function(err) { + windowSubject.error(err); + subscriber.error(err); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); + }, function() { + windowSubject.complete(); + subscriber.complete(); + }, errorHandler)); + innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + windowSubject.complete(); + subscriber.next(windowSubject = new Subject_1.Subject()); + }, noop_1.noop, errorHandler)); + return function() { + windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); + windowSubject = null; + }; + }); + } + exports2.window = window2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowCount.js + var require_windowCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowCount = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function windowCount(windowSize, startWindowEvery) { + if (startWindowEvery === void 0) { + startWindowEvery = 0; + } + var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; + return lift_1.operate(function(source, subscriber) { + var windows = [new Subject_1.Subject()]; + var starts = []; + var count = 0; + subscriber.next(windows[0].asObservable()); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + try { + for (var windows_1 = __values2(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { + var window_1 = windows_1_1.value; + window_1.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (windows_1_1 && !windows_1_1.done && (_a2 = windows_1.return)) + _a2.call(windows_1); + } finally { + if (e_1) + throw e_1.error; + } + } + var c = count - windowSize + 1; + if (c >= 0 && c % startEvery === 0) { + windows.shift().complete(); + } + if (++count % startEvery === 0) { + var window_2 = new Subject_1.Subject(); + windows.push(window_2); + subscriber.next(window_2.asObservable()); + } + }, function() { + while (windows.length > 0) { + windows.shift().complete(); + } + subscriber.complete(); + }, function(err) { + while (windows.length > 0) { + windows.shift().error(err); + } + subscriber.error(err); + }, function() { + starts = null; + windows = null; + })); + }); + } + exports2.windowCount = windowCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowTime.js + var require_windowTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowTime = void 0; + var Subject_1 = require_Subject(); + var async_1 = require_async(); + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + var args_1 = require_args(); + var executeSchedule_1 = require_executeSchedule(); + function windowTime(windowTimeSpan) { + var _a2, _b2; + var otherArgs = []; + for (var _i2 = 1; _i2 < arguments.length; _i2++) { + otherArgs[_i2 - 1] = arguments[_i2]; + } + var scheduler = (_a2 = args_1.popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : async_1.asyncScheduler; + var windowCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null; + var maxWindowSize = otherArgs[1] || Infinity; + return lift_1.operate(function(source, subscriber) { + var windowRecords = []; + var restartOnClose = false; + var closeWindow = function(record) { + var window2 = record.window, subs = record.subs; + window2.complete(); + subs.unsubscribe(); + arrRemove_1.arrRemove(windowRecords, record); + restartOnClose && startWindow(); + }; + var startWindow = function() { + if (windowRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var window_1 = new Subject_1.Subject(); + var record_1 = { + window: window_1, + subs, + seen: 0 + }; + windowRecords.push(record_1); + subscriber.next(window_1.asObservable()); + executeSchedule_1.executeSchedule(subs, scheduler, function() { + return closeWindow(record_1); + }, windowTimeSpan); + } + }; + if (windowCreationInterval !== null && windowCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); + } else { + restartOnClose = true; + } + startWindow(); + var loop = function(cb2) { + return windowRecords.slice().forEach(cb2); + }; + var terminate = function(cb2) { + loop(function(_a3) { + var window2 = _a3.window; + return cb2(window2); + }); + cb2(subscriber); + subscriber.unsubscribe(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + loop(function(record) { + record.window.next(value); + maxWindowSize <= ++record.seen && closeWindow(record); + }); + }, function() { + return terminate(function(consumer) { + return consumer.complete(); + }); + }, function(err) { + return terminate(function(consumer) { + return consumer.error(err); + }); + })); + return function() { + windowRecords = null; + }; + }); + } + exports2.windowTime = windowTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js + var require_windowToggle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowToggle = void 0; + var Subject_1 = require_Subject(); + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var arrRemove_1 = require_arrRemove(); + function windowToggle(openings, closingSelector) { + return lift_1.operate(function(source, subscriber) { + var windows = []; + var handleError = function(err) { + while (0 < windows.length) { + windows.shift().error(err); + } + subscriber.error(err); + }; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) { + var window2 = new Subject_1.Subject(); + windows.push(window2); + var closingSubscription = new Subscription_1.Subscription(); + var closeWindow = function() { + arrRemove_1.arrRemove(windows, window2); + window2.complete(); + closingSubscription.unsubscribe(); + }; + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue)); + } catch (err) { + handleError(err); + return; + } + subscriber.next(window2.asObservable()); + closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + var windowsCopy = windows.slice(); + try { + for (var windowsCopy_1 = __values2(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { + var window_1 = windowsCopy_1_1.value; + window_1.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a2 = windowsCopy_1.return)) + _a2.call(windowsCopy_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (0 < windows.length) { + windows.shift().complete(); + } + subscriber.complete(); + }, handleError, function() { + while (0 < windows.length) { + windows.shift().unsubscribe(); + } + })); + }); + } + exports2.windowToggle = windowToggle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js + var require_windowWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowWhen = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function windowWhen(closingSelector) { + return lift_1.operate(function(source, subscriber) { + var window2; + var closingSubscriber; + var handleError = function(err) { + window2.error(err); + subscriber.error(err); + }; + var openWindow = function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window2 === null || window2 === void 0 ? void 0 : window2.complete(); + window2 = new Subject_1.Subject(); + subscriber.next(window2.asObservable()); + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector()); + } catch (err) { + handleError(err); + return; + } + closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError)); + }; + openWindow(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return window2.next(value); + }, function() { + window2.complete(); + subscriber.complete(); + }, handleError, function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window2 = null; + })); + }); + } + exports2.windowWhen = windowWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js + var require_withLatestFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.withLatestFrom = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var identity_1 = require_identity(); + var noop_1 = require_noop2(); + var args_1 = require_args(); + function withLatestFrom() { + var inputs = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + inputs[_i2] = arguments[_i2]; + } + var project = args_1.popResultSelector(inputs); + return lift_1.operate(function(source, subscriber) { + var len = inputs.length; + var otherValues = new Array(len); + var hasValue = inputs.map(function() { + return false; + }); + var ready = false; + var _loop_1 = function(i10) { + innerFrom_1.innerFrom(inputs[i10]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + otherValues[i10] = value; + if (!ready && !hasValue[i10]) { + hasValue[i10] = true; + (ready = hasValue.every(identity_1.identity)) && (hasValue = null); + } + }, noop_1.noop)); + }; + for (var i = 0; i < len; i++) { + _loop_1(i); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (ready) { + var values = __spreadArray2([value], __read2(otherValues)); + subscriber.next(project ? project.apply(void 0, __spreadArray2([], __read2(values))) : values); + } + })); + }); + } + exports2.withLatestFrom = withLatestFrom; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zipAll.js + var require_zipAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zipAll = void 0; + var zip_1 = require_zip2(); + var joinAllInternals_1 = require_joinAllInternals(); + function zipAll(project) { + return joinAllInternals_1.joinAllInternals(zip_1.zip, project); + } + exports2.zipAll = zipAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zip.js + var require_zip3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zip.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zip = void 0; + var zip_1 = require_zip2(); + var lift_1 = require_lift(); + function zip() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + return lift_1.operate(function(source, subscriber) { + zip_1.zip.apply(void 0, __spreadArray2([source], __read2(sources))).subscribe(subscriber); + }); + } + exports2.zip = zip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zipWith.js + var require_zipWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zipWith = void 0; + var zip_1 = require_zip3(); + function zipWith() { + var otherInputs = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherInputs[_i2] = arguments[_i2]; + } + return zip_1.zip.apply(void 0, __spreadArray2([], __read2(otherInputs))); + } + exports2.zipWith = zipWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/index.js + var require_cjs7 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/index.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + Object.defineProperty(o, k22, { enumerable: true, get: function() { + return m[k]; + } }); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding(exports3, m, p); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.interval = exports2.iif = exports2.generate = exports2.fromEventPattern = exports2.fromEvent = exports2.from = exports2.forkJoin = exports2.empty = exports2.defer = exports2.connectable = exports2.concat = exports2.combineLatest = exports2.bindNodeCallback = exports2.bindCallback = exports2.UnsubscriptionError = exports2.TimeoutError = exports2.SequenceError = exports2.ObjectUnsubscribedError = exports2.NotFoundError = exports2.EmptyError = exports2.ArgumentOutOfRangeError = exports2.firstValueFrom = exports2.lastValueFrom = exports2.isObservable = exports2.identity = exports2.noop = exports2.pipe = exports2.NotificationKind = exports2.Notification = exports2.Subscriber = exports2.Subscription = exports2.Scheduler = exports2.VirtualAction = exports2.VirtualTimeScheduler = exports2.animationFrameScheduler = exports2.animationFrame = exports2.queueScheduler = exports2.queue = exports2.asyncScheduler = exports2.async = exports2.asapScheduler = exports2.asap = exports2.AsyncSubject = exports2.ReplaySubject = exports2.BehaviorSubject = exports2.Subject = exports2.animationFrames = exports2.observable = exports2.ConnectableObservable = exports2.Observable = void 0; + exports2.filter = exports2.expand = exports2.exhaustMap = exports2.exhaustAll = exports2.exhaust = exports2.every = exports2.endWith = exports2.elementAt = exports2.distinctUntilKeyChanged = exports2.distinctUntilChanged = exports2.distinct = exports2.dematerialize = exports2.delayWhen = exports2.delay = exports2.defaultIfEmpty = exports2.debounceTime = exports2.debounce = exports2.count = exports2.connect = exports2.concatWith = exports2.concatMapTo = exports2.concatMap = exports2.concatAll = exports2.combineLatestWith = exports2.combineLatestAll = exports2.combineAll = exports2.catchError = exports2.bufferWhen = exports2.bufferToggle = exports2.bufferTime = exports2.bufferCount = exports2.buffer = exports2.auditTime = exports2.audit = exports2.config = exports2.NEVER = exports2.EMPTY = exports2.scheduled = exports2.zip = exports2.using = exports2.timer = exports2.throwError = exports2.range = exports2.race = exports2.partition = exports2.pairs = exports2.onErrorResumeNext = exports2.of = exports2.never = exports2.merge = void 0; + exports2.switchMap = exports2.switchAll = exports2.subscribeOn = exports2.startWith = exports2.skipWhile = exports2.skipUntil = exports2.skipLast = exports2.skip = exports2.single = exports2.shareReplay = exports2.share = exports2.sequenceEqual = exports2.scan = exports2.sampleTime = exports2.sample = exports2.refCount = exports2.retryWhen = exports2.retry = exports2.repeatWhen = exports2.repeat = exports2.reduce = exports2.raceWith = exports2.publishReplay = exports2.publishLast = exports2.publishBehavior = exports2.publish = exports2.pluck = exports2.pairwise = exports2.onErrorResumeNextWith = exports2.observeOn = exports2.multicast = exports2.min = exports2.mergeWith = exports2.mergeScan = exports2.mergeMapTo = exports2.mergeMap = exports2.flatMap = exports2.mergeAll = exports2.max = exports2.materialize = exports2.mapTo = exports2.map = exports2.last = exports2.isEmpty = exports2.ignoreElements = exports2.groupBy = exports2.first = exports2.findIndex = exports2.find = exports2.finalize = void 0; + exports2.zipWith = exports2.zipAll = exports2.withLatestFrom = exports2.windowWhen = exports2.windowToggle = exports2.windowTime = exports2.windowCount = exports2.window = exports2.toArray = exports2.timestamp = exports2.timeoutWith = exports2.timeout = exports2.timeInterval = exports2.throwIfEmpty = exports2.throttleTime = exports2.throttle = exports2.tap = exports2.takeWhile = exports2.takeUntil = exports2.takeLast = exports2.take = exports2.switchScan = exports2.switchMapTo = void 0; + var Observable_1 = require_Observable(); + Object.defineProperty(exports2, "Observable", { enumerable: true, get: function() { + return Observable_1.Observable; + } }); + var ConnectableObservable_1 = require_ConnectableObservable(); + Object.defineProperty(exports2, "ConnectableObservable", { enumerable: true, get: function() { + return ConnectableObservable_1.ConnectableObservable; + } }); + var observable_1 = require_observable2(); + Object.defineProperty(exports2, "observable", { enumerable: true, get: function() { + return observable_1.observable; + } }); + var animationFrames_1 = require_animationFrames(); + Object.defineProperty(exports2, "animationFrames", { enumerable: true, get: function() { + return animationFrames_1.animationFrames; + } }); + var Subject_1 = require_Subject(); + Object.defineProperty(exports2, "Subject", { enumerable: true, get: function() { + return Subject_1.Subject; + } }); + var BehaviorSubject_1 = require_BehaviorSubject(); + Object.defineProperty(exports2, "BehaviorSubject", { enumerable: true, get: function() { + return BehaviorSubject_1.BehaviorSubject; + } }); + var ReplaySubject_1 = require_ReplaySubject(); + Object.defineProperty(exports2, "ReplaySubject", { enumerable: true, get: function() { + return ReplaySubject_1.ReplaySubject; + } }); + var AsyncSubject_1 = require_AsyncSubject(); + Object.defineProperty(exports2, "AsyncSubject", { enumerable: true, get: function() { + return AsyncSubject_1.AsyncSubject; + } }); + var asap_1 = require_asap(); + Object.defineProperty(exports2, "asap", { enumerable: true, get: function() { + return asap_1.asap; + } }); + Object.defineProperty(exports2, "asapScheduler", { enumerable: true, get: function() { + return asap_1.asapScheduler; + } }); + var async_1 = require_async(); + Object.defineProperty(exports2, "async", { enumerable: true, get: function() { + return async_1.async; + } }); + Object.defineProperty(exports2, "asyncScheduler", { enumerable: true, get: function() { + return async_1.asyncScheduler; + } }); + var queue_1 = require_queue(); + Object.defineProperty(exports2, "queue", { enumerable: true, get: function() { + return queue_1.queue; + } }); + Object.defineProperty(exports2, "queueScheduler", { enumerable: true, get: function() { + return queue_1.queueScheduler; + } }); + var animationFrame_1 = require_animationFrame(); + Object.defineProperty(exports2, "animationFrame", { enumerable: true, get: function() { + return animationFrame_1.animationFrame; + } }); + Object.defineProperty(exports2, "animationFrameScheduler", { enumerable: true, get: function() { + return animationFrame_1.animationFrameScheduler; + } }); + var VirtualTimeScheduler_1 = require_VirtualTimeScheduler(); + Object.defineProperty(exports2, "VirtualTimeScheduler", { enumerable: true, get: function() { + return VirtualTimeScheduler_1.VirtualTimeScheduler; + } }); + Object.defineProperty(exports2, "VirtualAction", { enumerable: true, get: function() { + return VirtualTimeScheduler_1.VirtualAction; + } }); + var Scheduler_1 = require_Scheduler(); + Object.defineProperty(exports2, "Scheduler", { enumerable: true, get: function() { + return Scheduler_1.Scheduler; + } }); + var Subscription_1 = require_Subscription(); + Object.defineProperty(exports2, "Subscription", { enumerable: true, get: function() { + return Subscription_1.Subscription; + } }); + var Subscriber_1 = require_Subscriber(); + Object.defineProperty(exports2, "Subscriber", { enumerable: true, get: function() { + return Subscriber_1.Subscriber; + } }); + var Notification_1 = require_Notification(); + Object.defineProperty(exports2, "Notification", { enumerable: true, get: function() { + return Notification_1.Notification; + } }); + Object.defineProperty(exports2, "NotificationKind", { enumerable: true, get: function() { + return Notification_1.NotificationKind; + } }); + var pipe_1 = require_pipe(); + Object.defineProperty(exports2, "pipe", { enumerable: true, get: function() { + return pipe_1.pipe; + } }); + var noop_1 = require_noop2(); + Object.defineProperty(exports2, "noop", { enumerable: true, get: function() { + return noop_1.noop; + } }); + var identity_1 = require_identity(); + Object.defineProperty(exports2, "identity", { enumerable: true, get: function() { + return identity_1.identity; + } }); + var isObservable_1 = require_isObservable(); + Object.defineProperty(exports2, "isObservable", { enumerable: true, get: function() { + return isObservable_1.isObservable; + } }); + var lastValueFrom_1 = require_lastValueFrom(); + Object.defineProperty(exports2, "lastValueFrom", { enumerable: true, get: function() { + return lastValueFrom_1.lastValueFrom; + } }); + var firstValueFrom_1 = require_firstValueFrom(); + Object.defineProperty(exports2, "firstValueFrom", { enumerable: true, get: function() { + return firstValueFrom_1.firstValueFrom; + } }); + var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError(); + Object.defineProperty(exports2, "ArgumentOutOfRangeError", { enumerable: true, get: function() { + return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; + } }); + var EmptyError_1 = require_EmptyError(); + Object.defineProperty(exports2, "EmptyError", { enumerable: true, get: function() { + return EmptyError_1.EmptyError; + } }); + var NotFoundError_1 = require_NotFoundError(); + Object.defineProperty(exports2, "NotFoundError", { enumerable: true, get: function() { + return NotFoundError_1.NotFoundError; + } }); + var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError(); + Object.defineProperty(exports2, "ObjectUnsubscribedError", { enumerable: true, get: function() { + return ObjectUnsubscribedError_1.ObjectUnsubscribedError; + } }); + var SequenceError_1 = require_SequenceError(); + Object.defineProperty(exports2, "SequenceError", { enumerable: true, get: function() { + return SequenceError_1.SequenceError; + } }); + var timeout_1 = require_timeout(); + Object.defineProperty(exports2, "TimeoutError", { enumerable: true, get: function() { + return timeout_1.TimeoutError; + } }); + var UnsubscriptionError_1 = require_UnsubscriptionError(); + Object.defineProperty(exports2, "UnsubscriptionError", { enumerable: true, get: function() { + return UnsubscriptionError_1.UnsubscriptionError; + } }); + var bindCallback_1 = require_bindCallback(); + Object.defineProperty(exports2, "bindCallback", { enumerable: true, get: function() { + return bindCallback_1.bindCallback; + } }); + var bindNodeCallback_1 = require_bindNodeCallback(); + Object.defineProperty(exports2, "bindNodeCallback", { enumerable: true, get: function() { + return bindNodeCallback_1.bindNodeCallback; + } }); + var combineLatest_1 = require_combineLatest(); + Object.defineProperty(exports2, "combineLatest", { enumerable: true, get: function() { + return combineLatest_1.combineLatest; + } }); + var concat_1 = require_concat2(); + Object.defineProperty(exports2, "concat", { enumerable: true, get: function() { + return concat_1.concat; + } }); + var connectable_1 = require_connectable(); + Object.defineProperty(exports2, "connectable", { enumerable: true, get: function() { + return connectable_1.connectable; + } }); + var defer_1 = require_defer(); + Object.defineProperty(exports2, "defer", { enumerable: true, get: function() { + return defer_1.defer; + } }); + var empty_1 = require_empty3(); + Object.defineProperty(exports2, "empty", { enumerable: true, get: function() { + return empty_1.empty; + } }); + var forkJoin_1 = require_forkJoin(); + Object.defineProperty(exports2, "forkJoin", { enumerable: true, get: function() { + return forkJoin_1.forkJoin; + } }); + var from_1 = require_from(); + Object.defineProperty(exports2, "from", { enumerable: true, get: function() { + return from_1.from; + } }); + var fromEvent_1 = require_fromEvent(); + Object.defineProperty(exports2, "fromEvent", { enumerable: true, get: function() { + return fromEvent_1.fromEvent; + } }); + var fromEventPattern_1 = require_fromEventPattern(); + Object.defineProperty(exports2, "fromEventPattern", { enumerable: true, get: function() { + return fromEventPattern_1.fromEventPattern; + } }); + var generate_1 = require_generate2(); + Object.defineProperty(exports2, "generate", { enumerable: true, get: function() { + return generate_1.generate; + } }); + var iif_1 = require_iif(); + Object.defineProperty(exports2, "iif", { enumerable: true, get: function() { + return iif_1.iif; + } }); + var interval_1 = require_interval(); + Object.defineProperty(exports2, "interval", { enumerable: true, get: function() { + return interval_1.interval; + } }); + var merge_1 = require_merge(); + Object.defineProperty(exports2, "merge", { enumerable: true, get: function() { + return merge_1.merge; + } }); + var never_1 = require_never(); + Object.defineProperty(exports2, "never", { enumerable: true, get: function() { + return never_1.never; + } }); + var of_1 = require_of(); + Object.defineProperty(exports2, "of", { enumerable: true, get: function() { + return of_1.of; + } }); + var onErrorResumeNext_1 = require_onErrorResumeNext(); + Object.defineProperty(exports2, "onErrorResumeNext", { enumerable: true, get: function() { + return onErrorResumeNext_1.onErrorResumeNext; + } }); + var pairs_1 = require_pairs(); + Object.defineProperty(exports2, "pairs", { enumerable: true, get: function() { + return pairs_1.pairs; + } }); + var partition_1 = require_partition(); + Object.defineProperty(exports2, "partition", { enumerable: true, get: function() { + return partition_1.partition; + } }); + var race_1 = require_race(); + Object.defineProperty(exports2, "race", { enumerable: true, get: function() { + return race_1.race; + } }); + var range_1 = require_range2(); + Object.defineProperty(exports2, "range", { enumerable: true, get: function() { + return range_1.range; + } }); + var throwError_1 = require_throwError(); + Object.defineProperty(exports2, "throwError", { enumerable: true, get: function() { + return throwError_1.throwError; + } }); + var timer_1 = require_timer(); + Object.defineProperty(exports2, "timer", { enumerable: true, get: function() { + return timer_1.timer; + } }); + var using_1 = require_using(); + Object.defineProperty(exports2, "using", { enumerable: true, get: function() { + return using_1.using; + } }); + var zip_1 = require_zip2(); + Object.defineProperty(exports2, "zip", { enumerable: true, get: function() { + return zip_1.zip; + } }); + var scheduled_1 = require_scheduled(); + Object.defineProperty(exports2, "scheduled", { enumerable: true, get: function() { + return scheduled_1.scheduled; + } }); + var empty_2 = require_empty3(); + Object.defineProperty(exports2, "EMPTY", { enumerable: true, get: function() { + return empty_2.EMPTY; + } }); + var never_2 = require_never(); + Object.defineProperty(exports2, "NEVER", { enumerable: true, get: function() { + return never_2.NEVER; + } }); + __exportStar(require_types(), exports2); + var config_1 = require_config(); + Object.defineProperty(exports2, "config", { enumerable: true, get: function() { + return config_1.config; + } }); + var audit_1 = require_audit(); + Object.defineProperty(exports2, "audit", { enumerable: true, get: function() { + return audit_1.audit; + } }); + var auditTime_1 = require_auditTime(); + Object.defineProperty(exports2, "auditTime", { enumerable: true, get: function() { + return auditTime_1.auditTime; + } }); + var buffer_1 = require_buffer4(); + Object.defineProperty(exports2, "buffer", { enumerable: true, get: function() { + return buffer_1.buffer; + } }); + var bufferCount_1 = require_bufferCount(); + Object.defineProperty(exports2, "bufferCount", { enumerable: true, get: function() { + return bufferCount_1.bufferCount; + } }); + var bufferTime_1 = require_bufferTime(); + Object.defineProperty(exports2, "bufferTime", { enumerable: true, get: function() { + return bufferTime_1.bufferTime; + } }); + var bufferToggle_1 = require_bufferToggle(); + Object.defineProperty(exports2, "bufferToggle", { enumerable: true, get: function() { + return bufferToggle_1.bufferToggle; + } }); + var bufferWhen_1 = require_bufferWhen(); + Object.defineProperty(exports2, "bufferWhen", { enumerable: true, get: function() { + return bufferWhen_1.bufferWhen; + } }); + var catchError_1 = require_catchError(); + Object.defineProperty(exports2, "catchError", { enumerable: true, get: function() { + return catchError_1.catchError; + } }); + var combineAll_1 = require_combineAll(); + Object.defineProperty(exports2, "combineAll", { enumerable: true, get: function() { + return combineAll_1.combineAll; + } }); + var combineLatestAll_1 = require_combineLatestAll(); + Object.defineProperty(exports2, "combineLatestAll", { enumerable: true, get: function() { + return combineLatestAll_1.combineLatestAll; + } }); + var combineLatestWith_1 = require_combineLatestWith(); + Object.defineProperty(exports2, "combineLatestWith", { enumerable: true, get: function() { + return combineLatestWith_1.combineLatestWith; + } }); + var concatAll_1 = require_concatAll(); + Object.defineProperty(exports2, "concatAll", { enumerable: true, get: function() { + return concatAll_1.concatAll; + } }); + var concatMap_1 = require_concatMap(); + Object.defineProperty(exports2, "concatMap", { enumerable: true, get: function() { + return concatMap_1.concatMap; + } }); + var concatMapTo_1 = require_concatMapTo(); + Object.defineProperty(exports2, "concatMapTo", { enumerable: true, get: function() { + return concatMapTo_1.concatMapTo; + } }); + var concatWith_1 = require_concatWith(); + Object.defineProperty(exports2, "concatWith", { enumerable: true, get: function() { + return concatWith_1.concatWith; + } }); + var connect_1 = require_connect(); + Object.defineProperty(exports2, "connect", { enumerable: true, get: function() { + return connect_1.connect; + } }); + var count_1 = require_count(); + Object.defineProperty(exports2, "count", { enumerable: true, get: function() { + return count_1.count; + } }); + var debounce_1 = require_debounce(); + Object.defineProperty(exports2, "debounce", { enumerable: true, get: function() { + return debounce_1.debounce; + } }); + var debounceTime_1 = require_debounceTime(); + Object.defineProperty(exports2, "debounceTime", { enumerable: true, get: function() { + return debounceTime_1.debounceTime; + } }); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + Object.defineProperty(exports2, "defaultIfEmpty", { enumerable: true, get: function() { + return defaultIfEmpty_1.defaultIfEmpty; + } }); + var delay_1 = require_delay(); + Object.defineProperty(exports2, "delay", { enumerable: true, get: function() { + return delay_1.delay; + } }); + var delayWhen_1 = require_delayWhen(); + Object.defineProperty(exports2, "delayWhen", { enumerable: true, get: function() { + return delayWhen_1.delayWhen; + } }); + var dematerialize_1 = require_dematerialize(); + Object.defineProperty(exports2, "dematerialize", { enumerable: true, get: function() { + return dematerialize_1.dematerialize; + } }); + var distinct_1 = require_distinct(); + Object.defineProperty(exports2, "distinct", { enumerable: true, get: function() { + return distinct_1.distinct; + } }); + var distinctUntilChanged_1 = require_distinctUntilChanged(); + Object.defineProperty(exports2, "distinctUntilChanged", { enumerable: true, get: function() { + return distinctUntilChanged_1.distinctUntilChanged; + } }); + var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged(); + Object.defineProperty(exports2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return distinctUntilKeyChanged_1.distinctUntilKeyChanged; + } }); + var elementAt_1 = require_elementAt(); + Object.defineProperty(exports2, "elementAt", { enumerable: true, get: function() { + return elementAt_1.elementAt; + } }); + var endWith_1 = require_endWith(); + Object.defineProperty(exports2, "endWith", { enumerable: true, get: function() { + return endWith_1.endWith; + } }); + var every_1 = require_every(); + Object.defineProperty(exports2, "every", { enumerable: true, get: function() { + return every_1.every; + } }); + var exhaust_1 = require_exhaust(); + Object.defineProperty(exports2, "exhaust", { enumerable: true, get: function() { + return exhaust_1.exhaust; + } }); + var exhaustAll_1 = require_exhaustAll(); + Object.defineProperty(exports2, "exhaustAll", { enumerable: true, get: function() { + return exhaustAll_1.exhaustAll; + } }); + var exhaustMap_1 = require_exhaustMap(); + Object.defineProperty(exports2, "exhaustMap", { enumerable: true, get: function() { + return exhaustMap_1.exhaustMap; + } }); + var expand_1 = require_expand2(); + Object.defineProperty(exports2, "expand", { enumerable: true, get: function() { + return expand_1.expand; + } }); + var filter_1 = require_filter2(); + Object.defineProperty(exports2, "filter", { enumerable: true, get: function() { + return filter_1.filter; + } }); + var finalize_1 = require_finalize(); + Object.defineProperty(exports2, "finalize", { enumerable: true, get: function() { + return finalize_1.finalize; + } }); + var find_1 = require_find(); + Object.defineProperty(exports2, "find", { enumerable: true, get: function() { + return find_1.find; + } }); + var findIndex_1 = require_findIndex(); + Object.defineProperty(exports2, "findIndex", { enumerable: true, get: function() { + return findIndex_1.findIndex; + } }); + var first_1 = require_first(); + Object.defineProperty(exports2, "first", { enumerable: true, get: function() { + return first_1.first; + } }); + var groupBy_1 = require_groupBy(); + Object.defineProperty(exports2, "groupBy", { enumerable: true, get: function() { + return groupBy_1.groupBy; + } }); + var ignoreElements_1 = require_ignoreElements(); + Object.defineProperty(exports2, "ignoreElements", { enumerable: true, get: function() { + return ignoreElements_1.ignoreElements; + } }); + var isEmpty_1 = require_isEmpty(); + Object.defineProperty(exports2, "isEmpty", { enumerable: true, get: function() { + return isEmpty_1.isEmpty; + } }); + var last_1 = require_last(); + Object.defineProperty(exports2, "last", { enumerable: true, get: function() { + return last_1.last; + } }); + var map_1 = require_map(); + Object.defineProperty(exports2, "map", { enumerable: true, get: function() { + return map_1.map; + } }); + var mapTo_1 = require_mapTo(); + Object.defineProperty(exports2, "mapTo", { enumerable: true, get: function() { + return mapTo_1.mapTo; + } }); + var materialize_1 = require_materialize(); + Object.defineProperty(exports2, "materialize", { enumerable: true, get: function() { + return materialize_1.materialize; + } }); + var max_1 = require_max(); + Object.defineProperty(exports2, "max", { enumerable: true, get: function() { + return max_1.max; + } }); + var mergeAll_1 = require_mergeAll(); + Object.defineProperty(exports2, "mergeAll", { enumerable: true, get: function() { + return mergeAll_1.mergeAll; + } }); + var flatMap_1 = require_flatMap(); + Object.defineProperty(exports2, "flatMap", { enumerable: true, get: function() { + return flatMap_1.flatMap; + } }); + var mergeMap_1 = require_mergeMap(); + Object.defineProperty(exports2, "mergeMap", { enumerable: true, get: function() { + return mergeMap_1.mergeMap; + } }); + var mergeMapTo_1 = require_mergeMapTo(); + Object.defineProperty(exports2, "mergeMapTo", { enumerable: true, get: function() { + return mergeMapTo_1.mergeMapTo; + } }); + var mergeScan_1 = require_mergeScan(); + Object.defineProperty(exports2, "mergeScan", { enumerable: true, get: function() { + return mergeScan_1.mergeScan; + } }); + var mergeWith_1 = require_mergeWith(); + Object.defineProperty(exports2, "mergeWith", { enumerable: true, get: function() { + return mergeWith_1.mergeWith; + } }); + var min_1 = require_min3(); + Object.defineProperty(exports2, "min", { enumerable: true, get: function() { + return min_1.min; + } }); + var multicast_1 = require_multicast(); + Object.defineProperty(exports2, "multicast", { enumerable: true, get: function() { + return multicast_1.multicast; + } }); + var observeOn_1 = require_observeOn(); + Object.defineProperty(exports2, "observeOn", { enumerable: true, get: function() { + return observeOn_1.observeOn; + } }); + var onErrorResumeNextWith_1 = require_onErrorResumeNextWith(); + Object.defineProperty(exports2, "onErrorResumeNextWith", { enumerable: true, get: function() { + return onErrorResumeNextWith_1.onErrorResumeNextWith; + } }); + var pairwise_1 = require_pairwise(); + Object.defineProperty(exports2, "pairwise", { enumerable: true, get: function() { + return pairwise_1.pairwise; + } }); + var pluck_1 = require_pluck(); + Object.defineProperty(exports2, "pluck", { enumerable: true, get: function() { + return pluck_1.pluck; + } }); + var publish_1 = require_publish(); + Object.defineProperty(exports2, "publish", { enumerable: true, get: function() { + return publish_1.publish; + } }); + var publishBehavior_1 = require_publishBehavior(); + Object.defineProperty(exports2, "publishBehavior", { enumerable: true, get: function() { + return publishBehavior_1.publishBehavior; + } }); + var publishLast_1 = require_publishLast(); + Object.defineProperty(exports2, "publishLast", { enumerable: true, get: function() { + return publishLast_1.publishLast; + } }); + var publishReplay_1 = require_publishReplay(); + Object.defineProperty(exports2, "publishReplay", { enumerable: true, get: function() { + return publishReplay_1.publishReplay; + } }); + var raceWith_1 = require_raceWith(); + Object.defineProperty(exports2, "raceWith", { enumerable: true, get: function() { + return raceWith_1.raceWith; + } }); + var reduce_1 = require_reduce(); + Object.defineProperty(exports2, "reduce", { enumerable: true, get: function() { + return reduce_1.reduce; + } }); + var repeat_1 = require_repeat(); + Object.defineProperty(exports2, "repeat", { enumerable: true, get: function() { + return repeat_1.repeat; + } }); + var repeatWhen_1 = require_repeatWhen(); + Object.defineProperty(exports2, "repeatWhen", { enumerable: true, get: function() { + return repeatWhen_1.repeatWhen; + } }); + var retry_1 = require_retry(); + Object.defineProperty(exports2, "retry", { enumerable: true, get: function() { + return retry_1.retry; + } }); + var retryWhen_1 = require_retryWhen(); + Object.defineProperty(exports2, "retryWhen", { enumerable: true, get: function() { + return retryWhen_1.retryWhen; + } }); + var refCount_1 = require_refCount(); + Object.defineProperty(exports2, "refCount", { enumerable: true, get: function() { + return refCount_1.refCount; + } }); + var sample_1 = require_sample(); + Object.defineProperty(exports2, "sample", { enumerable: true, get: function() { + return sample_1.sample; + } }); + var sampleTime_1 = require_sampleTime(); + Object.defineProperty(exports2, "sampleTime", { enumerable: true, get: function() { + return sampleTime_1.sampleTime; + } }); + var scan_1 = require_scan(); + Object.defineProperty(exports2, "scan", { enumerable: true, get: function() { + return scan_1.scan; + } }); + var sequenceEqual_1 = require_sequenceEqual(); + Object.defineProperty(exports2, "sequenceEqual", { enumerable: true, get: function() { + return sequenceEqual_1.sequenceEqual; + } }); + var share_1 = require_share(); + Object.defineProperty(exports2, "share", { enumerable: true, get: function() { + return share_1.share; + } }); + var shareReplay_1 = require_shareReplay(); + Object.defineProperty(exports2, "shareReplay", { enumerable: true, get: function() { + return shareReplay_1.shareReplay; + } }); + var single_1 = require_single(); + Object.defineProperty(exports2, "single", { enumerable: true, get: function() { + return single_1.single; + } }); + var skip_1 = require_skip(); + Object.defineProperty(exports2, "skip", { enumerable: true, get: function() { + return skip_1.skip; + } }); + var skipLast_1 = require_skipLast(); + Object.defineProperty(exports2, "skipLast", { enumerable: true, get: function() { + return skipLast_1.skipLast; + } }); + var skipUntil_1 = require_skipUntil(); + Object.defineProperty(exports2, "skipUntil", { enumerable: true, get: function() { + return skipUntil_1.skipUntil; + } }); + var skipWhile_1 = require_skipWhile(); + Object.defineProperty(exports2, "skipWhile", { enumerable: true, get: function() { + return skipWhile_1.skipWhile; + } }); + var startWith_1 = require_startWith(); + Object.defineProperty(exports2, "startWith", { enumerable: true, get: function() { + return startWith_1.startWith; + } }); + var subscribeOn_1 = require_subscribeOn(); + Object.defineProperty(exports2, "subscribeOn", { enumerable: true, get: function() { + return subscribeOn_1.subscribeOn; + } }); + var switchAll_1 = require_switchAll(); + Object.defineProperty(exports2, "switchAll", { enumerable: true, get: function() { + return switchAll_1.switchAll; + } }); + var switchMap_1 = require_switchMap(); + Object.defineProperty(exports2, "switchMap", { enumerable: true, get: function() { + return switchMap_1.switchMap; + } }); + var switchMapTo_1 = require_switchMapTo(); + Object.defineProperty(exports2, "switchMapTo", { enumerable: true, get: function() { + return switchMapTo_1.switchMapTo; + } }); + var switchScan_1 = require_switchScan(); + Object.defineProperty(exports2, "switchScan", { enumerable: true, get: function() { + return switchScan_1.switchScan; + } }); + var take_1 = require_take(); + Object.defineProperty(exports2, "take", { enumerable: true, get: function() { + return take_1.take; + } }); + var takeLast_1 = require_takeLast(); + Object.defineProperty(exports2, "takeLast", { enumerable: true, get: function() { + return takeLast_1.takeLast; + } }); + var takeUntil_1 = require_takeUntil(); + Object.defineProperty(exports2, "takeUntil", { enumerable: true, get: function() { + return takeUntil_1.takeUntil; + } }); + var takeWhile_1 = require_takeWhile(); + Object.defineProperty(exports2, "takeWhile", { enumerable: true, get: function() { + return takeWhile_1.takeWhile; + } }); + var tap_1 = require_tap(); + Object.defineProperty(exports2, "tap", { enumerable: true, get: function() { + return tap_1.tap; + } }); + var throttle_1 = require_throttle(); + Object.defineProperty(exports2, "throttle", { enumerable: true, get: function() { + return throttle_1.throttle; + } }); + var throttleTime_1 = require_throttleTime(); + Object.defineProperty(exports2, "throttleTime", { enumerable: true, get: function() { + return throttleTime_1.throttleTime; + } }); + var throwIfEmpty_1 = require_throwIfEmpty(); + Object.defineProperty(exports2, "throwIfEmpty", { enumerable: true, get: function() { + return throwIfEmpty_1.throwIfEmpty; + } }); + var timeInterval_1 = require_timeInterval(); + Object.defineProperty(exports2, "timeInterval", { enumerable: true, get: function() { + return timeInterval_1.timeInterval; + } }); + var timeout_2 = require_timeout(); + Object.defineProperty(exports2, "timeout", { enumerable: true, get: function() { + return timeout_2.timeout; + } }); + var timeoutWith_1 = require_timeoutWith(); + Object.defineProperty(exports2, "timeoutWith", { enumerable: true, get: function() { + return timeoutWith_1.timeoutWith; + } }); + var timestamp_1 = require_timestamp(); + Object.defineProperty(exports2, "timestamp", { enumerable: true, get: function() { + return timestamp_1.timestamp; + } }); + var toArray_1 = require_toArray(); + Object.defineProperty(exports2, "toArray", { enumerable: true, get: function() { + return toArray_1.toArray; + } }); + var window_1 = require_window(); + Object.defineProperty(exports2, "window", { enumerable: true, get: function() { + return window_1.window; + } }); + var windowCount_1 = require_windowCount(); + Object.defineProperty(exports2, "windowCount", { enumerable: true, get: function() { + return windowCount_1.windowCount; + } }); + var windowTime_1 = require_windowTime(); + Object.defineProperty(exports2, "windowTime", { enumerable: true, get: function() { + return windowTime_1.windowTime; + } }); + var windowToggle_1 = require_windowToggle(); + Object.defineProperty(exports2, "windowToggle", { enumerable: true, get: function() { + return windowToggle_1.windowToggle; + } }); + var windowWhen_1 = require_windowWhen(); + Object.defineProperty(exports2, "windowWhen", { enumerable: true, get: function() { + return windowWhen_1.windowWhen; + } }); + var withLatestFrom_1 = require_withLatestFrom(); + Object.defineProperty(exports2, "withLatestFrom", { enumerable: true, get: function() { + return withLatestFrom_1.withLatestFrom; + } }); + var zipAll_1 = require_zipAll(); + Object.defineProperty(exports2, "zipAll", { enumerable: true, get: function() { + return zipAll_1.zipAll; + } }); + var zipWith_1 = require_zipWith(); + Object.defineProperty(exports2, "zipWith", { enumerable: true, get: function() { + return zipWith_1.zipWith; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/packageInfo.js + var require_packageInfo16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-codec", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/packageInfo.js + var require_packageInfo17 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-create", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/packageDetect.js + var require_packageDetect3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo16(); + var packageInfo_2 = require_packageInfo17(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo14(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/hashers.js + var require_hashers = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/hashers.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllHashers = void 0; + exports2.AllHashers = { + Blake2_128: null, + Blake2_256: null, + Blake2_128Concat: null, + Twox128: null, + Twox256: null, + Twox64Concat: null, + Identity: null + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/runtime.js + var require_runtime = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var META_V1_TO_V22 = { + metadata: { + description: "Returns the metadata of a runtime", + params: [], + type: "OpaqueMetadata" + } + }; + exports2.runtime = { + Metadata: [ + { + methods: { + metadata_at_version: { + description: "Returns the metadata at a given version.", + params: [ + { + name: "version", + type: "u32" + } + ], + type: "Option" + }, + metadata_versions: { + description: "Returns the supported metadata versions.", + params: [], + type: "Vec" + }, + ...META_V1_TO_V22 + }, + version: 2 + }, + { + methods: { + ...META_V1_TO_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v9.js + var require_v9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v9.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v9 = void 0; + exports2.v9 = { + ErrorMetadataV9: { + name: "Text", + docs: "Vec" + }, + EventMetadataV9: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + FunctionArgumentMetadataV9: { + name: "Text", + type: "Type" + }, + FunctionMetadataV9: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + MetadataV9: { + modules: "Vec" + }, + ModuleConstantMetadataV9: { + name: "Text", + type: "Type", + value: "Bytes", + docs: "Vec" + }, + ModuleMetadataV9: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryMetadataV9: { + name: "Text", + modifier: "StorageEntryModifierV9", + type: "StorageEntryTypeV9", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryModifierV9: { + _enum: ["Optional", "Default", "Required"] + }, + StorageEntryTypeV9: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV9", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV9", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV9" + } + } + }, + StorageHasherV9: { + _enum: { + Blake2_128: null, + Blake2_256: null, + Twox128: null, + Twox256: null, + Twox64Concat: null + } + }, + StorageMetadataV9: { + prefix: "Text", + items: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v10.js + var require_v10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v10.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v10 = void 0; + exports2.v10 = { + ErrorMetadataV10: "ErrorMetadataV9", + EventMetadataV10: "EventMetadataV9", + FunctionArgumentMetadataV10: "FunctionArgumentMetadataV9", + FunctionMetadataV10: "FunctionMetadataV9", + MetadataV10: { + modules: "Vec" + }, + ModuleConstantMetadataV10: "ModuleConstantMetadataV9", + ModuleMetadataV10: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryModifierV10: "StorageEntryModifierV9", + StorageEntryMetadataV10: { + name: "Text", + modifier: "StorageEntryModifierV10", + type: "StorageEntryTypeV10", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV10: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV10", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV10", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV10" + } + } + }, + StorageMetadataV10: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV10: { + _enum: { + Blake2_128: null, + Blake2_256: null, + Blake2_128Concat: null, + Twox128: null, + Twox256: null, + Twox64Concat: null + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v11.js + var require_v11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v11.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v11 = void 0; + var hashers_js_1 = require_hashers(); + exports2.v11 = { + ErrorMetadataV11: "ErrorMetadataV10", + EventMetadataV11: "EventMetadataV10", + ExtrinsicMetadataV11: { + version: "u8", + signedExtensions: "Vec" + }, + FunctionArgumentMetadataV11: "FunctionArgumentMetadataV10", + FunctionMetadataV11: "FunctionMetadataV10", + MetadataV11: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV11" + }, + ModuleConstantMetadataV11: "ModuleConstantMetadataV10", + ModuleMetadataV11: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryModifierV11: "StorageEntryModifierV10", + StorageEntryMetadataV11: { + name: "Text", + modifier: "StorageEntryModifierV11", + type: "StorageEntryTypeV11", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV11: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV11", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV11", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV11" + } + } + }, + StorageMetadataV11: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV11: { + _enum: hashers_js_1.AllHashers + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v12.js + var require_v12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v12.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v12 = void 0; + exports2.v12 = { + ErrorMetadataV12: "ErrorMetadataV11", + EventMetadataV12: "EventMetadataV11", + ExtrinsicMetadataV12: "ExtrinsicMetadataV11", + FunctionArgumentMetadataV12: "FunctionArgumentMetadataV11", + FunctionMetadataV12: "FunctionMetadataV11", + MetadataV12: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV12" + }, + ModuleConstantMetadataV12: "ModuleConstantMetadataV11", + ModuleMetadataV12: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec", + index: "u8" + }, + StorageEntryModifierV12: "StorageEntryModifierV11", + StorageEntryMetadataV12: "StorageEntryMetadataV11", + StorageEntryTypeV12: "StorageEntryTypeV11", + StorageMetadataV12: "StorageMetadataV11", + StorageHasherV12: "StorageHasherV11" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v13.js + var require_v13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v13.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v13 = void 0; + exports2.v13 = { + ErrorMetadataV13: "ErrorMetadataV12", + EventMetadataV13: "EventMetadataV12", + ExtrinsicMetadataV13: "ExtrinsicMetadataV12", + FunctionArgumentMetadataV13: "FunctionArgumentMetadataV12", + FunctionMetadataV13: "FunctionMetadataV12", + MetadataV13: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV13" + }, + ModuleConstantMetadataV13: "ModuleConstantMetadataV12", + ModuleMetadataV13: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec", + index: "u8" + }, + StorageEntryModifierV13: "StorageEntryModifierV12", + StorageEntryMetadataV13: { + name: "Text", + modifier: "StorageEntryModifierV13", + type: "StorageEntryTypeV13", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV13: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV13", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV13", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV13" + }, + NMap: { + keyVec: "Vec", + hashers: "Vec", + value: "Type" + } + } + }, + StorageMetadataV13: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV13: "StorageHasherV12" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v1.js + var require_v1 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v1 = exports2.Si1Variant = void 0; + exports2.Si1Variant = { + name: "Text", + fields: "Vec", + index: "u8", + docs: "Vec" + }; + exports2.v1 = { + Si1Field: { + name: "Option", + type: "Si1LookupTypeId", + typeName: "Option", + docs: "Vec" + }, + Si1LookupTypeId: "Compact", + Si1Path: "Si0Path", + Si1Type: { + path: "Si1Path", + params: "Vec", + def: "Si1TypeDef", + docs: "Vec" + }, + Si1TypeDef: { + _enum: { + Composite: "Si1TypeDefComposite", + Variant: "Si1TypeDefVariant", + Sequence: "Si1TypeDefSequence", + Array: "Si1TypeDefArray", + Tuple: "Si1TypeDefTuple", + Primitive: "Si1TypeDefPrimitive", + Compact: "Si1TypeDefCompact", + BitSequence: "Si1TypeDefBitSequence", + HistoricMetaCompat: "Type" + } + }, + Si1TypeDefArray: { + len: "u32", + type: "Si1LookupTypeId" + }, + Si1TypeDefBitSequence: { + bitStoreType: "Si1LookupTypeId", + bitOrderType: "Si1LookupTypeId" + }, + Si1TypeDefCompact: { + type: "Si1LookupTypeId" + }, + Si1TypeDefComposite: { + fields: "Vec" + }, + Si1TypeDefPrimitive: "Si0TypeDefPrimitive", + Si1TypeDefSequence: { + type: "Si1LookupTypeId" + }, + Si1TypeDefTuple: "Vec", + Si1TypeParameter: { + name: "Text", + type: "Option" + }, + Si1TypeDefVariant: { + variants: "Vec" + }, + Si1Variant: exports2.Si1Variant + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v14.js + var require_v14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v14.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v14 = void 0; + var v1_js_1 = require_v1(); + exports2.v14 = { + PortableTypeV14: { + id: "Si1LookupTypeId", + type: "Si1Type" + }, + ErrorMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + EventMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + FunctionArgumentMetadataV14: { + name: "Text", + type: "Type", + typeName: "Option" + }, + FunctionMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + ExtrinsicMetadataV14: { + type: "SiLookupTypeId", + version: "u8", + signedExtensions: "Vec" + }, + MetadataV14: { + lookup: "PortableRegistry", + pallets: "Vec", + extrinsic: "ExtrinsicMetadataV14", + type: "SiLookupTypeId" + }, + PalletCallMetadataV14: { + type: "SiLookupTypeId" + }, + PalletConstantMetadataV14: { + name: "Text", + type: "SiLookupTypeId", + value: "Bytes", + docs: "Vec" + }, + PalletErrorMetadataV14: { + type: "SiLookupTypeId" + }, + PalletEventMetadataV14: { + type: "SiLookupTypeId" + }, + PalletMetadataV14: { + name: "Text", + storage: "Option", + calls: "Option", + events: "Option", + constants: "Vec", + errors: "Option", + index: "u8" + }, + PalletStorageMetadataV14: { + prefix: "Text", + items: "Vec" + }, + SignedExtensionMetadataV14: { + identifier: "Text", + type: "SiLookupTypeId", + additionalSigned: "SiLookupTypeId" + }, + StorageEntryMetadataV14: { + name: "Text", + modifier: "StorageEntryModifierV14", + type: "StorageEntryTypeV14", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryModifierV14: "StorageEntryModifierV13", + StorageEntryTypeV14: { + _enum: { + Plain: "SiLookupTypeId", + Map: { + hashers: "Vec", + key: "SiLookupTypeId", + value: "SiLookupTypeId" + } + } + }, + StorageHasherV14: "StorageHasherV13" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v15.js + var require_v15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v15.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v15 = void 0; + exports2.v15 = { + CustomMetadata15: { + map: "BTreeMap" + }, + CustomValueMetadata15: { + type: "SiLookupTypeId", + value: "Bytes" + }, + ExtrinsicMetadataV15: { + version: "u8", + addressType: "SiLookupTypeId", + callType: "SiLookupTypeId", + signatureType: "SiLookupTypeId", + extraType: "SiLookupTypeId", + signedExtensions: "Vec" + }, + OuterEnums15: { + callType: "SiLookupTypeId", + eventType: "SiLookupTypeId", + errorType: "SiLookupTypeId" + }, + PalletMetadataV15: { + name: "Text", + storage: "Option", + calls: "Option", + events: "Option", + constants: "Vec", + errors: "Option", + index: "u8", + docs: "Vec" + }, + RuntimeApiMetadataV15: { + name: "Text", + methods: "Vec", + docs: "Vec" + }, + RuntimeApiMethodMetadataV15: { + name: "Text", + inputs: "Vec", + output: "SiLookupTypeId", + docs: "Vec" + }, + RuntimeApiMethodParamMetadataV15: { + name: "Text", + type: "SiLookupTypeId" + }, + MetadataV15: { + lookup: "PortableRegistry", + pallets: "Vec", + extrinsic: "ExtrinsicMetadataV15", + type: "SiLookupTypeId", + apis: "Vec", + outerEnums: "OuterEnums15", + custom: "CustomMetadata15" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/definitions.js + var require_definitions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllHashers = void 0; + var hashers_js_1 = require_hashers(); + Object.defineProperty(exports2, "AllHashers", { enumerable: true, get: function() { + return hashers_js_1.AllHashers; + } }); + var runtime_js_1 = require_runtime(); + var v9_js_1 = require_v9(); + var v10_js_1 = require_v10(); + var v11_js_1 = require_v11(); + var v12_js_1 = require_v12(); + var v13_js_1 = require_v13(); + var v14_js_1 = require_v14(); + var v15_js_1 = require_v15(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...v9_js_1.v9, + ...v10_js_1.v10, + ...v11_js_1.v11, + ...v12_js_1.v12, + ...v13_js_1.v13, + ...v14_js_1.v14, + ...v15_js_1.v15, + ErrorMetadataLatest: "ErrorMetadataV14", + EventMetadataLatest: "EventMetadataV14", + ExtrinsicMetadataLatest: "ExtrinsicMetadataV15", + FunctionArgumentMetadataLatest: "FunctionArgumentMetadataV14", + FunctionMetadataLatest: "FunctionMetadataV14", + MetadataLatest: "MetadataV15", + PalletCallMetadataLatest: "PalletCallMetadataV14", + PalletConstantMetadataLatest: "PalletConstantMetadataV14", + PalletErrorMetadataLatest: "PalletErrorMetadataV14", + PalletEventMetadataLatest: "PalletEventMetadataV14", + PalletMetadataLatest: "PalletMetadataV15", + PalletStorageMetadataLatest: "PalletStorageMetadataV14", + PortableType: "PortableTypeV14", + RuntimeApiMetadataLatest: "RuntimeApiMetadataV15", + SignedExtensionMetadataLatest: "SignedExtensionMetadataV14", + StorageEntryMetadataLatest: "StorageEntryMetadataV14", + StorageEntryModifierLatest: "StorageEntryModifierV14", + StorageEntryTypeLatest: "StorageEntryTypeV14", + StorageHasher: "StorageHasherV14", + OpaqueMetadata: "Opaque", + MetadataAll: { + _enum: { + V0: "DoNotConstruct", + V1: "DoNotConstruct", + V2: "DoNotConstruct", + V3: "DoNotConstruct", + V4: "DoNotConstruct", + V5: "DoNotConstruct", + V6: "DoNotConstruct", + V7: "DoNotConstruct", + V8: "DoNotConstruct", + V9: "MetadataV9", + V10: "MetadataV10", + V11: "MetadataV11", + V12: "MetadataV12", + V13: "MetadataV13", + V14: "MetadataV14", + V15: "MetadataV15" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/runtime/runtime.js + var require_runtime2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/runtime/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var CORE_V1_TO_V42 = { + execute_block: { + description: "Execute the given block.", + params: [ + { + name: "block", + type: "Block" + } + ], + type: "Null" + } + }; + var CORE_V1_TO_V22 = { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersionPre3" + } + }; + var CORE_V2_TO_V42 = { + initialize_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + } + }; + var CORE_V4_VERSION2 = { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersion" + } + }; + var CORE_V4_TO_V52 = { + ...CORE_V1_TO_V42, + initialize_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "ExtrinsicInclusionMode" + } + }; + exports2.runtime = { + Core: [ + { + methods: { + ...CORE_V4_VERSION2, + ...CORE_V4_TO_V52 + }, + version: 5 + }, + { + methods: { + ...CORE_V4_VERSION2, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 4 + }, + { + methods: { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersionPre4" + }, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 3 + }, + { + methods: { + ...CORE_V1_TO_V22, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 2 + }, + { + methods: { + initialise_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + }, + ...CORE_V1_TO_V22, + ...CORE_V1_TO_V42 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/runtime/definitions.js + var require_definitions2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/runtime/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.knownOrigins = void 0; + var runtime_js_1 = require_runtime2(); + var numberTypes2 = { + Fixed64: "Int<64, Fixed64>", + FixedI64: "Int<64, FixedI64>", + FixedU64: "UInt<64, FixedU64>", + Fixed128: "Int<128, Fixed128>", + FixedI128: "Int<128, FixedI128>", + FixedU128: "UInt<128, FixedU128>", + I32F32: "Int<64, I32F32>", + U32F32: "UInt<64, U32F32>", + PerU16: "UInt<16, PerU16>", + Perbill: "UInt<32, Perbill>", + Percent: "UInt<8, Percent>", + Permill: "UInt<32, Permill>", + Perquintill: "UInt<64, Perquintill>" + }; + exports2.knownOrigins = { + Council: "CollectiveOrigin", + System: "SystemOrigin", + TechnicalCommittee: "CollectiveOrigin", + Xcm: "XcmOrigin", + XcmPallet: "XcmOrigin", + Authority: "AuthorityOrigin", + GeneralCouncil: "CollectiveOrigin" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...numberTypes2, + AccountId: "AccountId32", + AccountId20: "GenericEthereumAccountId", + AccountId32: "GenericAccountId32", + AccountId33: "GenericAccountId33", + AccountIdOf: "AccountId", + AccountIndex: "GenericAccountIndex", + Address: "MultiAddress", + AssetId: "u32", + Balance: "UInt<128, Balance>", + BalanceOf: "Balance", + Block: "GenericBlock", + BlockNumber: "u32", + BlockNumberFor: "BlockNumber", + BlockNumberOf: "BlockNumber", + Call: "GenericCall", + CallHash: "Hash", + CallHashOf: "CallHash", + ChangesTrieConfiguration: { + digestInterval: "u32", + digestLevels: "u32" + }, + ChangesTrieSignal: { + _enum: { + NewConfiguration: "Option" + } + }, + ConsensusEngineId: "GenericConsensusEngineId", + CodecHash: "Hash", + CrateVersion: { + major: "u16", + minor: "u8", + patch: "u8" + }, + Digest: { + logs: "Vec" + }, + DigestItem: { + _enum: { + Other: "Bytes", + AuthoritiesChange: "Vec", + ChangesTrieRoot: "Hash", + SealV0: "SealV0", + Consensus: "Consensus", + Seal: "Seal", + PreRuntime: "PreRuntime", + ChangesTrieSignal: "ChangesTrieSignal", + RuntimeEnvironmentUpdated: "Null" + } + }, + ExtrinsicsWeight: { + normal: "Weight", + operational: "Weight" + }, + H32: "[u8; 4; H32]", + H64: "[u8; 8; H64]", + H128: "[u8; 16; H128]", + H160: "[u8; 20; H160]", + H256: "[u8; 32; H256]", + H512: "[u8; 64; H512]", + H1024: "[u8; 128; H1024]", + H2048: "[u8; 256; H2048]", + Hash: "H256", + Header: { + parentHash: "Hash", + number: "Compact", + stateRoot: "Hash", + extrinsicsRoot: "Hash", + digest: "Digest" + }, + HeaderPartial: { + parentHash: "Hash", + number: "BlockNumber" + }, + IndicesLookupSource: "GenericLookupSource", + Index: "u32", + Justification: "(ConsensusEngineId, EncodedJustification)", + EncodedJustification: "Bytes", + Justifications: "Vec", + KeyValue: "(StorageKey, StorageData)", + KeyTypeId: "u32", + LockIdentifier: "[u8; 8]", + LookupSource: "MultiAddress", + LookupTarget: "AccountId", + ModuleId: "LockIdentifier", + MultiAddress: "GenericMultiAddress", + MultiSigner: { + _enum: { + Ed25519: "[u8; 32]", + Sr25519: "[u8; 32]", + Ecdsa: "[u8; 33]" + } + }, + Moment: "UInt<64, Moment>", + OpaqueCall: "Bytes", + Origin: "DoNotConstruct", + OriginCaller: { + _enum: { + System: "SystemOrigin" + } + }, + PalletId: "LockIdentifier", + PalletsOrigin: "OriginCaller", + PalletVersion: { + major: "u16", + minor: "u8", + patch: "u8" + }, + Pays: { + _enum: ["Yes", "No"] + }, + Phantom: "Null", + PhantomData: "Null", + Releases: { + _enum: ["V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8", "V9", "V10"] + }, + RuntimeCall: "Call", + RuntimeEvent: "Event", + RuntimeDbWeight: { + read: "Weight", + write: "Weight" + }, + SignedBlock: "SignedBlockWithJustifications", + SignedBlockWithJustification: { + block: "Block", + justification: "Option" + }, + SignedBlockWithJustifications: { + block: "Block", + justifications: "Option" + }, + Slot: "u64", + SlotDuration: "u64", + StorageData: "Bytes", + StorageInfo: { + palletName: "Bytes", + storage_name: "Bytes", + prefix: "Bytes", + maxValues: "Option", + maxSize: "Option" + }, + StorageProof: { + trieNodes: "Vec" + }, + TransactionPriority: "u64", + TransactionLongevity: "u64", + TransactionTag: "Bytes", + TransactionInfo: { + _alias: { + dataSize: "size" + }, + chunkRoot: "H256", + contentHash: "H256", + dataSize: "u32", + blockChunks: "u32" + }, + TransactionStorageProof: { + chunk: "Vec", + proof: "Vec>" + }, + ValidatorId: "AccountId", + ValidatorIdOf: "ValidatorId", + WeightV0: "u32", + WeightV1: "u64", + WeightV2: { + refTime: "Compact", + proofSize: "Compact" + }, + Weight: "WeightV2", + WeightMultiplier: "Fixed64", + PreRuntime: "(ConsensusEngineId, Bytes)", + SealV0: "(u64, Signature)", + Seal: "(ConsensusEngineId, Bytes)", + Consensus: "(ConsensusEngineId, Bytes)", + ExtrinsicInclusionMode: { + _enum: ["AllExtrinsics", "OnlyInherents"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v0.js + var require_v0 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v0.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v0 = void 0; + exports2.v0 = { + Si0Field: { + name: "Option", + type: "Si0LookupTypeId", + typeName: "Option", + docs: "Vec" + }, + Si0LookupTypeId: "u32", + Si0Path: "Vec", + Si0Type: { + path: "Si0Path", + params: "Vec", + def: "Si0TypeDef" + }, + Si0TypeDef: { + _enum: { + Composite: "Si0TypeDefComposite", + Variant: "Si0TypeDefVariant", + Sequence: "Si0TypeDefSequence", + Array: "Si0TypeDefArray", + Tuple: "Si0TypeDefTuple", + Primitive: "Si0TypeDefPrimitive", + Compact: "Si0TypeDefCompact", + Phantom: "Si0TypeDefPhantom", + BitSequence: "Si0TypeDefBitSequence" + } + }, + Si0TypeDefArray: { + len: "u32", + type: "Si0LookupTypeId" + }, + Si0TypeDefBitSequence: { + bitStoreType: "Si0LookupTypeId", + bitOrderType: "Si0LookupTypeId" + }, + Si0TypeDefCompact: { + type: "Si0LookupTypeId" + }, + Si0TypeDefComposite: { + fields: "Vec" + }, + Si0TypeDefPhantom: "Null", + Si0TypeDefVariant: { + variants: "Vec" + }, + Si0TypeDefPrimitive: { + _enum: ["Bool", "Char", "Str", "U8", "U16", "U32", "U64", "U128", "U256", "I8", "I16", "I32", "I64", "I128", "I256"] + }, + Si0TypeDefSequence: { + type: "Si0LookupTypeId" + }, + Si0TypeDefTuple: "Vec", + Si0TypeParameter: { + name: "Text", + type: "Option" + }, + Si0Variant: { + name: "Text", + fields: "Vec", + index: "Option", + discriminant: "Option", + docs: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/definitions.js + var require_definitions3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var v0_js_1 = require_v0(); + var v1_js_1 = require_v1(); + exports2.default = { + rpc: {}, + types: { + ...v0_js_1.v0, + ...v1_js_1.v1, + SiField: "Si1Field", + SiLookupTypeId: "Si1LookupTypeId", + SiPath: "Si1Path", + SiType: "Si1Type", + SiTypeDef: "Si1TypeDef", + SiTypeDefArray: "Si1TypeDefArray", + SiTypeDefBitSequence: "Si1TypeDefBitSequence", + SiTypeDefCompact: "Si1TypeDefCompact", + SiTypeDefComposite: "Si1TypeDefComposite", + SiTypeDefPrimitive: "Si1TypeDefPrimitive", + SiTypeDefSequence: "Si1TypeDefSequence", + SiTypeDefTuple: "Si1TypeDefTuple", + SiTypeParameter: "Si1TypeParameter", + SiTypeDefVariant: "Si1TypeDefVariant", + SiVariant: "Si1Variant" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/essentials.js + var require_essentials = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/essentials.js"(exports2) { + "use strict"; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scaleInfo = exports2.runtime = exports2.metadata = void 0; + var definitions_js_1 = require_definitions(); + Object.defineProperty(exports2, "metadata", { enumerable: true, get: function() { + return __importDefault(definitions_js_1).default; + } }); + var definitions_js_2 = require_definitions2(); + Object.defineProperty(exports2, "runtime", { enumerable: true, get: function() { + return __importDefault(definitions_js_2).default; + } }); + var definitions_js_3 = require_definitions3(); + Object.defineProperty(exports2, "scaleInfo", { enumerable: true, get: function() { + return __importDefault(definitions_js_3).default; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/runtime.js + var require_runtime3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AssetConversionApi: [ + { + methods: { + get_reserves: { + description: "Get pool reserves", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + } + ], + type: "Option<(Balance,Balance)>" + }, + quote_price_exact_tokens_for_tokens: { + description: "Quote price: exact tokens for tokens", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + }, + { + name: "amount", + type: "u128" + }, + { + name: "include_fee", + type: "bool" + } + ], + type: "Option<(Balance)>" + }, + quote_price_tokens_for_exact_tokens: { + description: "Quote price: tokens for exact tokens", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + }, + { + name: "amount", + type: "u128" + }, + { + name: "include_fee", + type: "bool" + } + ], + type: "Option<(Balance)>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/definitions.js + var require_definitions4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime3(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + TAssetConversion: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assets/runtime.js + var require_runtime4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assets/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AssetsApi: [ + { + methods: { + account_balances: { + description: "Return the current set of authorities.", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Vec<(u32, TAssetBalance)>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assets/definitions.js + var require_definitions5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assets/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime4(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + AssetApprovalKey: { + owner: "AccountId", + delegate: "AccountId" + }, + AssetApproval: { + amount: "TAssetBalance", + deposit: "TAssetDepositBalance" + }, + AssetBalance: { + balance: "TAssetBalance", + isFrozen: "bool", + isSufficient: "bool" + }, + AssetDestroyWitness: { + accounts: "Compact", + sufficients: "Compact", + approvals: "Compact" + }, + AssetDetails: { + owner: "AccountId", + issuer: "AccountId", + admin: "AccountId", + freezer: "AccountId", + supply: "TAssetBalance", + deposit: "TAssetDepositBalance", + minBalance: "TAssetBalance", + isSufficient: "bool", + accounts: "u32", + sufficients: "u32", + approvals: "u32", + isFrozen: "bool" + }, + AssetMetadata: { + deposit: "TAssetDepositBalance", + name: "Vec", + symbol: "Vec", + decimals: "u8", + isFrozen: "bool" + }, + TAssetBalance: "u64", + TAssetDepositBalance: "BalanceOf" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/aura/runtime.js + var require_runtime5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/aura/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuraApi: [ + { + methods: { + authorities: { + description: "Return the current set of authorities.", + params: [], + type: "Vec" + }, + slot_duration: { + description: "Returns the slot duration for Aura.", + params: [], + type: "SlotDuration" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/aura/definitions.js + var require_definitions6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/aura/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime5(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + RawAuraPreDigest: { + slotNumber: "u64" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/authorship/definitions.js + var require_definitions7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/authorship/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + UncleEntryItem: { + _enum: { + InclusionHeight: "BlockNumber", + Uncle: "(Hash, Option)" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/rpc.js + var require_rpc = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + epochAuthorship: { + description: "Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore", + isUnsafe: true, + params: [], + type: "HashMap" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/runtime.js + var require_runtime6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var V1_V2_SHARED2 = { + current_epoch: { + description: "Returns information regarding the current epoch.", + params: [], + type: "Epoch" + }, + current_epoch_start: { + description: "Returns the slot that started the current epoch.", + params: [], + type: "Slot" + }, + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the current epoch.", + params: [ + { + name: "slot", + type: "Slot" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + next_epoch: { + description: "Returns information regarding the next epoch (which was already previously announced).", + params: [], + type: "Epoch" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "BabeEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + } + }; + exports2.runtime = { + BabeApi: [ + { + methods: { + configuration: { + description: "Return the genesis configuration for BABE. The configuration is only read on genesis.", + params: [], + type: "BabeGenesisConfiguration" + }, + ...V1_V2_SHARED2 + }, + version: 2 + }, + { + methods: { + configuration: { + description: "Return the configuration for BABE. Version 1.", + params: [], + type: "BabeGenesisConfigurationV1" + }, + ...V1_V2_SHARED2 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/definitions.js + var require_definitions8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc(); + var runtime_js_1 = require_runtime6(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AllowedSlots: { + _enum: ["PrimarySlots", "PrimaryAndSecondaryPlainSlots", "PrimaryAndSecondaryVRFSlots"] + }, + BabeAuthorityWeight: "u64", + BabeEpochConfiguration: { + c: "(u64, u64)", + allowedSlots: "AllowedSlots" + }, + BabeBlockWeight: "u32", + BabeEquivocationProof: { + offender: "AuthorityId", + slotNumber: "SlotNumber", + firstHeader: "Header", + secondHeader: "Header" + }, + BabeGenesisConfiguration: { + slotDuration: "u64", + epochLength: "u64", + c: "(u64, u64)", + genesisAuthorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Randomness", + allowedSlots: "AllowedSlots" + }, + BabeGenesisConfigurationV1: { + slotDuration: "u64", + epochLength: "u64", + c: "(u64, u64)", + genesisAuthorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Randomness", + secondarySlots: "bool" + }, + BabeWeight: "u64", + MaybeRandomness: "Option", + MaybeVrf: "Option", + Epoch: { + epochIndex: "u64", + startSlot: "Slot", + duration: "u64", + authorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Hash", + config: "BabeEpochConfiguration" + }, + EpochAuthorship: { + primary: "Vec", + secondary: "Vec", + secondary_vrf: "Vec" + }, + NextConfigDescriptor: { + _enum: { + V0: "Null", + V1: "NextConfigDescriptorV1" + } + }, + NextConfigDescriptorV1: { + c: "(u64, u64)", + allowedSlots: "AllowedSlots" + }, + OpaqueKeyOwnershipProof: "Bytes", + Randomness: "Hash", + RawBabePreDigest: { + _enum: { + Phantom: "Null", + Primary: "RawBabePreDigestPrimary", + SecondaryPlain: "RawBabePreDigestSecondaryPlain", + SecondaryVRF: "RawBabePreDigestSecondaryVRF" + } + }, + RawBabePreDigestPrimary: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestSecondaryPlain: { + authorityIndex: "u32", + slotNumber: "SlotNumber" + }, + RawBabePreDigestSecondaryVRF: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestTo159: { + _enum: { + Primary: "RawBabePreDigestPrimaryTo159", + Secondary: "RawBabePreDigestSecondaryTo159" + } + }, + RawBabePreDigestPrimaryTo159: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + weight: "BabeBlockWeight", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestSecondaryTo159: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + weight: "BabeBlockWeight" + }, + RawBabePreDigestCompat: { + _enum: { + Zero: "u32", + One: "u32", + Two: "u32", + Three: "u32" + } + }, + SlotNumber: "u64", + VrfData: "[u8; 32]", + VrfOutput: "[u8; 32]", + VrfProof: "[u8; 64]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/balances/definitions.js + var require_definitions9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/balances/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AccountData: { + free: "Balance", + reserved: "Balance", + miscFrozen: "Balance", + feeFrozen: "Balance" + }, + BalanceLockTo212: { + id: "LockIdentifier", + amount: "Balance", + until: "BlockNumber", + reasons: "WithdrawReasons" + }, + BalanceLock: { + id: "LockIdentifier", + amount: "Balance", + reasons: "Reasons" + }, + BalanceStatus: { + _enum: ["Free", "Reserved"] + }, + Reasons: { + _enum: ["Fee", "Misc", "All"] + }, + ReserveData: { + id: "ReserveIdentifier", + amount: "Balance" + }, + ReserveIdentifier: "[u8; 8]", + VestingSchedule: { + offset: "Balance", + perBlock: "Balance", + startingBlock: "BlockNumber" + }, + WithdrawReasons: { + _set: { + TransactionPayment: 1, + Transfer: 2, + Reserve: 4, + Fee: 8, + Tip: 16 + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/rpc.js + var require_rpc2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getFinalizedHead: { + description: "Returns hash of the latest BEEFY finalized block as seen by this client.", + params: [], + type: "H256" + }, + subscribeJustifications: { + description: "Returns the block most recently finalized by BEEFY, alongside its justification.", + params: [], + pubsub: [ + "justifications", + "subscribeJustifications", + "unsubscribeJustifications" + ], + type: "BeefyVersionedFinalityProof" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/runtime.js + var require_runtime7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var BEEFY_V1_V32 = { + beefy_genesis: { + description: "Return the block number where BEEFY consensus is enabled/started", + params: [], + type: "Option" + }, + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the given set.", + params: [ + { + name: "setId", + type: "ValidatorSetId" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "BeefyEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + }, + validator_set: { + description: "Return the current active BEEFY validator set", + params: [], + type: "Option" + } + }; + var BEEFY_MMR_V12 = { + authority_set_proof: { + description: "Return the currently active BEEFY authority set proof.", + params: [], + type: "BeefyAuthoritySet" + }, + next_authority_set_proof: { + description: "Return the next/queued BEEFY authority set proof.", + params: [], + type: "BeefyNextAuthoritySet" + } + }; + exports2.runtime = { + BeefyApi: [ + { + methods: BEEFY_V1_V32, + version: 3 + }, + { + methods: BEEFY_V1_V32, + version: 2 + }, + { + methods: BEEFY_V1_V32, + version: 1 + } + ], + BeefyMmrApi: [ + { + methods: BEEFY_MMR_V12, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/definitions.js + var require_definitions10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc2(); + var runtime_js_1 = require_runtime7(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + BeefyAuthoritySet: { + id: "u64", + len: "u32", + root: "H256" + }, + BeefyCommitment: { + payload: "BeefyPayload", + blockNumber: "BlockNumber", + validatorSetId: "ValidatorSetId" + }, + BeefyId: "[u8; 33]", + BeefyEquivocationProof: { + first: "BeefyVoteMessage", + second: "BeefyVoteMessage" + }, + BeefyCompactSignedCommitment: { + commitment: "BeefyCommitment", + signaturesFrom: "Vec", + validatorSetLen: "u32", + signaturesCompact: "Vec" + }, + BeefySignedCommitment: { + commitment: "BeefyCommitment", + signatures: "Vec>" + }, + BeefyVersionedFinalityProof: { + _enum: { + V0: "Null", + V1: "BeefyCompactSignedCommitment" + } + }, + BeefyNextAuthoritySet: { + id: "u64", + len: "u32", + root: "H256" + }, + BeefyPayload: "Vec<(BeefyPayloadId, Bytes)>", + BeefyPayloadId: "[u8;2]", + BeefyVoteMessage: { + commitment: "BeefyCommitment", + id: "AuthorityId", + signature: "Signature" + }, + MmrRootHash: "H256", + ValidatorSetId: "u64", + ValidatorSet: { + validators: "Vec", + id: "ValidatorSetId" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/benchmark/runtime.js + var require_runtime8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/benchmark/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + Benchmark: [ + { + methods: { + benchmark_metadata: { + description: "Get the benchmark metadata available for this runtime.", + params: [ + { + name: "extra", + type: "bool" + } + ], + type: "(Vec, Vec)" + }, + dispatch_benchmark: { + description: "Dispatch the given benchmark.", + params: [ + { + name: "config", + type: "BenchmarkConfig" + } + ], + type: "Result, Text>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/benchmark/definitions.js + var require_definitions11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/benchmark/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime8(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + BenchmarkBatch: { + pallet: "Text", + instance: "Text", + benchmark: "Text", + results: "Vec" + }, + BenchmarkConfig: { + pallet: "Bytes", + benchmark: "Bytes", + selectedComponents: "Vec<(BenchmarkParameter, u32)>", + verify: "bool", + internalRepeats: "u32" + }, + BenchmarkList: { + pallet: "Bytes", + instance: "Bytes", + benchmarks: "Vec" + }, + BenchmarkMetadata: { + name: "Bytes", + components: "Vec<(BenchmarkParameter, u32, u32)>" + }, + BenchmarkParameter: { + _enum: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] + }, + BenchmarkResult: { + components: "Vec<(BenchmarkParameter, u32)>", + extrinsicTime: "u128", + storageRootTime: "u128", + reads: "u32", + repeatReads: "u32", + writes: "u32", + repeatWrites: "u32", + proofSize: "u32", + benchKeys: "Vec<(Vec, u32, u32, bool)>" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/runtime.js + var require_runtime9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var BB_V2_TO_V42 = { + random_seed: { + description: "Generate a random seed.", + params: [], + type: "Hash" + } + }; + var BB_V2_TO_V52 = { + apply_extrinsic: { + description: "Apply the given extrinsic.", + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "ApplyExtrinsicResultPre6" + } + }; + var BB_V2_TO_V62 = { + check_inherents: { + description: "Check that the inherents are valid.", + params: [ + { + name: "block", + type: "Block" + }, + { + name: "data", + type: "InherentData" + } + ], + type: "CheckInherentsResult" + }, + inherent_extrinsics: { + description: "Generate inherent extrinsics.", + params: [ + { + name: "inherent", + type: "InherentData" + } + ], + type: "Vec" + } + }; + var BB_V3_TO_V62 = { + finalize_block: { + description: "Finish the current block.", + params: [], + type: "Header" + } + }; + exports2.runtime = { + BlockBuilder: [ + { + methods: { + apply_extrinsic: { + description: "Apply the given extrinsic.", + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "ApplyExtrinsicResult" + }, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 6 + }, + { + methods: { + ...BB_V2_TO_V52, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 5 + }, + { + methods: { + ...BB_V2_TO_V42, + ...BB_V2_TO_V52, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 4 + }, + { + methods: { + ...BB_V2_TO_V42, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 3 + }, + { + methods: { + finalise_block: { + description: "Finish the current block.", + params: [], + type: "Header" + }, + ...BB_V2_TO_V42, + ...BB_V2_TO_V62 + }, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/definitions.js + var require_definitions12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime9(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + CheckInherentsResult: { + okay: "bool", + fatalError: "bool", + errors: "InherentData" + }, + InherentData: { + data: "BTreeMap" + }, + InherentIdentifier: "[u8; 8]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/collective/definitions.js + var require_definitions13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/collective/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + CollectiveOrigin: { + _enum: { + Members: "(MemberCount, MemberCount)", + Member: "AccountId" + } + }, + MemberCount: "u32", + ProposalIndex: "u32", + VotesTo230: { + index: "ProposalIndex", + threshold: "MemberCount", + ayes: "Vec", + nays: "Vec" + }, + Votes: { + index: "ProposalIndex", + threshold: "MemberCount", + ayes: "Vec", + nays: "Vec", + end: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/consensus/definitions.js + var require_definitions14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/consensus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AuthorityId: "AccountId", + RawVRFOutput: "[u8; 32]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/rpc.js + var require_rpc3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + call: { + deprecated: "Use the runtime interface `api.call.contractsApi.call` instead", + description: "Executes a call to a contract", + params: [ + { + name: "callRequest", + type: "ContractCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ContractExecResult" + }, + getStorage: { + deprecated: "Use the runtime interface `api.call.contractsApi.getStorage` instead", + description: "Returns the value under a specified storage key in a contract", + params: [ + { + name: "address", + type: "AccountId" + }, + { + name: "key", + type: "H256" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Option" + }, + instantiate: { + deprecated: "Use the runtime interface `api.call.contractsApi.instantiate` instead", + description: "Instantiate a new contract", + params: [ + { + name: "request", + type: "InstantiateRequestV1" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ContractInstantiateResult" + }, + rentProjection: { + deprecated: "Not available in newer versions of the contracts interfaces", + description: "Returns the projected time a given contract will be able to sustain paying its rent", + params: [ + { + name: "address", + type: "AccountId" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Option" + }, + uploadCode: { + deprecated: "Use the runtime interface `api.call.contractsApi.uploadCode` instead", + description: "Upload new code without instantiating a contract from it", + endpoint: "contracts_upload_code", + params: [ + { + name: "uploadRequest", + type: "CodeUploadRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "CodeUploadResult" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/runtime.js + var require_runtime10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var SHARED_V1_V22 = { + get_storage: { + description: "Query a given storage key in a given contract.", + params: [ + { + name: "address", + type: "AccountId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + upload_code: { + description: "Upload new code without instantiating a contract from it.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "code", + type: "Bytes" + }, + { + name: "storageDepositLimit", + type: "Option" + } + ], + type: "CodeUploadResult" + } + }; + exports2.runtime = { + ContractsApi: [ + { + methods: { + call: { + description: "Perform a call from a specified account to a given contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "dest", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "Option" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "inputData", + type: "Vec" + } + ], + type: "ContractExecResult" + }, + instantiate: { + description: "Instantiate a new contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "Option" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "code", + type: "CodeSource" + }, + { + name: "data", + type: "Bytes" + }, + { + name: "salt", + type: "Bytes" + } + ], + type: "ContractInstantiateResult" + }, + ...SHARED_V1_V22 + }, + version: 2 + }, + { + methods: { + call: { + description: "Perform a call from a specified account to a given contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "dest", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "u64" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "inputData", + type: "Vec" + } + ], + type: "ContractExecResultU64" + }, + instantiate: { + description: "Instantiate a new contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "u64" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "code", + type: "CodeSource" + }, + { + name: "data", + type: "Bytes" + }, + { + name: "salt", + type: "Bytes" + } + ], + type: "ContractInstantiateResultU64" + }, + ...SHARED_V1_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/definitions.js + var require_definitions15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc3(); + var runtime_js_1 = require_runtime10(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AliveContractInfo: { + trieId: "TrieId", + storageSize: "u32", + pairCount: "u32", + codeHash: "CodeHash", + rentAllowance: "Balance", + rentPaid: "Balance", + deductBlock: "BlockNumber", + lastWrite: "Option", + _reserved: "Option" + }, + CodeHash: "Hash", + CodeSource: { + _enum: { + Upload: "Bytes", + Existing: "Hash" + } + }, + CodeUploadRequest: { + origin: "AccountId", + code: "Bytes", + storageDepositLimit: "Option" + }, + CodeUploadResult: "Result", + CodeUploadResultValue: { + codeHash: "CodeHash", + deposit: "Balance" + }, + ContractCallRequest: { + origin: "AccountId", + dest: "AccountId", + value: "Balance", + gasLimit: "u64", + storageDepositLimit: "Option", + inputData: "Bytes" + }, + ContractExecResultSuccessTo255: { + status: "u8", + data: "Raw" + }, + ContractExecResultTo255: { + _enum: { + Success: "ContractExecResultSuccessTo255", + Error: "Null" + } + }, + ContractExecResultSuccessTo260: { + flags: "ContractReturnFlags", + data: "Bytes", + gasConsumed: "u64" + }, + ContractExecResultTo260: { + _enum: { + Success: "ContractExecResultSuccessTo260", + Error: "Null" + } + }, + ContractExecResultOk: { + flags: "ContractReturnFlags", + data: "Bytes" + }, + ContractExecResultResult: "Result", + ContractExecResultTo267: { + gasConsumed: "u64", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractExecResult: { + gasConsumed: "Weight", + gasRequired: "Weight", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractExecResultU64: { + gasConsumed: "u64", + gasRequired: "u64", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractInfo: { + _enum: { + Alive: "AliveContractInfo", + Tombstone: "TombstoneContractInfo" + } + }, + ContractCallFlags: { + _set: { + _bitLength: 32, + ForwardInput: 1, + CloneInput: 2, + TailCall: 4, + AllowReentry: 8 + } + }, + ContractReturnFlags: { + _set: { + _bitLength: 32, + Revert: 1 + } + }, + ContractStorageKey: "[u8; 32]", + DeletedContract: { + pairCount: "u32", + trieId: "TrieId" + }, + ExecReturnValue: { + flags: "ContractReturnFlags", + data: "Bytes" + }, + Gas: "u64", + HostFnWeightsTo264: { + caller: "Weight", + address: "Weight", + gasLeft: "Weight", + balance: "Weight", + valueTransferred: "Weight", + minimumBalance: "Weight", + tombstoneDeposit: "Weight", + rentAllowance: "Weight", + blockNumber: "Weight", + now: "Weight", + weightToFee: "Weight", + gas: "Weight", + input: "Weight", + inputPerByte: "Weight", + return: "Weight", + returnPerByte: "Weight", + terminate: "Weight", + restoreTo: "Weight", + restoreToPerDelta: "Weight", + random: "Weight", + depositEvent: "Weight", + depositEventPerTopic: "Weight", + depositEventPerByte: "Weight", + setRentAllowance: "Weight", + setStorage: "Weight", + setStoragePerByte: "Weight", + clearStorage: "Weight", + getStorage: "Weight", + getStoragePerByte: "Weight", + transfer: "Weight", + call: "Weight", + callTransferSurcharge: "Weight", + callPerInputByte: "Weight", + callPerOutputByte: "Weight", + instantiate: "Weight", + instantiatePerInputByte: "Weight", + instantiatePerOutputByte: "Weight", + hashSha2256: "Weight", + hashSha2256PerByte: "Weight", + hashKeccak256: "Weight", + hashKeccak256PerByte: "Weight", + hashBlake2256: "Weight", + hashBlake2256PerByte: "Weight", + hashBlake2128: "Weight", + hashBlake2128PerByte: "Weight" + }, + HostFnWeights: { + caller: "Weight", + address: "Weight", + gasLeft: "Weight", + balance: "Weight", + valueTransferred: "Weight", + minimumBalance: "Weight", + tombstoneDeposit: "Weight", + rentAllowance: "Weight", + blockNumber: "Weight", + now: "Weight", + weightToFee: "Weight", + gas: "Weight", + input: "Weight", + inputPerByte: "Weight", + return: "Weight", + returnPerByte: "Weight", + terminate: "Weight", + terminatePerCodeByte: "Weight", + restoreTo: "Weight", + restoreToPerCallerCodeByte: "Weight", + restoreToPerTombstoneCodeByte: "Weight", + restoreToPerDelta: "Weight", + random: "Weight", + depositEvent: "Weight", + depositEventPerTopic: "Weight", + depositEventPerByte: "Weight", + setRentAllowance: "Weight", + setStorage: "Weight", + setStoragePerByte: "Weight", + clearStorage: "Weight", + getStorage: "Weight", + getStoragePerByte: "Weight", + transfer: "Weight", + call: "Weight", + callPerCodeByte: "Weight", + callTransferSurcharge: "Weight", + callPerInputByte: "Weight", + callPerOutputByte: "Weight", + instantiate: "Weight", + instantiatePerCodeByte: "Weight", + instantiatePerInputByte: "Weight", + instantiatePerOutputByte: "Weight", + instantiatePerSaltByte: "Weight", + hashSha2256: "Weight", + hashSha2256PerByte: "Weight", + hashKeccak256: "Weight", + hashKeccak256PerByte: "Weight", + hashBlake2256: "Weight", + hashBlake2256PerByte: "Weight", + hashBlake2128: "Weight", + hashBlake2128PerByte: "Weight", + rentParams: "Weight" + }, + InstantiateRequestV1: { + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + code: "Bytes", + data: "Bytes", + salt: "Bytes" + }, + InstantiateRequestV2: { + _fallback: "InstantiateRequestV1", + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + storageDepositLimit: "Option", + code: "Bytes", + data: "Bytes", + salt: "Bytes" + }, + InstantiateRequest: { + _fallback: "InstantiateRequestV2", + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + storageDepositLimit: "Option", + code: "CodeSource", + data: "Bytes", + salt: "Bytes" + }, + ContractInstantiateResultTo267: "Result", + ContractInstantiateResultTo299: "Result", + ContractInstantiateResult: { + gasConsumed: "WeightV2", + gasRequired: "WeightV2", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "InstantiateReturnValue" + }, + ContractInstantiateResultU64: { + _fallback: "ContractInstantiateResultTo299", + gasConsumed: "u64", + gasRequired: "u64", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "InstantiateReturnValue" + }, + InstantiateReturnValueTo267: { + result: "ExecReturnValue", + accountId: "AccountId", + rentProjection: "Option" + }, + InstantiateReturnValueOk: { + result: "ExecReturnValue", + accountId: "AccountId" + }, + InstantiateReturnValue: "Result", + InstructionWeights: { + i64const: "u32", + i64load: "u32", + i64store: "u32", + select: "u32", + rIf: "u32", + br: "u32", + brIf: "u32", + brIable: "u32", + brIablePerEntry: "u32", + call: "u32", + callIndirect: "u32", + callIndirectPerParam: "u32", + localGet: "u32", + localSet: "u32", + local_tee: "u32", + globalGet: "u32", + globalSet: "u32", + memoryCurrent: "u32", + memoryGrow: "u32", + i64clz: "u32", + i64ctz: "u32", + i64popcnt: "u32", + i64eqz: "u32", + i64extendsi32: "u32", + i64extendui32: "u32", + i32wrapi64: "u32", + i64eq: "u32", + i64ne: "u32", + i64lts: "u32", + i64ltu: "u32", + i64gts: "u32", + i64gtu: "u32", + i64les: "u32", + i64leu: "u32", + i64ges: "u32", + i64geu: "u32", + i64add: "u32", + i64sub: "u32", + i64mul: "u32", + i64divs: "u32", + i64divu: "u32", + i64rems: "u32", + i64remu: "u32", + i64and: "u32", + i64or: "u32", + i64xor: "u32", + i64shl: "u32", + i64shrs: "u32", + i64shru: "u32", + i64rotl: "u32", + i64rotr: "u32" + }, + LimitsTo264: { + eventTopics: "u32", + stackHeight: "u32", + globals: "u32", + parameters: "u32", + memoryPages: "u32", + tableSize: "u32", + brTableSize: "u32", + subjectLen: "u32", + codeSize: "u32" + }, + Limits: { + eventTopics: "u32", + stackHeight: "u32", + globals: "u32", + parameters: "u32", + memoryPages: "u32", + tableSize: "u32", + brTableSize: "u32", + subjectLen: "u32" + }, + PrefabWasmModule: { + scheduleVersion: "Compact", + initial: "Compact", + maximum: "Compact", + refcount: "Compact", + _reserved: "Option", + code: "Bytes", + originalCodeLen: "u32" + }, + RentProjection: { + _enum: { + EvictionAt: "BlockNumber", + NoEviction: "Null" + } + }, + ScheduleTo212: { + version: "u32", + putCodePerByteCost: "Gas", + growMemCost: "Gas", + regularOpCost: "Gas", + returnDataPerByteCost: "Gas", + eventDataPerByteCost: "Gas", + eventPerTopicCost: "Gas", + eventBaseCost: "Gas", + sandboxDataReadCost: "Gas", + sandboxDataWriteCost: "Gas", + maxEventTopics: "u32", + maxStackHeight: "u32", + maxMemoryPages: "u32", + enablePrintln: "bool", + maxSubjectLen: "u32" + }, + ScheduleTo258: { + version: "u32", + putCodePerByteCost: "Gas", + growMemCost: "Gas", + regularOpCost: "Gas", + returnDataPerByteCost: "Gas", + eventDataPerByteCost: "Gas", + eventPerTopicCost: "Gas", + eventBaseCost: "Gas", + sandboxDataReadCost: "Gas", + sandboxDataWriteCost: "Gas", + transferCost: "Gas", + maxEventTopics: "u32", + maxStackHeight: "u32", + maxMemoryPages: "u32", + enablePrintln: "bool", + maxSubjectLen: "u32" + }, + ScheduleTo264: { + version: "u32", + enablePrintln: "bool", + limits: "LimitsTo264", + instructionWeights: "InstructionWeights", + hostFnWeights: "HostFnWeightsTo264" + }, + Schedule: { + version: "u32", + enablePrintln: "bool", + limits: "Limits", + instructionWeights: "InstructionWeights", + hostFnWeights: "HostFnWeights" + }, + SeedOf: "Hash", + StorageDeposit: { + _enum: { + Refund: "Balance", + Charge: "Balance" + } + }, + TombstoneContractInfo: "Hash", + TrieId: "Bytes" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/democracy/definitions.js + var require_definitions16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/democracy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllConvictions = void 0; + exports2.AllConvictions = [ + "None", + "Locked1x", + "Locked2x", + "Locked3x", + "Locked4x", + "Locked5x", + "Locked6x" + ]; + exports2.default = { + rpc: {}, + types: { + AccountVote: { + _enum: { + Standard: "AccountVoteStandard", + Split: "AccountVoteSplit" + } + }, + AccountVoteSplit: { + aye: "Balance", + nay: "Balance" + }, + AccountVoteStandard: { + vote: "Vote", + balance: "Balance" + }, + Conviction: { + _enum: exports2.AllConvictions + }, + Delegations: { + votes: "Balance", + capital: "Balance" + }, + PreimageStatus: { + _enum: { + Missing: "BlockNumber", + Available: "PreimageStatusAvailable" + } + }, + PreimageStatusAvailable: { + data: "Bytes", + provider: "AccountId", + deposit: "Balance", + since: "BlockNumber", + expiry: "Option" + }, + PriorLock: "(BlockNumber, Balance)", + PropIndex: "u32", + Proposal: "Call", + ProxyState: { + _enum: { + Open: "AccountId", + Active: "AccountId" + } + }, + ReferendumIndex: "u32", + ReferendumInfoTo239: { + end: "BlockNumber", + proposalHash: "Hash", + threshold: "VoteThreshold", + delay: "BlockNumber" + }, + ReferendumInfo: { + _enum: { + Ongoing: "ReferendumStatus", + Finished: "ReferendumInfoFinished" + } + }, + ReferendumInfoFinished: { + approved: "bool", + end: "BlockNumber" + }, + ReferendumStatus: { + end: "BlockNumber", + proposalHash: "Hash", + threshold: "VoteThreshold", + delay: "BlockNumber", + tally: "Tally" + }, + Tally: { + ayes: "Balance", + nays: "Balance", + turnout: "Balance" + }, + Voting: { + _enum: { + Direct: "VotingDirect", + Delegating: "VotingDelegating" + } + }, + VotingDirect: { + votes: "Vec", + delegations: "Delegations", + prior: "PriorLock" + }, + VotingDirectVote: "(ReferendumIndex, AccountVote)", + VotingDelegating: { + balance: "Balance", + target: "AccountId", + conviction: "Conviction", + delegations: "Delegations", + prior: "PriorLock" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/dev/rpc.js + var require_rpc4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/dev/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getBlockStats: { + description: "Reexecute the specified `block_hash` and gather statistics while doing so", + isUnsafe: true, + params: [ + { + isHistoric: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/dev/definitions.js + var require_definitions17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/dev/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc4(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + BlockStats: { + witnessLen: "u64", + witnessCompactLen: "u64", + blockLen: "u64", + blockNumExtrinsics: "u64" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/discovery/runtime.js + var require_runtime11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/discovery/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuthorityDiscoveryApi: [ + { + methods: { + authorities: { + description: "Retrieve authority identifiers of the current and next authority set.", + params: [], + type: "Vec" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/discovery/definitions.js + var require_definitions18 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/discovery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime11(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/elections/definitions.js + var require_definitions19 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/elections/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ApprovalFlag: "u32", + DefunctVoter: { + who: "AccountId", + voteCount: "Compact", + candidateCount: "Compact" + }, + Renouncing: { + _enum: { + Member: "Null", + RunnerUp: "Null", + Candidate: "Compact" + } + }, + SetIndex: "u32", + Vote: "GenericVote", + VoteIndex: "u32", + VoterInfo: { + lastActive: "VoteIndex", + lastWin: "VoteIndex", + pot: "Balance", + stake: "Balance" + }, + VoteThreshold: { + _enum: [ + "Super Majority Approve", + "Super Majority Against", + "Simple Majority" + ] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/engine/rpc.js + var require_rpc5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/engine/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + createBlock: { + description: "Instructs the manual-seal authorship task to create a new block", + params: [ + { + name: "createEmpty", + type: "bool" + }, + { + name: "finalize", + type: "bool" + }, + { + isOptional: true, + name: "parentHash", + type: "BlockHash" + } + ], + type: "CreatedBlock" + }, + finalizeBlock: { + description: "Instructs the manual-seal authorship task to finalize a block", + params: [ + { + name: "hash", + type: "BlockHash" + }, + { + isOptional: true, + name: "justification", + type: "Justification" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/engine/definitions.js + var require_definitions20 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/engine/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc5(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + CreatedBlock: { + _alias: { + blockHash: "hash" + }, + blockHash: "BlockHash", + aux: "ImportedAux" + }, + ImportedAux: { + headerOnly: "bool", + clearJustificationRequests: "bool", + needsJustification: "bool", + badJustification: "bool", + needsFinalityProof: "bool", + isNewBest: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/evm/definitions.js + var require_definitions21 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/evm/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + EvmAccount: { + nonce: "u256", + balance: "u256" + }, + EvmCallInfo: { + exitReason: "ExitReason", + value: "Bytes", + usedGas: "U256", + logs: "Vec" + }, + EvmCreateInfo: { + exitReason: "ExitReason", + value: "H160", + usedGas: "U256", + logs: "Vec" + }, + EvmCallInfoV2: { + exitReason: "ExitReason", + value: "Bytes", + usedGas: "U256", + weightInfo: "Option", + logs: "Vec" + }, + EvmCreateInfoV2: { + exitReason: "ExitReason", + value: "H160", + usedGas: "U256", + weightInfo: "Option", + logs: "Vec" + }, + EvmLog: { + address: "H160", + topics: "Vec", + data: "Bytes" + }, + EvmVicinity: { + gasPrice: "u256", + origin: "H160" + }, + EvmWeightInfo: { + refTimeLimit: "Option", + proofSizeLimit: "Option", + refTimeUsage: "Option", + proofSizeUsage: "Option" + }, + ExitError: { + _enum: { + StackUnderflow: "Null", + StackOverflow: "Null", + InvalidJump: "Null", + InvalidRange: "Null", + DesignatedInvalid: "Null", + CallTooDeep: "Null", + CreateCollision: "Null", + CreateContractLimit: "Null", + OutOfOffset: "Null", + OutOfGas: "Null", + OutOfFund: "Null", + PCUnderflow: "Null", + CreateEmpty: "Null", + Other: "Text" + } + }, + ExitFatal: { + _enum: { + NotSupported: "Null", + UnhandledInterrupt: "Null", + CallErrorAsFatal: "ExitError", + Other: "Text" + } + }, + ExitReason: { + _enum: { + Succeed: "ExitSucceed", + Error: "ExitError", + Revert: "ExitRevert", + Fatal: "ExitFatal" + } + }, + ExitRevert: { + _enum: ["Reverted"] + }, + ExitSucceed: { + _enum: ["Stopped", "Returned", "Suicided"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/extrinsics/definitions.js + var require_definitions22 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/extrinsics/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Extrinsic: "GenericExtrinsic", + ExtrinsicEra: "GenericExtrinsicEra", + ExtrinsicPayload: "GenericExtrinsicPayload", + ExtrinsicSignature: "MultiSignature", + ExtrinsicV4: "GenericExtrinsicV4", + ExtrinsicPayloadV4: "GenericExtrinsicPayloadV4", + ExtrinsicSignatureV4: "GenericExtrinsicSignatureV4", + ExtrinsicUnknown: "GenericExtrinsicUnknown", + ExtrinsicPayloadUnknown: "GenericExtrinsicPayloadUnknown", + Era: "ExtrinsicEra", + ImmortalEra: "GenericImmortalEra", + MortalEra: "GenericMortalEra", + AnySignature: "H512", + MultiSignature: { + _enum: { + Ed25519: "Ed25519Signature", + Sr25519: "Sr25519Signature", + Ecdsa: "EcdsaSignature" + } + }, + Signature: "H512", + SignerPayload: "GenericSignerPayload", + EcdsaSignature: "[u8; 65]", + Ed25519Signature: "H512", + Sr25519Signature: "H512" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/fungibles/runtime.js + var require_runtime12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/fungibles/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + FungiblesApi: [ + { + methods: { + query_account_balances: { + description: "Returns the list of all `MultiAsset` that an `AccountId` has", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Result, FungiblesAccessError>" + } + }, + version: 1 + }, + { + methods: { + query_account_balances: { + description: "Returns the list of all `MultiAsset` that an `AccountId` has", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Result" + } + }, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/fungibles/definitions.js + var require_definitions23 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/fungibles/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime12(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + FungiblesAccessError: { + _enum: ["AssetIdConversionFailed", "AmountToBalanceConversionFailed"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genericAsset/definitions.js + var require_definitions24 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genericAsset/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AssetOptions: { + initalIssuance: "Compact", + permissions: "PermissionLatest" + }, + Owner: { + _enum: { + None: "Null", + Address: "AccountId" + } + }, + PermissionsV1: { + update: "Owner", + mint: "Owner", + burn: "Owner" + }, + PermissionVersions: { + _enum: { + V1: "PermissionsV1" + } + }, + PermissionLatest: "PermissionsV1" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/runtime.js + var require_runtime13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + GenesisBuilder: [ + { + methods: { + build_config: { + description: "Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.", + params: [ + { + name: "json", + type: "Vec" + } + ], + type: "Result<(), GenesisBuildErr>" + }, + create_default_config: { + description: "Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.", + params: [], + type: "Vec" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/definitions.js + var require_definitions25 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime13(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + GenesisBuildErr: "Text" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/gilt/definitions.js + var require_definitions26 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/gilt/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ActiveGilt: { + proportion: "Perquintill", + amount: "Balance", + who: "AccountId", + expiry: "BlockNumber" + }, + ActiveGiltsTotal: { + frozen: "Balance", + proportion: "Perquintill", + index: "ActiveIndex", + target: "Perquintill" + }, + ActiveIndex: "u32", + GiltBid: { + amount: "Balance", + who: "AccountId" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/rpc.js + var require_rpc6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + proveFinality: { + description: "Prove finality for the given block number, returning the Justification for the last block in the set.", + params: [ + { + name: "blockNumber", + type: "BlockNumber" + } + ], + type: "Option" + }, + roundState: { + description: "Returns the state of the current best round state as well as the ongoing background rounds", + params: [], + type: "ReportedRoundStates" + }, + subscribeJustifications: { + description: "Subscribes to grandpa justifications", + params: [], + pubsub: [ + "justifications", + "subscribeJustifications", + "unsubscribeJustifications" + ], + type: "JustificationNotification" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/runtime.js + var require_runtime14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var GRANDPA_V2_V32 = { + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the given set.", + params: [ + { + name: "setId", + type: "SetId" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + grandpa_authorities: { + description: "Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.", + params: [], + type: "AuthorityList" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "GrandpaEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + } + }; + exports2.runtime = { + GrandpaApi: [ + { + methods: { + current_set_id: { + description: "Get current GRANDPA authority set id.", + params: [], + type: "SetId" + }, + ...GRANDPA_V2_V32 + }, + version: 3 + }, + { + methods: GRANDPA_V2_V32, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/definitions.js + var require_definitions27 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc6(); + var runtime_js_1 = require_runtime14(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AuthorityIndex: "u64", + AuthorityList: "Vec", + AuthoritySet: { + currentAuthorities: "AuthorityList", + setId: "u64", + pendingStandardChanges: "ForkTreePendingChange", + pendingForcedChanges: "Vec", + authoritySetChanges: "AuthoritySetChanges" + }, + ForkTreePendingChange: { + roots: "Vec", + bestFinalizedNumber: "Option" + }, + ForkTreePendingChangeNode: { + hash: "BlockHash", + number: "BlockNumber", + data: "PendingChange", + children: "Vec" + }, + AuthoritySetChange: "(U64, BlockNumber)", + AuthoritySetChanges: "Vec", + AuthorityWeight: "u64", + DelayKind: { + _enum: { + Finalized: "Null", + Best: "DelayKindBest" + } + }, + DelayKindBest: { + medianLastFinalized: "BlockNumber" + }, + EncodedFinalityProofs: "Bytes", + GrandpaEquivocation: { + _enum: { + Prevote: "GrandpaEquivocationValue", + Precommit: "GrandpaEquivocationValue" + } + }, + GrandpaEquivocationProof: { + setId: "SetId", + equivocation: "GrandpaEquivocation" + }, + GrandpaEquivocationValue: { + roundNumber: "u64", + identity: "AuthorityId", + first: "(GrandpaPrevote, AuthoritySignature)", + second: "(GrandpaPrevote, AuthoritySignature)" + }, + GrandpaPrevote: { + targetHash: "Hash", + targetNumber: "BlockNumber" + }, + GrandpaCommit: { + targetHash: "BlockHash", + targetNumber: "BlockNumber", + precommits: "Vec" + }, + GrandpaPrecommit: { + targetHash: "BlockHash", + targetNumber: "BlockNumber" + }, + GrandpaSignedPrecommit: { + precommit: "GrandpaPrecommit", + signature: "AuthoritySignature", + id: "AuthorityId" + }, + GrandpaJustification: { + round: "u64", + commit: "GrandpaCommit", + votesAncestries: "Vec
" + }, + JustificationNotification: "Bytes", + KeyOwnerProof: "MembershipProof", + NextAuthority: "(AuthorityId, AuthorityWeight)", + PendingChange: { + nextAuthorities: "AuthorityList", + delay: "BlockNumber", + canonHeight: "BlockNumber", + canonHash: "BlockHash", + delayKind: "DelayKind" + }, + PendingPause: { + scheduledAt: "BlockNumber", + delay: "BlockNumber" + }, + PendingResume: { + scheduledAt: "BlockNumber", + delay: "BlockNumber" + }, + Precommits: { + currentWeight: "u32", + missing: "BTreeSet" + }, + Prevotes: { + currentWeight: "u32", + missing: "BTreeSet" + }, + ReportedRoundStates: { + setId: "u32", + best: "RoundState", + background: "Vec" + }, + RoundState: { + round: "u32", + totalWeight: "u32", + thresholdWeight: "u32", + prevotes: "Prevotes", + precommits: "Precommits" + }, + SetId: "u64", + StoredPendingChange: { + scheduledAt: "BlockNumber", + delay: "BlockNumber", + nextAuthorities: "AuthorityList" + }, + StoredState: { + _enum: { + Live: "Null", + PendingPause: "PendingPause", + Paused: "Null", + PendingResume: "PendingResume" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/identity/definitions.js + var require_definitions28 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/identity/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + IdentityFields: { + _set: { + _bitLength: 64, + Display: 1, + Legal: 2, + Web: 4, + Riot: 8, + Email: 16, + PgpFingerprint: 32, + Image: 64, + Twitter: 128 + } + }, + IdentityInfoAdditional: "(Data, Data)", + IdentityInfoTo198: { + additional: "Vec", + display: "Data", + legal: "Data", + web: "Data", + riot: "Data", + email: "Data", + pgpFingerprint: "Option", + image: "Data" + }, + IdentityInfo: { + _fallback: "IdentityInfoTo198", + additional: "Vec", + display: "Data", + legal: "Data", + web: "Data", + riot: "Data", + email: "Data", + pgpFingerprint: "Option", + image: "Data", + twitter: "Data" + }, + IdentityJudgement: { + _enum: { + Unknown: "Null", + FeePaid: "Balance", + Reasonable: "Null", + KnownGood: "Null", + OutOfDate: "Null", + LowQuality: "Null", + Erroneous: "Null" + } + }, + RegistrationJudgement: "(RegistrarIndex, IdentityJudgement)", + RegistrationTo198: { + judgements: "Vec", + deposit: "Balance", + info: "IdentityInfoTo198" + }, + Registration: { + _fallback: "RegistrationTo198", + judgements: "Vec", + deposit: "Balance", + info: "IdentityInfo" + }, + RegistrarIndex: "u32", + RegistrarInfo: { + account: "AccountId", + fee: "Balance", + fields: "IdentityFields" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/imOnline/definitions.js + var require_definitions29 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/imOnline/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AuthIndex: "u32", + AuthoritySignature: "Signature", + Heartbeat: { + blockNumber: "BlockNumber", + networkState: "OpaqueNetworkState", + sessionIndex: "SessionIndex", + authorityIndex: "AuthIndex", + validatorsLen: "u32" + }, + HeartbeatTo244: { + blockNumber: "BlockNumber", + networkState: "OpaqueNetworkState", + sessionIndex: "SessionIndex", + authorityIndex: "AuthIndex" + }, + OpaqueMultiaddr: "Opaque", + OpaquePeerId: "Opaque", + OpaqueNetworkState: { + peerId: "OpaquePeerId", + externalAddresses: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/lottery/definitions.js + var require_definitions30 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/lottery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + CallIndex: "(u8, u8)", + LotteryConfig: { + price: "Balance", + start: "BlockNumber", + length: "BlockNumber", + delay: "BlockNumber", + repeat: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mixnet/runtime.js + var require_runtime15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mixnet/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + MixnetApi: [ + { + methods: { + current_mixnodes: { + description: "Get the index and phase of the current session.", + params: [], + type: "Result" + }, + maybe_register: { + description: "Try to register a mixnode for the next session.", + params: [ + { + name: "session_index", + type: "u32" + }, + { + name: "mixnode", + type: "Mixnode" + } + ], + type: "bool" + }, + prev_mixnodes: { + description: "Get the index and phase of the current session.", + params: [], + type: "Result" + }, + session_status: { + description: "Get the index and phase of the current session.", + params: [], + type: "SessionStatus" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mixnet/definitions.js + var require_definitions31 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mixnet/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime15(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + Mixnode: { + externalAddresses: "Vec", + kxPublic: "[u8; 32]", + peerId: "[u8; 32]" + }, + MixnodesErr: { + _enum: { + InsufficientRegistrations: { + min: "u32", + num: "u32" + } + } + }, + SessionPhase: { + _enum: ["CoverToCurrent", "RequestsToCurrent", "CoverToPrev", "DisconnectFromPrev"] + }, + SessionStatus: { + currentIndex: "u32", + phase: "SessionPhase" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/rpc.js + var require_rpc7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + generateProof: { + description: "Generate MMR proof for the given block numbers.", + params: [ + { + name: "blockNumbers", + type: "Vec" + }, + { + isOptional: true, + name: "bestKnownBlockNumber", + type: "u64" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MmrLeafBatchProof" + }, + root: { + description: "Get the MMR root hash for the current best block.", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MmrHash" + }, + verifyProof: { + description: "Verify an MMR proof", + params: [ + { + name: "proof", + type: "MmrLeafBatchProof" + } + ], + type: "bool" + }, + verifyProofStateless: { + description: "Verify an MMR proof statelessly given an mmr_root", + params: [ + { + name: "root", + type: "MmrHash" + }, + { + name: "proof", + type: "MmrLeafBatchProof" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/runtime.js + var require_runtime16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var MMR_V22 = { + generate_proof: { + description: "Generate MMR proof for the given block numbers.", + params: [ + { + name: "blockNumbers", + type: "Vec" + }, + { + name: "bestKnownBlockNumber", + type: "Option" + } + ], + type: "Result<(Vec, MmrBatchProof), MmrError>" + }, + mmr_leaf_count: { + description: "Return the number of MMR blocks in the chain.", + params: [], + type: "Result" + }, + mmr_root: { + description: "Return the on-chain MMR root hash.", + params: [], + type: "Result" + }, + verify_proof: { + description: "Verify MMR proof against on-chain MMR.", + params: [ + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof_stateless: { + description: "Verify MMR proof against given root hash.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + } + }; + var MMR_V12 = { + generate_batch_proof: { + description: "Generate MMR proof for a series of leaves under given indices.", + params: [ + { + name: "leafIndices", + type: "Vec" + } + ], + type: "Result<(Vec, MmrBatchProof), MmrError>" + }, + generate_proof: { + description: "Generate MMR proof for a leaf under given index.", + params: [ + { + name: "leafIndex", + type: "MmrLeafIndex" + } + ], + type: "Result<(MmrEncodableOpaqueLeaf, MmrProof), MmrError>" + }, + mmr_root: { + description: "Return the on-chain MMR root hash.", + params: [], + type: "Result" + }, + verify_batch_proof: { + description: "Verify MMR proof against on-chain MMR for a batch of leaves.", + params: [ + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_batch_proof_stateless: { + description: "Verify MMR proof against given root hash or a batch of leaves.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof: { + description: "Verify MMR proof against on-chain MMR.", + params: [ + { + name: "leaf", + type: "MmrEncodableOpaqueLeaf" + }, + { + name: "proof", + type: "MmrProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof_stateless: { + description: "Verify MMR proof against given root hash.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaf", + type: "MmrEncodableOpaqueLeaf" + }, + { + name: "proof", + type: "MmrProof" + } + ], + type: "Result<(), MmrError>" + } + }; + exports2.runtime = { + MmrApi: [ + { + methods: MMR_V22, + version: 2 + }, + { + methods: MMR_V12, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/definitions.js + var require_definitions32 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc7(); + var runtime_js_1 = require_runtime16(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + MmrBatchProof: { + leafIndices: "Vec", + leafCount: "MmrNodeIndex", + items: "Vec" + }, + MmrEncodableOpaqueLeaf: "Bytes", + MmrError: { + _enum: ["InvalidNumericOp", "Push", "GetRoot", "Commit", "GenerateProof", "Verify", "LeafNotFound", " PalletNotIncluded", "InvalidLeafIndex", "InvalidBestKnownBlock"] + }, + MmrHash: "Hash", + MmrLeafBatchProof: { + blockHash: "BlockHash", + leaves: "Bytes", + proof: "Bytes" + }, + MmrLeafIndex: "u64", + MmrLeafProof: { + blockHash: "BlockHash", + leaf: "Bytes", + proof: "Bytes" + }, + MmrNodeIndex: "u64", + MmrProof: { + leafIndex: "MmrLeafIndex", + leafCount: "MmrNodeIndex", + items: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nfts/runtime.js + var require_runtime17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nfts/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + NftsApi: [ + { + methods: { + attribute: { + description: "An attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + collection_attribute: { + description: "A collection attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + collection_owner: { + description: "A collection owner", + params: [ + { + name: "collection", + type: "NftCollectionId" + } + ], + type: "Option" + }, + custom_attribute: { + description: "A custom attribute", + params: [ + { + name: "account", + type: "AccountId" + }, + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + owner: { + description: "Collection owner", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + } + ], + type: "Option" + }, + system_attribute: { + description: "System attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nfts/definitions.js + var require_definitions33 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nfts/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime17(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + NftCollectionId: "u32", + NftItemId: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nompools/runtime.js + var require_runtime18 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nompools/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + NominationPoolsApi: [ + { + methods: { + balance_to_points: { + description: "Returns the equivalent points of `new_funds` for a given pool.", + params: [ + { + name: "poolId", + type: "NpPoolId" + }, + { + name: "newFunds", + type: "Balance" + } + ], + type: "Balance" + }, + pending_rewards: { + description: "Returns the pending rewards for the given member.", + params: [ + { + name: "member", + type: "AccountId" + } + ], + type: "Balance" + }, + points_to_balance: { + description: "Returns the equivalent balance of `points` for a given pool.", + params: [ + { + name: "poolId", + type: "NpPoolId" + }, + { + name: "points", + type: "Balance" + } + ], + type: "Balance" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nompools/definitions.js + var require_definitions34 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nompools/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime18(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + NpApiError: { + _enum: ["MemberNotFound", "OverflowInPendingRewards"] + }, + NpPoolId: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offences/definitions.js + var require_definitions35 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offences/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + DeferredOffenceOf: "(Vec, Vec, SessionIndex)", + Kind: "[u8; 16]", + OffenceDetails: { + offender: "Offender", + reporters: "Vec" + }, + Offender: "IdentificationTuple", + OpaqueTimeSlot: "Bytes", + ReportIdOf: "Hash", + Reporter: "AccountId" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/pow/runtime.js + var require_runtime19 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/pow/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + DifficultyApi: [ + { + methods: { + difficulty: { + description: "Return the target difficulty of the next block.", + params: [], + type: "Raw" + } + }, + version: 1 + } + ], + TimestampApi: [ + { + methods: { + timestamp: { + description: "API necessary for timestamp-based difficulty adjustment algorithms.", + params: [], + type: "Moment" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/pow/definitions.js + var require_definitions36 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/pow/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime19(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/proxy/definitions.js + var require_definitions37 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/proxy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ProxyDefinition: { + delegate: "AccountId", + proxyType: "ProxyType", + delay: "BlockNumber" + }, + ProxyType: { + _enum: ["Any", "NonTransfer", "Governance", "Staking"] + }, + ProxyAnnouncement: { + real: "AccountId", + callHash: "Hash", + height: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/recovery/definitions.js + var require_definitions38 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/recovery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ActiveRecovery: { + created: "BlockNumber", + deposit: "Balance", + friends: "Vec" + }, + RecoveryConfig: { + delayPeriod: "BlockNumber", + deposit: "Balance", + friends: "Vec", + threshold: "u16" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scheduler/definitions.js + var require_definitions39 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scheduler/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Period: "(BlockNumber, u32)", + Priority: "u8", + SchedulePeriod: "Period", + SchedulePriority: "Priority", + Scheduled: { + maybeId: "Option", + priority: "SchedulePriority", + call: "Call", + maybePeriodic: "Option", + origin: "PalletsOrigin" + }, + ScheduledTo254: { + maybeId: "Option", + priority: "SchedulePriority", + call: "Call", + maybePeriodic: "Option" + }, + TaskAddress: "(BlockNumber, u32)" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/session/runtime.js + var require_runtime20 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/session/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + SessionKeys: [ + { + methods: { + decode_session_keys: { + description: "Decode the given public session keys.", + params: [ + { + name: "encoded", + type: "Bytes" + } + ], + type: "Option>" + }, + generate_session_keys: { + description: "Generate a set of session keys with optionally using the given seed.", + params: [ + { + name: "seed", + type: "Option" + } + ], + type: "Bytes" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/session/definitions.js + var require_definitions40 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/session/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime20(); + var keyTypes2 = { + BeefyKey: "[u8; 33]", + Keys: "SessionKeys4", + SessionKeys1: "(AccountId)", + SessionKeys2: "(AccountId, AccountId)", + SessionKeys3: "(AccountId, AccountId, AccountId)", + SessionKeys4: "(AccountId, AccountId, AccountId, AccountId)", + SessionKeys5: "(AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys6: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys6B: "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys7: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys7B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys8: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys8B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys9: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys9B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys10: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys10B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...keyTypes2, + FullIdentification: "Exposure", + IdentificationTuple: "(ValidatorId, FullIdentification)", + MembershipProof: { + session: "SessionIndex", + trieNodes: "Vec", + validatorCount: "ValidatorCount" + }, + SessionIndex: "u32", + ValidatorCount: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/society/definitions.js + var require_definitions41 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/society/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Bid: { + who: "AccountId", + kind: "BidKind", + value: "Balance" + }, + BidKind: { + _enum: { + Deposit: "Balance", + Vouch: "(AccountId, Balance)" + } + }, + SocietyJudgement: { + _enum: ["Rebid", "Reject", "Approve"] + }, + SocietyVote: { + _enum: ["Skeptic", "Reject", "Approve"] + }, + StrikeCount: "u32", + VouchingStatus: { + _enum: ["Vouching", "Banned"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/staking/runtime.js + var require_runtime21 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/staking/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + StakingApi: [ + { + methods: { + nominations_quota: { + description: "Returns the nominations quota for a nominator with a given balance.", + params: [ + { + name: "balance", + type: "Balance" + } + ], + type: "u32" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/staking/definitions.js + var require_definitions42 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/staking/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime21(); + var deprecated2 = { + Points: "u32", + EraPoints: { + total: "Points", + individual: "Vec" + } + }; + var phragmen2 = { + CompactAssignments: "CompactAssignmentsWith16", + CompactAssignmentsWith16: { + votes1: "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>", + votes2: "Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>", + votes3: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>", + votes4: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>", + votes5: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>", + votes6: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>", + votes7: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>", + votes8: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>", + votes9: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>", + votes10: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>", + votes11: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>", + votes12: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>", + votes13: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>", + votes14: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>", + votes15: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>", + votes16: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>" + }, + CompactAssignmentsWith24: { + votes1: "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>", + votes2: "Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>", + votes3: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>", + votes4: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>", + votes5: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>", + votes6: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>", + votes7: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>", + votes8: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>", + votes9: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>", + votes10: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>", + votes11: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>", + votes12: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>", + votes13: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>", + votes14: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>", + votes15: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>", + votes16: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>", + votes17: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 16], ValidatorIndexCompact)>", + votes18: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 17], ValidatorIndexCompact)>", + votes19: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 18], ValidatorIndexCompact)>", + votes20: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 19], ValidatorIndexCompact)>", + votes21: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 20], ValidatorIndexCompact)>", + votes22: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 21], ValidatorIndexCompact)>", + votes23: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 22], ValidatorIndexCompact)>", + votes24: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 23], ValidatorIndexCompact)>" + }, + CompactAssignmentsTo265: "CompactAssignmentsWith16", + CompactAssignmentsTo257: { + votes1: "Vec<(NominatorIndex, [CompactScore; 0], ValidatorIndex)>", + votes2: "Vec<(NominatorIndex, [CompactScore; 1], ValidatorIndex)>", + votes3: "Vec<(NominatorIndex, [CompactScore; 2], ValidatorIndex)>", + votes4: "Vec<(NominatorIndex, [CompactScore; 3], ValidatorIndex)>", + votes5: "Vec<(NominatorIndex, [CompactScore; 4], ValidatorIndex)>", + votes6: "Vec<(NominatorIndex, [CompactScore; 5], ValidatorIndex)>", + votes7: "Vec<(NominatorIndex, [CompactScore; 6], ValidatorIndex)>", + votes8: "Vec<(NominatorIndex, [CompactScore; 7], ValidatorIndex)>", + votes9: "Vec<(NominatorIndex, [CompactScore; 8], ValidatorIndex)>", + votes10: "Vec<(NominatorIndex, [CompactScore; 9], ValidatorIndex)>", + votes11: "Vec<(NominatorIndex, [CompactScore; 10], ValidatorIndex)>", + votes12: "Vec<(NominatorIndex, [CompactScore; 11], ValidatorIndex)>", + votes13: "Vec<(NominatorIndex, [CompactScore; 12], ValidatorIndex)>", + votes14: "Vec<(NominatorIndex, [CompactScore; 13], ValidatorIndex)>", + votes15: "Vec<(NominatorIndex, [CompactScore; 14], ValidatorIndex)>", + votes16: "Vec<(NominatorIndex, [CompactScore; 15], ValidatorIndex)>" + }, + CompactScore: "(ValidatorIndex, OffchainAccuracy)", + CompactScoreCompact: "(ValidatorIndexCompact, OffchainAccuracyCompact)", + ElectionCompute: { + _enum: ["OnChain", "Signed", "Unsigned"] + }, + ElectionPhase: { + _enum: { + Off: null, + Signed: null, + Unsigned: "(bool, BlockNumber)", + Emergency: null + } + }, + ElectionResult: { + compute: "ElectionCompute", + slotStake: "Balance", + electedStashes: "Vec", + exposures: "Vec<(AccountId, Exposure)>" + }, + ElectionScore: "[u128; 3]", + ElectionSize: { + validators: "Compact", + nominators: "Compact" + }, + ElectionStatus: { + _enum: { + Close: "Null", + Open: "BlockNumber" + } + }, + ExtendedBalance: "u128", + RawSolution: "RawSolutionWith16", + RawSolutionWith16: { + compact: "CompactAssignmentsWith16", + score: "ElectionScore", + round: "u32" + }, + RawSolutionWith24: { + compact: "CompactAssignmentsWith24", + score: "ElectionScore", + round: "u32" + }, + RawSolutionTo265: "RawSolutionWith16", + ReadySolution: { + supports: "SolutionSupports", + score: "ElectionScore", + compute: "ElectionCompute" + }, + RoundSnapshot: { + voters: "Vec<(AccountId, VoteWeight, Vec)>", + targets: "Vec" + }, + SeatHolder: { + who: "AccountId", + stake: "Balance", + deposit: "Balance" + }, + SignedSubmission: { + _fallback: "SignedSubmissionTo276", + who: "AccountId", + deposit: "Balance", + solution: "RawSolution", + reward: "Balance" + }, + SignedSubmissionTo276: { + who: "AccountId", + deposit: "Balance", + solution: "RawSolution" + }, + SignedSubmissionOf: "SignedSubmission", + SolutionOrSnapshotSize: { + voters: "Compact", + targets: "Compact" + }, + SolutionSupport: { + total: "ExtendedBalance", + voters: "Vec<(AccountId, ExtendedBalance)>" + }, + SolutionSupports: "Vec<(AccountId, SolutionSupport)>", + Supports: "SolutionSupports", + SubmissionIndicesOf: "BTreeMap", + Voter: { + votes: "Vec", + stake: "Balance", + deposit: "Balance" + }, + VoteWeight: "u64" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...deprecated2, + ...phragmen2, + ActiveEraInfo: { + index: "EraIndex", + start: "Option" + }, + EraIndex: "u32", + EraRewardPoints: { + total: "RewardPoint", + individual: "BTreeMap" + }, + EraRewards: { + total: "u32", + rewards: "Vec" + }, + Exposure: { + total: "Compact", + own: "Compact", + others: "Vec" + }, + Forcing: { + _enum: [ + "NotForcing", + "ForceNew", + "ForceNone", + "ForceAlways" + ] + }, + IndividualExposure: { + who: "AccountId", + value: "Compact" + }, + KeyType: "AccountId", + MomentOf: "Moment", + Nominations: { + targets: "Vec", + submittedIn: "EraIndex", + suppressed: "bool" + }, + NominatorIndex: "u32", + NominatorIndexCompact: "Compact", + OffchainAccuracy: "PerU16", + OffchainAccuracyCompact: "Compact", + PhragmenScore: "[u128; 3]", + Points: "u32", + RewardDestination: { + _enum: { + Staked: "Null", + Stash: "Null", + Controller: "Null", + Account: "AccountId", + None: "Null" + } + }, + RewardPoint: "u32", + SlashJournalEntry: { + who: "AccountId", + amount: "Balance", + ownSlash: "Balance" + }, + SlashingSpansTo204: { + spanIndex: "SpanIndex", + lastStart: "EraIndex", + prior: "Vec" + }, + SlashingSpans: { + spanIndex: "SpanIndex", + lastStart: "EraIndex", + lastNonzeroSlash: "EraIndex", + prior: "Vec" + }, + SpanIndex: "u32", + SpanRecord: { + slashed: "Balance", + paidOut: "Balance" + }, + StakingLedgerTo223: { + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec" + }, + StakingLedgerTo240: { + _fallback: "StakingLedgerTo223", + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec", + lastReward: "Option" + }, + StakingLedger: { + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec", + claimedRewards: "Vec" + }, + UnappliedSlashOther: "(AccountId, Balance)", + UnappliedSlash: { + validator: "AccountId", + own: "Balance", + others: "Vec", + reporters: "Vec", + payout: "Balance" + }, + UnlockChunk: { + value: "Compact", + era: "Compact" + }, + ValidatorIndex: "u16", + ValidatorIndexCompact: "Compact", + ValidatorPrefs: "ValidatorPrefsWithBlocked", + ValidatorPrefsWithCommission: { + commission: "Compact" + }, + ValidatorPrefsWithBlocked: { + commission: "Compact", + blocked: "bool" + }, + ValidatorPrefsTo196: { + validatorPayment: "Compact" + }, + ValidatorPrefsTo145: { + unstakeThreshold: "Compact", + validatorPayment: "Compact" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/statement/runtime.js + var require_runtime22 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/statement/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + ValidateStatement: [ + { + methods: { + valdate_statement: { + description: "Validate the statement.", + params: [ + { + name: "source", + type: "StatementStoreStatementSource" + }, + { + name: "statement", + type: "SpStatementStoreStatement" + } + ], + type: "Result" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/statement/definitions.js + var require_definitions43 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/statement/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime22(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + StatementStoreStatementSource: { + _enum: ["Chain", "Network", "Local"] + }, + StatementStoreValidStatement: { + maxCount: "u32", + maxSize: "u32" + }, + StatementStoreInvalidStatement: { + _enum: ["BadProof", "NoProof", "InternalError"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/support/definitions.js + var require_definitions44 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/support/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + WeightToFeeCoefficient: { + coeffInteger: "Balance", + coeffFrac: "Perbill", + negative: "bool", + degree: "u8" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/syncstate/rpc.js + var require_rpc8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/syncstate/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + genSyncSpec: { + description: "Returns the json-serialized chainspec running the node, with a sync state.", + endpoint: "sync_state_genSyncSpec", + params: [ + { + name: "raw", + type: "bool" + } + ], + type: "Json" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/syncstate/definitions.js + var require_definitions45 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/syncstate/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc8(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/rpc.js + var require_rpc9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + accountNextIndex: { + alias: ["account_nextIndex"], + description: "Retrieves the next accountIndex as available on the node", + params: [ + { + name: "accountId", + type: "AccountId" + } + ], + type: "Index" + }, + addLogFilter: { + description: "Adds the supplied directives to the current log filter", + isUnsafe: true, + params: [ + { + name: "directives", + type: "Text" + } + ], + type: "Null" + }, + addReservedPeer: { + description: "Adds a reserved peer", + isUnsafe: true, + params: [ + { + name: "peer", + type: "Text" + } + ], + type: "Text" + }, + chain: { + description: "Retrieves the chain", + params: [], + type: "Text" + }, + chainType: { + description: "Retrieves the chain type", + params: [], + type: "ChainType" + }, + dryRun: { + alias: ["system_dryRunAt"], + description: "Dry run an extrinsic at a given block", + isUnsafe: true, + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ApplyExtrinsicResult" + }, + health: { + description: "Return health status of the node", + noErrorLog: true, + params: [], + type: "Health" + }, + localListenAddresses: { + description: "The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example", + params: [], + type: "Vec" + }, + localPeerId: { + description: "Returns the base58-encoded PeerId of the node", + params: [], + type: "Text" + }, + name: { + description: "Retrieves the node name", + params: [], + type: "Text" + }, + networkState: { + alias: ["system_unstable_networkState"], + description: "Returns current state of the network", + isUnsafe: true, + params: [], + type: "NetworkState" + }, + nodeRoles: { + description: "Returns the roles the node is running as", + params: [], + type: "Vec" + }, + peers: { + description: "Returns the currently connected peers", + isUnsafe: true, + params: [], + type: "Vec" + }, + properties: { + description: "Get a custom set of properties as a JSON object, defined in the chain spec", + params: [], + type: "ChainProperties" + }, + removeReservedPeer: { + description: "Remove a reserved peer", + isUnsafe: true, + params: [ + { + name: "peerId", + type: "Text" + } + ], + type: "Text" + }, + reservedPeers: { + description: "Returns the list of reserved peers", + params: [], + type: "Vec" + }, + resetLogFilter: { + description: "Resets the log filter to Substrate defaults", + isUnsafe: true, + params: [], + type: "Null" + }, + syncState: { + description: "Returns the state of the syncing of the node", + params: [], + type: "SyncState" + }, + version: { + description: "Retrieves the version of the node", + params: [], + type: "Text" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/runtime.js + var require_runtime23 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AccountNonceApi: [ + { + methods: { + account_nonce: { + description: "The API to query account nonce (aka transaction index)", + params: [ + { + name: "accountId", + type: "AccountId" + } + ], + type: "Index" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/definitions.js + var require_definitions46 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc9(); + var runtime_js_1 = require_runtime23(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AccountInfo: "AccountInfoWithTripleRefCount", + AccountInfoWithRefCountU8: { + nonce: "Index", + refcount: "u8", + data: "AccountData" + }, + AccountInfoWithRefCount: { + _fallback: "AccountInfoWithRefCountU8", + nonce: "Index", + refcount: "RefCount", + data: "AccountData" + }, + AccountInfoWithDualRefCount: { + _fallback: "AccountInfoWithRefCount", + nonce: "Index", + consumers: "RefCount", + providers: "RefCount", + data: "AccountData" + }, + AccountInfoWithProviders: "AccountInfoWithDualRefCount", + AccountInfoWithTripleRefCount: { + _fallback: "AccountInfoWithDualRefCount", + nonce: "Index", + consumers: "RefCount", + providers: "RefCount", + sufficients: "RefCount", + data: "AccountData" + }, + ApplyExtrinsicResult: "Result", + ApplyExtrinsicResultPre6: "Result", + ArithmeticError: { + _enum: [ + "Underflow", + "Overflow", + "DivisionByZero" + ] + }, + BlockLength: { + max: "PerDispatchClassU32" + }, + BlockWeights: { + baseBlock: "Weight", + maxBlock: "Weight", + perClass: "PerDispatchClassWeightsPerClass" + }, + ChainProperties: "GenericChainProperties", + ChainType: { + _enum: { + Development: "Null", + Local: "Null", + Live: "Null", + Custom: "Text" + } + }, + ConsumedWeight: "PerDispatchClassWeight", + DigestOf: "Digest", + DispatchClass: { + _enum: ["Normal", "Operational", "Mandatory"] + }, + DispatchError: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModule", + ConsumerRemaining: "Null", + NoProviders: "Null", + TooManyConsumers: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError", + Exhausted: "Null", + Corruption: "Null", + Unavailable: "Null" + } + }, + DispatchErrorPre6: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModulePre6", + ConsumerRemaining: "Null", + NoProviders: "Null", + TooManyConsumers: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError" + } + }, + DispatchErrorPre6First: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModulePre6", + ConsumerRemaining: "Null", + NoProviders: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError" + } + }, + DispatchErrorModuleU8: { + index: "u8", + error: "u8" + }, + DispatchErrorModuleU8a: { + index: "u8", + error: "[u8; 4]" + }, + DispatchErrorModule: "DispatchErrorModuleU8a", + DispatchErrorModulePre6: "DispatchErrorModuleU8", + DispatchErrorTo198: { + module: "Option", + error: "u8" + }, + DispatchInfo: { + weight: "Weight", + class: "DispatchClass", + paysFee: "Pays" + }, + DispatchInfoTo190: { + weight: "Weight", + class: "DispatchClass" + }, + DispatchInfoTo244: { + weight: "Weight", + class: "DispatchClass", + paysFee: "bool" + }, + DispatchOutcome: "Result<(), DispatchError>", + DispatchOutcomePre6: "Result<(), DispatchErrorPre6>", + DispatchResult: "Result<(), DispatchError>", + DispatchResultOf: "DispatchResult", + DispatchResultTo198: "Result<(), Text>", + Event: "GenericEvent", + EventId: "[u8; 2]", + EventIndex: "u32", + EventRecord: { + phase: "Phase", + event: "Event", + topics: "Vec" + }, + Health: { + peers: "u64", + isSyncing: "bool", + shouldHavePeers: "bool" + }, + InvalidTransaction: { + _enum: { + Call: "Null", + Payment: "Null", + Future: "Null", + Stale: "Null", + BadProof: "Null", + AncientBirthBlock: "Null", + ExhaustsResources: "Null", + Custom: "u8", + BadMandatory: "Null", + MandatoryDispatch: "Null", + BadSigner: "Null" + } + }, + Key: "Bytes", + LastRuntimeUpgradeInfo: { + specVersion: "Compact", + specName: "Text" + }, + NetworkState: { + peerId: "Text", + listenedAddresses: "Vec", + externalAddresses: "Vec", + connectedPeers: "HashMap", + notConnectedPeers: "HashMap", + averageDownloadPerSec: "u64", + averageUploadPerSec: "u64", + peerset: "NetworkStatePeerset" + }, + NetworkStatePeerset: { + messageQueue: "u64", + nodes: "HashMap" + }, + NetworkStatePeersetInfo: { + connected: "bool", + reputation: "i32" + }, + NodeRole: { + _enum: { + Full: "Null", + LightClient: "Null", + Authority: "Null", + UnknownRole: "u8" + } + }, + NotConnectedPeer: { + knownAddresses: "Vec", + latestPingTime: "Option", + versionString: "Option" + }, + Peer: { + enabled: "bool", + endpoint: "PeerEndpoint", + knownAddresses: "Vec", + latestPingTime: "PeerPing", + open: "bool", + versionString: "Text" + }, + PeerEndpoint: { + listening: "PeerEndpointAddr" + }, + PeerEndpointAddr: { + _alias: { + localAddr: "local_addr", + sendBackAddr: "send_back_addr" + }, + localAddr: "Text", + sendBackAddr: "Text" + }, + PeerPing: { + nanos: "u64", + secs: "u64" + }, + PeerInfo: { + peerId: "Text", + roles: "Text", + protocolVersion: "u32", + bestHash: "Hash", + bestNumber: "BlockNumber" + }, + PerDispatchClassU32: { + normal: "u32", + operational: "u32", + mandatory: "u32" + }, + PerDispatchClassWeight: { + normal: "Weight", + operational: "Weight", + mandatory: "Weight" + }, + PerDispatchClassWeightsPerClass: { + normal: "WeightPerClass", + operational: "WeightPerClass", + mandatory: "WeightPerClass" + }, + Phase: { + _enum: { + ApplyExtrinsic: "u32", + Finalization: "Null", + Initialization: "Null" + } + }, + RawOrigin: { + _enum: { + Root: "Null", + Signed: "AccountId", + None: "Null" + } + }, + RefCount: "u32", + RefCountTo259: "u8", + SyncState: { + startingBlock: "BlockNumber", + currentBlock: "BlockNumber", + highestBlock: "Option" + }, + SystemOrigin: "RawOrigin", + TokenError: { + _enum: [ + "NoFunds", + "WouldDie", + "BelowMinimum", + "CannotCreate", + "UnknownAsset", + "Frozen", + "Unsupported", + "Underflow", + "Overflow" + ] + }, + TransactionValidityError: { + _enum: { + Invalid: "InvalidTransaction", + Unknown: "UnknownTransaction" + } + }, + TransactionalError: { + _enum: [ + "LimitReached", + "NoLayer" + ] + }, + UnknownTransaction: { + _enum: { + CannotLookup: "Null", + NoUnsignedValidator: "Null", + Custom: "u8" + } + }, + WeightPerClass: { + baseExtrinsic: "Weight", + maxExtrinsic: "Option", + maxTotal: "Option", + reserved: "Option" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/treasury/definitions.js + var require_definitions47 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/treasury/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Bounty: { + proposer: "AccountId", + value: "Balance", + fee: "Balance", + curatorDeposit: "Balance", + bond: "Balance", + status: "BountyStatus" + }, + BountyIndex: "u32", + BountyStatus: { + _enum: { + Proposed: "Null", + Approved: "Null", + Funded: "Null", + CuratorProposed: "BountyStatusCuratorProposed", + Active: "BountyStatusActive", + PendingPayout: "BountyStatusPendingPayout" + } + }, + BountyStatusActive: { + curator: "AccountId", + updateDue: "BlockNumber" + }, + BountyStatusCuratorProposed: { + curator: "AccountId" + }, + BountyStatusPendingPayout: { + curator: "AccountId", + beneficiary: "AccountId", + unlockAt: "BlockNumber" + }, + OpenTip: { + reason: "Hash", + who: "AccountId", + finder: "AccountId", + deposit: "Balance", + closes: "Option", + tips: "Vec", + findersFee: "bool" + }, + OpenTipTo225: { + reason: "Hash", + who: "AccountId", + finder: "Option", + closes: "Option", + tips: "Vec" + }, + OpenTipFinderTo225: "(AccountId, Balance)", + OpenTipTip: "(AccountId, Balance)", + TreasuryProposal: { + proposer: "AccountId", + value: "Balance", + beneficiary: "AccountId", + bond: "Balance" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txpayment/definitions.js + var require_definitions48 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txpayment/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Multiplier: "Fixed128" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txqueue/runtime.js + var require_runtime24 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txqueue/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + TaggedTransactionQueue: [ + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "source", + type: "TransactionSource" + }, + { + name: "tx", + type: "Extrinsic" + }, + { + name: "blockHash", + type: "BlockHash" + } + ], + type: "TransactionValidity" + } + }, + version: 3 + }, + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "source", + type: "TransactionSource" + }, + { + name: "tx", + type: "Extrinsic" + } + ], + type: "TransactionValidity" + } + }, + version: 2 + }, + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "tx", + type: "Extrinsic" + } + ], + type: "TransactionValidity" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txqueue/definitions.js + var require_definitions49 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txqueue/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime24(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + TransactionSource: { + _enum: ["InBlock", "Local", "External"] + }, + TransactionValidity: "Result", + ValidTransaction: { + priority: "TransactionPriority", + requires: "Vec", + provides: "Vec", + longevity: "TransactionLongevity", + propagate: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/uniques/definitions.js + var require_definitions50 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/uniques/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ClassId: "u32", + InstanceId: "u32", + DepositBalance: "Balance", + DepositBalanceOf: "Balance", + ClassDetails: { + owner: "AccountId", + issuer: "AccountId", + admin: "AccountId", + freezer: "AccountId", + totalDeposit: "DepositBalance", + freeHolding: "bool", + instances: "u32", + instanceMetadatas: "u32", + attributes: "u32", + isFrozen: "bool" + }, + DestroyWitness: { + instances: "Compact", + instanceMetadatas: "Compact", + attributes: "Compact" + }, + InstanceDetails: { + owner: "AccountId", + approved: "Option", + isFrozen: "bool", + deposit: "DepositBalance" + }, + ClassMetadata: { + deposit: "DepositBalance", + data: "Vec", + isFrozen: "bool" + }, + InstanceMetadata: { + deposit: "DepositBalance", + data: "Vec", + isFrozen: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/utility/definitions.js + var require_definitions51 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/utility/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Multisig: { + when: "Timepoint", + deposit: "Balance", + depositor: "AccountId", + approvals: "Vec" + }, + Timepoint: { + height: "BlockNumber", + index: "u32" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/vesting/definitions.js + var require_definitions52 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/vesting/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + VestingInfo: { + locked: "Balance", + perBlock: "Balance", + startingBlock: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/attestations/definitions.js + var require_definitions53 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/attestations/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + BlockAttestations: { + receipt: "CandidateReceipt", + valid: "Vec", + invalid: "Vec" + }, + IncludedBlocks: { + actualNumber: "BlockNumber", + session: "SessionIndex", + randomSeed: "H256", + activeParachains: "Vec", + paraBlocks: "Vec" + }, + MoreAttestations: {} + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/bridges/definitions.js + var require_definitions54 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/bridges/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + BridgedBlockHash: "H256", + BridgedBlockNumber: "BlockNumber", + BridgedHeader: "Header", + BridgeMessageId: "(LaneId, MessageNonce)", + CallOrigin: { + _enum: { + SourceRoot: "Null", + TargetAccount: "(AccountId, MultiSigner, MultiSignature)", + SourceAccount: "AccountId" + } + }, + ChainId: "[u8; 4]", + DeliveredMessages: { + begin: "MessageNonce", + end: "MessageNonce", + dispatchResults: "BitVec" + }, + DispatchFeePayment: { + _enum: ["AtSourceChain", "AtTargetChain"] + }, + InboundLaneData: { + relayers: "Vec", + lastConfirmedNonce: "MessageNonce" + }, + InboundRelayer: "AccountId", + InitializationData: { + header: "Header", + authorityList: "AuthorityList", + setId: "SetId", + isHalted: "bool" + }, + LaneId: "[u8; 4]", + MessageData: { + payload: "Bytes", + fee: "Balance" + }, + MessagesDeliveryProofOf: { + bridgedHeaderHash: "BlockHash", + storageProof: "Vec", + lane: "LaneId" + }, + MessageKey: { + laneId: "LaneId", + nonce: "MessageNonce" + }, + MessageNonce: "u64", + MessagesProofOf: { + bridgedHeaderHash: "BridgedBlockHash", + storageProof: "Vec", + lane: "LaneId", + noncesStart: "MessageNonce", + noncesEnd: "MessageNonce" + }, + OperatingMode: { + _enum: ["Normal", "RejectingOutboundMessages", "Halted"] + }, + OutboundLaneData: { + oldestUnprunedNonce: "MessageNonce", + latestReceivedNonce: "MessageNonce", + latestGeneratedNonce: "MessageNonce" + }, + OutboundMessageFee: "Balance", + OutboundPayload: { + specVersion: "u32", + weight: "Weight", + origin: "CallOrigin", + dispatchFeePayment: "DispatchFeePayment", + call: "Bytes" + }, + Parameter: "Null", + RelayerId: "AccountId", + UnrewardedRelayer: { + relayer: "RelayerId", + messages: "DeliveredMessages" + }, + UnrewardedRelayersState: { + unrewardedRelayer_Entries: "MessageNonce", + messagesInOldestEntry: "MessageNonce", + totalMessages: "MessageNonce" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/claims/definitions.js + var require_definitions55 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/claims/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + StatementKind: { + _enum: ["Regular", "Saft"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/crowdloan/definitions.js + var require_definitions56 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/crowdloan/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + FundIndex: "u32", + LastContribution: { + _enum: { + Never: "Null", + PreEnding: "u32", + Ending: "BlockNumber" + } + }, + FundInfo: { + depositor: "AccountId", + verifier: "Option", + deposit: "Balance", + raised: "Balance", + end: "BlockNumber", + cap: "Balance", + lastContribution: "LastContribution", + firstPeriod: "LeasePeriod", + lastPeriod: "LeasePeriod", + trieIndex: "TrieIndex" + }, + TrieIndex: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/cumulus/runtime.js + var require_runtime25 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/cumulus/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + CollectCollationInfo: [ + { + methods: { + collect_collation_info: { + description: "Collect information about a collation.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "CollationInfo" + } + }, + version: 2 + }, + { + methods: { + collect_collation_info: { + description: "Collect information about a collation.", + params: [], + type: "CollationInfoV1" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/cumulus/definitions.js + var require_definitions57 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/cumulus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime25(); + var dmpQueue2 = { + CollationInfo: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + processedDownwardMessages: "u32", + hrmpWatermark: "RelayBlockNumber", + headData: "HeadData" + }, + CollationInfoV1: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + processedDownwardMessages: "u32", + hrmpWatermark: "RelayBlockNumber" + }, + ConfigData: { + maxIndividual: "Weight" + }, + MessageId: "[u8; 32]", + OverweightIndex: "u64", + PageCounter: "u32", + PageIndexData: { + beginUsed: "PageCounter", + endUsed: "PageCounter", + overweightCount: "OverweightIndex" + } + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: dmpQueue2 + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/finality/runtime.js + var require_runtime26 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/finality/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var finalityV12 = { + methods: { + best_finalized: { + description: "Returns number and hash of the best finalized header known to the bridge module.", + params: [], + type: "(BlockNumber, Hash)" + } + }, + version: 1 + }; + exports2.runtime = { + KusamaFinalityApi: [finalityV12], + PolkadotFinalityApi: [finalityV12], + RococoFinalityApi: [finalityV12], + WestendFinalityApi: [finalityV12] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/finality/definitions.js + var require_definitions58 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/finality/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime26(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/hrmp.js + var require_hrmp = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/hrmp.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + HrmpChannel: { + maxCapacity: "u32", + maxTotalSize: "u32", + maxMessageSize: "u32", + msgCount: "u32", + totalSize: "u32", + mqcHead: "Option", + senderDeposit: "Balance", + recipientDeposit: "Balance" + }, + HrmpChannelId: { + sender: "u32", + receiver: "u32" + }, + HrmpOpenChannelRequest: { + confirmed: "bool", + age: "SessionIndex", + senderDeposit: "Balance", + maxMessageSize: "u32", + maxCapacity: "u32", + maxTotalSize: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/runtime.js + var require_runtime27 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var PH_V1_TO_V22 = { + assumed_validation_data: { + description: "Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "hash", + type: "Hash" + } + ], + type: "Option<(PersistedValidationData, ValidationCodeHash)>" + }, + availability_cores: { + description: "Yields information on all availability cores as relevant to the child block.", + params: [], + type: "Vec" + }, + candidate_events: { + description: "Get a vector of events concerning candidates that occurred within a block.", + params: [], + type: "Vec" + }, + candidate_pending_availability: { + description: "Get the receipt of a candidate pending availability.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Option" + }, + check_validation_outputs: { + description: "Checks if the given validation outputs pass the acceptance criteria.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "outputs", + type: "CandidateCommitments" + } + ], + type: "bool" + }, + dmq_contents: { + description: "Get all the pending inbound messages in the downward message queue for a para.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Vec" + }, + inbound_hrmp_channels_contents: { + description: "Get the contents of all channels addressed to the given recipient.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Vec" + }, + on_chain_votes: { + description: "Scrape dispute relevant from on-chain, backing votes and resolved disputes.", + params: [], + type: "Option" + }, + persisted_validation_data: { + description: "Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + }, + session_index_for_child: { + description: "Returns the session index expected at a child of the block.", + params: [], + type: "SessionIndex" + }, + validation_code: { + description: "Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + }, + validation_code_by_hash: { + description: "Get the validation code from its hash.", + params: [ + { + name: "hash", + type: "ValidationCodeHash" + } + ], + type: "Option" + }, + validator_groups: { + description: "Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on", + params: [], + type: "(Vec>, GroupRotationInfo)" + }, + validators: { + description: "Get the current validators.", + params: [], + type: "Vec" + } + }; + var PH_V2_TO_V32 = { + pvfs_require_precheck: { + description: "Returns code hashes of PVFs that require pre-checking by validators in the active set.", + params: [], + type: "Vec" + }, + session_info: { + description: "Get the session info for the given session, if stored.", + params: [ + { + name: "index", + type: "SessionIndex" + } + ], + type: "Option" + }, + submit_pvf_check_statement: { + description: "Submits a PVF pre-checking statement into the transaction pool.", + params: [ + { + name: "stmt", + type: "PvfCheckStatement" + }, + { + name: "signature", + type: "ValidatorSignature" + } + ], + type: "Null" + }, + validation_code_hash: { + description: "Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + } + }; + var PH_V32 = { + disputes: { + description: "Returns all onchain disputes.", + params: [], + type: "Vec<(SessionIndex, CandidateHash, DisputeState)>" + } + }; + var PH_V42 = { + session_executor_params: { + description: "Returns execution parameters for the session.", + params: [ + { + name: "sessionIndex", + type: "SessionIndex" + } + ], + type: "Option" + } + }; + var PH_V52 = { + key_ownership_proof: { + description: "Returns a merkle proof of a validator session key", + params: [ + { + name: "validatorId", + type: "ValidatorId" + } + ], + type: "Option" + }, + submit_report_dispute_lost: { + description: "Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session", + params: [ + { + name: "disputeProof", + type: "DisputeProof" + }, + { + name: "keyOwnershipProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + }, + unapplied_slashes: { + description: "Returns a list of validators that lost a past session dispute and need to be slashed", + params: [], + type: "Vec<(SessionIndex, CandidateHash, PendingSlashes)>" + } + }; + var PH_V62 = { + minimum_backing_votes: { + description: "Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!", + params: [], + type: "u32" + } + }; + var PH_V72 = { + async_backing_params: { + description: "Returns candidate's acceptance limitations for asynchronous backing for a relay parent", + params: [], + type: "AsyncBackingParams" + }, + para_backing_state: { + description: "Returns the state of parachain backing for a given para", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Option" + } + }; + var PH_V82 = { + disabled_validators: { + description: "Returns a list of all disabled validators at the given block", + params: [], + type: "ValidatorIndex" + } + }; + var PH_V92 = { + node_features: { + description: "Get node features. This is a staging method! Do not use on production runtimes!", + params: [], + type: "NodeFeatures" + } + }; + var PH_V102 = { + approval_voting_params: { + description: "Approval voting configuration parameters", + params: [], + type: "ApprovalVotingParams" + } + }; + exports2.runtime = { + ParachainHost: [ + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82, + ...PH_V92, + ...PH_V102 + }, + version: 10 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82, + ...PH_V92 + }, + version: 9 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82 + }, + version: 8 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72 + }, + version: 7 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62 + }, + version: 6 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52 + }, + version: 5 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42 + }, + version: 4 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32 + }, + version: 3 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32 + }, + version: 2 + }, + { + methods: { + session_info: { + description: "Get the session info for the given session, if stored.", + params: [ + { + name: "index", + type: "SessionIndex" + } + ], + type: "Option" + }, + ...PH_V1_TO_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/slots.js + var require_slots = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/slots.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var SlotRange102 = { + _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "OneOne", "OneTwo", "OneThree", "TwoTwo", "TwoThree", "ThreeThree"] + }; + var SlotRange2 = { + _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "ZeroFour", "ZeroFive", "ZeroSix", "ZeroSeven", "OneOne", "OneTwo", "OneThree", "OneFour", "OneFive", "OneSix", "OneSeven", "TwoTwo", "TwoThree", "TwoFour", "TwoFive", "TwoSix", "TwoSeven", "ThreeThree", "ThreeFour", "ThreeFive", "ThreeSix", "ThreeSeven", "FourFour", "FourFive", "FourSix", "FourSeven", "FiveFive", "FiveSix", "FiveSeven", "SixSix", "SixSeven", "SevenSeven"] + }; + var oldTypes2 = { + Bidder: { + _enum: { + New: "NewBidder", + Existing: "ParaId" + } + }, + IncomingParachain: { + _enum: { + Unset: "NewBidder", + Fixed: "IncomingParachainFixed", + Deploy: "IncomingParachainDeploy" + } + }, + IncomingParachainDeploy: { + code: "ValidationCode", + initialHeadData: "HeadData" + }, + IncomingParachainFixed: { + codeHash: "Hash", + codeSize: "u32", + initialHeadData: "HeadData" + }, + NewBidder: { + who: "AccountId", + sub: "SubId" + }, + SubId: "u32" + }; + exports2.default = { + ...oldTypes2, + AuctionIndex: "u32", + LeasePeriod: "BlockNumber", + LeasePeriodOf: "BlockNumber", + SlotRange10: SlotRange102, + SlotRange: SlotRange2, + WinningData10: `[WinningDataEntry; ${SlotRange102._enum.length}]`, + WinningData: `[WinningDataEntry; ${SlotRange2._enum.length}]`, + WinningDataEntry: "Option<(AccountId, ParaId, BalanceOf)>", + WinnersData10: "Vec", + WinnersData: "Vec", + WinnersDataTuple10: "(AccountId, ParaId, BalanceOf, SlotRange10)", + WinnersDataTuple: "(AccountId, ParaId, BalanceOf, SlotRange)" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/definitions.js + var require_definitions59 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var hrmp_js_1 = tslib_1.__importDefault(require_hrmp()); + var runtime_js_1 = require_runtime27(); + var slots_js_1 = tslib_1.__importDefault(require_slots()); + var proposeTypes2 = { + ParachainProposal: { + proposer: "AccountId", + genesisHead: "HeadData", + validators: "Vec", + name: "Bytes", + balance: "Balance" + }, + RegisteredParachainInfo: { + validators: "Vec", + proposer: "AccountId" + } + }; + var cumulusTypes2 = { + ServiceQuality: { + _enum: ["Ordered", "Fast"] + } + }; + var disputeTypes2 = { + DisputeLocation: { + _enum: ["Local", "Remote"] + }, + DisputeResult: { + _enum: ["Valid", "Invalid"] + }, + DisputeState: { + validatorsFor: "BitVec", + validatorsAgainst: "BitVec", + start: "BlockNumber", + concludedAt: "Option" + }, + DisputeStatement: { + _enum: { + Valid: "ValidDisputeStatementKind", + Invalid: "InvalidDisputeStatementKind" + } + }, + DisputeStatementSet: { + candidateHash: "CandidateHash", + session: "SessionIndex", + statements: "Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>" + }, + ExecutorParam: { + _enum: { + Phantom: "Null", + MaxMemoryPages: "u32", + StackLogicalMax: "u32", + StackNativeMax: "u32", + PrecheckingMaxMemory: "u64", + PvfPrepTimeout: "(PvfPrepTimeoutKind, u64)", + PvfExecTimeout: "(PvfExecTimeoutKind, u64)" + } + }, + ExecutorParamsHash: "Hash", + ExecutorParams: "Vec", + ExplicitDisputeStatement: { + valid: "bool", + candidateHash: "CandidateHash", + session: "SessionIndex" + }, + InvalidDisputeStatementKind: { + _enum: ["Explicit"] + }, + MultiDisputeStatementSet: "Vec", + PvfExecTimeoutKind: { + _enum: ["Backing", "Approval"] + }, + PvfPrepTimeoutKind: { + _enum: ["Precheck", "Lenient"] + }, + ValidDisputeStatementKind: { + _enum: { + Explicit: "Null", + BackingSeconded: "Hash", + BackingValid: "Hash", + ApprovalChecking: "Null" + } + } + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...cumulusTypes2, + ...disputeTypes2, + ...hrmp_js_1.default, + ...proposeTypes2, + ...slots_js_1.default, + AbridgedCandidateReceipt: { + parachainIndex: "ParaId", + relayParent: "Hash", + headData: "HeadData", + collator: "CollatorId", + signature: "CollatorSignature", + povBlockHash: "Hash", + commitments: "CandidateCommitments" + }, + AbridgedHostConfiguration: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + maxUpwardQueueCount: "u32", + maxUpwardQueueSize: "u32", + maxUpwardMessageSize: "u32", + maxUpwardMessageNumPerCandidate: "u32", + hrmpMaxMessageNumPerCandidate: "u32", + validationUpgradeFrequency: "BlockNumber", + validationUpgradeDelay: "BlockNumber" + }, + AbridgedHrmpChannel: { + maxCapacity: "u32", + maxTotalSize: "u32", + maxMessageSize: "u32", + msgCount: "u32", + totalSize: "u32", + mqcHead: "Option" + }, + ApprovalVotingParams: { + maxApprovalCoalesceCount: "u32" + }, + AssignmentId: "AccountId", + AssignmentKind: { + _enum: { + Parachain: "Null", + Parathread: "(CollatorId, u32)" + } + }, + AsyncBackingParams: { + maxCandidateDepth: "u32", + allowedAncestryLen: "u32" + }, + AttestedCandidate: { + candidate: "AbridgedCandidateReceipt", + validityVotes: "Vec", + validatorIndices: "BitVec" + }, + AuthorityDiscoveryId: "AccountId", + AvailabilityBitfield: "BitVec", + AvailabilityBitfieldRecord: { + bitfield: "AvailabilityBitfield", + submittedTt: "BlockNumber" + }, + BackedCandidate: { + candidate: "CommittedCandidateReceipt", + validityVotes: "Vec", + validatorIndices: "BitVec" + }, + BackingState: { + constraints: "Constraints", + pendingAvailability: "Vec" + }, + BufferedSessionChange: { + applyAt: "BlockNumber", + validators: "Vec", + queued: "Vec", + sessionIndex: "SessionIndex" + }, + CandidateCommitments: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + headData: "HeadData", + processedDownwardMessages: "u32", + hrmpWatermark: "BlockNumber" + }, + CandidateDescriptor: { + paraId: "ParaId", + relayParent: "RelayChainHash", + collatorId: "CollatorId", + persistedValidationDataHash: "Hash", + povHash: "Hash", + erasureRoot: "Hash", + signature: "CollatorSignature", + paraHead: "Hash", + validationCodeHash: "ValidationCodeHash" + }, + CandidateEvent: { + _enum: { + CandidateBacked: "(CandidateReceipt, HeadData, CoreIndex, GroupIndex)", + CandidateIncluded: "(CandidateReceipt, HeadData, CoreIndex, GroupIndex)", + CandidateTimedOut: "(CandidateReceipt, HeadData, CoreIndex)" + } + }, + CandidateHash: "Hash", + CandidateInfo: { + who: "AccountId", + deposit: "Balance" + }, + CandidatePendingAvailability: { + core: "CoreIndex", + hash: "CandidateHash", + descriptor: "CandidateDescriptor", + availabilityVotes: "BitVec", + backers: "BitVec", + relayParentNumber: "BlockNumber", + backedInNumber: "BlockNumber", + backingGroup: "GroupIndex" + }, + CandidateReceipt: { + descriptor: "CandidateDescriptor", + commitmentsHash: "Hash" + }, + GlobalValidationData: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + blockNumber: "BlockNumber" + }, + CollatorId: "H256", + CollatorSignature: "Signature", + CommittedCandidateReceipt: { + descriptor: "CandidateDescriptor", + commitments: "CandidateCommitments" + }, + Constraints: { + minRelayParentNumber: "BlockNumber", + maxPovSize: "u32", + maxCodeSize: "u32", + umpRemaining: "u32", + umpRemainingBytes: "u32", + maxUmpNumPerCandidate: "u32", + dmpRemainingMessages: "Vec", + hrmpInbound: "InboundHrmpLimitations", + hrmpChannelsOut: "HashMap", + maxHrmpNumPerCandidate: "u32", + requiredParent: "HeadData", + validationCodeHash: "ValidationCodeHash", + upgradeRestriction: "Option", + futureValidationCode: "Option<(BlockNumber, ValidationCodeHash)>" + }, + CoreAssignment: { + core: "CoreIndex", + paraId: "ParaId", + kind: "AssignmentKind", + groupIdx: "GroupIndex" + }, + CoreIndex: "u32", + CoreOccupied: { + _enum: { + Parathread: "ParathreadEntry", + Parachain: "Null" + } + }, + CoreState: { + _enum: { + Occupied: "OccupiedCore", + Scheduled: "ScheduledCore", + Free: "Null" + } + }, + DisputeProof: { + timeSlot: "DisputesTimeSlot", + kind: "SlashingOffenceKind", + validatorIndex: "ValidatorIndex", + validatorId: "ValidatorId" + }, + DisputesTimeSlot: { + sessionIndex: "SessionIndex", + candidateHash: "CandidateHash" + }, + DoubleVoteReport: { + identity: "ValidatorId", + first: "(Statement, ValidatorSignature)", + second: "(Statement, ValidatorSignature)", + proof: "MembershipProof", + signingContext: "SigningContext" + }, + DownwardMessage: "Bytes", + GroupIndex: "u32", + GroupRotationInfo: { + sessionStartBlock: "BlockNumber", + groupRotationFrequency: "BlockNumber", + now: "BlockNumber" + }, + GlobalValidationSchedule: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + blockNumber: "BlockNumber" + }, + HeadData: "Bytes", + HostConfiguration: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + maxUpwardQueueCount: "u32", + maxUpwardQueueSize: "u32", + maxUpwardMessageSize: "u32", + maxUpwardMessageNumPerCandidate: "u32", + hrmpMaxMessageNumPerCandidate: "u32", + validationUpgradeFrequency: "BlockNumber", + validationUpgradeDelay: "BlockNumber", + maxPovSize: "u32", + maxDownwardMessageSize: "u32", + preferredDispatchableUpwardMessagesStepWeight: "Weight", + hrmpMaxParachainOutboundChannels: "u32", + hrmpMaxParathreadOutboundChannels: "u32", + hrmpOpenRequestTtl: "u32", + hrmpSenderDeposit: "Balance", + hrmpRecipientDeposit: "Balance", + hrmpChannelMaxCapacity: "u32", + hrmpChannelMaxTotalSize: "u32", + hrmpMaxParachainInboundChannels: "u32", + hrmpMaxParathreadInboundChannels: "u32", + hrmpChannelMaxMessageSize: "u32", + codeRetentionPeriod: "BlockNumber", + parathreadCores: "u32", + parathreadRetries: "u32", + groupRotationFrequency: "BlockNumber", + chainAvailabilityPeriod: "BlockNumber", + threadAvailabilityPeriod: "BlockNumber", + schedulingLookahead: "u32", + maxValidatorsPerCore: "Option", + maxValidators: "Option", + disputePeriod: "SessionIndex", + disputePostConclusionAcceptancePeriod: "BlockNumber", + disputeMaxSpamSlots: "u32", + disputeConclusionByTimeOutPeriod: "BlockNumber", + noShowSlots: "u32", + nDelayTranches: "u32", + zerothDelayTrancheWidth: "u32", + neededApprovals: "u32", + relayVrfModuloSamples: "u32" + }, + InboundDownwardMessage: { + pubSentAt: "BlockNumber", + pubMsg: "DownwardMessage" + }, + InboundHrmpMessage: { + sentAt: "BlockNumber", + data: "Bytes" + }, + InboundHrmpLimitations: { + validWatermarks: "Vec" + }, + InboundHrmpMessages: "Vec", + LocalValidationData: { + parentHead: "HeadData", + balance: "Balance", + codeUpgradeAllowed: "Option" + }, + MessageIngestionType: { + downwardMessages: "Vec", + horizontalMessages: "BTreeMap" + }, + MessageQueueChain: "RelayChainHash", + NodeFeatures: "BitVec", + OccupiedCore: { + nextUpOnAvailable: "Option", + occupiedSince: "BlockNumber", + timeOutAt: "BlockNumber", + nextUpOnTimeOut: "Option", + availability: "BitVec", + groupResponsible: "GroupIndex", + candidateHash: "CandidateHash", + candidateDescriptor: "CandidateDescriptor" + }, + OccupiedCoreAssumption: { + _enum: ["Included,", "TimedOut", "Free"] + }, + OutboundHrmpChannelLimitations: { + bytesRemaining: "u32", + messagesRemaining: "u32" + }, + OutboundHrmpMessage: { + recipient: "u32", + data: "Bytes" + }, + PendingSlashes: { + _alias: { + slashKeys: "keys" + }, + slashKeys: "BTreeMap", + kind: "SlashingOffenceKind" + }, + ParachainDispatchOrigin: { + _enum: ["Signed", "Parachain", "Root"] + }, + ParachainInherentData: { + validationData: "PersistedValidationData", + relayChainState: "StorageProof", + downwardMessages: "Vec", + horizontalMessages: "BTreeMap" + }, + ParachainsInherentData: { + bitfields: "SignedAvailabilityBitfields", + backedCandidates: "Vec", + disputes: "MultiDisputeStatementSet", + parentHeader: "Header" + }, + ParaGenesisArgs: { + genesisHead: "Bytes", + validationCode: "Bytes", + parachain: "bool" + }, + ParaId: "u32", + ParaInfo: { + manager: "AccountId", + deposit: "Balance", + locked: "bool" + }, + ParaLifecycle: { + _enum: ["Onboarding", "Parathread", "Parachain", "UpgradingToParachain", "DowngradingToParathread", "OutgoingParathread", "OutgoingParachain"] + }, + ParaPastCodeMeta: { + upgradeTimes: "Vec", + lastPruned: "Option" + }, + ParaScheduling: { + _enum: ["Always", "Dynamic"] + }, + ParathreadClaim: "(ParaId, CollatorId)", + ParathreadClaimQueue: { + queue: "Vec", + nextCoreOffset: "u32" + }, + ParathreadEntry: { + claim: "ParathreadClaim", + retries: "u32" + }, + ParaValidatorIndex: "u32", + PersistedValidationData: { + parentHead: "HeadData", + relayParentNumber: "RelayChainBlockNumber", + relayParentStorageRoot: "Hash", + maxPovSize: "u32" + }, + PvfCheckStatement: { + accept: "bool", + subject: "ValidationCodeHash", + sessionIndex: "SessionIndex", + validatorIndex: "ParaValidatorIndex" + }, + QueuedParathread: { + claim: "ParathreadEntry", + coreOffset: "u32" + }, + RelayBlockNumber: "u32", + RelayChainBlockNumber: "RelayBlockNumber", + RelayHash: "Hash", + RelayChainHash: "RelayHash", + Remark: "[u8; 32]", + ReplacementTimes: { + expectedAt: "BlockNumber", + activatedAt: "BlockNumber" + }, + Retriable: { + _enum: { + Never: "Null", + WithRetries: "u32" + } + }, + ScheduledCore: { + paraId: "ParaId", + collator: "Option" + }, + Scheduling: { + _enum: ["Always", "Dynamic"] + }, + ScrapedOnChainVotes: { + session: "SessionIndex", + backingValidatorsPerCandidate: "Vec<(CandidateReceipt, Vec<(ParaValidatorIndex, ValidityAttestation)>)>", + disputes: "MultiDisputeStatementSet" + }, + SessionInfo: { + activeValidatorIndices: "Vec", + randomSeed: "[u8; 32]", + disputePeriod: "SessionIndex", + validators: "Vec", + discoveryKeys: "Vec", + assignmentKeys: "Vec", + validatorGroups: "Vec>", + nCores: "u32", + zerothDelayTrancheWidth: "u32", + relayVrfModuloSamples: "u32", + nDelayTranches: "u32", + noShowSlots: "u32", + neededApprovals: "u32" + }, + OldV1SessionInfo: { + validators: "Vec", + discoveryKeys: "Vec", + assignmentKeys: "Vec", + validatorGroups: "Vec>", + nCores: "u32", + zerothDelayTrancheWidth: "u32", + relayVrfModuloSamples: "u32", + nDelayTranches: "u32", + noShowSlots: "u32", + neededApprovals: "u32" + }, + SessionInfoValidatorGroup: "Vec", + SignedAvailabilityBitfield: { + payload: "BitVec", + validatorIndex: "ParaValidatorIndex", + signature: "ValidatorSignature" + }, + SignedAvailabilityBitfields: "Vec", + SigningContext: { + sessionIndex: "SessionIndex", + parentHash: "Hash" + }, + SlashingOffenceKind: { + _enum: ["ForInvalid", "AgainstValid"] + }, + Statement: { + _enum: { + Never: "Null", + Candidate: "Hash", + Valid: "Hash", + Invalid: "Hash" + } + }, + TransientValidationData: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + balance: "Balance", + codeUpgradeAllowed: "Option", + dmqLength: "u32" + }, + UpgradeGoAhead: { + _enum: ["Abort", "GoAhead"] + }, + UpgradeRestriction: { + _enum: ["Present"] + }, + UpwardMessage: "Bytes", + ValidationFunctionParams: { + maxCodeSize: "u32", + relayChainHeight: "RelayChainBlockNumber", + codeUpgradeAllowed: "Option" + }, + ValidationCode: "Bytes", + ValidationCodeHash: "Hash", + ValidationData: { + persisted: "PersistedValidationData", + transient: "TransientValidationData" + }, + ValidationDataType: { + validationData: "ValidationData", + relayChainState: "Vec" + }, + ValidatorSignature: "Signature", + ValidityAttestation: { + _enum: { + Never: "Null", + Implicit: "ValidatorSignature", + Explicit: "ValidatorSignature" + } + }, + MessagingStateSnapshot: { + relayDispatchQueueSize: "(u32, u32)", + egressChannels: "Vec" + }, + MessagingStateSnapshotEgressEntry: "(ParaId, AbridgedHrmpChannel)", + SystemInherentData: "ParachainInherentData", + VecInboundHrmpMessage: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/poll/definitions.js + var require_definitions60 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/poll/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Approvals: "[bool; 4]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/purchase/definitions.js + var require_definitions61 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/purchase/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AccountStatus: { + validity: "AccountValidity", + freeBalance: "Balance", + lockedBalance: "Balance", + signature: "Vec", + vat: "Permill" + }, + AccountValidity: { + _enum: ["Invalid", "Initiated", "Pending", "ValidLow", "ValidHigh", "Completed"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/packageDetect.js + var require_packageDetect4 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo17(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/types/registry.js + var require_registry = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/types/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/augmentRegistry.js + var require_augmentRegistry = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/augmentRegistry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry(); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/lookup.js + var require_lookup = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/lookup.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/types.js + var require_types2 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeDefInfo = void 0; + var TypeDefInfo2; + (function(TypeDefInfo3) { + TypeDefInfo3[TypeDefInfo3["BTreeMap"] = 0] = "BTreeMap"; + TypeDefInfo3[TypeDefInfo3["BTreeSet"] = 1] = "BTreeSet"; + TypeDefInfo3[TypeDefInfo3["Compact"] = 2] = "Compact"; + TypeDefInfo3[TypeDefInfo3["DoNotConstruct"] = 3] = "DoNotConstruct"; + TypeDefInfo3[TypeDefInfo3["Enum"] = 4] = "Enum"; + TypeDefInfo3[TypeDefInfo3["HashMap"] = 5] = "HashMap"; + TypeDefInfo3[TypeDefInfo3["Int"] = 6] = "Int"; + TypeDefInfo3[TypeDefInfo3["Linkage"] = 7] = "Linkage"; + TypeDefInfo3[TypeDefInfo3["Null"] = 8] = "Null"; + TypeDefInfo3[TypeDefInfo3["Option"] = 9] = "Option"; + TypeDefInfo3[TypeDefInfo3["Plain"] = 10] = "Plain"; + TypeDefInfo3[TypeDefInfo3["Range"] = 11] = "Range"; + TypeDefInfo3[TypeDefInfo3["RangeInclusive"] = 12] = "RangeInclusive"; + TypeDefInfo3[TypeDefInfo3["Result"] = 13] = "Result"; + TypeDefInfo3[TypeDefInfo3["Set"] = 14] = "Set"; + TypeDefInfo3[TypeDefInfo3["Si"] = 15] = "Si"; + TypeDefInfo3[TypeDefInfo3["Struct"] = 16] = "Struct"; + TypeDefInfo3[TypeDefInfo3["Tuple"] = 17] = "Tuple"; + TypeDefInfo3[TypeDefInfo3["UInt"] = 18] = "UInt"; + TypeDefInfo3[TypeDefInfo3["Vec"] = 19] = "Vec"; + TypeDefInfo3[TypeDefInfo3["VecFixed"] = 20] = "VecFixed"; + TypeDefInfo3[TypeDefInfo3["WrapperKeepOpaque"] = 21] = "WrapperKeepOpaque"; + TypeDefInfo3[TypeDefInfo3["WrapperOpaque"] = 22] = "WrapperOpaque"; + })(TypeDefInfo2 || (exports2.TypeDefInfo = TypeDefInfo2 = {})); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/index.js + var require_types3 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_augmentRegistry(); + tslib_1.__exportStar(require_lookup(), exports2); + tslib_1.__exportStar(require_types2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/packageDetect.js + var require_packageDetect5 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo16(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, []); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/util.js + var require_util2 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.hasEq = void 0; + var util_1 = require_cjs3(); + function hasEq2(o) { + return (0, util_1.isFunction)(o.eq); + } + exports2.hasEq = hasEq2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareArray.js + var require_compareArray = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareArray = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util2(); + function compareArray2(a, b) { + if (Array.isArray(b)) { + return a.length === b.length && (0, util_1.isUndefined)(a.find((v, index) => (0, util_js_1.hasEq)(v) ? !v.eq(b[index]) : v !== b[index])); + } + return false; + } + exports2.compareArray = compareArray2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Array.js + var require_Array = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Array.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractArray = void 0; + var util_1 = require_cjs3(); + var compareArray_js_1 = require_compareArray(); + var AbstractArray2 = class extends Array { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + static get [Symbol.species]() { + return Array; + } + constructor(registry, length) { + super(length); + this.registry = registry; + } + get encodedLength() { + const count = this.length; + let total = (0, util_1.compactToU8a)(count).length; + for (let i = 0; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.length === 0; + } + get length() { + return super.length; + } + eq(other) { + return (0, compareArray_js_1.compareArray)(this, other); + } + inspect() { + return { + inner: this.inspectInner(), + outer: [(0, util_1.compactToU8a)(this.length)] + }; + } + inspectInner() { + const count = this.length; + const inner = new Array(count); + for (let i = 0; i < count; i++) { + inner[i] = this[i].inspect(); + } + return inner; + } + toArray() { + return Array.from(this); + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toHuman(isExtended, disableAscii); + } + return result; + } + toJSON() { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toJSON(); + } + return result; + } + toPrimitive(disableAscii) { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toPrimitive(disableAscii); + } + return result; + } + toString() { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i].toString(); + } + return `[${result.join(", ")}]`; + } + toU8a(isBare) { + const encoded = this.toU8aInner(); + return isBare ? (0, util_1.u8aConcatStrict)(encoded) : (0, util_1.u8aConcatStrict)([(0, util_1.compactToU8a)(this.length), ...encoded]); + } + toU8aInner(isBare) { + const count = this.length; + const encoded = new Array(count); + for (let i = 0; i < count; i++) { + encoded[i] = this[i].toU8a(isBare); + } + return encoded; + } + }; + exports2.AbstractArray = AbstractArray2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Base.js + var require_Base = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Base.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractBase = void 0; + var AbstractBase2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__raw; + constructor(registry, value, initialU8aLength) { + this.initialU8aLength = initialU8aLength; + this.__internal__raw = value; + this.registry = registry; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get inner() { + return this.__internal__raw; + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + eq(other) { + return this.__internal__raw.eq(other); + } + inspect() { + return this.__internal__raw.inspect(); + } + toHex(isLe) { + return this.__internal__raw.toHex(isLe); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.__internal__raw.toJSON(); + } + toPrimitive(disableAscii) { + return this.__internal__raw.toPrimitive(disableAscii); + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(isBare) { + return this.__internal__raw.toU8a(isBare); + } + unwrap() { + return this.__internal__raw; + } + valueOf() { + return this.__internal__raw; + } + }; + exports2.AbstractBase = AbstractBase2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Int.js + var require_Int = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Int.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractInt = exports2.DEFAULT_UINT_BITS = void 0; + var util_1 = require_cjs3(); + exports2.DEFAULT_UINT_BITS = 64; + var MAX_NUMBER_BITS2 = 52; + var MUL_P2 = new util_1.BN(1e4); + var FORMATTERS2 = [ + ["Perquintill", util_1.BN_QUINTILL], + ["Perbill", util_1.BN_BILLION], + ["Permill", util_1.BN_MILLION], + ["Percent", util_1.BN_HUNDRED] + ]; + function isToBn6(value) { + return (0, util_1.isFunction)(value.toBn); + } + function toPercentage2(value, divisor) { + return `${(value.mul(MUL_P2).div(divisor).toNumber() / 100).toFixed(2)}%`; + } + function decodeAbstractInt2(value, isNegative) { + if ((0, util_1.isNumber)(value)) { + if (!Number.isInteger(value) || value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER) { + throw new Error("Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1"); + } + return value; + } else if ((0, util_1.isString)(value)) { + if ((0, util_1.isHex)(value, -1, true)) { + return (0, util_1.hexToBn)(value, { isLe: false, isNegative }).toString(); + } + if (value.includes(".") || value.includes(",") || value.includes("e")) { + throw new Error("String should not contain decimal points or scientific notation"); + } + return value; + } else if ((0, util_1.isBn)(value) || (0, util_1.isBigInt)(value)) { + return value.toString(); + } else if ((0, util_1.isObject)(value)) { + if (isToBn6(value)) { + return value.toBn().toString(); + } + const keys = Object.keys(value); + if (keys.length !== 1) { + throw new Error("Unable to construct number from multi-key object"); + } + return decodeAbstractInt2(value[keys[0]], isNegative); + } else if (!value) { + return 0; + } + throw new Error(`Unable to create BN from unknown type ${typeof value}`); + } + var AbstractInt2 = class extends util_1.BN { + registry; + encodedLength; + isUnsigned; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__bitLength; + constructor(registry, value = 0, bitLength = exports2.DEFAULT_UINT_BITS, isSigned = false) { + super( + (0, util_1.isU8a)(value) ? bitLength <= 48 ? (0, util_1.u8aToNumber)(value.subarray(0, bitLength / 8), { isNegative: isSigned }) : (0, util_1.u8aToBn)(value.subarray(0, bitLength / 8), { isLe: true, isNegative: isSigned }).toString() : decodeAbstractInt2(value, isSigned) + ); + this.registry = registry; + this.__internal__bitLength = bitLength; + this.encodedLength = this.__internal__bitLength / 8; + this.initialU8aLength = this.__internal__bitLength / 8; + this.isUnsigned = !isSigned; + const isNegative = this.isNeg(); + const maxBits = bitLength - (isSigned && !isNegative ? 1 : 0); + if (isNegative && !isSigned) { + throw new Error(`${this.toRawType()}: Negative number passed to unsigned type`); + } else if (super.bitLength() > maxBits) { + throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${maxBits}`); + } + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isZero(); + } + bitLength() { + return this.__internal__bitLength; + } + eq(other) { + return super.eq((0, util_1.isHex)(other) ? (0, util_1.hexToBn)(other.toString(), { isLe: false, isNegative: !this.isUnsigned }) : (0, util_1.bnToBn)(other)); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + isMax() { + const u8a = this.toU8a().filter((b) => b === 255); + return u8a.length === this.__internal__bitLength / 8; + } + toBigInt() { + return BigInt(this.toString()); + } + toBn() { + return this; + } + toHex(isLe = false) { + return (0, util_1.bnToHex)(this, { + bitLength: this.bitLength(), + isLe, + isNegative: !this.isUnsigned + }); + } + toHuman(_isExpanded) { + const rawType = this.toRawType(); + if (rawType === "Balance") { + return this.isMax() ? "everything" : (0, util_1.formatBalance)(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainTokens[0] }); + } + const [, divisor] = FORMATTERS2.find(([type]) => type === rawType) || []; + return divisor ? toPercentage2(this, divisor) : (0, util_1.formatNumber)(this); + } + toJSON(onlyHex = false) { + return onlyHex || this.__internal__bitLength > 128 || super.bitLength() > MAX_NUMBER_BITS2 ? this.toHex() : this.toNumber(); + } + toPrimitive() { + return super.bitLength() > MAX_NUMBER_BITS2 ? this.toString() : this.toNumber(); + } + toRawType() { + return this instanceof this.registry.createClassUnsafe("Balance") ? "Balance" : `${this.isUnsigned ? "u" : "i"}${this.bitLength()}`; + } + toString(base2) { + return super.toString(base2); + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this, { + bitLength: this.bitLength(), + isLe: true, + isNegative: !this.isUnsigned + }); + } + }; + exports2.AbstractInt = AbstractInt2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/index.js + var require_abstract = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractInt = exports2.AbstractBase = exports2.AbstractArray = void 0; + var Array_js_1 = require_Array(); + Object.defineProperty(exports2, "AbstractArray", { enumerable: true, get: function() { + return Array_js_1.AbstractArray; + } }); + var Base_js_1 = require_Base(); + Object.defineProperty(exports2, "AbstractBase", { enumerable: true, get: function() { + return Base_js_1.AbstractBase; + } }); + var Int_js_1 = require_Int(); + Object.defineProperty(exports2, "AbstractInt", { enumerable: true, get: function() { + return Int_js_1.AbstractInt; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareMap.js + var require_compareMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareMap = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util2(); + function hasMismatch2(a, b) { + return (0, util_1.isUndefined)(a) || ((0, util_js_1.hasEq)(a) ? !a.eq(b) : a !== b); + } + function notEntry2(value) { + return !Array.isArray(value) || value.length !== 2; + } + function compareMapArray2(a, b) { + return a.size === b.length && !b.some((e) => notEntry2(e) || hasMismatch2(a.get(e[0]), e[1])); + } + function compareMap2(a, b) { + if (Array.isArray(b)) { + return compareMapArray2(a, b); + } else if (b instanceof Map) { + return compareMapArray2(a, [...b.entries()]); + } else if ((0, util_1.isObject)(b)) { + return compareMapArray2(a, Object.entries(b)); + } + return false; + } + exports2.compareMap = compareMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareSet.js + var require_compareSet = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareSet.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareSet = void 0; + var util_1 = require_cjs3(); + function compareSetArray2(a, b) { + return a.size === b.length && !b.some((e) => !a.has(e)); + } + function compareSet2(a, b) { + if (Array.isArray(b)) { + return compareSetArray2(a, b); + } else if (b instanceof Set) { + return compareSetArray2(a, [...b.values()]); + } else if ((0, util_1.isObject)(b)) { + return compareSetArray2(a, Object.values(b)); + } + return false; + } + exports2.compareSet = compareSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/decodeU8a.js + var require_decodeU8a = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/decodeU8a.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decodeU8aVec = exports2.decodeU8aStruct = exports2.decodeU8a = void 0; + var util_1 = require_cjs3(); + function formatFailure2(registry, fn2, _result, { message }, u8a, i, count, Type2, key2) { + let type = ""; + try { + type = `: ${new Type2(registry).toRawType()}`; + } catch { + } + return `${fn2}: failed at ${(0, util_1.u8aToHex)(u8a.subarray(0, 16))}\u2026${key2 ? ` on ${key2}` : ""} (index ${i + 1}/${count})${type}:: ${message}`; + } + function decodeU8a8(registry, result, u8a, [Types, keys]) { + const count = result.length; + let offset = 0; + let i = 0; + try { + while (i < count) { + const value = new Types[i](registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = value; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8a", result, error, u8a.subarray(offset), i, count, Types[i], keys[i])); + } + return [result, offset]; + } + exports2.decodeU8a = decodeU8a8; + function decodeU8aStruct2(registry, result, u8a, [Types, keys]) { + const count = result.length; + let offset = 0; + let i = 0; + try { + while (i < count) { + const value = new Types[i](registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = [keys[i], value]; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8aStruct", result, error, u8a.subarray(offset), i, count, Types[i], keys[i])); + } + return [result, offset]; + } + exports2.decodeU8aStruct = decodeU8aStruct2; + function decodeU8aVec2(registry, result, u8a, startAt, Type2) { + const count = result.length; + let offset = startAt; + let i = 0; + try { + while (i < count) { + const value = new Type2(registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = value; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8aVec", result, error, u8a.subarray(offset), i, count, Type2)); + } + return [offset, offset - startAt]; + } + exports2.decodeU8aVec = decodeU8aVec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/sanitize.js + var require_sanitize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/sanitize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sanitize = exports2.removeWrap = exports2.removeTraits = exports2.removePairOf = exports2.removeGenerics = exports2.removeColons = exports2.removeExtensions = exports2.flattenSingleTuple = exports2.cleanupCompact = exports2.alias = exports2.findClosing = exports2.trim = void 0; + var BOUNDED2 = ["BTreeMap", "BTreeSet", "HashMap", "Vec"]; + var ALLOWED_BOXES2 = BOUNDED2.concat(["Compact", "DoNotConstruct", "Int", "Linkage", "Range", "RangeInclusive", "Result", "Opaque", "Option", "UInt", "WrapperKeepOpaque", "WrapperOpaque"]); + var BOX_PRECEDING2 = ["<", "(", "[", '"', ",", " "]; + var mappings2 = [ + alias2("::Inherent", "InherentOfflineReport", false), + alias2("VecDeque<", "Vec<", false), + cleanupCompact2(), + removeExtensions2("Bounded", true), + removeExtensions2("Weak", false), + removeTraits2(), + removePairOf2(), + removeWrap2("Box<"), + removeGenerics2(), + alias2("String", "Text"), + alias2("Vec", "Bytes"), + alias2("&\\[u8\\]", "Bytes"), + alias2("&'static\\[u8\\]", "Bytes"), + alias2("RawAddress", "Address"), + alias2("Lookup::Source", "LookupSource"), + alias2("Lookup::Target", "LookupTarget"), + alias2("exec::StorageKey", "ContractStorageKey"), + flattenSingleTuple2(), + removeColons2(), + trim2() + ]; + function trim2() { + return (value) => value.trim(); + } + exports2.trim = trim2; + function findClosing2(value, start) { + let depth = 0; + for (let i = start, count = value.length; i < count; i++) { + if (value[i] === ">") { + if (!depth) { + return i; + } + depth--; + } else if (value[i] === "<") { + depth++; + } + } + throw new Error(`Unable to find closing matching <> on '${value}' (start ${start})`); + } + exports2.findClosing = findClosing2; + function alias2(src, dest, withChecks = true) { + const from2 = new RegExp(`(^${src}|${BOX_PRECEDING2.map((box) => `\\${box}${src}`).join("|")})`, "g"); + const to2 = (src2) => { + from2.lastIndex = 0; + return withChecks && BOX_PRECEDING2.includes(src2[0]) ? `${src2[0]}${dest}` : dest; + }; + return (value) => value.replace(from2, to2); + } + exports2.alias = alias2; + function cleanupCompact2() { + return (value) => { + if (value.includes(" as HasCompact")) { + for (let i = 0, count = value.length; i < count; i++) { + if (value[i] === "<") { + const end = findClosing2(value, i + 1) - 14; + if (value.substring(end, end + 14) === " as HasCompact") { + value = `Compact<${value.substring(i + 1, end)}>`; + } + } + } + } + return value; + }; + } + exports2.cleanupCompact = cleanupCompact2; + function flattenSingleTuple2() { + const from1 = /,\)/g; + const from2 = /\(([^,]+)\)/; + return (value) => { + from1.lastIndex = 0; + return value.replace(from1, ")").replace(from2, "$1"); + }; + } + exports2.flattenSingleTuple = flattenSingleTuple2; + function replaceTagWith2(value, matcher, replacer3) { + let index = -1; + while (true) { + index = value.indexOf(matcher, index + 1); + if (index === -1) { + return value; + } + const start = index + matcher.length; + const end = findClosing2(value, start); + value = `${value.substring(0, index)}${replacer3(value.substring(start, end))}${value.substring(end + 1)}`; + } + } + function removeExtensions2(type, isSized) { + return (value) => { + for (let i = 0, count = BOUNDED2.length; i < count; i++) { + const tag = BOUNDED2[i]; + value = replaceTagWith2(value, `${type}${tag}<`, (v) => { + const parts = v.split(",").map((s) => s.trim()).filter((s) => s); + if (isSized) { + parts.pop(); + } + return `${tag}<${parts.join(",")}>`; + }); + } + return value; + }; + } + exports2.removeExtensions = removeExtensions2; + function removeColons2() { + return (value) => { + let index = 0; + while (index !== -1) { + index = value.indexOf("::"); + if (index === 0) { + value = value.substring(2); + } else if (index !== -1) { + let start = index; + while (start !== -1 && !BOX_PRECEDING2.includes(value[start])) { + start--; + } + value = `${value.substring(0, start + 1)}${value.substring(index + 2)}`; + } + } + return value; + }; + } + exports2.removeColons = removeColons2; + function removeGenerics2() { + return (value) => { + for (let i = 0, count = value.length; i < count; i++) { + if (value[i] === "<") { + const box = ALLOWED_BOXES2.find((box2) => { + const start = i - box2.length; + return start >= 0 && value.substring(start, i) === box2 && (start === 0 || BOX_PRECEDING2.includes(value[start - 1])); + }); + if (!box) { + const end = findClosing2(value, i + 1); + value = `${value.substring(0, i)}${value.substring(end + 1)}`; + } + } + } + return value; + }; + } + exports2.removeGenerics = removeGenerics2; + function removePairOf2() { + const replacer3 = (v) => `(${v},${v})`; + return (value) => replaceTagWith2(value, "PairOf<", replacer3); + } + exports2.removePairOf = removePairOf2; + function removeTraits2() { + const from1 = /\s/g; + const from2 = /(T|Self)::/g; + const from3 = /<(T|Self)asTrait>::/g; + const from4 = /::/g; + const from5 = //g; + const from6 = /::Type/g; + return (value) => { + from1.lastIndex = 0; + from2.lastIndex = 0; + from3.lastIndex = 0; + from4.lastIndex = 0; + from5.lastIndex = 0; + from6.lastIndex = 0; + return value.replace(from1, "").replace(from2, "").replace(from3, "").replace(from4, "").replace(from5, "Lookup").replace(from6, ""); + }; + } + exports2.removeTraits = removeTraits2; + function removeWrap2(check) { + const replacer3 = (v) => v; + return (value) => replaceTagWith2(value, check, replacer3); + } + exports2.removeWrap = removeWrap2; + var sanitizeMap2 = /* @__PURE__ */ new Map(); + function sanitize2(value) { + const startValue = value.toString(); + const memoized = sanitizeMap2.get(startValue); + if (memoized) { + return memoized; + } + let result = startValue; + for (let i = 0, count = mappings2.length; i < count; i++) { + result = mappings2[i](result); + } + sanitizeMap2.set(startValue, result); + return result; + } + exports2.sanitize = sanitize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/sortValues.js + var require_sortValues = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/sortValues.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sortMap = exports2.sortSet = exports2.sortAsc = void 0; + var util_1 = require_cjs3(); + function isArrayLike3(arg) { + return arg instanceof Uint8Array || Array.isArray(arg); + } + function isEnum2(arg) { + return (0, util_1.isCodec)(arg) && (0, util_1.isNumber)(arg.index) && (0, util_1.isCodec)(arg.value); + } + function isOption2(arg) { + return (0, util_1.isCodec)(arg) && (0, util_1.isBoolean)(arg.isSome) && (0, util_1.isCodec)(arg.value); + } + function isNumberLike2(arg) { + return (0, util_1.isNumber)(arg) || (0, util_1.isBn)(arg) || (0, util_1.isBigInt)(arg); + } + function sortArray2(a, b) { + let sortRes = 0; + const minLen = Math.min(a.length, b.length); + for (let i = 0; i < minLen; ++i) { + sortRes = sortAsc2(a[i], b[i]); + if (sortRes !== 0) { + return sortRes; + } + } + return a.length - b.length; + } + function checkForDuplicates2(container, seen, arg) { + if ((0, util_1.isCodec)(arg)) { + const hex8 = arg.toHex(); + if (seen.has(hex8)) { + throw new Error(`Duplicate value in ${container}: ${(0, util_1.stringify)(arg)}`); + } + seen.add(hex8); + } + return true; + } + function sortAsc2(a, b) { + if (isNumberLike2(a) && isNumberLike2(b)) { + return (0, util_1.bnToBn)(a).cmp((0, util_1.bnToBn)(b)); + } else if (a instanceof Map && b instanceof Map) { + return sortAsc2(Array.from(a.values()), Array.from(b.values())); + } else if (isEnum2(a) && isEnum2(b)) { + return sortAsc2(a.index, b.index) || sortAsc2(a.value, b.value); + } else if (isOption2(a) && isOption2(b)) { + return sortAsc2(a.isNone ? 0 : 1, b.isNone ? 0 : 1) || sortAsc2(a.value, b.value); + } else if (isArrayLike3(a) && isArrayLike3(b)) { + return sortArray2(a, b); + } else if ((0, util_1.isCodec)(a) && (0, util_1.isCodec)(b)) { + return sortAsc2(a.toU8a(true), b.toU8a(true)); + } + throw new Error(`Attempting to sort unrecognized values: ${(0, util_1.stringify)(a)} (typeof ${typeof a}) <-> ${(0, util_1.stringify)(b)} (typeof ${typeof b})`); + } + exports2.sortAsc = sortAsc2; + function sortSet2(set2) { + const seen = /* @__PURE__ */ new Set(); + return new Set(Array.from(set2).filter((value) => checkForDuplicates2("BTreeSet", seen, value)).sort(sortAsc2)); + } + exports2.sortSet = sortSet2; + function sortMap2(map2) { + const seen = /* @__PURE__ */ new Set(); + return new Map(Array.from(map2.entries()).filter(([key2]) => checkForDuplicates2("BTreeMap", seen, key2)).sort(([keyA], [keyB]) => sortAsc2(keyA, keyB))); + } + exports2.sortMap = sortMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/toConstructors.js + var require_toConstructors = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/toConstructors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapToTypeMap = exports2.typesToConstructors = exports2.typeToConstructor = void 0; + function typeToConstructor2(registry, type) { + return typeof type === "function" ? type : registry.createClassUnsafe(type); + } + exports2.typeToConstructor = typeToConstructor2; + function typesToConstructors2(registry, types2) { + const count = types2.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = typeToConstructor2(registry, types2[i]); + } + return result; + } + exports2.typesToConstructors = typesToConstructors2; + function mapToTypeMap2(registry, input) { + const entries = Object.entries(input); + const count = entries.length; + const output4 = [new Array(count), new Array(count)]; + for (let i = 0; i < count; i++) { + output4[1][i] = entries[i][0]; + output4[0][i] = typeToConstructor2(registry, entries[i][1]); + } + return output4; + } + exports2.mapToTypeMap = mapToTypeMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/typesToMap.js + var require_typesToMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/typesToMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesToMap = void 0; + function typesToMap2(registry, [Types, keys]) { + const result = {}; + for (let i = 0, count = keys.length; i < count; i++) { + result[keys[i]] = registry.getClassName(Types[i]) || new Types[i](registry).toRawType(); + } + return result; + } + exports2.typesToMap = typesToMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/index.js + var require_utils5 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesToMap = exports2.typeToConstructor = exports2.typesToConstructors = exports2.mapToTypeMap = exports2.sortSet = exports2.sortMap = exports2.sortAsc = exports2.sanitize = exports2.decodeU8aVec = exports2.decodeU8aStruct = exports2.decodeU8a = exports2.compareSet = exports2.compareMap = exports2.compareArray = void 0; + var compareArray_js_1 = require_compareArray(); + Object.defineProperty(exports2, "compareArray", { enumerable: true, get: function() { + return compareArray_js_1.compareArray; + } }); + var compareMap_js_1 = require_compareMap(); + Object.defineProperty(exports2, "compareMap", { enumerable: true, get: function() { + return compareMap_js_1.compareMap; + } }); + var compareSet_js_1 = require_compareSet(); + Object.defineProperty(exports2, "compareSet", { enumerable: true, get: function() { + return compareSet_js_1.compareSet; + } }); + var decodeU8a_js_1 = require_decodeU8a(); + Object.defineProperty(exports2, "decodeU8a", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8a; + } }); + Object.defineProperty(exports2, "decodeU8aStruct", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8aStruct; + } }); + Object.defineProperty(exports2, "decodeU8aVec", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8aVec; + } }); + var sanitize_js_1 = require_sanitize(); + Object.defineProperty(exports2, "sanitize", { enumerable: true, get: function() { + return sanitize_js_1.sanitize; + } }); + var sortValues_js_1 = require_sortValues(); + Object.defineProperty(exports2, "sortAsc", { enumerable: true, get: function() { + return sortValues_js_1.sortAsc; + } }); + Object.defineProperty(exports2, "sortMap", { enumerable: true, get: function() { + return sortValues_js_1.sortMap; + } }); + Object.defineProperty(exports2, "sortSet", { enumerable: true, get: function() { + return sortValues_js_1.sortSet; + } }); + var toConstructors_js_1 = require_toConstructors(); + Object.defineProperty(exports2, "mapToTypeMap", { enumerable: true, get: function() { + return toConstructors_js_1.mapToTypeMap; + } }); + Object.defineProperty(exports2, "typesToConstructors", { enumerable: true, get: function() { + return toConstructors_js_1.typesToConstructors; + } }); + Object.defineProperty(exports2, "typeToConstructor", { enumerable: true, get: function() { + return toConstructors_js_1.typeToConstructor; + } }); + var typesToMap_js_1 = require_typesToMap(); + Object.defineProperty(exports2, "typesToMap", { enumerable: true, get: function() { + return typesToMap_js_1.typesToMap; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Compact.js + var require_Compact = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Compact.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Compact = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function decodeCompact2(registry, Type2, value) { + if ((0, util_1.isU8a)(value)) { + const [decodedLength, bn2] = (value[0] & 3) < 3 ? (0, util_1.compactFromU8aLim)(value) : (0, util_1.compactFromU8a)(value); + return [new Type2(registry, bn2), decodedLength]; + } else if (value instanceof Compact2) { + const raw = value.unwrap(); + return raw instanceof Type2 ? [raw, 0] : [new Type2(registry, raw), 0]; + } else if (value instanceof Type2) { + return [value, 0]; + } + return [new Type2(registry, value), 0]; + } + var Compact2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__Type; + __internal__raw; + constructor(registry, Type2, value = 0, { definition, setDefinition = util_1.identity } = {}) { + this.registry = registry; + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + const [raw, decodedLength] = decodeCompact2(registry, this.__internal__Type, value); + this.initialU8aLength = decodedLength; + this.__internal__raw = raw; + } + static with(Type2) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Compact2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + bitLength() { + return this.__internal__raw.bitLength(); + } + eq(other) { + return this.__internal__raw.eq(other instanceof Compact2 ? other.__internal__raw : other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toBigInt() { + return this.__internal__raw.toBigInt(); + } + toBn() { + return this.__internal__raw.toBn(); + } + toHex(isLe) { + return this.__internal__raw.toHex(isLe); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.__internal__raw.toJSON(); + } + toNumber() { + return this.__internal__raw.toNumber(); + } + toPrimitive(disableAscii) { + return this.__internal__raw.toPrimitive(disableAscii); + } + toRawType() { + return `Compact<${this.registry.getClassName(this.__internal__Type) || this.__internal__raw.toRawType()}>`; + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(_isBare) { + return (0, util_1.compactToU8a)(this.__internal__raw.toBn()); + } + unwrap() { + return this.__internal__raw; + } + }; + exports2.Compact = Compact2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/DoNotConstruct.js + var require_DoNotConstruct = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/DoNotConstruct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DoNotConstruct = void 0; + var DoNotConstruct2 = class { + registry; + createdAtHash; + isStorageFallback; + __internal__neverError; + constructor(registry, typeName = "DoNotConstruct") { + this.registry = registry; + this.__internal__neverError = new Error(`DoNotConstruct: Cannot construct unknown type ${typeName}`); + throw this.__internal__neverError; + } + static with(typeName) { + return class extends DoNotConstruct2 { + constructor(registry) { + super(registry, typeName); + } + }; + } + get encodedLength() { + throw this.__internal__neverError; + } + get hash() { + throw this.__internal__neverError; + } + get isEmpty() { + throw this.__internal__neverError; + } + eq() { + throw this.__internal__neverError; + } + inspect() { + throw this.__internal__neverError; + } + toHex() { + throw this.__internal__neverError; + } + toHuman() { + throw this.__internal__neverError; + } + toJSON() { + throw this.__internal__neverError; + } + toPrimitive() { + throw this.__internal__neverError; + } + toRawType() { + throw this.__internal__neverError; + } + toString() { + throw this.__internal__neverError; + } + toU8a() { + throw this.__internal__neverError; + } + }; + exports2.DoNotConstruct = DoNotConstruct2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Null.js + var require_Null = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Null.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Null = void 0; + var util_1 = require_cjs3(); + var Null2 = class { + encodedLength = 0; + isEmpty = true; + registry; + createdAtHash; + initialU8aLength = 0; + isStorageFallback; + constructor(registry) { + this.registry = registry; + } + get hash() { + throw new Error(".hash is not implemented on Null"); + } + eq(other) { + return other instanceof Null2 || (0, util_1.isNull)(other); + } + inspect() { + return {}; + } + toHex() { + return "0x"; + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return null; + } + toPrimitive() { + return null; + } + toRawType() { + return "Null"; + } + toString() { + return ""; + } + toU8a(_isBare) { + return new Uint8Array(); + } + }; + exports2.Null = Null2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Enum.js + var require_Enum = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Enum.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Enum = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var Null_js_1 = require_Null(); + function isRustEnum3(def) { + const defValues = Object.values(def); + if (defValues.some((v) => (0, util_1.isNumber)(v))) { + if (!defValues.every((v) => (0, util_1.isNumber)(v) && v >= 0 && v <= 255)) { + throw new Error("Invalid number-indexed enum definition"); + } + return false; + } + return true; + } + function extractDef2(registry, _def) { + const def = {}; + let isBasic; + let isIndexed; + if (Array.isArray(_def)) { + for (let i = 0, count = _def.length; i < count; i++) { + def[_def[i]] = { Type: Null_js_1.Null, index: i }; + } + isBasic = true; + isIndexed = false; + } else if (isRustEnum3(_def)) { + const [Types, keys] = (0, index_js_1.mapToTypeMap)(registry, _def); + for (let i = 0, count = keys.length; i < count; i++) { + def[keys[i]] = { Type: Types[i], index: i }; + } + isBasic = !Object.values(def).some(({ Type: Type2 }) => Type2 !== Null_js_1.Null); + isIndexed = false; + } else { + const entries = Object.entries(_def); + for (let i = 0, count = entries.length; i < count; i++) { + const [key2, index] = entries[i]; + def[key2] = { Type: Null_js_1.Null, index }; + } + isBasic = true; + isIndexed = true; + } + return { + def, + isBasic, + isIndexed + }; + } + function getEntryType2(def, checkIdx) { + const values = Object.values(def); + for (let i = 0, count = values.length; i < count; i++) { + const { Type: Type2, index } = values[i]; + if (index === checkIdx) { + return Type2; + } + } + throw new Error(`Unable to create Enum via index ${checkIdx}, in ${Object.keys(def).join(", ")}`); + } + function createFromU8a2(registry, def, index, value) { + const Type2 = getEntryType2(def, index); + return { + index, + value: new Type2(registry, value) + }; + } + function createFromValue2(registry, def, index = 0, value) { + const Type2 = getEntryType2(def, index); + return { + index, + value: value instanceof Type2 ? value : new Type2(registry, value) + }; + } + function decodeFromJSON2(registry, def, key2, value) { + const keys = Object.keys(def).map((k) => k.toLowerCase()); + const keyLower = key2.toLowerCase(); + const index = keys.indexOf(keyLower); + if (index === -1) { + throw new Error(`Cannot map Enum JSON, unable to find '${key2}' in ${keys.join(", ")}`); + } + try { + return createFromValue2(registry, def, Object.values(def)[index].index, value); + } catch (error) { + throw new Error(`Enum(${key2}):: ${error.message}`); + } + } + function decodeEnum2(registry, def, value, index) { + if ((0, util_1.isNumber)(index)) { + return createFromValue2(registry, def, index, value); + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + if (u8a.length) { + return createFromU8a2(registry, def, u8a[0], u8a.subarray(1)); + } + } else if (value instanceof Enum2) { + return createFromValue2(registry, def, value.index, value.value); + } else if ((0, util_1.isNumber)(value)) { + return createFromValue2(registry, def, value); + } else if ((0, util_1.isString)(value)) { + return decodeFromJSON2(registry, def, value.toString()); + } else if ((0, util_1.isObject)(value)) { + const key2 = Object.keys(value)[0]; + return decodeFromJSON2(registry, def, key2, value[key2]); + } + return createFromValue2(registry, def, Object.values(def)[0].index); + } + var Enum2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__def; + __internal__entryIndex; + __internal__indexes; + __internal__isBasic; + __internal__isIndexed; + __internal__raw; + constructor(registry, Types, value, index, { definition, setDefinition = util_1.identity } = {}) { + const { def, isBasic, isIndexed } = definition || setDefinition(extractDef2(registry, Types)); + const decoded = (0, util_1.isU8a)(value) && value.length && !(0, util_1.isNumber)(index) ? createFromU8a2(registry, def, value[0], value.subarray(1)) : decodeEnum2(registry, def, value, index); + this.registry = registry; + this.__internal__def = def; + this.__internal__isBasic = isBasic; + this.__internal__isIndexed = isIndexed; + this.__internal__indexes = Object.values(def).map(({ index: index2 }) => index2); + this.__internal__entryIndex = this.__internal__indexes.indexOf(decoded.index); + this.__internal__raw = decoded.value; + if (this.__internal__raw.initialU8aLength) { + this.initialU8aLength = 1 + this.__internal__raw.initialU8aLength; + } + } + static with(Types) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Enum2 { + static { + const keys = Array.isArray(Types) ? Types : Object.keys(Types); + const count = keys.length; + const asKeys = new Array(count); + const isKeys = new Array(count); + for (let i = 0; i < count; i++) { + const name6 = (0, util_1.stringPascalCase)(keys[i]); + asKeys[i] = `as${name6}`; + isKeys[i] = `is${name6}`; + } + (0, util_1.objectProperties)(this.prototype, isKeys, (_, i, self2) => self2.type === keys[i]); + (0, util_1.objectProperties)(this.prototype, asKeys, (k, i, self2) => { + if (self2.type !== keys[i]) { + throw new Error(`Cannot convert '${self2.type}' via ${k}`); + } + return self2.value; + }); + } + constructor(registry, value, index) { + super(registry, Types, value, index, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return 1 + this.__internal__raw.encodedLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get index() { + return this.__internal__indexes[this.__internal__entryIndex]; + } + get inner() { + return this.__internal__raw; + } + get isBasic() { + return this.__internal__isBasic; + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + get isNone() { + return this.__internal__raw instanceof Null_js_1.Null; + } + get defIndexes() { + return this.__internal__indexes; + } + get defKeys() { + return Object.keys(this.__internal__def); + } + get type() { + return this.defKeys[this.__internal__entryIndex]; + } + get value() { + return this.__internal__raw; + } + eq(other) { + if ((0, util_1.isU8a)(other)) { + return !this.toU8a().some((entry, index) => entry !== other[index]); + } else if ((0, util_1.isNumber)(other)) { + return this.toNumber() === other; + } else if (this.__internal__isBasic && (0, util_1.isString)(other)) { + return this.type === other; + } else if ((0, util_1.isHex)(other)) { + return this.toHex() === other; + } else if (other instanceof Enum2) { + return this.index === other.index && this.value.eq(other.value); + } else if ((0, util_1.isObject)(other)) { + return this.value.eq(other[this.type]); + } + return this.value.eq(other); + } + inspect() { + if (this.__internal__isBasic) { + return { outer: [new Uint8Array([this.index])] }; + } + const { inner, outer = [] } = this.__internal__raw.inspect(); + return { + inner, + outer: [new Uint8Array([this.index]), ...outer] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + return this.__internal__isBasic || this.isNone ? this.type : { [this.type]: this.__internal__raw.toHuman(isExtended, disableAscii) }; + } + toJSON() { + return this.__internal__isBasic ? this.type : { [(0, util_1.stringCamelCase)(this.type)]: this.__internal__raw.toJSON() }; + } + toNumber() { + return this.index; + } + toPrimitive(disableAscii) { + return this.__internal__isBasic ? this.type : { [(0, util_1.stringCamelCase)(this.type)]: this.__internal__raw.toPrimitive(disableAscii) }; + } + _toRawStruct() { + if (this.__internal__isBasic) { + return this.__internal__isIndexed ? this.defKeys.reduce((out, key2, index) => { + out[key2] = this.__internal__indexes[index]; + return out; + }, {}) : this.defKeys; + } + const entries = Object.entries(this.__internal__def); + return (0, index_js_1.typesToMap)(this.registry, entries.reduce((out, [key2, { Type: Type2 }], i) => { + out[0][i] = Type2; + out[1][i] = key2; + return out; + }, [new Array(entries.length), new Array(entries.length)])); + } + toRawType() { + return (0, util_1.stringify)({ _enum: this._toRawStruct() }); + } + toString() { + return this.isNone ? this.type : (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + return isBare ? this.__internal__raw.toU8a(isBare) : (0, util_1.u8aConcatStrict)([ + new Uint8Array([this.index]), + this.__internal__raw.toU8a(isBare) + ]); + } + }; + exports2.Enum = Enum2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Int.js + var require_Int2 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Int.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Int = void 0; + var Int_js_1 = require_Int(); + var Int2 = class extends Int_js_1.AbstractInt { + constructor(registry, value = 0, bitLength) { + super(registry, value, bitLength, true); + } + static with(bitLength, typeName) { + return class extends Int2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + }; + exports2.Int = Int2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Option.js + var require_Option = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Option.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Option = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var Null_js_1 = require_Null(); + var None2 = class extends Null_js_1.Null { + toRawType() { + return "None"; + } + }; + function decodeOption2(registry, Type2, value) { + if (value instanceof Type2) { + return value; + } else if (value instanceof Option2) { + if (value.value instanceof Type2) { + return value.value; + } else if (value.isNone) { + return new None2(registry); + } + return new Type2(registry, value.value); + } else if ((0, util_1.isNull)(value) || (0, util_1.isUndefined)(value) || value === "0x" || value instanceof None2) { + return new None2(registry); + } else if ((0, util_1.isU8a)(value)) { + return !value.length || value[0] === 0 ? new None2(registry) : new Type2(registry, value.subarray(1)); + } + return new Type2(registry, value); + } + var Option2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__Type; + __internal__raw; + constructor(registry, typeName, value, { definition, setDefinition = util_1.identity } = {}) { + const Type2 = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, typeName)); + const decoded = (0, util_1.isU8a)(value) && value.length && !(0, util_1.isCodec)(value) ? value[0] === 0 ? new None2(registry) : new Type2(registry, value.subarray(1)) : decodeOption2(registry, Type2, value); + this.registry = registry; + this.__internal__Type = Type2; + this.__internal__raw = decoded; + if (decoded?.initialU8aLength) { + this.initialU8aLength = 1 + decoded.initialU8aLength; + } + } + static with(Type2) { + let definition; + const setDefinition = (d) => { + definition = d; + return d; + }; + return class extends Option2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return 1 + this.__internal__raw.encodedLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isNone; + } + get isNone() { + return this.__internal__raw instanceof None2; + } + get isSome() { + return !this.isNone; + } + get value() { + return this.__internal__raw; + } + eq(other) { + if (other instanceof Option2) { + return this.isSome === other.isSome && this.value.eq(other.value); + } + return this.value.eq(other); + } + inspect() { + if (this.isNone) { + return { outer: [new Uint8Array([0])] }; + } + const { inner, outer = [] } = this.__internal__raw.inspect(); + return { + inner, + outer: [new Uint8Array([1]), ...outer] + }; + } + toHex() { + return this.isNone ? "0x" : (0, util_1.u8aToHex)(this.toU8a().subarray(1)); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.isNone ? null : this.__internal__raw.toJSON(); + } + toPrimitive(disableAscii) { + return this.isNone ? null : this.__internal__raw.toPrimitive(disableAscii); + } + toRawType(isBare) { + const wrapped = this.registry.getClassName(this.__internal__Type) || new this.__internal__Type(this.registry).toRawType(); + return isBare ? wrapped : `Option<${wrapped}>`; + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(isBare) { + if (isBare) { + return this.__internal__raw.toU8a(true); + } + const u8a = new Uint8Array(this.encodedLength); + if (this.isSome) { + u8a.set([1]); + u8a.set(this.__internal__raw.toU8a(), 1); + } + return u8a; + } + unwrap() { + if (this.isNone) { + throw new Error("Option: unwrapping a None value"); + } + return this.__internal__raw; + } + unwrapOr(defaultValue) { + return this.isSome ? this.unwrap() : defaultValue; + } + unwrapOrDefault() { + return this.isSome ? this.unwrap() : new this.__internal__Type(this.registry); + } + }; + exports2.Option = Option2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Result.js + var require_Result = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Result.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Result = void 0; + var Enum_js_1 = require_Enum(); + var Result2 = class extends Enum_js_1.Enum { + constructor(registry, Ok2, Err, value) { + super(registry, { Ok: Ok2, Err }, value); + } + static with(Types) { + return class extends Result2 { + constructor(registry, value) { + super(registry, Types.Ok, Types.Err, value); + } + }; + } + get asErr() { + if (!this.isErr) { + throw new Error("Cannot extract Err value from Ok result, check isErr first"); + } + return this.value; + } + get asOk() { + if (!this.isOk) { + throw new Error("Cannot extract Ok value from Err result, check isOk first"); + } + return this.value; + } + get isEmpty() { + return this.isOk && this.value.isEmpty; + } + get isErr() { + return !this.isOk; + } + get isOk() { + return this.index === 0; + } + toRawType() { + const Types = this._toRawStruct(); + return `Result<${Types.Ok},${Types.Err}>`; + } + }; + exports2.Result = Result2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Tuple.js + var require_Tuple = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Tuple.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Tuple = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + function decodeTuple2(registry, result, value, Classes) { + if (Array.isArray(value)) { + const Types = Classes[0]; + for (let i = 0, count = Types.length; i < count; i++) { + try { + const entry = value?.[i]; + result[i] = entry instanceof Types[i] ? entry : new Types[i](registry, entry); + } catch (error) { + throw new Error(`Tuple: failed on ${i}:: ${error.message}`); + } + } + return [result, 0]; + } else if ((0, util_1.isHex)(value)) { + return (0, index_js_1.decodeU8a)(registry, result, (0, util_1.u8aToU8a)(value), Classes); + } else if (!value || !result.length) { + const Types = Classes[0]; + for (let i = 0, count = Types.length; i < count; i++) { + result[i] = new Types[i](registry); + } + return [result, 0]; + } + throw new Error(`Expected array input to Tuple decoding, found ${typeof value}: ${(0, util_1.stringify)(value)}`); + } + var Tuple2 = class extends Array_js_1.AbstractArray { + __internal__Types; + constructor(registry, Types, value, { definition, setDefinition = util_1.identity } = {}) { + const Classes = definition || setDefinition(Array.isArray(Types) ? [(0, index_js_1.typesToConstructors)(registry, Types), []] : (0, util_1.isFunction)(Types) || (0, util_1.isString)(Types) ? [[(0, index_js_1.typeToConstructor)(registry, Types)], []] : (0, index_js_1.mapToTypeMap)(registry, Types)); + super(registry, Classes[0].length); + this.initialU8aLength = ((0, util_1.isU8a)(value) ? (0, index_js_1.decodeU8a)(registry, this, value, Classes) : decodeTuple2(registry, this, value, Classes))[1]; + this.__internal__Types = Classes; + } + static with(Types) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Tuple2 { + constructor(registry, value) { + super(registry, Types, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + let total = 0; + for (let i = 0, count = this.length; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + get Types() { + return this.__internal__Types[1].length ? this.__internal__Types[1] : this.__internal__Types[0].map((T) => new T(this.registry).toRawType()); + } + inspect() { + return { + inner: this.inspectInner() + }; + } + toRawType() { + const types2 = this.__internal__Types[0].map((T) => this.registry.getClassName(T) || new T(this.registry).toRawType()); + return `(${types2.join(",")})`; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + return (0, util_1.u8aConcatStrict)(this.toU8aInner(isBare)); + } + }; + exports2.Tuple = Tuple2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/UInt.js + var require_UInt = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/UInt.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UInt = void 0; + var Int_js_1 = require_Int(); + var UInt2 = class extends Int_js_1.AbstractInt { + static with(bitLength, typeName) { + return class extends UInt2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + }; + exports2.UInt = UInt2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Vec.js + var require_Vec = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Vec.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Vec = exports2.decodeVec = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + var MAX_LENGTH4 = 64 * 1024; + var l15 = (0, util_1.logger)("Vec"); + function decodeVecLength2(value) { + if (Array.isArray(value)) { + return [value, value.length, 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + const [startAt, length] = (0, util_1.compactFromU8aLim)(u8a); + if (length > MAX_LENGTH4) { + throw new Error(`Vec length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } + return [u8a, length, startAt]; + } else if (!value) { + return [null, 0, 0]; + } + throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof value}: ${(0, util_1.stringify)(value)}`); + } + function decodeVec2(registry, result, value, startAt, Type2) { + if (Array.isArray(value)) { + const count = result.length; + for (let i = 0; i < count; i++) { + const entry = value[i]; + try { + result[i] = entry instanceof Type2 ? entry : new Type2(registry, entry); + } catch (error) { + l15.error(`Unable to decode on index ${i}`, error.message); + throw error; + } + } + return [0, 0]; + } else if (!value) { + return [0, 0]; + } + return (0, index_js_1.decodeU8aVec)(registry, result, (0, util_1.u8aToU8a)(value), startAt, Type2); + } + exports2.decodeVec = decodeVec2; + var Vec2 = class extends Array_js_1.AbstractArray { + __internal__Type; + constructor(registry, Type2, value = [], { definition, setDefinition = util_1.identity } = {}) { + const [decodeFrom, length, startAt] = decodeVecLength2(value); + super(registry, length); + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + this.initialU8aLength = ((0, util_1.isU8a)(decodeFrom) ? (0, index_js_1.decodeU8aVec)(registry, this, decodeFrom, startAt, this.__internal__Type) : decodeVec2(registry, this, decodeFrom, startAt, this.__internal__Type))[0]; + } + static with(Type2) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Vec2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get Type() { + return this.__internal__Type.name; + } + indexOf(other) { + const check = other instanceof this.__internal__Type ? other : new this.__internal__Type(this.registry, other); + for (let i = 0, count = this.length; i < count; i++) { + if (check.eq(this[i])) { + return i; + } + } + return -1; + } + toRawType() { + return `Vec<${this.registry.getClassName(this.__internal__Type) || new this.__internal__Type(this.registry).toRawType()}>`; + } + }; + exports2.Vec = Vec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/VecAny.js + var require_VecAny = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/VecAny.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecAny = void 0; + var Array_js_1 = require_Array(); + var VecAny = class extends Array_js_1.AbstractArray { + toRawType() { + return "Vec"; + } + }; + exports2.VecAny = VecAny; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/VecFixed.js + var require_VecFixed = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/VecFixed.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecFixed = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + var Vec_js_1 = require_Vec(); + var VecFixed2 = class extends Array_js_1.AbstractArray { + __internal__Type; + constructor(registry, Type2, length, value = [], { definition, setDefinition = util_1.identity } = {}) { + super(registry, length); + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + this.initialU8aLength = ((0, util_1.isU8a)(value) ? (0, index_js_1.decodeU8aVec)(registry, this, value, 0, this.__internal__Type) : (0, Vec_js_1.decodeVec)(registry, this, value, 0, this.__internal__Type))[1]; + } + static with(Type2, length) { + let definition; + const setDefinition = (d) => definition = d; + return class extends VecFixed2 { + constructor(registry, value) { + super(registry, Type2, length, value, { definition, setDefinition }); + } + }; + } + get Type() { + return new this.__internal__Type(this.registry).toRawType(); + } + get encodedLength() { + let total = 0; + for (let i = 0, count = this.length; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + inspect() { + return { + inner: this.inspectInner() + }; + } + toU8a() { + const encoded = this.toU8aInner(); + return encoded.length ? (0, util_1.u8aConcatStrict)(encoded) : new Uint8Array([]); + } + toRawType() { + return `[${this.Type};${this.length}]`; + } + }; + exports2.VecFixed = VecFixed2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/index.js + var require_base = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecFixed = exports2.VecAny = exports2.Vec = exports2.UInt = exports2.Tuple = exports2.Result = exports2.Option = exports2.Null = exports2.Int = exports2.Enum = exports2.DoNotConstruct = exports2.Compact = void 0; + var Compact_js_1 = require_Compact(); + Object.defineProperty(exports2, "Compact", { enumerable: true, get: function() { + return Compact_js_1.Compact; + } }); + var DoNotConstruct_js_1 = require_DoNotConstruct(); + Object.defineProperty(exports2, "DoNotConstruct", { enumerable: true, get: function() { + return DoNotConstruct_js_1.DoNotConstruct; + } }); + var Enum_js_1 = require_Enum(); + Object.defineProperty(exports2, "Enum", { enumerable: true, get: function() { + return Enum_js_1.Enum; + } }); + var Int_js_1 = require_Int2(); + Object.defineProperty(exports2, "Int", { enumerable: true, get: function() { + return Int_js_1.Int; + } }); + var Null_js_1 = require_Null(); + Object.defineProperty(exports2, "Null", { enumerable: true, get: function() { + return Null_js_1.Null; + } }); + var Option_js_1 = require_Option(); + Object.defineProperty(exports2, "Option", { enumerable: true, get: function() { + return Option_js_1.Option; + } }); + var Result_js_1 = require_Result(); + Object.defineProperty(exports2, "Result", { enumerable: true, get: function() { + return Result_js_1.Result; + } }); + var Tuple_js_1 = require_Tuple(); + Object.defineProperty(exports2, "Tuple", { enumerable: true, get: function() { + return Tuple_js_1.Tuple; + } }); + var UInt_js_1 = require_UInt(); + Object.defineProperty(exports2, "UInt", { enumerable: true, get: function() { + return UInt_js_1.UInt; + } }); + var Vec_js_1 = require_Vec(); + Object.defineProperty(exports2, "Vec", { enumerable: true, get: function() { + return Vec_js_1.Vec; + } }); + var VecAny_js_1 = require_VecAny(); + Object.defineProperty(exports2, "VecAny", { enumerable: true, get: function() { + return VecAny_js_1.VecAny; + } }); + var VecFixed_js_1 = require_VecFixed(); + Object.defineProperty(exports2, "VecFixed", { enumerable: true, get: function() { + return VecFixed_js_1.VecFixed; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Raw.js + var require_Raw = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Raw.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Raw = void 0; + var util_1 = require_cjs3(); + var Raw2 = class extends Uint8Array { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + static get [Symbol.species]() { + return Uint8Array; + } + constructor(registry, value, initialU8aLength) { + super((0, util_1.u8aToU8a)(value)); + this.registry = registry; + this.initialU8aLength = initialU8aLength; + } + get encodedLength() { + return this.length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isAscii() { + return (0, util_1.isAscii)(this); + } + get isEmpty() { + return !this.length || (0, util_1.isUndefined)(this.find((b) => !!b)); + } + get isUtf8() { + return (0, util_1.isUtf8)(this); + } + bitLength() { + return this.length * 8; + } + eq(other) { + if (other instanceof Uint8Array) { + return this.length === other.length && !this.some((b, index) => b !== other[index]); + } + return this.eq((0, util_1.u8aToU8a)(other)); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this); + } + toHuman(_isExtended, disableAscii) { + return this.toPrimitive(disableAscii); + } + toJSON() { + return this.toHex(); + } + toPrimitive(disableAscii) { + if (!disableAscii && this.isAscii) { + const text2 = this.toUtf8(); + if ((0, util_1.isAscii)(text2)) { + return text2; + } + } + return this.toJSON(); + } + toRawType() { + return "Raw"; + } + toString() { + return this.toHex(); + } + toU8a(_isBare) { + return Uint8Array.from(this); + } + toUtf8() { + if (!this.isUtf8) { + throw new Error("The character sequence is not a valid Utf8 string"); + } + return (0, util_1.u8aToString)(this); + } + }; + exports2.Raw = Raw2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BitVec.js + var require_BitVec = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BitVec.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BitVec = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + function decodeBitVecU8a2(value) { + if (!value?.length) { + return [0, new Uint8Array()]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + Math.ceil(length / 8); + if (total > value.length) { + throw new Error(`BitVec: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [length, value.subarray(offset, total)]; + } + function decodeBitVec2(value) { + if (Array.isArray(value) || (0, util_1.isString)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + return [u8a.length / 8, u8a]; + } + return decodeBitVecU8a2(value); + } + var BitVec2 = class extends Raw_js_1.Raw { + __internal__decodedLength; + __internal__isMsb; + constructor(registry, value, isMsb = false) { + const [decodedLength, u8a] = decodeBitVec2(value); + super(registry, u8a); + this.__internal__decodedLength = decodedLength; + this.__internal__isMsb = isMsb; + } + get encodedLength() { + return this.length + (0, util_1.compactToU8a)(this.__internal__decodedLength).length; + } + inspect() { + return { + outer: [(0, util_1.compactToU8a)(this.__internal__decodedLength), super.toU8a()] + }; + } + toBoolArray() { + const map2 = [...this.toU8a(true)].map((v) => [ + !!(v & 128), + !!(v & 64), + !!(v & 32), + !!(v & 16), + !!(v & 8), + !!(v & 4), + !!(v & 2), + !!(v & 1) + ]); + const count = map2.length; + const result = new Array(8 * count); + for (let i = 0; i < count; i++) { + const off = i * 8; + const v = map2[i]; + for (let j10 = 0; j10 < 8; j10++) { + result[off + j10] = this.__internal__isMsb ? v[j10] : v[7 - j10]; + } + } + return result; + } + toHuman() { + return `0b${[...this.toU8a(true)].map((d) => `00000000${d.toString(2)}`.slice(-8)).map((s) => this.__internal__isMsb ? s : s.split("").reverse().join("")).join("_")}`; + } + toRawType() { + return "BitVec"; + } + toU8a(isBare) { + const bitVec = super.toU8a(isBare); + return isBare ? bitVec : (0, util_1.u8aConcatStrict)([(0, util_1.compactToU8a)(this.__internal__decodedLength), bitVec]); + } + }; + exports2.BitVec = BitVec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Struct.js + var require_Struct = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Struct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Struct = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function noopSetDefinition2(d) { + return d; + } + function decodeStructFromObject2(registry, [Types, keys], value, jsonMap) { + let jsonObj; + const typeofArray = Array.isArray(value); + const typeofMap = value instanceof Map; + const count = keys.length; + if (!typeofArray && !typeofMap && !(0, util_1.isObject)(value)) { + throw new Error(`Struct: Cannot decode value ${(0, util_1.stringify)(value)} (typeof ${typeof value}), expected an input object, map or array`); + } else if (typeofArray && value.length !== count) { + throw new Error(`Struct: Unable to map ${(0, util_1.stringify)(value)} array to object with known keys ${keys.join(", ")}`); + } + const raw = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = keys[i]; + const jsonKey = jsonMap.get(key2) || key2; + const Type2 = Types[i]; + let assign; + try { + if (typeofArray) { + assign = value[i]; + } else if (typeofMap) { + assign = jsonKey && value.get(jsonKey); + } else { + assign = jsonKey && value[jsonKey]; + if ((0, util_1.isUndefined)(assign)) { + if ((0, util_1.isUndefined)(jsonObj)) { + const entries = Object.entries(value); + jsonObj = {}; + for (let e = 0, ecount = entries.length; e < ecount; e++) { + jsonObj[(0, util_1.stringCamelCase)(entries[e][0])] = entries[e][1]; + } + } + assign = jsonKey && jsonObj[jsonKey]; + } + } + raw[i] = [ + key2, + assign instanceof Type2 ? assign : new Type2(registry, assign) + ]; + } catch (error) { + let type = Type2.name; + try { + type = new Type2(registry).toRawType(); + } catch { + } + throw new Error(`Struct: failed on ${jsonKey}: ${type}:: ${error.message}`); + } + } + return [raw, 0]; + } + var Struct2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__jsonMap; + __internal__Types; + constructor(registry, Types, value, jsonMap = /* @__PURE__ */ new Map(), { definition, setDefinition = noopSetDefinition2 } = {}) { + const typeMap = definition || setDefinition((0, index_js_1.mapToTypeMap)(registry, Types)); + const [decoded, decodedLength] = (0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? (0, index_js_1.decodeU8aStruct)(registry, new Array(typeMap[0].length), (0, util_1.u8aToU8a)(value), typeMap) : value instanceof Struct2 ? [value, 0] : decodeStructFromObject2(registry, typeMap, value || {}, jsonMap); + super(decoded); + this.initialU8aLength = decodedLength; + this.registry = registry; + this.__internal__jsonMap = jsonMap; + this.__internal__Types = typeMap; + } + static with(Types, jsonMap) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Struct2 { + static { + const keys = Object.keys(Types); + (0, util_1.objectProperties)(this.prototype, keys, (k, _, self2) => self2.get(k)); + } + constructor(registry, value) { + super(registry, Types, value, jsonMap, { definition, setDefinition }); + } + }; + } + get defKeys() { + return this.__internal__Types[1]; + } + get isEmpty() { + for (const v of this.values()) { + if (!v.isEmpty) { + return false; + } + } + return true; + } + get encodedLength() { + let total = 0; + for (const v of this.values()) { + total += v.encodedLength; + } + return total; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get Type() { + const result = {}; + const [Types, keys] = this.__internal__Types; + for (let i = 0, count = keys.length; i < count; i++) { + result[keys[i]] = new Types[i](this.registry).toRawType(); + } + return result; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + get(key2) { + return super.get(key2); + } + getAtIndex(index) { + return this.toArray()[index]; + } + getT(key2) { + return super.get(key2); + } + inspect(isBare) { + const inner = []; + for (const [k, v] of this.entries()) { + inner.push({ + ...v.inspect(!isBare || (0, util_1.isBoolean)(isBare) ? isBare : isBare[k]), + name: (0, util_1.stringCamelCase)(k) + }); + } + return { + inner + }; + } + toArray() { + return [...this.values()]; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k] = v.toHuman(isExtended, disableAscii); + } + return json; + } + toJSON() { + const json = {}; + for (const [k, v] of this.entries()) { + json[this.__internal__jsonMap.get(k) || k] = v.toJSON(); + } + return json; + } + toPrimitive(disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k] = v.toPrimitive(disableAscii); + } + return json; + } + toRawType() { + return (0, util_1.stringify)((0, index_js_1.typesToMap)(this.registry, this.__internal__Types)); + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + for (const [k, v] of this.entries()) { + encoded.push(v.toU8a(!isBare || (0, util_1.isBoolean)(isBare) ? isBare : isBare[k])); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.Struct = Struct2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Map.js + var require_Map = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Map.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecMap = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var Enum_js_1 = require_Enum(); + var Raw_js_1 = require_Raw(); + var Struct_js_1 = require_Struct(); + var index_js_1 = require_utils5(); + var l15 = (0, util_1.logger)("Map"); + function decodeMapFromU8a2(registry, KeyClass, ValClass, u8a) { + const output4 = /* @__PURE__ */ new Map(); + const [offset, count] = (0, util_1.compactFromU8aLim)(u8a); + const types2 = []; + for (let i = 0; i < count; i++) { + types2.push(KeyClass, ValClass); + } + const [values, decodedLength] = (0, index_js_1.decodeU8a)(registry, new Array(types2.length), u8a.subarray(offset), [types2, []]); + for (let i = 0, count2 = values.length; i < count2; i += 2) { + output4.set(values[i], values[i + 1]); + } + return [KeyClass, ValClass, output4, offset + decodedLength]; + } + function decodeMapFromMap2(registry, KeyClass, ValClass, value) { + const output4 = /* @__PURE__ */ new Map(); + for (const [key2, val] of value.entries()) { + const isComplex = KeyClass.prototype instanceof Array_js_1.AbstractArray || KeyClass.prototype instanceof Struct_js_1.Struct || KeyClass.prototype instanceof Enum_js_1.Enum; + try { + output4.set(key2 instanceof KeyClass ? key2 : new KeyClass(registry, isComplex && typeof key2 === "string" ? JSON.parse(key2) : key2), val instanceof ValClass ? val : new ValClass(registry, val)); + } catch (error) { + l15.error("Failed to decode key or value:", error.message); + throw error; + } + } + return [KeyClass, ValClass, output4, 0]; + } + function decodeMap2(registry, keyType, valType, value) { + const KeyClass = (0, index_js_1.typeToConstructor)(registry, keyType); + const ValClass = (0, index_js_1.typeToConstructor)(registry, valType); + if (!value) { + return [KeyClass, ValClass, /* @__PURE__ */ new Map(), 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeMapFromU8a2(registry, KeyClass, ValClass, (0, util_1.u8aToU8a)(value)); + } else if (value instanceof Map) { + return decodeMapFromMap2(registry, KeyClass, ValClass, value); + } else if ((0, util_1.isObject)(value)) { + return decodeMapFromMap2(registry, KeyClass, ValClass, new Map(Object.entries(value))); + } + throw new Error("Map: cannot decode type"); + } + var CodecMap2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__KeyClass; + __internal__ValClass; + __internal__type; + constructor(registry, keyType, valType, rawValue, type = "HashMap") { + const [KeyClass, ValClass, decoded, decodedLength] = decodeMap2(registry, keyType, valType, rawValue); + super(type === "BTreeMap" ? (0, index_js_1.sortMap)(decoded) : decoded); + this.registry = registry; + this.initialU8aLength = decodedLength; + this.__internal__KeyClass = KeyClass; + this.__internal__ValClass = ValClass; + this.__internal__type = type; + } + get encodedLength() { + let len = (0, util_1.compactToU8a)(this.size).length; + for (const [k, v] of this.entries()) { + len += k.encodedLength + v.encodedLength; + } + return len; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + inspect() { + const inner = []; + for (const [k, v] of this.entries()) { + inner.push(k.inspect()); + inner.push(v.inspect()); + } + return { + inner, + outer: [(0, util_1.compactToU8a)(this.size)] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k instanceof Raw_js_1.Raw && !disableAscii && k.isAscii ? k.toUtf8() : k.toString()] = v.toHuman(isExtended, disableAscii); + } + return json; + } + toJSON() { + const json = {}; + for (const [k, v] of this.entries()) { + json[k.toString()] = v.toJSON(); + } + return json; + } + toPrimitive(disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k instanceof Raw_js_1.Raw && !disableAscii && k.isAscii ? k.toUtf8() : k.toString()] = v.toPrimitive(disableAscii); + } + return json; + } + toRawType() { + return `${this.__internal__type}<${this.registry.getClassName(this.__internal__KeyClass) || new this.__internal__KeyClass(this.registry).toRawType()},${this.registry.getClassName(this.__internal__ValClass) || new this.__internal__ValClass(this.registry).toRawType()}>`; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + if (!isBare) { + encoded.push((0, util_1.compactToU8a)(this.size)); + } + for (const [k, v] of this.entries()) { + encoded.push(k.toU8a(isBare), v.toU8a(isBare)); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.CodecMap = CodecMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BTreeMap.js + var require_BTreeMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BTreeMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BTreeMap = void 0; + var Map_js_1 = require_Map(); + var BTreeMap2 = class extends Map_js_1.CodecMap { + static with(keyType, valType) { + return class extends BTreeMap2 { + constructor(registry, value) { + super(registry, keyType, valType, value, "BTreeMap"); + } + }; + } + }; + exports2.BTreeMap = BTreeMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BTreeSet.js + var require_BTreeSet = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BTreeSet.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BTreeSet = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var l15 = (0, util_1.logger)("BTreeSet"); + function decodeSetFromU8a2(registry, ValClass, u8a) { + const output4 = /* @__PURE__ */ new Set(); + const [offset, count] = (0, util_1.compactFromU8aLim)(u8a); + const result = new Array(count); + const [decodedLength] = (0, index_js_1.decodeU8aVec)(registry, result, u8a, offset, ValClass); + for (let i = 0; i < count; i++) { + output4.add(result[i]); + } + return [ValClass, output4, decodedLength]; + } + function decodeSetFromSet2(registry, ValClass, value) { + const output4 = /* @__PURE__ */ new Set(); + value.forEach((val) => { + try { + output4.add(val instanceof ValClass ? val : new ValClass(registry, val)); + } catch (error) { + l15.error("Failed to decode key or value:", error.message); + throw error; + } + }); + return [ValClass, output4, 0]; + } + function decodeSet3(registry, valType, value) { + const ValClass = (0, index_js_1.typeToConstructor)(registry, valType); + if (!value) { + return [ValClass, /* @__PURE__ */ new Set(), 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeSetFromU8a2(registry, ValClass, (0, util_1.u8aToU8a)(value)); + } else if (Array.isArray(value) || value instanceof Set) { + return decodeSetFromSet2(registry, ValClass, value); + } + throw new Error("BTreeSet: cannot decode type"); + } + var BTreeSet2 = class extends Set { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__ValClass; + constructor(registry, valType, rawValue) { + const [ValClass, values, decodedLength] = decodeSet3(registry, valType, rawValue); + super((0, index_js_1.sortSet)(values)); + this.registry = registry; + this.initialU8aLength = decodedLength; + this.__internal__ValClass = ValClass; + } + static with(valType) { + return class extends BTreeSet2 { + constructor(registry, value) { + super(registry, valType, value); + } + }; + } + get encodedLength() { + let len = (0, util_1.compactToU8a)(this.size).length; + for (const v of this.values()) { + len += v.encodedLength; + } + return len; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + get strings() { + return [...super.values()].map((v) => v.toString()); + } + eq(other) { + return (0, index_js_1.compareSet)(this, other); + } + inspect() { + const inner = []; + for (const v of this.values()) { + inner.push(v.inspect()); + } + return { + inner, + outer: [(0, util_1.compactToU8a)(this.size)] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = []; + for (const v of this.values()) { + json.push(v.toHuman(isExtended, disableAscii)); + } + return json; + } + toJSON() { + const json = []; + for (const v of this.values()) { + json.push(v.toJSON()); + } + return json; + } + toRawType() { + return `BTreeSet<${this.registry.getClassName(this.__internal__ValClass) || new this.__internal__ValClass(this.registry).toRawType()}>`; + } + toPrimitive(disableAscii) { + const json = []; + for (const v of this.values()) { + json.push(v.toPrimitive(disableAscii)); + } + return json; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + if (!isBare) { + encoded.push((0, util_1.compactToU8a)(this.size)); + } + for (const v of this.values()) { + encoded.push(v.toU8a(isBare)); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.BTreeSet = BTreeSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Bytes.js + var require_Bytes = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Bytes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Bytes = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var MAX_LENGTH4 = 10 * 1024 * 1024; + function decodeBytesU8a2(value) { + if (!value.length) { + return [new Uint8Array(), 0]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + length; + if (length > MAX_LENGTH4) { + throw new Error(`Bytes length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } else if (total > value.length) { + throw new Error(`Bytes: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [value.subarray(offset, total), total]; + } + var Bytes2 = class extends Raw_js_1.Raw { + constructor(registry, value) { + const [u8a, decodedLength] = (0, util_1.isU8a)(value) && !(value instanceof Raw_js_1.Raw) ? decodeBytesU8a2(value) : Array.isArray(value) || (0, util_1.isString)(value) ? [(0, util_1.u8aToU8a)(value), 0] : [value, 0]; + super(registry, u8a, decodedLength); + } + get encodedLength() { + return this.length + (0, util_1.compactToU8a)(this.length).length; + } + inspect(isBare) { + const clength = (0, util_1.compactToU8a)(this.length); + return { + outer: isBare ? [super.toU8a()] : this.length ? [clength, super.toU8a()] : [clength] + }; + } + toRawType() { + return "Bytes"; + } + toU8a(isBare) { + return isBare ? super.toU8a(isBare) : (0, util_1.compactAddLength)(this); + } + }; + exports2.Bytes = Bytes2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/HashMap.js + var require_HashMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/HashMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HashMap = void 0; + var Map_js_1 = require_Map(); + var HashMap2 = class extends Map_js_1.CodecMap { + static with(keyType, valType) { + return class extends HashMap2 { + constructor(registry, value) { + super(registry, keyType, valType, value); + } + }; + } + }; + exports2.HashMap = HashMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Linkage.js + var require_Linkage = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Linkage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LinkageResult = exports2.Linkage = void 0; + var Option_js_1 = require_Option(); + var Tuple_js_1 = require_Tuple(); + var Vec_js_1 = require_Vec(); + var Struct_js_1 = require_Struct(); + var EMPTY2 = new Uint8Array(); + var Linkage = class extends Struct_js_1.Struct { + constructor(registry, Type2, value) { + super(registry, { + previous: Option_js_1.Option.with(Type2), + next: Option_js_1.Option.with(Type2) + }, value); + } + static withKey(Type2) { + return class extends Linkage { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get previous() { + return this.get("previous"); + } + get next() { + return this.get("next"); + } + toRawType() { + return `Linkage<${this.next.toRawType(true)}>`; + } + toU8a(isBare) { + return this.isEmpty ? EMPTY2 : super.toU8a(isBare); + } + }; + exports2.Linkage = Linkage; + var LinkageResult = class extends Tuple_js_1.Tuple { + constructor(registry, [TypeKey, keys], [TypeValue, values]) { + super(registry, { + Keys: Vec_js_1.Vec.with(TypeKey), + Values: Vec_js_1.Vec.with(TypeValue) + }, [keys, values]); + } + }; + exports2.LinkageResult = LinkageResult; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Bool.js + var require_Bool = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Bool.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bool = void 0; + var util_1 = require_cjs3(); + var bool3 = class extends Boolean { + registry; + createdAtHash; + initialU8aLength = 1; + isStorageFallback; + constructor(registry, value = false) { + super((0, util_1.isU8a)(value) ? value[0] === 1 : value instanceof Boolean ? value.valueOf() : !!value); + this.registry = registry; + } + get encodedLength() { + return 1 | 0; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isFalse; + } + get isFalse() { + return !this.isTrue; + } + get isTrue() { + return this.valueOf(); + } + eq(other) { + return this.valueOf() === (other instanceof Boolean ? other.valueOf() : other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.valueOf(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return "bool"; + } + toString() { + return this.toJSON().toString(); + } + toU8a(_isBare) { + return new Uint8Array([this.valueOf() ? 1 : 0]); + } + }; + exports2.bool = bool3; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/OptionBool.js + var require_OptionBool = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/OptionBool.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OptionBool = void 0; + var util_1 = require_cjs3(); + var Option_js_1 = require_Option(); + var Bool_js_1 = require_Bool(); + function decodeU8a8(registry, value) { + return value[0] === 0 ? null : new Bool_js_1.bool(registry, value[0] === 1); + } + var OptionBool2 = class extends Option_js_1.Option { + constructor(registry, value) { + super(registry, Bool_js_1.bool, (0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : value); + this.initialU8aLength = 1; + } + get encodedLength() { + return 1 | 0; + } + get isFalse() { + return this.isSome ? !this.value.valueOf() : false; + } + get isTrue() { + return this.isSome ? this.value.valueOf() : false; + } + inspect() { + return { outer: [this.toU8a()] }; + } + toRawType(isBare) { + return isBare ? "bool" : "Option"; + } + toU8a(isBare) { + if (isBare) { + return super.toU8a(true); + } + return this.isSome ? new Uint8Array([this.isTrue ? 1 : 2]) : new Uint8Array([0]); + } + }; + exports2.OptionBool = OptionBool2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Range.js + var require_Range = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Range.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Range = void 0; + var Tuple_js_1 = require_Tuple(); + var Range2 = class extends Tuple_js_1.Tuple { + __internal__rangeName; + constructor(registry, Type2, value, { rangeName = "Range" } = {}) { + super(registry, [Type2, Type2], value); + this.__internal__rangeName = rangeName; + } + static with(Type2) { + return class extends Range2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get start() { + return this[0]; + } + get end() { + return this[1]; + } + toRawType() { + return `${this.__internal__rangeName}<${this.start.toRawType()}>`; + } + }; + exports2.Range = Range2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/RangeInclusive.js + var require_RangeInclusive = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/RangeInclusive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RangeInclusive = void 0; + var Range_js_1 = require_Range(); + var RangeInclusive2 = class extends Range_js_1.Range { + constructor(registry, Type2, value) { + super(registry, Type2, value, { rangeName: "RangeInclusive" }); + } + static with(Type2) { + return class extends RangeInclusive2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + }; + exports2.RangeInclusive = RangeInclusive2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Text.js + var require_Text = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Text.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Text = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var MAX_LENGTH4 = 128 * 1024; + function decodeText2(value) { + if ((0, util_1.isU8a)(value)) { + if (!value.length) { + return ["", 0]; + } + if (value instanceof Raw_js_1.Raw) { + return [(0, util_1.u8aToString)(value), 0]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + length; + if (length > MAX_LENGTH4) { + throw new Error(`Text: length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } else if (total > value.length) { + throw new Error(`Text: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [(0, util_1.u8aToString)(value.subarray(offset, total)), total]; + } else if ((0, util_1.isHex)(value)) { + return [(0, util_1.u8aToString)((0, util_1.hexToU8a)(value)), 0]; + } + return [value ? value.toString() : "", 0]; + } + var Text2 = class extends String { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__override = null; + constructor(registry, value) { + const [str2, decodedLength] = decodeText2(value); + super(str2); + this.registry = registry; + this.initialU8aLength = decodedLength; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.length === 0; + } + get length() { + return super.length; + } + eq(other) { + return (0, util_1.isString)(other) ? this.toString() === other.toString() : false; + } + inspect() { + const value = (0, util_1.stringToU8a)(super.toString()); + return { + outer: value.length ? [(0, util_1.compactToU8a)(value.length), value] : [(0, util_1.compactToU8a)(value.length)] + }; + } + setOverride(override) { + this.__internal__override = override; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a(true)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return "Text"; + } + toString() { + return this.__internal__override || super.toString(); + } + toU8a(isBare) { + const encoded = (0, util_1.stringToU8a)(super.toString()); + return isBare ? encoded : (0, util_1.compactAddLength)(encoded); + } + }; + exports2.Text = Text2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Type.js + var require_Type = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Type.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Type = void 0; + var Text_js_1 = require_Text(); + var index_js_1 = require_utils5(); + var Type2 = class extends Text_js_1.Text { + constructor(registry, value = "") { + super(registry, value); + this.setOverride((0, index_js_1.sanitize)(this.toString())); + } + toRawType() { + return "Type"; + } + }; + exports2.Type = Type2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/U8aFixed.js + var require_U8aFixed = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/U8aFixed.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.U8aFixed = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + function decodeU8aFixed2(value, bitLength) { + const u8a = (0, util_1.u8aToU8a)(value); + const byteLength = bitLength / 8; + if (!u8a.length) { + return [new Uint8Array(byteLength), 0]; + } + if ((0, util_1.isU8a)(value) ? u8a.length < byteLength : u8a.length !== byteLength) { + throw new Error(`Expected input with ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`); + } + return [u8a.subarray(0, byteLength), byteLength]; + } + var U8aFixed2 = class extends Raw_js_1.Raw { + constructor(registry, value = new Uint8Array(), bitLength = 256) { + const [u8a, decodedLength] = decodeU8aFixed2(value, bitLength); + super(registry, u8a, decodedLength); + } + static with(bitLength, typeName) { + return class extends U8aFixed2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + toRawType() { + return `[u8;${this.length}]`; + } + }; + exports2.U8aFixed = U8aFixed2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/WrapperKeepOpaque.js + var require_WrapperKeepOpaque = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/WrapperKeepOpaque.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperKeepOpaque = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var index_js_1 = require_utils5(); + var Bytes_js_1 = require_Bytes(); + function decodeRaw2(registry, typeName, value) { + const Type2 = (0, index_js_1.typeToConstructor)(registry, typeName); + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + try { + const [, u8a] = (0, util_1.isHex)(value) ? [0, (0, util_1.u8aToU8a)(value)] : value instanceof Raw_js_1.Raw ? [0, value.subarray()] : (0, util_1.compactStripLength)(value); + return [Type2, new Type2(registry, u8a), value]; + } catch { + return [Type2, null, value]; + } + } + const instance = new Type2(registry, value); + return [Type2, instance, (0, util_1.compactAddLength)(instance.toU8a())]; + } + var WrapperKeepOpaque2 = class extends Bytes_js_1.Bytes { + __internal__Type; + __internal__decoded; + __internal__opaqueName; + constructor(registry, typeName, value, { opaqueName = "WrapperKeepOpaque" } = {}) { + const [Type2, decoded, u8a] = decodeRaw2(registry, typeName, value); + super(registry, u8a); + this.__internal__Type = Type2; + this.__internal__decoded = decoded; + this.__internal__opaqueName = opaqueName; + } + static with(Type2) { + return class extends WrapperKeepOpaque2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get isDecoded() { + return !!this.__internal__decoded; + } + inspect() { + return this.__internal__decoded ? { + inner: [this.__internal__decoded.inspect()], + outer: [(0, util_1.compactToU8a)(this.length)] + } : { + outer: [(0, util_1.compactToU8a)(this.length), this.toU8a(true)] + }; + } + toHuman(isExtended, disableAscii) { + return this.__internal__decoded ? this.__internal__decoded.toHuman(isExtended, disableAscii) : super.toHuman(isExtended, disableAscii); + } + toPrimitive(disableAscii) { + return this.__internal__decoded ? this.__internal__decoded.toPrimitive(disableAscii) : super.toPrimitive(disableAscii); + } + toRawType() { + return `${this.__internal__opaqueName}<${this.registry.getClassName(this.__internal__Type) || (this.__internal__decoded ? this.__internal__decoded.toRawType() : new this.__internal__Type(this.registry).toRawType())}>`; + } + toString() { + return this.__internal__decoded ? this.__internal__decoded.toString() : super.toString(); + } + unwrap() { + if (!this.__internal__decoded) { + throw new Error(`${this.__internal__opaqueName}: unwrapping an undecodable value`); + } + return this.__internal__decoded; + } + }; + exports2.WrapperKeepOpaque = WrapperKeepOpaque2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/WrapperOpaque.js + var require_WrapperOpaque = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/WrapperOpaque.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = void 0; + var WrapperKeepOpaque_js_1 = require_WrapperKeepOpaque(); + var WrapperOpaque2 = class extends WrapperKeepOpaque_js_1.WrapperKeepOpaque { + constructor(registry, typeName, value) { + super(registry, typeName, value, { opaqueName: "WrapperOpaque" }); + } + static with(Type2) { + return class extends WrapperOpaque2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get inner() { + return this.unwrap(); + } + }; + exports2.WrapperOpaque = WrapperOpaque2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/index.js + var require_extended = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = exports2.WrapperKeepOpaque = exports2.U8aFixed = exports2.Type = exports2.RangeInclusive = exports2.Range = exports2.OptionBool = exports2.Map = exports2.CodecMap = exports2.Linkage = exports2.HashMap = exports2.Bytes = exports2.BTreeSet = exports2.BTreeMap = exports2.BitVec = void 0; + var BitVec_js_1 = require_BitVec(); + Object.defineProperty(exports2, "BitVec", { enumerable: true, get: function() { + return BitVec_js_1.BitVec; + } }); + var BTreeMap_js_1 = require_BTreeMap(); + Object.defineProperty(exports2, "BTreeMap", { enumerable: true, get: function() { + return BTreeMap_js_1.BTreeMap; + } }); + var BTreeSet_js_1 = require_BTreeSet(); + Object.defineProperty(exports2, "BTreeSet", { enumerable: true, get: function() { + return BTreeSet_js_1.BTreeSet; + } }); + var Bytes_js_1 = require_Bytes(); + Object.defineProperty(exports2, "Bytes", { enumerable: true, get: function() { + return Bytes_js_1.Bytes; + } }); + var HashMap_js_1 = require_HashMap(); + Object.defineProperty(exports2, "HashMap", { enumerable: true, get: function() { + return HashMap_js_1.HashMap; + } }); + var Linkage_js_1 = require_Linkage(); + Object.defineProperty(exports2, "Linkage", { enumerable: true, get: function() { + return Linkage_js_1.Linkage; + } }); + var Map_js_1 = require_Map(); + Object.defineProperty(exports2, "CodecMap", { enumerable: true, get: function() { + return Map_js_1.CodecMap; + } }); + Object.defineProperty(exports2, "Map", { enumerable: true, get: function() { + return Map_js_1.CodecMap; + } }); + var OptionBool_js_1 = require_OptionBool(); + Object.defineProperty(exports2, "OptionBool", { enumerable: true, get: function() { + return OptionBool_js_1.OptionBool; + } }); + var Range_js_1 = require_Range(); + Object.defineProperty(exports2, "Range", { enumerable: true, get: function() { + return Range_js_1.Range; + } }); + var RangeInclusive_js_1 = require_RangeInclusive(); + Object.defineProperty(exports2, "RangeInclusive", { enumerable: true, get: function() { + return RangeInclusive_js_1.RangeInclusive; + } }); + var Type_js_1 = require_Type(); + Object.defineProperty(exports2, "Type", { enumerable: true, get: function() { + return Type_js_1.Type; + } }); + var U8aFixed_js_1 = require_U8aFixed(); + Object.defineProperty(exports2, "U8aFixed", { enumerable: true, get: function() { + return U8aFixed_js_1.U8aFixed; + } }); + var WrapperKeepOpaque_js_1 = require_WrapperKeepOpaque(); + Object.defineProperty(exports2, "WrapperKeepOpaque", { enumerable: true, get: function() { + return WrapperKeepOpaque_js_1.WrapperKeepOpaque; + } }); + var WrapperOpaque_js_1 = require_WrapperOpaque(); + Object.defineProperty(exports2, "WrapperOpaque", { enumerable: true, get: function() { + return WrapperOpaque_js_1.WrapperOpaque; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Date.js + var require_Date = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Date.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecDate = void 0; + var util_1 = require_cjs3(); + var BITLENGTH = 64; + var U8A_OPTS = { bitLength: BITLENGTH, isLe: true }; + function decodeDate(value) { + if ((0, util_1.isU8a)(value)) { + value = (0, util_1.u8aToBn)(value.subarray(0, BITLENGTH / 8)); + } else if (value instanceof Date) { + return value; + } else if ((0, util_1.isString)(value)) { + value = new util_1.BN(value.toString(), 10, "le"); + } + return new Date((0, util_1.bnToBn)(value).toNumber() * 1e3); + } + var CodecDate = class extends Date { + registry; + createdAtHash; + initialU8aLength = BITLENGTH / 8; + isStorageFallback; + constructor(registry, value = 0) { + super(decodeDate(value)); + this.registry = registry; + } + get encodedLength() { + return BITLENGTH / 8; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.getTime() === 0; + } + bitLength() { + return BITLENGTH; + } + eq(other) { + return decodeDate(other).getTime() === this.getTime(); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toBigInt() { + return BigInt(this.toNumber()); + } + toBn() { + return new util_1.BN(this.toNumber()); + } + toHex(isLe = false) { + return (0, util_1.bnToHex)(this.toBn(), { + bitLength: BITLENGTH, + isLe, + isNegative: false + }); + } + toHuman() { + return this.toISOString(); + } + toJSON() { + return this.toNumber(); + } + toNumber() { + return Math.ceil(this.getTime() / 1e3); + } + toPrimitive() { + return this.toNumber(); + } + toRawType() { + return "Moment"; + } + toString() { + return super.toString(); + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this.toNumber(), U8A_OPTS); + } + }; + exports2.CodecDate = CodecDate; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Float.js + var require_Float = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Float.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Float = void 0; + var util_1 = require_cjs3(); + var Float2 = class extends Number { + encodedLength; + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__bitLength; + constructor(registry, value, { bitLength = 32 } = {}) { + super((0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? value.length === 0 ? 0 : (0, util_1.u8aToFloat)((0, util_1.u8aToU8a)(value), { bitLength }) : value || 0); + this.__internal__bitLength = bitLength; + this.encodedLength = bitLength / 8; + this.initialU8aLength = this.encodedLength; + this.registry = registry; + } + static with(bitLength) { + return class extends Float2 { + constructor(registry, value) { + super(registry, value, { bitLength }); + } + }; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.valueOf() === 0; + } + eq(other) { + return this.valueOf() === Number(other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toString(); + } + toJSON() { + return this.toHex(); + } + toNumber() { + return this.valueOf(); + } + toPrimitive() { + return this.toNumber(); + } + toRawType() { + return `f${this.__internal__bitLength}`; + } + toU8a(_isBare) { + return (0, util_1.floatToU8a)(this, { + bitLength: this.__internal__bitLength + }); + } + }; + exports2.Float = Float2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Json.js + var require_Json = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Json.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Json = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function decodeJson2(value) { + return Object.entries(value || {}); + } + var Json2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + constructor(registry, value) { + const decoded = decodeJson2(value); + super(decoded); + this.registry = registry; + (0, util_1.objectProperties)(this, decoded.map(([k]) => k), (k) => this.get(k)); + } + get encodedLength() { + return 0 | 0; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return [...this.keys()].length === 0; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + getT(key2) { + return this.get(key2); + } + inspect() { + throw new Error("Unimplemented"); + } + toHex() { + throw new Error("Unimplemented"); + } + toHuman() { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = (0, util_1.isFunction)(value?.toHuman) ? value.toHuman() : value; + return json; + }, {}); + } + toJSON() { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = value; + return json; + }, {}); + } + toPrimitive(disableAscii) { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = (0, util_1.isFunction)(value.toPrimitive) ? value.toPrimitive(disableAscii) : value; + return json; + }, {}); + } + toRawType() { + return "Json"; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(_isBare) { + throw new Error("Unimplemented"); + } + }; + exports2.Json = Json2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Set.js + var require_Set = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Set.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecSet = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function encodeSet2(setValues, values) { + const encoded = new util_1.BN(0); + for (let i = 0, count = values.length; i < count; i++) { + encoded.ior((0, util_1.bnToBn)(setValues[values[i]] || 0)); + } + return encoded; + } + function decodeSetArray2(setValues, values) { + const count = values.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = values[i]; + if ((0, util_1.isUndefined)(setValues[key2])) { + throw new Error(`Set: Invalid key '${key2}' passed to Set, allowed ${Object.keys(setValues).join(", ")}`); + } + result[i] = key2; + } + return result; + } + function decodeSetNumber2(setValues, _value) { + const bn2 = (0, util_1.bnToBn)(_value); + const keys = Object.keys(setValues); + const result = []; + for (let i = 0, count = keys.length; i < count; i++) { + const key2 = keys[i]; + if (bn2.and((0, util_1.bnToBn)(setValues[key2])).eq((0, util_1.bnToBn)(setValues[key2]))) { + result.push(key2); + } + } + const computed = encodeSet2(setValues, result); + if (!bn2.eq(computed)) { + throw new Error(`Set: Mismatch decoding '${bn2.toString()}', computed as '${computed.toString()}' with ${result.join(", ")}`); + } + return result; + } + function decodeSet3(setValues, value = 0, bitLength) { + if (bitLength % 8 !== 0) { + throw new Error(`Expected valid bitLength, power of 8, found ${bitLength}`); + } + const byteLength = bitLength / 8; + if ((0, util_1.isU8a)(value)) { + return value.length === 0 ? [] : decodeSetNumber2(setValues, (0, util_1.u8aToBn)(value.subarray(0, byteLength), { isLe: true })); + } else if ((0, util_1.isString)(value)) { + return decodeSet3(setValues, (0, util_1.u8aToU8a)(value), byteLength); + } else if (value instanceof Set || Array.isArray(value)) { + const input = Array.isArray(value) ? value : [...value.values()]; + return decodeSetArray2(setValues, input); + } + return decodeSetNumber2(setValues, value); + } + var CodecSet2 = class extends Set { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__allowed; + __internal__byteLength; + constructor(registry, setValues, value, bitLength = 8) { + super(decodeSet3(setValues, value, bitLength)); + this.registry = registry; + this.__internal__allowed = setValues; + this.__internal__byteLength = bitLength / 8; + } + static with(values, bitLength) { + return class extends CodecSet2 { + static { + const keys = Object.keys(values); + const count = keys.length; + const isKeys = new Array(count); + for (let i = 0; i < count; i++) { + isKeys[i] = `is${(0, util_1.stringPascalCase)(keys[i])}`; + } + (0, util_1.objectProperties)(this.prototype, isKeys, (_, i, self2) => self2.strings.includes(keys[i])); + } + constructor(registry, value) { + super(registry, values, value, bitLength); + } + }; + } + get encodedLength() { + return this.__internal__byteLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + get strings() { + return [...super.values()]; + } + get valueEncoded() { + return encodeSet2(this.__internal__allowed, this.strings); + } + add = (key2) => { + if (this.__internal__allowed && (0, util_1.isUndefined)(this.__internal__allowed[key2])) { + throw new Error(`Set: Invalid key '${key2}' on add`); + } + super.add(key2); + return this; + }; + eq(other) { + if (Array.isArray(other)) { + return (0, index_js_1.compareArray)(this.strings.sort(), other.sort()); + } else if (other instanceof Set) { + return this.eq([...other.values()]); + } else if ((0, util_1.isNumber)(other) || (0, util_1.isBn)(other)) { + return this.valueEncoded.eq((0, util_1.bnToBn)(other)); + } + return false; + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.strings; + } + toNumber() { + return this.valueEncoded.toNumber(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return (0, util_1.stringify)({ _set: this.__internal__allowed }); + } + toString() { + return `[${this.strings.join(", ")}]`; + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this.valueEncoded, { + bitLength: this.__internal__byteLength * 8, + isLe: true + }); + } + }; + exports2.CodecSet = CodecSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/index.js + var require_native = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Text = exports2.Struct = exports2.Set = exports2.CodecSet = exports2.Raw = exports2.Json = exports2.Float = exports2.Date = exports2.CodecDate = exports2.bool = exports2.Bool = void 0; + var Bool_js_1 = require_Bool(); + Object.defineProperty(exports2, "Bool", { enumerable: true, get: function() { + return Bool_js_1.bool; + } }); + Object.defineProperty(exports2, "bool", { enumerable: true, get: function() { + return Bool_js_1.bool; + } }); + var Date_js_1 = require_Date(); + Object.defineProperty(exports2, "CodecDate", { enumerable: true, get: function() { + return Date_js_1.CodecDate; + } }); + Object.defineProperty(exports2, "Date", { enumerable: true, get: function() { + return Date_js_1.CodecDate; + } }); + var Float_js_1 = require_Float(); + Object.defineProperty(exports2, "Float", { enumerable: true, get: function() { + return Float_js_1.Float; + } }); + var Json_js_1 = require_Json(); + Object.defineProperty(exports2, "Json", { enumerable: true, get: function() { + return Json_js_1.Json; + } }); + var Raw_js_1 = require_Raw(); + Object.defineProperty(exports2, "Raw", { enumerable: true, get: function() { + return Raw_js_1.Raw; + } }); + var Set_js_1 = require_Set(); + Object.defineProperty(exports2, "CodecSet", { enumerable: true, get: function() { + return Set_js_1.CodecSet; + } }); + Object.defineProperty(exports2, "Set", { enumerable: true, get: function() { + return Set_js_1.CodecSet; + } }); + var Struct_js_1 = require_Struct(); + Object.defineProperty(exports2, "Struct", { enumerable: true, get: function() { + return Struct_js_1.Struct; + } }); + var Text_js_1 = require_Text(); + Object.defineProperty(exports2, "Text", { enumerable: true, get: function() { + return Text_js_1.Text; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/F32.js + var require_F32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/F32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.f32 = void 0; + var Float_js_1 = require_Float(); + var f322 = class extends Float_js_1.Float.with(32) { + __FloatType = "f32"; + }; + exports2.f32 = f322; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/F64.js + var require_F64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/F64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.f64 = void 0; + var Float_js_1 = require_Float(); + var f642 = class extends Float_js_1.Float.with(64) { + __FloatType = "f64"; + }; + exports2.f64 = f642; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I8.js + var require_I8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I8.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i8 = void 0; + var Int_js_1 = require_Int2(); + var i83 = class extends Int_js_1.Int.with(8) { + __IntType = "i8"; + }; + exports2.i8 = i83; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I16.js + var require_I16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I16.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i16 = void 0; + var Int_js_1 = require_Int2(); + var i162 = class extends Int_js_1.Int.with(16) { + __IntType = "i16"; + }; + exports2.i16 = i162; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I32.js + var require_I32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i32 = void 0; + var Int_js_1 = require_Int2(); + var i322 = class extends Int_js_1.Int.with(32) { + __IntType = "i32"; + }; + exports2.i32 = i322; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I64.js + var require_I64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i64 = void 0; + var Int_js_1 = require_Int2(); + var i642 = class extends Int_js_1.Int.with(64) { + __IntType = "i64"; + }; + exports2.i64 = i642; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I128.js + var require_I128 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I128.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i128 = void 0; + var Int_js_1 = require_Int2(); + var i1282 = class extends Int_js_1.Int.with(128) { + __IntType = "i128"; + }; + exports2.i128 = i1282; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I256.js + var require_I256 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I256.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i256 = void 0; + var Int_js_1 = require_Int2(); + var i2562 = class extends Int_js_1.Int.with(256) { + __IntType = "i256"; + }; + exports2.i256 = i2562; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/ISize.js + var require_ISize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/ISize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isize = void 0; + var I32_js_1 = require_I32(); + var isize2 = class extends I32_js_1.i32 { + constructor(registry, value) { + super(registry, value); + throw new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly."); + } + }; + exports2.isize = isize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U8.js + var require_U8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U8.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u8 = void 0; + var UInt_js_1 = require_UInt(); + var u84 = class extends UInt_js_1.UInt.with(8) { + __UIntType = "u8"; + }; + exports2.u8 = u84; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U16.js + var require_U16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U16.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u16 = void 0; + var UInt_js_1 = require_UInt(); + var u163 = class extends UInt_js_1.UInt.with(16) { + __UIntType = "u16"; + }; + exports2.u16 = u163; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U32.js + var require_U32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u32 = void 0; + var UInt_js_1 = require_UInt(); + var u326 = class extends UInt_js_1.UInt.with(32) { + __UIntType = "u32"; + }; + exports2.u32 = u326; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U64.js + var require_U64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u64 = void 0; + var UInt_js_1 = require_UInt(); + var u645 = class extends UInt_js_1.UInt.with(64) { + __UIntType = "u64"; + }; + exports2.u64 = u645; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U128.js + var require_U128 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U128.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u128 = void 0; + var UInt_js_1 = require_UInt(); + var u1282 = class extends UInt_js_1.UInt.with(128) { + __UIntType = "u128"; + }; + exports2.u128 = u1282; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U256.js + var require_U256 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U256.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u256 = void 0; + var UInt_js_1 = require_UInt(); + var u2562 = class extends UInt_js_1.UInt.with(256) { + __UIntType = "u256"; + }; + exports2.u256 = u2562; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/USize.js + var require_USize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/USize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.usize = void 0; + var U32_js_1 = require_U32(); + var usize2 = class extends U32_js_1.u32 { + constructor(registry, value) { + super(registry, value); + throw new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly."); + } + }; + exports2.usize = usize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/index.js + var require_primitive = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.usize = exports2.USize = exports2.u256 = exports2.U256 = exports2.u128 = exports2.U128 = exports2.u64 = exports2.U64 = exports2.u32 = exports2.U32 = exports2.u16 = exports2.U16 = exports2.u8 = exports2.U8 = exports2.isize = exports2.ISize = exports2.i256 = exports2.I256 = exports2.i128 = exports2.I128 = exports2.i64 = exports2.I64 = exports2.i32 = exports2.I32 = exports2.i16 = exports2.I16 = exports2.i8 = exports2.I8 = exports2.f64 = exports2.F64 = exports2.f32 = exports2.F32 = void 0; + var F32_js_1 = require_F32(); + Object.defineProperty(exports2, "F32", { enumerable: true, get: function() { + return F32_js_1.f32; + } }); + Object.defineProperty(exports2, "f32", { enumerable: true, get: function() { + return F32_js_1.f32; + } }); + var F64_js_1 = require_F64(); + Object.defineProperty(exports2, "F64", { enumerable: true, get: function() { + return F64_js_1.f64; + } }); + Object.defineProperty(exports2, "f64", { enumerable: true, get: function() { + return F64_js_1.f64; + } }); + var I8_js_1 = require_I8(); + Object.defineProperty(exports2, "I8", { enumerable: true, get: function() { + return I8_js_1.i8; + } }); + Object.defineProperty(exports2, "i8", { enumerable: true, get: function() { + return I8_js_1.i8; + } }); + var I16_js_1 = require_I16(); + Object.defineProperty(exports2, "I16", { enumerable: true, get: function() { + return I16_js_1.i16; + } }); + Object.defineProperty(exports2, "i16", { enumerable: true, get: function() { + return I16_js_1.i16; + } }); + var I32_js_1 = require_I32(); + Object.defineProperty(exports2, "I32", { enumerable: true, get: function() { + return I32_js_1.i32; + } }); + Object.defineProperty(exports2, "i32", { enumerable: true, get: function() { + return I32_js_1.i32; + } }); + var I64_js_1 = require_I64(); + Object.defineProperty(exports2, "I64", { enumerable: true, get: function() { + return I64_js_1.i64; + } }); + Object.defineProperty(exports2, "i64", { enumerable: true, get: function() { + return I64_js_1.i64; + } }); + var I128_js_1 = require_I128(); + Object.defineProperty(exports2, "I128", { enumerable: true, get: function() { + return I128_js_1.i128; + } }); + Object.defineProperty(exports2, "i128", { enumerable: true, get: function() { + return I128_js_1.i128; + } }); + var I256_js_1 = require_I256(); + Object.defineProperty(exports2, "I256", { enumerable: true, get: function() { + return I256_js_1.i256; + } }); + Object.defineProperty(exports2, "i256", { enumerable: true, get: function() { + return I256_js_1.i256; + } }); + var ISize_js_1 = require_ISize(); + Object.defineProperty(exports2, "ISize", { enumerable: true, get: function() { + return ISize_js_1.isize; + } }); + Object.defineProperty(exports2, "isize", { enumerable: true, get: function() { + return ISize_js_1.isize; + } }); + var U8_js_1 = require_U8(); + Object.defineProperty(exports2, "U8", { enumerable: true, get: function() { + return U8_js_1.u8; + } }); + Object.defineProperty(exports2, "u8", { enumerable: true, get: function() { + return U8_js_1.u8; + } }); + var U16_js_1 = require_U16(); + Object.defineProperty(exports2, "U16", { enumerable: true, get: function() { + return U16_js_1.u16; + } }); + Object.defineProperty(exports2, "u16", { enumerable: true, get: function() { + return U16_js_1.u16; + } }); + var U32_js_1 = require_U32(); + Object.defineProperty(exports2, "U32", { enumerable: true, get: function() { + return U32_js_1.u32; + } }); + Object.defineProperty(exports2, "u32", { enumerable: true, get: function() { + return U32_js_1.u32; + } }); + var U64_js_1 = require_U64(); + Object.defineProperty(exports2, "U64", { enumerable: true, get: function() { + return U64_js_1.u64; + } }); + Object.defineProperty(exports2, "u64", { enumerable: true, get: function() { + return U64_js_1.u64; + } }); + var U128_js_1 = require_U128(); + Object.defineProperty(exports2, "U128", { enumerable: true, get: function() { + return U128_js_1.u128; + } }); + Object.defineProperty(exports2, "u128", { enumerable: true, get: function() { + return U128_js_1.u128; + } }); + var U256_js_1 = require_U256(); + Object.defineProperty(exports2, "U256", { enumerable: true, get: function() { + return U256_js_1.u256; + } }); + Object.defineProperty(exports2, "u256", { enumerable: true, get: function() { + return U256_js_1.u256; + } }); + var USize_js_1 = require_USize(); + Object.defineProperty(exports2, "USize", { enumerable: true, get: function() { + return USize_js_1.usize; + } }); + Object.defineProperty(exports2, "usize", { enumerable: true, get: function() { + return USize_js_1.usize; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/bundle.js + var require_bundle4 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var packageInfo_js_1 = require_packageInfo16(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_abstract(), exports2); + tslib_1.__exportStar(require_base(), exports2); + tslib_1.__exportStar(require_extended(), exports2); + tslib_1.__exportStar(require_native(), exports2); + tslib_1.__exportStar(require_primitive(), exports2); + tslib_1.__exportStar(require_utils5(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/index.js + var require_cjs8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect5(); + tslib_1.__exportStar(require_bundle4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/typeSplit.js + var require_typeSplit = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/typeSplit.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typeSplit = void 0; + function typeSplit2(type) { + const result = []; + let c = 0; + let f10 = 0; + let s = 0; + let t = 0; + let start = 0; + for (let i = 0, count = type.length; i < count; i++) { + switch (type[i]) { + case ",": { + if (!(c || f10 || s || t)) { + result.push(type.substring(start, i).trim()); + start = i + 1; + } + break; + } + case "<": + c++; + break; + case ">": + c--; + break; + case "[": + f10++; + break; + case "]": + f10--; + break; + case "{": + s++; + break; + case "}": + s--; + break; + case "(": + t++; + break; + case ")": + t--; + break; + } + } + if (c || f10 || s || t) { + throw new Error(`Invalid definition (missing terminators) found in ${type}`); + } + result.push(type.substring(start, type.length).trim()); + return result; + } + exports2.typeSplit = typeSplit2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/getTypeDef.js + var require_getTypeDef = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/getTypeDef.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getTypeDef = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var typeSplit_js_1 = require_typeSplit(); + var KNOWN_INTERNALS2 = ["_alias", "_fallback"]; + function getTypeString2(typeOrObj) { + return (0, util_1.isString)(typeOrObj) ? typeOrObj.toString() : (0, util_1.stringify)(typeOrObj); + } + function isRustEnum3(details) { + const values = Object.values(details); + if (values.some((v) => (0, util_1.isNumber)(v))) { + if (!values.every((v) => (0, util_1.isNumber)(v) && v >= 0 && v <= 255)) { + throw new Error("Invalid number-indexed enum definition"); + } + return false; + } + return true; + } + function _decodeEnum2(value, details, count, fallbackType) { + value.info = index_js_1.TypeDefInfo.Enum; + value.fallbackType = fallbackType; + if (Array.isArray(details)) { + value.sub = details.map((name6, index) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + } else if (isRustEnum3(details)) { + value.sub = Object.entries(details).map(([name6, typeOrObj], index) => (0, util_1.objectSpread)({}, getTypeDef2(getTypeString2(typeOrObj || "Null"), { name: name6 }, count), { index })); + } else { + value.sub = Object.entries(details).map(([name6, index]) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + } + return value; + } + function _decodeSet2(value, details, fallbackType) { + value.info = index_js_1.TypeDefInfo.Set; + value.fallbackType = fallbackType; + value.length = details._bitLength; + value.sub = Object.entries(details).filter(([name6]) => !name6.startsWith("_")).map(([name6, index]) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + return value; + } + function _decodeStruct2(value, type, _, count) { + const parsed = JSON.parse(type); + const keys = Object.keys(parsed); + if (parsed._enum) { + return _decodeEnum2(value, parsed._enum, count, parsed._fallback); + } else if (parsed._set) { + return _decodeSet2(value, parsed._set, parsed._fallback); + } + value.alias = parsed._alias ? new Map(Object.entries(parsed._alias)) : void 0; + value.fallbackType = parsed._fallback; + value.sub = keys.filter((name6) => !KNOWN_INTERNALS2.includes(name6)).map((name6) => getTypeDef2(getTypeString2(parsed[name6]), { name: name6 }, count)); + return value; + } + function _decodeFixedVec2(value, type, _, count) { + const max2 = type.length - 1; + let index = -1; + let inner = 0; + for (let i = 1; i < max2 && index === -1; i++) { + switch (type[i]) { + case ";": { + if (inner === 0) { + index = i; + } + break; + } + case "[": + case "(": + case "<": + inner++; + break; + case "]": + case ")": + case ">": + inner--; + break; + } + } + if (index === -1) { + throw new Error(`${type}: Unable to extract location of ';'`); + } + const vecType = type.substring(1, index); + const [strLength, displayName] = type.substring(index + 1, max2).split(";"); + const length = parseInt(strLength.trim(), 10); + if (length > 2048) { + throw new Error(`${type}: Only support for [Type; ], where length <= 2048`); + } + value.displayName = displayName; + value.length = length; + value.sub = getTypeDef2(vecType, {}, count); + return value; + } + function _decodeTuple2(value, _, subType, count) { + value.sub = subType.length === 0 ? [] : (0, typeSplit_js_1.typeSplit)(subType).map((inner) => getTypeDef2(inner, {}, count)); + return value; + } + function _decodeAnyInt2(value, type, _, clazz) { + const [strLength, displayName] = type.substring(clazz.length + 1, type.length - 1).split(","); + const length = parseInt(strLength.trim(), 10); + if (length > 8192 || length % 8) { + throw new Error(`${type}: Only support for ${clazz}, where length <= 8192 and a power of 8, found ${length}`); + } + value.displayName = displayName; + value.length = length; + return value; + } + function _decodeInt2(value, type, subType) { + return _decodeAnyInt2(value, type, subType, "Int"); + } + function _decodeUInt2(value, type, subType) { + return _decodeAnyInt2(value, type, subType, "UInt"); + } + function _decodeDoNotConstruct2(value, type, _) { + const NAME_LENGTH = "DoNotConstruct".length; + value.displayName = type.substring(NAME_LENGTH + 1, type.length - 1); + return value; + } + function hasWrapper2(type, [start, end]) { + return type.startsWith(start) && type.slice(-1 * end.length) === end; + } + var nestedExtraction2 = [ + ["[", "]", index_js_1.TypeDefInfo.VecFixed, _decodeFixedVec2], + ["{", "}", index_js_1.TypeDefInfo.Struct, _decodeStruct2], + ["(", ")", index_js_1.TypeDefInfo.Tuple, _decodeTuple2], + ["BTreeMap<", ">", index_js_1.TypeDefInfo.BTreeMap, _decodeTuple2], + ["HashMap<", ">", index_js_1.TypeDefInfo.HashMap, _decodeTuple2], + ["Int<", ">", index_js_1.TypeDefInfo.Int, _decodeInt2], + ["Result<", ">", index_js_1.TypeDefInfo.Result, _decodeTuple2], + ["UInt<", ">", index_js_1.TypeDefInfo.UInt, _decodeUInt2], + ["DoNotConstruct<", ">", index_js_1.TypeDefInfo.DoNotConstruct, _decodeDoNotConstruct2] + ]; + var wrappedExtraction2 = [ + ["BTreeSet<", ">", index_js_1.TypeDefInfo.BTreeSet], + ["Compact<", ">", index_js_1.TypeDefInfo.Compact], + ["Linkage<", ">", index_js_1.TypeDefInfo.Linkage], + ["Opaque<", ">", index_js_1.TypeDefInfo.WrapperOpaque], + ["Option<", ">", index_js_1.TypeDefInfo.Option], + ["Range<", ">", index_js_1.TypeDefInfo.Range], + ["RangeInclusive<", ">", index_js_1.TypeDefInfo.RangeInclusive], + ["Vec<", ">", index_js_1.TypeDefInfo.Vec], + ["WrapperKeepOpaque<", ">", index_js_1.TypeDefInfo.WrapperKeepOpaque], + ["WrapperOpaque<", ">", index_js_1.TypeDefInfo.WrapperOpaque] + ]; + function extractSubType2(type, [start, end]) { + return type.substring(start.length, type.length - end.length); + } + function getTypeDef2(_type, { displayName, name: name6 } = {}, count = 0) { + const type = (0, types_codec_1.sanitize)(_type); + const value = { displayName, info: index_js_1.TypeDefInfo.Plain, name: name6, type }; + if (++count > 64) { + throw new Error("getTypeDef: Maximum nested limit reached"); + } + const nested = nestedExtraction2.find((nested2) => hasWrapper2(type, nested2)); + if (nested) { + value.info = nested[2]; + return nested[3](value, type, extractSubType2(type, nested), count); + } + const wrapped = wrappedExtraction2.find((wrapped2) => hasWrapper2(type, wrapped2)); + if (wrapped) { + value.info = wrapped[2]; + value.sub = getTypeDef2(extractSubType2(type, wrapped), {}, count); + } + return value; + } + exports2.getTypeDef = getTypeDef2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/class.js + var require_class2 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/class.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClassUnsafe = exports2.getTypeClass = exports2.constructTypeClass = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var getTypeDef_js_1 = require_getTypeDef(); + function getTypeDefType2({ lookupName, type }) { + return lookupName || type; + } + function getSubDefArray2(value) { + if (!Array.isArray(value.sub)) { + throw new Error(`Expected subtype as TypeDef[] in ${(0, util_1.stringify)(value)}`); + } + return value.sub; + } + function getSubDef2(value) { + if (!value.sub || Array.isArray(value.sub)) { + throw new Error(`Expected subtype as TypeDef in ${(0, util_1.stringify)(value)}`); + } + return value.sub; + } + function getSubType2(value) { + return getTypeDefType2(getSubDef2(value)); + } + function getTypeClassMap2(value) { + const subs = getSubDefArray2(value); + const map2 = {}; + for (let i = 0, count = subs.length; i < count; i++) { + const sub = subs[i]; + if (!sub.name) { + throw new Error(`No name found in definition ${(0, util_1.stringify)(sub)}`); + } + map2[sub.name] = getTypeDefType2(sub); + } + return map2; + } + function getTypeClassArray2(value) { + return getSubDefArray2(value).map(getTypeDefType2); + } + function createInt2(Clazz, { displayName, length }) { + if (!(0, util_1.isNumber)(length)) { + throw new Error(`Expected bitLength information for ${displayName || Clazz.constructor.name}`); + } + return Clazz.with(length, displayName); + } + function createHashMap2(Clazz, value) { + const [keyType, valueType] = getTypeClassArray2(value); + return Clazz.with(keyType, valueType); + } + function createWithSub2(Clazz, value) { + return Clazz.with(getSubType2(value)); + } + var infoMapping2 = { + [index_js_1.TypeDefInfo.BTreeMap]: (_registry, value) => createHashMap2(types_codec_1.BTreeMap, value), + [index_js_1.TypeDefInfo.BTreeSet]: (_registry, value) => createWithSub2(types_codec_1.BTreeSet, value), + [index_js_1.TypeDefInfo.Compact]: (_registry, value) => createWithSub2(types_codec_1.Compact, value), + [index_js_1.TypeDefInfo.DoNotConstruct]: (_registry, value) => types_codec_1.DoNotConstruct.with(value.displayName || value.type), + [index_js_1.TypeDefInfo.Enum]: (_registry, value) => { + const subs = getSubDefArray2(value); + return types_codec_1.Enum.with(subs.every(({ type }) => type === "Null") ? subs.reduce((out, { index, name: name6 }, count) => { + if (!name6) { + throw new Error("No name found in sub definition"); + } + out[name6] = index || count; + return out; + }, {}) : getTypeClassMap2(value)); + }, + [index_js_1.TypeDefInfo.HashMap]: (_registry, value) => createHashMap2(types_codec_1.HashMap, value), + [index_js_1.TypeDefInfo.Int]: (_registry, value) => createInt2(types_codec_1.Int, value), + [index_js_1.TypeDefInfo.Linkage]: (_registry, value) => { + const type = `Option<${getSubType2(value)}>`; + const Clazz = types_codec_1.Struct.with({ previous: type, next: type }); + Clazz.prototype.toRawType = function() { + return `Linkage<${this.next.toRawType(true)}>`; + }; + return Clazz; + }, + [index_js_1.TypeDefInfo.Null]: (_registry, _value) => types_codec_1.Null, + [index_js_1.TypeDefInfo.Option]: (_registry, value) => { + if (!value.sub || Array.isArray(value.sub)) { + throw new Error("Expected type information for Option"); + } + return createWithSub2(types_codec_1.Option, value); + }, + [index_js_1.TypeDefInfo.Plain]: (registry, value) => registry.getOrUnknown(value.type), + [index_js_1.TypeDefInfo.Range]: (_registry, value) => createWithSub2(types_codec_1.Range, value), + [index_js_1.TypeDefInfo.RangeInclusive]: (_registry, value) => createWithSub2(types_codec_1.RangeInclusive, value), + [index_js_1.TypeDefInfo.Result]: (_registry, value) => { + const [Ok2, Err] = getTypeClassArray2(value); + return types_codec_1.Result.with({ Err, Ok: Ok2 }); + }, + [index_js_1.TypeDefInfo.Set]: (_registry, value) => types_codec_1.CodecSet.with(getSubDefArray2(value).reduce((result, { index, name: name6 }) => { + if (!name6 || !(0, util_1.isNumber)(index)) { + throw new Error("No name found in sub definition"); + } + result[name6] = index; + return result; + }, {}), value.length), + [index_js_1.TypeDefInfo.Si]: (registry, value) => getTypeClass2(registry, registry.lookup.getTypeDef(value.type)), + [index_js_1.TypeDefInfo.Struct]: (_registry, value) => types_codec_1.Struct.with(getTypeClassMap2(value), value.alias), + [index_js_1.TypeDefInfo.Tuple]: (_registry, value) => types_codec_1.Tuple.with(getTypeClassArray2(value)), + [index_js_1.TypeDefInfo.UInt]: (_registry, value) => createInt2(types_codec_1.UInt, value), + [index_js_1.TypeDefInfo.Vec]: (_registry, { sub }) => { + if (!sub || Array.isArray(sub)) { + throw new Error("Expected type information for vector"); + } + return sub.type === "u8" ? types_codec_1.Bytes : types_codec_1.Vec.with(getTypeDefType2(sub)); + }, + [index_js_1.TypeDefInfo.VecFixed]: (_registry, { displayName, length, sub }) => { + if (!(0, util_1.isNumber)(length) || !sub || Array.isArray(sub)) { + throw new Error("Expected length & type information for fixed vector"); + } + return sub.type === "u8" ? types_codec_1.U8aFixed.with(length * 8, displayName) : types_codec_1.VecFixed.with(getTypeDefType2(sub), length); + }, + [index_js_1.TypeDefInfo.WrapperKeepOpaque]: (_registry, value) => createWithSub2(types_codec_1.WrapperKeepOpaque, value), + [index_js_1.TypeDefInfo.WrapperOpaque]: (_registry, value) => createWithSub2(types_codec_1.WrapperOpaque, value) + }; + function constructTypeClass2(registry, typeDef) { + try { + const Type2 = infoMapping2[typeDef.info](registry, typeDef); + if (!Type2) { + throw new Error("No class created"); + } + if (!Type2.__fallbackType && typeDef.fallbackType) { + Type2.__fallbackType = typeDef.fallbackType; + } + return Type2; + } catch (error) { + throw new Error(`Unable to construct class from ${(0, util_1.stringify)(typeDef)}: ${error.message}`); + } + } + exports2.constructTypeClass = constructTypeClass2; + function getTypeClass2(registry, typeDef) { + return registry.getUnsafe(typeDef.type, false, typeDef); + } + exports2.getTypeClass = getTypeClass2; + function createClassUnsafe2(registry, type) { + return registry.getUnsafe(type) || getTypeClass2(registry, registry.isLookupType(type) ? registry.lookup.getTypeDef(type) : (0, getTypeDef_js_1.getTypeDef)(type)); + } + exports2.createClassUnsafe = createClassUnsafe2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/type.js + var require_type = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/type.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTypeUnsafe = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var class_js_1 = require_class2(); + function checkInstance2(created, matcher) { + const u8a = created.toU8a(); + const rawType = created.toRawType(); + const isOk = (0, util_1.u8aEq)(u8a, matcher) || ["Bytes", "Text", "Type"].includes(rawType) && matcher.length === created.length || created.isEmpty && matcher.every((v) => !v); + if (!isOk) { + throw new Error(`${rawType}:: Decoded input doesn't match input, received ${(0, util_1.u8aToHex)(matcher, 512)} (${matcher.length} bytes), created ${(0, util_1.u8aToHex)(u8a, 512)} (${u8a.length} bytes)`); + } + } + function checkPedantic2(created, [value]) { + if ((0, util_1.isU8a)(value)) { + checkInstance2(created, value); + } else if ((0, util_1.isHex)(value)) { + checkInstance2(created, (0, util_1.u8aToU8a)(value)); + } + } + function initType2(registry, Type2, params = [], { blockHash, isFallback, isOptional, isPedantic } = {}) { + const created = new (isOptional ? types_codec_1.Option.with(Type2) : Type2)(registry, ...params); + isPedantic && checkPedantic2(created, params); + if (blockHash) { + created.createdAtHash = createTypeUnsafe2(registry, "BlockHash", [blockHash]); + } + if (isFallback) { + created.isStorageFallback = true; + } + return created; + } + function createTypeUnsafe2(registry, type, params = [], options = {}) { + let Clazz = null; + let firstError = null; + try { + Clazz = (0, class_js_1.createClassUnsafe)(registry, type); + return initType2(registry, Clazz, params, options); + } catch (error) { + firstError = new Error(`createType(${type}):: ${error.message}`); + } + if (Clazz?.__fallbackType) { + try { + Clazz = (0, class_js_1.createClassUnsafe)(registry, Clazz.__fallbackType); + return initType2(registry, Clazz, params, options); + } catch { + } + } + throw firstError; + } + exports2.createTypeUnsafe = createTypeUnsafe2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/index.js + var require_create = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_class2(), exports2); + tslib_1.__exportStar(require_type(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/encodeTypes.js + var require_encodeTypes = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/encodeTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.withTypeString = exports2.encodeTypeDef = exports2.paramsNotation = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var stringIdentity2 = (value) => value.toString(); + var INFO_WRAP2 = ["BTreeMap", "BTreeSet", "Compact", "HashMap", "Option", "Result", "Vec"]; + function paramsNotation2(outer, inner, transform = stringIdentity2) { + return `${outer}${inner ? `<${(Array.isArray(inner) ? inner : [inner]).map(transform).join(", ")}>` : ""}`; + } + exports2.paramsNotation = paramsNotation2; + function encodeWithParams2(registry, typeDef, outer) { + const { info, sub } = typeDef; + switch (info) { + case index_js_1.TypeDefInfo.BTreeMap: + case index_js_1.TypeDefInfo.BTreeSet: + case index_js_1.TypeDefInfo.Compact: + case index_js_1.TypeDefInfo.HashMap: + case index_js_1.TypeDefInfo.Linkage: + case index_js_1.TypeDefInfo.Option: + case index_js_1.TypeDefInfo.Range: + case index_js_1.TypeDefInfo.RangeInclusive: + case index_js_1.TypeDefInfo.Result: + case index_js_1.TypeDefInfo.Vec: + case index_js_1.TypeDefInfo.WrapperKeepOpaque: + case index_js_1.TypeDefInfo.WrapperOpaque: + return paramsNotation2(outer, sub, (p) => encodeTypeDef2(registry, p)); + } + throw new Error(`Unable to encode ${(0, util_1.stringify)(typeDef)} with params`); + } + function encodeSubTypes2(registry, sub, asEnum, extra) { + const names2 = sub.map(({ name: name6 }) => name6); + if (!names2.every((n) => !!n)) { + throw new Error(`Subtypes does not have consistent names, ${names2.join(", ")}`); + } + const inner = (0, util_1.objectSpread)({}, extra); + for (let i = 0, count = sub.length; i < count; i++) { + const def = sub[i]; + if (!def.name) { + throw new Error(`No name found in ${(0, util_1.stringify)(def)}`); + } + inner[def.name] = encodeTypeDef2(registry, def); + } + return (0, util_1.stringify)(asEnum ? { _enum: inner } : inner); + } + var encoders2 = { + [index_js_1.TypeDefInfo.BTreeMap]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "BTreeMap"), + [index_js_1.TypeDefInfo.BTreeSet]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "BTreeSet"), + [index_js_1.TypeDefInfo.Compact]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Compact"), + [index_js_1.TypeDefInfo.DoNotConstruct]: (registry, { displayName, lookupIndex, lookupName }) => `DoNotConstruct<${lookupName || displayName || ((0, util_1.isUndefined)(lookupIndex) ? "Unknown" : registry.createLookupType(lookupIndex))}>`, + [index_js_1.TypeDefInfo.Enum]: (registry, { sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Enum type"); + } + return sub.every(({ type }) => type === "Null") ? (0, util_1.stringify)({ _enum: sub.map(({ name: name6 }, index) => `${name6 || `Empty${index}`}`) }) : encodeSubTypes2(registry, sub, true); + }, + [index_js_1.TypeDefInfo.HashMap]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "HashMap"), + [index_js_1.TypeDefInfo.Int]: (_registry, { length = 32 }) => `Int<${length}>`, + [index_js_1.TypeDefInfo.Linkage]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Linkage"), + [index_js_1.TypeDefInfo.Null]: (_registry, _typeDef) => "Null", + [index_js_1.TypeDefInfo.Option]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Option"), + [index_js_1.TypeDefInfo.Plain]: (_registry, { displayName, type }) => displayName || type, + [index_js_1.TypeDefInfo.Range]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Range"), + [index_js_1.TypeDefInfo.RangeInclusive]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "RangeInclusive"), + [index_js_1.TypeDefInfo.Result]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Result"), + [index_js_1.TypeDefInfo.Set]: (_registry, { length = 8, sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Set type"); + } + return (0, util_1.stringify)({ + _set: sub.reduce((all, { index, name: name6 }, count) => (0, util_1.objectSpread)(all, { [`${name6 || `Unknown${index || count}`}`]: index || count }), { _bitLength: length || 8 }) + }); + }, + [index_js_1.TypeDefInfo.Si]: (_registry, { lookupName, type }) => lookupName || type, + [index_js_1.TypeDefInfo.Struct]: (registry, { alias: alias2, sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Struct type"); + } + return encodeSubTypes2(registry, sub, false, alias2 ? { + _alias: [...alias2.entries()].reduce((all, [k, v]) => (0, util_1.objectSpread)(all, { [k]: v }), {}) + } : {}); + }, + [index_js_1.TypeDefInfo.Tuple]: (registry, { sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Tuple type"); + } + return `(${sub.map((type) => encodeTypeDef2(registry, type)).join(",")})`; + }, + [index_js_1.TypeDefInfo.UInt]: (_registry, { length = 32 }) => `UInt<${length}>`, + [index_js_1.TypeDefInfo.Vec]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Vec"), + [index_js_1.TypeDefInfo.VecFixed]: (_registry, { length, sub }) => { + if (!(0, util_1.isNumber)(length) || !sub || Array.isArray(sub)) { + throw new Error("Unable to encode VecFixed type"); + } + return `[${sub.type};${length}]`; + }, + [index_js_1.TypeDefInfo.WrapperKeepOpaque]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "WrapperKeepOpaque"), + [index_js_1.TypeDefInfo.WrapperOpaque]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "WrapperOpaque") + }; + function encodeType3(registry, typeDef, withLookup = true) { + return withLookup && typeDef.lookupName ? typeDef.lookupName : encoders2[typeDef.info](registry, typeDef); + } + function encodeTypeDef2(registry, typeDef) { + return typeDef.displayName && !INFO_WRAP2.some((i) => typeDef.displayName === i) ? typeDef.displayName : encodeType3(registry, typeDef); + } + exports2.encodeTypeDef = encodeTypeDef2; + function withTypeString2(registry, typeDef) { + return (0, util_1.objectSpread)({}, typeDef, { + type: encodeType3(registry, typeDef, false) + }); + } + exports2.withTypeString = withTypeString2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/xcm.js + var require_xcm = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/xcm.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapXcmTypes = exports2.XCM_MAPPINGS = void 0; + var util_1 = require_cjs3(); + exports2.XCM_MAPPINGS = ["AssetInstance", "Fungibility", "Junction", "Junctions", "MultiAsset", "MultiAssetFilter", "MultiLocation", "Response", "WildFungibility", "WildMultiAsset", "Xcm", "XcmError", "XcmOrder"]; + function mapXcmTypes2(version23) { + return exports2.XCM_MAPPINGS.reduce((all, key2) => (0, util_1.objectSpread)(all, { [key2]: `${key2}${version23}` }), {}); + } + exports2.mapXcmTypes = mapXcmTypes2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/index.js + var require_util3 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_encodeTypes(), exports2); + tslib_1.__exportStar(require_getTypeDef(), exports2); + tslib_1.__exportStar(require_typeSplit(), exports2); + tslib_1.__exportStar(require_xcm(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/exports.js + var require_exports = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/exports.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_create(), exports2); + tslib_1.__exportStar(require_util3(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/bundle.js + var require_bundle5 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeDefInfo = exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var packageInfo_js_1 = require_packageInfo17(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_types3(); + Object.defineProperty(exports2, "TypeDefInfo", { enumerable: true, get: function() { + return index_js_1.TypeDefInfo; + } }); + tslib_1.__exportStar(require_exports(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/index.js + var require_cjs9 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect4(); + tslib_1.__exportStar(require_bundle5(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v0.js + var require_v02 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v0.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v0 = void 0; + exports2.v0 = { + FungibilityV0: "FungibilityV1", + WildFungibilityV0: "WildFungibilityV1", + AssetInstanceV0: { + _enum: { + Undefined: "Null", + Index8: "u8", + Index16: "Compact", + Index32: "Compact", + Index64: "Compact", + Index128: "Compact", + Array4: "[u8; 4]", + Array8: "[u8; 8]", + Array16: "[u8; 16]", + Array32: "[u8; 32]", + Blob: "Vec" + } + }, + JunctionV0: { + _enum: { + Parent: "Null", + Parachain: "Compact", + AccountId32: { + network: "NetworkId", + id: "AccountId" + }, + AccountIndex64: { + network: "NetworkId", + index: "Compact" + }, + AccountKey20: { + network: "NetworkId", + key: "[u8; 20]" + }, + PalletInstance: "u8", + GeneralIndex: "Compact", + GeneralKey: "Vec", + OnlyChild: "Null", + Plurality: { + id: "BodyId", + part: "BodyPart" + } + } + }, + MultiAssetV0: { + _enum: { + None: "Null", + All: "Null", + AllFungible: "Null", + AllNonFungible: "Null", + AllAbstractFungible: "Vec", + AllAbstractNonFungible: "Vec", + AllConcreteFungible: "MultiLocationV0", + AllConcreteNonFungible: "MultiLocationV0", + AbstractFungible: { + id: "Vec", + instance: "Compact" + }, + AbstractNonFungible: { + class: "Vec", + instance: "AssetInstanceV0" + }, + ConcreteFungible: { + id: "MultiLocationV0", + amount: "Compact" + }, + ConcreteNonFungible: { + class: "MultiLocationV0", + instance: "AssetInstanceV0" + } + } + }, + MultiLocationV0: { + _enum: { + Here: "Null", + X1: "JunctionV0", + X2: "(JunctionV0, JunctionV0)", + X3: "(JunctionV0, JunctionV0, JunctionV0)", + X4: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X5: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X6: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X7: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X8: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)" + } + }, + OriginKindV0: { + _enum: ["Native", "SovereignAccount", "Superuser", "Xcm"] + }, + ResponseV0: { + _enum: { + Assets: "Vec" + } + }, + XcmV0: { + _enum: { + WithdrawAsset: { + assets: "Vec", + effects: "Vec" + }, + ReserveAssetDeposit: { + assets: "Vec", + effects: "Vec" + }, + ReceiveTeleportedAsset: { + assets: "Vec", + effects: "Vec" + }, + QueryResponse: { + queryId: "Compact", + response: "ResponseV0" + }, + TransferAsset: { + assets: "Vec", + dest: "MultiLocationV0" + }, + TransferReserveAsset: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + Transact: { + originType: "XcmOriginKind", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + RelayedFrom: { + who: "MultiLocationV0", + message: "XcmV0" + } + } + }, + XcmErrorV0: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + SendFailed: "Null", + CannotReachDestination: "(MultiLocation, Xcm)", + MultiLocationFull: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + RecursionLimitReached: "Null" + } + }, + XcmOrderV0: { + _enum: { + Null: "Null", + DepositAsset: { + assets: "Vec", + dest: "MultiLocationV0" + }, + DepositReserveAsset: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + ExchangeAsset: { + give: "Vec", + receive: "Vec" + }, + InitiateReserveWithdraw: { + assets: "Vec", + reserve: "MultiLocationV0", + effects: "Vec" + }, + InitiateTeleport: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + QueryHolding: { + queryId: "Compact", + dest: "MultiLocationV0", + assets: "Vec" + }, + BuyExecution: { + fees: "MultiAssetV0", + weight: "u64", + debt: "u64", + haltOnError: "bool", + xcm: "Vec" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v1.js + var require_v16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v1 = void 0; + exports2.v1 = { + AssetInstanceV1: { + _enum: { + Undefined: "Null", + Index: "Compact", + Array4: "[u8; 4]", + Array8: "[u8; 8]", + Array16: "[u8; 16]", + Array32: "[u8; 32]", + Blob: "Bytes" + } + }, + FungibilityV1: { + _enum: { + Fungible: "Compact", + NonFungible: "AssetInstanceV1" + } + }, + JunctionV1: { + _enum: { + Parachain: "Compact", + AccountId32: { + network: "NetworkId", + id: "AccountId" + }, + AccountIndex64: { + network: "NetworkId", + index: "Compact" + }, + AccountKey20: { + network: "NetworkId", + key: "[u8; 20]" + }, + PalletInstance: "u8", + GeneralIndex: "Compact", + GeneralKey: "Vec", + OnlyChild: "Null", + Plurality: { + id: "BodyId", + part: "BodyPart" + } + } + }, + JunctionsV1: { + _enum: { + Here: "Null", + X1: "JunctionV1", + X2: "(JunctionV1, JunctionV1)", + X3: "(JunctionV1, JunctionV1, JunctionV1)", + X4: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X5: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X6: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X7: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X8: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)" + } + }, + MultiAssetsV1: "Vec", + MultiAssetV1: { + id: "XcmAssetId", + fungibility: "FungibilityV1" + }, + MultiAssetFilterV1: { + _enum: { + Definite: "MultiAssetsV1", + Wild: "WildMultiAssetV1" + } + }, + MultiLocationV1: { + parents: "u8", + interior: "JunctionsV1" + }, + OriginKindV1: "OriginKindV0", + ResponseV1: { + _enum: { + Assets: "MultiAssetsV1" + } + }, + WildFungibilityV1: { + _enum: ["Fungible", "NonFungible"] + }, + WildMultiAssetV1: { + _enum: { + All: "Null", + AllOf: { + id: "XcmAssetId", + fungibility: "WildFungibilityV1" + } + } + }, + XcmV1: { + _enum: { + WithdrawAsset: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + ReserveAssetDeposit: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + ReceiveTeleportedAsset: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + QueryResponse: { + queryId: "Compact", + response: "ResponseV1" + }, + TransferAsset: { + assets: "MultiAssetsV1", + dest: "MultiLocationV1" + }, + TransferReserveAsset: { + assets: "MultiAssetsV1", + dest: "MultiLocationV1", + effects: "Vec" + }, + Transact: { + originType: "XcmOriginKind", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + RelayedFrom: { + who: "MultiLocationV1", + message: "XcmV1" + } + } + }, + XcmErrorV1: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + SendFailed: "Null", + CannotReachDestination: "(MultiLocationV1, XcmV1)", + MultiLocationFull: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + DestinationUnsupported: "Null", + RecursionLimitReached: "Null" + } + }, + XcmOrderV1: { + _enum: { + Noop: "Null", + DepositAsset: { + assets: "MultiAssetFilterV1", + maxAssets: "u32", + beneficiary: "MultiLocationV1" + }, + DepositReserveAsset: { + assets: "MultiAssetFilterV1", + maxAssets: "u32", + dest: "MultiLocationV1", + effects: "Vec" + }, + ExchangeAsset: { + give: "MultiAssetFilterV1", + receive: "MultiAssetsV1" + }, + InitiateReserveWithdraw: { + assets: "MultiAssetFilterV1", + reserve: "MultiLocationV1", + effects: "Vec" + }, + InitiateTeleport: { + assets: "MultiAssetFilterV1", + dest: "MultiLocationV1", + effects: "Vec" + }, + QueryHolding: { + queryId: "Compact", + dest: "MultiLocationV1", + assets: "MultiAssetFilterV1" + }, + BuyExecution: { + fees: "MultiAssetV1", + weight: "u64", + debt: "u64", + haltOnError: "bool", + instructions: "Vec" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v2.js + var require_v2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v2.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v2 = void 0; + exports2.v2 = { + AssetInstanceV2: "AssetInstanceV1", + FungibilityV2: "FungibilityV1", + JunctionV2: "JunctionV1", + JunctionsV2: "JunctionsV1", + MultiAssetsV2: "MultiAssetsV1", + MultiAssetV2: "MultiAssetV1", + MultiAssetFilterV2: "MultiAssetFilterV1", + MultiLocationV2: "MultiLocationV1", + OriginKindV2: "OriginKindV1", + WildFungibilityV2: "WildFungibilityV1", + ResponseV2: { + _enum: { + Null: "Null", + Assets: "MultiAssetsV2", + ExecutionResult: "ResponseV2Result" + } + }, + ResponseV2Error: "(u32, XcmErrorV2)", + ResponseV2Result: "Result", + WeightLimitV2: { + _enum: { + Unlimited: "Null", + Limited: "Compact" + } + }, + InstructionV2: { + _enum: { + WithdrawAsset: "MultiAssetsV2", + ReserveAssetDeposited: "MultiAssetsV2", + ReceiveTeleportedAsset: "MultiAssetsV2", + QueryResponse: { + queryId: "Compact", + response: "ResponseV2", + maxWeight: "Compact" + }, + TransferAsset: { + assets: "MultiAssetsV2", + beneficiary: "MultiLocationV2" + }, + TransferReserveAsset: { + assets: "MultiAssetsV2", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + Transact: { + originType: "OriginKindV2", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + ClearOrigin: "Null", + DescendOrigin: "InteriorMultiLocation", + ReportError: { + queryId: "Compact", + dest: "MultiLocationV2", + maxResponseWeight: "Compact" + }, + DepositAsset: { + assets: "MultiAssetFilterV2", + maxAssets: "u32", + beneficiary: "MultiLocationV2" + }, + DepositReserveAsset: { + assets: "MultiAssetFilterV2", + maxAssets: "u32", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + ExchangeAsset: { + give: "MultiAssetFilterV2", + receive: "MultiAssetsV2" + }, + InitiateReserveWithdraw: { + assets: "MultiAssetFilterV2", + reserve: "MultiLocationV2", + xcm: "XcmV2" + }, + InitiateTeleport: { + assets: "MultiAssetFilterV2", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + QueryHolding: { + query_id: "Compact", + dest: "MultiLocationV2", + assets: "MultiAssetFilterV2", + maxResponse_Weight: "Compact" + }, + BuyExecution: { + fees: "MultiAssetV2", + weightLimit: "WeightLimitV2" + }, + RefundSurplus: "Null", + SetErrorHandler: "XcmV2", + SetAppendix: "XcmV2", + ClearError: "Null", + ClaimAsset: { + assets: "MultiAssetsV2", + ticket: "MultiLocationV2" + }, + Trap: "u64" + } + }, + WildMultiAssetV2: "WildMultiAssetV1", + XcmV2: "Vec", + XcmErrorV2: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + MultiLocationFull: "Null", + MultiLocationNotInvertible: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + DestinationUnsupported: "Null", + RecursionLimitReached: "Null", + Transport: "Null", + Unroutable: "Null", + UnknownWeightRequired: "Null", + Trap: "u64", + UnknownClaim: "Null", + InvalidLocation: "Null" + } + }, + XcmOrderV2: "XcmOrderV1" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/definitions.js + var require_definitions62 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var types_create_1 = require_cjs9(); + var v0_js_1 = require_v02(); + var v1_js_1 = require_v16(); + var v2_js_1 = require_v2(); + var XCM_LATEST2 = "V2"; + var xcm2 = { + XcmOrigin: { + _enum: { + Xcm: "MultiLocation" + } + }, + XcmpMessageFormat: { + _enum: ["ConcatenatedVersionedXcm", "ConcatenatedEncodedBlob", "Signals"] + }, + XcmAssetId: { + _enum: { + Concrete: "MultiLocation", + Abstract: "Bytes" + } + }, + InboundStatus: { + _enum: ["Ok", "Suspended"] + }, + OutboundStatus: { + _enum: ["Ok", "Suspended"] + }, + MultiAssets: "Vec" + }; + var location2 = { + BodyId: { + _enum: { + Unit: "Null", + Named: "Vec", + Index: "Compact", + Executive: "Null", + Technical: "Null", + Legislative: "Null", + Judicial: "Null" + } + }, + BodyPart: { + _enum: { + Voice: "Null", + Members: "Compact", + Fraction: { + nom: "Compact", + denom: "Compact" + }, + AtLeastProportion: { + nom: "Compact", + denom: "Compact" + }, + MoreThanProportion: { + nom: "Compact", + denom: "Compact" + } + } + }, + InteriorMultiLocation: "Junctions", + NetworkId: { + _enum: { + Any: "Null", + Named: "Vec", + Polkadot: "Null", + Kusama: "Null" + } + } + }; + exports2.default = { + rpc: {}, + types: { + ...location2, + ...xcm2, + ...v0_js_1.v0, + ...v1_js_1.v1, + ...v2_js_1.v2, + ...(0, types_create_1.mapXcmTypes)(XCM_LATEST2), + DoubleEncodedCall: { + encoded: "Vec" + }, + XcmOriginKind: { + _enum: ["Native", "SovereignAccount", "Superuser", "Xcm"] + }, + Outcome: { + _enum: { + Complete: "Weight", + Incomplete: "(Weight, XcmErrorV0)", + Error: "XcmErrorV0" + } + }, + QueryId: "u64", + QueryStatus: { + _enum: { + Pending: { + responder: "VersionedMultiLocation", + maybeNotify: "Option<(u8, u8)>", + timeout: "BlockNumber" + }, + Ready: { + response: "VersionedResponse", + at: "BlockNumber" + } + } + }, + QueueConfigData: { + suspendThreshold: "u32", + dropThreshold: "u32", + resumeThreshold: "u32", + thresholdWeight: "Weight", + weightRestrictDecay: "Weight" + }, + VersionMigrationStage: { + _enum: { + MigrateSupportedVersion: "Null", + MigrateVersionNotifiers: "Null", + NotifyCurrentTargets: "Option", + MigrateAndNotifyOldTargets: "Null" + } + }, + VersionedMultiAsset: { + _enum: { + V0: "MultiAssetV0", + V1: "MultiAssetV1", + V2: "MultiAssetV2" + } + }, + VersionedMultiAssets: { + _enum: { + V0: "Vec", + V1: "MultiAssetsV1", + V2: "MultiAssetsV2" + } + }, + VersionedMultiLocation: { + _enum: { + V0: "MultiLocationV0", + V1: "MultiLocationV1", + V2: "MultiLocationV2" + } + }, + VersionedResponse: { + V0: "ResponseV0", + V1: "ResponseV1", + V2: "ResponseV2" + }, + VersionedXcm: { + _enum: { + V0: "XcmV0", + V1: "XcmV1", + V2: "XcmV2" + } + }, + XcmVersion: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contractsAbi/definitions.js + var require_definitions63 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contractsAbi/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var layout2 = { + ContractCryptoHasher: { + _enum: ["Blake2x256", "Sha2x256", "Keccak256"] + }, + ContractDiscriminant: "u32", + ContractLayoutArray: { + offset: "ContractLayoutKey", + len: "u32", + cellsPerElem: "u64", + layout: "ContractStorageLayout" + }, + ContractLayoutCell: { + key: "ContractLayoutKey", + ty: "SiLookupTypeId" + }, + ContractLayoutEnum: { + dispatchKey: "ContractLayoutKey", + variants: "BTreeMap" + }, + ContractLayoutHash: { + offset: "ContractLayoutKey", + strategy: "ContractLayoutHashingStrategy", + layout: "ContractStorageLayout" + }, + ContractLayoutHashingStrategy: { + hasher: "ContractCryptoHasher", + postfix: "Vec", + prefix: "Vec" + }, + ContractLayoutKey: "[u8; 32]", + ContractLayoutStruct: { + fields: "Vec" + }, + ContractLayoutStructField: { + layout: "ContractStorageLayout", + name: "Text" + }, + ContractStorageLayout: { + _enum: { + Cell: "ContractLayoutCell", + Hash: "ContractLayoutHash", + Array: "ContractLayoutArray", + Struct: "ContractLayoutStruct", + Enum: "ContractLayoutEnum" + } + } + }; + var spec2 = { + ContractConstructorSpecV0: { + name: "Text", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV1: { + name: "Vec", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV2: { + label: "Text", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV3: { + label: "Text", + selector: "ContractSelector", + payable: "bool", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV4: { + label: "Text", + selector: "ContractSelector", + payable: "bool", + args: "Vec", + docs: "Vec", + default: "bool", + returnType: "Option" + }, + ContractContractSpecV0: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV1: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV2: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV3: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV4: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec", + environment: "ContractEnvironmentV4" + }, + ContractContractSpecV5: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec", + environment: "ContractEnvironmentV4" + }, + ContractDisplayName: "SiPath", + ContractEventParamSpecV0: { + name: "Text", + indexed: "bool", + type: "ContractTypeSpec", + docs: "Vec" + }, + ContractEventParamSpecV2: { + label: "Text", + indexed: "bool", + type: "ContractTypeSpec", + docs: "Vec" + }, + ContractEventSpecV0: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV1: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV2: { + label: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV3: { + label: "Text", + args: "Vec", + docs: "Vec", + module_path: "Text", + signature_topic: "Option<[u8; 32]>" + }, + ContractMessageParamSpecV0: { + name: "Text", + type: "ContractTypeSpec" + }, + ContractMessageParamSpecV2: { + label: "Text", + type: "ContractTypeSpec" + }, + ContractMessageSpecV0: { + name: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV1: { + name: "Vec", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV2: { + label: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV3: { + label: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec", + default: "bool" + }, + ContractSelector: "[u8; 4]", + ContractTypeSpec: { + type: "SiLookupTypeId", + displayName: "ContractDisplayName" + } + }; + var latest2 = { + ContractConstructorSpecLatest: "ContractConstructorSpecV4", + ContractEventSpecLatest: "ContractEventSpecV3", + ContractEventParamSpecLatest: "ContractEventParamSpecV2", + ContractMessageParamSpecLatest: "ContractMessageParamSpecV2", + ContractMessageSpecLatest: "ContractMessageSpecV3", + ContractMetadataLatest: "ContractMetadataV5" + }; + exports2.default = { + rpc: {}, + types: { + ...layout2, + ...spec2, + ...latest2, + ContractProjectInfo: { + source: "ContractProjectSource", + contract: "ContractProjectContract" + }, + ContractMetadataV0: { + metadataVersion: "Text", + types: "Vec", + spec: "ContractContractSpecV0" + }, + ContractMetadataV1: { + types: "Vec", + spec: "ContractContractSpecV1" + }, + ContractMetadataV2: { + types: "Vec", + spec: "ContractContractSpecV2" + }, + ContractMetadataV3: { + types: "Vec", + spec: "ContractContractSpecV3" + }, + ContractMetadataV4: { + types: "Vec", + spec: "ContractContractSpecV4", + version: "Text" + }, + ContractMetadataV5: { + types: "Vec", + spec: "ContractContractSpecV5", + version: "u64" + }, + ContractMetadata: { + _enum: { + V0: "ContractMetadataV0", + V1: "ContractMetadataV1", + V2: "ContractMetadataV2", + V3: "ContractMetadataV3", + V4: "ContractMetadataV4", + V5: "ContractMetadataV5" + } + }, + ContractProjectV0: { + metadataVersion: "Text", + source: "ContractProjectSource", + contract: "ContractProjectContract", + types: "Vec", + spec: "ContractContractSpecV0" + }, + ContractProject: "(ContractProjectInfo, ContractMetadata)", + ContractProjectContract: { + _alias: { + docs: "documentation" + }, + name: "Text", + version: "Text", + authors: "Vec", + description: "Option", + docs: "Option", + repository: "Option", + homepage: "Option", + license: "Option" + }, + ContractProjectSource: { + _alias: { + wasmHash: "hash" + }, + wasmHash: "[u8; 32]", + language: "Text", + compiler: "Text", + wasm: "Raw" + }, + ContractEnvironmentV4: { + _alias: { + hashType: "hash" + }, + accountId: "Option", + balance: "Option", + blockNumber: "Option", + hashType: "Option", + timestamp: "Option", + maxEventTopics: "Option" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/rpc.js + var require_rpc10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + var netRpc2 = { + listening: { + aliasSection: "net", + description: "Returns true if client is actively listening for network connections. Otherwise false.", + params: [], + type: "bool" + }, + peerCount: { + aliasSection: "net", + description: "Returns number of peers connected to node.", + params: [], + type: "Text" + }, + version: { + aliasSection: "net", + description: "Returns protocol version.", + params: [], + type: "Text" + } + }; + var web3Rpc2 = { + clientVersion: { + aliasSection: "web3", + description: "Returns current client version.", + params: [], + type: "Text" + }, + sha3: { + aliasSection: "web3", + description: "Returns sha3 of the given data", + params: [{ name: "data", type: "Bytes" }], + type: "H256" + } + }; + exports2.rpc = { + ...netRpc2, + ...web3Rpc2, + accounts: { + description: "Returns accounts list.", + params: [], + type: "Vec" + }, + blockNumber: { + description: "Returns the blockNumber", + params: [], + type: "U256" + }, + call: { + description: "Call contract, returning the output data.", + params: [ + { + name: "request", + type: "EthCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "Bytes" + }, + chainId: { + description: "Returns the chain ID used for transaction signing at the current best block. None is returned if not available.", + params: [], + type: "U64" + }, + coinbase: { + description: "Returns block author.", + params: [], + type: "H160" + }, + estimateGas: { + description: "Estimate gas needed for execution of given contract.", + params: [ + { + name: "request", + type: "EthCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + feeHistory: { + description: "Returns fee history for given block count & reward percentiles", + params: [ + { + name: "blockCount", + type: "U256" + }, + { + name: "newestBlock", + type: "BlockNumber" + }, + { + name: "rewardPercentiles", + type: "Option>" + } + ], + type: "EthFeeHistory" + }, + gasPrice: { + description: "Returns current gas price.", + params: [], + type: "U256" + }, + getBalance: { + description: "Returns balance of the given account.", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getBlockByHash: { + description: "Returns block with given hash.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "full", + type: "bool" + } + ], + type: "Option" + }, + getBlockByNumber: { + description: "Returns block with given number.", + params: [ + { + name: "block", + type: "BlockNumber" + }, + { name: "full", type: "bool" } + ], + type: "Option" + }, + getBlockTransactionCountByHash: { + description: "Returns the number of transactions in a block with given hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "U256" + }, + getBlockTransactionCountByNumber: { + description: "Returns the number of transactions in a block with given block number.", + params: [ + { + name: "block", + type: "BlockNumber" + } + ], + type: "U256" + }, + getCode: { + description: "Returns the code at given address at given time (block number).", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "Bytes" + }, + getFilterChanges: { + description: "Returns filter changes since last poll.", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "EthFilterChanges" + }, + getFilterLogs: { + description: "Returns all logs matching given filter (in a range 'from' - 'to').", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "Vec" + }, + getLogs: { + description: "Returns logs matching given filter object.", + params: [ + { + name: "filter", + type: "EthFilter" + } + ], + type: "Vec" + }, + getProof: { + description: "Returns proof for account and storage.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "storageKeys", + type: "Vec" + }, + { + name: "number", + type: "BlockNumber" + } + ], + type: "EthAccount" + }, + getStorageAt: { + description: "Returns content of the storage at given address.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "index", + type: "U256" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "H256" + }, + getTransactionByBlockHashAndIndex: { + description: "Returns transaction at given block hash and index.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthTransaction" + }, + getTransactionByBlockNumberAndIndex: { + description: "Returns transaction by given block number and index.", + params: [ + { + name: "number", + type: "BlockNumber" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthTransaction" + }, + getTransactionByHash: { + description: "Get transaction by its hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "EthTransaction" + }, + getTransactionCount: { + description: "Returns the number of transactions sent from given address at given time (block number).", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getTransactionReceipt: { + description: "Returns transaction receipt by transaction hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "EthReceipt" + }, + getUncleByBlockHashAndIndex: { + description: "Returns an uncles at given block and index.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthRichBlock" + }, + getUncleByBlockNumberAndIndex: { + description: "Returns an uncles at given block and index.", + params: [ + { + name: "number", + type: "BlockNumber" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthRichBlock" + }, + getUncleCountByBlockHash: { + description: "Returns the number of uncles in a block with given hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "U256" + }, + getUncleCountByBlockNumber: { + description: "Returns the number of uncles in a block with given block number.", + params: [ + { + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getWork: { + description: "Returns the hash of the current block, the seedHash, and the boundary condition to be met.", + params: [], + type: "EthWork" + }, + hashrate: { + description: "Returns the number of hashes per second that the node is mining with.", + params: [], + type: "U256" + }, + maxPriorityFeePerGas: { + description: "Returns max priority fee per gas", + params: [], + type: "U256" + }, + mining: { + description: "Returns true if client is actively mining new blocks.", + params: [], + type: "bool" + }, + newBlockFilter: { + description: "Returns id of new block filter.", + params: [], + type: "U256" + }, + newFilter: { + description: "Returns id of new filter.", + params: [ + { + name: "filter", + type: "EthFilter" + } + ], + type: "U256" + }, + newPendingTransactionFilter: { + description: "Returns id of new block filter.", + params: [], + type: "U256" + }, + protocolVersion: { + description: "Returns protocol version encoded as a string (quotes are necessary).", + params: [], + type: "u64" + }, + sendRawTransaction: { + description: "Sends signed transaction, returning its hash.", + params: [ + { + name: "bytes", + type: "Bytes" + } + ], + type: "H256" + }, + sendTransaction: { + description: "Sends transaction; will block waiting for signer to return the transaction hash", + params: [ + { + name: "tx", + type: "EthTransactionRequest" + } + ], + type: "H256" + }, + submitHashrate: { + description: "Used for submitting mining hashrate.", + params: [ + { + name: "index", + type: "U256" + }, + { + name: "hash", + type: "H256" + } + ], + type: "bool" + }, + submitWork: { + description: "Used for submitting a proof-of-work solution.", + params: [ + { + name: "nonce", + type: "H64" + }, + { + name: "headerHash", + type: "H256" + }, + { + name: "mixDigest", + type: "H256" + } + ], + type: "bool" + }, + subscribe: { + description: "Subscribe to Eth subscription.", + params: [ + { name: "kind", type: "EthSubKind" }, + { + isOptional: true, + name: "params", + type: "EthSubParams" + } + ], + pubsub: [ + "subscription", + "subscribe", + "unsubscribe" + ], + type: "Null" + }, + syncing: { + description: "Returns an object with data about the sync status or false.", + params: [], + type: "EthSyncStatus" + }, + uninstallFilter: { + description: "Uninstalls filter.", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/runtime.js + var require_runtime28 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var ethMethodsV42 = { + account_basic: { + description: "Returns pallet_evm::Accounts by address.", + params: [ + { + name: "address", + type: "H160" + } + ], + type: "EvmAccount" + }, + account_code_at: { + description: "For a given account address, returns pallet_evm::AccountCodes.", + params: [ + { + name: "address", + type: "H160" + } + ], + type: "Bytes" + }, + author: { + description: "Returns the converted FindAuthor::find_author authority id.", + params: [], + type: "H160" + }, + call: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "to", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + chain_id: { + description: "Returns runtime defined pallet_evm::ChainId.", + params: [], + type: "u64" + }, + create: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + current_all: { + description: "Return all the current data for a block in a single runtime call.", + params: [], + type: "(Option, Option>, Option>)" + }, + current_block: { + description: "Return the current block.", + params: [], + type: "BlockV2" + }, + current_receipts: { + description: "Return the current receipt.", + params: [], + type: "Option>" + }, + current_transaction_statuses: { + description: "Return the current transaction status.", + params: [], + type: "Option>" + }, + elasticity: { + description: "Return the elasticity multiplier.", + params: [], + type: "Option" + }, + extrinsic_filter: { + description: "Receives a `Vec` and filters all the ethereum transactions.", + params: [ + { + name: "xts", + type: "Vec" + } + ], + type: "Vec" + }, + gas_price: { + description: "Returns FixedGasPrice::min_gas_price", + params: [], + type: "u256" + }, + storage_at: { + description: "For a given account address and index, returns pallet_evm::AccountStorages.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "index", + type: "u256" + } + ], + type: "H256" + } + }; + var ethMethodsV52 = { + call: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "to", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + create: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + } + }; + exports2.runtime = { + ConvertTransactionRuntimeApi: [ + { + methods: { + convert_transaction: { + description: "Converts an Ethereum-style transaction to Extrinsic", + params: [ + { + name: "transaction", + type: "TransactionV2" + } + ], + type: "Extrinsic" + } + }, + version: 2 + } + ], + DebugRuntimeApi: [ + { + methods: { + trace_block: { + description: "Trace all block extrinsics", + params: [ + { + name: "extrinsics", + type: "Vec" + }, + { + name: "knownTransactions", + type: "Vec" + } + ], + type: "Result<(), DispatchError>" + }, + trace_transaction: { + description: "Trace transaction extrinsics", + params: [ + { + name: "extrinsics", + type: "Vec" + }, + { + name: "transaction", + type: "EthTransaction" + } + ], + type: "Result<(), DispatchError>" + } + }, + version: 4 + } + ], + EthereumRuntimeRPCApi: [ + { + methods: { + ...ethMethodsV42 + }, + version: 4 + }, + { + methods: { + ...ethMethodsV42, + ...ethMethodsV52 + }, + version: 5 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/definitions.js + var require_definitions64 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc10(); + var runtime_js_1 = require_runtime28(); + var V02 = { + BlockV0: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + LegacyTransaction: { + nonce: "U256", + gasPrice: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + signature: "EthTransactionSignature" + }, + TransactionV0: "LegacyTransaction" + }; + var V13 = { + BlockV1: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EIP2930Transaction: { + chainId: "u64", + nonce: "U256", + gasPrice: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + accessList: "EthAccessList", + oddYParity: "bool", + r: "H256", + s: "H256" + }, + TransactionV1: { + _enum: { + Legacy: "LegacyTransaction", + EIP2930: "EIP2930Transaction" + } + } + }; + var V23 = { + BlockV2: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EIP1559Transaction: { + chainId: "u64", + nonce: "U256", + maxPriorityFeePerGas: "U256", + maxFeePerGas: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + accessList: "EthAccessList", + oddYParity: "bool", + r: "H256", + s: "H256" + }, + TransactionV2: { + _enum: { + Legacy: "LegacyTransaction", + EIP2930: "EIP2930Transaction", + EIP1559: "EIP1559Transaction" + } + } + }; + var types2 = { + ...V02, + ...V13, + ...V23, + EthereumAccountId: "GenericEthereumAccountId", + EthereumAddress: "GenericEthereumAccountId", + EthereumLookupSource: "GenericEthereumLookupSource", + EthereumSignature: "[u8; 65]", + EthAccessListItem: { + address: "EthAddress", + slots: "Vec" + }, + EthAccessList: "Vec", + EthAccount: { + address: "EthAddress", + balance: "U256", + nonce: "U256", + codeHash: "H256", + storageHash: "H256", + accountProof: "Vec", + storageProof: "Vec" + }, + EthAddress: "H160", + EthBlock: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EthHeader: { + parentHash: "H256", + ommersHash: "H256", + beneficiary: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + logsBloom: "EthBloom", + difficulty: "U256", + number: "U256", + gasLimit: "U256", + gasUsed: "U256", + timestamp: "u64", + extraData: "Bytes", + mixMash: "H256", + nonce: "H64" + }, + EthRichBlock: { + _alias: { + blockHash: "hash", + blockSize: "size" + }, + blockHash: "Option", + parentHash: "H256", + sha3Uncles: "H256", + author: "EthAddress", + miner: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + number: "Option", + gasUsed: "U256", + gasLimit: "U256", + extraData: "Bytes", + logsBloom: "EthBloom", + timestamp: "U256", + difficulty: "U256", + totalDifficulty: "Option", + sealFields: "Vec", + uncles: "Vec", + transactions: "Vec", + blockSize: "Option" + }, + EthBloom: "H2048", + EthCallRequest: { + from: "Option", + to: "Option", + gasPrice: "Option", + gas: "Option", + value: "Option", + data: "Option", + nonce: "Option" + }, + EthFeeHistory: { + oldestBlock: "U256", + baseFeePerGas: "Vec", + gasUsedRatio: "Vec", + reward: "Option>>" + }, + EthFilter: { + fromBlock: "Option", + toBlock: "Option", + blockHash: "Option", + address: "Option", + topics: "Option" + }, + EthFilterAddress: { + _enum: { + Single: "EthAddress", + Multiple: "Vec", + Null: "Null" + } + }, + EthFilterChanges: { + _enum: { + Logs: "Vec", + Hashes: "Vec", + Empty: "Null" + } + }, + EthFilterTopic: { + _enum: { + Single: "EthFilterTopicInner", + Multiple: "Vec", + Null: "Null" + } + }, + EthFilterTopicEntry: "Option", + EthFilterTopicInner: { + _enum: { + Single: "EthFilterTopicEntry", + Multiple: "Vec", + Null: "Null" + } + }, + EthRichHeader: { + _alias: { + blockHash: "hash", + blockSize: "size" + }, + blockHash: "Option", + parentHash: "H256", + sha3Uncles: "H256", + author: "EthAddress", + miner: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + number: "Option", + gasUsed: "U256", + gasLimit: "U256", + extraData: "Bytes", + logsBloom: "EthBloom", + timestamp: "U256", + difficulty: "U256", + sealFields: "Vec", + blockSize: "Option" + }, + EthLog: { + address: "EthAddress", + topics: "Vec", + data: "Bytes", + blockHash: "Option", + blockNumber: "Option", + transactionHash: "Option", + transactionIndex: "Option", + logIndex: "Option", + transactionLogIndex: "Option", + removed: "bool" + }, + EthReceipt: { + transactionHash: "Option", + transactionIndex: "Option", + blockHash: "Option", + from: "Option", + to: "Option", + blockNumber: "Option", + cumulativeGasUsed: "U256", + gasUsed: "Option", + contractAddress: "Option", + logs: "Vec", + root: "Option", + logsBloom: "EthBloom", + statusCode: "Option" + }, + EthReceiptV0: "EthReceipt", + EthReceiptV3: "EthReceipt", + EthStorageProof: { + key: "U256", + value: "U256", + proof: "Vec" + }, + EthSubKind: { + _enum: ["newHeads", "logs", "newPendingTransactions", "syncing"] + }, + EthSubParams: { + _enum: { + None: "Null", + Logs: "EthFilter" + } + }, + EthSubResult: { + _enum: { + Header: "EthRichHeader", + Log: "EthLog", + TransactionHash: "H256", + SyncState: "EthSyncStatus" + } + }, + EthSyncInfo: { + startingBlock: "U256", + currentBlock: "U256", + highestBlock: "U256", + warpChunksAmount: "Option", + warpChunksProcessed: "Option" + }, + EthSyncStatus: { + _enum: { + Info: "EthSyncInfo", + None: "Null" + } + }, + EthTransaction: { + hash: "H256", + nonce: "U256", + blockHash: "Option", + blockNumber: "Option", + transactionIndex: "Option", + from: "H160", + to: "Option", + value: "U256", + gasPrice: "Option", + maxFeePerGas: "Option", + maxPriorityFeePerGas: "Option", + gas: "U256", + input: "Bytes", + creates: "Option", + raw: "Bytes", + publicKey: "Option", + chainId: "Option", + standardV: "U256", + v: "U256", + r: "U256", + s: "U256", + accessList: "Option>", + transactionType: "Option" + }, + EthTransactionSignature: { + v: "u64", + r: "H256", + s: "H256" + }, + EthTransactionAction: { + _enum: { + Call: "H160", + Create: "Null" + } + }, + EthTransactionCondition: { + _enum: { + block: "u64", + time: "u64" + } + }, + EthTransactionRequest: { + from: "Option", + to: "Option", + gasPrice: "Option", + gas: "Option", + value: "Option", + data: "Option", + nonce: "Option" + }, + EthTransactionStatus: { + transactionHash: "H256", + transactionIndex: "u32", + from: "EthAddress", + to: "Option", + contractAddress: "Option", + logs: "Vec", + logsBloom: "EthBloom" + }, + EthWork: { + powHash: "H256", + seedHash: "H256", + target: "H256", + number: "Option" + } + }; + exports2.default = { rpc: rpc_js_1.rpc, runtime: runtime_js_1.runtime, types: types2 }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nimbus/runtime.js + var require_runtime29 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nimbus/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuthorFilterAPI: [ + { + methods: { + can_author: { + description: "The runtime api used to predict whether an author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + }, + { + name: "parentHeader", + type: "Header" + } + ], + type: "bool" + } + }, + version: 2 + }, + { + methods: { + can_author: { + description: "The runtime api used to predict whether an author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + } + ], + type: "bool" + } + }, + version: 1 + } + ], + NimbusApi: [ + { + methods: { + can_author: { + description: "The runtime api used to predict whether a Nimbus author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + }, + { + name: "parentHeader", + type: "Header" + } + ], + type: "bool" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nimbus/definitions.js + var require_definitions65 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nimbus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime29(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/runtime.js + var require_runtime30 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + OracleApi: [ + { + methods: { + get_all_values: { + description: "Retrieves all values", + params: [ + { + name: "providerId", + type: "Raw" + } + ], + type: "Raw" + }, + get_value: { + description: "Retrieves a single value", + params: [ + { + name: "providerId", + type: "Raw" + }, + { + name: "key", + type: "Raw" + } + ], + type: "Option" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/definitions.js + var require_definitions66 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime30(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/runtime.js + var require_runtime31 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + TokensApi: [ + { + methods: { + query_existential_deposit: { + description: "Query the existential amount for a specific currency", + params: [ + { + name: "currencyId", + type: "Raw" + } + ], + type: "u128" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/definitions.js + var require_definitions67 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime31(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/rpc/rpc.js + var require_rpc11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/rpc/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + methods: { + description: "Retrieves the list of RPC methods that are exposed by the node", + params: [], + type: "RpcMethods" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/rpc/definitions.js + var require_definitions68 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/rpc/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc11(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + RpcMethods: { + version: "u32", + methods: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/author/rpc.js + var require_rpc12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/author/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + hasKey: { + description: "Returns true if the keystore has private keys for the given public key and key type.", + isUnsafe: true, + params: [ + { + name: "publicKey", + type: "Bytes" + }, + { + name: "keyType", + type: "Text" + } + ], + type: "bool" + }, + hasSessionKeys: { + description: "Returns true if the keystore has private keys for the given session public keys.", + isUnsafe: true, + params: [ + { + name: "sessionKeys", + type: "Bytes" + } + ], + type: "bool" + }, + insertKey: { + description: "Insert a key into the keystore.", + isUnsafe: true, + params: [ + { + name: "keyType", + type: "Text" + }, + { + name: "suri", + type: "Text" + }, + { + name: "publicKey", + type: "Bytes" + } + ], + type: "Bytes" + }, + pendingExtrinsics: { + description: "Returns all pending extrinsics, potentially grouped by sender", + params: [], + type: "Vec" + }, + removeExtrinsic: { + description: "Remove given extrinsic from the pool and temporarily ban it to prevent reimporting", + isUnsafe: true, + params: [ + { + name: "bytesOrHash", + type: "Vec" + } + ], + type: "Vec" + }, + rotateKeys: { + description: "Generate new session keys and returns the corresponding public keys", + isUnsafe: true, + params: [], + type: "Bytes" + }, + submitAndWatchExtrinsic: { + description: "Submit and subscribe to watch an extrinsic until unsubscribed", + isSigned: true, + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + pubsub: [ + "extrinsicUpdate", + "submitAndWatchExtrinsic", + "unwatchExtrinsic" + ], + type: "ExtrinsicStatus" + }, + submitExtrinsic: { + description: "Submit a fully formatted extrinsic for block inclusion", + isSigned: true, + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "Hash" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/author/definitions.js + var require_definitions69 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/author/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc12(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + ExtrinsicOrHash: { + _enum: { + Hash: "Hash", + Extrinsic: "Bytes" + } + }, + ExtrinsicStatus: { + _enum: { + Future: "Null", + Ready: "Null", + Broadcast: "Vec", + InBlock: "Hash", + Retracted: "Hash", + FinalityTimeout: "Hash", + Finalized: "Hash", + Usurped: "Hash", + Dropped: "Null", + Invalid: "Null" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/chain/rpc.js + var require_rpc13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/chain/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getBlock: { + description: "Get header and body of a relay chain block", + params: [ + { + isHistoric: true, + isOptional: true, + name: "hash", + type: "BlockHash" + } + ], + type: "SignedBlock" + }, + getBlockHash: { + description: "Get the block hash for a specific block", + params: [ + { + isOptional: true, + name: "blockNumber", + type: "BlockNumber" + } + ], + type: "BlockHash" + }, + getFinalizedHead: { + alias: ["chain_getFinalisedHead"], + description: "Get hash of the last finalized block in the canon chain", + params: [], + type: "BlockHash" + }, + getHeader: { + alias: ["chain_getHead"], + description: "Retrieves the header for a specific block", + params: [ + { + isHistoric: true, + isOptional: true, + name: "hash", + type: "BlockHash" + } + ], + type: "Header" + }, + subscribeAllHeads: { + description: "Retrieves the newest header via subscription", + params: [], + pubsub: [ + "allHead", + "subscribeAllHeads", + "unsubscribeAllHeads" + ], + type: "Header" + }, + subscribeFinalizedHeads: { + alias: ["chain_subscribeFinalisedHeads", "chain_unsubscribeFinalisedHeads"], + description: "Retrieves the best finalized header via subscription", + params: [], + pubsub: [ + "finalizedHead", + "subscribeFinalizedHeads", + "unsubscribeFinalizedHeads" + ], + type: "Header" + }, + subscribeNewHeads: { + alias: ["chain_unsubscribeNewHeads", "subscribe_newHead", "unsubscribe_newHead"], + description: "Retrieves the best header via subscription", + params: [], + pubsub: [ + "newHead", + "subscribeNewHead", + "unsubscribeNewHead" + ], + type: "Header" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/chain/definitions.js + var require_definitions70 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/chain/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc13(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + BlockHash: "Hash" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/childstate/rpc.js + var require_rpc14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/childstate/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getKeys: { + description: "Returns the keys with prefix from a child storage, leave empty to get all the keys", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "prefix", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec" + }, + getKeysPaged: { + alias: ["childstate_getKeysPagedAt"], + description: "Returns the keys with prefix from a child storage with pagination support", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "prefix", + type: "StorageKey" + }, + { + name: "count", + type: "u32" + }, + { + isOptional: true, + name: "startKey", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec" + }, + getStorage: { + description: "Returns a child storage entry at a specific block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + }, + getStorageEntries: { + description: "Returns child storage entries for multiple keys at a specific block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec>" + }, + getStorageHash: { + description: "Returns the hash of a child storage entry at a block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + }, + getStorageSize: { + description: "Returns the size of a child storage entry at a block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/childstate/definitions.js + var require_definitions71 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/childstate/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc14(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + PrefixedStorageKey: "StorageKey" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/rpc.js + var require_rpc15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + localStorageGet: { + description: "Get offchain local storage under given key and prefix", + isUnsafe: true, + params: [ + { + name: "kind", + type: "StorageKind" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + localStorageSet: { + description: "Set offchain local storage under given key and prefix", + isUnsafe: true, + params: [ + { + name: "kind", + type: "StorageKind" + }, + { + name: "key", + type: "Bytes" + }, + { + name: "value", + type: "Bytes" + } + ], + type: "Null" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/runtime.js + var require_runtime32 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + OffchainWorkerApi: [ + { + methods: { + offchain_worker: { + description: "Starts the off-chain task for given block header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + } + }, + version: 2 + }, + { + methods: { + offchain_worker: { + description: "Starts the off-chain task for given block header.", + params: [ + { + name: "number", + type: "BlockNumber" + } + ], + type: "Null" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/definitions.js + var require_definitions72 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc15(); + var runtime_js_1 = require_runtime32(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + StorageKind: { + _enum: { + PERSISTENT: 1, + LOCAL: 2 + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/rpc.js + var require_rpc16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + queryFeeDetails: { + deprecated: "Use `api.call.transactionPaymentApi.queryFeeDetails` instead", + description: "Query the detailed fee of a given encoded extrinsic", + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "FeeDetails" + }, + queryInfo: { + deprecated: "Use `api.call.transactionPaymentApi.queryInfo` instead", + description: "Retrieves the fee information for an encoded extrinsic", + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "RuntimeDispatchInfoV1" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/runtime.js + var require_runtime33 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var V1_TO_V4_SHARED_PAY2 = { + query_fee_details: { + description: "The transaction fee details", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "FeeDetails" + } + }; + var V1_TO_V3_SHARED_CALL2 = { + query_call_fee_details: { + description: "The call fee details", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "FeeDetails" + } + }; + var V2_TO_V4_SHARED_PAY2 = { + query_info: { + description: "The transaction info", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + } + }; + var V2_V3_SHARED_CALL2 = { + query_call_info: { + description: "The call info", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + } + }; + var V3_SHARED_PAY_CALL2 = { + query_length_to_fee: { + description: "Query the output of the current LengthToFee given some input", + params: [ + { + name: "length", + type: "u32" + } + ], + type: "Balance" + }, + query_weight_to_fee: { + description: "Query the output of the current WeightToFee given some input", + params: [ + { + name: "weight", + type: "Weight" + } + ], + type: "Balance" + } + }; + exports2.runtime = { + TransactionPaymentApi: [ + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 4 + }, + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 3 + }, + { + methods: { + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 2 + }, + { + methods: { + query_info: { + description: "The transaction info", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + }, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 1 + } + ], + TransactionPaymentCallApi: [ + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_V3_SHARED_CALL2, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 3 + }, + { + methods: { + ...V2_V3_SHARED_CALL2, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 2 + }, + { + methods: { + CALL: { + description: "The call info", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + }, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/definitions.js + var require_definitions73 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc16(); + var runtime_js_1 = require_runtime33(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + FeeDetails: { + inclusionFee: "Option" + }, + InclusionFee: { + baseFee: "Balance", + lenFee: "Balance", + adjustedWeightFee: "Balance" + }, + RuntimeDispatchInfo: { + weight: "Weight", + class: "DispatchClass", + partialFee: "Balance" + }, + RuntimeDispatchInfoV1: { + weight: "WeightV1", + class: "DispatchClass", + partialFee: "Balance" + }, + RuntimeDispatchInfoV2: { + weight: "WeightV2", + class: "DispatchClass", + partialFee: "Balance" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/state/rpc.js + var require_rpc17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/state/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + call: { + alias: ["state_callAt"], + description: "Perform a call to a builtin on the chain", + params: [ + { + name: "method", + type: "Text" + }, + { + name: "data", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Bytes" + }, + getChildKeys: { + description: "Retrieves the keys with prefix of a specific child storage", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getChildReadProof: { + description: "Returns proof of storage for child key entries at a specific block state.", + params: [ + { + name: "childStorageKey", + type: "PrefixedStorageKey" + }, + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ReadProof" + }, + getChildStorage: { + description: "Retrieves the child storage for a key", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "StorageData" + }, + getChildStorageHash: { + description: "Retrieves the child storage hash", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Hash" + }, + getChildStorageSize: { + description: "Retrieves the child storage size", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "u64" + }, + getKeys: { + deprecated: "Use `api.rpc.state.getKeysPaged` to retrieve keys", + description: "Retrieves the keys with a certain prefix", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getKeysPaged: { + alias: ["state_getKeysPagedAt"], + description: "Returns the keys with prefix with pagination support.", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + name: "count", + type: "u32" + }, + { + isOptional: true, + name: "startKey", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getMetadata: { + description: "Returns the runtime metadata", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Metadata" + }, + getPairs: { + deprecated: "Use `api.rpc.state.getKeysPaged` to retrieve keys", + description: "Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)", + isUnsafe: true, + params: [ + { + name: "prefix", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getReadProof: { + description: "Returns proof of storage entries at a specific block state", + params: [ + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ReadProof" + }, + getRuntimeVersion: { + alias: ["chain_getRuntimeVersion"], + description: "Get the runtime version", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "RuntimeVersion" + }, + getStorage: { + alias: ["state_getStorageAt"], + description: "Retrieves the storage for a key", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "StorageData" + }, + getStorageHash: { + alias: ["state_getStorageHashAt"], + description: "Retrieves the storage hash", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Hash" + }, + getStorageSize: { + alias: ["state_getStorageSizeAt"], + description: "Retrieves the storage size", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "u64" + }, + queryStorage: { + description: "Query historical storage entries (by key) starting from a start block", + isUnsafe: true, + params: [ + { + name: "keys", + type: "Vec" + }, + { + name: "fromBlock", + type: "Hash" + }, + { + isOptional: true, + name: "toBlock", + type: "BlockHash" + } + ], + type: "Vec" + }, + queryStorageAt: { + description: "Query storage entries (by key) starting at block hash given as the second parameter", + params: [ + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + subscribeRuntimeVersion: { + alias: ["chain_subscribeRuntimeVersion", "chain_unsubscribeRuntimeVersion"], + description: "Retrieves the runtime version via subscription", + params: [], + pubsub: [ + "runtimeVersion", + "subscribeRuntimeVersion", + "unsubscribeRuntimeVersion" + ], + type: "RuntimeVersion" + }, + subscribeStorage: { + description: "Subscribes to storage changes for the provided keys", + params: [ + { + isOptional: true, + name: "keys", + type: "Vec" + } + ], + pubsub: [ + "storage", + "subscribeStorage", + "unsubscribeStorage" + ], + type: "StorageChangeSet" + }, + traceBlock: { + description: "Provides a way to trace the re-execution of a single block", + isUnsafe: true, + params: [ + { + name: "block", + type: "Hash" + }, + { + name: "targets", + type: "Option" + }, + { + name: "storageKeys", + type: "Option" + }, + { + name: "methods", + type: "Option" + } + ], + type: "TraceBlockResponse" + }, + trieMigrationStatus: { + description: "Check current migration state", + isUnsafe: true, + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MigrationStatusResult" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/state/definitions.js + var require_definitions74 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/state/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc17(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + ApiId: "[u8; 8]", + BlockTrace: { + blockHash: "Text", + parentHash: "Text", + tracingTargets: "Text", + storageKeys: "Text", + spans: "Vec", + events: "Vec" + }, + BlockTraceEvent: { + target: "Text", + data: "BlockTraceEventData", + parentId: "Option" + }, + BlockTraceEventData: { + stringValues: "HashMap" + }, + BlockTraceSpan: { + id: "u64", + parentId: "Option", + name: "Text", + target: "Text", + wasm: "bool" + }, + KeyValueOption: "(StorageKey, Option)", + MigrationStatusResult: { + topRemainingToMigrate: "u64", + childRemainingToMigrate: "u64" + }, + ReadProof: { + at: "Hash", + proof: "Vec" + }, + RuntimeVersionApi: "(ApiId, u32)", + RuntimeVersion: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec", + transactionVersion: "u32", + stateVersion: "u8" + }, + RuntimeVersionPre4: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec", + transactionVersion: "u32" + }, + RuntimeVersionPre3: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec" + }, + RuntimeVersionPartial: { + specName: "Text", + specVersion: "u32", + apis: "Vec" + }, + SpecVersion: "u32", + StorageChangeSet: { + block: "Hash", + changes: "Vec" + }, + TraceBlockResponse: { + _enum: { + TraceError: "TraceError", + BlockTrace: "BlockTrace" + } + }, + TraceError: { + error: "Text" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/definitions.js + var require_definitions75 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.attestations = exports2.vesting = exports2.utility = exports2.uniques = exports2.txqueue = exports2.txpayment = exports2.treasury = exports2.system = exports2.syncstate = exports2.support = exports2.statement = exports2.staking = exports2.society = exports2.session = exports2.scheduler = exports2.recovery = exports2.proxy = exports2.pow = exports2.offences = exports2.nompools = exports2.nfts = exports2.mmr = exports2.mixnet = exports2.lottery = exports2.imOnline = exports2.identity = exports2.grandpa = exports2.gilt = exports2.genesisBuilder = exports2.genericAsset = exports2.fungibles = exports2.extrinsics = exports2.evm = exports2.engine = exports2.elections = exports2.discovery = exports2.dev = exports2.democracy = exports2.contracts = exports2.consensus = exports2.collective = exports2.blockbuilder = exports2.benchmark = exports2.beefy = exports2.balances = exports2.babe = exports2.authorship = exports2.aura = exports2.assets = exports2.assetConversion = void 0; + exports2.state = exports2.payment = exports2.offchain = exports2.childstate = exports2.chain = exports2.author = exports2.rpc = exports2.ormlTokens = exports2.ormlOracle = exports2.nimbus = exports2.eth = exports2.contractsAbi = exports2.xcm = exports2.purchase = exports2.poll = exports2.parachains = exports2.finality = exports2.cumulus = exports2.crowdloan = exports2.claims = exports2.bridges = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_essentials(), exports2); + var definitions_js_1 = require_definitions4(); + Object.defineProperty(exports2, "assetConversion", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_1).default; + } }); + var definitions_js_2 = require_definitions5(); + Object.defineProperty(exports2, "assets", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_2).default; + } }); + var definitions_js_3 = require_definitions6(); + Object.defineProperty(exports2, "aura", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_3).default; + } }); + var definitions_js_4 = require_definitions7(); + Object.defineProperty(exports2, "authorship", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_4).default; + } }); + var definitions_js_5 = require_definitions8(); + Object.defineProperty(exports2, "babe", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_5).default; + } }); + var definitions_js_6 = require_definitions9(); + Object.defineProperty(exports2, "balances", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_6).default; + } }); + var definitions_js_7 = require_definitions10(); + Object.defineProperty(exports2, "beefy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_7).default; + } }); + var definitions_js_8 = require_definitions11(); + Object.defineProperty(exports2, "benchmark", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_8).default; + } }); + var definitions_js_9 = require_definitions12(); + Object.defineProperty(exports2, "blockbuilder", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_9).default; + } }); + var definitions_js_10 = require_definitions13(); + Object.defineProperty(exports2, "collective", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_10).default; + } }); + var definitions_js_11 = require_definitions14(); + Object.defineProperty(exports2, "consensus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_11).default; + } }); + var definitions_js_12 = require_definitions15(); + Object.defineProperty(exports2, "contracts", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_12).default; + } }); + var definitions_js_13 = require_definitions16(); + Object.defineProperty(exports2, "democracy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_13).default; + } }); + var definitions_js_14 = require_definitions17(); + Object.defineProperty(exports2, "dev", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_14).default; + } }); + var definitions_js_15 = require_definitions18(); + Object.defineProperty(exports2, "discovery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_15).default; + } }); + var definitions_js_16 = require_definitions19(); + Object.defineProperty(exports2, "elections", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_16).default; + } }); + var definitions_js_17 = require_definitions20(); + Object.defineProperty(exports2, "engine", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_17).default; + } }); + var definitions_js_18 = require_definitions21(); + Object.defineProperty(exports2, "evm", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_18).default; + } }); + var definitions_js_19 = require_definitions22(); + Object.defineProperty(exports2, "extrinsics", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_19).default; + } }); + var definitions_js_20 = require_definitions23(); + Object.defineProperty(exports2, "fungibles", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_20).default; + } }); + var definitions_js_21 = require_definitions24(); + Object.defineProperty(exports2, "genericAsset", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_21).default; + } }); + var definitions_js_22 = require_definitions25(); + Object.defineProperty(exports2, "genesisBuilder", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_22).default; + } }); + var definitions_js_23 = require_definitions26(); + Object.defineProperty(exports2, "gilt", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_23).default; + } }); + var definitions_js_24 = require_definitions27(); + Object.defineProperty(exports2, "grandpa", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_24).default; + } }); + var definitions_js_25 = require_definitions28(); + Object.defineProperty(exports2, "identity", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_25).default; + } }); + var definitions_js_26 = require_definitions29(); + Object.defineProperty(exports2, "imOnline", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_26).default; + } }); + var definitions_js_27 = require_definitions30(); + Object.defineProperty(exports2, "lottery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_27).default; + } }); + var definitions_js_28 = require_definitions31(); + Object.defineProperty(exports2, "mixnet", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_28).default; + } }); + var definitions_js_29 = require_definitions32(); + Object.defineProperty(exports2, "mmr", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_29).default; + } }); + var definitions_js_30 = require_definitions33(); + Object.defineProperty(exports2, "nfts", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_30).default; + } }); + var definitions_js_31 = require_definitions34(); + Object.defineProperty(exports2, "nompools", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_31).default; + } }); + var definitions_js_32 = require_definitions35(); + Object.defineProperty(exports2, "offences", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_32).default; + } }); + var definitions_js_33 = require_definitions36(); + Object.defineProperty(exports2, "pow", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_33).default; + } }); + var definitions_js_34 = require_definitions37(); + Object.defineProperty(exports2, "proxy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_34).default; + } }); + var definitions_js_35 = require_definitions38(); + Object.defineProperty(exports2, "recovery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_35).default; + } }); + var definitions_js_36 = require_definitions39(); + Object.defineProperty(exports2, "scheduler", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_36).default; + } }); + var definitions_js_37 = require_definitions40(); + Object.defineProperty(exports2, "session", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_37).default; + } }); + var definitions_js_38 = require_definitions41(); + Object.defineProperty(exports2, "society", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_38).default; + } }); + var definitions_js_39 = require_definitions42(); + Object.defineProperty(exports2, "staking", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_39).default; + } }); + var definitions_js_40 = require_definitions43(); + Object.defineProperty(exports2, "statement", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_40).default; + } }); + var definitions_js_41 = require_definitions44(); + Object.defineProperty(exports2, "support", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_41).default; + } }); + var definitions_js_42 = require_definitions45(); + Object.defineProperty(exports2, "syncstate", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_42).default; + } }); + var definitions_js_43 = require_definitions46(); + Object.defineProperty(exports2, "system", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_43).default; + } }); + var definitions_js_44 = require_definitions47(); + Object.defineProperty(exports2, "treasury", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_44).default; + } }); + var definitions_js_45 = require_definitions48(); + Object.defineProperty(exports2, "txpayment", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_45).default; + } }); + var definitions_js_46 = require_definitions49(); + Object.defineProperty(exports2, "txqueue", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_46).default; + } }); + var definitions_js_47 = require_definitions50(); + Object.defineProperty(exports2, "uniques", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_47).default; + } }); + var definitions_js_48 = require_definitions51(); + Object.defineProperty(exports2, "utility", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_48).default; + } }); + var definitions_js_49 = require_definitions52(); + Object.defineProperty(exports2, "vesting", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_49).default; + } }); + var definitions_js_50 = require_definitions53(); + Object.defineProperty(exports2, "attestations", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_50).default; + } }); + var definitions_js_51 = require_definitions54(); + Object.defineProperty(exports2, "bridges", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_51).default; + } }); + var definitions_js_52 = require_definitions55(); + Object.defineProperty(exports2, "claims", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_52).default; + } }); + var definitions_js_53 = require_definitions56(); + Object.defineProperty(exports2, "crowdloan", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_53).default; + } }); + var definitions_js_54 = require_definitions57(); + Object.defineProperty(exports2, "cumulus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_54).default; + } }); + var definitions_js_55 = require_definitions58(); + Object.defineProperty(exports2, "finality", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_55).default; + } }); + var definitions_js_56 = require_definitions59(); + Object.defineProperty(exports2, "parachains", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_56).default; + } }); + var definitions_js_57 = require_definitions60(); + Object.defineProperty(exports2, "poll", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_57).default; + } }); + var definitions_js_58 = require_definitions61(); + Object.defineProperty(exports2, "purchase", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_58).default; + } }); + var definitions_js_59 = require_definitions62(); + Object.defineProperty(exports2, "xcm", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_59).default; + } }); + var definitions_js_60 = require_definitions63(); + Object.defineProperty(exports2, "contractsAbi", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_60).default; + } }); + var definitions_js_61 = require_definitions64(); + Object.defineProperty(exports2, "eth", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_61).default; + } }); + var definitions_js_62 = require_definitions65(); + Object.defineProperty(exports2, "nimbus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_62).default; + } }); + var definitions_js_63 = require_definitions66(); + Object.defineProperty(exports2, "ormlOracle", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_63).default; + } }); + var definitions_js_64 = require_definitions67(); + Object.defineProperty(exports2, "ormlTokens", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_64).default; + } }); + var definitions_js_65 = require_definitions68(); + Object.defineProperty(exports2, "rpc", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_65).default; + } }); + var definitions_js_66 = require_definitions69(); + Object.defineProperty(exports2, "author", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_66).default; + } }); + var definitions_js_67 = require_definitions70(); + Object.defineProperty(exports2, "chain", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_67).default; + } }); + var definitions_js_68 = require_definitions71(); + Object.defineProperty(exports2, "childstate", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_68).default; + } }); + var definitions_js_69 = require_definitions72(); + Object.defineProperty(exports2, "offchain", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_69).default; + } }); + var definitions_js_70 = require_definitions73(); + Object.defineProperty(exports2, "payment", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_70).default; + } }); + var definitions_js_71 = require_definitions74(); + Object.defineProperty(exports2, "state", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_71).default; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/jsonrpc.js + var require_jsonrpc = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var defs = tslib_1.__importStar(require_definitions75()); + var jsonrpc = {}; + Object.keys(defs).forEach((s) => Object.entries(defs[s].rpc || {}).forEach(([method, def]) => { + const section = def.aliasSection || s; + if (!jsonrpc[section]) { + jsonrpc[section] = {}; + } + jsonrpc[section][method] = (0, util_1.objectSpread)({}, def, { + isSubscription: !!def.pubsub, + jsonrpc: `${section}_${method}`, + method, + section + }); + })); + exports2.default = jsonrpc; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/PortableRegistry.js + var require_PortableRegistry = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/PortableRegistry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PortableRegistry = void 0; + var types_codec_1 = require_cjs8(); + var types_create_1 = require_cjs9(); + var util_1 = require_cjs3(); + var l15 = (0, util_1.logger)("PortableRegistry"); + var TYPE_UNWRAP2 = { toNumber: () => -1 }; + var PRIMITIVE_ALIAS2 = { + Char: "u32", + Str: "Text" + }; + var PATHS_ALIAS2 = splitNamespace2([ + "sp_core::crypto::AccountId32", + "sp_runtime::generic::era::Era", + "sp_runtime::multiaddress::MultiAddress", + "fp_account::AccountId20", + "account::AccountId20", + "polkadot_runtime_common::claims::EthereumAddress", + "frame_support::weights::weight_v2::Weight", + "sp_weights::weight_v2::Weight", + "*_democracy::vote::Vote", + "*_conviction_voting::vote::Vote", + "*_identity::types::Data", + "sp_core::OpaqueMetadata", + "sp_core::OpaquePeerId", + "sp_core::offchain::OpaqueMultiaddr", + "primitive_types::*", + "sp_arithmetic::per_things::*", + "*_runtime::RuntimeCall", + "*_runtime::RuntimeEvent", + "ink::env::types::*", + "ink::primitives::types::*", + "ink_env::types::*", + "ink_primitives::types::*", + "np_runtime::accountname::AccountName", + "np_runtime::universaladdress::UniversalAddress" + ]); + var PATHS_SET2 = splitNamespace2([ + "pallet_identity::types::BitFlags" + ]); + var BITVEC_NS_LSB2 = ["bitvec::order::Lsb0", "BitOrderLsb0"]; + var BITVEC_NS_MSB2 = ["bitvec::order::Msb0", "BitOrderMsb0"]; + var BITVEC_NS2 = [...BITVEC_NS_LSB2, ...BITVEC_NS_MSB2]; + var WRAPPERS2 = ["BoundedBTreeMap", "BoundedBTreeSet", "BoundedVec", "Box", "BTreeMap", "BTreeSet", "Cow", "Option", "Range", "RangeInclusive", "Result", "WeakBoundedVec", "WrapperKeepOpaque", "WrapperOpaque"]; + var RESERVED2 = [ + "entries", + "keys", + "new", + "size", + "hash", + "registry" + ]; + var PATH_RM_INDEX_12 = ["generic", "misc", "pallet", "traits", "types"]; + function sanitizeDocs2(docs) { + const count = docs.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = docs[i].toString(); + } + return result; + } + function splitNamespace2(values) { + const count = values.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = values[i].split("::"); + } + return result; + } + function matchParts2(first, second) { + return first.length === second.length && first.every((a, index) => { + const b = second[index].toString(); + if (a === "*" || a === b) { + return true; + } + if (a.includes("*") && a.includes("_") && b.includes("_")) { + let suba = a.split("_"); + let subb = b.split("_"); + if (suba[0] === "*") { + const indexOf = subb.indexOf(suba[1]); + if (indexOf !== -1) { + suba = suba.slice(1); + subb = subb.slice(indexOf); + } + } + if (suba.length === 2 && suba[1] === "*" && suba[0] === subb[0]) { + return true; + } + return matchParts2(suba, subb); + } + return false; + }); + } + function getAliasPath2({ def, path }) { + if (["frame_support::weights::weight_v2::Weight", "sp_weights::weight_v2::Weight"].includes(path.join("::"))) { + return !def.isComposite || def.asComposite.fields.length === 1 ? "WeightV1" : null; + } + return path.length && PATHS_ALIAS2.some((a) => matchParts2(a, path)) ? path[path.length - 1].toString() : null; + } + function extractNameFlat2(portable, lookupIndex, params, path, isInternal = false) { + const count = path.length; + if (count === 0 || WRAPPERS2.includes(path[count - 1].toString())) { + return null; + } + const camels = new Array(count); + const lowers = new Array(count); + for (let i = 0; i < count; i++) { + const c = (0, util_1.stringPascalCase)(isInternal ? path[i].replace("pallet_", "") : path[i]); + const l16 = c.toLowerCase(); + camels[i] = c; + lowers[i] = l16; + } + let name6 = ""; + for (let i = 0; i < count; i++) { + const l16 = lowers[i]; + if (i !== 1 || !PATH_RM_INDEX_12.includes(l16)) { + if (l16 !== lowers[i + 1]) { + name6 += camels[i]; + } + } + } + if (camels[1] === "RawOrigin" && count === 2 && params.length === 2 && params[1].type.isSome) { + const instanceType = portable[params[1].type.unwrap().toNumber()]; + if (instanceType.type.path.length === 2) { + name6 = `${name6}${instanceType.type.path[1].toString()}`; + } + } + return { lookupIndex, name: name6, params }; + } + function extractName2(portable, lookupIndex, { type: { params, path } }) { + return extractNameFlat2(portable, lookupIndex, params, path); + } + function nextDupeMatches2(name6, startAt, names2) { + const result = [names2[startAt]]; + for (let i = startAt + 1, count = names2.length; i < count; i++) { + const v = names2[i]; + if (v.name === name6) { + result.push(v); + } + } + return result; + } + function rewriteDupes2(input, rewrite) { + const count = input.length; + for (let i = 0; i < count; i++) { + const a = input[i]; + for (let j10 = i + 1; j10 < count; j10++) { + const b = input[j10]; + if (a.lookupIndex !== b.lookupIndex && a.name === b.name) { + return false; + } + } + } + for (let i = 0; i < count; i++) { + const p = input[i]; + rewrite[p.lookupIndex] = p.name; + } + return true; + } + function removeDupeNames2(lookup, portable, names2) { + const rewrite = {}; + return names2.map((original, startAt) => { + const { lookupIndex, name: name6, params } = original; + if (!name6) { + return null; + } else if (rewrite[lookupIndex]) { + return original; + } + const allSame = nextDupeMatches2(name6, startAt, names2); + if (allSame.length === 1) { + return original; + } + const anyDiff = allSame.some((o) => params.length !== o.params.length || params.some((p, index) => !p.name.eq(o.params[index].name) || p.type.unwrapOr(TYPE_UNWRAP2).toNumber() !== o.params[index].type.unwrapOr(TYPE_UNWRAP2).toNumber())); + if (!anyDiff) { + return original; + } + const paramIdx = params.findIndex(({ type }, index) => allSame.every(({ params: params2 }, aIndex) => params2[index].type.isSome && (aIndex === 0 || !params2[index].type.eq(type)))); + if (paramIdx === -1) { + return original; + } + const sameCount = allSame.length; + const adjusted = new Array(sameCount); + for (let i = 0; i < sameCount; i++) { + const { lookupIndex: lookupIndex2, name: name7, params: params2 } = allSame[i]; + const { def, path } = lookup.getSiType(params2[paramIdx].type.unwrap()); + if (!def.isPrimitive && !path.length) { + return null; + } + adjusted[i] = { + lookupIndex: lookupIndex2, + name: def.isPrimitive ? `${name7}${def.asPrimitive.toString()}` : `${name7}${path[path.length - 1].toString()}` + }; + } + if (rewriteDupes2(adjusted, rewrite)) { + return original; + } + for (let i = 0; i < sameCount; i++) { + const { lookupIndex: lookupIndex2, name: name7, params: params2 } = allSame[i]; + const { def, path } = lookup.getSiType(params2[paramIdx].type.unwrap()); + const flat2 = extractNameFlat2(portable, lookupIndex2, params2, path, true); + if (def.isPrimitive || !flat2) { + return null; + } + adjusted[i] = { + lookupIndex: lookupIndex2, + name: `${name7}${flat2.name}` + }; + } + if (rewriteDupes2(adjusted, rewrite)) { + return original; + } + return null; + }).filter((n) => !!n).map(({ lookupIndex, name: name6, params }) => ({ + lookupIndex, + name: rewrite[lookupIndex] || name6, + params + })); + } + function registerTypes2(lookup, lookups, names2, params) { + lookup.registry.register(lookups); + if (params.SpRuntimeUncheckedExtrinsic) { + const [addrParam, , sigParam] = params.SpRuntimeUncheckedExtrinsic; + const siAddress = lookup.getSiType(addrParam.type.unwrap()); + const siSignature = lookup.getSiType(sigParam.type.unwrap()); + const nsSignature = siSignature.path.join("::"); + let nsAccountId = siAddress.path.join("::"); + const isMultiAddress = nsAccountId === "sp_runtime::multiaddress::MultiAddress"; + if (isMultiAddress) { + const [idParam] = siAddress.params; + nsAccountId = lookup.getSiType(idParam.type.unwrap()).path.join("::"); + } + lookup.registry.register({ + AccountId: nsAccountId.endsWith("::AccountId20") || nsAccountId.endsWith("::H160") ? "AccountId20" : "AccountId32", + Address: isMultiAddress ? "MultiAddress" : "AccountId", + ExtrinsicSignature: ["sp_runtime::MultiSignature"].includes(nsSignature) ? "MultiSignature" : names2[sigParam.type.unwrap().toNumber()] || "MultiSignature" + }); + } + } + function extractAliases2(params, isContract) { + const hasParams = Object.keys(params).some((k) => !k.startsWith("Pallet")); + const alias2 = {}; + if (params.SpRuntimeUncheckedExtrinsic) { + const [, { type }] = params.SpRuntimeUncheckedExtrinsic; + alias2[type.unwrap().toNumber()] = "Call"; + } else if (hasParams && !isContract) { + l15.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic"); + } + if (params.FrameSystemEventRecord) { + const [{ type }] = params.FrameSystemEventRecord; + alias2[type.unwrap().toNumber()] = "Event"; + } else if (hasParams && !isContract) { + l15.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord"); + } + return alias2; + } + function extractTypeInfo2(lookup, portable) { + const nameInfo = []; + const types2 = {}; + for (let i = 0, count = portable.length; i < count; i++) { + const type = portable[i]; + const lookupIndex = type.id.toNumber(); + const extracted = extractName2(portable, lookupIndex, portable[i]); + if (extracted) { + nameInfo.push(extracted); + } + types2[lookupIndex] = type; + } + const lookups = {}; + const names2 = {}; + const params = {}; + const dedup = removeDupeNames2(lookup, portable, nameInfo); + for (let i = 0, count = dedup.length; i < count; i++) { + const { lookupIndex, name: name6, params: p } = dedup[i]; + names2[lookupIndex] = name6; + lookups[name6] = lookup.registry.createLookupType(lookupIndex); + params[name6] = p; + } + return { lookups, names: names2, params, types: types2 }; + } + var PortableRegistry2 = class extends types_codec_1.Struct { + __internal__alias; + __internal__lookups; + __internal__names; + __internal__params; + __internal__typeDefs = {}; + __internal__types; + constructor(registry, value, isContract) { + super(registry, { + types: "Vec" + }, value); + const { lookups, names: names2, params, types: types2 } = extractTypeInfo2(this, this.types); + this.__internal__alias = extractAliases2(params, isContract); + this.__internal__lookups = lookups; + this.__internal__names = names2; + this.__internal__params = params; + this.__internal__types = types2; + } + get names() { + return Object.values(this.__internal__names).sort(); + } + get paramTypes() { + return this.__internal__params; + } + get types() { + return this.getT("types"); + } + register() { + registerTypes2(this, this.__internal__lookups, this.__internal__names, this.__internal__params); + } + getName(lookupId) { + return this.__internal__names[this.__internal__getLookupId(lookupId)]; + } + getSiType(lookupId) { + const found = (this.__internal__types || this.types)[this.__internal__getLookupId(lookupId)]; + if (!found) { + throw new Error(`PortableRegistry: Unable to find type with lookupId ${lookupId.toString()}`); + } + return found.type; + } + getTypeDef(lookupId) { + const lookupIndex = this.__internal__getLookupId(lookupId); + if (!this.__internal__typeDefs[lookupIndex]) { + const lookupName = this.__internal__names[lookupIndex]; + const empty = { + info: types_create_1.TypeDefInfo.DoNotConstruct, + lookupIndex, + lookupName, + type: this.registry.createLookupType(lookupIndex) + }; + if (lookupName) { + this.__internal__typeDefs[lookupIndex] = empty; + } + const extracted = this.__internal__extract(this.getSiType(lookupId), lookupIndex); + if (!lookupName) { + this.__internal__typeDefs[lookupIndex] = empty; + } + Object.keys(extracted).forEach((k) => { + if (k !== "lookupName" || extracted[k]) { + this.__internal__typeDefs[lookupIndex][k] = extracted[k]; + } + }); + if (extracted.info === types_create_1.TypeDefInfo.Plain) { + this.__internal__typeDefs[lookupIndex].lookupNameRoot = this.__internal__typeDefs[lookupIndex].lookupName; + delete this.__internal__typeDefs[lookupIndex].lookupName; + } + } + return this.__internal__typeDefs[lookupIndex]; + } + sanitizeField(name6) { + let nameField = null; + let nameOrig = null; + if (name6.isSome) { + nameField = (0, util_1.stringCamelCase)(name6.unwrap()); + if (nameField.includes("#")) { + nameOrig = nameField; + nameField = nameOrig.replace(/#/g, "_"); + } else if (RESERVED2.includes(nameField)) { + nameOrig = nameField; + nameField = `${nameField}_`; + } + } + return [nameField, nameOrig]; + } + __internal__createSiDef(lookupId) { + const typeDef = this.getTypeDef(lookupId); + const lookupIndex = lookupId.toNumber(); + return [types_create_1.TypeDefInfo.DoNotConstruct, types_create_1.TypeDefInfo.Enum, types_create_1.TypeDefInfo.Struct].includes(typeDef.info) && typeDef.lookupName ? { + docs: typeDef.docs, + info: types_create_1.TypeDefInfo.Si, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + type: this.registry.createLookupType(lookupId) + } : typeDef; + } + __internal__getLookupId(lookupId) { + if ((0, util_1.isString)(lookupId)) { + if (!this.registry.isLookupType(lookupId)) { + throw new Error(`PortableRegistry: Expected a lookup string type, found ${lookupId}`); + } + return parseInt(lookupId.replace("Lookup", ""), 10); + } else if ((0, util_1.isNumber)(lookupId)) { + return lookupId; + } + return lookupId.toNumber(); + } + __internal__extract(type, lookupIndex) { + const namespace = type.path.join("::"); + let typeDef; + const aliasType = this.__internal__alias[lookupIndex] || getAliasPath2(type); + try { + if (aliasType) { + typeDef = this.__internal__extractAliasPath(lookupIndex, aliasType); + } else { + switch (type.def.type) { + case "Array": + typeDef = this.__internal__extractArray(lookupIndex, type.def.asArray); + break; + case "BitSequence": + typeDef = this.__internal__extractBitSequence(lookupIndex, type.def.asBitSequence); + break; + case "Compact": + typeDef = this.__internal__extractCompact(lookupIndex, type.def.asCompact); + break; + case "Composite": + typeDef = this.__internal__extractComposite(lookupIndex, type, type.def.asComposite); + break; + case "HistoricMetaCompat": + typeDef = this.__internal__extractHistoric(lookupIndex, type.def.asHistoricMetaCompat); + break; + case "Primitive": + typeDef = this.__internal__extractPrimitive(lookupIndex, type); + break; + case "Sequence": + typeDef = this.__internal__extractSequence(lookupIndex, type.def.asSequence); + break; + case "Tuple": + typeDef = this.__internal__extractTuple(lookupIndex, type.def.asTuple); + break; + case "Variant": + typeDef = this.__internal__extractVariant(lookupIndex, type, type.def.asVariant); + break; + default: + (0, util_1.assertUnreachable)(type.def.type); + } + } + } catch (error) { + throw new Error(`PortableRegistry: ${lookupIndex}${namespace ? ` (${namespace})` : ""}: Error extracting ${(0, util_1.stringify)(type)}: ${error.message}`); + } + return (0, util_1.objectSpread)({ + docs: sanitizeDocs2(type.docs), + namespace + }, typeDef); + } + __internal__extractArray(_, { len, type }) { + const length = len.toNumber(); + if (length > 2048) { + throw new Error("Only support for [Type; ], where length <= 2048"); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.VecFixed, + length, + sub: this.__internal__createSiDef(type) + }); + } + __internal__extractBitSequence(_, { bitOrderType, bitStoreType }) { + const a = this.__internal__createSiDef(bitOrderType); + const b = this.__internal__createSiDef(bitStoreType); + const [bitOrder, bitStore] = BITVEC_NS2.includes(a.namespace || "") ? [a, b] : [b, a]; + if (!bitOrder.namespace || !BITVEC_NS2.includes(bitOrder.namespace)) { + throw new Error(`Unexpected bitOrder found as ${bitOrder.namespace || ""}`); + } else if (bitStore.info !== types_create_1.TypeDefInfo.Plain || bitStore.type !== "u8") { + throw new Error(`Only u8 bitStore is currently supported, found ${bitStore.type}`); + } + const isLsb = BITVEC_NS_LSB2.includes(bitOrder.namespace); + if (!isLsb) { + } + return { + info: types_create_1.TypeDefInfo.Plain, + type: "BitVec" + }; + } + __internal__extractCompact(_, { type }) { + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Compact, + sub: this.__internal__createSiDef(type) + }); + } + __internal__extractComposite(lookupIndex, { params, path }, { fields }) { + if (path.length) { + const pathFirst = path[0].toString(); + const pathLast = path[path.length - 1].toString(); + if (path.length === 1 && pathFirst === "BTreeMap") { + if (params.length !== 2) { + throw new Error(`BTreeMap requires 2 parameters, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.BTreeMap, + sub: params.map(({ type }) => this.__internal__createSiDef(type.unwrap())) + }); + } else if (path.length === 1 && pathFirst === "BTreeSet") { + if (params.length !== 1) { + throw new Error(`BTreeSet requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.BTreeSet, + sub: this.__internal__createSiDef(params[0].type.unwrap()) + }); + } else if (["Range", "RangeInclusive"].includes(pathFirst)) { + if (params.length !== 1) { + throw new Error(`Range requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: pathFirst === "Range" ? types_create_1.TypeDefInfo.Range : types_create_1.TypeDefInfo.RangeInclusive, + sub: this.__internal__createSiDef(params[0].type.unwrap()), + type: pathFirst + }); + } else if (["WrapperKeepOpaque", "WrapperOpaque"].includes(pathLast)) { + if (params.length !== 1) { + throw new Error(`WrapperOpaque requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: pathLast === "WrapperKeepOpaque" ? types_create_1.TypeDefInfo.WrapperKeepOpaque : types_create_1.TypeDefInfo.WrapperOpaque, + sub: this.__internal__createSiDef(params[0].type.unwrap()), + type: pathLast + }); + } + } + return PATHS_SET2.some((p) => matchParts2(p, path)) ? this.__internal__extractCompositeSet(lookupIndex, params, fields) : this.__internal__extractFields(lookupIndex, fields); + } + __internal__extractCompositeSet(_, params, fields) { + if (params.length !== 1 || fields.length !== 1) { + throw new Error("Set handling expects param/field as single entries"); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Set, + length: this.registry.createTypeUnsafe(this.registry.createLookupType(fields[0].type), []).bitLength(), + sub: this.getSiType(params[0].type.unwrap()).def.asVariant.variants.map(({ index, name: name6 }) => ({ + index: index.toNumber(), + info: types_create_1.TypeDefInfo.Plain, + name: name6.toString(), + type: "Null" + })) + }); + } + __internal__extractFields(lookupIndex, fields) { + let isStruct = true; + let isTuple = true; + const count = fields.length; + for (let f10 = 0; f10 < count; f10++) { + const { name: name6 } = fields[f10]; + isStruct = isStruct && name6.isSome; + isTuple = isTuple && name6.isNone; + } + if (!isTuple && !isStruct) { + throw new Error("Invalid fields type detected, expected either Tuple (all unnamed) or Struct (all named)"); + } + if (count === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } else if (isTuple && count === 1) { + const typeDef = this.__internal__createSiDef(fields[0].type); + return (0, util_1.objectSpread)({}, typeDef, lookupIndex === -1 ? null : { + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + lookupNameRoot: typeDef.lookupName + }, fields[0].typeName.isSome ? { typeName: (0, types_codec_1.sanitize)(fields[0].typeName.unwrap()) } : null); + } + const [sub, alias2] = this.__internal__extractFieldsAlias(fields); + return (0, types_create_1.withTypeString)(this.registry, (0, util_1.objectSpread)({ + info: isTuple ? types_create_1.TypeDefInfo.Tuple : types_create_1.TypeDefInfo.Struct, + sub + }, alias2.size ? { alias: alias2 } : null, lookupIndex === -1 ? null : { + lookupIndex, + lookupName: this.__internal__names[lookupIndex] + })); + } + __internal__extractFieldsAlias(fields) { + const alias2 = /* @__PURE__ */ new Map(); + const count = fields.length; + const sub = new Array(count); + for (let i = 0; i < count; i++) { + const { docs, name: name6, type, typeName } = fields[i]; + const typeDef = this.__internal__createSiDef(type); + if (name6.isNone) { + sub[i] = typeDef; + } else { + const [nameField, nameOrig] = this.sanitizeField(name6); + if (nameField && nameOrig) { + alias2.set(nameField, nameOrig); + } + sub[i] = (0, util_1.objectSpread)({ + docs: sanitizeDocs2(docs), + name: nameField + }, typeDef, typeName.isSome ? { typeName: (0, types_codec_1.sanitize)(typeName.unwrap()) } : null); + } + } + return [sub, alias2]; + } + __internal__extractHistoric(_, type) { + return (0, util_1.objectSpread)({ + displayName: type.toString(), + isFromSi: true + }, (0, types_create_1.getTypeDef)(type)); + } + __internal__extractPrimitive(_, type) { + const typeStr = type.def.asPrimitive.type.toString(); + return { + info: types_create_1.TypeDefInfo.Plain, + type: PRIMITIVE_ALIAS2[typeStr] || typeStr.toLowerCase() + }; + } + __internal__extractAliasPath(_, type) { + return { + info: types_create_1.TypeDefInfo.Plain, + type + }; + } + __internal__extractSequence(lookupIndex, { type }) { + const sub = this.__internal__createSiDef(type); + if (sub.type === "u8") { + return { + info: types_create_1.TypeDefInfo.Plain, + type: "Bytes" + }; + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Vec, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + __internal__extractTuple(lookupIndex, ids) { + if (ids.length === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } else if (ids.length === 1) { + return this.getTypeDef(ids[0]); + } + const sub = ids.map((t) => this.__internal__createSiDef(t)); + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Tuple, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + __internal__extractVariant(lookupIndex, { params, path }, { variants }) { + if (path.length) { + const specialVariant = path[0].toString(); + if (specialVariant === "Option") { + if (params.length !== 1) { + throw new Error(`Option requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Option, + sub: this.__internal__createSiDef(params[0].type.unwrap()) + }); + } else if (specialVariant === "Result") { + if (params.length !== 2) { + throw new Error(`Result requires 2 parameters, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Result, + sub: params.map(({ type }, index) => (0, util_1.objectSpread)({ + name: ["Ok", "Error"][index] + }, this.__internal__createSiDef(type.unwrap()))) + }); + } + } + if (variants.length === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } + return this.__internal__extractVariantEnum(lookupIndex, variants); + } + __internal__extractVariantEnum(lookupIndex, variants) { + const sub = []; + variants.slice().sort((a, b) => a.index.cmp(b.index)).forEach(({ fields, index: bnIndex, name: name6 }) => { + const index = bnIndex.toNumber(); + while (sub.length !== index) { + sub.push({ + index: sub.length, + info: types_create_1.TypeDefInfo.Null, + name: `__Unused${sub.length}`, + type: "Null" + }); + } + sub.push((0, util_1.objectSpread)(this.__internal__extractFields(-1, fields), { + index, + name: name6.toString() + })); + }); + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Enum, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + }; + exports2.PortableRegistry = PortableRegistry2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/toV1.js + var require_toV1 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/toV1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV1 = void 0; + var util_1 = require_cjs3(); + function convertType(key2) { + return (registry, { type }) => registry.createType("Si1TypeDef", { + [key2]: { + type: type.toNumber() + } + }); + } + function convertArray(registry, { len, type }) { + return registry.createType("Si1TypeDef", { + Array: { + len, + type: type.toNumber() + } + }); + } + function convertBitSequence(registry, { bitOrderType, bitStoreType }) { + return registry.createType("Si1TypeDef", { + BitSequence: { + bitOrderType: bitOrderType.toNumber(), + bitStoreType: bitStoreType.toNumber() + } + }); + } + var convertCompact = convertType("Compact"); + function convertComposite(registry, { fields }) { + return registry.createType("Si1TypeDef", { + Composite: { + fields: convertFields(registry, fields) + } + }); + } + function convertFields(registry, fields) { + return fields.map(({ docs, name: name6, type, typeName }) => registry.createType("Si1Field", { + docs, + name: name6, + type: type.toNumber(), + typeName + })); + } + function convertPhantom(registry, path) { + console.warn(`Converting phantom type ${path.map((p) => p.toString()).join("::")} to empty tuple`); + return registry.createType("Si1TypeDef", { + Tuple: [] + }); + } + function convertPrimitive(registry, prim) { + return registry.createType("Si1TypeDef", { + Primitive: prim.toString() + }); + } + var convertSequence = convertType("Sequence"); + function convertTuple(registry, types2) { + return registry.createType("Si1TypeDef", { + Tuple: types2.map((t) => t.toNumber()) + }); + } + function convertVariant(registry, { variants }) { + return registry.createType("Si1TypeDef", { + Variant: { + variants: variants.map(({ discriminant, docs, fields, name: name6 }, index) => registry.createType("Si1Variant", { + docs, + fields: convertFields(registry, fields), + index: discriminant.isSome ? discriminant.unwrap().toNumber() : index, + name: name6 + })) + } + }); + } + function convertDef(registry, { def, path }) { + let result; + switch (def.type) { + case "Array": + result = convertArray(registry, def.asArray); + break; + case "BitSequence": + result = convertBitSequence(registry, def.asBitSequence); + break; + case "Compact": + result = convertCompact(registry, def.asCompact); + break; + case "Composite": + result = convertComposite(registry, def.asComposite); + break; + case "Phantom": + result = convertPhantom(registry, path); + break; + case "Primitive": + result = convertPrimitive(registry, def.asPrimitive); + break; + case "Sequence": + result = convertSequence(registry, def.asSequence); + break; + case "Tuple": + result = convertTuple(registry, def.asTuple); + break; + case "Variant": + result = convertVariant(registry, def.asVariant); + break; + default: + (0, util_1.assertUnreachable)(def.type); + } + return result; + } + function toV1(registry, types2) { + return types2.map((t, index) => registry.createType("PortableType", { + id: index + 1, + type: { + def: convertDef(registry, t), + docs: [], + params: t.params.map((p) => registry.createType("Si1TypeParameter", { + type: p.toNumber() + })), + path: t.path.map((p) => p.toString()) + } + })); + } + exports2.toV1 = toV1; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/index.js + var require_PortableRegistry2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.convertSiV0toV1 = exports2.PortableRegistry = void 0; + var PortableRegistry_js_1 = require_PortableRegistry(); + Object.defineProperty(exports2, "PortableRegistry", { enumerable: true, get: function() { + return PortableRegistry_js_1.PortableRegistry; + } }); + var toV1_js_1 = require_toV1(); + Object.defineProperty(exports2, "convertSiV0toV1", { enumerable: true, get: function() { + return toV1_js_1.toV1; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/flattenUniq.js + var require_flattenUniq = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/flattenUniq.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flattenUniq = void 0; + function flattenUniq2(list, result = []) { + for (let i = 0, count = list.length; i < count; i++) { + const entry = list[i]; + if (Array.isArray(entry)) { + flattenUniq2(entry, result); + } else { + result.push(entry); + } + } + return [...new Set(result)]; + } + exports2.flattenUniq = flattenUniq2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/getSiName.js + var require_getSiName = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/getSiName.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSiName = void 0; + function getSiName2(lookup, type) { + const typeDef = lookup.getTypeDef(type); + return typeDef.lookupName || typeDef.type; + } + exports2.getSiName = getSiName2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/extractTypes.js + var require_extractTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/extractTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractTypes = void 0; + var types_create_1 = require_cjs9(); + function extractSubSingle2(_, { sub }) { + const { lookupName, type } = sub; + return extractTypes3([lookupName || type]); + } + function extractSubArray2(_, { sub }) { + return extractTypes3(sub.map(({ lookupName, type }) => lookupName || type)); + } + function unhandled2(type, { info }) { + throw new Error(`Unhandled: Unable to create and validate type from ${type} (info=${types_create_1.TypeDefInfo[info]})`); + } + var mapping2 = { + [types_create_1.TypeDefInfo.BTreeMap]: extractSubArray2, + [types_create_1.TypeDefInfo.BTreeSet]: extractSubSingle2, + [types_create_1.TypeDefInfo.Compact]: extractSubSingle2, + [types_create_1.TypeDefInfo.DoNotConstruct]: unhandled2, + [types_create_1.TypeDefInfo.Enum]: extractSubArray2, + [types_create_1.TypeDefInfo.HashMap]: extractSubArray2, + [types_create_1.TypeDefInfo.Int]: unhandled2, + [types_create_1.TypeDefInfo.Linkage]: extractSubSingle2, + [types_create_1.TypeDefInfo.Null]: unhandled2, + [types_create_1.TypeDefInfo.Option]: extractSubSingle2, + [types_create_1.TypeDefInfo.Plain]: (_, typeDef) => typeDef.lookupName || typeDef.type, + [types_create_1.TypeDefInfo.Range]: extractSubSingle2, + [types_create_1.TypeDefInfo.RangeInclusive]: extractSubSingle2, + [types_create_1.TypeDefInfo.Result]: extractSubArray2, + [types_create_1.TypeDefInfo.Set]: extractSubArray2, + [types_create_1.TypeDefInfo.Si]: unhandled2, + [types_create_1.TypeDefInfo.Struct]: extractSubArray2, + [types_create_1.TypeDefInfo.Tuple]: extractSubArray2, + [types_create_1.TypeDefInfo.UInt]: unhandled2, + [types_create_1.TypeDefInfo.Vec]: extractSubSingle2, + [types_create_1.TypeDefInfo.VecFixed]: extractSubSingle2, + [types_create_1.TypeDefInfo.WrapperKeepOpaque]: extractSubSingle2, + [types_create_1.TypeDefInfo.WrapperOpaque]: extractSubSingle2 + }; + function extractTypes3(types2) { + const count = types2.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const type = types2[i]; + const typeDef = (0, types_create_1.getTypeDef)(type); + result[i] = mapping2[typeDef.info](type, typeDef); + } + return result; + } + exports2.extractTypes = extractTypes3; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/validateTypes.js + var require_validateTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/validateTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTypes = void 0; + var util_1 = require_cjs3(); + var extractTypes_js_1 = require_extractTypes(); + var flattenUniq_js_1 = require_flattenUniq(); + var l15 = (0, util_1.logger)("metadata"); + function validateTypes2(registry, throwError, types2) { + const missing = (0, flattenUniq_js_1.flattenUniq)((0, extractTypes_js_1.extractTypes)(types2)).filter((type) => !registry.hasType(type) && !registry.isLookupType(type)).sort(); + if (missing.length !== 0) { + const message = `Unknown types found, no types for ${missing.join(", ")}`; + if (throwError) { + throw new Error(message); + } else { + l15.warn(message); + } + } + return types2; + } + exports2.validateTypes = validateTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/getUniqTypes.js + var require_getUniqTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/getUniqTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUniqTypes = void 0; + var flattenUniq_js_1 = require_flattenUniq(); + var validateTypes_js_1 = require_validateTypes(); + function extractTypes3(lookup, types2) { + return types2.map(({ type }) => lookup.getTypeDef(type).type); + } + function extractFieldTypes2(lookup, type) { + return lookup.getSiType(type).def.asVariant.variants.map(({ fields }) => extractTypes3(lookup, fields)); + } + function getPalletNames2({ lookup, pallets }) { + return pallets.reduce((all, { calls, constants: constants2, events, storage }) => { + all.push([extractTypes3(lookup, constants2)]); + if (calls.isSome) { + all.push(extractFieldTypes2(lookup, calls.unwrap().type)); + } + if (events.isSome) { + all.push(extractFieldTypes2(lookup, events.unwrap().type)); + } + if (storage.isSome) { + all.push(storage.unwrap().items.map(({ type }) => { + if (type.isPlain) { + return [lookup.getTypeDef(type.asPlain).type]; + } + const { hashers, key: key2, value } = type.asMap; + return hashers.length === 1 ? [ + lookup.getTypeDef(value).type, + lookup.getTypeDef(key2).type + ] : [ + lookup.getTypeDef(value).type, + ...lookup.getSiType(key2).def.asTuple.map((t) => lookup.getTypeDef(t).type) + ]; + })); + } + return all; + }, []); + } + function getUniqTypes2(registry, meta2, throwError) { + return (0, validateTypes_js_1.validateTypes)(registry, throwError, (0, flattenUniq_js_1.flattenUniq)(getPalletNames2(meta2))); + } + exports2.getUniqTypes = getUniqTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/toCallsOnly.js + var require_toCallsOnly = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/toCallsOnly.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCallsOnly = void 0; + var util_1 = require_cjs3(); + function trimDocs2(docs) { + const strings = docs.map((d) => d.toString().trim()); + const firstEmpty = strings.findIndex((d) => !d.length); + return firstEmpty === -1 ? strings : strings.slice(0, firstEmpty); + } + function toCallsOnly2(registry, { extrinsic, lookup, pallets }) { + return registry.createTypeUnsafe("MetadataLatest", [{ + extrinsic, + lookup: { + types: lookup.types.map(({ id: id4, type }) => registry.createTypeUnsafe("PortableType", [{ + id: id4, + type: (0, util_1.objectSpread)({}, type, { docs: trimDocs2(type.docs) }) + }])) + }, + pallets: pallets.map(({ calls, index, name: name6 }) => ({ + calls: registry.createTypeUnsafe("Option", [calls.unwrapOr(null)]), + index, + name: name6 + })) + }]).toJSON(); + } + exports2.toCallsOnly = toCallsOnly2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/index.js + var require_util4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTypes = exports2.toCallsOnly = exports2.getUniqTypes = exports2.getSiName = exports2.flattenUniq = void 0; + var flattenUniq_js_1 = require_flattenUniq(); + Object.defineProperty(exports2, "flattenUniq", { enumerable: true, get: function() { + return flattenUniq_js_1.flattenUniq; + } }); + var getSiName_js_1 = require_getSiName(); + Object.defineProperty(exports2, "getSiName", { enumerable: true, get: function() { + return getSiName_js_1.getSiName; + } }); + var getUniqTypes_js_1 = require_getUniqTypes(); + Object.defineProperty(exports2, "getUniqTypes", { enumerable: true, get: function() { + return getUniqTypes_js_1.getUniqTypes; + } }); + var toCallsOnly_js_1 = require_toCallsOnly(); + Object.defineProperty(exports2, "toCallsOnly", { enumerable: true, get: function() { + return toCallsOnly_js_1.toCallsOnly; + } }); + var validateTypes_js_1 = require_validateTypes(); + Object.defineProperty(exports2, "validateTypes", { enumerable: true, get: function() { + return validateTypes_js_1.validateTypes; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/util/storage.js + var require_storage = __commonJS({ + "../../node_modules/@polkadot/types/cjs/util/storage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.unwrapStorageType = exports2.unwrapStorageSi = void 0; + var index_js_1 = require_util4(); + function unwrapStorageSi2(type) { + return type.isPlain ? type.asPlain : type.asMap.value; + } + exports2.unwrapStorageSi = unwrapStorageSi2; + function unwrapStorageType2(registry, type, isOptional) { + const outputType = (0, index_js_1.getSiName)(registry.lookup, unwrapStorageSi2(type)); + return isOptional ? `Option<${outputType}>` : outputType; + } + exports2.unwrapStorageType = unwrapStorageType2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/util/index.js + var require_util5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_storage(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/codec/index.js + var require_codec2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/codec/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = exports2.WrapperKeepOpaque = exports2.VecFixed = exports2.Vec = exports2.UInt = exports2.U8aFixed = exports2.Tuple = exports2.Struct = exports2.Set = exports2.Result = exports2.Raw = exports2.RangeInclusive = exports2.Range = exports2.Option = exports2.Map = exports2.Linkage = exports2.Json = exports2.Int = exports2.HashMap = exports2.Enum = exports2.DoNotConstruct = exports2.Compact = exports2.CodecSet = exports2.CodecMap = exports2.BTreeSet = exports2.BTreeMap = void 0; + var types_codec_1 = require_cjs8(); + Object.defineProperty(exports2, "BTreeMap", { enumerable: true, get: function() { + return types_codec_1.BTreeMap; + } }); + Object.defineProperty(exports2, "BTreeSet", { enumerable: true, get: function() { + return types_codec_1.BTreeSet; + } }); + Object.defineProperty(exports2, "CodecMap", { enumerable: true, get: function() { + return types_codec_1.CodecMap; + } }); + Object.defineProperty(exports2, "CodecSet", { enumerable: true, get: function() { + return types_codec_1.CodecSet; + } }); + Object.defineProperty(exports2, "Compact", { enumerable: true, get: function() { + return types_codec_1.Compact; + } }); + Object.defineProperty(exports2, "DoNotConstruct", { enumerable: true, get: function() { + return types_codec_1.DoNotConstruct; + } }); + Object.defineProperty(exports2, "Enum", { enumerable: true, get: function() { + return types_codec_1.Enum; + } }); + Object.defineProperty(exports2, "HashMap", { enumerable: true, get: function() { + return types_codec_1.HashMap; + } }); + Object.defineProperty(exports2, "Int", { enumerable: true, get: function() { + return types_codec_1.Int; + } }); + Object.defineProperty(exports2, "Json", { enumerable: true, get: function() { + return types_codec_1.Json; + } }); + Object.defineProperty(exports2, "Linkage", { enumerable: true, get: function() { + return types_codec_1.Linkage; + } }); + Object.defineProperty(exports2, "Map", { enumerable: true, get: function() { + return types_codec_1.Map; + } }); + Object.defineProperty(exports2, "Option", { enumerable: true, get: function() { + return types_codec_1.Option; + } }); + Object.defineProperty(exports2, "Range", { enumerable: true, get: function() { + return types_codec_1.Range; + } }); + Object.defineProperty(exports2, "RangeInclusive", { enumerable: true, get: function() { + return types_codec_1.RangeInclusive; + } }); + Object.defineProperty(exports2, "Raw", { enumerable: true, get: function() { + return types_codec_1.Raw; + } }); + Object.defineProperty(exports2, "Result", { enumerable: true, get: function() { + return types_codec_1.Result; + } }); + Object.defineProperty(exports2, "Set", { enumerable: true, get: function() { + return types_codec_1.Set; + } }); + Object.defineProperty(exports2, "Struct", { enumerable: true, get: function() { + return types_codec_1.Struct; + } }); + Object.defineProperty(exports2, "Tuple", { enumerable: true, get: function() { + return types_codec_1.Tuple; + } }); + Object.defineProperty(exports2, "U8aFixed", { enumerable: true, get: function() { + return types_codec_1.U8aFixed; + } }); + Object.defineProperty(exports2, "UInt", { enumerable: true, get: function() { + return types_codec_1.UInt; + } }); + Object.defineProperty(exports2, "Vec", { enumerable: true, get: function() { + return types_codec_1.Vec; + } }); + Object.defineProperty(exports2, "VecFixed", { enumerable: true, get: function() { + return types_codec_1.VecFixed; + } }); + Object.defineProperty(exports2, "WrapperKeepOpaque", { enumerable: true, get: function() { + return types_codec_1.WrapperKeepOpaque; + } }); + Object.defineProperty(exports2, "WrapperOpaque", { enumerable: true, get: function() { + return types_codec_1.WrapperOpaque; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/createClass.js + var require_createClass = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/createClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClass = void 0; + var types_create_1 = require_cjs9(); + function createClass(registry, type) { + return (0, types_create_1.createClassUnsafe)(registry, type); + } + exports2.createClass = createClass; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/createType.js + var require_createType = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/createType.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createType = void 0; + var types_create_1 = require_cjs9(); + function createType(registry, type, ...params) { + return (0, types_create_1.createTypeUnsafe)(registry, type, params); + } + exports2.createType = createType; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/lazy.js + var require_lazy2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/lazy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lazyVariants = void 0; + var util_1 = require_cjs3(); + function lazyVariants2(lookup, { type }, getName, creator) { + const result = {}; + const variants = lookup.getSiType(type).def.asVariant.variants; + for (let i = 0, count = variants.length; i < count; i++) { + (0, util_1.lazyMethod)(result, variants[i], creator, getName, i); + } + return result; + } + exports2.lazyVariants = lazyVariants2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/emptyCheck.js + var require_emptyCheck = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/emptyCheck.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.emptyCheck = void 0; + exports2.emptyCheck = { + extrinsic: {}, + payload: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/polkadot.js + var require_polkadot = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.polkadot = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + exports2.polkadot = { + LimitParathreadCommits: emptyCheck_js_1.emptyCheck, + OnlyStakingAndClaims: emptyCheck_js_1.emptyCheck, + PrevalidateAttests: emptyCheck_js_1.emptyCheck, + RestrictFunctionality: emptyCheck_js_1.emptyCheck, + TransactionCallFilter: emptyCheck_js_1.emptyCheck, + ValidateDoubleVoteReports: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/shell.js + var require_shell = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/shell.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.shell = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + exports2.shell = { + DisallowSigned: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/statemint.js + var require_statemint = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/statemint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.statemint = void 0; + exports2.statemint = { + ChargeAssetTxPayment: { + extrinsic: { + tip: "Compact", + assetId: "TAssetConversion" + }, + payload: {} + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/substrate.js + var require_substrate = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.substrate = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + var CheckMortality2 = { + extrinsic: { + era: "ExtrinsicEra" + }, + payload: { + blockHash: "Hash" + } + }; + var ChargeTransactionPayment2 = { + extrinsic: { + tip: "Compact" + }, + payload: {} + }; + exports2.substrate = { + ChargeTransactionPayment: ChargeTransactionPayment2, + CheckBlockGasLimit: emptyCheck_js_1.emptyCheck, + CheckEra: CheckMortality2, + CheckGenesis: { + extrinsic: {}, + payload: { + genesisHash: "Hash" + } + }, + CheckMortality: CheckMortality2, + CheckNonZeroSender: emptyCheck_js_1.emptyCheck, + CheckNonce: { + extrinsic: { + nonce: "Compact" + }, + payload: {} + }, + CheckSpecVersion: { + extrinsic: {}, + payload: { + specVersion: "u32" + } + }, + CheckTxVersion: { + extrinsic: {}, + payload: { + transactionVersion: "u32" + } + }, + CheckVersion: { + extrinsic: {}, + payload: { + specVersion: "u32" + } + }, + CheckWeight: emptyCheck_js_1.emptyCheck, + LockStakingStatus: emptyCheck_js_1.emptyCheck, + SkipCheckIfFeeless: ChargeTransactionPayment2, + ValidateEquivocationReport: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/index.js + var require_signedExtensions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.expandExtensionTypes = exports2.findUnknownExtensions = exports2.fallbackExtensions = exports2.allExtensions = void 0; + var util_1 = require_cjs3(); + var polkadot_js_1 = require_polkadot(); + var shell_js_1 = require_shell(); + var statemint_js_1 = require_statemint(); + var substrate_js_1 = require_substrate(); + exports2.allExtensions = (0, util_1.objectSpread)({}, substrate_js_1.substrate, polkadot_js_1.polkadot, shell_js_1.shell, statemint_js_1.statemint); + exports2.fallbackExtensions = [ + "CheckVersion", + "CheckGenesis", + "CheckEra", + "CheckNonce", + "CheckWeight", + "ChargeTransactionPayment", + "CheckBlockGasLimit" + ]; + function findUnknownExtensions2(extensions, userExtensions = {}) { + const names2 = [...Object.keys(exports2.allExtensions), ...Object.keys(userExtensions)]; + return extensions.filter((k) => !names2.includes(k)); + } + exports2.findUnknownExtensions = findUnknownExtensions2; + function expandExtensionTypes2(extensions, type, userExtensions = {}) { + return extensions.map((k) => userExtensions[k] || exports2.allExtensions[k]).filter((info) => !!info).reduce((result, info) => (0, util_1.objectSpread)(result, info[type]), {}); + } + exports2.expandExtensionTypes = expandExtensionTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Event.js + var require_Event = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Event.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEvent = exports2.GenericEventData = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function decodeEvent2(registry, value) { + if (!value?.length) { + return { DataType: types_codec_1.Null }; + } + const index = value.subarray(0, 2); + return { + DataType: registry.findMetaEvent(index), + value: { + data: value.subarray(2), + index + } + }; + } + var GenericEventData2 = class extends types_codec_1.Tuple { + __internal__meta; + __internal__method; + __internal__names = null; + __internal__section; + __internal__typeDef; + constructor(registry, value, meta2, section = "", method = "") { + const fields = meta2?.fields || []; + super(registry, fields.map(({ type }) => registry.createLookupType(type)), value); + this.__internal__meta = meta2; + this.__internal__method = method; + this.__internal__section = section; + this.__internal__typeDef = fields.map(({ type }) => registry.lookup.getTypeDef(type)); + const names2 = fields.map(({ name: name6 }) => registry.lookup.sanitizeField(name6)[0]).filter((n) => !!n); + if (names2.length === fields.length) { + this.__internal__names = names2; + (0, util_1.objectProperties)(this, names2, (_, i) => this[i]); + } + } + get meta() { + return this.__internal__meta; + } + get method() { + return this.__internal__method; + } + get names() { + return this.__internal__names; + } + get section() { + return this.__internal__section; + } + get typeDef() { + return this.__internal__typeDef; + } + toHuman(isExtended, disableAscii) { + if (this.__internal__names !== null) { + const json = {}; + for (let i = 0, count = this.__internal__names.length; i < count; i++) { + json[this.__internal__names[i]] = this[i].toHuman(isExtended, disableAscii); + } + return json; + } + return super.toHuman(isExtended); + } + }; + exports2.GenericEventData = GenericEventData2; + var GenericEvent2 = class extends types_codec_1.Struct { + constructor(registry, _value) { + const { DataType, value } = decodeEvent2(registry, _value); + super(registry, { + index: "EventId", + data: DataType + }, value); + } + get data() { + return this.getT("data"); + } + get index() { + return this.getT("index"); + } + get meta() { + return this.data.meta; + } + get method() { + return this.data.method; + } + get section() { + return this.data.section; + } + get typeDef() { + return this.data.typeDef; + } + toHuman(isExpanded, disableAscii) { + return (0, util_1.objectSpread)({ + method: this.method, + section: this.section + }, isExpanded ? { docs: this.meta.docs.map((d) => d.toString()) } : null, super.toHuman(isExpanded, disableAscii)); + } + }; + exports2.GenericEvent = GenericEvent2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/Extrinsic.js + var require_Extrinsic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/Extrinsic.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicV4 = exports2.EXTRINSIC_VERSION = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + exports2.EXTRINSIC_VERSION = 4; + var GenericExtrinsicV42 = class extends types_codec_1.Struct { + constructor(registry, value, { isSigned } = {}) { + super(registry, { + signature: "ExtrinsicSignatureV4", + method: "Call" + }, GenericExtrinsicV42.decodeExtrinsic(registry, value, isSigned)); + } + static decodeExtrinsic(registry, value, isSigned = false) { + if (value instanceof GenericExtrinsicV42) { + return value; + } else if (value instanceof registry.createClassUnsafe("Call")) { + return { method: value }; + } else if ((0, util_1.isU8a)(value)) { + const signature2 = registry.createTypeUnsafe("ExtrinsicSignatureV4", [value, { isSigned }]); + const method = registry.createTypeUnsafe("Call", [value.subarray(signature2.encodedLength)]); + return { + method, + signature: signature2 + }; + } + return value || {}; + } + get encodedLength() { + return this.toU8a().length; + } + get method() { + return this.getT("method"); + } + get signature() { + return this.getT("signature"); + } + get version() { + return exports2.EXTRINSIC_VERSION; + } + addSignature(signer, signature2, payload) { + this.signature.addSignature(signer, signature2, payload); + return this; + } + sign(account, options) { + this.signature.sign(this.method, account, options); + return this; + } + signFake(signer, options) { + this.signature.signFake(this.method, signer, options); + return this; + } + }; + exports2.GenericExtrinsicV4 = GenericExtrinsicV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/constants.js + var require_constants2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/constants.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UNMASK_VERSION = exports2.IMMORTAL_ERA = exports2.DEFAULT_VERSION = exports2.EMPTY_U8A = exports2.BIT_UNSIGNED = exports2.BIT_SIGNED = void 0; + exports2.BIT_SIGNED = 128; + exports2.BIT_UNSIGNED = 0; + exports2.EMPTY_U8A = new Uint8Array(); + exports2.DEFAULT_VERSION = 4; + exports2.IMMORTAL_ERA = new Uint8Array([0]); + exports2.UNMASK_VERSION = 127; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/Extrinsic.js + var require_Extrinsic2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/Extrinsic.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsic = exports2.LATEST_EXTRINSIC_VERSION = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var Extrinsic_js_1 = require_Extrinsic(); + Object.defineProperty(exports2, "LATEST_EXTRINSIC_VERSION", { enumerable: true, get: function() { + return Extrinsic_js_1.EXTRINSIC_VERSION; + } }); + var constants_js_1 = require_constants2(); + var VERSIONS3 = [ + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicV4" + ]; + function newFromValue2(registry, value, version23) { + if (value instanceof GenericExtrinsic2) { + return value.unwrap(); + } + const isSigned = (version23 & constants_js_1.BIT_SIGNED) === constants_js_1.BIT_SIGNED; + const type = VERSIONS3[version23 & constants_js_1.UNMASK_VERSION] || VERSIONS3[0]; + return registry.createTypeUnsafe(type, [value, { isSigned, version: version23 }]); + } + function decodeExtrinsic2(registry, value, version23 = constants_js_1.DEFAULT_VERSION) { + if ((0, util_1.isU8a)(value) || Array.isArray(value) || (0, util_1.isHex)(value)) { + return decodeU8a8(registry, (0, util_1.u8aToU8a)(value), version23); + } else if (value instanceof registry.createClassUnsafe("Call")) { + return newFromValue2(registry, { method: value }, version23); + } + return newFromValue2(registry, value, version23); + } + function decodeU8a8(registry, value, version23) { + if (!value.length) { + return newFromValue2(registry, new Uint8Array(), version23); + } + const [offset, length] = (0, util_1.compactFromU8a)(value); + const total = offset + length.toNumber(); + if (total > value.length) { + throw new Error(`Extrinsic: length less than remainder, expected at least ${total}, found ${value.length}`); + } + const data = value.subarray(offset, total); + return newFromValue2(registry, data.subarray(1), data[0]); + } + var ExtrinsicBase2 = class extends types_codec_1.AbstractBase { + constructor(registry, value, initialU8aLength) { + super(registry, value, initialU8aLength); + const signKeys = Object.keys(registry.getSignedExtensionTypes()); + const getter = (key2) => this.inner.signature[key2]; + for (let i = 0, count = signKeys.length; i < count; i++) { + (0, util_1.objectProperty)(this, signKeys[i], getter); + } + } + get args() { + return this.method.args; + } + get argsDef() { + return this.method.argsDef; + } + get callIndex() { + return this.method.callIndex; + } + get data() { + return this.method.data; + } + get era() { + return this.inner.signature.era; + } + get encodedLength() { + return this.toU8a().length; + } + get isSigned() { + return this.inner.signature.isSigned; + } + get length() { + return this.toU8a(true).length; + } + get meta() { + return this.method.meta; + } + get method() { + return this.inner.method; + } + get nonce() { + return this.inner.signature.nonce; + } + get signature() { + return this.inner.signature.signature; + } + get signer() { + return this.inner.signature.signer; + } + get tip() { + return this.inner.signature.tip; + } + get assetId() { + return this.inner.signature.assetId; + } + get type() { + return this.inner.version; + } + get inner() { + return this.unwrap(); + } + get version() { + return this.type | (this.isSigned ? constants_js_1.BIT_SIGNED : constants_js_1.BIT_UNSIGNED); + } + is(other) { + return this.method.is(other); + } + unwrap() { + return super.unwrap(); + } + }; + var GenericExtrinsic2 = class extends ExtrinsicBase2 { + __internal__hashCache; + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsic2(registry, value, version23)); + } + get hash() { + if (!this.__internal__hashCache) { + this.__internal__hashCache = super.hash; + } + return this.__internal__hashCache; + } + addSignature(signer, signature2, payload) { + this.inner.addSignature(signer, signature2, payload); + this.__internal__hashCache = void 0; + return this; + } + inspect() { + const encoded = (0, util_1.u8aConcat)(...this.toU8aInner()); + return { + inner: this.isSigned ? this.inner.inspect().inner : this.inner.method.inspect().inner, + outer: [(0, util_1.compactToU8a)(encoded.length), new Uint8Array([this.version])] + }; + } + sign(account, options) { + this.inner.sign(account, options); + this.__internal__hashCache = void 0; + return this; + } + signFake(signer, options) { + this.inner.signFake(signer, options); + this.__internal__hashCache = void 0; + return this; + } + toHex(isBare) { + return (0, util_1.u8aToHex)(this.toU8a(isBare)); + } + toHuman(isExpanded, disableAscii) { + return (0, util_1.objectSpread)({}, { + isSigned: this.isSigned, + method: this.method.toHuman(isExpanded, disableAscii) + }, this.isSigned ? { + assetId: this.assetId.toHuman(isExpanded, disableAscii), + era: this.era.toHuman(isExpanded, disableAscii), + nonce: this.nonce.toHuman(isExpanded, disableAscii), + signature: this.signature.toHex(), + signer: this.signer.toHuman(isExpanded, disableAscii), + tip: this.tip.toHuman(isExpanded, disableAscii) + } : null); + } + toJSON() { + return this.toHex(); + } + toRawType() { + return "Extrinsic"; + } + toU8a(isBare) { + const encoded = (0, util_1.u8aConcat)(...this.toU8aInner()); + return isBare ? encoded : (0, util_1.compactAddLength)(encoded); + } + toU8aInner() { + return [ + new Uint8Array([this.version]), + this.inner.toU8a() + ]; + } + }; + __publicField(GenericExtrinsic2, "LATEST_EXTRINSIC_VERSION", Extrinsic_js_1.EXTRINSIC_VERSION); + exports2.GenericExtrinsic = GenericExtrinsic2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicEra.js + var require_ExtrinsicEra = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicEra.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicEra = exports2.MortalEra = exports2.ImmortalEra = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + function getTrailingZeros2(period) { + const binary = period.toString(2); + let index = 0; + while (binary[binary.length - 1 - index] === "0") { + index++; + } + return index; + } + function decodeMortalEra2(registry, value) { + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value) || Array.isArray(value)) { + return decodeMortalU8a2(registry, (0, util_1.u8aToU8a)(value)); + } else if (!value) { + return [new types_codec_1.U64(registry), new types_codec_1.U64(registry)]; + } else if ((0, util_1.isObject)(value)) { + return decodeMortalObject2(registry, value); + } + throw new Error("Invalid data passed to Mortal era"); + } + function decodeMortalObject2(registry, value) { + const { current, period } = value; + let calPeriod = Math.pow(2, Math.ceil(Math.log2(period))); + calPeriod = Math.min(Math.max(calPeriod, 4), 1 << 16); + const phase = current % calPeriod; + const quantizeFactor = Math.max(calPeriod >> 12, 1); + const quantizedPhase = phase / quantizeFactor * quantizeFactor; + return [new types_codec_1.U64(registry, calPeriod), new types_codec_1.U64(registry, quantizedPhase)]; + } + function decodeMortalU8a2(registry, value) { + if (value.length === 0) { + return [new types_codec_1.U64(registry), new types_codec_1.U64(registry)]; + } + const first = (0, util_1.u8aToBn)(value.subarray(0, 1)).toNumber(); + const second = (0, util_1.u8aToBn)(value.subarray(1, 2)).toNumber(); + const encoded = first + (second << 8); + const period = 2 << encoded % (1 << 4); + const quantizeFactor = Math.max(period >> 12, 1); + const phase = (encoded >> 4) * quantizeFactor; + if (period < 4 || phase >= period) { + throw new Error("Invalid data passed to Mortal era"); + } + return [new types_codec_1.U64(registry, period), new types_codec_1.U64(registry, phase)]; + } + function decodeExtrinsicEra2(value = new Uint8Array()) { + if ((0, util_1.isU8a)(value)) { + return !value.length || value[0] === 0 ? new Uint8Array([0]) : new Uint8Array([1, value[0], value[1]]); + } else if (!value) { + return new Uint8Array([0]); + } else if (value instanceof GenericExtrinsicEra2) { + return decodeExtrinsicEra2(value.toU8a()); + } else if ((0, util_1.isHex)(value)) { + return decodeExtrinsicEra2((0, util_1.hexToU8a)(value)); + } else if ((0, util_1.isObject)(value)) { + const entries = Object.entries(value).map(([k, v]) => [k.toLowerCase(), v]); + const mortal = entries.find(([k]) => k.toLowerCase() === "mortalera"); + const immortal = entries.find(([k]) => k.toLowerCase() === "immortalera"); + return mortal ? { MortalEra: mortal[1] } : immortal ? { ImmortalEra: immortal[1] } : { MortalEra: value }; + } + throw new Error("Invalid data passed to Era"); + } + var ImmortalEra2 = class extends types_codec_1.Raw { + constructor(registry, _value) { + super(registry, constants_js_1.IMMORTAL_ERA); + } + }; + exports2.ImmortalEra = ImmortalEra2; + var MortalEra2 = class extends types_codec_1.Tuple { + constructor(registry, value) { + super(registry, { + period: types_codec_1.U64, + phase: types_codec_1.U64 + }, decodeMortalEra2(registry, value)); + } + get encodedLength() { + return 2 | 0; + } + get period() { + return this[0]; + } + get phase() { + return this[1]; + } + toHuman() { + return { + period: (0, util_1.formatNumber)(this.period), + phase: (0, util_1.formatNumber)(this.phase) + }; + } + toJSON() { + return this.toHex(); + } + toU8a(_isBare) { + const period = this.period.toNumber(); + const encoded = Math.min(15, Math.max(1, getTrailingZeros2(period) - 1)) + (this.phase.toNumber() / Math.max(period >> 12, 1) << 4); + return new Uint8Array([ + encoded & 255, + encoded >> 8 + ]); + } + birth(current) { + const phase = this.phase.toNumber(); + const period = this.period.toNumber(); + return ~~((Math.max((0, util_1.bnToBn)(current).toNumber(), phase) - phase) / period) * period + phase; + } + death(current) { + return this.birth(current) + this.period.toNumber(); + } + }; + exports2.MortalEra = MortalEra2; + var GenericExtrinsicEra2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + ImmortalEra: ImmortalEra2, + MortalEra: MortalEra2 + }, decodeExtrinsicEra2(value)); + } + get encodedLength() { + return this.isImmortalEra ? this.asImmortalEra.encodedLength : this.asMortalEra.encodedLength; + } + get asImmortalEra() { + if (!this.isImmortalEra) { + throw new Error(`Cannot convert '${this.type}' via asImmortalEra`); + } + return this.inner; + } + get asMortalEra() { + if (!this.isMortalEra) { + throw new Error(`Cannot convert '${this.type}' via asMortalEra`); + } + return this.inner; + } + get isImmortalEra() { + return this.index === 0; + } + get isMortalEra() { + return this.index > 0; + } + toU8a(isBare) { + return this.isMortalEra ? this.asMortalEra.toU8a(isBare) : this.asImmortalEra.toU8a(isBare); + } + }; + exports2.GenericExtrinsicEra = GenericExtrinsicEra2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayload.js + var require_ExtrinsicPayload = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayload = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + var VERSIONS3 = [ + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadV4" + ]; + function decodeExtrinsicPayload2(registry, value, version23 = constants_js_1.DEFAULT_VERSION) { + if (value instanceof GenericExtrinsicPayload2) { + return value.unwrap(); + } + return registry.createTypeUnsafe(VERSIONS3[version23] || VERSIONS3[0], [value, { version: version23 }]); + } + var GenericExtrinsicPayload2 = class extends types_codec_1.AbstractBase { + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsicPayload2(registry, value, version23)); + } + get blockHash() { + return this.inner.blockHash; + } + get era() { + return this.inner.era; + } + get genesisHash() { + return this.inner.genesisHash || this.registry.createTypeUnsafe("Hash", []); + } + get method() { + return this.inner.method; + } + get nonce() { + return this.inner.nonce; + } + get specVersion() { + return this.inner.specVersion || this.registry.createTypeUnsafe("u32", []); + } + get tip() { + return this.inner.tip || this.registry.createTypeUnsafe("Compact", []); + } + get transactionVersion() { + return this.inner.transactionVersion || this.registry.createTypeUnsafe("u32", []); + } + get assetId() { + return this.inner.assetId; + } + eq(other) { + return this.inner.eq(other); + } + sign(signerPair) { + const signature2 = this.inner.sign(signerPair); + return { + signature: (0, util_1.u8aToHex)(signature2) + }; + } + toHuman(isExtended, disableAscii) { + return this.inner.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.toHex(); + } + toRawType() { + return "ExtrinsicPayload"; + } + toString() { + return this.toHex(); + } + toU8a(isBare) { + return super.toU8a(isBare ? { method: true } : false); + } + }; + exports2.GenericExtrinsicPayload = GenericExtrinsicPayload2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayloadUnknown.js + var require_ExtrinsicPayloadUnknown = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayloadUnknown.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayloadUnknown = void 0; + var types_codec_1 = require_cjs8(); + var GenericExtrinsicPayloadUnknown2 = class extends types_codec_1.Struct { + constructor(registry, _value, { version: version23 = 0 } = {}) { + super(registry, {}); + throw new Error(`Unsupported extrinsic payload version ${version23}`); + } + }; + exports2.GenericExtrinsicPayloadUnknown = GenericExtrinsicPayloadUnknown2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicUnknown.js + var require_ExtrinsicUnknown = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicUnknown.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicUnknown = void 0; + var types_codec_1 = require_cjs8(); + var constants_js_1 = require_constants2(); + var GenericExtrinsicUnknown2 = class extends types_codec_1.Struct { + constructor(registry, _value, { isSigned = false, version: version23 = 0 } = {}) { + super(registry, {}); + throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version23 & constants_js_1.UNMASK_VERSION}`); + } + }; + exports2.GenericExtrinsicUnknown = GenericExtrinsicUnknown2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/SignerPayload.js + var require_SignerPayload = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/SignerPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericSignerPayload = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var knownTypes2 = { + address: "Address", + blockHash: "Hash", + blockNumber: "BlockNumber", + era: "ExtrinsicEra", + genesisHash: "Hash", + method: "Call", + nonce: "Compact", + runtimeVersion: "RuntimeVersion", + signedExtensions: "Vec", + tip: "Compact", + version: "u8" + }; + var GenericSignerPayload2 = class extends types_codec_1.Struct { + __internal__extraTypes; + constructor(registry, value) { + const extensionTypes = (0, util_1.objectSpread)({}, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()); + super(registry, (0, util_1.objectSpread)({}, extensionTypes, knownTypes2), value); + this.__internal__extraTypes = {}; + const getter = (key2) => this.get(key2); + for (const [key2, type] of Object.entries(extensionTypes)) { + if (!knownTypes2[key2]) { + this.__internal__extraTypes[key2] = type; + } + (0, util_1.objectProperty)(this, key2, getter); + } + } + get address() { + return this.getT("address"); + } + get blockHash() { + return this.getT("blockHash"); + } + get blockNumber() { + return this.getT("blockNumber"); + } + get era() { + return this.getT("era"); + } + get genesisHash() { + return this.getT("genesisHash"); + } + get method() { + return this.getT("method"); + } + get nonce() { + return this.getT("nonce"); + } + get runtimeVersion() { + return this.getT("runtimeVersion"); + } + get signedExtensions() { + return this.getT("signedExtensions"); + } + get tip() { + return this.getT("tip"); + } + get assetId() { + return this.getT("assetId"); + } + get version() { + return this.getT("version"); + } + toPayload() { + const result = {}; + const keys = Object.keys(this.__internal__extraTypes); + for (let i = 0, count = keys.length; i < count; i++) { + const key2 = keys[i]; + const value = this.getT(key2); + if (!(value instanceof types_codec_1.Option) || value.isSome) { + result[key2] = value.toJSON(); + } + } + return (0, util_1.objectSpread)(result, { + address: this.address.toString(), + blockHash: this.blockHash.toHex(), + blockNumber: this.blockNumber.toHex(), + era: this.era.toHex(), + genesisHash: this.genesisHash.toHex(), + method: this.method.toHex(), + nonce: this.nonce.toHex(), + signedExtensions: this.signedExtensions.map((e) => e.toString()), + specVersion: this.runtimeVersion.specVersion.toHex(), + tip: this.tip.toHex(), + transactionVersion: this.runtimeVersion.transactionVersion.toHex(), + version: this.version.toNumber() + }); + } + toRaw() { + const payload = this.toPayload(); + const data = (0, util_1.u8aToHex)(this.registry.createTypeUnsafe("ExtrinsicPayload", [payload, { version: payload.version }]).toU8a({ method: true })); + return { + address: payload.address, + data, + type: "payload" + }; + } + }; + exports2.GenericSignerPayload = GenericSignerPayload2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/util.js + var require_util6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sign = void 0; + function sign4(registry, signerPair, u8a, options) { + const encoded = u8a.length > 256 ? registry.hash(u8a) : u8a; + return signerPair.sign(encoded, options); + } + exports2.sign = sign4; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicPayload.js + var require_ExtrinsicPayload2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayloadV4 = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_js_1 = require_util6(); + var GenericExtrinsicPayloadV42 = class extends types_codec_1.Struct { + __internal__signOptions; + constructor(registry, value) { + super(registry, (0, util_1.objectSpread)({ method: "Bytes" }, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()), value); + this.__internal__signOptions = { + withType: registry.createTypeUnsafe("ExtrinsicSignature", []) instanceof types_codec_1.Enum + }; + } + inspect() { + return super.inspect({ method: true }); + } + get blockHash() { + return this.getT("blockHash"); + } + get era() { + return this.getT("era"); + } + get genesisHash() { + return this.getT("genesisHash"); + } + get method() { + return this.getT("method"); + } + get nonce() { + return this.getT("nonce"); + } + get specVersion() { + return this.getT("specVersion"); + } + get tip() { + return this.getT("tip"); + } + get transactionVersion() { + return this.getT("transactionVersion"); + } + get assetId() { + return this.getT("assetId"); + } + sign(signerPair) { + return (0, util_js_1.sign)(this.registry, signerPair, this.toU8a({ method: true }), this.__internal__signOptions); + } + }; + exports2.GenericExtrinsicPayloadV4 = GenericExtrinsicPayloadV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicSignature.js + var require_ExtrinsicSignature = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicSignature.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicSignatureV4 = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload2(); + var FAKE_SIGNATURE2 = new Uint8Array(256).fill(1); + function toAddress2(registry, address) { + return registry.createTypeUnsafe("Address", [(0, util_1.isU8a)(address) ? (0, util_1.u8aToHex)(address) : address]); + } + var GenericExtrinsicSignatureV42 = class extends types_codec_1.Struct { + __internal__signKeys; + constructor(registry, value, { isSigned } = {}) { + const signTypes = registry.getSignedExtensionTypes(); + super(registry, (0, util_1.objectSpread)( + { signer: "Address", signature: "ExtrinsicSignature" }, + signTypes + ), GenericExtrinsicSignatureV42.decodeExtrinsicSignature(value, isSigned)); + this.__internal__signKeys = Object.keys(signTypes); + (0, util_1.objectProperties)(this, this.__internal__signKeys, (k) => this.get(k)); + } + static decodeExtrinsicSignature(value, isSigned = false) { + if (!value) { + return constants_js_1.EMPTY_U8A; + } else if (value instanceof GenericExtrinsicSignatureV42) { + return value; + } + return isSigned ? value : constants_js_1.EMPTY_U8A; + } + get encodedLength() { + return this.isSigned ? super.encodedLength : 0; + } + get isSigned() { + return !this.signature.isEmpty; + } + get era() { + return this.getT("era"); + } + get nonce() { + return this.getT("nonce"); + } + get signature() { + return this.multiSignature.value || this.multiSignature; + } + get multiSignature() { + return this.getT("signature"); + } + get signer() { + return this.getT("signer"); + } + get tip() { + return this.getT("tip"); + } + get assetId() { + return this.getT("assetId"); + } + _injectSignature(signer, signature2, payload) { + for (let i = 0, count = this.__internal__signKeys.length; i < count; i++) { + const k = this.__internal__signKeys[i]; + const v = payload.get(k); + if (!(0, util_1.isUndefined)(v)) { + this.set(k, v); + } + } + this.set("signer", signer); + this.set("signature", signature2); + return this; + } + addSignature(signer, signature2, payload) { + return this._injectSignature(toAddress2(this.registry, signer), this.registry.createTypeUnsafe("ExtrinsicSignature", [signature2]), new ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4(this.registry, payload)); + } + createPayload(method, options) { + const { era, runtimeVersion: { specVersion, transactionVersion } } = options; + return new ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4(this.registry, (0, util_1.objectSpread)({}, options, { + era: era || constants_js_1.IMMORTAL_ERA, + method: method.toHex(), + specVersion, + transactionVersion + })); + } + sign(method, account, options) { + if (!account?.addressRaw) { + throw new Error(`Expected a valid keypair for signing, found ${(0, util_1.stringify)(account)}`); + } + const payload = this.createPayload(method, options); + return this._injectSignature(toAddress2(this.registry, account.addressRaw), this.registry.createTypeUnsafe("ExtrinsicSignature", [payload.sign(account)]), payload); + } + signFake(method, address, options) { + if (!address) { + throw new Error(`Expected a valid address for signing, found ${(0, util_1.stringify)(address)}`); + } + const payload = this.createPayload(method, options); + return this._injectSignature(toAddress2(this.registry, address), this.registry.createTypeUnsafe("ExtrinsicSignature", [FAKE_SIGNATURE2]), payload); + } + toU8a(isBare) { + return this.isSigned ? super.toU8a(isBare) : constants_js_1.EMPTY_U8A; + } + }; + exports2.GenericExtrinsicSignatureV4 = GenericExtrinsicSignatureV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/index.js + var require_v4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicSignatureV4 = exports2.GenericExtrinsicPayloadV4 = exports2.GenericExtrinsicV4 = void 0; + var Extrinsic_js_1 = require_Extrinsic(); + Object.defineProperty(exports2, "GenericExtrinsicV4", { enumerable: true, get: function() { + return Extrinsic_js_1.GenericExtrinsicV4; + } }); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload2(); + Object.defineProperty(exports2, "GenericExtrinsicPayloadV4", { enumerable: true, get: function() { + return ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4; + } }); + var ExtrinsicSignature_js_1 = require_ExtrinsicSignature(); + Object.defineProperty(exports2, "GenericExtrinsicSignatureV4", { enumerable: true, get: function() { + return ExtrinsicSignature_js_1.GenericExtrinsicSignatureV4; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/index.js + var require_extrinsic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericSignerPayload = exports2.GenericExtrinsicUnknown = exports2.GenericExtrinsicPayloadUnknown = exports2.GenericExtrinsicPayload = exports2.GenericMortalEra = exports2.GenericImmortalEra = exports2.GenericExtrinsicEra = exports2.GenericExtrinsic = void 0; + var tslib_1 = require_tslib(); + var Extrinsic_js_1 = require_Extrinsic2(); + Object.defineProperty(exports2, "GenericExtrinsic", { enumerable: true, get: function() { + return Extrinsic_js_1.GenericExtrinsic; + } }); + var ExtrinsicEra_js_1 = require_ExtrinsicEra(); + Object.defineProperty(exports2, "GenericExtrinsicEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.GenericExtrinsicEra; + } }); + Object.defineProperty(exports2, "GenericImmortalEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.ImmortalEra; + } }); + Object.defineProperty(exports2, "GenericMortalEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.MortalEra; + } }); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload(); + Object.defineProperty(exports2, "GenericExtrinsicPayload", { enumerable: true, get: function() { + return ExtrinsicPayload_js_1.GenericExtrinsicPayload; + } }); + var ExtrinsicPayloadUnknown_js_1 = require_ExtrinsicPayloadUnknown(); + Object.defineProperty(exports2, "GenericExtrinsicPayloadUnknown", { enumerable: true, get: function() { + return ExtrinsicPayloadUnknown_js_1.GenericExtrinsicPayloadUnknown; + } }); + var ExtrinsicUnknown_js_1 = require_ExtrinsicUnknown(); + Object.defineProperty(exports2, "GenericExtrinsicUnknown", { enumerable: true, get: function() { + return ExtrinsicUnknown_js_1.GenericExtrinsicUnknown; + } }); + var SignerPayload_js_1 = require_SignerPayload(); + Object.defineProperty(exports2, "GenericSignerPayload", { enumerable: true, get: function() { + return SignerPayload_js_1.GenericSignerPayload; + } }); + tslib_1.__exportStar(require_v4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/AccountId.js + var require_AccountId = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/AccountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericAccountId33 = exports2.GenericAccountId = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function decodeAccountId3(value) { + if ((0, util_1.isU8a)(value) || Array.isArray(value)) { + return (0, util_1.u8aToU8a)(value); + } else if (!value) { + return new Uint8Array(); + } else if ((0, util_1.isHex)(value)) { + return (0, util_1.hexToU8a)(value); + } else if ((0, util_1.isString)(value)) { + return (0, util_crypto_1.decodeAddress)(value.toString()); + } + throw new Error(`Unknown type passed to AccountId constructor, found typeof ${typeof value}`); + } + var BaseAccountId2 = class extends types_codec_1.U8aFixed { + constructor(registry, allowedBits = 256 | 264, value) { + const decoded = decodeAccountId3(value); + const decodedBits = decoded.length * 8; + if (decodedBits < allowedBits && decoded.some((b) => b)) { + throw new Error(`Invalid AccountId provided, expected ${allowedBits >> 3} bytes, found ${decoded.length}`); + } + super(registry, decoded, allowedBits); + } + eq(other) { + return super.eq(decodeAccountId3(other)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + return (0, util_crypto_1.encodeAddress)(this, this.registry.chainSS58); + } + toRawType() { + return "AccountId"; + } + }; + var GenericAccountId2 = class extends BaseAccountId2 { + constructor(registry, value) { + super(registry, 256, value); + } + }; + exports2.GenericAccountId = GenericAccountId2; + var GenericAccountId332 = class extends BaseAccountId2 { + constructor(registry, value) { + super(registry, 264, value); + } + }; + exports2.GenericAccountId33 = GenericAccountId332; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/AccountIndex.js + var require_AccountIndex = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/AccountIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericAccountIndex = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var PREFIX_1BYTE2 = 239; + var PREFIX_2BYTE2 = 252; + var PREFIX_4BYTE2 = 253; + var PREFIX_8BYTE2 = 254; + var MAX_1BYTE2 = new util_1.BN(PREFIX_1BYTE2); + var MAX_2BYTE2 = new util_1.BN(1).shln(16); + var MAX_4BYTE2 = new util_1.BN(1).shln(32); + function decodeAccountIndex2(value) { + if (value instanceof GenericAccountIndex2) { + return value.toBn(); + } else if ((0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isHex)(value) || (0, util_1.isU8a)(value) || (0, util_1.isBigInt)(value)) { + return value; + } + return decodeAccountIndex2((0, util_crypto_1.decodeAddress)(value)); + } + var GenericAccountIndex2 = class extends types_codec_1.u32 { + constructor(registry, value = new util_1.BN(0)) { + super(registry, decodeAccountIndex2(value)); + } + static calcLength(_value) { + const value = (0, util_1.bnToBn)(_value); + if (value.lte(MAX_1BYTE2)) { + return 1; + } else if (value.lt(MAX_2BYTE2)) { + return 2; + } else if (value.lt(MAX_4BYTE2)) { + return 4; + } + return 8; + } + static readLength(input) { + const first = input[0]; + if (first === PREFIX_2BYTE2) { + return [1, 2]; + } else if (first === PREFIX_4BYTE2) { + return [1, 4]; + } else if (first === PREFIX_8BYTE2) { + return [1, 8]; + } + return [0, 1]; + } + static writeLength(input) { + switch (input.length) { + case 2: + return new Uint8Array([PREFIX_2BYTE2]); + case 4: + return new Uint8Array([PREFIX_4BYTE2]); + case 8: + return new Uint8Array([PREFIX_8BYTE2]); + default: + return new Uint8Array([]); + } + } + eq(other) { + if ((0, util_1.isBn)(other) || (0, util_1.isNumber)(other)) { + return super.eq(other); + } + return super.eq(this.registry.createTypeUnsafe("AccountIndex", [other])); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + const length = GenericAccountIndex2.calcLength(this); + return (0, util_crypto_1.encodeAddress)(this.toU8a().subarray(0, length), this.registry.chainSS58); + } + toRawType() { + return "AccountIndex"; + } + }; + exports2.GenericAccountIndex = GenericAccountIndex2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Block.js + var require_Block = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Block.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericBlock = void 0; + var types_codec_1 = require_cjs8(); + var GenericBlock2 = class extends types_codec_1.Struct { + constructor(registry, value) { + super(registry, { + header: "Header", + extrinsics: "Vec" + }, value); + } + get contentHash() { + return this.registry.hash(this.toU8a()); + } + get extrinsics() { + return this.getT("extrinsics"); + } + get hash() { + return this.header.hash; + } + get header() { + return this.getT("header"); + } + }; + exports2.GenericBlock = GenericBlock2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Call.js + var require_Call = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Call.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericCall = exports2.GenericCallIndex = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function getArgsDef2(registry, meta2) { + return meta2.fields.reduce((result, { name: name6, type }, index) => { + result[name6.unwrapOr(`param${index}`).toString()] = registry.createLookupType(type); + return result; + }, {}); + } + function decodeCallViaObject2(registry, value, _meta) { + const { args, callIndex } = value; + const lookupIndex = callIndex instanceof GenericCallIndex2 ? callIndex.toU8a() : callIndex; + const meta2 = _meta || registry.findMetaCall(lookupIndex).meta; + return { + args, + argsDef: getArgsDef2(registry, meta2), + callIndex, + meta: meta2 + }; + } + function decodeCallViaU8a2(registry, value, _meta) { + const callIndex = registry.firstCallIndex.slice(); + callIndex.set(value.subarray(0, 2), 0); + const meta2 = _meta || registry.findMetaCall(callIndex).meta; + return { + args: value.subarray(2), + argsDef: getArgsDef2(registry, meta2), + callIndex, + meta: meta2 + }; + } + function decodeCall2(registry, value = new Uint8Array(), _meta) { + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeCallViaU8a2(registry, (0, util_1.u8aToU8a)(value), _meta); + } else if ((0, util_1.isObject)(value) && value.callIndex && value.args) { + return decodeCallViaObject2(registry, value, _meta); + } + throw new Error(`Call: Cannot decode value '${value}' of type ${typeof value}`); + } + var GenericCallIndex2 = class extends types_codec_1.U8aFixed { + constructor(registry, value) { + super(registry, value, 16); + } + toPrimitive() { + return this.toHex(); + } + }; + exports2.GenericCallIndex = GenericCallIndex2; + var GenericCall2 = class extends types_codec_1.Struct { + _meta; + constructor(registry, value, meta2) { + const decoded = decodeCall2(registry, value, meta2); + try { + super(registry, { + callIndex: GenericCallIndex2, + args: types_codec_1.Struct.with(decoded.argsDef) + }, decoded); + } catch (error) { + let method = "unknown.unknown"; + try { + const c = registry.findMetaCall(decoded.callIndex); + method = `${c.section}.${c.method}`; + } catch { + } + throw new Error(`Call: failed decoding ${method}:: ${error.message}`); + } + this._meta = decoded.meta; + } + get args() { + return [...this.getT("args").values()]; + } + get argsDef() { + return getArgsDef2(this.registry, this.meta); + } + get argsEntries() { + return [...this.getT("args").entries()]; + } + get callIndex() { + return this.getT("callIndex").toU8a(); + } + get data() { + return this.getT("args").toU8a(); + } + get meta() { + return this._meta; + } + get method() { + return this.registry.findMetaCall(this.callIndex).method; + } + get section() { + return this.registry.findMetaCall(this.callIndex).section; + } + is(other) { + return other.callIndex[0] === this.callIndex[0] && other.callIndex[1] === this.callIndex[1]; + } + toHuman(isExpanded, disableAscii) { + let call; + try { + call = this.registry.findMetaCall(this.callIndex); + } catch { + } + return (0, util_1.objectSpread)({ + args: this.argsEntries.reduce((args, [n, a]) => (0, util_1.objectSpread)(args, { [n]: a.toHuman(isExpanded, disableAscii) }), {}), + method: call?.method, + section: call?.section + }, isExpanded && call ? { docs: call.meta.docs.map((d) => d.toString()) } : null); + } + toRawType() { + return "Call"; + } + }; + exports2.GenericCall = GenericCall2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/ChainProperties.js + var require_ChainProperties = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/ChainProperties.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericChainProperties = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function createValue3(registry, type, value, asArray = true) { + if (value && (0, util_1.isFunction)(value.unwrapOrDefault)) { + return value; + } + return registry.createTypeUnsafe(type, [ + asArray ? (0, util_1.isNull)(value) || (0, util_1.isUndefined)(value) ? null : Array.isArray(value) ? value : [value] : value + ]); + } + function decodeValue2(registry, key2, value) { + return key2 === "ss58Format" ? createValue3(registry, "Option", value, false) : key2 === "tokenDecimals" ? createValue3(registry, "Option>", value) : key2 === "tokenSymbol" ? createValue3(registry, "Option>", value) : key2 === "isEthereum" ? createValue3(registry, "Bool", value, false) : value; + } + function decode4(registry, value) { + return (value && (0, util_1.isFunction)(value.entries) ? [...value.entries()] : Object.entries(value || {})).reduce((all, [key2, value2]) => { + all[key2] = decodeValue2(registry, key2, value2); + return all; + }, { + isEthereum: registry.createTypeUnsafe("Bool", []), + ss58Format: registry.createTypeUnsafe("Option", []), + tokenDecimals: registry.createTypeUnsafe("Option>", []), + tokenSymbol: registry.createTypeUnsafe("Option>", []) + }); + } + var GenericChainProperties2 = class extends types_codec_1.Json { + constructor(registry, value) { + super(registry, decode4(registry, value)); + } + get isEthereum() { + return this.getT("isEthereum"); + } + get ss58Format() { + return this.getT("ss58Format"); + } + get tokenDecimals() { + return this.getT("tokenDecimals"); + } + get tokenSymbol() { + return this.getT("tokenSymbol"); + } + }; + exports2.GenericChainProperties = GenericChainProperties2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/ConsensusEngineId.js + var require_ConsensusEngineId = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/ConsensusEngineId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericConsensusEngineId = exports2.CID_NMBS = exports2.CID_POW = exports2.CID_GRPA = exports2.CID_BABE = exports2.CID_AURA = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + exports2.CID_AURA = (0, util_1.stringToU8a)("aura"); + exports2.CID_BABE = (0, util_1.stringToU8a)("BABE"); + exports2.CID_GRPA = (0, util_1.stringToU8a)("FRNK"); + exports2.CID_POW = (0, util_1.stringToU8a)("pow_"); + exports2.CID_NMBS = (0, util_1.stringToU8a)("nmbs"); + function getAuraAuthor2(registry, bytes5, sessionValidators) { + return sessionValidators[registry.createTypeUnsafe("RawAuraPreDigest", [bytes5.toU8a(true)]).slotNumber.mod(new util_1.BN(sessionValidators.length)).toNumber()]; + } + function getBabeAuthor2(registry, bytes5, sessionValidators) { + const digest = registry.createTypeUnsafe("RawBabePreDigestCompat", [bytes5.toU8a(true)]); + return sessionValidators[digest.value.toNumber()]; + } + function getBytesAsAuthor2(registry, bytes5) { + return registry.createTypeUnsafe("AccountId", [bytes5]); + } + var GenericConsensusEngineId2 = class extends types_codec_1.U8aFixed { + constructor(registry, value) { + super(registry, (0, util_1.isNumber)(value) ? (0, util_1.bnToU8a)(value, { isLe: false }) : value, 32); + } + get isAura() { + return this.eq(exports2.CID_AURA); + } + get isBabe() { + return this.eq(exports2.CID_BABE); + } + get isGrandpa() { + return this.eq(exports2.CID_GRPA); + } + get isPow() { + return this.eq(exports2.CID_POW); + } + get isNimbus() { + return this.eq(exports2.CID_NMBS); + } + extractAuthor(bytes5, sessionValidators) { + if (sessionValidators?.length) { + if (this.isAura) { + return getAuraAuthor2(this.registry, bytes5, sessionValidators); + } else if (this.isBabe) { + return getBabeAuthor2(this.registry, bytes5, sessionValidators); + } + } + if (this.isPow || this.isNimbus) { + return getBytesAsAuthor2(this.registry, bytes5); + } + return void 0; + } + toHuman() { + return this.toString(); + } + toRawType() { + return "ConsensusEngineId"; + } + toString() { + return this.isAscii ? (0, util_1.u8aToString)(this) : (0, util_1.u8aToHex)(this); + } + }; + exports2.GenericConsensusEngineId = GenericConsensusEngineId2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/LookupSource.js + var require_LookupSource = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/LookupSource.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericLookupSource = exports2.ACCOUNT_ID_PREFIX = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountId_js_1 = require_AccountId(); + var AccountIndex_js_1 = require_AccountIndex(); + exports2.ACCOUNT_ID_PREFIX = new Uint8Array([255]); + function decodeString3(registry, value) { + const decoded = (0, util_crypto_1.decodeAddress)(value); + return decoded.length === 32 ? registry.createTypeUnsafe("AccountId", [decoded]) : registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(decoded)]); + } + function decodeU8a8(registry, value) { + if (value.length === 32) { + return registry.createTypeUnsafe("AccountId", [value]); + } else if (value[0] === 255) { + return registry.createTypeUnsafe("AccountId", [value.subarray(1)]); + } + const [offset, length] = AccountIndex_js_1.GenericAccountIndex.readLength(value); + return registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(value.subarray(offset, offset + length))]); + } + function decodeAddressOrIndex3(registry, value) { + return value instanceof GenericLookupSource2 ? value.inner : value instanceof AccountId_js_1.GenericAccountId || value instanceof AccountIndex_js_1.GenericAccountIndex ? value : (0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isBigInt)(value) ? registry.createTypeUnsafe("AccountIndex", [value]) : Array.isArray(value) || (0, util_1.isHex)(value) || (0, util_1.isU8a)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : decodeString3(registry, value); + } + var GenericLookupSource2 = class extends types_codec_1.AbstractBase { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAddressOrIndex3(registry, value)); + } + get encodedLength() { + const rawLength = this._rawLength; + return rawLength + (rawLength > 1 ? 1 : 0); + } + get _rawLength() { + return this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength; + } + inspect() { + const value = this.inner.toU8a().subarray(0, this._rawLength); + return { + outer: [ + new Uint8Array(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(value) : exports2.ACCOUNT_ID_PREFIX), + value + ] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toRawType() { + return "Address"; + } + toU8a(isBare) { + const encoded = this.inner.toU8a().subarray(0, this._rawLength); + return isBare ? encoded : (0, util_1.u8aConcat)(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(encoded) : exports2.ACCOUNT_ID_PREFIX, encoded); + } + }; + exports2.GenericLookupSource = GenericLookupSource2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/MultiAddress.js + var require_MultiAddress = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/MultiAddress.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericMultiAddress = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountId_js_1 = require_AccountId(); + var AccountIndex_js_1 = require_AccountIndex(); + function decodeU8a8(registry, u8a) { + if ([0, 32].includes(u8a.length)) { + return { Id: u8a }; + } else if (u8a.length === 20) { + return { Address20: u8a }; + } else if (u8a.length <= 8) { + return { Index: registry.createTypeUnsafe("AccountIndex", [u8a]).toNumber() }; + } + return u8a; + } + function decodeMultiAny2(registry, value) { + if (value instanceof AccountId_js_1.GenericAccountId) { + return { Id: value }; + } else if ((0, util_1.isU8a)(value)) { + return decodeU8a8(registry, value); + } else if (value instanceof GenericMultiAddress2) { + return value; + } else if (value instanceof AccountIndex_js_1.GenericAccountIndex || (0, util_1.isBn)(value) || (0, util_1.isNumber)(value)) { + return { Index: (0, util_1.isNumber)(value) ? value : value.toNumber() }; + } else if ((0, util_1.isString)(value)) { + return decodeU8a8(registry, (0, util_crypto_1.decodeAddress)(value.toString())); + } + return value; + } + var GenericMultiAddress2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + Id: "AccountId", + Index: "Compact", + Raw: "Bytes", + Address32: "H256", + Address20: "H160" + }, decodeMultiAny2(registry, value)); + } + inspect() { + const { inner, outer = [] } = this.inner.inspect(); + return { + inner, + outer: [new Uint8Array([this.index]), ...outer] + }; + } + toString() { + return this.value.toString(); + } + }; + exports2.GenericMultiAddress = GenericMultiAddress2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Vote.js + var require_Vote = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Vote.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericVote = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var AYE_BITS2 = 128; + var NAY_BITS2 = 0; + var CON_MASK2 = 127; + var DEF_CONV2 = 0; + function decodeVoteBool2(value) { + return value ? new Uint8Array([AYE_BITS2 | DEF_CONV2]) : new Uint8Array([NAY_BITS2]); + } + function decodeVoteU8a2(value) { + return value.length ? value.subarray(0, 1) : new Uint8Array([NAY_BITS2]); + } + function decodeVoteType2(registry, value) { + return new Uint8Array([ + (new types_codec_1.Bool(registry, value.aye).isTrue ? AYE_BITS2 : NAY_BITS2) | registry.createTypeUnsafe("Conviction", [value.conviction || DEF_CONV2]).index + ]); + } + function decodeVote2(registry, value) { + if ((0, util_1.isU8a)(value)) { + return decodeVoteU8a2(value); + } else if ((0, util_1.isUndefined)(value) || value instanceof Boolean || (0, util_1.isBoolean)(value)) { + return decodeVoteBool2(new types_codec_1.Bool(registry, value).isTrue); + } else if ((0, util_1.isNumber)(value)) { + return decodeVoteBool2(value < 0); + } + return decodeVoteType2(registry, value); + } + var GenericVote2 = class extends types_codec_1.U8aFixed { + __internal__aye; + __internal__conviction; + constructor(registry, value) { + const decoded = decodeVote2(registry, value); + super(registry, decoded, 8); + this.__internal__aye = (decoded[0] & AYE_BITS2) === AYE_BITS2; + this.__internal__conviction = this.registry.createTypeUnsafe("Conviction", [decoded[0] & CON_MASK2]); + } + get conviction() { + return this.__internal__conviction; + } + get isAye() { + return this.__internal__aye; + } + get isNay() { + return !this.isAye; + } + toHuman(isExpanded) { + return { + conviction: this.conviction.toHuman(isExpanded), + vote: this.isAye ? "Aye" : "Nay" + }; + } + toPrimitive() { + return { + aye: this.isAye, + conviction: this.conviction.toPrimitive() + }; + } + toRawType() { + return "Vote"; + } + }; + exports2.GenericVote = GenericVote2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/AccountId.js + var require_AccountId2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/AccountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumAccountId = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function decodeAccountId3(value) { + if ((0, util_1.isU8a)(value) || Array.isArray(value)) { + return (0, util_1.u8aToU8a)(value); + } else if ((0, util_1.isHex)(value) || (0, util_crypto_1.isEthereumAddress)(value.toString())) { + return (0, util_1.hexToU8a)(value.toString()); + } else if ((0, util_1.isString)(value)) { + return (0, util_1.u8aToU8a)(value); + } + return value; + } + var GenericEthereumAccountId2 = class extends types_codec_1.U8aFixed { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAccountId3(value), 160); + } + eq(other) { + return !!other && super.eq(decodeAccountId3(other)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + return (0, util_crypto_1.ethereumEncode)(this); + } + toRawType() { + return "AccountId"; + } + }; + exports2.GenericEthereumAccountId = GenericEthereumAccountId2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/LookupSource.js + var require_LookupSource2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/LookupSource.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumLookupSource = exports2.ACCOUNT_ID_PREFIX = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountIndex_js_1 = require_AccountIndex(); + var AccountId_js_1 = require_AccountId2(); + exports2.ACCOUNT_ID_PREFIX = new Uint8Array([255]); + function decodeString3(registry, value) { + const decoded = (0, util_crypto_1.decodeAddress)(value); + return decoded.length === 20 ? registry.createTypeUnsafe("EthereumAccountId", [decoded]) : registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(decoded)]); + } + function decodeU8a8(registry, value) { + if (value.length === 20) { + return registry.createTypeUnsafe("EthereumAccountId", [value]); + } else if (value[0] === 255) { + return registry.createTypeUnsafe("EthereumAccountId", [value.subarray(1)]); + } + const [offset, length] = AccountIndex_js_1.GenericAccountIndex.readLength(value); + return registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(value.subarray(offset, offset + length))]); + } + function decodeAddressOrIndex3(registry, value) { + return value instanceof GenericEthereumLookupSource2 ? value.inner : value instanceof AccountId_js_1.GenericEthereumAccountId || value instanceof AccountIndex_js_1.GenericAccountIndex ? value : (0, util_1.isU8a)(value) || Array.isArray(value) || (0, util_1.isHex)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : (0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isBigInt)(value) ? registry.createTypeUnsafe("AccountIndex", [value]) : decodeString3(registry, value); + } + var GenericEthereumLookupSource2 = class extends types_codec_1.AbstractBase { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAddressOrIndex3(registry, value)); + } + get encodedLength() { + const rawLength = this._rawLength; + return rawLength + (rawLength > 1 ? 1 : 0); + } + get _rawLength() { + return this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toRawType() { + return "Address"; + } + toU8a(isBare) { + const encoded = this.inner.toU8a().subarray(0, this._rawLength); + return isBare ? encoded : (0, util_1.u8aConcat)(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(encoded) : exports2.ACCOUNT_ID_PREFIX, encoded); + } + }; + exports2.GenericEthereumLookupSource = GenericEthereumLookupSource2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/index.js + var require_ethereum3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumLookupSource = exports2.GenericEthereumAccountId = void 0; + var AccountId_js_1 = require_AccountId2(); + Object.defineProperty(exports2, "GenericEthereumAccountId", { enumerable: true, get: function() { + return AccountId_js_1.GenericEthereumAccountId; + } }); + var LookupSource_js_1 = require_LookupSource2(); + Object.defineProperty(exports2, "GenericEthereumLookupSource", { enumerable: true, get: function() { + return LookupSource_js_1.GenericEthereumLookupSource; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/index.js + var require_generic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericVote = exports2.GenericMultiAddress = exports2.GenericAddress = exports2.GenericLookupSource = exports2.GenericEventData = exports2.GenericEvent = exports2.GenericConsensusEngineId = exports2.GenericChainProperties = exports2.GenericCall = exports2.GenericBlock = exports2.GenericAccountIndex = exports2.GenericAccountId33 = exports2.GenericAccountId32 = exports2.GenericAccountId = void 0; + var tslib_1 = require_tslib(); + var AccountId_js_1 = require_AccountId(); + Object.defineProperty(exports2, "GenericAccountId", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId; + } }); + Object.defineProperty(exports2, "GenericAccountId32", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId; + } }); + Object.defineProperty(exports2, "GenericAccountId33", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId33; + } }); + var AccountIndex_js_1 = require_AccountIndex(); + Object.defineProperty(exports2, "GenericAccountIndex", { enumerable: true, get: function() { + return AccountIndex_js_1.GenericAccountIndex; + } }); + var Block_js_1 = require_Block(); + Object.defineProperty(exports2, "GenericBlock", { enumerable: true, get: function() { + return Block_js_1.GenericBlock; + } }); + var Call_js_1 = require_Call(); + Object.defineProperty(exports2, "GenericCall", { enumerable: true, get: function() { + return Call_js_1.GenericCall; + } }); + var ChainProperties_js_1 = require_ChainProperties(); + Object.defineProperty(exports2, "GenericChainProperties", { enumerable: true, get: function() { + return ChainProperties_js_1.GenericChainProperties; + } }); + var ConsensusEngineId_js_1 = require_ConsensusEngineId(); + Object.defineProperty(exports2, "GenericConsensusEngineId", { enumerable: true, get: function() { + return ConsensusEngineId_js_1.GenericConsensusEngineId; + } }); + var Event_js_1 = require_Event(); + Object.defineProperty(exports2, "GenericEvent", { enumerable: true, get: function() { + return Event_js_1.GenericEvent; + } }); + Object.defineProperty(exports2, "GenericEventData", { enumerable: true, get: function() { + return Event_js_1.GenericEventData; + } }); + var LookupSource_js_1 = require_LookupSource(); + Object.defineProperty(exports2, "GenericLookupSource", { enumerable: true, get: function() { + return LookupSource_js_1.GenericLookupSource; + } }); + var MultiAddress_js_1 = require_MultiAddress(); + Object.defineProperty(exports2, "GenericAddress", { enumerable: true, get: function() { + return MultiAddress_js_1.GenericMultiAddress; + } }); + Object.defineProperty(exports2, "GenericMultiAddress", { enumerable: true, get: function() { + return MultiAddress_js_1.GenericMultiAddress; + } }); + var Vote_js_1 = require_Vote(); + Object.defineProperty(exports2, "GenericVote", { enumerable: true, get: function() { + return Vote_js_1.GenericVote; + } }); + tslib_1.__exportStar(require_ethereum3(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/Data.js + var require_Data = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/Data.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Data = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function decodeDataU8a2(registry, value) { + const indicator = value[0]; + if (!indicator) { + return [void 0, void 0]; + } else if (indicator >= 1 && indicator <= 33) { + const length = indicator - 1; + const data = value.subarray(1, length + 1); + return [registry.createTypeUnsafe("Raw", [data]), 1]; + } else if (indicator >= 34 && indicator <= 37) { + return [value.subarray(1, 32 + 1), indicator - 32]; + } + throw new Error(`Unable to decode Data, invalid indicator byte ${indicator}`); + } + function decodeData2(registry, value) { + if ((0, util_1.isU8a)(value) || (0, util_1.isString)(value)) { + return decodeDataU8a2(registry, (0, util_1.u8aToU8a)(value)); + } else if (!value) { + return [void 0, void 0]; + } + return [value, void 0]; + } + var Data2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + None: "Null", + Raw: "Bytes", + BlakeTwo256: "H256", + Sha256: "H256", + Keccak256: "H256", + ShaThree256: "H256" + }, ...decodeData2(registry, value)); + if (this.isRaw && this.asRaw.length > 32) { + throw new Error("Data.Raw values are limited to a maximum length of 32 bytes"); + } + } + get asBlakeTwo256() { + return this.value; + } + get asKeccak256() { + return this.value; + } + get asRaw() { + return this.value; + } + get asSha256() { + return this.value; + } + get asShaThree256() { + return this.value; + } + get isBlakeTwo256() { + return this.index === 2; + } + get isKeccak256() { + return this.index === 4; + } + get isNone() { + return this.index === 0; + } + get isRaw() { + return this.index === 1; + } + get isSha256() { + return this.index === 3; + } + get isShaThree256() { + return this.index === 5; + } + get encodedLength() { + return this.toU8a().length; + } + toU8a() { + if (this.index === 0) { + return new Uint8Array(1); + } else if (this.index === 1) { + const data = this.value.toU8a(true); + const length = Math.min(data.length, 32); + const u8a2 = new Uint8Array(length + 1); + u8a2.set([length + 1], 0); + u8a2.set(data.subarray(0, length), 1); + return u8a2; + } + const u8a = new Uint8Array(33); + u8a.set([this.index + 32], 0); + u8a.set(this.value.toU8a(), 1); + return u8a; + } + }; + exports2.Data = Data2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/StorageKey.js + var require_StorageKey = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/StorageKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StorageKey = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_util4(); + var index_js_2 = require_util5(); + var HASHER_MAP2 = { + Blake2_128: [16, false], + Blake2_128Concat: [16, true], + Blake2_256: [32, false], + Identity: [0, true], + Twox128: [16, false], + Twox256: [32, false], + Twox64Concat: [8, true] + }; + function decodeStorageKey2(value) { + if ((0, util_1.isU8a)(value) || !value || (0, util_1.isString)(value)) { + return { key: value }; + } else if (value instanceof StorageKey2) { + return { + key: value, + method: value.method, + section: value.section + }; + } else if ((0, util_1.isFunction)(value)) { + return { + key: value(), + method: value.method, + section: value.section + }; + } else if (Array.isArray(value)) { + const [fn2, args = []] = value; + if (!(0, util_1.isFunction)(fn2)) { + throw new Error("Expected function input for key construction"); + } + if (fn2.meta && fn2.meta.type.isMap) { + const map2 = fn2.meta.type.asMap; + if (!Array.isArray(args) || args.length !== map2.hashers.length) { + throw new Error(`Expected an array of ${map2.hashers.length} values as params to a Map query`); + } + } + return { + key: fn2(...args), + method: fn2.method, + section: fn2.section + }; + } + throw new Error(`Unable to convert input ${value} to StorageKey`); + } + function decodeHashers2(registry, value, hashers) { + let offset = 32; + const count = hashers.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const [hasher2, type] = hashers[i]; + const [hashLen, canDecode] = HASHER_MAP2[hasher2.type]; + const decoded = canDecode ? registry.createTypeUnsafe((0, index_js_1.getSiName)(registry.lookup, type), [value.subarray(offset + hashLen)]) : registry.createTypeUnsafe("Raw", [value.subarray(offset, offset + hashLen)]); + offset += hashLen + (canDecode ? decoded.encodedLength : 0); + result[i] = decoded; + } + return result; + } + function decodeArgsFromMeta2(registry, value, meta2) { + if (!meta2 || !meta2.type.isMap) { + return []; + } + const { hashers, key: key2 } = meta2.type.asMap; + const keys = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple; + return decodeHashers2(registry, value, hashers.map((h, i) => [h, keys[i]])); + } + function getMeta2(value) { + if (value instanceof StorageKey2) { + return value.meta; + } else if ((0, util_1.isFunction)(value)) { + return value.meta; + } else if (Array.isArray(value)) { + const [fn2] = value; + return fn2.meta; + } + return void 0; + } + function getType2(registry, value) { + if (value instanceof StorageKey2) { + return value.outputType; + } else if ((0, util_1.isFunction)(value)) { + return (0, index_js_2.unwrapStorageType)(registry, value.meta.type); + } else if (Array.isArray(value)) { + const [fn2] = value; + if (fn2.meta) { + return (0, index_js_2.unwrapStorageType)(registry, fn2.meta.type); + } + } + return "Raw"; + } + var StorageKey2 = class extends types_codec_1.Bytes { + __internal__args; + __internal__meta; + __internal__outputType; + __internal__method; + __internal__section; + constructor(registry, value, override = {}) { + const { key: key2, method, section } = decodeStorageKey2(value); + super(registry, key2); + this.__internal__outputType = getType2(registry, value); + this.setMeta(getMeta2(value), override.section || section, override.method || method); + } + get args() { + return this.__internal__args; + } + get meta() { + return this.__internal__meta; + } + get method() { + return this.__internal__method; + } + get outputType() { + return this.__internal__outputType; + } + get section() { + return this.__internal__section; + } + is(key2) { + return key2.section === this.section && key2.method === this.method; + } + setMeta(meta2, section, method) { + this.__internal__meta = meta2; + this.__internal__method = method || this.__internal__method; + this.__internal__section = section || this.__internal__section; + if (meta2) { + this.__internal__outputType = (0, index_js_2.unwrapStorageType)(this.registry, meta2.type); + } + try { + this.__internal__args = decodeArgsFromMeta2(this.registry, this.toU8a(true), meta2); + } catch { + } + return this; + } + toHuman(_isExtended, disableAscii) { + return this.__internal__args.length ? this.__internal__args.map((a) => a.toHuman(void 0, disableAscii)) : super.toHuman(void 0, disableAscii); + } + toRawType() { + return "StorageKey"; + } + }; + exports2.StorageKey = StorageKey2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/index.js + var require_primitive2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StorageKey = exports2.Data = exports2.usize = exports2.USize = exports2.u256 = exports2.U256 = exports2.u128 = exports2.U128 = exports2.u64 = exports2.U64 = exports2.u32 = exports2.U32 = exports2.u16 = exports2.U16 = exports2.u8 = exports2.U8 = exports2.Type = exports2.Text = exports2.OptionBool = exports2.Null = exports2.isize = exports2.ISize = exports2.i256 = exports2.I256 = exports2.i128 = exports2.I128 = exports2.i64 = exports2.I64 = exports2.i32 = exports2.I32 = exports2.i16 = exports2.I16 = exports2.i8 = exports2.I8 = exports2.f64 = exports2.F64 = exports2.f32 = exports2.F32 = exports2.Bytes = exports2.bool = exports2.Bool = exports2.BitVec = void 0; + var types_codec_1 = require_cjs8(); + Object.defineProperty(exports2, "BitVec", { enumerable: true, get: function() { + return types_codec_1.BitVec; + } }); + Object.defineProperty(exports2, "Bool", { enumerable: true, get: function() { + return types_codec_1.Bool; + } }); + Object.defineProperty(exports2, "bool", { enumerable: true, get: function() { + return types_codec_1.bool; + } }); + Object.defineProperty(exports2, "Bytes", { enumerable: true, get: function() { + return types_codec_1.Bytes; + } }); + Object.defineProperty(exports2, "F32", { enumerable: true, get: function() { + return types_codec_1.F32; + } }); + Object.defineProperty(exports2, "f32", { enumerable: true, get: function() { + return types_codec_1.f32; + } }); + Object.defineProperty(exports2, "F64", { enumerable: true, get: function() { + return types_codec_1.F64; + } }); + Object.defineProperty(exports2, "f64", { enumerable: true, get: function() { + return types_codec_1.f64; + } }); + Object.defineProperty(exports2, "I8", { enumerable: true, get: function() { + return types_codec_1.I8; + } }); + Object.defineProperty(exports2, "i8", { enumerable: true, get: function() { + return types_codec_1.i8; + } }); + Object.defineProperty(exports2, "I16", { enumerable: true, get: function() { + return types_codec_1.I16; + } }); + Object.defineProperty(exports2, "i16", { enumerable: true, get: function() { + return types_codec_1.i16; + } }); + Object.defineProperty(exports2, "I32", { enumerable: true, get: function() { + return types_codec_1.I32; + } }); + Object.defineProperty(exports2, "i32", { enumerable: true, get: function() { + return types_codec_1.i32; + } }); + Object.defineProperty(exports2, "I64", { enumerable: true, get: function() { + return types_codec_1.I64; + } }); + Object.defineProperty(exports2, "i64", { enumerable: true, get: function() { + return types_codec_1.i64; + } }); + Object.defineProperty(exports2, "I128", { enumerable: true, get: function() { + return types_codec_1.I128; + } }); + Object.defineProperty(exports2, "i128", { enumerable: true, get: function() { + return types_codec_1.i128; + } }); + Object.defineProperty(exports2, "I256", { enumerable: true, get: function() { + return types_codec_1.I256; + } }); + Object.defineProperty(exports2, "i256", { enumerable: true, get: function() { + return types_codec_1.i256; + } }); + Object.defineProperty(exports2, "ISize", { enumerable: true, get: function() { + return types_codec_1.ISize; + } }); + Object.defineProperty(exports2, "isize", { enumerable: true, get: function() { + return types_codec_1.isize; + } }); + Object.defineProperty(exports2, "Null", { enumerable: true, get: function() { + return types_codec_1.Null; + } }); + Object.defineProperty(exports2, "OptionBool", { enumerable: true, get: function() { + return types_codec_1.OptionBool; + } }); + Object.defineProperty(exports2, "Text", { enumerable: true, get: function() { + return types_codec_1.Text; + } }); + Object.defineProperty(exports2, "Type", { enumerable: true, get: function() { + return types_codec_1.Type; + } }); + Object.defineProperty(exports2, "U8", { enumerable: true, get: function() { + return types_codec_1.U8; + } }); + Object.defineProperty(exports2, "u8", { enumerable: true, get: function() { + return types_codec_1.u8; + } }); + Object.defineProperty(exports2, "U16", { enumerable: true, get: function() { + return types_codec_1.U16; + } }); + Object.defineProperty(exports2, "u16", { enumerable: true, get: function() { + return types_codec_1.u16; + } }); + Object.defineProperty(exports2, "U32", { enumerable: true, get: function() { + return types_codec_1.U32; + } }); + Object.defineProperty(exports2, "u32", { enumerable: true, get: function() { + return types_codec_1.u32; + } }); + Object.defineProperty(exports2, "U64", { enumerable: true, get: function() { + return types_codec_1.U64; + } }); + Object.defineProperty(exports2, "u64", { enumerable: true, get: function() { + return types_codec_1.u64; + } }); + Object.defineProperty(exports2, "U128", { enumerable: true, get: function() { + return types_codec_1.U128; + } }); + Object.defineProperty(exports2, "u128", { enumerable: true, get: function() { + return types_codec_1.u128; + } }); + Object.defineProperty(exports2, "U256", { enumerable: true, get: function() { + return types_codec_1.U256; + } }); + Object.defineProperty(exports2, "u256", { enumerable: true, get: function() { + return types_codec_1.u256; + } }); + Object.defineProperty(exports2, "USize", { enumerable: true, get: function() { + return types_codec_1.USize; + } }); + Object.defineProperty(exports2, "usize", { enumerable: true, get: function() { + return types_codec_1.usize; + } }); + var Data_js_1 = require_Data(); + Object.defineProperty(exports2, "Data", { enumerable: true, get: function() { + return Data_js_1.Data; + } }); + var StorageKey_js_1 = require_StorageKey(); + Object.defineProperty(exports2, "StorageKey", { enumerable: true, get: function() { + return StorageKey_js_1.StorageKey; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/index.types.js + var require_index_types = __commonJS({ + "../../node_modules/@polkadot/types/cjs/index.types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_extrinsic(), exports2); + tslib_1.__exportStar(require_generic(), exports2); + tslib_1.__exportStar(require_primitive2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/util.js + var require_util7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.objectNameToString = exports2.objectNameToCamel = void 0; + var util_1 = require_cjs3(); + function convert2(fn2) { + return ({ name: name6 }) => fn2(name6); + } + exports2.objectNameToCamel = convert2(util_1.stringCamelCase); + exports2.objectNameToString = convert2((n) => n.toString()); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/createUnchecked.js + var require_createUnchecked = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/createUnchecked.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createUnchecked = void 0; + var util_1 = require_cjs3(); + function isTx2(tx2, callIndex) { + return tx2.callIndex[0] === callIndex[0] && tx2.callIndex[1] === callIndex[1]; + } + function createUnchecked2(registry, section, callIndex, callMetadata) { + const expectedArgs = callMetadata.fields; + const funcName = (0, util_1.stringCamelCase)(callMetadata.name); + const extrinsicFn = (...args) => { + if (expectedArgs.length !== args.length) { + throw new Error(`Extrinsic ${section}.${funcName} expects ${expectedArgs.length} arguments, got ${args.length}.`); + } + return registry.createTypeUnsafe("Call", [{ args, callIndex }, callMetadata]); + }; + extrinsicFn.is = (tx2) => isTx2(tx2, callIndex); + extrinsicFn.callIndex = callIndex; + extrinsicFn.meta = callMetadata; + extrinsicFn.method = funcName; + extrinsicFn.section = section; + extrinsicFn.toJSON = () => callMetadata.toJSON(); + return extrinsicFn; + } + exports2.createUnchecked = createUnchecked2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/index.js + var require_extrinsics = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateExtrinsics = exports2.createCallFunction = exports2.filterCallsSome = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var index_js_1 = require_util4(); + var util_js_1 = require_util7(); + var createUnchecked_js_1 = require_createUnchecked(); + function filterCallsSome2({ calls }) { + return calls.isSome; + } + exports2.filterCallsSome = filterCallsSome2; + function createCallFunction2(registry, lookup, variant, sectionName, sectionIndex) { + const { fields, index } = variant; + const count = fields.length; + const args = new Array(count); + for (let i = 0; i < count; i++) { + const { name: name6, type, typeName } = fields[i]; + args[i] = (0, util_1.objectSpread)({ + name: (0, util_1.stringCamelCase)(name6.unwrapOr(`param${i}`)), + type: (0, index_js_1.getSiName)(lookup, type) + }, typeName.isSome ? { typeName: typeName.unwrap() } : null); + } + return (0, createUnchecked_js_1.createUnchecked)(registry, sectionName, new Uint8Array([sectionIndex, index.toNumber()]), registry.createTypeUnsafe("FunctionMetadataLatest", [(0, util_1.objectSpread)({ args }, variant)])); + } + exports2.createCallFunction = createCallFunction2; + function decorateExtrinsics2(registry, { lookup, pallets }, version23) { + const result = {}; + const filtered = pallets.filter(filterCallsSome2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { calls, index, name: name6 } = filtered[i]; + const sectionName = (0, util_1.stringCamelCase)(name6); + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, sectionName, () => (0, lazy_js_1.lazyVariants)(lookup, calls.unwrap(), util_js_1.objectNameToCamel, (variant) => createCallFunction2(registry, lookup, variant, sectionName, sectionIndex))); + } + return result; + } + exports2.decorateExtrinsics = decorateExtrinsics2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v9/toV10.js + var require_toV10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v9/toV10.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV10 = void 0; + var util_1 = require_cjs3(); + function createStorageHasher2(registry, hasher2) { + if (hasher2.toNumber() >= 2) { + return registry.createTypeUnsafe("StorageHasherV10", [hasher2.toNumber() + 1]); + } + return registry.createTypeUnsafe("StorageHasherV10", [hasher2]); + } + function createStorageType2(registry, entryType) { + if (entryType.isMap) { + return [(0, util_1.objectSpread)({}, entryType.asMap, { + hasher: createStorageHasher2(registry, entryType.asMap.hasher) + }), 1]; + } + if (entryType.isDoubleMap) { + return [(0, util_1.objectSpread)({}, entryType.asDoubleMap, { + hasher: createStorageHasher2(registry, entryType.asDoubleMap.hasher), + key2Hasher: createStorageHasher2(registry, entryType.asDoubleMap.key2Hasher) + }), 2]; + } + return [entryType.asPlain, 0]; + } + function convertModule2(registry, mod3) { + const storage = mod3.storage.unwrapOr(null); + return registry.createTypeUnsafe("ModuleMetadataV10", [(0, util_1.objectSpread)({}, mod3, { + storage: storage ? (0, util_1.objectSpread)({}, storage, { + items: storage.items.map((item) => (0, util_1.objectSpread)({}, item, { + type: registry.createTypeUnsafe("StorageEntryTypeV10", createStorageType2(registry, item.type)) + })) + }) : null + })]); + } + function toV102(registry, { modules }) { + return registry.createTypeUnsafe("MetadataV10", [{ + modules: modules.map((mod3) => convertModule2(registry, mod3)) + }]); + } + exports2.toV10 = toV102; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v10/toV11.js + var require_toV11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v10/toV11.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV11 = void 0; + function toV112(registry, { modules }) { + return registry.createTypeUnsafe("MetadataV11", [{ + extrinsic: { + signedExtensions: [], + version: 0 + }, + modules + }]); + } + exports2.toV11 = toV112; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v11/toV12.js + var require_toV12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v11/toV12.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV12 = void 0; + var util_1 = require_cjs3(); + function toV122(registry, { extrinsic, modules }) { + return registry.createTypeUnsafe("MetadataV12", [{ + extrinsic, + modules: modules.map((mod3) => registry.createTypeUnsafe("ModuleMetadataV12", [(0, util_1.objectSpread)({}, mod3, { index: 255 })])) + }]); + } + exports2.toV12 = toV122; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v12/toV13.js + var require_toV13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v12/toV13.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV13 = void 0; + function toV132(registry, v122) { + return registry.createTypeUnsafe("MetadataV13", [v122]); + } + exports2.toV13 = toV132; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/alias.js + var require_alias = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/alias.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAliasTypes = void 0; + var typesAlias2 = { + assets: { + Approval: "AssetApproval", + ApprovalKey: "AssetApprovalKey", + Balance: "TAssetBalance", + DestroyWitness: "AssetDestroyWitness" + }, + babe: { + EquivocationProof: "BabeEquivocationProof" + }, + balances: { + Status: "BalanceStatus" + }, + beefy: { + AuthorityId: "BeefyId" + }, + contracts: { + StorageKey: "ContractStorageKey" + }, + electionProviderMultiPhase: { + Phase: "ElectionPhase" + }, + ethereum: { + Block: "EthBlock", + Header: "EthHeader", + Receipt: "EthReceipt", + Transaction: "EthTransaction", + TransactionStatus: "EthTransactionStatus" + }, + evm: { + Account: "EvmAccount", + Log: "EvmLog", + Vicinity: "EvmVicinity" + }, + grandpa: { + Equivocation: "GrandpaEquivocation", + EquivocationProof: "GrandpaEquivocationProof" + }, + identity: { + Judgement: "IdentityJudgement" + }, + inclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraDisputes: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraInclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraScheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraShared: { + ValidatorIndex: "ParaValidatorIndex" + }, + parachains: { + Id: "ParaId" + }, + parasDisputes: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasInclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasScheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasShared: { + ValidatorIndex: "ParaValidatorIndex" + }, + proposeParachain: { + Proposal: "ParachainProposal" + }, + proxy: { + Announcement: "ProxyAnnouncement" + }, + scheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + shared: { + ValidatorIndex: "ParaValidatorIndex" + }, + society: { + Judgement: "SocietyJudgement", + Vote: "SocietyVote" + }, + staking: { + Compact: "CompactAssignments" + }, + treasury: { + Proposal: "TreasuryProposal" + }, + xcm: { + AssetId: "XcmAssetId" + }, + xcmPallet: { + AssetId: "XcmAssetId" + } + }; + function getAliasTypes2({ knownTypes: knownTypes2 }, section) { + return { + ...typesAlias2[section] ?? {}, + ...knownTypes2.typesAlias?.[section] ?? {} + }; + } + exports2.getAliasTypes = getAliasTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v13/toV14.js + var require_toV14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v13/toV14.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV14 = void 0; + var util_1 = require_cjs3(); + var alias_js_1 = require_alias(); + var definitions_js_1 = require_definitions2(); + var BOXES2 = [["<", ">"], ["<", ","], [",", ">"], ["(", ")"], ["(", ","], [",", ","], [",", ")"]]; + function compatType2(specs, _type) { + const type = _type.toString(); + const index = specs.findIndex(({ def }) => def.HistoricMetaCompat === type); + if (index !== -1) { + return index; + } + return specs.push({ + def: { + HistoricMetaCompat: type + } + }) - 1; + } + function compatTypes2(specs, ...types2) { + for (let i = 0, count = types2.length; i < count; i++) { + compatType2(specs, types2[i]); + } + } + function makeTupleType2(specs, entries) { + return specs.push({ + def: { + Tuple: entries + } + }) - 1; + } + function makeVariantType2(modName, variantType, specs, variants) { + return specs.push({ + def: { + Variant: { variants } + }, + path: [`pallet_${modName.toString()}`, "pallet", variantType] + }) - 1; + } + function registerOriginCaller2(registry, modules, metaVersion) { + registry.register({ + OriginCaller: { + _enum: modules.map((mod3, index) => [ + mod3.name.toString(), + metaVersion >= 12 ? mod3.index.toNumber() : index + ]).sort((a, b) => a[1] - b[1]).reduce((result, [name6, index]) => { + for (let i = Object.keys(result).length; i < index; i++) { + result[`Empty${i}`] = "Null"; + } + result[name6] = definitions_js_1.knownOrigins[name6] || "Null"; + return result; + }, {}) + } + }); + } + function setTypeOverride2(sectionTypes, types2) { + types2.forEach((type) => { + const override = Object.keys(sectionTypes).find((aliased) => type.eq(aliased)); + if (override) { + type.setOverride(sectionTypes[override]); + } else { + const orig = type.toString(); + const alias2 = Object.entries(sectionTypes).reduce((result, [src, dst]) => BOXES2.reduce((result2, [a, z]) => result2.replace(`${a}${src}${z}`, `${a}${dst}${z}`), result), orig); + if (orig !== alias2) { + type.setOverride(alias2); + } + } + }); + } + function convertCalls2(specs, registry, modName, calls, sectionTypes) { + const variants = calls.map(({ args, docs, name: name6 }, index) => { + setTypeOverride2(sectionTypes, args.map(({ type }) => type)); + return registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: args.map(({ name: name7, type }) => registry.createTypeUnsafe("SiField", [{ name: name7, type: compatType2(specs, type) }])), + index, + name: name6 + }]); + }); + return registry.createTypeUnsafe("PalletCallMetadataV14", [{ + type: makeVariantType2(modName, "Call", specs, variants) + }]); + } + function convertConstants2(specs, registry, constants2, sectionTypes) { + return constants2.map(({ docs, name: name6, type, value }) => { + setTypeOverride2(sectionTypes, [type]); + return registry.createTypeUnsafe("PalletConstantMetadataV14", [{ + docs, + name: name6, + type: compatType2(specs, type), + value + }]); + }); + } + function convertErrors2(specs, registry, modName, errors2, _sectionTypes) { + const variants = errors2.map(({ docs, name: name6 }, index) => registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: [], + index, + name: name6 + }])); + return registry.createTypeUnsafe("PalletErrorMetadataV14", [{ + type: makeVariantType2(modName, "Error", specs, variants) + }]); + } + function convertEvents2(specs, registry, modName, events, sectionTypes) { + const variants = events.map(({ args, docs, name: name6 }, index) => { + setTypeOverride2(sectionTypes, args); + return registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: args.map((t) => registry.createTypeUnsafe("SiField", [{ type: compatType2(specs, t) }])), + index, + name: name6 + }]); + }); + return registry.createTypeUnsafe("PalletEventMetadataV14", [{ + type: makeVariantType2(modName, "Event", specs, variants) + }]); + } + function createMapEntry2(specs, registry, sectionTypes, { hashers, isLinked, isOptional, keys, value }) { + setTypeOverride2(sectionTypes, [value, ...Array.isArray(keys) ? keys : [keys]]); + return registry.createTypeUnsafe("StorageEntryTypeV14", [{ + Map: { + hashers, + key: hashers.length === 1 ? compatType2(specs, keys[0]) : makeTupleType2(specs, keys.map((t) => compatType2(specs, t))), + value: isLinked ? compatType2(specs, `(${isOptional ? `Option<${value.toString()}>` : value.toString()}, Linkage<${keys[0].toString()}>)`) : compatType2(specs, value) + } + }]); + } + function convertStorage2(specs, registry, { items, prefix }, sectionTypes) { + return registry.createTypeUnsafe("PalletStorageMetadataV14", [{ + items: items.map(({ docs, fallback, modifier, name: name6, type }) => { + let entryType; + if (type.isPlain) { + const plain = type.asPlain; + setTypeOverride2(sectionTypes, [plain]); + entryType = registry.createTypeUnsafe("StorageEntryTypeV14", [{ + Plain: compatType2(specs, plain) + }]); + } else if (type.isMap) { + const map2 = type.asMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: [map2.hasher], + isLinked: map2.linked.isTrue, + isOptional: modifier.isOptional, + keys: [map2.key], + value: map2.value + }); + } else if (type.isDoubleMap) { + const dm2 = type.asDoubleMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: [dm2.hasher, dm2.key2Hasher], + isLinked: false, + isOptional: modifier.isOptional, + keys: [dm2.key1, dm2.key2], + value: dm2.value + }); + } else { + const nm2 = type.asNMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: nm2.hashers, + isLinked: false, + isOptional: modifier.isOptional, + keys: nm2.keyVec, + value: nm2.value + }); + } + return registry.createTypeUnsafe("StorageEntryMetadataV14", [{ + docs, + fallback, + modifier, + name: name6, + type: entryType + }]); + }), + prefix + }]); + } + function convertExtrinsic2(registry, { signedExtensions, version: version23 }) { + return registry.createTypeUnsafe("ExtrinsicMetadataV14", [{ + signedExtensions: signedExtensions.map((identifier) => ({ + identifier, + type: 0 + })), + type: 0, + version: version23 + }]); + } + function createPallet2(specs, registry, mod3, { calls, constants: constants2, errors: errors2, events, storage }) { + const sectionTypes = (0, alias_js_1.getAliasTypes)(registry, (0, util_1.stringCamelCase)(mod3.name)); + return registry.createTypeUnsafe("PalletMetadataV14", [{ + calls: calls && convertCalls2(specs, registry, mod3.name, calls, sectionTypes), + constants: convertConstants2(specs, registry, constants2, sectionTypes), + errors: errors2 && convertErrors2(specs, registry, mod3.name, errors2, sectionTypes), + events: events && convertEvents2(specs, registry, mod3.name, events, sectionTypes), + index: mod3.index, + name: mod3.name, + storage: storage && convertStorage2(specs, registry, storage, sectionTypes) + }]); + } + function toV142(registry, v132, metaVersion) { + const specs = []; + compatTypes2(specs, "Null", "u8", "u16", "u32", "u64"); + registerOriginCaller2(registry, v132.modules, metaVersion); + const extrinsic = convertExtrinsic2(registry, v132.extrinsic); + const pallets = v132.modules.map((mod3) => createPallet2(specs, registry, mod3, { + calls: mod3.calls.unwrapOr(null), + constants: mod3.constants, + errors: mod3.errors.length ? mod3.errors : null, + events: mod3.events.unwrapOr(null), + storage: mod3.storage.unwrapOr(null) + })); + return registry.createTypeUnsafe("MetadataV14", [{ + extrinsic, + lookup: { + types: specs.map((type, id4) => registry.createTypeUnsafe("PortableType", [{ id: id4, type }])) + }, + pallets + }]); + } + exports2.toV14 = toV142; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v14/toV15.js + var require_toV15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v14/toV15.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV15 = void 0; + var util_1 = require_cjs3(); + function toV152(registry, v143, _) { + const unchecked = v143.lookup.paramTypes.SpRuntimeUncheckedExtrinsic; + return registry.createTypeUnsafe("MetadataV15", [ + (0, util_1.objectSpread)({}, v143, { + extrinsic: registry.createTypeUnsafe("ExtrinsicMetadataV15", [ + (0, util_1.objectSpread)({}, v143.extrinsic, { + addressType: unchecked?.[0].type.unwrapOr(0), + callType: unchecked?.[1].type.unwrapOr(0), + extraType: unchecked?.[3].type.unwrapOr(0), + signatureType: unchecked?.[2].type.unwrapOr(0) + }) + ]), + outerEnums: registry.createTypeUnsafe("OuterEnums15", [{ + callType: unchecked?.[1].type.unwrapOr(0), + eventType: v143.lookup.paramTypes.FrameSystemEventRecord?.[0].type.unwrapOr(0) + }]) + }) + ]); + } + exports2.toV15 = toV152; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v15/toLatest.js + var require_toLatest = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v15/toLatest.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toLatest = void 0; + function toLatest2(_registry, v152, _metaVersion) { + return v152; + } + exports2.toLatest = toLatest2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/MagicNumber.js + var require_MagicNumber = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/MagicNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MagicNumber = exports2.MAGIC_NUMBER = void 0; + var types_codec_1 = require_cjs8(); + exports2.MAGIC_NUMBER = 1635018093; + var MagicNumber2 = class extends types_codec_1.U32 { + constructor(registry, value) { + super(registry, value); + if (!this.isEmpty && !this.eq(exports2.MAGIC_NUMBER)) { + throw new Error(`MagicNumber mismatch: expected ${registry.createTypeUnsafe("u32", [exports2.MAGIC_NUMBER]).toHex()}, found ${this.toHex()}`); + } + } + }; + exports2.MagicNumber = MagicNumber2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/versions.js + var require_versions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/versions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TO_CALLS_VERSION = exports2.LATEST_VERSION = exports2.KNOWN_VERSIONS = void 0; + exports2.KNOWN_VERSIONS = [15, 14, 13, 12, 11, 10, 9]; + exports2.LATEST_VERSION = exports2.KNOWN_VERSIONS[0]; + exports2.TO_CALLS_VERSION = 14; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/MetadataVersioned.js + var require_MetadataVersioned = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/MetadataVersioned.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MetadataVersioned = void 0; + var types_codec_1 = require_cjs8(); + var index_js_1 = require_util4(); + var toV10_js_1 = require_toV10(); + var toV11_js_1 = require_toV11(); + var toV12_js_1 = require_toV12(); + var toV13_js_1 = require_toV13(); + var toV14_js_1 = require_toV14(); + var toV15_js_1 = require_toV15(); + var toLatest_js_1 = require_toLatest(); + var MagicNumber_js_1 = require_MagicNumber(); + var versions_js_1 = require_versions(); + var MetadataVersioned2 = class extends types_codec_1.Struct { + __internal__converted = /* @__PURE__ */ new Map(); + constructor(registry, value) { + super(registry, { + magicNumber: MagicNumber_js_1.MagicNumber, + metadata: "MetadataAll" + }, value); + } + __internal__assertVersion = (version23) => { + if (this.version > version23) { + throw new Error(`Cannot convert metadata from version ${this.version} to ${version23}`); + } + return this.version === version23; + }; + __internal__getVersion = (version23, fromPrev) => { + if (version23 !== "latest" && this.__internal__assertVersion(version23)) { + const asCurr = `asV${version23}`; + return this.__internal__metadata()[asCurr]; + } + if (!this.__internal__converted.has(version23)) { + const asPrev = version23 === "latest" ? `asV${versions_js_1.LATEST_VERSION}` : `asV${version23 - 1}`; + this.__internal__converted.set(version23, fromPrev(this.registry, this[asPrev], this.version)); + } + return this.__internal__converted.get(version23); + }; + __internal__metadata = () => { + return this.getT("metadata"); + }; + get asCallsOnly() { + return new MetadataVersioned2(this.registry, { + magicNumber: this.magicNumber, + metadata: this.registry.createTypeUnsafe("MetadataAll", [(0, index_js_1.toCallsOnly)(this.registry, this.asLatest), versions_js_1.TO_CALLS_VERSION]) + }); + } + get asV9() { + this.__internal__assertVersion(9); + return this.__internal__metadata().asV9; + } + get asV10() { + return this.__internal__getVersion(10, toV10_js_1.toV10); + } + get asV11() { + return this.__internal__getVersion(11, toV11_js_1.toV11); + } + get asV12() { + return this.__internal__getVersion(12, toV12_js_1.toV12); + } + get asV13() { + return this.__internal__getVersion(13, toV13_js_1.toV13); + } + get asV14() { + return this.__internal__getVersion(14, toV14_js_1.toV14); + } + get asV15() { + return this.__internal__getVersion(15, toV15_js_1.toV15); + } + get asLatest() { + return this.__internal__getVersion("latest", toLatest_js_1.toLatest); + } + get magicNumber() { + return this.getT("magicNumber"); + } + get version() { + return this.__internal__metadata().index; + } + getUniqTypes(throwError) { + return (0, index_js_1.getUniqTypes)(this.registry, this.asLatest, throwError); + } + toJSON() { + this.asLatest; + return super.toJSON(); + } + }; + exports2.MetadataVersioned = MetadataVersioned2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/Metadata.js + var require_Metadata = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/Metadata.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Metadata = void 0; + var util_1 = require_cjs3(); + var MetadataVersioned_js_1 = require_MetadataVersioned(); + var EMPTY_METADATA2 = new Uint8Array([109, 101, 116, 97, 9]); + var VERSION_IDX2 = EMPTY_METADATA2.length - 1; + function decodeU8a8(registry, u8a) { + if (u8a.length === 0) { + return EMPTY_METADATA2; + } else if (u8a[VERSION_IDX2] === 9) { + try { + return new MetadataVersioned_js_1.MetadataVersioned(registry, u8a); + } catch { + u8a[VERSION_IDX2] = 10; + } + } + return u8a; + } + var Metadata2 = class extends MetadataVersioned_js_1.MetadataVersioned { + constructor(registry, value) { + super(registry, (0, util_1.isU8a)(value) || (0, util_1.isString)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : value); + } + }; + exports2.Metadata = Metadata2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/constants/index.js + var require_constants3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/constants/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateConstants = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util7(); + function decorateConstants2(registry, { pallets }, _version) { + const result = {}; + for (let i = 0, count = pallets.length; i < count; i++) { + const { constants: constants2, name: name6 } = pallets[i]; + if (!constants2.isEmpty) { + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, util_1.lazyMethods)({}, constants2, (constant) => { + const codec = registry.createTypeUnsafe(registry.createLookupType(constant.type), [(0, util_1.hexToU8a)(constant.value.toHex())]); + codec.meta = constant; + return codec; + }, util_js_1.objectNameToCamel)); + } + } + return result; + } + exports2.decorateConstants = decorateConstants2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/errors/index.js + var require_errors = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/errors/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateErrors = exports2.variantToMeta = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var util_js_1 = require_util7(); + function variantToMeta(lookup, variant) { + return (0, util_1.objectSpread)({ args: variant.fields.map(({ type }) => lookup.getTypeDef(type).type) }, variant); + } + exports2.variantToMeta = variantToMeta; + function decorateErrors(registry, { lookup, pallets }, version23) { + const result = {}; + for (let i = 0, count = pallets.length; i < count; i++) { + const { errors: errors2, index, name: name6 } = pallets[i]; + if (errors2.isSome) { + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, lazy_js_1.lazyVariants)(lookup, errors2.unwrap(), util_js_1.objectNameToString, (variant) => ({ + is: (errorMod) => (0, util_1.isCodec)(errorMod) && (0, util_1.isCodec)(errorMod.index) && errorMod.index.eq(sectionIndex) && ((0, util_1.isU8a)(errorMod.error) ? errorMod.error[0] === variant.index.toNumber() : (0, util_1.isCodec)(errorMod.error) && errorMod.error.eq(variant.index)), + meta: registry.createTypeUnsafe("ErrorMetadataLatest", [variantToMeta(lookup, variant)]) + }))); + } + } + return result; + } + exports2.decorateErrors = decorateErrors; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/events/index.js + var require_events = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/events/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateEvents = exports2.filterEventsSome = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var index_js_1 = require_errors(); + var util_js_1 = require_util7(); + function filterEventsSome2({ events }) { + return events.isSome; + } + exports2.filterEventsSome = filterEventsSome2; + function decorateEvents2(registry, { lookup, pallets }, version23) { + const result = {}; + const filtered = pallets.filter(filterEventsSome2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { events, index, name: name6 } = filtered[i]; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, lazy_js_1.lazyVariants)(lookup, events.unwrap(), util_js_1.objectNameToString, (variant) => ({ + is: (eventRecord) => (0, util_1.isCodec)(eventRecord) && (0, util_1.isU8a)(eventRecord.index) && sectionIndex === eventRecord.index[0] && variant.index.eq(eventRecord.index[1]), + meta: registry.createTypeUnsafe("EventMetadataLatest", [(0, index_js_1.variantToMeta)(lookup, variant)]) + }))); + } + return result; + } + exports2.decorateEvents = decorateEvents2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getHasher.js + var require_getHasher = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getHasher.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHasher = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var DEFAULT_FN = (data) => (0, util_crypto_1.xxhashAsU8a)(data, 128); + var HASHERS = { + Blake2_128: (data) => (0, util_crypto_1.blake2AsU8a)(data, 128), + Blake2_128Concat: (data) => (0, util_1.u8aConcat)((0, util_crypto_1.blake2AsU8a)(data, 128), (0, util_1.u8aToU8a)(data)), + Blake2_256: (data) => (0, util_crypto_1.blake2AsU8a)(data, 256), + Identity: (data) => (0, util_1.u8aToU8a)(data), + Twox128: (data) => (0, util_crypto_1.xxhashAsU8a)(data, 128), + Twox256: (data) => (0, util_crypto_1.xxhashAsU8a)(data, 256), + Twox64Concat: (data) => (0, util_1.u8aConcat)((0, util_crypto_1.xxhashAsU8a)(data, 64), (0, util_1.u8aToU8a)(data)) + }; + function getHasher(hasher2) { + return HASHERS[hasher2.type] || DEFAULT_FN; + } + exports2.getHasher = getHasher; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/createFunction.js + var require_createFunction = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/createFunction.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createFunction = exports2.createKeyRaw = exports2.createKeyInspect = exports2.createKeyRawParts = exports2.NO_RAW_ARGS = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util4(); + var getHasher_js_1 = require_getHasher(); + exports2.NO_RAW_ARGS = { + args: [], + hashers: [], + keys: [] + }; + function filterDefined(a) { + return !(0, util_1.isUndefined)(a); + } + function assertArgs({ method, section }, { args, keys }) { + if (!Array.isArray(args)) { + throw new Error(`Call to ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs ${keys.length} arguments`); + } else if (args.filter(filterDefined).length !== keys.length) { + throw new Error(`Call to ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs ${keys.length} arguments, found [${args.join(", ")}]`); + } + } + function createKeyRawParts(registry, itemFn, { args, hashers, keys }) { + const count = keys.length; + const extra = new Array(count); + for (let i = 0; i < count; i++) { + extra[i] = (0, getHasher_js_1.getHasher)(hashers[i])(registry.createTypeUnsafe(registry.createLookupType(keys[i]), [args[i]]).toU8a()); + } + return [ + [ + (0, util_crypto_1.xxhashAsU8a)(itemFn.prefix, 128), + (0, util_crypto_1.xxhashAsU8a)(itemFn.method, 128) + ], + extra + ]; + } + exports2.createKeyRawParts = createKeyRawParts; + function createKeyInspect(registry, itemFn, args) { + assertArgs(itemFn, args); + const { meta: meta2 } = itemFn; + const [prefix, extra] = createKeyRawParts(registry, itemFn, args); + let types2 = []; + if (meta2.type.isMap) { + const { hashers, key: key2 } = meta2.type.asMap; + types2 = hashers.length === 1 ? [`${hashers[0].type}(${(0, index_js_1.getSiName)(registry.lookup, key2)})`] : registry.lookup.getSiType(key2).def.asTuple.map((k, i) => `${hashers[i].type}(${(0, index_js_1.getSiName)(registry.lookup, k)})`); + } + const names2 = ["module", "method"].concat(...args.args.map((_, i) => types2[i])); + return { + inner: prefix.concat(...extra).map((v, i) => ({ name: names2[i], outer: [v] })) + }; + } + exports2.createKeyInspect = createKeyInspect; + function createKeyRaw(registry, itemFn, args) { + const [prefix, extra] = createKeyRawParts(registry, itemFn, args); + return (0, util_1.u8aConcat)(...prefix, ...extra); + } + exports2.createKeyRaw = createKeyRaw; + function createKey(registry, itemFn, args) { + assertArgs(itemFn, args); + return (0, util_1.compactAddLength)(createKeyRaw(registry, itemFn, args)); + } + function createStorageInspect(registry, itemFn, options) { + const { meta: { type } } = itemFn; + return (...args) => { + if (type.isPlain) { + return options.skipHashing ? { inner: [], name: "wellKnown", outer: [(0, util_1.u8aToU8a)(options.key)] } : createKeyInspect(registry, itemFn, exports2.NO_RAW_ARGS); + } + const { hashers, key: key2 } = type.asMap; + return hashers.length === 1 ? createKeyInspect(registry, itemFn, { args, hashers, keys: [key2] }) : createKeyInspect(registry, itemFn, { args, hashers, keys: registry.lookup.getSiType(key2).def.asTuple }); + }; + } + function createStorageFn(registry, itemFn, options) { + const { meta: { type } } = itemFn; + let cacheKey = null; + return (...args) => { + if (type.isPlain) { + if (!cacheKey) { + cacheKey = options.skipHashing ? (0, util_1.compactAddLength)((0, util_1.u8aToU8a)(options.key)) : createKey(registry, itemFn, exports2.NO_RAW_ARGS); + } + return cacheKey; + } + const { hashers, key: key2 } = type.asMap; + return hashers.length === 1 ? createKey(registry, itemFn, { args, hashers, keys: [key2] }) : createKey(registry, itemFn, { args, hashers, keys: registry.lookup.getSiType(key2).def.asTuple }); + }; + } + function createWithMeta(registry, itemFn, options) { + const { meta: meta2, method, prefix, section } = itemFn; + const storageFn = createStorageFn(registry, itemFn, options); + storageFn.inspect = createStorageInspect(registry, itemFn, options); + storageFn.meta = meta2; + storageFn.method = (0, util_1.stringCamelCase)(method); + storageFn.prefix = prefix; + storageFn.section = section; + storageFn.toJSON = () => (0, util_1.objectSpread)({ storage: { method, prefix, section } }, meta2.toJSON()); + return storageFn; + } + function extendHeadMeta(registry, { meta: { docs, name: name6, type }, section }, { method }, iterFn) { + const meta2 = registry.createTypeUnsafe("StorageEntryMetadataLatest", [{ + docs, + fallback: registry.createTypeUnsafe("Bytes", []), + modifier: registry.createTypeUnsafe("StorageEntryModifierLatest", [1]), + name: name6, + type: registry.createTypeUnsafe("StorageEntryTypeLatest", [type.asMap.key, 0]) + }]); + iterFn.meta = meta2; + const fn2 = (...args) => registry.createTypeUnsafe("StorageKey", [iterFn(...args), { method, section }]); + fn2.meta = meta2; + return fn2; + } + function extendPrefixedMap(registry, itemFn, storageFn) { + const { meta: { type }, method, section } = itemFn; + storageFn.iterKey = extendHeadMeta(registry, itemFn, storageFn, (...args) => { + if (args.length && (type.isPlain || args.length >= type.asMap.hashers.length)) { + throw new Error(`Iteration of ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs arguments to be at least one less than the full arguments, found [${args.join(", ")}]`); + } + if (args.length) { + if (type.isMap) { + const { hashers, key: key2 } = type.asMap; + const keysVec = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple; + return new types_codec_1.Raw(registry, createKeyRaw(registry, itemFn, { args, hashers: hashers.slice(0, args.length), keys: keysVec.slice(0, args.length) })); + } + } + return new types_codec_1.Raw(registry, createKeyRaw(registry, itemFn, exports2.NO_RAW_ARGS)); + }); + return storageFn; + } + function createFunction(registry, itemFn, options) { + const { meta: { type } } = itemFn; + const storageFn = createWithMeta(registry, itemFn, options); + if (type.isMap) { + extendPrefixedMap(registry, itemFn, storageFn); + } + storageFn.keyPrefix = (...args) => storageFn.iterKey && storageFn.iterKey(...args) || (0, util_1.compactStripLength)(storageFn())[1]; + return storageFn; + } + exports2.createFunction = createFunction; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/util.js + var require_util8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createRuntimeFunction = void 0; + var types_create_1 = require_cjs9(); + var createFunction_js_1 = require_createFunction(); + function findSiPrimitive(registry, type) { + const prim = type.toLowerCase(); + return registry.lookup.types.find((t) => t.type.def.isPrimitive && t.type.def.asPrimitive.toString().toLowerCase() === prim || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.toString().toLowerCase() === prim); + } + function findSiType(registry, type) { + let portable = findSiPrimitive(registry, type); + if (!portable && (type === "Bytes" || type.startsWith("[u8;"))) { + const u84 = findSiPrimitive(registry, "u8"); + if (u84) { + if (type === "Bytes") { + portable = registry.lookup.types.find((t) => t.type.def.isSequence && t.type.def.asSequence.type.eq(u84.id) || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.eq(type)); + } else { + const td2 = (0, types_create_1.getTypeDef)(type); + portable = registry.lookup.types.find((t) => t.type.def.isArray && t.type.def.asArray.eq({ + len: td2.length, + type: u84.id + }) || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.eq(type)); + } + } + } + if (!portable) { + console.warn(`Unable to map ${type} to a lookup index`); + } + return portable; + } + function createRuntimeFunction({ method, prefix, section }, key2, { docs, type }) { + return (registry) => (0, createFunction_js_1.createFunction)(registry, { + meta: registry.createTypeUnsafe("StorageEntryMetadataLatest", [{ + docs: registry.createTypeUnsafe("Vec", [[docs]]), + modifier: registry.createTypeUnsafe("StorageEntryModifierLatest", ["Required"]), + name: registry.createTypeUnsafe("Text", [method]), + toJSON: () => key2, + type: registry.createTypeUnsafe("StorageEntryTypeLatest", [{ Plain: findSiType(registry, type)?.id || 0 }]) + }]), + method, + prefix, + section + }, { key: key2, skipHashing: true }); + } + exports2.createRuntimeFunction = createRuntimeFunction; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/substrate.js + var require_substrate2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.substrate = void 0; + var util_js_1 = require_util8(); + var prefix = "Substrate"; + var section = "substrate"; + function createSubstrateFn(method, key2, meta2) { + return (0, util_js_1.createRuntimeFunction)({ method, prefix, section }, key2, meta2); + } + exports2.substrate = { + changesTrieConfig: createSubstrateFn("changesTrieConfig", ":changes_trie", { + docs: "Changes trie configuration is stored under this key.", + type: "u32" + }), + childStorageKeyPrefix: createSubstrateFn("childStorageKeyPrefix", ":child_storage:", { + docs: "Prefix of child storage keys.", + type: "u32" + }), + code: createSubstrateFn("code", ":code", { + docs: "Wasm code of the runtime.", + type: "Bytes" + }), + extrinsicIndex: createSubstrateFn("extrinsicIndex", ":extrinsic_index", { + docs: "Current extrinsic index (u32) is stored under this key.", + type: "u32" + }), + heapPages: createSubstrateFn("heapPages", ":heappages", { + docs: "Number of wasm linear memory pages required for execution of the runtime.", + type: "u64" + }), + intrablockEntropy: createSubstrateFn("intrablockEntropy", ":intrablock_entropy", { + docs: "Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.", + type: "[u8; 32]" + }) + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getStorage.js + var require_getStorage = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getStorage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getStorage = void 0; + var substrate_js_1 = require_substrate2(); + function getStorage(registry) { + const storage = {}; + const entries = Object.entries(substrate_js_1.substrate); + for (let e = 0, count = entries.length; e < count; e++) { + storage[entries[e][0]] = entries[e][1](registry); + } + return { substrate: storage }; + } + exports2.getStorage = getStorage; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/index.js + var require_storage2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateStorage = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util7(); + var createFunction_js_1 = require_createFunction(); + var getStorage_js_1 = require_getStorage(); + var util_js_2 = require_util8(); + var VERSION_NAME = "palletVersion"; + var VERSION_KEY = ":__STORAGE_VERSION__:"; + var VERSION_DOCS = { docs: "Returns the current pallet version from storage", type: "u16" }; + function decorateStorage(registry, { pallets }, _metaVersion) { + const result = (0, getStorage_js_1.getStorage)(registry); + for (let i = 0, count = pallets.length; i < count; i++) { + const { name: name6, storage } = pallets[i]; + if (storage.isSome) { + const section = (0, util_1.stringCamelCase)(name6); + const { items, prefix: _prefix } = storage.unwrap(); + const prefix = _prefix.toString(); + (0, util_1.lazyMethod)(result, section, () => (0, util_1.lazyMethods)({ + palletVersion: (0, util_js_2.createRuntimeFunction)({ method: VERSION_NAME, prefix, section }, (0, createFunction_js_1.createKeyRaw)(registry, { method: VERSION_KEY, prefix: name6.toString() }, createFunction_js_1.NO_RAW_ARGS), VERSION_DOCS)(registry) + }, items, (meta2) => (0, createFunction_js_1.createFunction)(registry, { meta: meta2, method: meta2.name.toString(), prefix, section }, {}), util_js_1.objectNameToCamel)); + } + } + return result; + } + exports2.decorateStorage = decorateStorage; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/index.js + var require_decorate = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterEventsSome = exports2.filterCallsSome = exports2.decorateStorage = exports2.decorateExtrinsics = exports2.decorateEvents = exports2.decorateErrors = exports2.decorateConstants = exports2.expandMetadata = void 0; + var Metadata_js_1 = require_Metadata(); + var index_js_1 = require_constants3(); + Object.defineProperty(exports2, "decorateConstants", { enumerable: true, get: function() { + return index_js_1.decorateConstants; + } }); + var index_js_2 = require_errors(); + Object.defineProperty(exports2, "decorateErrors", { enumerable: true, get: function() { + return index_js_2.decorateErrors; + } }); + var index_js_3 = require_events(); + Object.defineProperty(exports2, "decorateEvents", { enumerable: true, get: function() { + return index_js_3.decorateEvents; + } }); + Object.defineProperty(exports2, "filterEventsSome", { enumerable: true, get: function() { + return index_js_3.filterEventsSome; + } }); + var index_js_4 = require_extrinsics(); + Object.defineProperty(exports2, "decorateExtrinsics", { enumerable: true, get: function() { + return index_js_4.decorateExtrinsics; + } }); + Object.defineProperty(exports2, "filterCallsSome", { enumerable: true, get: function() { + return index_js_4.filterCallsSome; + } }); + var index_js_5 = require_storage2(); + Object.defineProperty(exports2, "decorateStorage", { enumerable: true, get: function() { + return index_js_5.decorateStorage; + } }); + function expandMetadata(registry, metadata) { + if (!(metadata instanceof Metadata_js_1.Metadata)) { + throw new Error("You need to pass a valid Metadata instance to Decorated"); + } + const latest2 = metadata.asLatest; + const version23 = metadata.version; + return { + consts: (0, index_js_1.decorateConstants)(registry, latest2, version23), + errors: (0, index_js_2.decorateErrors)(registry, latest2, version23), + events: (0, index_js_3.decorateEvents)(registry, latest2, version23), + query: (0, index_js_5.decorateStorage)(registry, latest2, version23), + registry, + tx: (0, index_js_4.decorateExtrinsics)(registry, latest2, version23) + }; + } + exports2.expandMetadata = expandMetadata; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/registry.js + var require_registry2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeRegistry = void 0; + var tslib_1 = require_tslib(); + var types_codec_1 = require_cjs8(); + var types_create_1 = require_cjs9(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_signedExtensions(); + var Event_js_1 = require_Event(); + var baseTypes = tslib_1.__importStar(require_index_types()); + var definitions = tslib_1.__importStar(require_definitions75()); + var index_js_2 = require_extrinsics(); + var index_js_3 = require_decorate(); + var Metadata_js_1 = require_Metadata(); + var index_js_4 = require_PortableRegistry2(); + var lazy_js_1 = require_lazy2(); + var DEFAULT_FIRST_CALL_IDX2 = new Uint8Array(2); + var l15 = (0, util_1.logger)("registry"); + function sortDecimalStrings2(a, b) { + return parseInt(a, 10) - parseInt(b, 10); + } + function valueToString2(v) { + return v.toString(); + } + function getFieldArgs2(lookup, fields) { + const count = fields.length; + const args = new Array(count); + for (let i = 0; i < count; i++) { + args[i] = lookup.getTypeDef(fields[i].type).type; + } + return args; + } + function clearRecord2(record) { + const keys = Object.keys(record); + for (let i = 0, count = keys.length; i < count; i++) { + delete record[keys[i]]; + } + } + function getVariantStringIdx2({ index }) { + return index.toString(); + } + function injectErrors2(_, { lookup, pallets }, version23, result) { + clearRecord2(result); + for (let i = 0, count = pallets.length; i < count; i++) { + const { errors: errors2, index, name: name6 } = pallets[i]; + if (errors2.isSome) { + const sectionName = (0, util_1.stringCamelCase)(name6); + (0, util_1.lazyMethod)(result, version23 >= 12 ? index.toNumber() : i, () => (0, lazy_js_1.lazyVariants)(lookup, errors2.unwrap(), getVariantStringIdx2, ({ docs, fields, index: index2, name: name7 }) => ({ + args: getFieldArgs2(lookup, fields), + docs: docs.map(valueToString2), + fields, + index: index2.toNumber(), + method: name7.toString(), + name: name7.toString(), + section: sectionName + }))); + } + } + } + function injectEvents2(registry, { lookup, pallets }, version23, result) { + const filtered = pallets.filter(index_js_3.filterEventsSome); + clearRecord2(result); + for (let i = 0, count = filtered.length; i < count; i++) { + const { events, index, name: name6 } = filtered[i]; + (0, util_1.lazyMethod)(result, version23 >= 12 ? index.toNumber() : i, () => (0, lazy_js_1.lazyVariants)(lookup, events.unwrap(), getVariantStringIdx2, (variant) => { + const meta2 = registry.createType("EventMetadataLatest", (0, util_1.objectSpread)({}, variant, { args: getFieldArgs2(lookup, variant.fields) })); + return class extends Event_js_1.GenericEventData { + constructor(registry2, value) { + super(registry2, value, meta2, (0, util_1.stringCamelCase)(name6), variant.name.toString()); + } + }; + })); + } + } + function injectExtrinsics2(registry, { lookup, pallets }, version23, result, mapping2) { + const filtered = pallets.filter(index_js_3.filterCallsSome); + clearRecord2(result); + clearRecord2(mapping2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { calls, index, name: name6 } = filtered[i]; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + const sectionName = (0, util_1.stringCamelCase)(name6); + const allCalls = calls.unwrap(); + (0, util_1.lazyMethod)(result, sectionIndex, () => (0, lazy_js_1.lazyVariants)(lookup, allCalls, getVariantStringIdx2, (variant) => (0, index_js_2.createCallFunction)(registry, lookup, variant, sectionName, sectionIndex))); + const { path } = registry.lookup.getSiType(allCalls.type); + const palletIdx = path.findIndex((v) => v.eq("pallet")); + if (palletIdx !== -1) { + const name7 = (0, util_1.stringCamelCase)(path.slice(0, palletIdx).map((p, i10) => i10 === 0 ? p.replace(/^(frame|pallet)_/, "") : p).join(" ")); + if (!mapping2[name7]) { + mapping2[name7] = [sectionName]; + } else { + mapping2[name7].push(sectionName); + } + } + } + } + function extractProperties2(registry, metadata) { + const original = registry.getChainProperties(); + const constants2 = (0, index_js_3.decorateConstants)(registry, metadata.asLatest, metadata.version); + const ss58Format = constants2["system"] && (constants2["system"]["sS58Prefix"] || constants2["system"]["ss58Prefix"]); + if (!ss58Format) { + return original; + } + const { isEthereum, tokenDecimals, tokenSymbol } = original || {}; + return registry.createTypeUnsafe("ChainProperties", [{ isEthereum, ss58Format, tokenDecimals, tokenSymbol }]); + } + var TypeRegistry2 = class { + __internal__chainProperties; + __internal__classes = /* @__PURE__ */ new Map(); + __internal__definitions = /* @__PURE__ */ new Map(); + __internal__firstCallIndex = null; + __internal__hasher = util_crypto_1.blake2AsU8a; + __internal__knownTypes = {}; + __internal__lookup; + __internal__metadata; + __internal__metadataVersion = 0; + __internal__signedExtensions = index_js_1.fallbackExtensions; + __internal__unknownTypes = /* @__PURE__ */ new Map(); + __internal__userExtensions; + __internal__knownDefaults; + __internal__knownDefaultsEntries; + __internal__knownDefinitions; + __internal__metadataCalls = {}; + __internal__metadataErrors = {}; + __internal__metadataEvents = {}; + __internal__moduleMap = {}; + createdAtHash; + constructor(createdAtHash) { + this.__internal__knownDefaults = (0, util_1.objectSpread)({ Json: types_codec_1.Json, Metadata: Metadata_js_1.Metadata, PortableRegistry: index_js_4.PortableRegistry, Raw: types_codec_1.Raw }, baseTypes); + this.__internal__knownDefaultsEntries = Object.entries(this.__internal__knownDefaults); + this.__internal__knownDefinitions = definitions; + const allKnown = Object.values(this.__internal__knownDefinitions); + for (let i = 0, count = allKnown.length; i < count; i++) { + this.register(allKnown[i].types); + } + if (createdAtHash) { + this.createdAtHash = this.createType("BlockHash", createdAtHash); + } + } + get chainDecimals() { + if (this.__internal__chainProperties?.tokenDecimals.isSome) { + const allDecimals = this.__internal__chainProperties.tokenDecimals.unwrap(); + if (allDecimals.length) { + return allDecimals.map((b) => b.toNumber()); + } + } + return [12]; + } + get chainIsEthereum() { + return this.__internal__chainProperties?.isEthereum.isTrue || false; + } + get chainSS58() { + return this.__internal__chainProperties?.ss58Format.isSome ? this.__internal__chainProperties.ss58Format.unwrap().toNumber() : void 0; + } + get chainTokens() { + if (this.__internal__chainProperties?.tokenSymbol.isSome) { + const allTokens = this.__internal__chainProperties.tokenSymbol.unwrap(); + if (allTokens.length) { + return allTokens.map(valueToString2); + } + } + return [util_1.formatBalance.getDefaults().unit]; + } + get firstCallIndex() { + return this.__internal__firstCallIndex || DEFAULT_FIRST_CALL_IDX2; + } + isLookupType(value) { + return /Lookup\d+$/.test(value); + } + createLookupType(lookupId) { + return `Lookup${typeof lookupId === "number" ? lookupId : lookupId.toNumber()}`; + } + get knownTypes() { + return this.__internal__knownTypes; + } + get lookup() { + return (0, util_1.assertReturn)(this.__internal__lookup, "PortableRegistry has not been set on this registry"); + } + get metadata() { + return (0, util_1.assertReturn)(this.__internal__metadata, "Metadata has not been set on this registry"); + } + get unknownTypes() { + return [...this.__internal__unknownTypes.keys()]; + } + get signedExtensions() { + return this.__internal__signedExtensions; + } + clearCache() { + this.__internal__classes = /* @__PURE__ */ new Map(); + } + createClass(type) { + return (0, types_create_1.createClassUnsafe)(this, type); + } + createClassUnsafe(type) { + return (0, types_create_1.createClassUnsafe)(this, type); + } + createType(type, ...params) { + return (0, types_create_1.createTypeUnsafe)(this, type, params); + } + createTypeUnsafe(type, params, options) { + return (0, types_create_1.createTypeUnsafe)(this, type, params, options); + } + findMetaCall(callIndex) { + const [section, method] = [callIndex[0], callIndex[1]]; + return (0, util_1.assertReturn)(this.__internal__metadataCalls[`${section}`] && this.__internal__metadataCalls[`${section}`][`${method}`], () => `findMetaCall: Unable to find Call with index [${section}, ${method}]/[${callIndex.toString()}]`); + } + findMetaError(errorIndex) { + const [section, method] = (0, util_1.isU8a)(errorIndex) ? [errorIndex[0], errorIndex[1]] : [ + errorIndex.index.toNumber(), + (0, util_1.isU8a)(errorIndex.error) ? errorIndex.error[0] : errorIndex.error.toNumber() + ]; + return (0, util_1.assertReturn)(this.__internal__metadataErrors[`${section}`] && this.__internal__metadataErrors[`${section}`][`${method}`], () => `findMetaError: Unable to find Error with index [${section}, ${method}]/[${errorIndex.toString()}]`); + } + findMetaEvent(eventIndex) { + const [section, method] = [eventIndex[0], eventIndex[1]]; + return (0, util_1.assertReturn)(this.__internal__metadataEvents[`${section}`] && this.__internal__metadataEvents[`${section}`][`${method}`], () => `findMetaEvent: Unable to find Event with index [${section}, ${method}]/[${eventIndex.toString()}]`); + } + get(name6, withUnknown, knownTypeDef) { + return this.getUnsafe(name6, withUnknown, knownTypeDef); + } + getUnsafe(name6, withUnknown, knownTypeDef) { + let Type2 = this.__internal__classes.get(name6) || this.__internal__knownDefaults[name6]; + if (!Type2) { + const definition = this.__internal__definitions.get(name6); + let BaseType; + if (definition) { + BaseType = (0, types_create_1.createClassUnsafe)(this, definition); + } else if (knownTypeDef) { + BaseType = (0, types_create_1.constructTypeClass)(this, knownTypeDef); + } else if (withUnknown) { + l15.warn(`Unable to resolve type ${name6}, it will fail on construction`); + this.__internal__unknownTypes.set(name6, true); + BaseType = types_codec_1.DoNotConstruct.with(name6); + } + if (BaseType) { + Type2 = class extends BaseType { + }; + this.__internal__classes.set(name6, Type2); + if (knownTypeDef && (0, util_1.isNumber)(knownTypeDef.lookupIndex)) { + this.__internal__classes.set(this.createLookupType(knownTypeDef.lookupIndex), Type2); + } + } + } + return Type2; + } + getChainProperties() { + return this.__internal__chainProperties; + } + getClassName(Type2) { + const names2 = []; + for (const [name6, Clazz] of this.__internal__knownDefaultsEntries) { + if (Type2 === Clazz) { + names2.push(name6); + } + } + for (const [name6, Clazz] of this.__internal__classes.entries()) { + if (Type2 === Clazz) { + names2.push(name6); + } + } + return names2.length ? names2.sort().reverse()[0] : void 0; + } + getDefinition(typeName) { + return this.__internal__definitions.get(typeName); + } + getModuleInstances(specName, moduleName) { + return this.__internal__knownTypes?.typesBundle?.spec?.[specName.toString()]?.instances?.[moduleName] || this.__internal__moduleMap[moduleName]; + } + getOrThrow(name6) { + const Clazz = this.get(name6); + if (!Clazz) { + throw new Error(`type ${name6} not found`); + } + return Clazz; + } + getOrUnknown(name6) { + return this.get(name6, true); + } + getSignedExtensionExtra() { + return (0, index_js_1.expandExtensionTypes)(this.__internal__signedExtensions, "payload", this.__internal__userExtensions); + } + getSignedExtensionTypes() { + return (0, index_js_1.expandExtensionTypes)(this.__internal__signedExtensions, "extrinsic", this.__internal__userExtensions); + } + hasClass(name6) { + return this.__internal__classes.has(name6) || !!this.__internal__knownDefaults[name6]; + } + hasDef(name6) { + return this.__internal__definitions.has(name6); + } + hasType(name6) { + return !this.__internal__unknownTypes.get(name6) && (this.hasClass(name6) || this.hasDef(name6)); + } + hash(data) { + return this.createType("CodecHash", this.__internal__hasher(data)); + } + register(arg1, arg2) { + if ((0, util_1.isFunction)(arg1)) { + this.__internal__classes.set(arg1.name, arg1); + } else if ((0, util_1.isString)(arg1)) { + if (!(0, util_1.isFunction)(arg2)) { + throw new Error(`Expected class definition passed to '${arg1}' registration`); + } else if (arg1 === arg2.toString()) { + throw new Error(`Unable to register circular ${arg1} === ${arg1}`); + } + this.__internal__classes.set(arg1, arg2); + } else { + this.__internal__registerObject(arg1); + } + } + __internal__registerObject = (obj) => { + const entries = Object.entries(obj); + for (let e = 0, count = entries.length; e < count; e++) { + const [name6, type] = entries[e]; + if ((0, util_1.isFunction)(type)) { + this.__internal__classes.set(name6, type); + } else { + const def = (0, util_1.isString)(type) ? type : (0, util_1.stringify)(type); + if (name6 === def) { + throw new Error(`Unable to register circular ${name6} === ${def}`); + } + if (this.__internal__classes.has(name6)) { + this.__internal__classes.delete(name6); + } + this.__internal__definitions.set(name6, def); + } + } + }; + setChainProperties(properties) { + if (properties) { + this.__internal__chainProperties = properties; + } + } + setHasher(hasher2) { + this.__internal__hasher = hasher2 || util_crypto_1.blake2AsU8a; + } + setKnownTypes(knownTypes2) { + this.__internal__knownTypes = knownTypes2; + } + setLookup(lookup) { + this.__internal__lookup = lookup; + lookup.register(); + } + __internal__registerLookup = (lookup) => { + this.setLookup(lookup); + let Weight = null; + if (this.hasType("SpWeightsWeightV2Weight")) { + const weightv2 = this.createType("SpWeightsWeightV2Weight"); + Weight = weightv2.refTime && weightv2.proofSize ? "SpWeightsWeightV2Weight" : "WeightV1"; + } else if (!(0, util_1.isBn)(this.createType("Weight"))) { + Weight = "WeightV1"; + } + if (Weight) { + this.register({ Weight }); + } + }; + setMetadata(metadata, signedExtensions, userExtensions, noInitWarn) { + this.__internal__metadata = metadata.asLatest; + this.__internal__metadataVersion = metadata.version; + this.__internal__firstCallIndex = null; + this.__internal__registerLookup(this.__internal__metadata.lookup); + injectExtrinsics2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataCalls, this.__internal__moduleMap); + injectErrors2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataErrors); + injectEvents2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataEvents); + const [defSection] = Object.keys(this.__internal__metadataCalls).sort(sortDecimalStrings2); + if (defSection) { + const [defMethod] = Object.keys(this.__internal__metadataCalls[defSection]).sort(sortDecimalStrings2); + if (defMethod) { + this.__internal__firstCallIndex = new Uint8Array([parseInt(defSection, 10), parseInt(defMethod, 10)]); + } + } + this.setSignedExtensions(signedExtensions || (this.__internal__metadata.extrinsic.version.gt(util_1.BN_ZERO) ? this.__internal__metadata.extrinsic.signedExtensions.map(({ identifier }) => identifier.toString()) : index_js_1.fallbackExtensions), userExtensions, noInitWarn); + this.setChainProperties(extractProperties2(this, metadata)); + } + setSignedExtensions(signedExtensions = index_js_1.fallbackExtensions, userExtensions, noInitWarn) { + this.__internal__signedExtensions = signedExtensions; + this.__internal__userExtensions = userExtensions; + if (!noInitWarn) { + const unknown = (0, index_js_1.findUnknownExtensions)(this.__internal__signedExtensions, this.__internal__userExtensions); + if (unknown.length) { + l15.warn(`Unknown signed extensions ${unknown.join(", ")} found, treating them as no-effect`); + } + } + } + }; + exports2.TypeRegistry = TypeRegistry2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/index.js + var require_create2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_exports(), exports2); + tslib_1.__exportStar(require_createClass(), exports2); + tslib_1.__exportStar(require_createType(), exports2); + tslib_1.__exportStar(require_lazy2(), exports2); + tslib_1.__exportStar(require_registry2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/index.js + var require_metadata = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PortableRegistry = exports2.Metadata = exports2.expandMetadata = exports2.decorateStorage = exports2.decorateExtrinsics = exports2.decorateConstants = void 0; + var index_js_1 = require_decorate(); + Object.defineProperty(exports2, "decorateConstants", { enumerable: true, get: function() { + return index_js_1.decorateConstants; + } }); + Object.defineProperty(exports2, "decorateExtrinsics", { enumerable: true, get: function() { + return index_js_1.decorateExtrinsics; + } }); + Object.defineProperty(exports2, "decorateStorage", { enumerable: true, get: function() { + return index_js_1.decorateStorage; + } }); + Object.defineProperty(exports2, "expandMetadata", { enumerable: true, get: function() { + return index_js_1.expandMetadata; + } }); + var Metadata_js_1 = require_Metadata(); + Object.defineProperty(exports2, "Metadata", { enumerable: true, get: function() { + return Metadata_js_1.Metadata; + } }); + var index_js_2 = require_PortableRegistry2(); + Object.defineProperty(exports2, "PortableRegistry", { enumerable: true, get: function() { + return index_js_2.PortableRegistry; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/bundle.js + var require_bundle6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typeDefinitions = exports2.rpcDefinitions = exports2.unwrapStorageType = exports2.packageInfo = exports2.convertSiV0toV1 = exports2.TypeDefInfo = void 0; + var tslib_1 = require_tslib(); + var typeDefinitions = tslib_1.__importStar(require_definitions75()); + exports2.typeDefinitions = typeDefinitions; + var jsonrpc_js_1 = tslib_1.__importDefault(require_jsonrpc()); + exports2.rpcDefinitions = jsonrpc_js_1.default; + var types_create_1 = require_cjs9(); + Object.defineProperty(exports2, "TypeDefInfo", { enumerable: true, get: function() { + return types_create_1.TypeDefInfo; + } }); + var index_js_1 = require_PortableRegistry2(); + Object.defineProperty(exports2, "convertSiV0toV1", { enumerable: true, get: function() { + return index_js_1.convertSiV0toV1; + } }); + var packageInfo_js_1 = require_packageInfo14(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_2 = require_util5(); + Object.defineProperty(exports2, "unwrapStorageType", { enumerable: true, get: function() { + return index_js_2.unwrapStorageType; + } }); + tslib_1.__exportStar(require_codec2(), exports2); + tslib_1.__exportStar(require_create2(), exports2); + tslib_1.__exportStar(require_index_types(), exports2); + tslib_1.__exportStar(require_metadata(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/index.js + var require_cjs10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect3(); + tslib_1.__exportStar(require_bundle6(), exports2); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/refCountDelay.js + var require_refCountDelay = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/refCountDelay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.refCountDelay = void 0; + var rxjs_1 = require_cjs7(); + function refCountDelay(delay = 1750) { + return (source) => { + let [state, refCount, connection, scheduler] = [0, 0, rxjs_1.Subscription.EMPTY, rxjs_1.Subscription.EMPTY]; + return new rxjs_1.Observable((ob2) => { + source.subscribe(ob2); + if (refCount++ === 0) { + if (state === 1) { + scheduler.unsubscribe(); + } else { + connection = source.connect(); + } + state = 3; + } + return () => { + if (--refCount === 0) { + if (state === 2) { + state = 0; + scheduler.unsubscribe(); + } else { + state = 1; + scheduler = rxjs_1.asapScheduler.schedule(() => { + state = 0; + connection.unsubscribe(); + }, delay); + } + } + }; + }); + }; + } + exports2.refCountDelay = refCountDelay; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/drr.js + var require_drr = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/drr.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.drr = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var refCountDelay_js_1 = require_refCountDelay(); + function CMP(a, b) { + return (0, util_1.stringify)({ t: a }) === (0, util_1.stringify)({ t: b }); + } + function ERR(error) { + throw error; + } + function NOOP() { + } + function drr({ delay, skipChange = false, skipTimeout = false } = {}) { + return (source$) => source$.pipe( + (0, rxjs_1.catchError)(ERR), + skipChange ? (0, rxjs_1.tap)(NOOP) : (0, rxjs_1.distinctUntilChanged)(CMP), + (0, rxjs_1.publishReplay)(1), + skipTimeout ? (0, rxjs_1.refCount)() : (0, refCountDelay_js_1.refCountDelay)(delay) + ); + } + exports2.drr = drr; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/memo.js + var require_memo = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/memo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.memo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var drr_js_1 = require_drr(); + function memo(instanceId, inner) { + const options = { getInstanceId: () => instanceId }; + const cached = (0, util_1.memoize)((...params) => new rxjs_1.Observable((observer) => { + const subscription = inner(...params).subscribe(observer); + return () => { + cached.unmemoize(...params); + subscription.unsubscribe(); + }; + }).pipe((0, drr_js_1.drr)()), options); + return cached; + } + exports2.memo = memo; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/index.js + var require_util9 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_drr(), exports2); + tslib_1.__exportStar(require_memo(), exports2); + tslib_1.__exportStar(require_refCountDelay(), exports2); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/bundle.js + var require_bundle7 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RpcCore = exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var util_1 = require_cjs3(); + var index_js_1 = require_util9(); + var packageInfo_js_1 = require_packageInfo15(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_util9(), exports2); + var l15 = (0, util_1.logger)("rpc-core"); + var EMPTY_META = { + fallback: void 0, + modifier: { isOptional: true }, + type: { + asMap: { linked: { isTrue: false } }, + isMap: false + } + }; + function logErrorMessage(method, { noErrorLog, params, type }, error) { + if (noErrorLog) { + return; + } + l15.error(`${method}(${params.map(({ isOptional, name: name6, type: type2 }) => `${name6}${isOptional ? "?" : ""}: ${type2}`).join(", ")}): ${type}:: ${error.message}`); + } + function isTreatAsHex(key2) { + return ["0x3a636f6465"].includes(key2.toHex()); + } + var RpcCore = class { + __internal__instanceId; + __internal__isPedantic; + __internal__registryDefault; + __internal__storageCache = /* @__PURE__ */ new Map(); + __internal__storageCacheHits = 0; + __internal__storageCacheSize = 0; + __internal__getBlockRegistry; + __internal__getBlockHash; + mapping = /* @__PURE__ */ new Map(); + provider; + sections = []; + constructor(instanceId, registry, { isPedantic = true, provider, userRpc = {} }) { + if (!provider || !(0, util_1.isFunction)(provider.send)) { + throw new Error("Expected Provider to API create"); + } + this.__internal__instanceId = instanceId; + this.__internal__isPedantic = isPedantic; + this.__internal__registryDefault = registry; + this.provider = provider; + const sectionNames = Object.keys(types_1.rpcDefinitions); + this.sections.push(...sectionNames); + this.addUserInterfaces(userRpc); + } + get isConnected() { + return this.provider.isConnected; + } + connect() { + return this.provider.connect(); + } + disconnect() { + return this.provider.disconnect(); + } + get stats() { + const stats = this.provider.stats; + return stats ? { + ...stats, + core: { + cacheHits: this.__internal__storageCacheHits, + cacheSize: this.__internal__storageCacheSize + } + } : void 0; + } + setRegistrySwap(registrySwap) { + this.__internal__getBlockRegistry = (0, util_1.memoize)(registrySwap, { + getInstanceId: () => this.__internal__instanceId + }); + } + setResolveBlockHash(resolveBlockHash) { + this.__internal__getBlockHash = (0, util_1.memoize)(resolveBlockHash, { + getInstanceId: () => this.__internal__instanceId + }); + } + addUserInterfaces(userRpc) { + this.sections.push(...Object.keys(userRpc).filter((k) => !this.sections.includes(k))); + for (let s = 0, scount = this.sections.length; s < scount; s++) { + const section = this.sections[s]; + const defs = (0, util_1.objectSpread)({}, types_1.rpcDefinitions[section], userRpc[section]); + const methods = Object.keys(defs); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const method = methods[m]; + const def = defs[method]; + const jsonrpc = def.endpoint || `${section}_${method}`; + if (!this.mapping.has(jsonrpc)) { + const isSubscription2 = !!def.pubsub; + if (!this[section]) { + this[section] = {}; + } + this.mapping.set(jsonrpc, (0, util_1.objectSpread)({}, def, { isSubscription: isSubscription2, jsonrpc, method, section })); + (0, util_1.lazyMethod)(this[section], method, () => isSubscription2 ? this._createMethodSubscribe(section, method, def) : this._createMethodSend(section, method, def)); + } + } + } + } + _memomize(creator, def) { + const memoOpts = { getInstanceId: () => this.__internal__instanceId }; + const memoized = (0, util_1.memoize)(creator(true), memoOpts); + memoized.raw = (0, util_1.memoize)(creator(false), memoOpts); + memoized.meta = def; + return memoized; + } + _formatResult(isScale, registry, blockHash, method, def, params, result) { + return isScale ? this._formatOutput(registry, blockHash, method, def, params, result) : result; + } + _createMethodSend(section, method, def) { + const rpcName = def.endpoint || `${section}_${method}`; + const hashIndex = def.params.findIndex(({ isHistoric }) => isHistoric); + let memoized = null; + const callWithRegistry = async (isScale, values) => { + const blockId = hashIndex === -1 ? null : values[hashIndex]; + const blockHash = blockId && def.params[hashIndex].type === "BlockNumber" ? await this.__internal__getBlockHash?.(blockId) : blockId; + const { registry } = isScale && blockHash && this.__internal__getBlockRegistry ? await this.__internal__getBlockRegistry((0, util_1.u8aToU8a)(blockHash)) : { registry: this.__internal__registryDefault }; + const params = this._formatParams(registry, null, def, values); + const result = await this.provider.send(rpcName, params.map((p) => p.toJSON()), !!blockHash); + return this._formatResult(isScale, registry, blockHash, method, def, params, result); + }; + const creator = (isScale) => (...values) => { + const isDelayed = isScale && hashIndex !== -1 && !!values[hashIndex]; + return new rxjs_1.Observable((observer) => { + callWithRegistry(isScale, values).then((value) => { + observer.next(value); + observer.complete(); + }).catch((error) => { + logErrorMessage(method, def, error); + observer.error(error); + observer.complete(); + }); + return () => { + if (isScale) { + memoized?.unmemoize(...values); + } else { + memoized?.raw.unmemoize(...values); + } + }; + }).pipe( + (0, rxjs_1.publishReplay)(1), + isDelayed ? (0, index_js_1.refCountDelay)() : (0, rxjs_1.refCount)() + ); + }; + memoized = this._memomize(creator, def); + return memoized; + } + _createSubscriber({ paramsJson, subName, subType, update: update3 }, errorHandler) { + return new Promise((resolve, reject) => { + this.provider.subscribe(subType, subName, paramsJson, update3).then(resolve).catch((error) => { + errorHandler(error); + reject(error); + }); + }); + } + _createMethodSubscribe(section, method, def) { + const [updateType, subMethod, unsubMethod] = def.pubsub; + const subName = `${section}_${subMethod}`; + const unsubName = `${section}_${unsubMethod}`; + const subType = `${section}_${updateType}`; + let memoized = null; + const creator = (isScale) => (...values) => { + return new rxjs_1.Observable((observer) => { + let subscriptionPromise = Promise.resolve(null); + const registry = this.__internal__registryDefault; + const errorHandler = (error) => { + logErrorMessage(method, def, error); + observer.error(error); + }; + try { + const params = this._formatParams(registry, null, def, values); + const update3 = (error, result) => { + if (error) { + logErrorMessage(method, def, error); + return; + } + try { + observer.next(this._formatResult(isScale, registry, null, method, def, params, result)); + } catch (error2) { + observer.error(error2); + } + }; + subscriptionPromise = this._createSubscriber({ paramsJson: params.map((p) => p.toJSON()), subName, subType, update: update3 }, errorHandler); + } catch (error) { + errorHandler(error); + } + return () => { + if (isScale) { + memoized?.unmemoize(...values); + } else { + memoized?.raw.unmemoize(...values); + } + subscriptionPromise.then((subscriptionId) => (0, util_1.isNull)(subscriptionId) ? Promise.resolve(false) : this.provider.unsubscribe(subType, unsubName, subscriptionId)).catch((error) => logErrorMessage(method, def, error)); + }; + }).pipe((0, index_js_1.drr)()); + }; + memoized = this._memomize(creator, def); + return memoized; + } + _formatParams(registry, blockHash, def, inputs) { + const count = inputs.length; + const reqCount = def.params.filter(({ isOptional }) => !isOptional).length; + if (count < reqCount || count > def.params.length) { + throw new Error(`Expected ${def.params.length} parameters${reqCount === def.params.length ? "" : ` (${def.params.length - reqCount} optional)`}, ${count} found instead`); + } + const params = new Array(count); + for (let i = 0; i < count; i++) { + params[i] = registry.createTypeUnsafe(def.params[i].type, [inputs[i]], { blockHash }); + } + return params; + } + _formatOutput(registry, blockHash, method, rpc18, params, result) { + if (rpc18.type === "StorageData") { + const key2 = params[0]; + return this._formatStorageData(registry, blockHash, key2, result); + } else if (rpc18.type === "StorageChangeSet") { + const keys = params[0]; + return keys ? this._formatStorageSet(registry, result.block, keys, result.changes) : registry.createType("StorageChangeSet", result); + } else if (rpc18.type === "Vec") { + const jsonSet = result; + const count = jsonSet.length; + const mapped = new Array(count); + for (let i = 0; i < count; i++) { + const { block, changes } = jsonSet[i]; + mapped[i] = [ + registry.createType("BlockHash", block), + this._formatStorageSet(registry, block, params[0], changes) + ]; + } + return method === "queryStorageAt" ? mapped[0][1] : mapped; + } + return registry.createTypeUnsafe(rpc18.type, [result], { blockHash }); + } + _formatStorageData(registry, blockHash, key2, value) { + const isEmpty = (0, util_1.isNull)(value); + const input = isEmpty ? null : isTreatAsHex(key2) ? value : (0, util_1.u8aToU8a)(value); + return this._newType(registry, blockHash, key2, input, isEmpty); + } + _formatStorageSet(registry, blockHash, keys, changes) { + const count = keys.length; + const withCache = count !== 1; + const values = new Array(count); + for (let i = 0; i < count; i++) { + values[i] = this._formatStorageSetEntry(registry, blockHash, keys[i], changes, withCache, i); + } + return values; + } + _formatStorageSetEntry(registry, blockHash, key2, changes, withCache, entryIndex) { + const hexKey = key2.toHex(); + const found = changes.find(([key3]) => key3 === hexKey); + const isNotFound = (0, util_1.isUndefined)(found); + if (isNotFound && withCache) { + const cached = this.__internal__storageCache.get(hexKey); + if (cached) { + this.__internal__storageCacheHits++; + return cached; + } + } + const value = isNotFound ? null : found[1]; + const isEmpty = (0, util_1.isNull)(value); + const input = isEmpty || isTreatAsHex(key2) ? value : (0, util_1.u8aToU8a)(value); + const codec = this._newType(registry, blockHash, key2, input, isEmpty, entryIndex); + this.__internal__storageCache.set(hexKey, codec); + this.__internal__storageCacheSize++; + return codec; + } + _newType(registry, blockHash, key2, input, isEmpty, entryIndex = -1) { + const type = key2.outputType || "Raw"; + const meta2 = key2.meta || EMPTY_META; + const entryNum = entryIndex === -1 ? "" : ` entry ${entryIndex}:`; + try { + return registry.createTypeUnsafe(type, [ + isEmpty ? meta2.fallback ? type.includes("Linkage<") ? (0, util_1.u8aConcat)((0, util_1.hexToU8a)(meta2.fallback.toHex()), new Uint8Array(2)) : (0, util_1.hexToU8a)(meta2.fallback.toHex()) : void 0 : meta2.modifier.isOptional ? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: this.__internal__isPedantic }) : input + ], { blockHash, isFallback: isEmpty && !!meta2.fallback, isOptional: meta2.modifier.isOptional, isPedantic: this.__internal__isPedantic && !meta2.modifier.isOptional }); + } catch (error) { + throw new Error(`Unable to decode storage ${key2.section || "unknown"}.${key2.method || "unknown"}:${entryNum}: ${error.message}`); + } + } + }; + exports2.RpcCore = RpcCore; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/index.js + var require_cjs11 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect2(); + tslib_1.__exportStar(require_bundle7(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/approvalFlagsToBools.js + var require_approvalFlagsToBools = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/approvalFlagsToBools.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.approvalFlagsToBools = void 0; + function approvalFlagsToBools(flags) { + const bools = []; + for (let i = 0, count = flags.length; i < count; i++) { + const str2 = flags[i].toString(2); + for (const bit of str2.split("").reverse()) { + bools.push(!!parseInt(bit, 10)); + } + } + const lastApproval = bools.lastIndexOf(true); + return lastApproval >= 0 ? bools.slice(0, lastApproval + 1) : []; + } + exports2.approvalFlagsToBools = approvalFlagsToBools; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/blockNumber.js + var require_blockNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/blockNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.unwrapBlockNumber = void 0; + var util_1 = require_cjs3(); + function unwrapBlockNumber(hdr) { + return (0, util_1.isCompact)(hdr.number) ? hdr.number.unwrap() : hdr.number; + } + exports2.unwrapBlockNumber = unwrapBlockNumber; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/cacheImpl.js + var require_cacheImpl = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/cacheImpl.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.deriveNoopCache = exports2.deriveMapCache = void 0; + var mapCache = /* @__PURE__ */ new Map(); + exports2.deriveMapCache = { + del: (key2) => { + mapCache.delete(key2); + }, + forEach: (cb2) => { + for (const [k, v] of mapCache.entries()) { + cb2(k, v); + } + }, + get: (key2) => { + return mapCache.get(key2); + }, + set: (key2, value) => { + mapCache.set(key2, value); + } + }; + exports2.deriveNoopCache = { + del: () => void 0, + forEach: () => void 0, + get: () => void 0, + set: (_, value) => value + }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/cache.js + var require_cache = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/cache.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.deriveCache = exports2.setDeriveCache = void 0; + var cacheImpl_js_1 = require_cacheImpl(); + var CHACHE_EXPIRY = 7 * (24 * 60) * (60 * 1e3); + var deriveCache; + function wrapCache(keyStart, cache) { + return { + del: (partial) => cache.del(`${keyStart}${partial}`), + forEach: cache.forEach, + get: (partial) => { + const key2 = `${keyStart}${partial}`; + const cached = cache.get(key2); + if (cached) { + cached.x = Date.now(); + cache.set(key2, cached); + return cached.v; + } + return void 0; + }, + set: (partial, v) => { + cache.set(`${keyStart}${partial}`, { v, x: Date.now() }); + } + }; + } + function clearCache(cache) { + const now2 = Date.now(); + const all = []; + cache.forEach((key2, { x }) => { + now2 - x > CHACHE_EXPIRY && all.push(key2); + }); + all.forEach((key2) => cache.del(key2)); + } + function setDeriveCache(prefix = "", cache) { + exports2.deriveCache = deriveCache = cache ? wrapCache(`derive:${prefix}:`, cache) : cacheImpl_js_1.deriveNoopCache; + if (cache) { + clearCache(cache); + } + } + exports2.setDeriveCache = setDeriveCache; + setDeriveCache(); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/first.js + var require_first2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/first.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.firstMemo = exports2.firstObservable = void 0; + var rxjs_1 = require_cjs7(); + var rpc_core_1 = require_cjs11(); + function firstObservable(obs) { + return obs.pipe((0, rxjs_1.map)(([a]) => a)); + } + exports2.firstObservable = firstObservable; + function firstMemo(fn2) { + return (instanceId, api) => (0, rpc_core_1.memo)(instanceId, (...args) => firstObservable(fn2(api, ...args))); + } + exports2.firstMemo = firstMemo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/lazy.js + var require_lazy3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/lazy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lazyDeriveSection = void 0; + var util_1 = require_cjs3(); + function lazyDeriveSection(result, section, getKeys2, creator) { + (0, util_1.lazyMethod)(result, section, () => (0, util_1.lazyMethods)({}, getKeys2(section), (method) => creator(section, method))); + } + exports2.lazyDeriveSection = lazyDeriveSection; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/index.js + var require_util10 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.memo = exports2.drr = void 0; + var tslib_1 = require_tslib(); + var rpc_core_1 = require_cjs11(); + Object.defineProperty(exports2, "drr", { enumerable: true, get: function() { + return rpc_core_1.drr; + } }); + Object.defineProperty(exports2, "memo", { enumerable: true, get: function() { + return rpc_core_1.memo; + } }); + tslib_1.__exportStar(require_approvalFlagsToBools(), exports2); + tslib_1.__exportStar(require_blockNumber(), exports2); + tslib_1.__exportStar(require_cache(), exports2); + tslib_1.__exportStar(require_cacheImpl(), exports2); + tslib_1.__exportStar(require_first2(), exports2); + tslib_1.__exportStar(require_lazy3(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/accountId.js + var require_accountId = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/accountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.accountId = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function accountId(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => { + const decoded = (0, util_1.isU8a)(address) ? address : (0, util_crypto_1.decodeAddress)((address || "").toString()); + if (decoded.length > 8) { + return (0, rxjs_1.of)(api.registry.createType("AccountId", decoded)); + } + const accountIndex = api.registry.createType("AccountIndex", decoded); + return api.derive.accounts.indexToId(accountIndex.toString()).pipe((0, rxjs_1.map)((a) => (0, util_1.assertReturn)(a, "Unable to retrieve accountId"))); + }); + } + exports2.accountId = accountId; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/flags.js + var require_flags = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/flags.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flags = exports2._flags = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function parseFlags(address, [electionsMembers, councilMembers, technicalCommitteeMembers, societyMembers, sudoKey]) { + const addrStr = address?.toString(); + const isIncluded = (id4) => id4.toString() === addrStr; + return { + isCouncil: (electionsMembers?.map((r10) => Array.isArray(r10) ? r10[0] : r10.who) || councilMembers || []).some(isIncluded), + isSociety: (societyMembers || []).some(isIncluded), + isSudo: sudoKey?.toString() === addrStr, + isTechCommittee: (technicalCommitteeMembers || []).some(isIncluded) + }; + } + function _flags(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + const results = [void 0, [], [], [], void 0]; + const calls = [ + (api.query.elections || api.query["phragmenElection"] || api.query["electionsPhragmen"])?.members, + api.query.council?.members, + api.query.technicalCommittee?.members, + api.query.society?.members, + api.query.sudo?.key + ]; + const filtered = calls.filter((c) => c); + if (!filtered.length) { + return (0, rxjs_1.of)(results); + } + return api.queryMulti(filtered).pipe((0, rxjs_1.map)((values) => { + let resultIndex = -1; + for (let i = 0, count = calls.length; i < count; i++) { + if ((0, util_1.isFunction)(calls[i])) { + results[i] = values[++resultIndex]; + } + } + return results; + })); + }); + } + exports2._flags = _flags; + function flags(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts._flags().pipe((0, rxjs_1.map)((r10) => parseFlags(address, r10)))); + } + exports2.flags = flags; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/idAndIndex.js + var require_idAndIndex = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/idAndIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.idAndIndex = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function idAndIndex(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => { + try { + const decoded = (0, util_1.isU8a)(address) ? address : (0, util_crypto_1.decodeAddress)((address || "").toString()); + if (decoded.length > 8) { + const accountId = api.registry.createType("AccountId", decoded); + return api.derive.accounts.idToIndex(accountId).pipe((0, rxjs_1.map)((accountIndex2) => [accountId, accountIndex2])); + } + const accountIndex = api.registry.createType("AccountIndex", decoded); + return api.derive.accounts.indexToId(accountIndex.toString()).pipe((0, rxjs_1.map)((accountId) => [accountId, accountIndex])); + } catch { + return (0, rxjs_1.of)([void 0, void 0]); + } + }); + } + exports2.idAndIndex = idAndIndex; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/identity.js + var require_identity2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/identity.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.hasIdentityMulti = exports2.hasIdentity = exports2.identity = exports2._identity = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var UNDEF_HEX = { toHex: () => void 0 }; + function dataAsString(data) { + return data.isRaw ? (0, util_1.u8aToString)(data.asRaw.toU8a(true)) : data.isNone ? void 0 : data.toHex(); + } + function extractOther(additional) { + return additional.reduce((other, [_key, _value]) => { + const key2 = dataAsString(_key); + const value = dataAsString(_value); + if (key2 && value) { + other[key2] = value; + } + return other; + }, {}); + } + function identityCompat(identityOfOpt) { + const identity4 = identityOfOpt.unwrap(); + return Array.isArray(identity4) ? identity4[0] : identity4; + } + function extractIdentity(identityOfOpt, superOf) { + if (!identityOfOpt?.isSome) { + return { judgements: [] }; + } + const { info, judgements } = identityCompat(identityOfOpt); + const topDisplay = dataAsString(info.display); + return { + display: superOf && dataAsString(superOf[1]) || topDisplay, + displayParent: superOf && topDisplay, + email: dataAsString(info.email), + image: dataAsString(info.image), + judgements, + legal: dataAsString(info.legal), + other: extractOther(info.additional), + parent: superOf?.[0], + pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(), + riot: dataAsString(info.riot), + twitter: dataAsString(info.twitter), + web: dataAsString(info.web) + }; + } + function getParent(api, identityOfOpt, superOfOpt) { + if (identityOfOpt?.isSome) { + return (0, rxjs_1.of)([identityOfOpt, void 0]); + } else if (superOfOpt?.isSome) { + const superOf = superOfOpt.unwrap(); + return (0, rxjs_1.combineLatest)([ + api.derive.accounts._identity(superOf[0]).pipe((0, rxjs_1.map)(([info]) => info)), + (0, rxjs_1.of)(superOf) + ]); + } + return (0, rxjs_1.of)([void 0, void 0]); + } + function _identity(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => accountId && api.query.identity?.identityOf ? (0, rxjs_1.combineLatest)([ + api.query.identity.identityOf(accountId), + api.query.identity.superOf(accountId) + ]) : (0, rxjs_1.of)([void 0, void 0])); + } + exports2._identity = _identity; + function identity3(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.accounts._identity(accountId).pipe((0, rxjs_1.switchMap)(([identityOfOpt, superOfOpt]) => getParent(api, identityOfOpt, superOfOpt)), (0, rxjs_1.map)(([identityOfOpt, superOf]) => extractIdentity(identityOfOpt, superOf)))); + } + exports2.identity = identity3; + exports2.hasIdentity = (0, index_js_1.firstMemo)((api, accountId) => api.derive.accounts.hasIdentityMulti([accountId])); + function hasIdentityMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds) => api.query.identity?.identityOf ? (0, rxjs_1.combineLatest)([ + api.query.identity.identityOf.multi(accountIds), + api.query.identity.superOf.multi(accountIds) + ]).pipe((0, rxjs_1.map)(([identities, supers]) => identities.map((identityOfOpt, index) => { + const superOfOpt = supers[index]; + const parentId = superOfOpt && superOfOpt.isSome ? superOfOpt.unwrap()[0].toString() : void 0; + let display; + if (identityOfOpt && identityOfOpt.isSome) { + const value = dataAsString(identityCompat(identityOfOpt).info.display); + if (value && !(0, util_1.isHex)(value)) { + display = value; + } + } + return { display, hasIdentity: !!(display || parentId), parentId }; + }))) : (0, rxjs_1.of)(accountIds.map(() => ({ hasIdentity: false })))); + } + exports2.hasIdentityMulti = hasIdentityMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/idToIndex.js + var require_idToIndex = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/idToIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.idToIndex = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function idToIndex(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.accounts.indexes().pipe((0, rxjs_1.map)((indexes) => indexes[accountId.toString()]))); + } + exports2.idToIndex = idToIndex; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/indexes.js + var require_indexes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/indexes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var indicesCache = null; + function queryAccounts(api) { + return api.query.indices.accounts.entries().pipe((0, rxjs_1.map)((entries) => entries.reduce((indexes2, [key2, idOpt]) => { + if (idOpt.isSome) { + indexes2[idOpt.unwrap()[0].toString()] = api.registry.createType("AccountIndex", key2.args[0]); + } + return indexes2; + }, {}))); + } + function indexes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => indicesCache ? (0, rxjs_1.of)(indicesCache) : (api.query.indices ? queryAccounts(api).pipe((0, rxjs_1.startWith)({})) : (0, rxjs_1.of)({})).pipe((0, rxjs_1.map)((indices) => { + indicesCache = indices; + return indices; + }))); + } + exports2.indexes = indexes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/indexToId.js + var require_indexToId = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/indexToId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexToId = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function indexToId(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIndex) => api.query.indices ? api.query.indices.accounts(accountIndex).pipe((0, rxjs_1.map)((optResult) => optResult.unwrapOr([])[0])) : (0, rxjs_1.of)(void 0)); + } + exports2.indexToId = indexToId; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/info.js + var require_info = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function retrieveNick(api, accountId) { + return (accountId && api.query["nicks"]?.["nameOf"] ? api.query["nicks"]["nameOf"](accountId) : (0, rxjs_1.of)(void 0)).pipe((0, rxjs_1.map)((nameOf) => nameOf?.isSome ? (0, util_1.u8aToString)(nameOf.unwrap()[0]).substring(0, api.consts["nicks"]["maxLength"].toNumber()) : void 0)); + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts.idAndIndex(address).pipe((0, rxjs_1.switchMap)(([accountId, accountIndex]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)({ accountId, accountIndex }), + api.derive.accounts.identity(accountId), + retrieveNick(api, accountId) + ])), (0, rxjs_1.map)(([{ accountId, accountIndex }, identity3, nickname]) => ({ + accountId, + accountIndex, + identity: identity3, + nickname + })))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/index.js + var require_accounts = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_accountId(), exports2); + tslib_1.__exportStar(require_flags(), exports2); + tslib_1.__exportStar(require_idAndIndex(), exports2); + tslib_1.__exportStar(require_identity2(), exports2); + tslib_1.__exportStar(require_idToIndex(), exports2); + tslib_1.__exportStar(require_indexes(), exports2); + tslib_1.__exportStar(require_indexToId(), exports2); + tslib_1.__exportStar(require_info(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/helpers.js + var require_helpers5 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/helpers.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.callMethod = exports2.withSection = exports2.getInstance = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function getInstance(api, section) { + const instances2 = api.registry.getModuleInstances(api.runtimeVersion.specName, section); + const name6 = instances2?.length ? instances2[0] : section; + return api.query[name6]; + } + exports2.getInstance = getInstance; + function withSection(section, fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, fn2(getInstance(api, section), api, instanceId)); + } + exports2.withSection = withSection; + function callMethod(method, empty) { + return (section) => withSection(section, (query) => () => (0, util_1.isFunction)(query?.[method]) ? query[method]() : (0, rxjs_1.of)(empty)); + } + exports2.callMethod = callMethod; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/members.js + var require_members = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/members.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.members = void 0; + var helpers_js_1 = require_helpers5(); + exports2.members = (0, helpers_js_1.callMethod)("members", []); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/prime.js + var require_prime = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/prime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var helpers_js_1 = require_helpers5(); + function prime(section) { + return (0, helpers_js_1.withSection)(section, (query) => () => (0, util_1.isFunction)(query?.prime) ? query.prime().pipe((0, rxjs_1.map)((o) => o.unwrapOr(null))) : (0, rxjs_1.of)(null)); + } + exports2.prime = prime; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/proposals.js + var require_proposals = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.proposals = exports2.hasProposals = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var helpers_js_1 = require_helpers5(); + function parse2(api, [hashes, proposals2, votes]) { + return proposals2.map((o, index) => ({ + hash: api.registry.createType("Hash", hashes[index]), + proposal: o && o.isSome ? o.unwrap() : null, + votes: votes[index].unwrapOr(null) + })); + } + function _proposalsFrom(api, query, hashes) { + return ((0, util_1.isFunction)(query?.proposals) && hashes.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(hashes), + query.proposalOf.multi(hashes).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(hashes.map(() => null)))), + query.voting.multi(hashes) + ]) : (0, rxjs_1.of)([[], [], []])).pipe((0, rxjs_1.map)((r10) => parse2(api, r10))); + } + function hasProposals(section) { + return (0, helpers_js_1.withSection)(section, (query) => () => (0, rxjs_1.of)((0, util_1.isFunction)(query?.proposals))); + } + exports2.hasProposals = hasProposals; + function proposals(section) { + return (0, helpers_js_1.withSection)(section, (query, api) => () => api.derive[section].proposalHashes().pipe((0, rxjs_1.switchMap)((all) => _proposalsFrom(api, query, all)))); + } + exports2.proposals = proposals; + function proposal(section) { + return (0, helpers_js_1.withSection)(section, (query, api) => (hash8) => (0, util_1.isFunction)(query?.proposals) ? (0, index_js_1.firstObservable)(_proposalsFrom(api, query, [hash8])) : (0, rxjs_1.of)(null)); + } + exports2.proposal = proposal; + exports2.proposalCount = (0, helpers_js_1.callMethod)("proposalCount", null); + exports2.proposalHashes = (0, helpers_js_1.callMethod)("proposals", []); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/index.js + var require_collective = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_members(), exports2); + tslib_1.__exportStar(require_prime(), exports2); + tslib_1.__exportStar(require_proposals(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/alliance/index.js + var require_alliance = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/alliance/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("allianceMotion"); + exports2.hasProposals = (0, index_js_1.hasProposals)("allianceMotion"); + exports2.proposal = (0, index_js_1.proposal)("allianceMotion"); + exports2.proposalCount = (0, index_js_1.proposalCount)("allianceMotion"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("allianceMotion"); + exports2.proposals = (0, index_js_1.proposals)("allianceMotion"); + exports2.prime = (0, index_js_1.prime)("allianceMotion"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/util.js + var require_util11 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getQueryInterface = void 0; + function getQueryInterface(api) { + return api.query.voterList || api.query["voterBagsList"] || api.query["bagsList"]; + } + exports2.getQueryInterface = getQueryInterface; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/get.js + var require_get = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/get.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.get = exports2.all = exports2._getIds = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util11(); + function orderBags(ids, bags) { + const sorted = ids.map((id4, index) => ({ + bag: bags[index].unwrapOr(null), + id: id4, + key: id4.toString() + })).sort((a, b) => b.id.cmp(a.id)); + const max2 = sorted.length - 1; + return sorted.map((entry, index) => (0, util_1.objectSpread)(entry, { + bagLower: index === max2 ? util_1.BN_ZERO : sorted[index + 1].id, + bagUpper: entry.id, + index + })); + } + function _getIds(instanceId, api) { + const query = (0, util_js_1.getQueryInterface)(api); + return (0, index_js_1.memo)(instanceId, (_ids) => { + const ids = _ids.map((id4) => (0, util_1.bnToBn)(id4)); + return ids.length ? query.listBags.multi(ids).pipe((0, rxjs_1.map)((bags) => orderBags(ids, bags))) : (0, rxjs_1.of)([]); + }); + } + exports2._getIds = _getIds; + function all(instanceId, api) { + const query = (0, util_js_1.getQueryInterface)(api); + return (0, index_js_1.memo)(instanceId, () => query.listBags.keys().pipe((0, rxjs_1.switchMap)((keys) => api.derive.bagsList._getIds(keys.map(({ args: [id4] }) => id4))), (0, rxjs_1.map)((list) => list.filter(({ bag }) => bag)))); + } + exports2.all = all; + function get(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.derive.bagsList._getIds([(0, util_1.bnToBn)(id4)]).pipe((0, rxjs_1.map)((bags) => bags[0]))); + } + exports2.get = get; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/getExpanded.js + var require_getExpanded = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/getExpanded.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getExpanded = exports2.expand = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function expand(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (bag) => api.derive.bagsList.listNodes(bag.bag).pipe((0, rxjs_1.map)((nodes) => (0, util_1.objectSpread)({ nodes }, bag)))); + } + exports2.expand = expand; + function getExpanded(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.derive.bagsList.get(id4).pipe((0, rxjs_1.switchMap)((bag) => api.derive.bagsList.expand(bag)))); + } + exports2.getExpanded = getExpanded; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/listNodes.js + var require_listNodes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/listNodes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.listNodes = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util11(); + function traverseLinks(api, head) { + const subject2 = new rxjs_1.BehaviorSubject(head); + const query = (0, util_js_1.getQueryInterface)(api); + return subject2.pipe( + (0, rxjs_1.switchMap)((account) => query.listNodes(account)), + (0, rxjs_1.tap)((node) => { + (0, util_1.nextTick)(() => { + node.isSome && node.value.next.isSome ? subject2.next(node.unwrap().next.unwrap()) : subject2.complete(); + }); + }), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)((all) => all.map((o) => o.unwrap())) + ); + } + function listNodes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (bag) => bag && bag.head.isSome ? traverseLinks(api, bag.head.unwrap()) : (0, rxjs_1.of)([])); + } + exports2.listNodes = listNodes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/index.js + var require_bagsList = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_get(), exports2); + tslib_1.__exportStar(require_getExpanded(), exports2); + tslib_1.__exportStar(require_listNodes(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/all.js + var require_all = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/all.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.all = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var VESTING_ID = "0x76657374696e6720"; + function calcLocked(api, bestNumber, locks) { + let lockedBalance = api.registry.createType("Balance"); + let lockedBreakdown = []; + let vestingLocked = api.registry.createType("Balance"); + let allLocked = false; + if (Array.isArray(locks)) { + lockedBreakdown = locks.filter(({ until }) => !until || bestNumber && until.gt(bestNumber)); + allLocked = lockedBreakdown.some(({ amount }) => amount && amount.isMax()); + vestingLocked = api.registry.createType("Balance", lockedBreakdown.filter(({ id: id4 }) => id4.eq(VESTING_ID)).reduce((result, { amount }) => result.iadd(amount), new util_1.BN(0))); + const notAll = lockedBreakdown.filter(({ amount }) => amount && !amount.isMax()); + if (notAll.length) { + lockedBalance = api.registry.createType("Balance", (0, util_1.bnMax)(...notAll.map(({ amount }) => amount))); + } + } + return { allLocked, lockedBalance, lockedBreakdown, vestingLocked }; + } + function calcShared(api, bestNumber, data, locks) { + const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks); + return (0, util_1.objectSpread)({}, data, { + availableBalance: api.registry.createType("Balance", allLocked ? 0 : (0, util_1.bnMax)(new util_1.BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new util_1.BN(0))), + lockedBalance, + lockedBreakdown, + vestingLocked + }); + } + function calcVesting(bestNumber, shared, _vesting) { + const vesting = _vesting || []; + const isVesting = !shared.vestingLocked.isZero(); + const vestedBalances = vesting.map(({ locked, perBlock, startingBlock }) => bestNumber.gt(startingBlock) ? (0, util_1.bnMin)(locked, perBlock.mul(bestNumber.sub(startingBlock))) : util_1.BN_ZERO); + const vestedBalance = vestedBalances.reduce((all2, value) => all2.iadd(value), new util_1.BN(0)); + const vestingTotal = vesting.reduce((all2, { locked }) => all2.iadd(locked), new util_1.BN(0)); + return { + isVesting, + vestedBalance, + vestedClaimable: isVesting ? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance)) : util_1.BN_ZERO, + vesting: vesting.map(({ locked, perBlock, startingBlock }, index) => ({ + endBlock: locked.div(perBlock).iadd(startingBlock), + locked, + perBlock, + startingBlock, + vested: vestedBalances[index] + })).filter(({ locked }) => !locked.isZero()), + vestingTotal + }; + } + function calcBalances(api, result) { + const [data, [vesting, allLocks, namedReserves], bestNumber] = result; + const shared = calcShared(api, bestNumber, data, allLocks[0]); + return (0, util_1.objectSpread)(shared, calcVesting(bestNumber, shared, vesting), { + accountId: data.accountId, + accountNonce: data.accountNonce, + additional: allLocks.slice(1).map((l15, index) => calcShared(api, bestNumber, data.additional[index], l15)), + namedReserves + }); + } + function queryOld(api, accountId) { + return (0, rxjs_1.combineLatest)([ + api.query.balances.locks(accountId), + api.query.balances["vesting"](accountId) + ]).pipe((0, rxjs_1.map)(([locks, optVesting]) => { + let vestingNew = null; + if (optVesting.isSome) { + const { offset: locked, perBlock, startingBlock } = optVesting.unwrap(); + vestingNew = api.registry.createType("VestingInfo", { locked, perBlock, startingBlock }); + } + return [ + vestingNew ? [vestingNew] : null, + [locks], + [] + ]; + })); + } + var isNonNullable = (nullable) => !!nullable; + function createCalls(calls) { + return [ + calls.map((c) => !c), + calls.filter(isNonNullable) + ]; + } + function queryCurrent(api, accountId, balanceInstances = ["balances"]) { + const [lockEmpty, lockQueries] = createCalls(balanceInstances.map((m) => api.derive[m]?.customLocks || api.query[m]?.locks)); + const [reserveEmpty, reserveQueries] = createCalls(balanceInstances.map((m) => api.query[m]?.reserves)); + return (0, rxjs_1.combineLatest)([ + api.query.vesting?.vesting ? api.query.vesting.vesting(accountId) : (0, rxjs_1.of)(api.registry.createType("Option")), + lockQueries.length ? (0, rxjs_1.combineLatest)(lockQueries.map((c) => c(accountId))) : (0, rxjs_1.of)([]), + reserveQueries.length ? (0, rxjs_1.combineLatest)(reserveQueries.map((c) => c(accountId))) : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([opt, locks, reserves]) => { + let offsetLock = -1; + let offsetReserve = -1; + const vesting = opt.unwrapOr(null); + return [ + vesting ? Array.isArray(vesting) ? vesting : [vesting] : null, + lockEmpty.map((e) => e ? api.registry.createType("Vec") : locks[++offsetLock]), + reserveEmpty.map((e) => e ? api.registry.createType("Vec") : reserves[++offsetReserve]) + ]; + })); + } + function all(instanceId, api) { + const balanceInstances = api.registry.getModuleInstances(api.runtimeVersion.specName, "balances"); + return (0, index_js_1.memo)(instanceId, (address) => (0, rxjs_1.combineLatest)([ + api.derive.balances.account(address), + (0, util_1.isFunction)(api.query.system?.account) || (0, util_1.isFunction)(api.query.balances?.account) ? queryCurrent(api, address, balanceInstances) : queryOld(api, address) + ]).pipe((0, rxjs_1.switchMap)(([account, locks]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(account), + (0, rxjs_1.of)(locks), + api.derive.chain.bestNumber() + ])), (0, rxjs_1.map)((result) => calcBalances(api, result)))); + } + exports2.all = all; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/account.js + var require_account = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/account.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.account = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function zeroBalance(api) { + return api.registry.createType("Balance"); + } + function getBalance(api, [freeBalance, reservedBalance, frozenFee, frozenMisc]) { + const votingBalance = api.registry.createType("Balance", freeBalance.toBn()); + return { + freeBalance, + frozenFee, + frozenMisc, + reservedBalance, + votingBalance + }; + } + function calcBalances(api, [accountId, [accountNonce, [primary, ...additional]]]) { + return (0, util_1.objectSpread)({ + accountId, + accountNonce, + additional: additional.map((b) => getBalance(api, b)) + }, getBalance(api, primary)); + } + function queryBalancesFree(api, accountId) { + return (0, rxjs_1.combineLatest)([ + api.query.balances["freeBalance"](accountId), + api.query.balances["reservedBalance"](accountId), + api.query.system["accountNonce"](accountId) + ]).pipe((0, rxjs_1.map)(([freeBalance, reservedBalance, accountNonce]) => [ + accountNonce, + [[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]] + ])); + } + function queryNonceOnly(api, accountId) { + const fill = (nonce) => [ + nonce, + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]; + return (0, util_1.isFunction)(api.query.system.account) ? api.query.system.account(accountId).pipe((0, rxjs_1.map)(({ nonce }) => fill(nonce))) : (0, util_1.isFunction)(api.query.system["accountNonce"]) ? api.query.system["accountNonce"](accountId).pipe((0, rxjs_1.map)((nonce) => fill(nonce))) : (0, rxjs_1.of)(fill(api.registry.createType("Index"))); + } + function queryBalancesAccount(api, accountId, modules = ["balances"]) { + const balances = modules.map((m) => api.derive[m]?.customAccount || api.query[m]?.account).filter((q) => (0, util_1.isFunction)(q)); + const extract = (nonce, data) => [ + nonce, + data.map(({ feeFrozen, free, miscFrozen, reserved }) => [free, reserved, feeFrozen, miscFrozen]) + ]; + return balances.length ? (0, util_1.isFunction)(api.query.system.account) ? (0, rxjs_1.combineLatest)([ + api.query.system.account(accountId), + ...balances.map((c) => c(accountId)) + ]).pipe((0, rxjs_1.map)(([{ nonce }, ...balances2]) => extract(nonce, balances2))) : (0, rxjs_1.combineLatest)([ + api.query.system["accountNonce"](accountId), + ...balances.map((c) => c(accountId)) + ]).pipe((0, rxjs_1.map)(([nonce, ...balances2]) => extract(nonce, balances2))) : queryNonceOnly(api, accountId); + } + function querySystemAccount(api, accountId) { + return api.query.system.account(accountId).pipe((0, rxjs_1.map)((infoOrTuple) => { + const data = infoOrTuple.nonce ? infoOrTuple.data : infoOrTuple[1]; + const nonce = infoOrTuple.nonce || infoOrTuple[0]; + if (!data || data.isEmpty) { + return [ + nonce, + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]; + } + const { feeFrozen, free, miscFrozen, reserved } = data; + return [ + nonce, + [[free, reserved, feeFrozen, miscFrozen]] + ]; + })); + } + function account(instanceId, api) { + const balanceInstances = api.registry.getModuleInstances(api.runtimeVersion.specName, "balances"); + const nonDefaultBalances = balanceInstances && balanceInstances[0] !== "balances"; + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts.accountId(address).pipe((0, rxjs_1.switchMap)((accountId) => accountId ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountId), + nonDefaultBalances ? queryBalancesAccount(api, accountId, balanceInstances) : (0, util_1.isFunction)(api.query.system?.account) ? querySystemAccount(api, accountId) : (0, util_1.isFunction)(api.query.balances?.account) ? queryBalancesAccount(api, accountId) : (0, util_1.isFunction)(api.query.balances?.["freeBalance"]) ? queryBalancesFree(api, accountId) : queryNonceOnly(api, accountId) + ]) : (0, rxjs_1.of)([api.registry.createType("AccountId"), [ + api.registry.createType("Index"), + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]])), (0, rxjs_1.map)((result) => calcBalances(api, result)))); + } + exports2.account = account; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/votingBalances.js + var require_votingBalances = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/votingBalances.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votingBalances = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function votingBalances(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (addresses2) => !addresses2?.length ? (0, rxjs_1.of)([]) : (0, rxjs_1.combineLatest)(addresses2.map((accountId) => api.derive.balances.account(accountId)))); + } + exports2.votingBalances = votingBalances; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/index.js + var require_balances = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votingBalance = exports2.all = void 0; + var tslib_1 = require_tslib(); + var all_js_1 = require_all(); + Object.defineProperty(exports2, "all", { enumerable: true, get: function() { + return all_js_1.all; + } }); + tslib_1.__exportStar(require_account(), exports2); + tslib_1.__exportStar(require_votingBalances(), exports2); + var votingBalance = all_js_1.all; + exports2.votingBalance = votingBalance; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/helpers/filterBountyProposals.js + var require_filterBountyProposals = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/helpers/filterBountyProposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterBountiesProposals = void 0; + function filterBountiesProposals(api, allProposals) { + const bountyTxBase = api.tx.bounties ? api.tx.bounties : api.tx.treasury; + const bountyProposalCalls = [bountyTxBase.approveBounty, bountyTxBase.closeBounty, bountyTxBase.proposeCurator, bountyTxBase.unassignCurator]; + return allProposals.filter((proposal) => bountyProposalCalls.find((bountyCall) => proposal.proposal && bountyCall.is(proposal.proposal))); + } + exports2.filterBountiesProposals = filterBountiesProposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/bounties.js + var require_bounties = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/bounties.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bounties = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var filterBountyProposals_js_1 = require_filterBountyProposals(); + function parseResult([maybeBounties, maybeDescriptions, ids, bountyProposals]) { + const bounties2 = []; + maybeBounties.forEach((bounty, index) => { + if (bounty.isSome) { + bounties2.push({ + bounty: bounty.unwrap(), + description: maybeDescriptions[index].unwrapOrDefault().toUtf8(), + index: ids[index], + proposals: bountyProposals.filter((bountyProposal) => bountyProposal.proposal && ids[index].eq(bountyProposal.proposal.args[0])) + }); + } + }); + return bounties2; + } + function bounties(instanceId, api) { + const bountyBase = api.query.bounties || api.query.treasury; + return (0, index_js_1.memo)(instanceId, () => bountyBase.bounties ? (0, rxjs_1.combineLatest)([ + bountyBase.bountyCount(), + api.query.council ? api.query.council.proposalCount() : (0, rxjs_1.of)(0) + ]).pipe((0, rxjs_1.switchMap)(() => (0, rxjs_1.combineLatest)([ + bountyBase.bounties.keys(), + api.derive.council ? api.derive.council.proposals() : (0, rxjs_1.of)([]) + ])), (0, rxjs_1.switchMap)(([keys, proposals]) => { + const ids = keys.map(({ args: [id4] }) => id4); + return (0, rxjs_1.combineLatest)([ + bountyBase.bounties.multi(ids), + bountyBase.bountyDescriptions.multi(ids), + (0, rxjs_1.of)(ids), + (0, rxjs_1.of)((0, filterBountyProposals_js_1.filterBountiesProposals)(api, proposals)) + ]); + }), (0, rxjs_1.map)(parseResult)) : (0, rxjs_1.of)(parseResult([[], [], [], []]))); + } + exports2.bounties = bounties; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/index.js + var require_bounties2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_bounties(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/util.js + var require_util12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAuthorDetails = exports2.createBlockNumberDerive = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function createBlockNumberDerive(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, () => fn2(api).pipe((0, rxjs_1.map)(index_js_1.unwrapBlockNumber))); + } + exports2.createBlockNumberDerive = createBlockNumberDerive; + function getAuthorDetailsWithAt(header, queryAt) { + const validators = queryAt.session?.validators ? queryAt.session.validators() : (0, rxjs_1.of)(null); + const { logs: [log] } = header.digest; + const loggedAuthor = log && (log.isConsensus && log.asConsensus[0].isNimbus && log.asConsensus[1] || log.isPreRuntime && log.asPreRuntime[0].isNimbus && log.asPreRuntime[1]); + if (loggedAuthor) { + if (queryAt["authorMapping"]?.["mappingWithDeposit"]) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + queryAt["authorMapping"]["mappingWithDeposit"](loggedAuthor).pipe((0, rxjs_1.map)((o) => o.unwrapOr({ account: null }).account)) + ]); + } + if (queryAt["parachainStaking"]?.["selectedCandidates"] && queryAt.session?.nextKeys) { + const loggedHex = loggedAuthor.toHex(); + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + queryAt["parachainStaking"]["selectedCandidates"]().pipe((0, rxjs_1.mergeMap)((selectedCandidates) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(selectedCandidates), + queryAt.session.nextKeys.multi(selectedCandidates).pipe((0, rxjs_1.map)((nextKeys) => nextKeys.findIndex((o) => o.unwrapOrDefault().nimbus.toHex() === loggedHex))) + ])), (0, rxjs_1.map)(([selectedCandidates, index]) => index === -1 ? null : selectedCandidates[index])) + ]); + } + } + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + (0, rxjs_1.of)(null) + ]); + } + function getAuthorDetails(api, header, blockHash) { + return api.queryAt(header.parentHash.isEmpty ? blockHash || header.hash : header.parentHash).pipe((0, rxjs_1.switchMap)((queryAt) => getAuthorDetailsWithAt(header, queryAt))); + } + exports2.getAuthorDetails = getAuthorDetails; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumber.js + var require_bestNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumber = void 0; + var util_js_1 = require_util12(); + exports2.bestNumber = (0, util_js_1.createBlockNumberDerive)((api) => api.rpc.chain.subscribeNewHeads()); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberFinalized.js + var require_bestNumberFinalized = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberFinalized.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumberFinalized = void 0; + var util_js_1 = require_util12(); + exports2.bestNumberFinalized = (0, util_js_1.createBlockNumberDerive)((api) => api.rpc.chain.subscribeFinalizedHeads()); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberLag.js + var require_bestNumberLag = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberLag.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumberLag = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function bestNumberLag(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.derive.chain.bestNumber(), + api.derive.chain.bestNumberFinalized() + ]).pipe((0, rxjs_1.map)(([bestNumber, bestNumberFinalized]) => api.registry.createType("BlockNumber", bestNumber.sub(bestNumberFinalized))))); + } + exports2.bestNumberLag = bestNumberLag; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/util.js + var require_util13 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractAuthor = void 0; + function extractAuthor(digest, sessionValidators) { + const [citem] = digest.logs.filter((e) => e.isConsensus); + const [pitem] = digest.logs.filter((e) => e.isPreRuntime); + const [sitem] = digest.logs.filter((e) => e.isSeal); + let accountId; + try { + if (pitem) { + const [engine, data] = pitem.asPreRuntime; + accountId = engine.extractAuthor(data, sessionValidators); + } + if (!accountId && citem) { + const [engine, data] = citem.asConsensus; + accountId = engine.extractAuthor(data, sessionValidators); + } + if (!accountId && sitem) { + const [engine, data] = sitem.asSeal; + accountId = engine.extractAuthor(data, sessionValidators); + } + } catch { + } + return accountId; + } + exports2.extractAuthor = extractAuthor; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/HeaderExtended.js + var require_HeaderExtended = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/HeaderExtended.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createHeaderExtended = void 0; + var util_js_1 = require_util13(); + function createHeaderExtended(registry, header, validators, author) { + const HeaderBase = registry.createClass("Header"); + class Implementation extends HeaderBase { + __internal__author; + constructor(registry2, header2, validators2, author2) { + super(registry2, header2); + this.__internal__author = author2 || (0, util_js_1.extractAuthor)(this.digest, validators2 || []); + this.createdAtHash = header2?.createdAtHash; + } + get author() { + return this.__internal__author; + } + } + return new Implementation(registry, header, validators, author); + } + exports2.createHeaderExtended = createHeaderExtended; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/SignedBlockExtended.js + var require_SignedBlockExtended = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/SignedBlockExtended.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSignedBlockExtended = void 0; + var util_js_1 = require_util13(); + function mapExtrinsics(extrinsics, records) { + return extrinsics.map((extrinsic, index) => { + let dispatchError; + let dispatchInfo; + const events = records.filter(({ phase }) => phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(index)).map(({ event }) => { + if (event.section === "system") { + if (event.method === "ExtrinsicSuccess") { + dispatchInfo = event.data[0]; + } else if (event.method === "ExtrinsicFailed") { + dispatchError = event.data[0]; + dispatchInfo = event.data[1]; + } + } + return event; + }); + return { dispatchError, dispatchInfo, events, extrinsic }; + }); + } + function createSignedBlockExtended(registry, block, events, validators, author) { + const SignedBlockBase = registry.createClass("SignedBlock"); + class Implementation extends SignedBlockBase { + __internal__author; + __internal__events; + __internal__extrinsics; + constructor(registry2, block2, events2, validators2, author2) { + super(registry2, block2); + this.__internal__author = author2 || (0, util_js_1.extractAuthor)(this.block.header.digest, validators2 || []); + this.__internal__events = events2 || []; + this.__internal__extrinsics = mapExtrinsics(this.block.extrinsics, this.__internal__events); + this.createdAtHash = block2?.createdAtHash; + } + get author() { + return this.__internal__author; + } + get events() { + return this.__internal__events; + } + get extrinsics() { + return this.__internal__extrinsics; + } + } + return new Implementation(registry, block, events, validators, author); + } + exports2.createSignedBlockExtended = createSignedBlockExtended; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/index.js + var require_type2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSignedBlockExtended = exports2.createHeaderExtended = void 0; + var HeaderExtended_js_1 = require_HeaderExtended(); + Object.defineProperty(exports2, "createHeaderExtended", { enumerable: true, get: function() { + return HeaderExtended_js_1.createHeaderExtended; + } }); + var SignedBlockExtended_js_1 = require_SignedBlockExtended(); + Object.defineProperty(exports2, "createSignedBlockExtended", { enumerable: true, get: function() { + return SignedBlockExtended_js_1.createSignedBlockExtended; + } }); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getBlock.js + var require_getBlock = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getBlock.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getBlock = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function getBlock(instanceId, api) { + return (0, index_js_2.memo)(instanceId, (blockHash) => (0, rxjs_1.combineLatest)([ + api.rpc.chain.getBlock(blockHash), + api.queryAt(blockHash) + ]).pipe((0, rxjs_1.switchMap)(([signedBlock, queryAt]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(signedBlock), + queryAt.system.events(), + (0, util_js_1.getAuthorDetails)(api, signedBlock.block.header, blockHash) + ])), (0, rxjs_1.map)(([signedBlock, events, [, validators, author]]) => (0, index_js_1.createSignedBlockExtended)(events.registry, signedBlock, events, validators, author)))); + } + exports2.getBlock = getBlock; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getBlockByNumber.js + var require_getBlockByNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getBlockByNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getBlockByNumber = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function getBlockByNumber(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (blockNumber) => api.rpc.chain.getBlockHash(blockNumber).pipe((0, rxjs_1.switchMap)((h) => api.derive.chain.getBlock(h)))); + } + exports2.getBlockByNumber = getBlockByNumber; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getHeader.js + var require_getHeader = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getHeader.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHeader = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function getHeader(instanceId, api) { + return (0, index_js_2.memo)(instanceId, (blockHash) => api.rpc.chain.getHeader(blockHash).pipe((0, rxjs_1.switchMap)((header) => (0, util_js_1.getAuthorDetails)(api, header, blockHash)), (0, rxjs_1.map)(([header, validators, author]) => (0, index_js_1.createHeaderExtended)((validators || header).registry, header, validators, author)))); + } + exports2.getHeader = getHeader; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedBlocks.js + var require_subscribeFinalizedBlocks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedBlocks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeFinalizedBlocks = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function subscribeFinalizedBlocks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.chain.subscribeFinalizedHeads().pipe((0, rxjs_1.switchMap)((header) => api.derive.chain.getBlock(header.createdAtHash || header.hash)))); + } + exports2.subscribeFinalizedBlocks = subscribeFinalizedBlocks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedHeads.js + var require_subscribeFinalizedHeads = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedHeads.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeFinalizedHeads = exports2._getHeaderRange = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _getHeaderRange(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (startHash, endHash, prev = []) => api.rpc.chain.getHeader(startHash).pipe((0, rxjs_1.switchMap)((header) => header.parentHash.eq(endHash) ? (0, rxjs_1.of)([header, ...prev]) : api.derive.chain._getHeaderRange(header.parentHash, endHash, [header, ...prev])))); + } + exports2._getHeaderRange = _getHeaderRange; + function subscribeFinalizedHeads(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + let prevHash = null; + return api.rpc.chain.subscribeFinalizedHeads().pipe((0, rxjs_1.switchMap)((header) => { + const endHash = prevHash; + const startHash = header.parentHash; + prevHash = header.createdAtHash = header.hash; + return endHash === null || startHash.eq(endHash) ? (0, rxjs_1.of)(header) : api.derive.chain._getHeaderRange(startHash, endHash, [header]).pipe((0, rxjs_1.switchMap)((headers) => (0, rxjs_1.from)(headers))); + })); + }); + } + exports2.subscribeFinalizedHeads = subscribeFinalizedHeads; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewBlocks.js + var require_subscribeNewBlocks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewBlocks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeNewBlocks = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function subscribeNewBlocks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.chain.subscribeNewHeads().pipe((0, rxjs_1.switchMap)((header) => api.derive.chain.getBlock(header.createdAtHash || header.hash)))); + } + exports2.subscribeNewBlocks = subscribeNewBlocks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewHeads.js + var require_subscribeNewHeads = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewHeads.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeNewHeads = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function subscribeNewHeads(instanceId, api) { + return (0, index_js_2.memo)(instanceId, () => api.rpc.chain.subscribeNewHeads().pipe((0, rxjs_1.switchMap)((header) => (0, util_js_1.getAuthorDetails)(api, header)), (0, rxjs_1.map)(([header, validators, author]) => { + header.createdAtHash = header.hash; + return (0, index_js_1.createHeaderExtended)(header.registry, header, validators, author); + }))); + } + exports2.subscribeNewHeads = subscribeNewHeads; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/index.js + var require_chain = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_bestNumber(), exports2); + tslib_1.__exportStar(require_bestNumberFinalized(), exports2); + tslib_1.__exportStar(require_bestNumberLag(), exports2); + tslib_1.__exportStar(require_getBlock(), exports2); + tslib_1.__exportStar(require_getBlockByNumber(), exports2); + tslib_1.__exportStar(require_getHeader(), exports2); + tslib_1.__exportStar(require_subscribeFinalizedBlocks(), exports2); + tslib_1.__exportStar(require_subscribeFinalizedHeads(), exports2); + tslib_1.__exportStar(require_subscribeNewBlocks(), exports2); + tslib_1.__exportStar(require_subscribeNewHeads(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/contracts/fees.js + var require_fees = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/contracts/fees.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fees = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function queryConstants(api) { + return (0, rxjs_1.of)([ + api.consts.contracts["callBaseFee"] || api.registry.createType("Balance"), + api.consts.contracts["contractFee"] || api.registry.createType("Balance"), + api.consts.contracts["creationFee"] || api.registry.createType("Balance"), + api.consts.contracts["transactionBaseFee"] || api.registry.createType("Balance"), + api.consts.contracts["transactionByteFee"] || api.registry.createType("Balance"), + api.consts.contracts["transferFee"] || api.registry.createType("Balance"), + api.consts.contracts["rentByteFee"] || api.registry.createType("Balance"), + api.consts.contracts["rentDepositOffset"] || api.registry.createType("Balance"), + api.consts.contracts["surchargeReward"] || api.registry.createType("Balance"), + api.consts.contracts["tombstoneDeposit"] || api.registry.createType("Balance") + ]); + } + function fees(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + return queryConstants(api).pipe((0, rxjs_1.map)(([callBaseFee, contractFee, creationFee, transactionBaseFee, transactionByteFee, transferFee, rentByteFee, rentDepositOffset, surchargeReward, tombstoneDeposit]) => ({ + callBaseFee, + contractFee, + creationFee, + rentByteFee, + rentDepositOffset, + surchargeReward, + tombstoneDeposit, + transactionBaseFee, + transactionByteFee, + transferFee + }))); + }); + } + exports2.fees = fees; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/contracts/index.js + var require_contracts = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/contracts/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fees(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/votes.js + var require_votes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/votes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function isVoter(value) { + return !Array.isArray(value); + } + function retrieveStakeOf(elections) { + return elections["stakeOf"].entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, stake]) => [accountId, stake]))); + } + function retrieveVoteOf(elections) { + return elections["votesOf"].entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, votes2]) => [accountId, votes2]))); + } + function retrievePrev(api, elections) { + return (0, rxjs_1.combineLatest)([ + retrieveStakeOf(elections), + retrieveVoteOf(elections) + ]).pipe((0, rxjs_1.map)(([stakes, votes2]) => { + const result = []; + votes2.forEach(([voter, votes3]) => { + result.push([voter, { stake: api.registry.createType("Balance"), votes: votes3 }]); + }); + stakes.forEach(([staker, stake]) => { + const entry = result.find(([voter]) => voter.eq(staker)); + if (entry) { + entry[1].stake = stake; + } else { + result.push([staker, { stake, votes: [] }]); + } + }); + return result; + })); + } + function retrieveCurrent(elections) { + return elections.voting.entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, value]) => [ + accountId, + isVoter(value) ? { stake: value.stake, votes: value.votes } : { stake: value[0], votes: value[1] } + ]))); + } + function votes(instanceId, api) { + const elections = api.query.elections || api.query["phragmenElection"] || api.query["electionsPhragmen"]; + return (0, index_js_1.memo)(instanceId, () => elections ? elections["stakeOf"] ? retrievePrev(api, elections) : retrieveCurrent(elections) : (0, rxjs_1.of)([])); + } + exports2.votes = votes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/votesOf.js + var require_votesOf = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/votesOf.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votesOf = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function votesOf(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.council.votes().pipe((0, rxjs_1.map)((votes) => (votes.find(([from2]) => from2.eq(accountId)) || [null, { stake: api.registry.createType("Balance"), votes: [] }])[1]))); + } + exports2.votesOf = votesOf; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/index.js + var require_council = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var tslib_1 = require_tslib(); + var index_js_1 = require_collective(); + tslib_1.__exportStar(require_votes(), exports2); + tslib_1.__exportStar(require_votesOf(), exports2); + exports2.members = (0, index_js_1.members)("council"); + exports2.hasProposals = (0, index_js_1.hasProposals)("council"); + exports2.proposal = (0, index_js_1.proposal)("council"); + exports2.proposalCount = (0, index_js_1.proposalCount)("council"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("council"); + exports2.proposals = (0, index_js_1.proposals)("council"); + exports2.prime = (0, index_js_1.prime)("council"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/childKey.js + var require_childKey = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/childKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.childKey = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function createChildKey(info) { + return (0, util_1.u8aToHex)((0, util_1.u8aConcat)(":child_storage:default:", (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)("crowdloan", (info.fundIndex || info.trieIndex).toU8a())))); + } + function childKey(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId) => api.query["crowdloan"]["funds"](paraId).pipe((0, rxjs_1.map)((optInfo) => optInfo.isSome ? createChildKey(optInfo.unwrap()) : null))); + } + exports2.childKey = childKey; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/util.js + var require_util14 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractContributed = void 0; + function extractContributed(paraId, events) { + const added = []; + const removed = []; + return events.filter(({ event: { data: [, eventParaId], method, section } }) => section === "crowdloan" && ["Contributed", "Withdrew"].includes(method) && eventParaId.eq(paraId)).reduce((result, { event: { data: [accountId], method } }) => { + if (method === "Contributed") { + result.added.push(accountId.toHex()); + } else { + result.removed.push(accountId.toHex()); + } + return result; + }, { added, blockHash: events.createdAtHash?.toHex() || "-", removed }); + } + exports2.extractContributed = extractContributed; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/contributions.js + var require_contributions = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/contributions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.contributions = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util14(); + var PAGE_SIZE_K = 1e3; + function _getUpdates(api, paraId) { + let added = []; + let removed = []; + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const changes = (0, util_js_1.extractContributed)(paraId, events); + if (changes.added.length || changes.removed.length) { + added = added.concat(...changes.added); + removed = removed.concat(...changes.removed); + return (0, rxjs_1.of)({ added, addedDelta: changes.added, blockHash: events.createdAtHash?.toHex() || "-", removed, removedDelta: changes.removed }); + } + return rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)({ added, addedDelta: [], blockHash: "-", removed, removedDelta: [] })); + } + function _eventTriggerAll(api, paraId) { + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const items = events.filter(({ event: { data: [eventParaId], method, section } }) => section === "crowdloan" && ["AllRefunded", "Dissolved", "PartiallyRefunded"].includes(method) && eventParaId.eq(paraId)); + return items.length ? (0, rxjs_1.of)(events.createdAtHash?.toHex() || "-") : rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)("-")); + } + function _getKeysPaged(api, childKey) { + const subject2 = new rxjs_1.BehaviorSubject(void 0); + return subject2.pipe( + (0, rxjs_1.switchMap)((startKey) => api.rpc.childstate.getKeysPaged(childKey, "0x", PAGE_SIZE_K, startKey)), + (0, rxjs_1.tap)((keys) => { + (0, util_1.nextTick)(() => { + keys.length === PAGE_SIZE_K ? subject2.next(keys[PAGE_SIZE_K - 1].toHex()) : subject2.complete(); + }); + }), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)((keyArr) => (0, util_1.arrayFlatten)(keyArr)) + ); + } + function _getAll(api, paraId, childKey) { + return _eventTriggerAll(api, paraId).pipe((0, rxjs_1.switchMap)(() => (0, util_1.isFunction)(api.rpc.childstate.getKeysPaged) ? _getKeysPaged(api, childKey) : api.rpc.childstate.getKeys(childKey, "0x")), (0, rxjs_1.map)((keys) => keys.map((k) => k.toHex()))); + } + function _contributions(api, paraId, childKey) { + return (0, rxjs_1.combineLatest)([ + _getAll(api, paraId, childKey), + _getUpdates(api, paraId) + ]).pipe((0, rxjs_1.map)(([keys, { added, blockHash, removed }]) => { + const contributorsMap = {}; + keys.forEach((k) => { + contributorsMap[k] = true; + }); + added.forEach((k) => { + contributorsMap[k] = true; + }); + removed.forEach((k) => { + delete contributorsMap[k]; + }); + return { + blockHash, + contributorsHex: Object.keys(contributorsMap) + }; + })); + } + function contributions(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId) => api.derive.crowdloan.childKey(paraId).pipe((0, rxjs_1.switchMap)((childKey) => childKey ? _contributions(api, paraId, childKey) : (0, rxjs_1.of)({ blockHash: "-", contributorsHex: [] })))); + } + exports2.contributions = contributions; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/ownContributions.js + var require_ownContributions = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/ownContributions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownContributions = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util14(); + function _getValues(api, childKey, keys) { + return (0, rxjs_1.combineLatest)(keys.map((k) => api.rpc.childstate.getStorage(childKey, k))).pipe((0, rxjs_1.map)((values) => values.map((v) => api.registry.createType("Option", v)).map((o) => o.isSome ? api.registry.createType("Balance", o.unwrap()) : api.registry.createType("Balance")).reduce((all, b, index) => (0, util_1.objectSpread)(all, { [keys[index]]: b }), {}))); + } + function _watchOwnChanges(api, paraId, childkey, keys) { + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const changes = (0, util_js_1.extractContributed)(paraId, events); + const filtered = keys.filter((k) => changes.added.includes(k) || changes.removed.includes(k)); + return filtered.length ? _getValues(api, childkey, filtered) : rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)({})); + } + function _contributions(api, paraId, childKey, keys) { + return (0, rxjs_1.combineLatest)([ + _getValues(api, childKey, keys), + _watchOwnChanges(api, paraId, childKey, keys) + ]).pipe((0, rxjs_1.map)(([all, latest2]) => (0, util_1.objectSpread)({}, all, latest2))); + } + function ownContributions(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId, keys) => api.derive.crowdloan.childKey(paraId).pipe((0, rxjs_1.switchMap)((childKey) => childKey && keys.length ? _contributions(api, paraId, childKey, keys) : (0, rxjs_1.of)({})))); + } + exports2.ownContributions = ownContributions; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/index.js + var require_crowdloan = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_childKey(), exports2); + tslib_1.__exportStar(require_contributions(), exports2); + tslib_1.__exportStar(require_ownContributions(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/util.js + var require_util15 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getImageHash = exports2.getImageHashBounded = exports2.getStatus = exports2.calcVotes = exports2.calcPassing = exports2.compareRationals = void 0; + var util_1 = require_cjs3(); + function isOldInfo(info) { + return !!info.proposalHash; + } + function isCurrentStatus(status) { + return !!status.tally; + } + function compareRationals(n12, d12, n22, d22) { + while (true) { + const q12 = n12.div(d12); + const q22 = n22.div(d22); + if (q12.lt(q22)) { + return true; + } else if (q22.lt(q12)) { + return false; + } + const r12 = n12.mod(d12); + const r22 = n22.mod(d22); + if (r22.isZero()) { + return false; + } else if (r12.isZero()) { + return true; + } + n12 = d22; + n22 = d12; + d12 = r22; + d22 = r12; + } + } + exports2.compareRationals = compareRationals; + function calcPassingOther(threshold, sqrtElectorate, { votedAye, votedNay, votedTotal }) { + const sqrtVoters = (0, util_1.bnSqrt)(votedTotal); + return sqrtVoters.isZero() ? false : threshold.isSuperMajorityApprove ? compareRationals(votedNay, sqrtVoters, votedAye, sqrtElectorate) : compareRationals(votedNay, sqrtElectorate, votedAye, sqrtVoters); + } + function calcPassing(threshold, sqrtElectorate, state) { + return threshold.isSimpleMajority ? state.votedAye.gt(state.votedNay) : calcPassingOther(threshold, sqrtElectorate, state); + } + exports2.calcPassing = calcPassing; + function calcVotesPrev(votesFor) { + return votesFor.reduce((state, derived) => { + const { balance, vote } = derived; + const isDefault = vote.conviction.index === 0; + const counted = balance.muln(isDefault ? 1 : vote.conviction.index).divn(isDefault ? 10 : 1); + if (vote.isAye) { + state.allAye.push(derived); + state.voteCountAye++; + state.votedAye.iadd(counted); + } else { + state.allNay.push(derived); + state.voteCountNay++; + state.votedNay.iadd(counted); + } + state.voteCount++; + state.votedTotal.iadd(counted); + return state; + }, { allAye: [], allNay: [], voteCount: 0, voteCountAye: 0, voteCountNay: 0, votedAye: new util_1.BN(0), votedNay: new util_1.BN(0), votedTotal: new util_1.BN(0) }); + } + function calcVotesCurrent(tally, votes) { + const allAye = []; + const allNay = []; + votes.forEach((derived) => { + if (derived.vote.isAye) { + allAye.push(derived); + } else { + allNay.push(derived); + } + }); + return { + allAye, + allNay, + voteCount: allAye.length + allNay.length, + voteCountAye: allAye.length, + voteCountNay: allNay.length, + votedAye: tally.ayes, + votedNay: tally.nays, + votedTotal: tally.turnout + }; + } + function calcVotes(sqrtElectorate, referendum, votes) { + const state = isCurrentStatus(referendum.status) ? calcVotesCurrent(referendum.status.tally, votes) : calcVotesPrev(votes); + return (0, util_1.objectSpread)({}, state, { + isPassing: calcPassing(referendum.status.threshold, sqrtElectorate, state), + votes + }); + } + exports2.calcVotes = calcVotes; + function getStatus(info) { + if (info.isNone) { + return null; + } + const unwrapped = info.unwrap(); + return isOldInfo(unwrapped) ? unwrapped : unwrapped.isOngoing ? unwrapped.asOngoing : null; + } + exports2.getStatus = getStatus; + function getImageHashBounded(hash8) { + return hash8.isLegacy ? hash8.asLegacy.hash_.toHex() : hash8.isLookup ? hash8.asLookup.hash_.toHex() : hash8.isInline ? hash8.asInline.hash.toHex() : (0, util_1.isString)(hash8) ? (0, util_1.isHex)(hash8) ? hash8 : (0, util_1.stringToHex)(hash8) : (0, util_1.isU8a)(hash8) ? (0, util_1.u8aToHex)(hash8) : hash8.toHex(); + } + exports2.getImageHashBounded = getImageHashBounded; + function getImageHash(status) { + return getImageHashBounded(status.proposal || status.proposalHash); + } + exports2.getImageHash = getImageHash; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/dispatchQueue.js + var require_dispatchQueue = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/dispatchQueue.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dispatchQueue = void 0; + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + var DEMOCRACY_ID = (0, util_1.stringToHex)("democrac"); + function isMaybeHashedOrBounded(call) { + return call instanceof types_1.Enum; + } + function isBounded(call) { + return call.isInline || call.isLegacy || call.isLookup; + } + function queryQueue(api) { + return api.query.democracy["dispatchQueue"]().pipe((0, rxjs_1.switchMap)((dispatches) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(dispatches), + api.derive.democracy.preimages(dispatches.map(([, hash8]) => hash8)) + ])), (0, rxjs_1.map)(([dispatches, images]) => dispatches.map(([at, imageHash, index], dispatchIndex) => ({ + at, + image: images[dispatchIndex], + imageHash: (0, util_js_1.getImageHashBounded)(imageHash), + index + })))); + } + function schedulerEntries(api) { + return api.derive.democracy.referendumsFinished().pipe((0, rxjs_1.switchMap)(() => api.query.scheduler.agenda.keys()), (0, rxjs_1.switchMap)((keys) => { + const blockNumbers = keys.map(({ args: [blockNumber] }) => blockNumber); + return blockNumbers.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(blockNumbers), + api.query.scheduler.agenda.multi(blockNumbers).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(blockNumbers.map(() => [])))) + ]) : (0, rxjs_1.of)([[], []]); + })); + } + function queryScheduler(api) { + return schedulerEntries(api).pipe((0, rxjs_1.switchMap)(([blockNumbers, agendas]) => { + const result = []; + blockNumbers.forEach((at, index) => { + (agendas[index] || []).filter((o) => o.isSome).forEach((o) => { + const scheduled2 = o.unwrap(); + if (scheduled2.maybeId.isSome) { + const id4 = scheduled2.maybeId.unwrap().toHex(); + if (id4.startsWith(DEMOCRACY_ID)) { + const imageHash = isMaybeHashedOrBounded(scheduled2.call) ? isBounded(scheduled2.call) ? (0, util_js_1.getImageHashBounded)(scheduled2.call) : scheduled2.call.isHash ? scheduled2.call.asHash.toHex() : scheduled2.call.asValue.args[0].toHex() : scheduled2.call.args[0].toHex(); + result.push({ at, imageHash, index: api.registry.createType("(u64, ReferendumIndex)", id4)[1] }); + } + } + }); + }); + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(result), + result.length ? api.derive.democracy.preimages(result.map(({ imageHash }) => imageHash)) : (0, rxjs_1.of)([]) + ]); + }), (0, rxjs_1.map)(([infos, images]) => infos.map((info, index) => (0, util_1.objectSpread)({ image: images[index] }, info)))); + } + function dispatchQueue(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, util_1.isFunction)(api.query.scheduler?.agenda) ? queryScheduler(api) : api.query.democracy["dispatchQueue"] ? queryQueue(api) : (0, rxjs_1.of)([])); + } + exports2.dispatchQueue = dispatchQueue; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/locks.js + var require_locks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/locks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.locks = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var LOCKUPS = [0, 1, 2, 4, 8, 16, 32]; + function parseEnd(api, vote, { approved, end }) { + return [ + end, + approved.isTrue && vote.isAye || approved.isFalse && vote.isNay ? end.add((api.consts.democracy.voteLockingPeriod || api.consts.democracy.enactmentPeriod).muln(LOCKUPS[vote.conviction.index])) : util_1.BN_ZERO + ]; + } + function parseLock(api, [referendumId, accountVote], referendum) { + const { balance, vote } = accountVote.asStandard; + const [referendumEnd, unlockAt] = referendum.isFinished ? parseEnd(api, vote, referendum.asFinished) : [util_1.BN_ZERO, util_1.BN_ZERO]; + return { balance, isDelegated: false, isFinished: referendum.isFinished, referendumEnd, referendumId, unlockAt, vote }; + } + function delegateLocks(api, { balance, conviction, target }) { + return api.derive.democracy.locks(target).pipe((0, rxjs_1.map)((available) => available.map(({ isFinished, referendumEnd, referendumId, unlockAt, vote }) => ({ + balance, + isDelegated: true, + isFinished, + referendumEnd, + referendumId, + unlockAt: unlockAt.isZero() ? unlockAt : referendumEnd.add((api.consts.democracy.voteLockingPeriod || api.consts.democracy.enactmentPeriod).muln(LOCKUPS[conviction.index])), + vote: api.registry.createType("Vote", { aye: vote.isAye, conviction }) + })))); + } + function directLocks(api, { votes }) { + if (!votes.length) { + return (0, rxjs_1.of)([]); + } + return api.query.democracy.referendumInfoOf.multi(votes.map(([referendumId]) => referendumId)).pipe((0, rxjs_1.map)((referendums) => votes.map((vote, index) => [vote, referendums[index].unwrapOr(null)]).filter((item) => !!item[1] && (0, util_1.isUndefined)(item[1].end) && item[0][1].isStandard).map(([directVote, referendum]) => parseLock(api, directVote, referendum)))); + } + function locks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.query.democracy.votingOf ? api.query.democracy.votingOf(accountId).pipe((0, rxjs_1.switchMap)((voting) => voting.isDirect ? directLocks(api, voting.asDirect) : voting.isDelegating ? delegateLocks(api, voting.asDelegating) : (0, rxjs_1.of)([]))) : (0, rxjs_1.of)([])); + } + exports2.locks = locks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/nextExternal.js + var require_nextExternal = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/nextExternal.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.nextExternal = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function withImage(api, nextOpt) { + if (nextOpt.isNone) { + return (0, rxjs_1.of)(null); + } + const [hash8, threshold] = nextOpt.unwrap(); + return api.derive.democracy.preimage(hash8).pipe((0, rxjs_1.map)((image) => ({ + image, + imageHash: (0, util_js_1.getImageHashBounded)(hash8), + threshold + }))); + } + function nextExternal(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.democracy?.nextExternal ? api.query.democracy.nextExternal().pipe((0, rxjs_1.switchMap)((nextOpt) => withImage(api, nextOpt))) : (0, rxjs_1.of)(null)); + } + exports2.nextExternal = nextExternal; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/preimages.js + var require_preimages = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/preimages.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.preimage = exports2.preimages = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function getUnrequestedTicket(status) { + return status.ticket || status.deposit; + } + function getRequestedTicket(status) { + return (status.maybeTicket || status.deposit).unwrapOrDefault(); + } + function isDemocracyPreimage(api, imageOpt) { + return !!imageOpt && !api.query.democracy["dispatchQueue"]; + } + function constructProposal(api, [bytes5, proposer, balance, at]) { + let proposal; + try { + proposal = api.registry.createType("Call", bytes5.toU8a(true)); + } catch (error) { + console.error(error); + } + return { at, balance, proposal, proposer }; + } + function parseDemocracy(api, imageOpt) { + if (imageOpt.isNone) { + return; + } + if (isDemocracyPreimage(api, imageOpt)) { + const status = imageOpt.unwrap(); + if (status.isMissing) { + return; + } + const { data, deposit, provider, since } = status.asAvailable; + return constructProposal(api, [data, provider, deposit, since]); + } + return constructProposal(api, imageOpt.unwrap()); + } + function parseImage(api, [proposalHash, status, bytes5]) { + if (!status) { + return void 0; + } + const [proposer, balance] = status.isUnrequested ? getUnrequestedTicket(status.asUnrequested) : getRequestedTicket(status.asRequested); + let proposal; + if (bytes5) { + try { + proposal = api.registry.createType("Call", bytes5.toU8a(true)); + } catch (error) { + console.error(error); + } + } + return { at: util_1.BN_ZERO, balance, proposal, proposalHash, proposer }; + } + function getDemocracyImages(api, bounded) { + const hashes = bounded.map((b) => (0, util_js_1.getImageHashBounded)(b)); + return api.query.democracy["preimages"].multi(hashes).pipe((0, rxjs_1.map)((images) => images.map((imageOpt) => parseDemocracy(api, imageOpt)))); + } + function getImages(api, bounded) { + const hashes = bounded.map((b) => (0, util_js_1.getImageHashBounded)(b)); + const bytesType = api.registry.lookup.getTypeDef(api.query.preimage.preimageFor.creator.meta.type.asMap.key).type; + return api.query.preimage.statusFor.multi(hashes).pipe((0, rxjs_1.switchMap)((optStatus) => { + const statuses = optStatus.map((o) => o.unwrapOr(null)); + const keys = statuses.map((s, i) => s ? bytesType === "H256" ? hashes[i] : s.isRequested ? [hashes[i], s.asRequested.len.unwrapOr(0)] : [hashes[i], s.asUnrequested.len] : null).filter((p) => !!p); + return api.query.preimage.preimageFor.multi(keys).pipe((0, rxjs_1.map)((optBytes) => { + let ptr = -1; + return statuses.map((s, i) => s ? [hashes[i], s, optBytes[++ptr].unwrapOr(null)] : [hashes[i], null, null]).map((v) => parseImage(api, v)); + })); + })); + } + function preimages(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (hashes) => hashes.length ? (0, util_1.isFunction)(api.query.democracy["preimages"]) ? getDemocracyImages(api, hashes) : (0, util_1.isFunction)(api.query.preimage.preimageFor) ? getImages(api, hashes) : (0, rxjs_1.of)([]) : (0, rxjs_1.of)([])); + } + exports2.preimages = preimages; + exports2.preimage = (0, index_js_1.firstMemo)((api, hash8) => api.derive.democracy.preimages([hash8])); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/proposals.js + var require_proposals2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposals = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function isNewDepositors(depositors) { + return (0, util_1.isFunction)(depositors[1].mul); + } + function parse2([proposals2, images, optDepositors]) { + return proposals2.filter(([, , proposer], index) => !!optDepositors[index]?.isSome && !proposer.isEmpty).map(([index, hash8, proposer], proposalIndex) => { + const depositors = optDepositors[proposalIndex].unwrap(); + return (0, util_1.objectSpread)({ + image: images[proposalIndex], + imageHash: (0, util_js_1.getImageHashBounded)(hash8), + index, + proposer + }, isNewDepositors(depositors) ? { balance: depositors[1], seconds: depositors[0] } : { balance: depositors[0], seconds: depositors[1] }); + }); + } + function proposals(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, util_1.isFunction)(api.query.democracy?.publicProps) ? api.query.democracy.publicProps().pipe((0, rxjs_1.switchMap)((proposals2) => proposals2.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(proposals2), + api.derive.democracy.preimages(proposals2.map(([, hash8]) => hash8)), + api.query.democracy.depositOf.multi(proposals2.map(([index]) => index)) + ]) : (0, rxjs_1.of)([[], [], []])), (0, rxjs_1.map)(parse2)) : (0, rxjs_1.of)([])); + } + exports2.proposals = proposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumIds.js + var require_referendumIds = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumIds.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumIds = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumIds(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.democracy?.lowestUnbaked ? api.queryMulti([ + api.query.democracy.lowestUnbaked, + api.query.democracy.referendumCount + ]).pipe((0, rxjs_1.map)(([first, total]) => total.gt(first) ? [...Array(total.sub(first).toNumber())].map((_, i) => first.addn(i)) : [])) : (0, rxjs_1.of)([])); + } + exports2.referendumIds = referendumIds; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendums.js + var require_referendums = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendums.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendums = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function referendums(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumsActive().pipe((0, rxjs_1.switchMap)((referendums2) => referendums2.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(referendums2), + api.derive.democracy._referendumsVotes(referendums2) + ]) : (0, rxjs_1.of)([[], []])), (0, rxjs_1.map)(([referendums2, votes]) => referendums2.map((referendum, index) => (0, util_1.objectSpread)({}, referendum, votes[index]))))); + } + exports2.referendums = referendums; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsActive.js + var require_referendumsActive = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsActive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsActive = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumsActive(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumIds().pipe((0, rxjs_1.switchMap)((ids) => ids.length ? api.derive.democracy.referendumsInfo(ids) : (0, rxjs_1.of)([])))); + } + exports2.referendumsActive = referendumsActive; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsFinished.js + var require_referendumsFinished = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsFinished.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsFinished = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumsFinished(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumIds().pipe((0, rxjs_1.switchMap)((ids) => api.query.democracy.referendumInfoOf.multi(ids)), (0, rxjs_1.map)((infos) => infos.map((o) => o.unwrapOr(null)).filter((info) => !!info && info.isFinished).map((info) => info.asFinished)))); + } + exports2.referendumsFinished = referendumsFinished; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsInfo.js + var require_referendumsInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsInfo = exports2._referendumInfo = exports2._referendumsVotes = exports2._referendumVotes = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function votesPrev(api, referendumId) { + return api.query.democracy["votersFor"](referendumId).pipe((0, rxjs_1.switchMap)((votersFor) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(votersFor), + votersFor.length ? api.query.democracy["voteOf"].multi(votersFor.map((accountId) => [referendumId, accountId])) : (0, rxjs_1.of)([]), + api.derive.balances.votingBalances(votersFor) + ])), (0, rxjs_1.map)(([votersFor, votes, balances]) => votersFor.map((accountId, index) => ({ + accountId, + balance: balances[index].votingBalance || api.registry.createType("Balance"), + isDelegating: false, + vote: votes[index] || api.registry.createType("Vote") + })))); + } + function extractVotes(mapped, referendumId) { + return mapped.filter(([, voting]) => voting.isDirect).map(([accountId, voting]) => [ + accountId, + voting.asDirect.votes.filter(([idx]) => idx.eq(referendumId)) + ]).filter(([, directVotes]) => !!directVotes.length).reduce((result, [accountId, votes]) => votes.reduce((result2, [, vote]) => { + if (vote.isStandard) { + result2.push((0, util_1.objectSpread)({ + accountId, + isDelegating: false + }, vote.asStandard)); + } + return result2; + }, result), []); + } + function votesCurr(api, referendumId) { + return api.query.democracy.votingOf.entries().pipe((0, rxjs_1.map)((allVoting) => { + const mapped = allVoting.map(([{ args: [accountId] }, voting]) => [accountId, voting]); + const votes = extractVotes(mapped, referendumId); + const delegations = mapped.filter(([, voting]) => voting.isDelegating).map(([accountId, voting]) => [accountId, voting.asDelegating]); + delegations.forEach(([accountId, { balance, conviction, target }]) => { + const toDelegator = delegations.find(([accountId2]) => accountId2.eq(target)); + const to2 = votes.find(({ accountId: accountId2 }) => accountId2.eq(toDelegator ? toDelegator[0] : target)); + if (to2) { + votes.push({ + accountId, + balance, + isDelegating: true, + vote: api.registry.createType("Vote", { aye: to2.vote.isAye, conviction }) + }); + } + }); + return votes; + })); + } + function _referendumVotes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (referendum) => (0, rxjs_1.combineLatest)([ + api.derive.democracy.sqrtElectorate(), + (0, util_1.isFunction)(api.query.democracy.votingOf) ? votesCurr(api, referendum.index) : votesPrev(api, referendum.index) + ]).pipe((0, rxjs_1.map)(([sqrtElectorate, votes]) => (0, util_js_1.calcVotes)(sqrtElectorate, referendum, votes)))); + } + exports2._referendumVotes = _referendumVotes; + function _referendumsVotes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (referendums) => referendums.length ? (0, rxjs_1.combineLatest)(referendums.map((referendum) => api.derive.democracy._referendumVotes(referendum))) : (0, rxjs_1.of)([])); + } + exports2._referendumsVotes = _referendumsVotes; + function _referendumInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (index, info) => { + const status = (0, util_js_1.getStatus)(info); + return status ? api.derive.democracy.preimage(status.proposal || status.proposalHash).pipe((0, rxjs_1.map)((image) => ({ + image, + imageHash: (0, util_js_1.getImageHash)(status), + index: api.registry.createType("ReferendumIndex", index), + status + }))) : (0, rxjs_1.of)(null); + }); + } + exports2._referendumInfo = _referendumInfo; + function referendumsInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (ids) => ids.length ? api.query.democracy.referendumInfoOf.multi(ids).pipe((0, rxjs_1.switchMap)((infos) => (0, rxjs_1.combineLatest)(ids.map((id4, index) => api.derive.democracy._referendumInfo(id4, infos[index])))), (0, rxjs_1.map)((infos) => infos.filter((r10) => !!r10))) : (0, rxjs_1.of)([])); + } + exports2.referendumsInfo = referendumsInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/sqrtElectorate.js + var require_sqrtElectorate = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/sqrtElectorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sqrtElectorate = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function sqrtElectorate(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.balances.totalIssuance().pipe((0, rxjs_1.map)(util_1.bnSqrt))); + } + exports2.sqrtElectorate = sqrtElectorate; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/index.js + var require_democracy = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_dispatchQueue(), exports2); + tslib_1.__exportStar(require_locks(), exports2); + tslib_1.__exportStar(require_nextExternal(), exports2); + tslib_1.__exportStar(require_preimages(), exports2); + tslib_1.__exportStar(require_proposals2(), exports2); + tslib_1.__exportStar(require_referendumIds(), exports2); + tslib_1.__exportStar(require_referendums(), exports2); + tslib_1.__exportStar(require_referendumsActive(), exports2); + tslib_1.__exportStar(require_referendumsFinished(), exports2); + tslib_1.__exportStar(require_referendumsInfo(), exports2); + tslib_1.__exportStar(require_sqrtElectorate(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/elections/info.js + var require_info2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/elections/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function isSeatHolder(value) { + return !Array.isArray(value); + } + function isCandidateTuple(value) { + return Array.isArray(value); + } + function getAccountTuple(value) { + return isSeatHolder(value) ? [value.who, value.stake] : value; + } + function getCandidate(value) { + return isCandidateTuple(value) ? value[0] : value; + } + function sortAccounts([, balanceA], [, balanceB]) { + return balanceB.cmp(balanceA); + } + function getConstants(api, elections) { + return elections ? { + candidacyBond: api.consts[elections].candidacyBond, + desiredRunnersUp: api.consts[elections].desiredRunnersUp, + desiredSeats: api.consts[elections].desiredMembers, + termDuration: api.consts[elections].termDuration, + votingBond: api.consts[elections]["votingBond"], + votingBondBase: api.consts[elections].votingBondBase, + votingBondFactor: api.consts[elections].votingBondFactor + } : {}; + } + function getModules(api) { + const [council] = api.registry.getModuleInstances(api.runtimeVersion.specName, "council") || ["council"]; + const elections = api.query["phragmenElection"] ? "phragmenElection" : api.query["electionsPhragmen"] ? "electionsPhragmen" : api.query.elections ? "elections" : null; + const resolvedCouncil = api.query[council] ? council : "council"; + return [resolvedCouncil, elections]; + } + function queryAll(api, council, elections) { + return api.queryMulti([ + api.query[council].members, + api.query[elections].candidates, + api.query[elections].members, + api.query[elections].runnersUp + ]); + } + function queryCouncil(api, council) { + return (0, rxjs_1.combineLatest)([ + api.query[council].members(), + (0, rxjs_1.of)([]), + (0, rxjs_1.of)([]), + (0, rxjs_1.of)([]) + ]); + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + const [council, elections] = getModules(api); + return (elections ? queryAll(api, council, elections) : queryCouncil(api, council)).pipe((0, rxjs_1.map)(([councilMembers, candidates, members, runnersUp]) => (0, util_1.objectSpread)({}, getConstants(api, elections), { + candidateCount: api.registry.createType("u32", candidates.length), + candidates: candidates.map(getCandidate), + members: members.length ? members.map(getAccountTuple).sort(sortAccounts) : councilMembers.map((a) => [a, api.registry.createType("Balance")]), + runnersUp: runnersUp.map(getAccountTuple).sort(sortAccounts) + }))); + }); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/elections/index.js + var require_elections = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/elections/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_info2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/imOnline/receivedHeartbeats.js + var require_receivedHeartbeats = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/imOnline/receivedHeartbeats.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.receivedHeartbeats = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function mapResult([result, validators, heartbeats, numBlocks]) { + validators.forEach((validator, index) => { + const validatorId = validator.toString(); + const blockCount = numBlocks[index]; + const hasMessage = !heartbeats[index].isEmpty; + const prev = result[validatorId]; + if (!prev || prev.hasMessage !== hasMessage || !prev.blockCount.eq(blockCount)) { + result[validatorId] = { + blockCount, + hasMessage, + isOnline: hasMessage || blockCount.gt(util_1.BN_ZERO) + }; + } + }); + return result; + } + function receivedHeartbeats(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.imOnline?.receivedHeartbeats ? api.derive.staking.overview().pipe((0, rxjs_1.switchMap)(({ currentIndex, validators }) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)({}), + (0, rxjs_1.of)(validators), + api.query.imOnline.receivedHeartbeats.multi(validators.map((_address, index) => [currentIndex, index])), + api.query.imOnline.authoredBlocks.multi(validators.map((address) => [currentIndex, address])) + ])), (0, rxjs_1.map)(mapResult)) : (0, rxjs_1.of)({})); + } + exports2.receivedHeartbeats = receivedHeartbeats; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/imOnline/index.js + var require_imOnline = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/imOnline/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_receivedHeartbeats(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/membership/index.js + var require_membership = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/membership/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("membership"); + exports2.hasProposals = (0, index_js_1.hasProposals)("membership"); + exports2.proposal = (0, index_js_1.proposal)("membership"); + exports2.proposalCount = (0, index_js_1.proposalCount)("membership"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("membership"); + exports2.proposals = (0, index_js_1.proposals)("membership"); + exports2.prime = (0, index_js_1.prime)("membership"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/util.js + var require_util16 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.didUpdateToBool = void 0; + function didUpdateToBool(didUpdate, id4) { + return didUpdate.isSome ? didUpdate.unwrap().some((paraId) => paraId.eq(id4)) : false; + } + exports2.didUpdateToBool = didUpdateToBool; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/info.js + var require_info3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util16(); + function parseActive(id4, active) { + const found = active.find(([paraId]) => paraId === id4); + if (found && found[1].isSome) { + const [collatorId, retriable] = found[1].unwrap(); + return (0, util_1.objectSpread)({ collatorId }, retriable.isWithRetries ? { + isRetriable: true, + retries: retriable.asWithRetries.toNumber() + } : { + isRetriable: false, + retries: 0 + }); + } + return null; + } + function parseCollators(id4, collatorQueue) { + return collatorQueue.map((queue) => { + const found = queue.find(([paraId]) => paraId === id4); + return found ? found[1] : null; + }); + } + function parse2(id4, [active, retryQueue, selectedThreads, didUpdate, info2, pendingSwap, heads, relayDispatchQueue]) { + if (info2.isNone) { + return null; + } + return { + active: parseActive(id4, active), + didUpdate: (0, util_js_1.didUpdateToBool)(didUpdate, id4), + heads, + id: id4, + info: (0, util_1.objectSpread)({ id: id4 }, info2.unwrap()), + pendingSwapId: pendingSwap.unwrapOr(null), + relayDispatchQueue, + retryCollators: parseCollators(id4, retryQueue), + selectedCollators: parseCollators(id4, selectedThreads) + }; + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.query["registrar"] && api.query["parachains"] ? api.queryMulti([ + api.query["registrar"]["active"], + api.query["registrar"]["retryQueue"], + api.query["registrar"]["selectedThreads"], + api.query["parachains"]["didUpdate"], + [api.query["registrar"]["paras"], id4], + [api.query["registrar"]["pendingSwap"], id4], + [api.query["parachains"]["heads"], id4], + [api.query["parachains"]["relayDispatchQueue"], id4] + ]).pipe((0, rxjs_1.map)((result) => parse2(api.registry.createType("ParaId", id4), result))) : (0, rxjs_1.of)(null)); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/overview.js + var require_overview = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/overview.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.overview = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util16(); + function parse2([ids, didUpdate, relayDispatchQueueSizes, infos, pendingSwaps]) { + return ids.map((id4, index) => ({ + didUpdate: (0, util_js_1.didUpdateToBool)(didUpdate, id4), + id: id4, + info: (0, util_1.objectSpread)({ id: id4 }, infos[index].unwrapOr(null)), + pendingSwapId: pendingSwaps[index].unwrapOr(null), + relayDispatchQueueSize: relayDispatchQueueSizes[index][0].toNumber() + })); + } + function overview(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query["registrar"]?.["parachains"] && api.query["parachains"] ? api.query["registrar"]["parachains"]().pipe((0, rxjs_1.switchMap)((paraIds) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(paraIds), + api.query["parachains"]["didUpdate"](), + api.query["parachains"]["relayDispatchQueueSize"].multi(paraIds), + api.query["registrar"]["paras"].multi(paraIds), + api.query["registrar"]["pendingSwap"].multi(paraIds) + ])), (0, rxjs_1.map)(parse2)) : (0, rxjs_1.of)([])); + } + exports2.overview = overview; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/index.js + var require_parachains = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_info3(), exports2); + tslib_1.__exportStar(require_overview(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/indexes.js + var require_indexes2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/indexes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function parse2([currentIndex, activeEra, activeEraStart, currentEra, validatorCount]) { + return { + activeEra, + activeEraStart, + currentEra, + currentIndex, + validatorCount + }; + } + function queryStaking(api) { + return api.queryMulti([ + api.query.session.currentIndex, + api.query.staking.activeEra, + api.query.staking.currentEra, + api.query.staking.validatorCount + ]).pipe((0, rxjs_1.map)(([currentIndex, activeOpt, currentEra, validatorCount]) => { + const { index, start } = activeOpt.unwrapOrDefault(); + return parse2([ + currentIndex, + index, + start, + currentEra.unwrapOrDefault(), + validatorCount + ]); + })); + } + function querySession(api) { + return api.query.session.currentIndex().pipe((0, rxjs_1.map)((currentIndex) => parse2([ + currentIndex, + api.registry.createType("EraIndex"), + api.registry.createType("Option"), + api.registry.createType("EraIndex"), + api.registry.createType("u32") + ]))); + } + function empty(api) { + return (0, rxjs_1.of)(parse2([ + api.registry.createType("SessionIndex", 1), + api.registry.createType("EraIndex"), + api.registry.createType("Option"), + api.registry.createType("EraIndex"), + api.registry.createType("u32") + ])); + } + function indexes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.session ? api.query.staking ? queryStaking(api) : querySession(api) : empty(api)); + } + exports2.indexes = indexes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/info.js + var require_info4 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.map)((indexes) => { + const sessionLength = api.consts?.babe?.epochDuration || api.registry.createType("u64", 1); + const sessionsPerEra = api.consts?.staking?.sessionsPerEra || api.registry.createType("SessionIndex", 1); + return (0, util_1.objectSpread)({ + eraLength: api.registry.createType("BlockNumber", sessionsPerEra.mul(sessionLength)), + isEpoch: !!api.query.babe, + sessionLength, + sessionsPerEra + }, indexes); + }))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/progress.js + var require_progress = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/progress.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sessionProgress = exports2.eraProgress = exports2.eraLength = exports2.progress = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function withProgressField(field) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, () => api.derive.session.progress().pipe((0, rxjs_1.map)((info) => info[field]))); + } + function createDerive(api, info, [currentSlot, epochIndex, epochOrGenesisStartSlot, activeEraStartSessionIndex]) { + const epochStartSlot = epochIndex.mul(info.sessionLength).iadd(epochOrGenesisStartSlot); + const sessionProgress = currentSlot.sub(epochStartSlot); + const eraProgress = info.currentIndex.sub(activeEraStartSessionIndex).imul(info.sessionLength).iadd(sessionProgress); + return (0, util_1.objectSpread)({ + eraProgress: api.registry.createType("BlockNumber", eraProgress), + sessionProgress: api.registry.createType("BlockNumber", sessionProgress) + }, info); + } + function queryAura(api) { + return api.derive.session.info().pipe((0, rxjs_1.map)((info) => (0, util_1.objectSpread)({ + eraProgress: api.registry.createType("BlockNumber"), + sessionProgress: api.registry.createType("BlockNumber") + }, info))); + } + function queryBabe(api) { + return api.derive.session.info().pipe((0, rxjs_1.switchMap)((info) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(info), + api.query.staking?.erasStartSessionIndex ? api.queryMulti([ + api.query.babe.currentSlot, + api.query.babe.epochIndex, + api.query.babe.genesisSlot, + [api.query.staking.erasStartSessionIndex, info.activeEra] + ]) : api.queryMulti([ + api.query.babe.currentSlot, + api.query.babe.epochIndex, + api.query.babe.genesisSlot + ]) + ])), (0, rxjs_1.map)(([info, [currentSlot, epochIndex, genesisSlot, optStartIndex]]) => [ + info, + [currentSlot, epochIndex, genesisSlot, optStartIndex && optStartIndex.isSome ? optStartIndex.unwrap() : api.registry.createType("SessionIndex", 1)] + ])); + } + function progress(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.babe ? queryBabe(api).pipe((0, rxjs_1.map)(([info, slots]) => createDerive(api, info, slots))) : queryAura(api)); + } + exports2.progress = progress; + exports2.eraLength = withProgressField("eraLength"); + exports2.eraProgress = withProgressField("eraProgress"); + exports2.sessionProgress = withProgressField("sessionProgress"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/index.js + var require_session = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_indexes2(), exports2); + tslib_1.__exportStar(require_info4(), exports2); + tslib_1.__exportStar(require_progress(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/candidates.js + var require_candidates = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/candidates.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.candidates = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function getPrev(api) { + return api.query.society.candidates().pipe((0, rxjs_1.switchMap)((candidates2) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(candidates2), + api.query.society["suspendedCandidates"].multi(candidates2.map(({ who }) => who)) + ])), (0, rxjs_1.map)(([candidates2, suspended]) => candidates2.map(({ kind, value, who }, index) => ({ + accountId: who, + isSuspended: suspended[index].isSome, + kind, + value + })))); + } + function getCurr(api) { + return api.query.society.candidates.entries().pipe((0, rxjs_1.map)((entries) => entries.filter(([, opt]) => opt.isSome).map(([{ args: [accountId] }, opt]) => [accountId, opt.unwrap()]).map(([accountId, { bid, kind }]) => ({ + accountId, + isSuspended: false, + kind, + value: bid + })))); + } + function candidates(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.society["suspendedCandidates"] && api.query.society.candidates.creator.meta.type.isPlain ? getPrev(api) : getCurr(api)); + } + exports2.candidates = candidates; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/info.js + var require_info5 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.query.society.bids(), + api.query.society["defender"] ? api.query.society["defender"]() : (0, rxjs_1.of)(void 0), + api.query.society.founder(), + api.query.society.head(), + api.query.society["maxMembers"] ? api.query.society["maxMembers"]() : (0, rxjs_1.of)(void 0), + api.query.society.pot() + ]).pipe((0, rxjs_1.map)(([bids, defender, founder, head, maxMembers, pot]) => ({ + bids, + defender: defender?.unwrapOr(void 0), + founder: founder.unwrapOr(void 0), + hasDefender: defender?.isSome && head.isSome && !head.eq(defender) || false, + head: head.unwrapOr(void 0), + maxMembers, + pot + })))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/member.js + var require_member = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/member.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.member = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function member(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.society._members([accountId]).pipe((0, rxjs_1.map)(([result]) => result))); + } + exports2.member = member; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/members.js + var require_members2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/members.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.members = exports2._members = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _membersPrev(api, accountIds) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountIds), + api.query.society.payouts.multi(accountIds), + api.query.society["strikes"].multi(accountIds), + api.query.society.defenderVotes.multi(accountIds), + api.query.society.suspendedMembers.multi(accountIds), + api.query.society["vouching"].multi(accountIds) + ]).pipe((0, rxjs_1.map)(([accountIds2, payouts, strikes, defenderVotes, suspended, vouching]) => accountIds2.map((accountId, index) => ({ + accountId, + isDefenderVoter: defenderVotes[index].isSome, + isSuspended: suspended[index].isTrue, + payouts: payouts[index], + strikes: strikes[index], + vote: defenderVotes[index].unwrapOr(void 0), + vouching: vouching[index].unwrapOr(void 0) + })))); + } + function _membersCurr(api, accountIds) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountIds), + api.query.society.members.multi(accountIds), + api.query.society.payouts.multi(accountIds), + api.query.society.challengeRoundCount().pipe((0, rxjs_1.switchMap)((round) => api.query.society.defenderVotes.multi(accountIds.map((accountId) => [round, accountId])))), + api.query.society.suspendedMembers.multi(accountIds) + ]).pipe((0, rxjs_1.map)(([accountIds2, members2, payouts, defenderVotes, suspendedMembers]) => accountIds2.map((accountId, index) => members2[index].isSome ? { + accountId, + isDefenderVoter: defenderVotes[index].isSome, + isSuspended: suspendedMembers[index].isSome, + member: members2[index].unwrap(), + payouts: payouts[index].payouts + } : null).filter((m) => !!m).map(({ accountId, isDefenderVoter, isSuspended, member, payouts: payouts2 }) => ({ + accountId, + isDefenderVoter, + isSuspended, + payouts: payouts2, + strikes: member.strikes, + vouching: member.vouching.unwrapOr(void 0) + })))); + } + function _members(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds) => api.query.society.members.creator.meta.type.isMap ? _membersCurr(api, accountIds) : _membersPrev(api, accountIds)); + } + exports2._members = _members; + function members(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.society.members.creator.meta.type.isMap ? api.query.society.members.keys().pipe((0, rxjs_1.switchMap)((keys) => api.derive.society._members(keys.map(({ args: [accountId] }) => accountId)))) : api.query.society.members().pipe((0, rxjs_1.switchMap)((members2) => api.derive.society._members(members2)))); + } + exports2.members = members; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/index.js + var require_society = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_candidates(), exports2); + tslib_1.__exportStar(require_info5(), exports2); + tslib_1.__exportStar(require_member(), exports2); + tslib_1.__exportStar(require_members2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/account.js + var require_account2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/account.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.account = exports2.accounts = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var QUERY_OPTS = { + withDestination: true, + withLedger: true, + withNominations: true, + withPrefs: true + }; + function groupByEra(list) { + return list.reduce((map2, { era, value }) => { + const key2 = era.toString(); + map2[key2] = (map2[key2] || util_1.BN_ZERO).add(value.unwrap()); + return map2; + }, {}); + } + function calculateUnlocking(api, stakingLedger, sessionInfo) { + const results = Object.entries(groupByEra((stakingLedger?.unlocking || []).filter(({ era }) => era.unwrap().gt(sessionInfo.activeEra)))).map(([eraString, value]) => ({ + remainingEras: new util_1.BN(eraString).isub(sessionInfo.activeEra), + value: api.registry.createType("Balance", value) + })); + return results.length ? results : void 0; + } + function redeemableSum(api, stakingLedger, sessionInfo) { + return api.registry.createType("Balance", (stakingLedger?.unlocking || []).reduce((total, { era, value }) => { + return era.unwrap().gt(sessionInfo.currentEra) ? total : total.iadd(value.unwrap()); + }, new util_1.BN(0))); + } + function parseResult(api, sessionInfo, keys, query) { + return (0, util_1.objectSpread)({}, keys, query, { + redeemable: redeemableSum(api, query.stakingLedger, sessionInfo), + unlocking: calculateUnlocking(api, query.stakingLedger, sessionInfo) + }); + } + function accounts2(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, opts = QUERY_OPTS) => api.derive.session.info().pipe((0, rxjs_1.switchMap)((sessionInfo) => (0, rxjs_1.combineLatest)([ + api.derive.staking.keysMulti(accountIds), + api.derive.staking.queryMulti(accountIds, opts) + ]).pipe((0, rxjs_1.map)(([keys, queries]) => queries.map((q, index) => parseResult(api, sessionInfo, keys[index], q))))))); + } + exports2.accounts = accounts2; + exports2.account = (0, index_js_1.firstMemo)((api, accountId, opts) => api.derive.staking.accounts([accountId], opts)); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/currentPoints.js + var require_currentPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/currentPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.currentPoints = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function currentPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(({ activeEra }) => api.query.staking.erasRewardPoints(activeEra)))); + } + exports2.currentPoints = currentPoints; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/electedInfo.js + var require_electedInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/electedInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.electedInfo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var DEFAULT_FLAGS = { withController: true, withExposure: true, withPrefs: true }; + function combineAccounts(nextElected, validators) { + return (0, util_1.arrayFlatten)([nextElected, validators.filter((v) => !nextElected.find((n) => n.eq(v)))]); + } + function electedInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (flags = DEFAULT_FLAGS) => api.derive.staking.validators().pipe((0, rxjs_1.switchMap)(({ nextElected, validators }) => api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags).pipe((0, rxjs_1.map)((info) => ({ + info, + nextElected, + validators + })))))); + } + exports2.electedInfo = electedInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/cache.js + var require_cache2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/cache.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterCachedEras = exports2.setEraMultiCache = exports2.setEraCache = exports2.getEraMultiCache = exports2.getEraCache = void 0; + var index_js_1 = require_util10(); + function getEraCache(CACHE_KEY, era, withActive) { + const cacheKey = `${CACHE_KEY}-${era.toString()}`; + return [ + cacheKey, + withActive ? void 0 : index_js_1.deriveCache.get(cacheKey) + ]; + } + exports2.getEraCache = getEraCache; + function getEraMultiCache(CACHE_KEY, eras, withActive) { + const cached = withActive ? [] : eras.map((e) => index_js_1.deriveCache.get(`${CACHE_KEY}-${e.toString()}`)).filter((v) => !!v); + return cached; + } + exports2.getEraMultiCache = getEraMultiCache; + function setEraCache(cacheKey, withActive, value) { + !withActive && index_js_1.deriveCache.set(cacheKey, value); + return value; + } + exports2.setEraCache = setEraCache; + function setEraMultiCache(CACHE_KEY, withActive, values) { + !withActive && values.forEach((v) => index_js_1.deriveCache.set(`${CACHE_KEY}-${v.era.toString()}`, v)); + return values; + } + exports2.setEraMultiCache = setEraMultiCache; + function filterCachedEras(eras, cached, query) { + return eras.map((e) => cached.find(({ era }) => e.eq(era)) || query.find(({ era }) => e.eq(era))).filter((e) => !!e); + } + exports2.filterCachedEras = filterCachedEras; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/util.js + var require_util17 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineEras = exports2.singleEra = exports2.erasHistoricApplyAccount = exports2.erasHistoricApply = exports2.filterEras = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var ERA_CHUNK_SIZE = 14; + function chunkEras(eras, fn2) { + const chunked = (0, util_1.arrayChunk)(eras, ERA_CHUNK_SIZE); + let index = 0; + const subject2 = new rxjs_1.BehaviorSubject(chunked[index]); + return subject2.pipe((0, rxjs_1.switchMap)(fn2), (0, rxjs_1.tap)(() => { + (0, util_1.nextTick)(() => { + index++; + index === chunked.length ? subject2.complete() : subject2.next(chunked[index]); + }); + }), (0, rxjs_1.toArray)(), (0, rxjs_1.map)(util_1.arrayFlatten)); + } + function filterEras(eras, list) { + return eras.filter((e) => !list.some(({ era }) => e.eq(era))); + } + exports2.filterEras = filterEras; + function erasHistoricApply(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((e) => api.derive.staking[fn2](e, withActive)))); + } + exports2.erasHistoricApply = erasHistoricApply; + function erasHistoricApplyAccount(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (accountId, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((e) => api.derive.staking[fn2](accountId, e, withActive)))); + } + exports2.erasHistoricApplyAccount = erasHistoricApplyAccount; + function singleEra(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (era) => api.derive.staking[fn2](era, true)); + } + exports2.singleEra = singleEra; + function combineEras(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (eras, withActive) => !eras.length ? (0, rxjs_1.of)([]) : chunkEras(eras, (eras2) => (0, rxjs_1.combineLatest)(eras2.map((e) => api.derive.staking[fn2](e, withActive))))); + } + exports2.combineEras = combineEras; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasExposure.js + var require_erasExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasExposure = exports2._erasExposure = exports2.eraExposure = exports2._eraExposure = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraExposure"; + function mapStakersClipped(era, stakers) { + const nominators = {}; + const validators = {}; + stakers.forEach(([key2, exposure]) => { + const validatorId = key2.args[1].toString(); + validators[validatorId] = exposure; + exposure.others.forEach(({ who }, validatorIndex) => { + const nominatorId = who.toString(); + nominators[nominatorId] = nominators[nominatorId] || []; + nominators[nominatorId].push({ validatorId, validatorIndex }); + }); + }); + return { era, nominators, validators }; + } + function mapStakersPaged(era, stakers) { + const nominators = {}; + const validators = {}; + stakers.forEach(([key2, exposureOpt]) => { + if (exposureOpt.isSome) { + const validatorId = key2.args[1].toString(); + const exposure = exposureOpt.unwrap(); + validators[validatorId] = exposure; + exposure.others.forEach(({ who }, validatorIndex) => { + const nominatorId = who.toString(); + nominators[nominatorId] = nominators[nominatorId] || []; + nominators[nominatorId].push({ validatorId, validatorIndex }); + }); + } + }); + return { era, nominators, validators }; + } + function _eraExposure(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive = false) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : api.query.staking.erasStakersPaged ? api.query.staking.erasStakersPaged.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapStakersPaged(era, r10)))) : api.query.staking.erasStakersClipped.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapStakersClipped(era, r10)))); + }); + } + exports2._eraExposure = _eraExposure; + exports2.eraExposure = (0, util_js_1.singleEra)("_eraExposure"); + exports2._erasExposure = (0, util_js_1.combineEras)("_eraExposure"); + exports2.erasExposure = (0, util_js_1.erasHistoricApply)("_erasExposure"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasHistoric.js + var require_erasHistoric = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasHistoric.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasHistoric = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function erasHistoric(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (withActive) => (0, rxjs_1.combineLatest)([ + api.query.staking.activeEra(), + api.consts.staking.historyDepth ? (0, rxjs_1.of)(api.consts.staking.historyDepth) : api.query.staking["historyDepth"]() + ]).pipe((0, rxjs_1.map)(([activeEraOpt, historyDepth]) => { + const result = []; + const max2 = historyDepth.toNumber(); + const activeEra = activeEraOpt.unwrapOrDefault().index; + let lastEra = activeEra; + while (lastEra.gte(util_1.BN_ZERO) && result.length < max2) { + if (lastEra !== activeEra || withActive === true) { + result.push(api.registry.createType("EraIndex", lastEra)); + } + lastEra = lastEra.sub(util_1.BN_ONE); + } + return result.reverse(); + }))); + } + exports2.erasHistoric = erasHistoric; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasPoints.js + var require_erasPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasPoints = exports2._erasPoints = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraPoints"; + function mapValidators({ individual }) { + return [...individual.entries()].filter(([, points]) => points.gt(util_1.BN_ZERO)).reduce((result, [validatorId, points]) => { + result[validatorId.toString()] = points; + return result; + }, {}); + } + function mapPoints(eras, points) { + return eras.map((era, index) => ({ + era, + eraPoints: points[index].total, + validators: mapValidators(points[index]) + })); + } + function _erasPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive) => { + if (!eras.length) { + return (0, rxjs_1.of)([]); + } + const cached = (0, cache_js_1.getEraMultiCache)(CACHE_KEY, eras, withActive); + const remaining = (0, util_js_1.filterEras)(eras, cached); + return !remaining.length ? (0, rxjs_1.of)(cached) : api.query.staking.erasRewardPoints.multi(remaining).pipe((0, rxjs_1.map)((p) => (0, cache_js_1.filterCachedEras)(eras, cached, (0, cache_js_1.setEraMultiCache)(CACHE_KEY, withActive, mapPoints(remaining, p))))); + }); + } + exports2._erasPoints = _erasPoints; + exports2.erasPoints = (0, util_js_1.erasHistoricApply)("_erasPoints"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasPrefs.js + var require_erasPrefs = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasPrefs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasPrefs = exports2._erasPrefs = exports2.eraPrefs = exports2._eraPrefs = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraPrefs"; + function mapPrefs(era, all) { + const validators = {}; + all.forEach(([key2, prefs]) => { + validators[key2.args[1].toString()] = prefs; + }); + return { era, validators }; + } + function _eraPrefs(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : api.query.staking.erasValidatorPrefs.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapPrefs(era, r10)))); + }); + } + exports2._eraPrefs = _eraPrefs; + exports2.eraPrefs = (0, util_js_1.singleEra)("_eraPrefs"); + exports2._erasPrefs = (0, util_js_1.combineEras)("_eraPrefs"); + exports2.erasPrefs = (0, util_js_1.erasHistoricApply)("_erasPrefs"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasRewards.js + var require_erasRewards = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasRewards.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasRewards = exports2._erasRewards = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraRewards"; + function mapRewards(eras, optRewards) { + return eras.map((era, index) => ({ + era, + eraReward: optRewards[index].unwrapOrDefault() + })); + } + function _erasRewards(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive) => { + if (!eras.length) { + return (0, rxjs_1.of)([]); + } + const cached = (0, cache_js_1.getEraMultiCache)(CACHE_KEY, eras, withActive); + const remaining = (0, util_js_1.filterEras)(eras, cached); + if (!remaining.length) { + return (0, rxjs_1.of)(cached); + } + return api.query.staking.erasValidatorReward.multi(remaining).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.filterCachedEras)(eras, cached, (0, cache_js_1.setEraMultiCache)(CACHE_KEY, withActive, mapRewards(remaining, r10))))); + }); + } + exports2._erasRewards = _erasRewards; + exports2.erasRewards = (0, util_js_1.erasHistoricApply)("_erasRewards"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasSlashes.js + var require_erasSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasSlashes = exports2._erasSlashes = exports2.eraSlashes = exports2._eraSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraSlashes"; + function mapSlashes(era, noms, vals) { + const nominators = {}; + const validators = {}; + noms.forEach(([key2, optBalance]) => { + nominators[key2.args[1].toString()] = optBalance.unwrap(); + }); + vals.forEach(([key2, optRes]) => { + validators[key2.args[1].toString()] = optRes.unwrapOrDefault()[1]; + }); + return { era, nominators, validators }; + } + function _eraSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : (0, rxjs_1.combineLatest)([ + api.query.staking.nominatorSlashInEra.entries(era), + api.query.staking.validatorSlashInEra.entries(era) + ]).pipe((0, rxjs_1.map)(([n, v]) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapSlashes(era, n, v)))); + }); + } + exports2._eraSlashes = _eraSlashes; + exports2.eraSlashes = (0, util_js_1.singleEra)("_eraSlashes"); + exports2._erasSlashes = (0, util_js_1.combineEras)("_eraSlashes"); + exports2.erasSlashes = (0, util_js_1.erasHistoricApply)("_erasSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/keys.js + var require_keys2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/keys.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.keysMulti = exports2.keys = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function extractsIds(stashId, queuedKeys, nextKeys) { + const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [void 0, []])[1]; + const nextSessionIds = nextKeys.unwrapOr([]); + return { + nextSessionIds: Array.isArray(nextSessionIds) ? nextSessionIds : [...nextSessionIds.values()], + sessionIds: Array.isArray(sessionIds) ? sessionIds : [...sessionIds.values()] + }; + } + exports2.keys = (0, index_js_1.firstMemo)((api, stashId) => api.derive.staking.keysMulti([stashId])); + function keysMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (stashIds) => stashIds.length ? api.query.session.queuedKeys().pipe((0, rxjs_1.switchMap)((queuedKeys) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(queuedKeys), + api.consts["session"]?.["dedupKeyPrefix"] ? api.query.session.nextKeys.multi(stashIds.map((s) => [api.consts["session"]["dedupKeyPrefix"], s])) : (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.session.nextKeys(s))) + ])), (0, rxjs_1.map)(([queuedKeys, nextKeys]) => stashIds.map((stashId, index) => extractsIds(stashId, queuedKeys, nextKeys[index])))) : (0, rxjs_1.of)([])); + } + exports2.keysMulti = keysMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/overview.js + var require_overview2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/overview.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.overview = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function overview(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.derive.session.indexes(), + api.derive.staking.validators() + ]).pipe((0, rxjs_1.map)(([indexes, { nextElected, validators }]) => (0, util_1.objectSpread)({}, indexes, { + nextElected, + validators + })))); + } + exports2.overview = overview; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/ownExposure.js + var require_ownExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/ownExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownExposures = exports2.ownExposure = exports2._ownExposures = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _ownExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => eras.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))), + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.erasStakers(e, accountId))) + ]).pipe((0, rxjs_1.map)(([clp, exp]) => eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index] })))) : (0, rxjs_1.of)([])); + } + exports2._ownExposures = _ownExposures; + exports2.ownExposure = (0, index_js_1.firstMemo)((api, accountId, era) => api.derive.staking._ownExposures(accountId, [era], true)); + exports2.ownExposures = (0, util_js_1.erasHistoricApplyAccount)("_ownExposures"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/ownSlashes.js + var require_ownSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/ownSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownSlashes = exports2.ownSlash = exports2._ownSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _ownSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => eras.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.validatorSlashInEra(e, accountId))), + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.nominatorSlashInEra(e, accountId))) + ]).pipe((0, rxjs_1.map)(([vals, noms]) => eras.map((era, index) => ({ + era, + total: vals[index].isSome ? vals[index].unwrap()[1] : noms[index].unwrapOrDefault() + })))) : (0, rxjs_1.of)([])); + } + exports2._ownSlashes = _ownSlashes; + exports2.ownSlash = (0, index_js_1.firstMemo)((api, accountId, era) => api.derive.staking._ownSlashes(accountId, [era], true)); + exports2.ownSlashes = (0, util_js_1.erasHistoricApplyAccount)("_ownSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/query.js + var require_query = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/query.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.queryMulti = exports2.query = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function rewardDestinationCompat(rewardDestination) { + return typeof rewardDestination.isSome === "boolean" ? rewardDestination.unwrapOr(null) : rewardDestination; + } + function parseDetails(stashId, controllerIdOpt, nominatorsOpt, rewardDestinationOpts, validatorPrefs, exposure, stakingLedgerOpt) { + return { + accountId: stashId, + controllerId: controllerIdOpt?.unwrapOr(null) || null, + exposure, + nominators: nominatorsOpt.isSome ? nominatorsOpt.unwrap().targets : [], + rewardDestination: rewardDestinationCompat(rewardDestinationOpts), + stakingLedger: stakingLedgerOpt.unwrapOrDefault(), + stashId, + validatorPrefs + }; + } + function getLedgers(api, optIds, { withLedger = false }) { + const ids = optIds.filter((o) => withLedger && !!o && o.isSome).map((o) => o.unwrap()); + const emptyLed = api.registry.createType("Option"); + return (ids.length ? (0, rxjs_1.combineLatest)(ids.map((s) => api.query.staking.ledger(s))) : (0, rxjs_1.of)([])).pipe((0, rxjs_1.map)((optLedgers) => { + let offset = -1; + return optIds.map((o) => o && o.isSome ? optLedgers[++offset] || emptyLed : emptyLed); + })); + } + function getStashInfo(api, stashIds, activeEra, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }) { + const emptyNoms = api.registry.createType("Option"); + const emptyRewa = api.registry.createType("RewardDestination"); + const emptyExpo = api.registry.createType("Exposure"); + const emptyPrefs = api.registry.createType("ValidatorPrefs"); + return (0, rxjs_1.combineLatest)([ + withController || withLedger ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.bonded(s))) : (0, rxjs_1.of)(stashIds.map(() => null)), + withNominations ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.nominators(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyNoms)), + withDestination ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.payee(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyRewa)), + withPrefs ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.validators(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyPrefs)), + withExposure ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s))) : (0, rxjs_1.of)(stashIds.map(() => emptyExpo)) + ]); + } + function getBatch(api, activeEra, stashIds, flags) { + return getStashInfo(api, stashIds, activeEra, flags).pipe((0, rxjs_1.switchMap)(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure]) => getLedgers(api, controllerIdOpt, flags).pipe((0, rxjs_1.map)((stakingLedgerOpts) => stashIds.map((stashId, index) => parseDetails(stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index])))))); + } + exports2.query = (0, index_js_1.firstMemo)((api, accountId, flags) => api.derive.staking.queryMulti([accountId], flags)); + function queryMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, flags) => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(({ activeEra }) => { + const stashIds = accountIds.map((a) => api.registry.createType("AccountId", a)); + return stashIds.length ? getBatch(api, activeEra, stashIds, flags) : (0, rxjs_1.of)([]); + }))); + } + exports2.queryMulti = queryMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerExposure.js + var require_stakerExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerExposure = exports2.stakerExposures = exports2._stakerExposures = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _stakerExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras, withActive = false) => { + const stakerIds = accountIds.map((a) => api.registry.createType("AccountId", a).toString()); + return api.derive.staking._erasExposure(eras, withActive).pipe((0, rxjs_1.map)((exposures) => stakerIds.map((stakerId) => exposures.map(({ era, nominators: allNominators, validators: allValidators }) => { + const isValidator = !!allValidators[stakerId]; + const validators = {}; + const nominating = allNominators[stakerId] || []; + if (isValidator) { + validators[stakerId] = allValidators[stakerId]; + } else if (nominating) { + nominating.forEach(({ validatorId }) => { + validators[validatorId] = allValidators[validatorId]; + }); + } + return { era, isEmpty: !Object.keys(validators).length, isValidator, nominating, validators }; + })))); + }); + } + exports2._stakerExposures = _stakerExposures; + function stakerExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking._stakerExposures(accountIds, eras, withActive)))); + } + exports2.stakerExposures = stakerExposures; + exports2.stakerExposure = (0, index_js_1.firstMemo)((api, accountId, withActive) => api.derive.staking.stakerExposures([accountId], withActive)); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerPoints.js + var require_stakerPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerPoints = exports2._stakerPoints = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => { + const stakerId = api.registry.createType("AccountId", accountId).toString(); + return api.derive.staking._erasPoints(eras, withActive).pipe((0, rxjs_1.map)((points) => points.map(({ era, eraPoints, validators }) => ({ + era, + eraPoints, + points: validators[stakerId] || api.registry.createType("RewardPoint") + })))); + }); + } + exports2._stakerPoints = _stakerPoints; + exports2.stakerPoints = (0, util_js_1.erasHistoricApplyAccount)("_stakerPoints"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerPrefs.js + var require_stakerPrefs = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerPrefs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerPrefs = exports2._stakerPrefs = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerPrefs(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => api.query.staking.erasValidatorPrefs.multi(eras.map((e) => [e, accountId])).pipe((0, rxjs_1.map)((all) => all.map((validatorPrefs, index) => ({ + era: eras[index], + validatorPrefs + }))))); + } + exports2._stakerPrefs = _stakerPrefs; + exports2.stakerPrefs = (0, util_js_1.erasHistoricApplyAccount)("_stakerPrefs"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerRewards.js + var require_stakerRewards = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerRewards.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerRewardsMulti = exports2.stakerRewardsMultiEras = exports2.stakerRewards = exports2._stakerRewards = exports2._stakerRewardsEras = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function extractCompatRewards(ledger) { + return ledger ? ledger.legacyClaimedRewards || ledger.claimedRewards : []; + } + function parseRewards(api, stashId, [erasPoints, erasPrefs, erasRewards], exposures) { + return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }) => { + const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: util_1.BN_ZERO, validators: {} }; + const { eraReward } = erasRewards.find((r10) => r10.era.eq(era)) || { eraReward: api.registry.createType("Balance") }; + const { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} }; + const validators = {}; + const stakerId = stashId.toString(); + Object.entries(eraValidators).forEach(([validatorId, exposure]) => { + const valPoints = allValPoints[validatorId] || util_1.BN_ZERO; + const valComm = allValPrefs[validatorId]?.commission.unwrap() || util_1.BN_ZERO; + const expTotal = exposure.total ? exposure.total?.unwrap() : exposure.pageTotal ? exposure.pageTotal?.unwrap() : util_1.BN_ZERO; + let avail = util_1.BN_ZERO; + let value; + if (!(expTotal.isZero() || valPoints.isZero() || eraPoints.isZero())) { + avail = eraReward.mul(valPoints).div(eraPoints); + const valCut = valComm.mul(avail).div(util_1.BN_BILLION); + let staked; + if (validatorId === stakerId) { + if (exposure.own) { + staked = exposure.own.unwrap(); + } else { + const expAccount = exposure.others.find(({ who }) => who.eq(validatorId)); + staked = expAccount ? expAccount.value.unwrap() : util_1.BN_ZERO; + } + } else { + const stakerExp = exposure.others.find(({ who }) => who.eq(stakerId)); + staked = stakerExp ? stakerExp.value.unwrap() : util_1.BN_ZERO; + } + value = avail.sub(valCut).imul(staked).div(expTotal).iadd(validatorId === stakerId ? valCut : util_1.BN_ZERO); + } + validators[validatorId] = { + total: api.registry.createType("Balance", avail), + value: api.registry.createType("Balance", value) + }; + }); + return { + era, + eraReward, + isEmpty, + isValidator, + nominating, + validators + }; + }); + } + function allUniqValidators(rewards) { + return rewards.reduce(([all, perStash], rewards2) => { + const uniq = []; + perStash.push(uniq); + rewards2.forEach(({ validators }) => Object.keys(validators).forEach((validatorId) => { + if (!uniq.includes(validatorId)) { + uniq.push(validatorId); + if (!all.includes(validatorId)) { + all.push(validatorId); + } + } + })); + return [all, perStash]; + }, [[], []]); + } + function removeClaimed(validators, queryValidators, reward) { + const rm2 = []; + Object.keys(reward.validators).forEach((validatorId) => { + const index = validators.indexOf(validatorId); + if (index !== -1) { + const valLedger = queryValidators[index].stakingLedger; + if (extractCompatRewards(valLedger).some((e) => reward.era.eq(e))) { + rm2.push(validatorId); + } + } + }); + rm2.forEach((validatorId) => { + delete reward.validators[validatorId]; + }); + } + function filterRewards(eras, valInfo, { rewards, stakingLedger }) { + const filter = eras.filter((e) => !extractCompatRewards(stakingLedger).some((s) => s.eq(e))); + const validators = valInfo.map(([v]) => v); + const queryValidators = valInfo.map(([, q]) => q); + return rewards.filter(({ isEmpty }) => !isEmpty).filter((reward) => { + if (!filter.some((e) => reward.era.eq(e))) { + return false; + } + removeClaimed(validators, queryValidators, reward); + return true; + }).filter(({ validators: validators2 }) => Object.keys(validators2).length !== 0).map((reward) => (0, util_1.objectSpread)({}, reward, { + nominators: reward.nominating.filter((n) => reward.validators[n.validatorId]) + })); + } + function _stakerRewardsEras(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive = false) => (0, rxjs_1.combineLatest)([ + api.derive.staking._erasPoints(eras, withActive), + api.derive.staking._erasPrefs(eras, withActive), + api.derive.staking._erasRewards(eras, withActive) + ])); + } + exports2._stakerRewardsEras = _stakerRewardsEras; + function _stakerRewards(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras, withActive = false) => (0, rxjs_1.combineLatest)([ + api.derive.staking.queryMulti(accountIds, { withLedger: true }), + api.derive.staking._stakerExposures(accountIds, eras, withActive), + api.derive.staking._stakerRewardsEras(eras, withActive) + ]).pipe((0, rxjs_1.switchMap)(([queries, exposures, erasResult]) => { + const allRewards = queries.map(({ stakingLedger, stashId }, index) => !stashId || !stakingLedger ? [] : parseRewards(api, stashId, erasResult, exposures[index])); + if (withActive) { + return (0, rxjs_1.of)(allRewards); + } + const [allValidators, stashValidators] = allUniqValidators(allRewards); + return api.derive.staking.queryMulti(allValidators, { withLedger: true }).pipe((0, rxjs_1.map)((queriedVals) => queries.map(({ stakingLedger }, index) => filterRewards(eras, stashValidators[index].map((validatorId) => [ + validatorId, + queriedVals.find((q) => q.accountId.eq(validatorId)) + ]).filter((v) => !!v[1]), { + rewards: allRewards[index], + stakingLedger + })))); + }))); + } + exports2._stakerRewards = _stakerRewards; + exports2.stakerRewards = (0, index_js_1.firstMemo)((api, accountId, withActive) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking._stakerRewards([accountId], eras, withActive)))); + function stakerRewardsMultiEras(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras) => accountIds.length && eras.length ? api.derive.staking._stakerRewards(accountIds, eras, false) : (0, rxjs_1.of)([])); + } + exports2.stakerRewardsMultiEras = stakerRewardsMultiEras; + function stakerRewardsMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking.stakerRewardsMultiEras(accountIds, eras)))); + } + exports2.stakerRewardsMulti = stakerRewardsMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerSlashes.js + var require_stakerSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerSlashes = exports2._stakerSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => { + const stakerId = api.registry.createType("AccountId", accountId).toString(); + return api.derive.staking._erasSlashes(eras, withActive).pipe((0, rxjs_1.map)((slashes) => slashes.map(({ era, nominators, validators }) => ({ + era, + total: nominators[stakerId] || validators[stakerId] || api.registry.createType("Balance") + })))); + }); + } + exports2._stakerSlashes = _stakerSlashes; + exports2.stakerSlashes = (0, util_js_1.erasHistoricApplyAccount)("_stakerSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stashes.js + var require_stashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function onBondedEvent(api) { + let current = Date.now(); + return api.query.system.events().pipe((0, rxjs_1.map)((events) => { + current = events.filter(({ event, phase }) => { + try { + return phase.isApplyExtrinsic && event.section === "staking" && event.method === "Bonded"; + } catch { + return false; + } + }) ? Date.now() : current; + return current; + }), (0, rxjs_1.startWith)(current), (0, index_js_1.drr)({ skipTimeout: true })); + } + function stashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => onBondedEvent(api).pipe((0, rxjs_1.switchMap)(() => api.query.staking.validators.keys()), (0, rxjs_1.map)((keys) => keys.map(({ args: [v] }) => v).filter((a) => a)))); + } + exports2.stashes = stashes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/validators.js + var require_validators = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/validators.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validators = exports2.nextElected = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function nextElected(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.staking.erasStakers ? api.derive.session.indexes().pipe( + (0, rxjs_1.switchMap)(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)), + (0, rxjs_1.map)((keys) => keys.map(({ args: [, accountId] }) => accountId)) + ) : api.query.staking["currentElected"]()); + } + exports2.nextElected = nextElected; + function validators(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.query.session ? api.query.session.validators() : (0, rxjs_1.of)([]), + api.query.staking ? api.derive.staking.nextElected() : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([validators2, nextElected2]) => ({ + nextElected: nextElected2.length ? nextElected2 : validators2, + validators: validators2 + })))); + } + exports2.validators = validators; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/waitingInfo.js + var require_waitingInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/waitingInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.waitingInfo = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var DEFAULT_FLAGS = { withController: true, withPrefs: true }; + function waitingInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (flags = DEFAULT_FLAGS) => (0, rxjs_1.combineLatest)([ + api.derive.staking.validators(), + api.derive.staking.stashes() + ]).pipe((0, rxjs_1.switchMap)(([{ nextElected }, stashes]) => { + const elected = nextElected.map((a) => a.toString()); + const waiting = stashes.filter((v) => !elected.includes(v.toString())); + return api.derive.staking.queryMulti(waiting, flags).pipe((0, rxjs_1.map)((info) => ({ + info, + waiting + }))); + }))); + } + exports2.waitingInfo = waitingInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/index.js + var require_staking = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_account2(), exports2); + tslib_1.__exportStar(require_currentPoints(), exports2); + tslib_1.__exportStar(require_electedInfo(), exports2); + tslib_1.__exportStar(require_erasExposure(), exports2); + tslib_1.__exportStar(require_erasHistoric(), exports2); + tslib_1.__exportStar(require_erasPoints(), exports2); + tslib_1.__exportStar(require_erasPrefs(), exports2); + tslib_1.__exportStar(require_erasRewards(), exports2); + tslib_1.__exportStar(require_erasSlashes(), exports2); + tslib_1.__exportStar(require_keys2(), exports2); + tslib_1.__exportStar(require_overview2(), exports2); + tslib_1.__exportStar(require_ownExposure(), exports2); + tslib_1.__exportStar(require_ownSlashes(), exports2); + tslib_1.__exportStar(require_query(), exports2); + tslib_1.__exportStar(require_stakerExposure(), exports2); + tslib_1.__exportStar(require_stakerPoints(), exports2); + tslib_1.__exportStar(require_stakerPrefs(), exports2); + tslib_1.__exportStar(require_stakerRewards(), exports2); + tslib_1.__exportStar(require_stakerSlashes(), exports2); + tslib_1.__exportStar(require_stashes(), exports2); + tslib_1.__exportStar(require_validators(), exports2); + tslib_1.__exportStar(require_waitingInfo(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/technicalCommittee/index.js + var require_technicalCommittee = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/technicalCommittee/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("technicalCommittee"); + exports2.hasProposals = (0, index_js_1.hasProposals)("technicalCommittee"); + exports2.proposal = (0, index_js_1.proposal)("technicalCommittee"); + exports2.proposalCount = (0, index_js_1.proposalCount)("technicalCommittee"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("technicalCommittee"); + exports2.proposals = (0, index_js_1.proposals)("technicalCommittee"); + exports2.prime = (0, index_js_1.prime)("technicalCommittee"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/treasury/proposals.js + var require_proposals3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/treasury/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposals = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount }) { + const approvals = []; + const proposals2 = []; + const councilTreasury = councilProposals.filter(({ proposal }) => proposal && (api.tx.treasury.approveProposal.is(proposal) || api.tx.treasury.rejectProposal.is(proposal))); + allIds.forEach((id4, index) => { + if (allProposals[index].isSome) { + const council = councilTreasury.filter(({ proposal }) => proposal && id4.eq(proposal.args[0])).sort((a, b) => a.proposal && b.proposal ? a.proposal.method.localeCompare(b.proposal.method) : a.proposal ? -1 : 1); + const isApproval = approvalIds.some((approvalId) => approvalId.eq(id4)); + const derived = { council, id: id4, proposal: allProposals[index].unwrap() }; + if (isApproval) { + approvals.push(derived); + } else { + proposals2.push(derived); + } + } + }); + return { approvals, proposalCount, proposals: proposals2 }; + } + function retrieveProposals(api, proposalCount, approvalIds) { + const proposalIds = []; + const count = proposalCount.toNumber(); + for (let index = 0; index < count; index++) { + if (!approvalIds.some((id4) => id4.eqn(index))) { + proposalIds.push(api.registry.createType("ProposalIndex", index)); + } + } + const allIds = [...proposalIds, ...approvalIds]; + return (0, rxjs_1.combineLatest)([ + api.query.treasury.proposals.multi(allIds), + api.derive.council ? api.derive.council.proposals() : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([allProposals, councilProposals]) => parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount }))); + } + function proposals(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.treasury ? (0, rxjs_1.combineLatest)([ + api.query.treasury.proposalCount(), + api.query.treasury.approvals() + ]).pipe((0, rxjs_1.switchMap)(([proposalCount, approvalIds]) => retrieveProposals(api, proposalCount, approvalIds))) : (0, rxjs_1.of)({ + approvals: [], + proposalCount: api.registry.createType("ProposalIndex"), + proposals: [] + })); + } + exports2.proposals = proposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/treasury/index.js + var require_treasury = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/treasury/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_proposals3(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/events.js + var require_events2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.events = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function events(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (blockHash) => (0, rxjs_1.combineLatest)([ + api.rpc.chain.getBlock(blockHash), + api.queryAt(blockHash).pipe((0, rxjs_1.switchMap)((queryAt) => queryAt.system.events())) + ]).pipe((0, rxjs_1.map)(([block, events2]) => ({ block, events: events2 })))); + } + exports2.events = events; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/constants.js + var require_constants4 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/constants.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MORTAL_PERIOD = exports2.MAX_FINALITY_LAG = exports2.FALLBACK_PERIOD = exports2.FALLBACK_MAX_HASH_COUNT = void 0; + var util_1 = require_cjs3(); + exports2.FALLBACK_MAX_HASH_COUNT = 250; + exports2.FALLBACK_PERIOD = new util_1.BN(6 * 1e3); + exports2.MAX_FINALITY_LAG = new util_1.BN(5); + exports2.MORTAL_PERIOD = new util_1.BN(5 * 60 * 1e3); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/signingInfo.js + var require_signingInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/signingInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.signingInfo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var constants_js_1 = require_constants4(); + function latestNonce(api, address) { + return api.derive.balances.account(address).pipe((0, rxjs_1.map)(({ accountNonce }) => accountNonce)); + } + function nextNonce(api, address) { + return api.rpc.system?.accountNextIndex ? api.rpc.system.accountNextIndex(address) : latestNonce(api, address); + } + function signingHeader(api) { + return (0, rxjs_1.combineLatest)([ + api.rpc.chain.getHeader().pipe((0, rxjs_1.switchMap)((header) => header.parentHash.isEmpty ? (0, rxjs_1.of)(header) : api.rpc.chain.getHeader(header.parentHash).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(header))))), + api.rpc.chain.getFinalizedHead().pipe((0, rxjs_1.switchMap)((hash8) => api.rpc.chain.getHeader(hash8).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(null))))) + ]).pipe((0, rxjs_1.map)(([current, finalized]) => !finalized || (0, index_js_1.unwrapBlockNumber)(current).sub((0, index_js_1.unwrapBlockNumber)(finalized)).gt(constants_js_1.MAX_FINALITY_LAG) ? current : finalized)); + } + function babeOrAuraPeriod(api) { + const period = api.consts.babe?.expectedBlockTime || api.consts["aura"]?.slotDuration || api.consts.timestamp?.minimumPeriod.muln(2); + return !period.isZero() ? period : void 0; + } + function signingInfo(_instanceId, api) { + return (address, nonce, era) => (0, rxjs_1.combineLatest)([ + (0, util_1.isUndefined)(nonce) ? latestNonce(api, address) : nonce === -1 ? nextNonce(api, address) : (0, rxjs_1.of)(api.registry.createType("Index", nonce)), + (0, util_1.isUndefined)(era) || (0, util_1.isNumber)(era) && era > 0 ? signingHeader(api) : (0, rxjs_1.of)(null) + ]).pipe((0, rxjs_1.map)(([nonce2, header]) => ({ + header, + mortalLength: Math.min(api.consts.system?.blockHashCount?.toNumber() || constants_js_1.FALLBACK_MAX_HASH_COUNT, constants_js_1.MORTAL_PERIOD.div(babeOrAuraPeriod(api) || constants_js_1.FALLBACK_PERIOD).iadd(constants_js_1.MAX_FINALITY_LAG).toNumber()), + nonce: nonce2 + }))); + } + exports2.signingInfo = signingInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/index.js + var require_tx = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_events2(), exports2); + tslib_1.__exportStar(require_signingInfo(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/derive.js + var require_derive3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/derive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.derive = void 0; + var tslib_1 = require_tslib(); + var accounts2 = tslib_1.__importStar(require_accounts()); + var alliance = tslib_1.__importStar(require_alliance()); + var bagsList = tslib_1.__importStar(require_bagsList()); + var balances = tslib_1.__importStar(require_balances()); + var bounties = tslib_1.__importStar(require_bounties2()); + var chain4 = tslib_1.__importStar(require_chain()); + var contracts2 = tslib_1.__importStar(require_contracts()); + var council = tslib_1.__importStar(require_council()); + var crowdloan = tslib_1.__importStar(require_crowdloan()); + var democracy = tslib_1.__importStar(require_democracy()); + var elections = tslib_1.__importStar(require_elections()); + var imOnline = tslib_1.__importStar(require_imOnline()); + var membership = tslib_1.__importStar(require_membership()); + var parachains = tslib_1.__importStar(require_parachains()); + var session = tslib_1.__importStar(require_session()); + var society = tslib_1.__importStar(require_society()); + var staking = tslib_1.__importStar(require_staking()); + var technicalCommittee = tslib_1.__importStar(require_technicalCommittee()); + var treasury = tslib_1.__importStar(require_treasury()); + var tx2 = tslib_1.__importStar(require_tx()); + exports2.derive = { accounts: accounts2, alliance, bagsList, balances, bounties, chain: chain4, contracts: contracts2, council, crowdloan, democracy, elections, imOnline, membership, parachains, session, society, staking, technicalCommittee, treasury, tx: tx2 }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bundle.js + var require_bundle8 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAvailableDerives = exports2.lazyDeriveSection = void 0; + var tslib_1 = require_tslib(); + var index_js_1 = require_util10(); + Object.defineProperty(exports2, "lazyDeriveSection", { enumerable: true, get: function() { + return index_js_1.lazyDeriveSection; + } }); + var derive_js_1 = require_derive3(); + tslib_1.__exportStar(require_derive3(), exports2); + tslib_1.__exportStar(require_type2(), exports2); + var checks = { + allianceMotion: { + instances: ["allianceMotion"], + methods: [] + }, + bagsList: { + instances: ["voterBagsList", "voterList", "bagsList"], + methods: [], + withDetect: true + }, + contracts: { + instances: ["contracts"], + methods: [] + }, + council: { + instances: ["council"], + methods: [], + withDetect: true + }, + crowdloan: { + instances: ["crowdloan"], + methods: [] + }, + democracy: { + instances: ["democracy"], + methods: [] + }, + elections: { + instances: ["phragmenElection", "electionsPhragmen", "elections", "council"], + methods: [], + withDetect: true + }, + imOnline: { + instances: ["imOnline"], + methods: [] + }, + membership: { + instances: ["membership"], + methods: [] + }, + parachains: { + instances: ["parachains", "registrar"], + methods: [] + }, + session: { + instances: ["session"], + methods: [] + }, + society: { + instances: ["society"], + methods: [] + }, + staking: { + instances: ["staking"], + methods: ["erasRewardPoints"] + }, + technicalCommittee: { + instances: ["technicalCommittee"], + methods: [], + withDetect: true + }, + treasury: { + instances: ["treasury"], + methods: [] + } + }; + function getModuleInstances(api, specName, moduleName) { + return api.registry.getModuleInstances(specName, moduleName) || []; + } + function injectFunctions(instanceId, api, derives) { + const result = {}; + const names2 = Object.keys(derives); + const keys = Object.keys(api.query); + const specName = api.runtimeVersion.specName; + const filterKeys = (q) => keys.includes(q); + const filterInstances = (q) => getModuleInstances(api, specName, q).some(filterKeys); + const filterMethods = (all) => (m) => all.some((q) => keys.includes(q) && api.query[q][m]); + const getKeys2 = (s) => Object.keys(derives[s]); + const creator = (s, m) => derives[s][m](instanceId, api); + const isIncluded = (c) => !checks[c] || (checks[c].instances.some(filterKeys) && (!checks[c].methods.length || checks[c].methods.every(filterMethods(checks[c].instances))) || checks[c].withDetect && checks[c].instances.some(filterInstances)); + for (let i = 0, count = names2.length; i < count; i++) { + const name6 = names2[i]; + isIncluded(name6) && (0, index_js_1.lazyDeriveSection)(result, name6, getKeys2, creator); + } + return result; + } + function getAvailableDerives(instanceId, api, custom = {}) { + return { + ...injectFunctions(instanceId, api, derive_js_1.derive), + ...injectFunctions(instanceId, api, custom) + }; + } + exports2.getAvailableDerives = getAvailableDerives; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/index.js + var require_cjs12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect(); + tslib_1.__exportStar(require_bundle8(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/packageInfo.js + var require_packageInfo18 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-known", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/packageDetect.js + var require_packageDetect6 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo18(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/chain/index.js + var require_chain2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/chain/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesChain = void 0; + exports2.typesChain = {}; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/centrifuge-chain.js + var require_centrifuge_chain = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/centrifuge-chain.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var sharedTypes9 = { + AnchorData: { + anchoredBlock: "u64", + docRoot: "H256", + id: "H256" + }, + DispatchErrorModule: "DispatchErrorModuleU8", + PreCommitData: { + expirationBlock: "u64", + identity: "H256", + signingRoot: "H256" + }, + Fee: { + key: "Hash", + price: "Balance" + }, + MultiAccountData: { + deposit: "Balance", + depositor: "AccountId", + signatories: "Vec", + threshold: "u16" + }, + ChainId: "u8", + DepositNonce: "u64", + ResourceId: "[u8; 32]", + "chainbridge::ChainId": "u8", + RegistryId: "H160", + TokenId: "U256", + AssetId: { + registryId: "RegistryId", + tokenId: "TokenId" + }, + AssetInfo: { + metadata: "Bytes" + }, + MintInfo: { + anchorId: "Hash", + proofs: "Vec", + staticHashes: "[Hash; 3]" + }, + Proof: { + leafHash: "H256", + sortedHashes: "H256" + }, + ProofMint: { + hashes: "Vec", + property: "Bytes", + salt: "[u8; 32]", + value: "Bytes" + }, + RegistryInfo: { + fields: "Vec", + ownerCanBurn: "bool" + }, + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "Governance", + "Staking", + "NonProxy" + ] + } + }; + var standaloneTypes2 = { + ...sharedTypes9, + AccountInfo: "AccountInfoWithRefCount", + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + Multiplier: "Fixed64", + RefCount: "RefCountTo259" + }; + exports2.versioned = [ + { + minmax: [240, 243], + types: { + ...standaloneTypes2, + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "Governance", + "Staking", + "Vesting" + ] + } + } + }, + { + minmax: [244, 999], + types: { ...standaloneTypes2 } + }, + { + minmax: [1e3, void 0], + types: { ...sharedTypes9 } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/kusama.js + var require_kusama = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith24", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith24", + Keys: "SessionKeys6", + ProxyType: { + _enum: ["Any", "NonTransfer", "Governance", "Staking", "IdentityJudgement", "CancelProxy", "Auction"] + }, + Weight: "WeightV1" + }; + var addrIndicesTypes2 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "LookupSource", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys5", + LookupSource: "IndicesLookupSource", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys5", + LookupSource: "AccountId", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [1019, 1031], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchError: "DispatchErrorTo198", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + IdentityInfo: "IdentityInfoTo198", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + SlashingSpans: "SlashingSpansTo204", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1032, 1042], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + SlashingSpans: "SlashingSpansTo204", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1043, 1045], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1046, 1049], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo223", + Weight: "u32" + } + }, + { + minmax: [1050, 1054], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo240", + Weight: "u32" + } + }, + { + minmax: [1055, 1056], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo240", + Weight: "u32" + } + }, + { + minmax: [1057, 1061], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Scheduled: "ScheduledTo254" + } + }, + { + minmax: [1062, 2012], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [2013, 2022], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + RefCount: "RefCountTo259" + } + }, + { + minmax: [2023, 2024], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + RefCount: "RefCountTo259" + } + }, + { + minmax: [2025, 2027], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [2028, 2029], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount", + CompactAssignments: "CompactAssignmentsWith16", + RawSolution: "RawSolutionWith16" + } + }, + { + minmax: [2030, 9e3], + types: { + ...sharedTypes9, + CompactAssignments: "CompactAssignmentsWith16", + RawSolution: "RawSolutionWith16" + } + }, + { + minmax: [9010, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/node.js + var require_node = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/node.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: { + Weight: "WeightV2" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/node-template.js + var require_node_template = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/node-template.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: { + Weight: "WeightV2" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/polkadot.js + var require_polkadot2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys6", + ProxyType: { + _enum: { + Any: 0, + NonTransfer: 1, + Governance: 2, + Staking: 3, + UnusedSudoBalances: 4, + IdentityJudgement: 5, + CancelProxy: 6, + Auction: 7 + } + }, + Weight: "WeightV1" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + DispatchErrorModule: "DispatchErrorModuleU8", + Keys: "SessionKeys5", + LookupSource: "AccountId", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [0, 12], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [13, 22], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + RefCount: "RefCountTo259" + } + }, + { + minmax: [23, 24], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + RefCount: "RefCountTo259" + } + }, + { + minmax: [25, 27], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [28, 29], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [30, 9109], + types: { + ...sharedTypes9 + } + }, + { + minmax: [9110, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/rococo.js + var require_rococo = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/rococo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + FullIdentification: "()", + Keys: "SessionKeys7B", + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 200], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount", + Address: "AccountId", + LookupSource: "AccountId" + } + }, + { + minmax: [201, 214], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [215, 228], + types: { + ...sharedTypes9, + Keys: "SessionKeys6" + } + }, + { + minmax: [229, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/shell.js + var require_shell2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/shell.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: {} + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/statemine.js + var require_statemine = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/statemine.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, 9999], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + }, + { + minmax: [1e4, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/statemint.js + var require_statemint2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/statemint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, void 0], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/westend.js + var require_westend = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/westend.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys6", + ProxyType: { + _enum: ["Any", "NonTransfer", "Staking", "SudoBalances", "IdentityJudgement", "CancelProxy"] + }, + Weight: "WeightV1" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + LookupSource: "AccountId", + Keys: "SessionKeys5", + RawSolution: "RawSolutionWith16", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [1, 2], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Weight: "u32" + } + }, + { + minmax: [3, 22], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [23, 42], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + RefCount: "RefCountTo259" + } + }, + { + minmax: [43, 44], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + RefCount: "RefCountTo259" + } + }, + { + minmax: [45, 47], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [48, 49], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [50, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/westmint.js + var require_westmint = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/westmint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, 9434], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + }, + { + minmax: [9435, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/index.js + var require_spec = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesSpec = void 0; + var centrifuge_chain_js_1 = require_centrifuge_chain(); + var kusama_js_1 = require_kusama(); + var node_js_1 = require_node(); + var node_template_js_1 = require_node_template(); + var polkadot_js_1 = require_polkadot2(); + var rococo_js_1 = require_rococo(); + var shell_js_1 = require_shell2(); + var statemine_js_1 = require_statemine(); + var statemint_js_1 = require_statemint2(); + var westend_js_1 = require_westend(); + var westmint_js_1 = require_westmint(); + exports2.typesSpec = { + "centrifuge-chain": centrifuge_chain_js_1.versioned, + kusama: kusama_js_1.versioned, + node: node_js_1.versioned, + "node-template": node_template_js_1.versioned, + polkadot: polkadot_js_1.versioned, + rococo: rococo_js_1.versioned, + shell: shell_js_1.versioned, + statemine: statemine_js_1.versioned, + statemint: statemint_js_1.versioned, + westend: westend_js_1.versioned, + westmint: westmint_js_1.versioned + }; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/kusama.js + var require_kusama2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 0, + 1020, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 26669, + 1021, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 38245, + 1022, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 54248, + 1023, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 59659, + 1024, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 67651, + 1025, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 82191, + 1027, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 83238, + 1028, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 101503, + 1029, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 203466, + 1030, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 295787, + 1031, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 461692, + 1032, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 504329, + 1033, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 569327, + 1038, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 587687, + 1039, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 653183, + 1040, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 693488, + 1042, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 901442, + 1045, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1375086, + 1050, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1445458, + 1051, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1472960, + 1052, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1475648, + 1053, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1491596, + 1054, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1574408, + 1055, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2064961, + 1058, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2201991, + 1062, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2671528, + 2005, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2704202, + 2007, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2728002, + 2008, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2832534, + 2011, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2962294, + 2012, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 324e4, + 2013, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3274408, + 2015, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3323565, + 2019, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3534175, + 2022, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3860281, + 2023, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4143129, + 2024, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4401242, + 2025, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4841367, + 2026, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5961600, + 2027, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6137912, + 2028, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6561855, + 2029, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7100891, + 2030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7468792, + 9010, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7668600, + 9030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7812476, + 9040, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8010981, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8073833, + 9070, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8555825, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8945245, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9611377, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9625129, + 9111, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9866422, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10403784, + 9130, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10960765, + 9150, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11006614, + 9151, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11404482, + 9160, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11601803, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12008022, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12405451, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12665416, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12909508, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13109752, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13555777, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13727747, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 14248044, + 9271, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14433840, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14645900, + 9291, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15048375, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15426015, + 9320, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15680713, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15756296, + 9350, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15912007, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 16356547, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 17335450, + 9381, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 18062739, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 18625e3, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 20465806, + 1e6, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 2157e4, + 1001e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 21786291, + 1001002, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 22515962, + 1001003, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/polkadot.js + var require_polkadot3 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 0, + 0, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 29231, + 1, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 188836, + 5, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 199405, + 6, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 214264, + 7, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 244358, + 8, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 303079, + 9, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 314201, + 10, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 342400, + 11, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 443963, + 12, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 528470, + 13, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 687751, + 14, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 746085, + 15, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 787923, + 16, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 799302, + 17, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1205128, + 18, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1603423, + 23, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1733218, + 24, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2005673, + 25, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2436698, + 26, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3613564, + 27, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3899547, + 28, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4345767, + 29, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4876134, + 30, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5661442, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6321619, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6713249, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7217907, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7229126, + 9110, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7560558, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8115869, + 9140, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8638103, + 9151, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9280179, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9738717, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10156856, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10458576, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10655116, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10879371, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11328884, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11532856, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11933818, + 9270, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12217535, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12245277, + 9281, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12532644, + 9291, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12876189, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 13800015, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 14188833, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 14543918, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 15978362, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 1645e4, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 1784e4, + 9431, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 18407475, + 1000001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 19551e3, + 1001002, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/westend.js + var require_westend2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/westend.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 214356, + 4, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 392764, + 7, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 409740, + 8, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 809976, + 20, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 877581, + 24, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 879238, + 25, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 889472, + 26, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 902937, + 27, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 932751, + 28, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 991142, + 29, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1030162, + 31, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1119657, + 32, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1199282, + 33, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1342534, + 34, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1392263, + 35, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1431703, + 36, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1433369, + 37, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1490972, + 41, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2087397, + 43, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2316688, + 44, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2549864, + 45, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3925782, + 46, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3925843, + 47, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4207800, + 48, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4627944, + 49, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5124076, + 50, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5478664, + 900, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5482450, + 9e3, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5584305, + 9010, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5784566, + 9030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5879822, + 9031, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5896856, + 9032, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5897316, + 9033, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6117927, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6210274, + 9070, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6379314, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6979141, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7568453, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7766394, + 9111, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7911691, + 9120, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7968866, + 9121, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7982889, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8514322, + 9130, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9091726, + 9140, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9091774, + 9150, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9406726, + 9160, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9921066, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10007115, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10480973, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10578091, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10678509, + 9210, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10811001, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11096116, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11409279, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11584820, + 9251, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11716837, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11876919, + 9261, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11987927, + 9270, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12077324, + 9271, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12301871, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12604343, + 9290, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12841034, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13128237, + 9310, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13272363, + 9320, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13483497, + 9330, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13649433, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13761100, + 9350, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13847400, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14249200, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14576855, + 9380, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14849830, + 9390, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15146832, + 9400, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15332317, + 9401, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15661793, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 16165469, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 18293984, + 102e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18293991, + 103e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 8 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18451783, + 104e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 9 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18679741, + 1005e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 9 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19166695, + 1006e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19234157, + 1006001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19542944, + 1007e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19621258, + 1007001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19761406, + 1008e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 20056997, + 1009e3, + [ + [ + "0xdf6acb689907609b", + 5 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 20368318, + 101e4, + [ + [ + "0xdf6acb689907609b", + 5 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x6ff52ee858e6c5bd", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/index.js + var require_e2e = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.westend = exports2.polkadot = exports2.kusama = void 0; + var kusama_js_1 = require_kusama2(); + Object.defineProperty(exports2, "kusama", { enumerable: true, get: function() { + return kusama_js_1.upgrades; + } }); + var polkadot_js_1 = require_polkadot3(); + Object.defineProperty(exports2, "polkadot", { enumerable: true, get: function() { + return polkadot_js_1.upgrades; + } }); + var westend_js_1 = require_westend2(); + Object.defineProperty(exports2, "westend", { enumerable: true, get: function() { + return westend_js_1.upgrades; + } }); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/index.js + var require_upgrades = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + var tslib_1 = require_tslib(); + var networks_1 = require_cjs5(); + var util_1 = require_cjs3(); + var allKnown = tslib_1.__importStar(require_e2e()); + var NET_EXTRA = { + westend: { + genesisHash: ["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"] + } + }; + function mapRaw([network2, versions]) { + const chain4 = networks_1.selectableNetworks.find((n) => n.network === network2) || NET_EXTRA[network2]; + if (!chain4) { + throw new Error(`Unable to find info for chain ${network2}`); + } + return { + genesisHash: (0, util_1.hexToU8a)(chain4.genesisHash[0]), + network: network2, + versions: versions.map(([blockNumber, specVersion, apis]) => ({ + apis, + blockNumber: new util_1.BN(blockNumber), + specVersion: new util_1.BN(specVersion) + })) + }; + } + exports2.upgrades = Object.entries(allKnown).map(mapRaw); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/util.js + var require_util18 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUpgradeVersion = exports2.getSpecAlias = exports2.getSpecRuntime = exports2.getSpecRpc = exports2.getSpecHasher = exports2.getSpecTypes = exports2.getSpecExtensions = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_chain2(); + var index_js_2 = require_spec(); + var index_js_3 = require_upgrades(); + function withNames2(chainName, specName, fn2) { + return fn2(chainName.toString(), specName.toString()); + } + function filterVersions2(versions = [], specVersion) { + return versions.filter(({ minmax: [min, max2] }) => (min === void 0 || min === null || specVersion >= min) && (max2 === void 0 || max2 === null || specVersion <= max2)).reduce((result, { types: types2 }) => ({ ...result, ...types2 }), {}); + } + function getSpecExtensions({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.signedExtensions ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.signedExtensions ?? {} + })); + } + exports2.getSpecExtensions = getSpecExtensions; + function getSpecTypes2({ knownTypes: knownTypes2 }, chainName, specName, specVersion) { + const _specVersion = (0, util_1.bnToBn)(specVersion).toNumber(); + return withNames2(chainName, specName, (c, s) => ({ + ...filterVersions2(index_js_2.typesSpec[s], _specVersion), + ...filterVersions2(index_js_1.typesChain[c], _specVersion), + ...filterVersions2(knownTypes2.typesBundle?.spec?.[s]?.types, _specVersion), + ...filterVersions2(knownTypes2.typesBundle?.chain?.[c]?.types, _specVersion), + ...knownTypes2.typesSpec?.[s] ?? {}, + ...knownTypes2.typesChain?.[c] ?? {}, + ...knownTypes2.types ?? {} + })); + } + exports2.getSpecTypes = getSpecTypes2; + function getSpecHasher({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => knownTypes2.hasher || knownTypes2.typesBundle?.chain?.[c]?.hasher || knownTypes2.typesBundle?.spec?.[s]?.hasher || null); + } + exports2.getSpecHasher = getSpecHasher; + function getSpecRpc({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.rpc ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.rpc ?? {} + })); + } + exports2.getSpecRpc = getSpecRpc; + function getSpecRuntime({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.runtime ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.runtime ?? {} + })); + } + exports2.getSpecRuntime = getSpecRuntime; + function getSpecAlias({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.alias ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.alias ?? {}, + ...knownTypes2.typesAlias ?? {} + })); + } + exports2.getSpecAlias = getSpecAlias; + function getUpgradeVersion(genesisHash, blockNumber) { + const known = index_js_3.upgrades.find((u) => genesisHash.eq(u.genesisHash)); + return known ? [ + known.versions.reduce((last2, version23) => { + return blockNumber.gt(version23.blockNumber) ? version23 : last2; + }, void 0), + known.versions.find((version23) => blockNumber.lte(version23.blockNumber)) + ] : [void 0, void 0]; + } + exports2.getUpgradeVersion = getUpgradeVersion; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/bundle.js + var require_bundle9 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = exports2.mapXcmTypes = void 0; + var tslib_1 = require_tslib(); + var types_create_1 = require_cjs9(); + Object.defineProperty(exports2, "mapXcmTypes", { enumerable: true, get: function() { + return types_create_1.mapXcmTypes; + } }); + var packageInfo_js_1 = require_packageInfo18(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_util18(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/index.js + var require_cjs13 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect6(); + tslib_1.__exportStar(require_bundle9(), exports2); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/partition.js + var require_partition2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/partition.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.partition = void 0; + var not_1 = require_not(); + var filter_1 = require_filter2(); + function partition(predicate, thisArg) { + return function(source) { + return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)]; + }; + } + exports2.partition = partition; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/race.js + var require_race2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/race.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.race = void 0; + var argsOrArgArray_1 = require_argsOrArgArray(); + var raceWith_1 = require_raceWith(); + function race() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return raceWith_1.raceWith.apply(void 0, __spreadArray2([], __read2(argsOrArgArray_1.argsOrArgArray(args)))); + } + exports2.race = race; + } + }); + + // ../../node_modules/rxjs/dist/cjs/operators/index.js + var require_operators = __commonJS({ + "../../node_modules/rxjs/dist/cjs/operators/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeAll = exports2.merge = exports2.max = exports2.materialize = exports2.mapTo = exports2.map = exports2.last = exports2.isEmpty = exports2.ignoreElements = exports2.groupBy = exports2.first = exports2.findIndex = exports2.find = exports2.finalize = exports2.filter = exports2.expand = exports2.exhaustMap = exports2.exhaustAll = exports2.exhaust = exports2.every = exports2.endWith = exports2.elementAt = exports2.distinctUntilKeyChanged = exports2.distinctUntilChanged = exports2.distinct = exports2.dematerialize = exports2.delayWhen = exports2.delay = exports2.defaultIfEmpty = exports2.debounceTime = exports2.debounce = exports2.count = exports2.connect = exports2.concatWith = exports2.concatMapTo = exports2.concatMap = exports2.concatAll = exports2.concat = exports2.combineLatestWith = exports2.combineLatest = exports2.combineLatestAll = exports2.combineAll = exports2.catchError = exports2.bufferWhen = exports2.bufferToggle = exports2.bufferTime = exports2.bufferCount = exports2.buffer = exports2.auditTime = exports2.audit = void 0; + exports2.timeInterval = exports2.throwIfEmpty = exports2.throttleTime = exports2.throttle = exports2.tap = exports2.takeWhile = exports2.takeUntil = exports2.takeLast = exports2.take = exports2.switchScan = exports2.switchMapTo = exports2.switchMap = exports2.switchAll = exports2.subscribeOn = exports2.startWith = exports2.skipWhile = exports2.skipUntil = exports2.skipLast = exports2.skip = exports2.single = exports2.shareReplay = exports2.share = exports2.sequenceEqual = exports2.scan = exports2.sampleTime = exports2.sample = exports2.refCount = exports2.retryWhen = exports2.retry = exports2.repeatWhen = exports2.repeat = exports2.reduce = exports2.raceWith = exports2.race = exports2.publishReplay = exports2.publishLast = exports2.publishBehavior = exports2.publish = exports2.pluck = exports2.partition = exports2.pairwise = exports2.onErrorResumeNext = exports2.observeOn = exports2.multicast = exports2.min = exports2.mergeWith = exports2.mergeScan = exports2.mergeMapTo = exports2.mergeMap = exports2.flatMap = void 0; + exports2.zipWith = exports2.zipAll = exports2.zip = exports2.withLatestFrom = exports2.windowWhen = exports2.windowToggle = exports2.windowTime = exports2.windowCount = exports2.window = exports2.toArray = exports2.timestamp = exports2.timeoutWith = exports2.timeout = void 0; + var audit_1 = require_audit(); + Object.defineProperty(exports2, "audit", { enumerable: true, get: function() { + return audit_1.audit; + } }); + var auditTime_1 = require_auditTime(); + Object.defineProperty(exports2, "auditTime", { enumerable: true, get: function() { + return auditTime_1.auditTime; + } }); + var buffer_1 = require_buffer4(); + Object.defineProperty(exports2, "buffer", { enumerable: true, get: function() { + return buffer_1.buffer; + } }); + var bufferCount_1 = require_bufferCount(); + Object.defineProperty(exports2, "bufferCount", { enumerable: true, get: function() { + return bufferCount_1.bufferCount; + } }); + var bufferTime_1 = require_bufferTime(); + Object.defineProperty(exports2, "bufferTime", { enumerable: true, get: function() { + return bufferTime_1.bufferTime; + } }); + var bufferToggle_1 = require_bufferToggle(); + Object.defineProperty(exports2, "bufferToggle", { enumerable: true, get: function() { + return bufferToggle_1.bufferToggle; + } }); + var bufferWhen_1 = require_bufferWhen(); + Object.defineProperty(exports2, "bufferWhen", { enumerable: true, get: function() { + return bufferWhen_1.bufferWhen; + } }); + var catchError_1 = require_catchError(); + Object.defineProperty(exports2, "catchError", { enumerable: true, get: function() { + return catchError_1.catchError; + } }); + var combineAll_1 = require_combineAll(); + Object.defineProperty(exports2, "combineAll", { enumerable: true, get: function() { + return combineAll_1.combineAll; + } }); + var combineLatestAll_1 = require_combineLatestAll(); + Object.defineProperty(exports2, "combineLatestAll", { enumerable: true, get: function() { + return combineLatestAll_1.combineLatestAll; + } }); + var combineLatest_1 = require_combineLatest2(); + Object.defineProperty(exports2, "combineLatest", { enumerable: true, get: function() { + return combineLatest_1.combineLatest; + } }); + var combineLatestWith_1 = require_combineLatestWith(); + Object.defineProperty(exports2, "combineLatestWith", { enumerable: true, get: function() { + return combineLatestWith_1.combineLatestWith; + } }); + var concat_1 = require_concat3(); + Object.defineProperty(exports2, "concat", { enumerable: true, get: function() { + return concat_1.concat; + } }); + var concatAll_1 = require_concatAll(); + Object.defineProperty(exports2, "concatAll", { enumerable: true, get: function() { + return concatAll_1.concatAll; + } }); + var concatMap_1 = require_concatMap(); + Object.defineProperty(exports2, "concatMap", { enumerable: true, get: function() { + return concatMap_1.concatMap; + } }); + var concatMapTo_1 = require_concatMapTo(); + Object.defineProperty(exports2, "concatMapTo", { enumerable: true, get: function() { + return concatMapTo_1.concatMapTo; + } }); + var concatWith_1 = require_concatWith(); + Object.defineProperty(exports2, "concatWith", { enumerable: true, get: function() { + return concatWith_1.concatWith; + } }); + var connect_1 = require_connect(); + Object.defineProperty(exports2, "connect", { enumerable: true, get: function() { + return connect_1.connect; + } }); + var count_1 = require_count(); + Object.defineProperty(exports2, "count", { enumerable: true, get: function() { + return count_1.count; + } }); + var debounce_1 = require_debounce(); + Object.defineProperty(exports2, "debounce", { enumerable: true, get: function() { + return debounce_1.debounce; + } }); + var debounceTime_1 = require_debounceTime(); + Object.defineProperty(exports2, "debounceTime", { enumerable: true, get: function() { + return debounceTime_1.debounceTime; + } }); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + Object.defineProperty(exports2, "defaultIfEmpty", { enumerable: true, get: function() { + return defaultIfEmpty_1.defaultIfEmpty; + } }); + var delay_1 = require_delay(); + Object.defineProperty(exports2, "delay", { enumerable: true, get: function() { + return delay_1.delay; + } }); + var delayWhen_1 = require_delayWhen(); + Object.defineProperty(exports2, "delayWhen", { enumerable: true, get: function() { + return delayWhen_1.delayWhen; + } }); + var dematerialize_1 = require_dematerialize(); + Object.defineProperty(exports2, "dematerialize", { enumerable: true, get: function() { + return dematerialize_1.dematerialize; + } }); + var distinct_1 = require_distinct(); + Object.defineProperty(exports2, "distinct", { enumerable: true, get: function() { + return distinct_1.distinct; + } }); + var distinctUntilChanged_1 = require_distinctUntilChanged(); + Object.defineProperty(exports2, "distinctUntilChanged", { enumerable: true, get: function() { + return distinctUntilChanged_1.distinctUntilChanged; + } }); + var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged(); + Object.defineProperty(exports2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return distinctUntilKeyChanged_1.distinctUntilKeyChanged; + } }); + var elementAt_1 = require_elementAt(); + Object.defineProperty(exports2, "elementAt", { enumerable: true, get: function() { + return elementAt_1.elementAt; + } }); + var endWith_1 = require_endWith(); + Object.defineProperty(exports2, "endWith", { enumerable: true, get: function() { + return endWith_1.endWith; + } }); + var every_1 = require_every(); + Object.defineProperty(exports2, "every", { enumerable: true, get: function() { + return every_1.every; + } }); + var exhaust_1 = require_exhaust(); + Object.defineProperty(exports2, "exhaust", { enumerable: true, get: function() { + return exhaust_1.exhaust; + } }); + var exhaustAll_1 = require_exhaustAll(); + Object.defineProperty(exports2, "exhaustAll", { enumerable: true, get: function() { + return exhaustAll_1.exhaustAll; + } }); + var exhaustMap_1 = require_exhaustMap(); + Object.defineProperty(exports2, "exhaustMap", { enumerable: true, get: function() { + return exhaustMap_1.exhaustMap; + } }); + var expand_1 = require_expand2(); + Object.defineProperty(exports2, "expand", { enumerable: true, get: function() { + return expand_1.expand; + } }); + var filter_1 = require_filter2(); + Object.defineProperty(exports2, "filter", { enumerable: true, get: function() { + return filter_1.filter; + } }); + var finalize_1 = require_finalize(); + Object.defineProperty(exports2, "finalize", { enumerable: true, get: function() { + return finalize_1.finalize; + } }); + var find_1 = require_find(); + Object.defineProperty(exports2, "find", { enumerable: true, get: function() { + return find_1.find; + } }); + var findIndex_1 = require_findIndex(); + Object.defineProperty(exports2, "findIndex", { enumerable: true, get: function() { + return findIndex_1.findIndex; + } }); + var first_1 = require_first(); + Object.defineProperty(exports2, "first", { enumerable: true, get: function() { + return first_1.first; + } }); + var groupBy_1 = require_groupBy(); + Object.defineProperty(exports2, "groupBy", { enumerable: true, get: function() { + return groupBy_1.groupBy; + } }); + var ignoreElements_1 = require_ignoreElements(); + Object.defineProperty(exports2, "ignoreElements", { enumerable: true, get: function() { + return ignoreElements_1.ignoreElements; + } }); + var isEmpty_1 = require_isEmpty(); + Object.defineProperty(exports2, "isEmpty", { enumerable: true, get: function() { + return isEmpty_1.isEmpty; + } }); + var last_1 = require_last(); + Object.defineProperty(exports2, "last", { enumerable: true, get: function() { + return last_1.last; + } }); + var map_1 = require_map(); + Object.defineProperty(exports2, "map", { enumerable: true, get: function() { + return map_1.map; + } }); + var mapTo_1 = require_mapTo(); + Object.defineProperty(exports2, "mapTo", { enumerable: true, get: function() { + return mapTo_1.mapTo; + } }); + var materialize_1 = require_materialize(); + Object.defineProperty(exports2, "materialize", { enumerable: true, get: function() { + return materialize_1.materialize; + } }); + var max_1 = require_max(); + Object.defineProperty(exports2, "max", { enumerable: true, get: function() { + return max_1.max; + } }); + var merge_1 = require_merge2(); + Object.defineProperty(exports2, "merge", { enumerable: true, get: function() { + return merge_1.merge; + } }); + var mergeAll_1 = require_mergeAll(); + Object.defineProperty(exports2, "mergeAll", { enumerable: true, get: function() { + return mergeAll_1.mergeAll; + } }); + var flatMap_1 = require_flatMap(); + Object.defineProperty(exports2, "flatMap", { enumerable: true, get: function() { + return flatMap_1.flatMap; + } }); + var mergeMap_1 = require_mergeMap(); + Object.defineProperty(exports2, "mergeMap", { enumerable: true, get: function() { + return mergeMap_1.mergeMap; + } }); + var mergeMapTo_1 = require_mergeMapTo(); + Object.defineProperty(exports2, "mergeMapTo", { enumerable: true, get: function() { + return mergeMapTo_1.mergeMapTo; + } }); + var mergeScan_1 = require_mergeScan(); + Object.defineProperty(exports2, "mergeScan", { enumerable: true, get: function() { + return mergeScan_1.mergeScan; + } }); + var mergeWith_1 = require_mergeWith(); + Object.defineProperty(exports2, "mergeWith", { enumerable: true, get: function() { + return mergeWith_1.mergeWith; + } }); + var min_1 = require_min3(); + Object.defineProperty(exports2, "min", { enumerable: true, get: function() { + return min_1.min; + } }); + var multicast_1 = require_multicast(); + Object.defineProperty(exports2, "multicast", { enumerable: true, get: function() { + return multicast_1.multicast; + } }); + var observeOn_1 = require_observeOn(); + Object.defineProperty(exports2, "observeOn", { enumerable: true, get: function() { + return observeOn_1.observeOn; + } }); + var onErrorResumeNextWith_1 = require_onErrorResumeNextWith(); + Object.defineProperty(exports2, "onErrorResumeNext", { enumerable: true, get: function() { + return onErrorResumeNextWith_1.onErrorResumeNext; + } }); + var pairwise_1 = require_pairwise(); + Object.defineProperty(exports2, "pairwise", { enumerable: true, get: function() { + return pairwise_1.pairwise; + } }); + var partition_1 = require_partition2(); + Object.defineProperty(exports2, "partition", { enumerable: true, get: function() { + return partition_1.partition; + } }); + var pluck_1 = require_pluck(); + Object.defineProperty(exports2, "pluck", { enumerable: true, get: function() { + return pluck_1.pluck; + } }); + var publish_1 = require_publish(); + Object.defineProperty(exports2, "publish", { enumerable: true, get: function() { + return publish_1.publish; + } }); + var publishBehavior_1 = require_publishBehavior(); + Object.defineProperty(exports2, "publishBehavior", { enumerable: true, get: function() { + return publishBehavior_1.publishBehavior; + } }); + var publishLast_1 = require_publishLast(); + Object.defineProperty(exports2, "publishLast", { enumerable: true, get: function() { + return publishLast_1.publishLast; + } }); + var publishReplay_1 = require_publishReplay(); + Object.defineProperty(exports2, "publishReplay", { enumerable: true, get: function() { + return publishReplay_1.publishReplay; + } }); + var race_1 = require_race2(); + Object.defineProperty(exports2, "race", { enumerable: true, get: function() { + return race_1.race; + } }); + var raceWith_1 = require_raceWith(); + Object.defineProperty(exports2, "raceWith", { enumerable: true, get: function() { + return raceWith_1.raceWith; + } }); + var reduce_1 = require_reduce(); + Object.defineProperty(exports2, "reduce", { enumerable: true, get: function() { + return reduce_1.reduce; + } }); + var repeat_1 = require_repeat(); + Object.defineProperty(exports2, "repeat", { enumerable: true, get: function() { + return repeat_1.repeat; + } }); + var repeatWhen_1 = require_repeatWhen(); + Object.defineProperty(exports2, "repeatWhen", { enumerable: true, get: function() { + return repeatWhen_1.repeatWhen; + } }); + var retry_1 = require_retry(); + Object.defineProperty(exports2, "retry", { enumerable: true, get: function() { + return retry_1.retry; + } }); + var retryWhen_1 = require_retryWhen(); + Object.defineProperty(exports2, "retryWhen", { enumerable: true, get: function() { + return retryWhen_1.retryWhen; + } }); + var refCount_1 = require_refCount(); + Object.defineProperty(exports2, "refCount", { enumerable: true, get: function() { + return refCount_1.refCount; + } }); + var sample_1 = require_sample(); + Object.defineProperty(exports2, "sample", { enumerable: true, get: function() { + return sample_1.sample; + } }); + var sampleTime_1 = require_sampleTime(); + Object.defineProperty(exports2, "sampleTime", { enumerable: true, get: function() { + return sampleTime_1.sampleTime; + } }); + var scan_1 = require_scan(); + Object.defineProperty(exports2, "scan", { enumerable: true, get: function() { + return scan_1.scan; + } }); + var sequenceEqual_1 = require_sequenceEqual(); + Object.defineProperty(exports2, "sequenceEqual", { enumerable: true, get: function() { + return sequenceEqual_1.sequenceEqual; + } }); + var share_1 = require_share(); + Object.defineProperty(exports2, "share", { enumerable: true, get: function() { + return share_1.share; + } }); + var shareReplay_1 = require_shareReplay(); + Object.defineProperty(exports2, "shareReplay", { enumerable: true, get: function() { + return shareReplay_1.shareReplay; + } }); + var single_1 = require_single(); + Object.defineProperty(exports2, "single", { enumerable: true, get: function() { + return single_1.single; + } }); + var skip_1 = require_skip(); + Object.defineProperty(exports2, "skip", { enumerable: true, get: function() { + return skip_1.skip; + } }); + var skipLast_1 = require_skipLast(); + Object.defineProperty(exports2, "skipLast", { enumerable: true, get: function() { + return skipLast_1.skipLast; + } }); + var skipUntil_1 = require_skipUntil(); + Object.defineProperty(exports2, "skipUntil", { enumerable: true, get: function() { + return skipUntil_1.skipUntil; + } }); + var skipWhile_1 = require_skipWhile(); + Object.defineProperty(exports2, "skipWhile", { enumerable: true, get: function() { + return skipWhile_1.skipWhile; + } }); + var startWith_1 = require_startWith(); + Object.defineProperty(exports2, "startWith", { enumerable: true, get: function() { + return startWith_1.startWith; + } }); + var subscribeOn_1 = require_subscribeOn(); + Object.defineProperty(exports2, "subscribeOn", { enumerable: true, get: function() { + return subscribeOn_1.subscribeOn; + } }); + var switchAll_1 = require_switchAll(); + Object.defineProperty(exports2, "switchAll", { enumerable: true, get: function() { + return switchAll_1.switchAll; + } }); + var switchMap_1 = require_switchMap(); + Object.defineProperty(exports2, "switchMap", { enumerable: true, get: function() { + return switchMap_1.switchMap; + } }); + var switchMapTo_1 = require_switchMapTo(); + Object.defineProperty(exports2, "switchMapTo", { enumerable: true, get: function() { + return switchMapTo_1.switchMapTo; + } }); + var switchScan_1 = require_switchScan(); + Object.defineProperty(exports2, "switchScan", { enumerable: true, get: function() { + return switchScan_1.switchScan; + } }); + var take_1 = require_take(); + Object.defineProperty(exports2, "take", { enumerable: true, get: function() { + return take_1.take; + } }); + var takeLast_1 = require_takeLast(); + Object.defineProperty(exports2, "takeLast", { enumerable: true, get: function() { + return takeLast_1.takeLast; + } }); + var takeUntil_1 = require_takeUntil(); + Object.defineProperty(exports2, "takeUntil", { enumerable: true, get: function() { + return takeUntil_1.takeUntil; + } }); + var takeWhile_1 = require_takeWhile(); + Object.defineProperty(exports2, "takeWhile", { enumerable: true, get: function() { + return takeWhile_1.takeWhile; + } }); + var tap_1 = require_tap(); + Object.defineProperty(exports2, "tap", { enumerable: true, get: function() { + return tap_1.tap; + } }); + var throttle_1 = require_throttle(); + Object.defineProperty(exports2, "throttle", { enumerable: true, get: function() { + return throttle_1.throttle; + } }); + var throttleTime_1 = require_throttleTime(); + Object.defineProperty(exports2, "throttleTime", { enumerable: true, get: function() { + return throttleTime_1.throttleTime; + } }); + var throwIfEmpty_1 = require_throwIfEmpty(); + Object.defineProperty(exports2, "throwIfEmpty", { enumerable: true, get: function() { + return throwIfEmpty_1.throwIfEmpty; + } }); + var timeInterval_1 = require_timeInterval(); + Object.defineProperty(exports2, "timeInterval", { enumerable: true, get: function() { + return timeInterval_1.timeInterval; + } }); + var timeout_1 = require_timeout(); + Object.defineProperty(exports2, "timeout", { enumerable: true, get: function() { + return timeout_1.timeout; + } }); + var timeoutWith_1 = require_timeoutWith(); + Object.defineProperty(exports2, "timeoutWith", { enumerable: true, get: function() { + return timeoutWith_1.timeoutWith; + } }); + var timestamp_1 = require_timestamp(); + Object.defineProperty(exports2, "timestamp", { enumerable: true, get: function() { + return timestamp_1.timestamp; + } }); + var toArray_1 = require_toArray(); + Object.defineProperty(exports2, "toArray", { enumerable: true, get: function() { + return toArray_1.toArray; + } }); + var window_1 = require_window(); + Object.defineProperty(exports2, "window", { enumerable: true, get: function() { + return window_1.window; + } }); + var windowCount_1 = require_windowCount(); + Object.defineProperty(exports2, "windowCount", { enumerable: true, get: function() { + return windowCount_1.windowCount; + } }); + var windowTime_1 = require_windowTime(); + Object.defineProperty(exports2, "windowTime", { enumerable: true, get: function() { + return windowTime_1.windowTime; + } }); + var windowToggle_1 = require_windowToggle(); + Object.defineProperty(exports2, "windowToggle", { enumerable: true, get: function() { + return windowToggle_1.windowToggle; + } }); + var windowWhen_1 = require_windowWhen(); + Object.defineProperty(exports2, "windowWhen", { enumerable: true, get: function() { + return windowWhen_1.windowWhen; + } }); + var withLatestFrom_1 = require_withLatestFrom(); + Object.defineProperty(exports2, "withLatestFrom", { enumerable: true, get: function() { + return withLatestFrom_1.withLatestFrom; + } }); + var zip_1 = require_zip3(); + Object.defineProperty(exports2, "zip", { enumerable: true, get: function() { + return zip_1.zip; + } }); + var zipAll_1 = require_zipAll(); + Object.defineProperty(exports2, "zipAll", { enumerable: true, get: function() { + return zipAll_1.zipAll; + } }); + var zipWith_1 = require_zipWith(); + Object.defineProperty(exports2, "zipWith", { enumerable: true, get: function() { + return zipWith_1.zipWith; + } }); + } + }); + + // ../../node_modules/@open-web3/scanner/GenericEvent.js + var require_GenericEvent = __commonJS({ + "../../node_modules/@open-web3/scanner/GenericEvent.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.default = void 0; + var _types = require_cjs10(); + var toHump = (name6) => { + return name6.replace(/_(\w)/g, (_, l15) => l15.toUpperCase()); + }; + var GenericEvent2 = class extends _types.GenericEvent { + get argsDef() { + try { + var _$exec; + const meta2 = this.meta.toJSON(); + const args = meta2 === null || meta2 === void 0 ? void 0 : meta2.args; + if (!args || !args.length) { + return {}; + } + const doc = meta2.documentation.join("\n").replace(/\\/g, ""); + const def = (_$exec = /\[([\w\s,]*)\]/.exec(doc)) === null || _$exec === void 0 ? void 0 : _$exec[1].split(",").map((s) => s.trim()); + const data = this.data.toJSON(); + if (!def || def.length !== args.length || def.length !== data.length) { + return null; + } + return data.reduce((result, curr, index) => { + const name6 = toHump(def[index]); + result[name6] = curr; + return result; + }, {}); + } catch { + return null; + } + } + }; + exports2.default = GenericEvent2; + } + }); + + // ../../node_modules/@open-web3/scanner/Scanner.js + var require_Scanner = __commonJS({ + "../../node_modules/@open-web3/scanner/Scanner.js"(exports2) { + "use strict"; + var _interopRequireDefault = require_interopRequireDefault(); + exports2.__esModule = true; + exports2.default = void 0; + var _defineProperty2 = _interopRequireDefault(require_defineProperty()); + var _apiDerive = require_cjs12(); + var _types = require_cjs10(); + var _typesKnown = require_cjs13(); + var _util = require_cjs3(); + var _rxjs = require_cjs7(); + var _operators = require_operators(); + var _GenericEvent = _interopRequireDefault(require_GenericEvent()); + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function(sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), true).forEach(function(key2) { + (0, _defineProperty2.default)(target, key2, source[key2]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) { + Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2)); + }); + } + return target; + } + var Scanner = class { + constructor(options) { + this.rpcProvider = void 0; + this.knownTypes = void 0; + this.metadataRequest = void 0; + this.wsProvider = void 0; + this.chainInfo = void 0; + this.wsProvider = options.wsProvider; + this.rpcProvider = options.rpcProvider || options.wsProvider; + this.knownTypes = { + types: options.types, + typesAlias: options.typesAlias, + typesBundle: options.typesBundle, + typesChain: options.typesChain, + typesSpec: options.typesSpec + }; + this.chainInfo = {}; + this.metadataRequest = {}; + } + createMethodSubscribe(methods) { + for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + params[_key - 1] = arguments[_key]; + } + const [updateType, subMethod, unsubMethod] = methods; + return new _rxjs.Observable((observer) => { + let subscriptionPromise = Promise.resolve(); + const errorHandler = (error) => { + observer.error(error); + }; + try { + const update3 = (error, result) => { + if (error) { + return; + } + observer.next(result); + }; + subscriptionPromise = this.wsProvider.subscribe(updateType, subMethod, params, update3).catch((error) => errorHandler(error)); + } catch (error) { + errorHandler(error); + } + return () => { + subscriptionPromise.then((subscriptionId) => (0, _util.isNumber)(subscriptionId) ? this.wsProvider.unsubscribe(updateType, unsubMethod, subscriptionId) : Promise.resolve(false)); + }; + }); + } + async getBlockDetail(_blockAt) { + var _extrinsics$, _extrinsics$$args; + const blockAt = await this.getBlockAt(_blockAt); + const chainInfo = await this.getChainInfo(blockAt); + const requestes = []; + requestes.push(this.getEvents(blockAt, chainInfo).then((eventRecords) => eventRecords.map((event, index) => this.getEventData(event, index)))); + const blockRaw = await this.rpcProvider.send("chain_getBlock", [blockAt.blockHash]); + requestes.push(this.getHeader(blockRaw.block.header, blockAt, chainInfo).then((header) => { + var _header$author; + return (_header$author = header.author) === null || _header$author === void 0 ? void 0 : _header$author.toString(); + })); + const [events, author] = await Promise.all(requestes); + const extrinsics = blockRaw.block.extrinsics.map((extrinsic, index) => { + const event = [...events].reverse().find((_ref) => { + let { + phaseIndex + } = _ref; + return phaseIndex === index; + }); + const result = event && (event.method === "ExtrinsicFailed" || event.method === "ExtrinsicSuccess") ? event.method : ""; + return _objectSpread({ + index, + result + }, this.decodeTx(extrinsic, blockAt, chainInfo)); + }); + const timestamp = extrinsics === null || extrinsics === void 0 ? void 0 : (_extrinsics$ = extrinsics[0]) === null || _extrinsics$ === void 0 ? void 0 : (_extrinsics$$args = _extrinsics$.args) === null || _extrinsics$$args === void 0 ? void 0 : _extrinsics$$args.now; + return { + raw: blockRaw, + number: Number(blockRaw.block.header.number), + hash: blockAt.blockHash, + timestamp, + author, + events, + extrinsics, + chainInfo + }; + } + async getHeader(header, _blockAt, meta2) { + const validators = await this.getSessionValidators(_blockAt); + return (0, _apiDerive.createHeaderExtended)(meta2.registry, meta2.registry.createType("Header", header), validators); + } + async getRuntimeVersion(blockHash) { + const [runtimeVesion, chainName] = await Promise.all([this.rpcProvider.send("state_getRuntimeVersion", [blockHash]), this.rpcProvider.send("system_chain", [])]); + return _objectSpread(_objectSpread({}, runtimeVesion), {}, { + chainName + }); + } + async getBlockHash(at) { + if (typeof at === "number" && !isNaN(at) && !(0, _util.isHex)(at)) { + const blockHash = this.rpcProvider.send("chain_getBlockHash", [at]); + return blockHash; + } else { + return at; + } + } + async getBlockAt(blockAt) { + if (blockAt !== null && blockAt !== void 0 && blockAt.blockHash && (blockAt === null || blockAt === void 0 ? void 0 : blockAt.blockNumber) !== void 0) { + return { + blockHash: blockAt.blockHash, + blockNumber: blockAt.blockNumber + }; + } + if (!blockAt) { + const header = await this.rpcProvider.send("chain_getHeader", []); + const blockNumber = Number(header.number); + const blockHash = await this.rpcProvider.send("chain_getBlockHash", []); + return { + blockNumber, + blockHash + }; + } else if (blockAt.blockNumber !== void 0) { + const blockHash = await this.rpcProvider.send("chain_getBlockHash", [blockAt.blockNumber]); + return { + blockNumber: blockAt.blockNumber, + blockHash + }; + } else if (blockAt.blockHash) { + const header = await this.rpcProvider.send("chain_getHeader", [blockAt.blockHash]); + return { + blockNumber: Number(header.number), + blockHash: blockAt.blockHash + }; + } else { + throw new Error("expect blockHash or blockNumber"); + } + } + async getParentHash(_blockHash) { + const header = await this.rpcProvider.send("chain_getHeader", _blockHash ? [_blockHash] : []); + return header.parentHash; + } + getSpecTypes(version23) { + const types2 = (0, _typesKnown.getSpecTypes)({ + knownTypes: this.knownTypes + }, version23.chainName, version23.specName, version23.specVersion); + return _objectSpread(_objectSpread({}, types2), {}, { + GenericEvent: _GenericEvent.default + }); + } + async getChainInfo(_blockAt) { + const { + blockHash, + blockNumber + } = await this.getBlockAt(_blockAt); + let hashForMetadata = await this.getParentHash(blockHash); + if (blockNumber === 0) { + hashForMetadata = blockHash; + } + const runtimeVersion = await this.getRuntimeVersion(hashForMetadata); + const cacheKey = `${runtimeVersion.specName}/${runtimeVersion.specVersion}`; + if (!this.chainInfo[cacheKey]) { + const registry = new _types.TypeRegistry(); + registry.register(this.getSpecTypes(runtimeVersion)); + const properties = await this.rpcProvider.send("system_properties", []); + registry.setChainProperties(registry.createType("ChainProperties", properties)); + registry.knownTypes.typesAlias = this.knownTypes.typesAlias; + if (!this.metadataRequest[cacheKey]) { + this.metadataRequest[cacheKey] = this.rpcProvider.send("state_getMetadata", [hashForMetadata]).then((rpcdata) => { + const metadata = new _types.Metadata(registry, rpcdata); + registry.setMetadata(metadata); + return { + id: cacheKey, + min: blockNumber, + max: blockNumber, + bytes: rpcdata, + metadata: (0, _types.expandMetadata)(registry, metadata), + registry, + runtimeVersion + }; + }); + } + this.chainInfo[cacheKey] = await this.metadataRequest[cacheKey]; + } else { + this.chainInfo[cacheKey].min = Math.min(this.chainInfo[cacheKey].min, blockNumber); + this.chainInfo[cacheKey].max = Math.max(this.chainInfo[cacheKey].max, blockNumber); + } + return this.chainInfo[cacheKey]; + } + async getSessionValidators(_blockAt) { + const { + metadata, + registry + } = await this.getChainInfo(_blockAt); + if (!metadata.query.session) + return []; + const storageKey = new _types.StorageKey(registry, metadata.query.session.validators); + return this.getStorageValue(storageKey, _blockAt); + } + async getEvents(_blockAt, meta2) { + const storageKey = new _types.StorageKey(meta2.registry, meta2.metadata.query.system.events); + return this.getStorageValue(storageKey, _blockAt); + } + getEventData(event, index) { + var _event$event$meta$toJ, _event$event$meta$toJ2; + const documentation = (_event$event$meta$toJ = event.event.meta.toJSON()) === null || _event$event$meta$toJ === void 0 ? void 0 : (_event$event$meta$toJ2 = _event$event$meta$toJ.documentation) === null || _event$event$meta$toJ2 === void 0 ? void 0 : _event$event$meta$toJ2.join("\n"); + return { + index, + doc: documentation, + bytes: event.toHex(), + section: event.event.section, + method: event.event.method, + phaseType: event.phase.type, + phaseIndex: event.phase.isNone ? null : event.phase.value.toNumber(), + args: event.event.data.toJSON(), + argsDef: event.event.argsDef + }; + } + async getStorageValue(storageKey, _blockAt) { + const blockAt = await this.getBlockAt(_blockAt); + const { + registry + } = await this.getChainInfo(_blockAt); + const raw = await this.rpcProvider.send("state_getStorage", [storageKey.toHex(), blockAt.blockHash]); + return registry.createType(storageKey.outputType, raw, true); + } + decodeTx(txData, _blockAt, meta2) { + const extrinsic = new _types.GenericExtrinsic(meta2.registry, txData); + const { + callIndex, + args + } = extrinsic.method.toJSON(); + return { + bytes: txData, + hash: (0, _util.u8aToHex)(extrinsic.hash), + tip: extrinsic.tip.toString(), + nonce: extrinsic.nonce.toNumber(), + method: extrinsic.method.method, + section: extrinsic.method.section, + signer: extrinsic.isSigned ? extrinsic.signer.toString() : null, + callIndex, + args + }; + } + subscribeNewBlockNumber(confirmation) { + let newBlockNumber$; + if (confirmation === "finalize") { + newBlockNumber$ = this.createMethodSubscribe(["chain_finalizedHead", "chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads"]).pipe((0, _operators.map)((header) => Number(header.number))); + } else if (typeof confirmation === "number") { + newBlockNumber$ = this.createMethodSubscribe(["chain_newHead", "chain_subscribeNewHead", "chain_unsubscribeNewHead"]).pipe((0, _operators.map)((header) => Number(header.number) - confirmation >= 0 ? Number(header.number) - confirmation : 0)); + } else { + newBlockNumber$ = this.createMethodSubscribe(["chain_newHead", "chain_subscribeNewHead", "chain_unsubscribeNewHead"]).pipe((0, _operators.map)((header) => Number(header.number))); + } + return newBlockNumber$.pipe((0, _operators.shareReplay)({ + bufferSize: 1, + refCount: true + }), (0, _operators.pairwise)(), (0, _operators.mergeMap)((_ref2) => { + let [pre2, current] = _ref2; + if (pre2 >= current) + return (0, _rxjs.of)(current); + return (0, _rxjs.of)(...[...Array(current - pre2).keys()].map((i) => i + 1 + pre2)); + })); + } + subscribe(options) { + if (options === void 0) { + options = {}; + } + const { + start, + end, + concurrent = 10, + confirmation + } = options; + let blockNumber$; + if (start !== void 0 && end !== void 0) { + blockNumber$ = (0, _rxjs.range)(start, end - start + 1); + } else if (start !== void 0 && end === void 0) { + const newBlockNumber$ = this.subscribeNewBlockNumber(confirmation); + blockNumber$ = (0, _rxjs.from)(newBlockNumber$).pipe((0, _operators.take)(1), (0, _operators.switchMap)((lastestNumber) => { + return (0, _rxjs.concat)((0, _rxjs.range)(start, lastestNumber - start + 1), newBlockNumber$); + })); + } else { + blockNumber$ = this.subscribeNewBlockNumber(confirmation); + } + const getBlockDetail = (blockNumber) => { + return new _rxjs.Observable((subscriber) => { + this.getBlockDetail({ + blockNumber + }).then((data) => { + subscriber.next({ + blockNumber, + result: data, + error: null + }); + subscriber.complete(); + }).catch((error) => { + subscriber.error(error); + }); + }).pipe((0, _operators.timeout)(options.timeout || 6e4), (0, _operators.retryWhen)((errors2) => errors2.pipe((0, _operators.mergeMap)((error) => { + if (error.name !== "TimeoutError") { + return (0, _rxjs.throwError)(error); + } + return (0, _rxjs.timer)(5e3); + }))), (0, _operators.catchError)((err) => { + return (0, _rxjs.of)({ + blockNumber, + error: err, + result: null + }); + })); + }; + return blockNumber$.pipe((0, _operators.mergeMap)((value) => getBlockDetail(value), concurrent)); + } + }; + var _default = Scanner; + exports2.default = _default; + } + }); + + // ../../node_modules/@open-web3/scanner/index.js + var require_scanner = __commonJS({ + "../../node_modules/@open-web3/scanner/index.js"(exports2) { + "use strict"; + var _interopRequireDefault = require_interopRequireDefault(); + exports2.__esModule = true; + exports2.default = void 0; + var _Scanner = _interopRequireDefault(require_Scanner()); + var _default = _Scanner.default; + exports2.default = _default; + } + }); + + // ../../node_modules/@polkadot/api/cjs/packageInfo.js + var require_packageInfo19 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api/cjs/packageDetect.js + var require_packageDetect7 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo12(); + var packageInfo_2 = require_packageInfo15(); + var packageInfo_3 = require_packageInfo13(); + var packageInfo_4 = require_packageInfo14(); + var packageInfo_5 = require_packageInfo18(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo19(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_2.packageInfo, packageInfo_1.packageInfo, packageInfo_5.packageInfo, packageInfo_3.packageInfo, packageInfo_4.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/packageInfo.js + var require_packageInfo20 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/packageDetect.js + var require_packageDetect8 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo15(); + var packageInfo_2 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo20(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/types/jsonrpc.js + var require_jsonrpc2 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/types/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/augment/jsonrpc.js + var require_jsonrpc3 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/augment/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_jsonrpc2(); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/augment/index.js + var require_augment = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/augment/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_jsonrpc3(); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/bundle.js + var require_bundle10 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_augment(); + var packageInfo_js_1 = require_packageInfo20(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/index.js + var require_cjs14 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect8(); + tslib_1.__exportStar(require_bundle10(), exports2); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/detectOther.js + var require_detectOther4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/detectOther.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo4(); + var packageInfo_2 = require_packageInfo8(); + exports2.default = [packageInfo_1.packageInfo, packageInfo_2.packageInfo]; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/packageInfo.js + var require_packageInfo21 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/keyring", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/detectPackage.js + var require_detectPackage4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/detectPackage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var detectOther_js_1 = tslib_1.__importDefault(require_detectOther4()); + var packageInfo_js_1 = require_packageInfo21(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/defaults.js + var require_defaults4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SEED_LENGTH = exports2.SEC_LENGTH = exports2.SALT_LENGTH = exports2.PUB_LENGTH = exports2.PKCS8_HEADER = exports2.PKCS8_DIVIDER = void 0; + exports2.PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]); + exports2.PKCS8_HEADER = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]); + exports2.PUB_LENGTH = 32; + exports2.SALT_LENGTH = 32; + exports2.SEC_LENGTH = 64; + exports2.SEED_LENGTH = 32; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/decode.js + var require_decode2 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/decode.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decodePair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var defaults_js_1 = require_defaults4(); + var SEED_OFFSET3 = defaults_js_1.PKCS8_HEADER.length; + function decodePair3(passphrase, encrypted, _encType) { + const encType = Array.isArray(_encType) || _encType === void 0 ? _encType : [_encType]; + const decrypted = (0, util_crypto_1.jsonDecryptData)(encrypted, passphrase, encType); + const header = decrypted.subarray(0, defaults_js_1.PKCS8_HEADER.length); + if (!(0, util_1.u8aEq)(header, defaults_js_1.PKCS8_HEADER)) { + throw new Error("Invalid Pkcs8 header found in body"); + } + let secretKey = decrypted.subarray(SEED_OFFSET3, SEED_OFFSET3 + defaults_js_1.SEC_LENGTH); + let divOffset = SEED_OFFSET3 + defaults_js_1.SEC_LENGTH; + let divider = decrypted.subarray(divOffset, divOffset + defaults_js_1.PKCS8_DIVIDER.length); + if (!(0, util_1.u8aEq)(divider, defaults_js_1.PKCS8_DIVIDER)) { + divOffset = SEED_OFFSET3 + defaults_js_1.SEED_LENGTH; + secretKey = decrypted.subarray(SEED_OFFSET3, divOffset); + divider = decrypted.subarray(divOffset, divOffset + defaults_js_1.PKCS8_DIVIDER.length); + if (!(0, util_1.u8aEq)(divider, defaults_js_1.PKCS8_DIVIDER)) { + throw new Error("Invalid Pkcs8 divider found in body"); + } + } + const pubOffset = divOffset + defaults_js_1.PKCS8_DIVIDER.length; + const publicKey = decrypted.subarray(pubOffset, pubOffset + defaults_js_1.PUB_LENGTH); + return { + publicKey, + secretKey + }; + } + exports2.decodePair = decodePair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/encode.js + var require_encode5 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/encode.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.encodePair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var defaults_js_1 = require_defaults4(); + function encodePair3({ publicKey, secretKey }, passphrase) { + if (!secretKey) { + throw new Error("Expected a valid secretKey to be passed to encode"); + } + const encoded = (0, util_1.u8aConcat)(defaults_js_1.PKCS8_HEADER, secretKey, defaults_js_1.PKCS8_DIVIDER, publicKey); + if (!passphrase) { + return encoded; + } + const { params, password, salt } = (0, util_crypto_1.scryptEncode)(passphrase); + const { encrypted, nonce } = (0, util_crypto_1.naclEncrypt)(encoded, password.subarray(0, 32)); + return (0, util_1.u8aConcat)((0, util_crypto_1.scryptToU8a)(salt, params), nonce, encrypted); + } + exports2.encodePair = encodePair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/toJson.js + var require_toJson = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/toJson.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairToJson = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function pairToJson3(type, { address, meta: meta2 }, encoded, isEncrypted) { + return (0, util_1.objectSpread)((0, util_crypto_1.jsonEncryptFormat)(encoded, ["pkcs8", type], isEncrypted), { + address, + meta: meta2 + }); + } + exports2.pairToJson = pairToJson3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/index.js + var require_pair = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createPair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var decode_js_1 = require_decode2(); + var encode_js_1 = require_encode5(); + var toJson_js_1 = require_toJson(); + var SIG_TYPE_NONE3 = new Uint8Array(); + var TYPE_FROM_SEED3 = { + ecdsa: util_crypto_1.secp256k1PairFromSeed, + ed25519: util_crypto_1.ed25519PairFromSeed, + ethereum: util_crypto_1.secp256k1PairFromSeed, + sr25519: util_crypto_1.sr25519PairFromSeed + }; + var TYPE_PREFIX3 = { + ecdsa: new Uint8Array([2]), + ed25519: new Uint8Array([0]), + ethereum: new Uint8Array([2]), + sr25519: new Uint8Array([1]) + }; + var TYPE_SIGNATURE3 = { + ecdsa: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, "blake2"), + ed25519: util_crypto_1.ed25519Sign, + ethereum: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, "keccak"), + sr25519: util_crypto_1.sr25519Sign + }; + var TYPE_ADDRESS3 = { + ecdsa: (p) => p.length > 32 ? (0, util_crypto_1.blake2AsU8a)(p) : p, + ed25519: (p) => p, + ethereum: (p) => p.length === 20 ? p : (0, util_crypto_1.keccakAsU8a)((0, util_crypto_1.secp256k1Expand)(p)), + sr25519: (p) => p + }; + function isLocked3(secretKey) { + return !secretKey || (0, util_1.u8aEmpty)(secretKey); + } + function vrfHash3(proof, context2, extra) { + return (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)(context2 || "", extra || "", proof)); + } + function createPair3({ toSS58, type }, { publicKey, secretKey }, meta2 = {}, encoded = null, encTypes) { + const decodePkcs8 = (passphrase, userEncoded) => { + const decoded = (0, decode_js_1.decodePair)(passphrase, userEncoded || encoded, encTypes); + if (decoded.secretKey.length === 64) { + publicKey = decoded.publicKey; + secretKey = decoded.secretKey; + } else { + const pair = TYPE_FROM_SEED3[type](decoded.secretKey); + publicKey = pair.publicKey; + secretKey = pair.secretKey; + } + }; + const recode = (passphrase) => { + isLocked3(secretKey) && encoded && decodePkcs8(passphrase, encoded); + encoded = (0, encode_js_1.encodePair)({ publicKey, secretKey }, passphrase); + encTypes = void 0; + return encoded; + }; + const encodeAddress4 = () => { + const raw = TYPE_ADDRESS3[type](publicKey); + return type === "ethereum" ? (0, util_crypto_1.ethereumEncode)(raw) : toSS58(raw); + }; + return { + get address() { + return encodeAddress4(); + }, + get addressRaw() { + const raw = TYPE_ADDRESS3[type](publicKey); + return type === "ethereum" ? raw.slice(-20) : raw; + }, + get isLocked() { + return isLocked3(secretKey); + }, + get meta() { + return meta2; + }, + get publicKey() { + return publicKey; + }, + get type() { + return type; + }, + decodePkcs8, + derive: (suri, meta3) => { + if (type === "ethereum") { + throw new Error("Unable to derive on this keypair"); + } else if (isLocked3(secretKey)) { + throw new Error("Cannot derive on a locked keypair"); + } + const { path } = (0, util_crypto_1.keyExtractPath)(suri); + const derived = (0, util_crypto_1.keyFromPath)({ publicKey, secretKey }, path, type); + return createPair3({ toSS58, type }, derived, meta3, null); + }, + encodePkcs8: (passphrase) => { + return recode(passphrase); + }, + lock: () => { + secretKey = new Uint8Array(); + }, + setMeta: (additional) => { + meta2 = (0, util_1.objectSpread)({}, meta2, additional); + }, + sign: (message, options = {}) => { + if (isLocked3(secretKey)) { + throw new Error("Cannot sign with a locked key pair"); + } + return (0, util_1.u8aConcat)(options.withType ? TYPE_PREFIX3[type] : SIG_TYPE_NONE3, TYPE_SIGNATURE3[type]((0, util_1.u8aToU8a)(message), { publicKey, secretKey })); + }, + toJson: (passphrase) => { + const address = ["ecdsa", "ethereum"].includes(type) ? publicKey.length === 20 ? (0, util_1.u8aToHex)(publicKey) : (0, util_1.u8aToHex)((0, util_crypto_1.secp256k1Compress)(publicKey)) : encodeAddress4(); + return (0, toJson_js_1.pairToJson)(type, { address, meta: meta2 }, recode(passphrase), !!passphrase); + }, + unlock: (passphrase) => { + return decodePkcs8(passphrase); + }, + verify: (message, signature2, signerPublic) => { + return (0, util_crypto_1.signatureVerify)(message, signature2, TYPE_ADDRESS3[type]((0, util_1.u8aToU8a)(signerPublic))).isValid; + }, + vrfSign: (message, context2, extra) => { + if (isLocked3(secretKey)) { + throw new Error("Cannot sign with a locked key pair"); + } + if (type === "sr25519") { + return (0, util_crypto_1.sr25519VrfSign)(message, { secretKey }, context2, extra); + } + const proof = TYPE_SIGNATURE3[type]((0, util_1.u8aToU8a)(message), { publicKey, secretKey }); + return (0, util_1.u8aConcat)(vrfHash3(proof, context2, extra), proof); + }, + vrfVerify: (message, vrfResult, signerPublic, context2, extra) => { + if (type === "sr25519") { + return (0, util_crypto_1.sr25519VrfVerify)(message, vrfResult, publicKey, context2, extra); + } + const result = (0, util_crypto_1.signatureVerify)(message, (0, util_1.u8aConcat)(TYPE_PREFIX3[type], vrfResult.subarray(32)), TYPE_ADDRESS3[type]((0, util_1.u8aToU8a)(signerPublic))); + return result.isValid && (0, util_1.u8aEq)(vrfResult.subarray(0, 32), vrfHash3(vrfResult.subarray(32), context2, extra)); + } + }; + } + exports2.createPair = createPair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/defaults.js + var require_defaults5 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DEV_SEED = exports2.DEV_PHRASE = void 0; + exports2.DEV_PHRASE = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"; + exports2.DEV_SEED = "0xfac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e"; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pairs.js + var require_pairs2 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Pairs = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var Pairs3 = class { + __internal__map = {}; + add(pair) { + this.__internal__map[(0, util_crypto_1.decodeAddress)(pair.address).toString()] = pair; + return pair; + } + all() { + return Object.values(this.__internal__map); + } + get(address) { + const pair = this.__internal__map[(0, util_crypto_1.decodeAddress)(address).toString()]; + if (!pair) { + throw new Error(`Unable to retrieve keypair '${(0, util_1.isU8a)(address) || (0, util_1.isHex)(address) ? (0, util_1.u8aToHex)((0, util_1.u8aToU8a)(address)) : address}'`); + } + return pair; + } + remove(address) { + delete this.__internal__map[(0, util_crypto_1.decodeAddress)(address).toString()]; + } + }; + exports2.Pairs = Pairs3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/keyring.js + var require_keyring = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/keyring.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Keyring = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_pair(); + var defaults_js_1 = require_defaults5(); + var pairs_js_1 = require_pairs2(); + var PairFromSeed2 = { + ecdsa: (seed) => (0, util_crypto_1.secp256k1PairFromSeed)(seed), + ed25519: (seed) => (0, util_crypto_1.ed25519PairFromSeed)(seed), + ethereum: (seed) => (0, util_crypto_1.secp256k1PairFromSeed)(seed), + sr25519: (seed) => (0, util_crypto_1.sr25519PairFromSeed)(seed) + }; + function pairToPublic3({ publicKey }) { + return publicKey; + } + var Keyring4 = class { + __internal__pairs; + __internal__type; + __internal__ss58; + decodeAddress = util_crypto_1.decodeAddress; + constructor(options = {}) { + options.type = options.type || "ed25519"; + if (!["ecdsa", "ethereum", "ed25519", "sr25519"].includes(options.type || "undefined")) { + throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${options.type || "unknown"}`); + } + this.__internal__pairs = new pairs_js_1.Pairs(); + this.__internal__ss58 = options.ss58Format; + this.__internal__type = options.type; + } + get pairs() { + return this.getPairs(); + } + get publicKeys() { + return this.getPublicKeys(); + } + get type() { + return this.__internal__type; + } + addPair(pair) { + return this.__internal__pairs.add(pair); + } + addFromAddress(address, meta2 = {}, encoded = null, type = this.type, ignoreChecksum, encType) { + const publicKey = this.decodeAddress(address, ignoreChecksum); + return this.addPair((0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, { publicKey, secretKey: new Uint8Array() }, meta2, encoded, encType)); + } + addFromJson(json, ignoreChecksum) { + return this.addPair(this.createFromJson(json, ignoreChecksum)); + } + addFromMnemonic(mnemonic, meta2 = {}, type = this.type) { + return this.addFromUri(mnemonic, meta2, type); + } + addFromPair(pair, meta2 = {}, type = this.type) { + return this.addPair(this.createFromPair(pair, meta2, type)); + } + addFromSeed(seed, meta2 = {}, type = this.type) { + return this.addPair((0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, PairFromSeed2[type](seed), meta2, null)); + } + addFromUri(suri, meta2 = {}, type = this.type) { + return this.addPair(this.createFromUri(suri, meta2, type)); + } + createFromJson({ address, encoded, encoding: { content, type, version: version23 }, meta: meta2 }, ignoreChecksum) { + if (version23 === "3" && content[0] !== "pkcs8") { + throw new Error(`Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); + } + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; + const encType = !Array.isArray(type) ? [type] : type; + if (!["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType)) { + throw new Error(`Unknown crypto type ${cryptoType}`); + } + const publicKey = (0, util_1.isHex)(address) ? (0, util_1.hexToU8a)(address) : this.decodeAddress(address, ignoreChecksum); + const decoded = (0, util_1.isHex)(encoded) ? (0, util_1.hexToU8a)(encoded) : (0, util_crypto_1.base64Decode)(encoded); + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type: cryptoType }, { publicKey, secretKey: new Uint8Array() }, meta2, decoded, encType); + } + createFromPair(pair, meta2 = {}, type = this.type) { + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, pair, meta2, null); + } + createFromUri(_suri, meta2 = {}, type = this.type) { + const suri = _suri.startsWith("//") ? `${defaults_js_1.DEV_PHRASE}${_suri}` : _suri; + const { derivePath, password, path, phrase } = (0, util_crypto_1.keyExtractSuri)(suri); + let seed; + const isPhraseHex = (0, util_1.isHex)(phrase, 256); + if (isPhraseHex) { + seed = (0, util_1.hexToU8a)(phrase); + } else { + const parts = phrase.split(" "); + if ([12, 15, 18, 21, 24].includes(parts.length)) { + seed = type === "ethereum" ? (0, util_crypto_1.mnemonicToLegacySeed)(phrase, "", false, 64) : (0, util_crypto_1.mnemonicToMiniSecret)(phrase, password); + } else { + if (phrase.length > 32) { + throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes"); + } + seed = (0, util_1.stringToU8a)(phrase.padEnd(32)); + } + } + const derived = type === "ethereum" ? isPhraseHex ? PairFromSeed2[type](seed) : (0, util_crypto_1.hdEthereum)(seed, derivePath.substring(1)) : (0, util_crypto_1.keyFromPath)(PairFromSeed2[type](seed), path, type); + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, derived, meta2, null); + } + encodeAddress = (address, ss58Format) => { + return this.type === "ethereum" ? (0, util_crypto_1.ethereumEncode)(address) : (0, util_crypto_1.encodeAddress)(address, ss58Format ?? this.__internal__ss58); + }; + getPair(address) { + return this.__internal__pairs.get(address); + } + getPairs() { + return this.__internal__pairs.all(); + } + getPublicKeys() { + return this.__internal__pairs.all().map(pairToPublic3); + } + removePair(address) { + this.__internal__pairs.remove(address); + } + setSS58Format(ss58) { + this.__internal__ss58 = ss58; + } + toJson(address, passphrase) { + return this.__internal__pairs.get(address).toJson(passphrase); + } + }; + exports2.Keyring = Keyring4; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/testing.js + var require_testing = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/testing.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestKeyring = exports2.PAIRSETHEREUM = exports2.PAIRSSR25519 = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_pair(); + var keyring_js_1 = require_keyring(); + exports2.PAIRSSR25519 = [ + { + p: "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", + s: "0x98319d4ff8a9508c4bb0cf0b5a78d760a0b2082c02775e6e82370816fedfff48925a225d97aa00682d6a59b95b18780c10d7032336e88f3442b42361f4a66011", + seed: "Alice", + type: "sr25519" + }, + { + p: "0xbe5ddb1579b72e84524fc29e78609e3caf42e85aa118ebfe0b0ad404b5bdd25f", + s: "0xe8da6c9d810e020f5e3c7f5af2dea314cbeaa0d72bc6421e92c0808a0c584a6046ab28e97c3ffc77fe12b5a4d37e8cd4afbfebbf2391ffc7cb07c0f38c023efd", + seed: "Alice//stash", + type: "sr25519" + }, + { + p: "0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48", + s: "0x081ff694633e255136bdb456c20a5fc8fed21f8b964c11bb17ff534ce80ebd5941ae88f85d0c1bfc37be41c904e1dfc01de8c8067b0d6d5df25dd1ac0894a325", + seed: "Bob", + type: "sr25519" + }, + { + p: "0xfe65717dad0447d715f660a0a58411de509b42e6efb8375f562f58a554d5860e", + s: "0xc006507cdfc267a21532394c49ca9b754ca71de21e15a1cdf807c7ceab6d0b6c3ed408d9d35311540dcd54931933e67cf1ea10d46f75408f82b789d9bd212fde", + seed: "Bob//stash", + type: "sr25519" + }, + { + p: "0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22", + s: "0xa8f2d83016052e5d6d77b2f6fd5d59418922a09024cda701b3c34369ec43a7668faf12ff39cd4e5d92bb773972f41a7a5279ebc2ed92264bed8f47d344f8f18c", + seed: "Charlie", + type: "sr25519" + }, + { + p: "0x306721211d5404bd9da88e0204360a1a9ab8b87c66c1bc2fcdd37f3c2222cc20", + s: "0x20e05482ca4677e0edbc58ae9a3a59f6ed3b1a9484ba17e64d6fe8688b2b7b5d108c4487b9323b98b11fe36cb301b084e920f7b7895536809a6d62a451b25568", + seed: "Dave", + type: "sr25519" + }, + { + p: "0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e", + s: "0x683576abfd5dc35273e4264c23095a1bf21c14517bece57c7f0cc5c0ed4ce06a3dbf386b7828f348abe15d76973a72009e6ef86a5c91db2990cb36bb657c6587", + seed: "Eve", + type: "sr25519" + }, + { + p: "0x1cbd2d43530a44705ad088af313e18f80b53ef16b36177cd4b77b846f2a5f07c", + s: "0xb835c20f450079cf4f513900ae9faf8df06ad86c681884122c752a4b2bf74d4303e4f21bc6cc62bb4eeed5a9cce642c25e2d2ac1464093b50f6196d78e3a7426", + seed: "Ferdie", + type: "sr25519" + } + ]; + exports2.PAIRSETHEREUM = [ + { + name: "Alith", + p: "0x02509540919faacf9ab52146c9aa40db68172d83777250b28e4679176e49ccdd9f", + s: "0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133", + type: "ethereum" + }, + { + name: "Baltathar", + p: "0x033bc19e36ff1673910575b6727a974a9abd80c9a875d41ab3e2648dbfb9e4b518", + s: "0x8075991ce870b93a8870eca0c0f91913d12f47948ca0fd25b49c6fa7cdbeee8b", + type: "ethereum" + }, + { + name: "Charleth", + p: "0x0234637bdc0e89b5d46543bcbf8edff329d2702bc995e27e9af4b1ba009a3c2a5e", + s: "0x0b6e18cafb6ed99687ec547bd28139cafdd2bffe70e6b688025de6b445aa5c5b", + type: "ethereum" + }, + { + name: "Dorothy", + p: "0x02a00d60b2b408c2a14c5d70cdd2c205db8985ef737a7e55ad20ea32cc9e7c417c", + s: "0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68", + type: "ethereum" + }, + { + name: "Ethan", + p: "0x025cdc005b752651cd3f728fb9192182acb3a9c89e19072cbd5b03f3ee1f1b3ffa", + s: "0x7dce9bc8babb68fec1409be38c8e1a52650206a7ed90ff956ae8a6d15eeaaef4", + type: "ethereum" + }, + { + name: "Faith", + p: "0x037964b6c9d546da4646ada28a99e34acaa1d14e7aba861a9055f9bd200c8abf74", + s: "0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df", + type: "ethereum" + } + ]; + function createMeta2(name6, seed) { + if (!name6 && !seed) { + throw new Error("Testing pair should have either a name or a seed"); + } + return { + isTesting: true, + name: name6 || seed?.replace("//", "_").toLowerCase() + }; + } + function createTestKeyring2(options = {}, isDerived = true) { + const keyring3 = new keyring_js_1.Keyring(options); + const pairs = options.type === "ethereum" ? exports2.PAIRSETHEREUM : exports2.PAIRSSR25519; + for (const { name: name6, p, s, seed, type } of pairs) { + const meta2 = createMeta2(name6, seed); + const pair = !isDerived && !name6 && seed ? keyring3.addFromUri(seed, meta2, options.type) : keyring3.addPair((0, index_js_1.createPair)({ toSS58: keyring3.encodeAddress, type }, { publicKey: (0, util_1.hexToU8a)(p), secretKey: (0, util_1.hexToU8a)(s) }, meta2)); + pair.lock = () => { + }; + } + return keyring3; + } + exports2.createTestKeyring = createTestKeyring2; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/nobody.js + var require_nobody = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/nobody.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.nobody = void 0; + var publicKey = new Uint8Array(32); + var address = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM"; + var meta2 = { + isTesting: true, + name: "nobody" + }; + var json = { + address, + encoded: "", + encoding: { + content: ["pkcs8", "ed25519"], + type: "none", + version: "0" + }, + meta: meta2 + }; + var pair = { + address, + addressRaw: publicKey, + decodePkcs8: (_passphrase, _encoded) => void 0, + derive: (_suri, _meta) => pair, + encodePkcs8: (_passphrase) => new Uint8Array(0), + isLocked: true, + lock: () => { + }, + meta: meta2, + publicKey, + setMeta: (_meta) => void 0, + sign: (_message) => new Uint8Array(64), + toJson: (_passphrase) => json, + type: "ed25519", + unlock: (_passphrase) => void 0, + verify: (_message, _signature) => false, + vrfSign: (_message, _context, _extra) => new Uint8Array(96), + vrfVerify: (_message, _vrfResult, _context, _extra) => false + }; + function nobody() { + return pair; + } + exports2.nobody = nobody; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/testingPairs.js + var require_testingPairs = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/testingPairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestPairs = void 0; + var nobody_js_1 = require_nobody(); + var testing_js_1 = require_testing(); + function createTestPairs(options, isDerived = true) { + const keyring3 = (0, testing_js_1.createTestKeyring)(options, isDerived); + const pairs = keyring3.getPairs(); + const map2 = { nobody: (0, nobody_js_1.nobody)() }; + for (const p of pairs) { + if (p.meta.name) { + map2[p.meta.name] = p; + } + } + return map2; + } + exports2.createTestPairs = createTestPairs; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/bundle.js + var require_bundle11 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestPairs = exports2.createTestKeyring = exports2.createPair = exports2.packageInfo = exports2.Keyring = exports2.setSS58Format = exports2.encodeAddress = exports2.decodeAddress = void 0; + var tslib_1 = require_tslib(); + var util_crypto_1 = require_cjs6(); + Object.defineProperty(exports2, "decodeAddress", { enumerable: true, get: function() { + return util_crypto_1.decodeAddress; + } }); + Object.defineProperty(exports2, "encodeAddress", { enumerable: true, get: function() { + return util_crypto_1.encodeAddress; + } }); + Object.defineProperty(exports2, "setSS58Format", { enumerable: true, get: function() { + return util_crypto_1.setSS58Format; + } }); + var keyring_js_1 = require_keyring(); + Object.defineProperty(exports2, "Keyring", { enumerable: true, get: function() { + return keyring_js_1.Keyring; + } }); + var packageInfo_js_1 = require_packageInfo21(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_pair(); + Object.defineProperty(exports2, "createPair", { enumerable: true, get: function() { + return index_js_1.createPair; + } }); + var testing_js_1 = require_testing(); + Object.defineProperty(exports2, "createTestKeyring", { enumerable: true, get: function() { + return testing_js_1.createTestKeyring; + } }); + var testingPairs_js_1 = require_testingPairs(); + Object.defineProperty(exports2, "createTestPairs", { enumerable: true, get: function() { + return testingPairs_js_1.createTestPairs; + } }); + tslib_1.__exportStar(require_defaults5(), exports2); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/index.js + var require_cjs15 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_detectPackage4(); + var bundle_js_1 = require_bundle11(); + tslib_1.__exportStar(require_bundle11(), exports2); + exports2.default = bundle_js_1.Keyring; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/packageDetect.js + var require_packageDetect9 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo13(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/x-fetch/cjs/packageInfo.js + var require_packageInfo22 = __commonJS({ + "../../node_modules/@polkadot/x-fetch/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/x-fetch", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/x-fetch/cjs/browser.js + var require_browser5 = __commonJS({ + "../../node_modules/@polkadot/x-fetch/cjs/browser.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fetch = exports2.packageInfo = void 0; + var x_global_1 = require_cjs(); + var packageInfo_js_1 = require_packageInfo22(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + exports2.fetch = x_global_1.xglobal.fetch; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/coder/error.js + var require_error2 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/coder/error.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var UNKNOWN = -99999; + function extend(that, name6, value) { + Object.defineProperty(that, name6, { + configurable: true, + enumerable: false, + value + }); + } + var RpcError = class extends Error { + code; + data; + message; + name; + stack; + constructor(message = "", code = UNKNOWN, data) { + super(); + extend(this, "message", String(message)); + extend(this, "name", this.constructor.name); + extend(this, "data", data); + extend(this, "code", code); + if ((0, util_1.isFunction)(Error.captureStackTrace)) { + Error.captureStackTrace(this, this.constructor); + } else { + const { stack } = new Error(message); + stack && extend(this, "stack", stack); + } + } + }; + __publicField(RpcError, "CODES", { + ASSERT: -90009, + INVALID_JSONRPC: -99998, + METHOD_NOT_FOUND: -32601, + UNKNOWN + }); + exports2.default = RpcError; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/coder/index.js + var require_coder = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/coder/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RpcCoder = void 0; + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var error_js_1 = tslib_1.__importDefault(require_error2()); + function formatErrorData(data) { + if ((0, util_1.isUndefined)(data)) { + return ""; + } + const formatted = `: ${(0, util_1.isString)(data) ? data.replace(/Error\("/g, "").replace(/\("/g, "(").replace(/"\)/g, ")").replace(/\(/g, ", ").replace(/\)/g, "") : (0, util_1.stringify)(data)}`; + return formatted.length <= 256 ? formatted : `${formatted.substring(0, 255)}\u2026`; + } + function checkError3(error) { + if (error) { + const { code, data, message } = error; + throw new error_js_1.default(`${code}: ${message}${formatErrorData(data)}`, code, data); + } + } + var RpcCoder = class { + __internal__id = 0; + decodeResponse(response) { + if (!response || response.jsonrpc !== "2.0") { + throw new Error("Invalid jsonrpc field in decoded object"); + } + const isSubscription2 = !(0, util_1.isUndefined)(response.params) && !(0, util_1.isUndefined)(response.method); + if (!(0, util_1.isNumber)(response.id) && (!isSubscription2 || !(0, util_1.isNumber)(response.params.subscription) && !(0, util_1.isString)(response.params.subscription))) { + throw new Error("Invalid id field in decoded object"); + } + checkError3(response.error); + if (response.result === void 0 && !isSubscription2) { + throw new Error("No result found in jsonrpc response"); + } + if (isSubscription2) { + checkError3(response.params.error); + return response.params.result; + } + return response.result; + } + encodeJson(method, params) { + const [id4, data] = this.encodeObject(method, params); + return [id4, (0, util_1.stringify)(data)]; + } + encodeObject(method, params) { + const id4 = ++this.__internal__id; + return [id4, { + id: id4, + jsonrpc: "2.0", + method, + params + }]; + } + }; + exports2.RpcCoder = RpcCoder; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/defaults.js + var require_defaults6 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var HTTP_URL = "http://127.0.0.1:9933"; + var WS_URL = "ws://127.0.0.1:9944"; + exports2.default = { + HTTP_URL, + WS_URL + }; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/lru.js + var require_lru = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/lru.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LRUCache = exports2.DEFAULT_CAPACITY = void 0; + exports2.DEFAULT_CAPACITY = 128; + var LRUNode = class { + key; + next; + prev; + constructor(key2) { + this.key = key2; + this.next = this.prev = this; + } + }; + var LRUCache = class { + capacity; + __internal__data = /* @__PURE__ */ new Map(); + __internal__refs = /* @__PURE__ */ new Map(); + __internal__length = 0; + __internal__head; + __internal__tail; + constructor(capacity = exports2.DEFAULT_CAPACITY) { + this.capacity = capacity; + this.__internal__head = this.__internal__tail = new LRUNode(""); + } + get length() { + return this.__internal__length; + } + get lengthData() { + return this.__internal__data.size; + } + get lengthRefs() { + return this.__internal__refs.size; + } + entries() { + const keys = this.keys(); + const count = keys.length; + const entries = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = keys[i]; + entries[i] = [key2, this.__internal__data.get(key2)]; + } + return entries; + } + keys() { + const keys = []; + if (this.__internal__length) { + let curr = this.__internal__head; + while (curr !== this.__internal__tail) { + keys.push(curr.key); + curr = curr.next; + } + keys.push(curr.key); + } + return keys; + } + get(key2) { + const data = this.__internal__data.get(key2); + if (data) { + this.__internal__toHead(key2); + return data; + } + return null; + } + set(key2, value) { + if (this.__internal__data.has(key2)) { + this.__internal__toHead(key2); + } else { + const node = new LRUNode(key2); + this.__internal__refs.set(node.key, node); + if (this.length === 0) { + this.__internal__head = this.__internal__tail = node; + } else { + this.__internal__head.prev = node; + node.next = this.__internal__head; + this.__internal__head = node; + } + if (this.__internal__length === this.capacity) { + this.__internal__data.delete(this.__internal__tail.key); + this.__internal__refs.delete(this.__internal__tail.key); + this.__internal__tail = this.__internal__tail.prev; + this.__internal__tail.next = this.__internal__head; + } else { + this.__internal__length += 1; + } + } + this.__internal__data.set(key2, value); + } + __internal__toHead(key2) { + const ref = this.__internal__refs.get(key2); + if (ref && ref !== this.__internal__head) { + ref.prev.next = ref.next; + ref.next.prev = ref.prev; + ref.next = this.__internal__head; + this.__internal__head.prev = ref; + this.__internal__head = ref; + } + } + }; + exports2.LRUCache = LRUCache; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/http/index.js + var require_http = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/http/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HttpProvider = void 0; + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var x_fetch_1 = require_browser5(); + var index_js_1 = require_coder(); + var defaults_js_1 = tslib_1.__importDefault(require_defaults6()); + var lru_js_1 = require_lru(); + var ERROR_SUBSCRIBE = "HTTP Provider does not have subscriptions, use WebSockets instead"; + var l15 = (0, util_1.logger)("api-http"); + var HttpProvider = class { + __internal__callCache = new lru_js_1.LRUCache(); + __internal__coder; + __internal__endpoint; + __internal__headers; + __internal__stats; + constructor(endpoint = defaults_js_1.default.HTTP_URL, headers = {}) { + if (!/^(https|http):\/\//.test(endpoint)) { + throw new Error(`Endpoint should start with 'http://' or 'https://', received '${endpoint}'`); + } + this.__internal__coder = new index_js_1.RpcCoder(); + this.__internal__endpoint = endpoint; + this.__internal__headers = headers; + this.__internal__stats = { + active: { requests: 0, subscriptions: 0 }, + total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 } + }; + } + get hasSubscriptions() { + return false; + } + clone() { + return new HttpProvider(this.__internal__endpoint, this.__internal__headers); + } + async connect() { + } + async disconnect() { + } + get stats() { + return this.__internal__stats; + } + get isClonable() { + return true; + } + get isConnected() { + return true; + } + on(_type, _sub) { + l15.error("HTTP Provider does not have 'on' emitters, use WebSockets instead"); + return util_1.noop; + } + async send(method, params, isCacheable) { + this.__internal__stats.total.requests++; + const [, body] = this.__internal__coder.encodeJson(method, params); + const cacheKey = isCacheable ? `${method}::${(0, util_1.stringify)(params)}` : ""; + let resultPromise = isCacheable ? this.__internal__callCache.get(cacheKey) : null; + if (!resultPromise) { + resultPromise = this.__internal__send(body); + if (isCacheable) { + this.__internal__callCache.set(cacheKey, resultPromise); + } + } else { + this.__internal__stats.total.cached++; + } + return resultPromise; + } + async __internal__send(body) { + this.__internal__stats.active.requests++; + this.__internal__stats.total.bytesSent += body.length; + try { + const response = await (0, x_fetch_1.fetch)(this.__internal__endpoint, { + body, + headers: { + Accept: "application/json", + "Content-Length": `${body.length}`, + "Content-Type": "application/json", + ...this.__internal__headers + }, + method: "POST" + }); + if (!response.ok) { + throw new Error(`[${response.status}]: ${response.statusText}`); + } + const result = await response.text(); + this.__internal__stats.total.bytesRecv += result.length; + const decoded = this.__internal__coder.decodeResponse(JSON.parse(result)); + this.__internal__stats.active.requests--; + return decoded; + } catch (e) { + this.__internal__stats.active.requests--; + this.__internal__stats.total.errors++; + throw e; + } + } + async subscribe(_types, _method, _params, _cb) { + l15.error(ERROR_SUBSCRIBE); + throw new Error(ERROR_SUBSCRIBE); + } + async unsubscribe(_type, _method, _id) { + l15.error(ERROR_SUBSCRIBE); + throw new Error(ERROR_SUBSCRIBE); + } + }; + exports2.HttpProvider = HttpProvider; + } + }); + + // ../../node_modules/eventemitter3/index.js + var require_eventemitter3 = __commonJS({ + "../../node_modules/eventemitter3/index.js"(exports2, module2) { + "use strict"; + var has = Object.prototype.hasOwnProperty; + var prefix = "~"; + function Events() { + } + if (Object.create) { + Events.prototype = /* @__PURE__ */ Object.create(null); + if (!new Events().__proto__) + prefix = false; + } + function EE2(fn2, context2, once) { + this.fn = fn2; + this.context = context2; + this.once = once || false; + } + function addListener(emitter, event, fn2, context2, once) { + if (typeof fn2 !== "function") { + throw new TypeError("The listener must be a function"); + } + var listener = new EE2(fn2, context2 || emitter, once), evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) + emitter._events[evt] = listener, emitter._eventsCount++; + else if (!emitter._events[evt].fn) + emitter._events[evt].push(listener); + else + emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) + emitter._events = new Events(); + else + delete emitter._events[evt]; + } + function EventEmitter() { + this._events = new Events(); + this._eventsCount = 0; + } + EventEmitter.prototype.eventNames = function eventNames() { + var names2 = [], events, name6; + if (this._eventsCount === 0) + return names2; + for (name6 in events = this._events) { + if (has.call(events, name6)) + names2.push(prefix ? name6.slice(1) : name6); + } + if (Object.getOwnPropertySymbols) { + return names2.concat(Object.getOwnPropertySymbols(events)); + } + return names2; + }; + EventEmitter.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, handlers = this._events[evt]; + if (!handlers) + return []; + if (handlers.fn) + return [handlers.fn]; + for (var i = 0, l15 = handlers.length, ee = new Array(l15); i < l15; i++) { + ee[i] = handlers[i].fn; + } + return ee; + }; + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, listeners = this._events[evt]; + if (!listeners) + return 0; + if (listeners.fn) + return 1; + return listeners.length; + }; + EventEmitter.prototype.emit = function emit(event, a12, a22, a32, a42, a52) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return false; + var listeners = this._events[evt], len = arguments.length, args, i; + if (listeners.fn) { + if (listeners.once) + this.removeListener(event, listeners.fn, void 0, true); + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + case 2: + return listeners.fn.call(listeners.context, a12), true; + case 3: + return listeners.fn.call(listeners.context, a12, a22), true; + case 4: + return listeners.fn.call(listeners.context, a12, a22, a32), true; + case 5: + return listeners.fn.call(listeners.context, a12, a22, a32, a42), true; + case 6: + return listeners.fn.call(listeners.context, a12, a22, a32, a42, a52), true; + } + for (i = 1, args = new Array(len - 1); i < len; i++) { + args[i - 1] = arguments[i]; + } + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, j10; + for (i = 0; i < length; i++) { + if (listeners[i].once) + this.removeListener(event, listeners[i].fn, void 0, true); + switch (len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + case 2: + listeners[i].fn.call(listeners[i].context, a12); + break; + case 3: + listeners[i].fn.call(listeners[i].context, a12, a22); + break; + case 4: + listeners[i].fn.call(listeners[i].context, a12, a22, a32); + break; + default: + if (!args) + for (j10 = 1, args = new Array(len - 1); j10 < len; j10++) { + args[j10 - 1] = arguments[j10]; + } + listeners[i].fn.apply(listeners[i].context, args); + } + } + } + return true; + }; + EventEmitter.prototype.on = function on2(event, fn2, context2) { + return addListener(this, event, fn2, context2, false); + }; + EventEmitter.prototype.once = function once(event, fn2, context2) { + return addListener(this, event, fn2, context2, true); + }; + EventEmitter.prototype.removeListener = function removeListener(event, fn2, context2, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return this; + if (!fn2) { + clearEvent(this, evt); + return this; + } + var listeners = this._events[evt]; + if (listeners.fn) { + if (listeners.fn === fn2 && (!once || listeners.once) && (!context2 || listeners.context === context2)) { + clearEvent(this, evt); + } + } else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) { + if (listeners[i].fn !== fn2 || once && !listeners[i].once || context2 && listeners[i].context !== context2) { + events.push(listeners[i]); + } + } + if (events.length) + this._events[evt] = events.length === 1 ? events[0] : events; + else + clearEvent(this, evt); + } + return this; + }; + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) + clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + return this; + }; + EventEmitter.prototype.off = EventEmitter.prototype.removeListener; + EventEmitter.prototype.addListener = EventEmitter.prototype.on; + EventEmitter.prefixed = prefix; + EventEmitter.EventEmitter = EventEmitter; + if ("undefined" !== typeof module2) { + module2.exports = EventEmitter; + } + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/Health.js + var require_Health = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/Health.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HealthCheckError = exports2.healthChecker = void 0; + var util_1 = require_cjs3(); + function healthChecker() { + let checker = null; + let sendJsonRpc = null; + return { + responsePassThrough: (jsonRpcResponse) => { + if (checker === null) { + return jsonRpcResponse; + } + return checker.responsePassThrough(jsonRpcResponse); + }, + sendJsonRpc: (request) => { + if (!sendJsonRpc) { + throw new Error("setSendJsonRpc must be called before sending requests"); + } + if (checker === null) { + sendJsonRpc(request); + } else { + checker.sendJsonRpc(request); + } + }, + setSendJsonRpc: (cb2) => { + sendJsonRpc = cb2; + }, + start: (healthCallback) => { + if (checker !== null) { + throw new Error("Can't start the health checker multiple times in parallel"); + } else if (!sendJsonRpc) { + throw new Error("setSendJsonRpc must be called before starting the health checks"); + } + checker = new InnerChecker(healthCallback, sendJsonRpc); + checker.update(true); + }, + stop: () => { + if (checker === null) { + return; + } + checker.destroy(); + checker = null; + } + }; + } + exports2.healthChecker = healthChecker; + var InnerChecker = class { + __internal__healthCallback; + __internal__currentHealthCheckId = null; + __internal__currentHealthTimeout = null; + __internal__currentSubunsubRequestId = null; + __internal__currentSubscriptionId = null; + __internal__requestToSmoldot; + __internal__isSyncing = false; + __internal__nextRequestId = 0; + constructor(healthCallback, requestToSmoldot) { + this.__internal__healthCallback = healthCallback; + this.__internal__requestToSmoldot = (request) => requestToSmoldot((0, util_1.stringify)(request)); + } + sendJsonRpc = (request) => { + let parsedRequest; + try { + parsedRequest = JSON.parse(request); + } catch { + return; + } + if (parsedRequest.id) { + const newId = "extern:" + (0, util_1.stringify)(parsedRequest.id); + parsedRequest.id = newId; + } + this.__internal__requestToSmoldot(parsedRequest); + }; + responsePassThrough = (jsonRpcResponse) => { + let parsedResponse; + try { + parsedResponse = JSON.parse(jsonRpcResponse); + } catch { + return jsonRpcResponse; + } + if (parsedResponse.id && this.__internal__currentHealthCheckId === parsedResponse.id) { + this.__internal__currentHealthCheckId = null; + if (!parsedResponse.result) { + this.update(false); + return null; + } + this.__internal__healthCallback(parsedResponse.result); + this.__internal__isSyncing = parsedResponse.result.isSyncing; + this.update(false); + return null; + } + if (parsedResponse.id && this.__internal__currentSubunsubRequestId === parsedResponse.id) { + this.__internal__currentSubunsubRequestId = null; + if (!parsedResponse.result) { + this.update(false); + return null; + } + if (this.__internal__currentSubscriptionId) { + this.__internal__currentSubscriptionId = null; + } else { + this.__internal__currentSubscriptionId = parsedResponse.result; + } + this.update(false); + return null; + } + if (parsedResponse.params && this.__internal__currentSubscriptionId && parsedResponse.params.subscription === this.__internal__currentSubscriptionId) { + this.update(true); + return null; + } + if (parsedResponse.id) { + const id4 = parsedResponse.id; + if (!id4.startsWith("extern:")) { + throw new Error("State inconsistency in health checker"); + } + const newId = JSON.parse(id4.slice("extern:".length)); + parsedResponse.id = newId; + } + return (0, util_1.stringify)(parsedResponse); + }; + update = (startNow) => { + if (startNow && this.__internal__currentHealthTimeout) { + clearTimeout(this.__internal__currentHealthTimeout); + this.__internal__currentHealthTimeout = null; + } + if (!this.__internal__currentHealthTimeout) { + const startHealthRequest = () => { + this.__internal__currentHealthTimeout = null; + if (this.__internal__currentHealthCheckId) { + return; + } + this.__internal__currentHealthCheckId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentHealthCheckId, + jsonrpc: "2.0", + method: "system_health", + params: [] + }); + }; + if (startNow) { + startHealthRequest(); + } else { + this.__internal__currentHealthTimeout = setTimeout(startHealthRequest, 1e3); + } + } + if (this.__internal__isSyncing && !this.__internal__currentSubscriptionId && !this.__internal__currentSubunsubRequestId) { + this.startSubscription(); + } + if (!this.__internal__isSyncing && this.__internal__currentSubscriptionId && !this.__internal__currentSubunsubRequestId) { + this.endSubscription(); + } + }; + startSubscription = () => { + if (this.__internal__currentSubunsubRequestId || this.__internal__currentSubscriptionId) { + throw new Error("Internal error in health checker"); + } + this.__internal__currentSubunsubRequestId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentSubunsubRequestId, + jsonrpc: "2.0", + method: "chain_subscribeNewHeads", + params: [] + }); + }; + endSubscription = () => { + if (this.__internal__currentSubunsubRequestId || !this.__internal__currentSubscriptionId) { + throw new Error("Internal error in health checker"); + } + this.__internal__currentSubunsubRequestId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentSubunsubRequestId, + jsonrpc: "2.0", + method: "chain_unsubscribeNewHeads", + params: [this.__internal__currentSubscriptionId] + }); + }; + destroy = () => { + if (this.__internal__currentHealthTimeout) { + clearTimeout(this.__internal__currentHealthTimeout); + this.__internal__currentHealthTimeout = null; + } + }; + }; + var HealthCheckError = class extends Error { + __internal__cause; + getCause() { + return this.__internal__cause; + } + constructor(response, message = "Got error response asking for system health") { + super(message); + this.__internal__cause = response; + } + }; + exports2.HealthCheckError = HealthCheckError; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/index.js + var require_substrate_connect = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ScProvider = void 0; + var eventemitter3_1 = require_eventemitter3(); + var util_1 = require_cjs3(); + var index_js_1 = require_coder(); + var Health_js_1 = require_Health(); + var l15 = (0, util_1.logger)("api-substrate-connect"); + var subscriptionUnsubscriptionMethods = /* @__PURE__ */ new Map([ + ["author_submitAndWatchExtrinsic", "author_unwatchExtrinsic"], + ["chain_subscribeAllHeads", "chain_unsubscribeAllHeads"], + ["chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads"], + ["chain_subscribeFinalisedHeads", "chain_subscribeFinalisedHeads"], + ["chain_subscribeNewHeads", "chain_unsubscribeNewHeads"], + ["chain_subscribeNewHead", "chain_unsubscribeNewHead"], + ["chain_subscribeRuntimeVersion", "chain_unsubscribeRuntimeVersion"], + ["subscribe_newHead", "unsubscribe_newHead"], + ["state_subscribeRuntimeVersion", "state_unsubscribeRuntimeVersion"], + ["state_subscribeStorage", "state_unsubscribeStorage"] + ]); + var scClients = /* @__PURE__ */ new WeakMap(); + var ScProvider = class { + __internal__Sc; + __internal__coder = new index_js_1.RpcCoder(); + __internal__spec; + __internal__sharedSandbox; + __internal__subscriptions = /* @__PURE__ */ new Map(); + __internal__resubscribeMethods = /* @__PURE__ */ new Map(); + __internal__requests = /* @__PURE__ */ new Map(); + __internal__wellKnownChains; + __internal__eventemitter = new eventemitter3_1.EventEmitter(); + __internal__chain = null; + __internal__isChainReady = false; + constructor(Sc2, spec2, sharedSandbox) { + if (!(0, util_1.isObject)(Sc2) || !(0, util_1.isObject)(Sc2.WellKnownChain) || !(0, util_1.isFunction)(Sc2.createScClient)) { + throw new Error("Expected an @substrate/connect interface as first parameter to ScProvider"); + } + this.__internal__Sc = Sc2; + this.__internal__spec = spec2; + this.__internal__sharedSandbox = sharedSandbox; + this.__internal__wellKnownChains = new Set(Object.values(Sc2.WellKnownChain)); + } + get hasSubscriptions() { + return true; + } + get isClonable() { + return false; + } + get isConnected() { + return !!this.__internal__chain && this.__internal__isChainReady; + } + clone() { + throw new Error("clone() is not supported."); + } + async connect(config7, checkerFactory = Health_js_1.healthChecker) { + if (this.isConnected) { + throw new Error("Already connected!"); + } + if (this.__internal__chain) { + await this.__internal__chain; + return; + } + if (this.__internal__sharedSandbox && !this.__internal__sharedSandbox.isConnected) { + await this.__internal__sharedSandbox.connect(); + } + const client = this.__internal__sharedSandbox ? scClients.get(this.__internal__sharedSandbox) : this.__internal__Sc.createScClient(config7); + if (!client) { + throw new Error("Unknown ScProvider!"); + } + scClients.set(this, client); + const hc2 = checkerFactory(); + const onResponse = (res) => { + const hcRes = hc2.responsePassThrough(res); + if (!hcRes) { + return; + } + const response = JSON.parse(hcRes); + let decodedResponse; + try { + decodedResponse = this.__internal__coder.decodeResponse(response); + } catch (e) { + decodedResponse = e; + } + if (response.params?.subscription === void 0 || !response.method) { + return this.__internal__requests.get(response.id)?.(decodedResponse); + } + const subscriptionId = `${response.method}::${response.params.subscription}`; + const callback = this.__internal__subscriptions.get(subscriptionId)?.[0]; + callback?.(decodedResponse); + }; + const addChain = this.__internal__sharedSandbox ? async (...args) => { + const source = this.__internal__sharedSandbox; + return (await source.__internal__chain).addChain(...args); + } : this.__internal__wellKnownChains.has(this.__internal__spec) ? client.addWellKnownChain : client.addChain; + this.__internal__chain = addChain(this.__internal__spec, onResponse).then((chain4) => { + hc2.setSendJsonRpc(chain4.sendJsonRpc); + this.__internal__isChainReady = false; + const cleanup = () => { + const disconnectionError = new Error("Disconnected"); + this.__internal__requests.forEach((cb2) => cb2(disconnectionError)); + this.__internal__subscriptions.forEach(([cb2]) => cb2(disconnectionError)); + this.__internal__subscriptions.clear(); + }; + const staleSubscriptions = []; + const killStaleSubscriptions = () => { + if (staleSubscriptions.length === 0) { + return; + } + const stale = staleSubscriptions.pop(); + if (!stale) { + throw new Error("Unable to get stale subscription"); + } + const { id: id4, unsubscribeMethod } = stale; + Promise.race([ + this.send(unsubscribeMethod, [id4]).catch(util_1.noop), + new Promise((resolve) => setTimeout(resolve, 500)) + ]).then(killStaleSubscriptions).catch(util_1.noop); + }; + hc2.start((health) => { + const isReady2 = !health.isSyncing && (health.peers > 0 || !health.shouldHavePeers); + if (this.__internal__isChainReady === isReady2) { + return; + } + this.__internal__isChainReady = isReady2; + if (!isReady2) { + [...this.__internal__subscriptions.values()].forEach((s) => { + staleSubscriptions.push(s[1]); + }); + cleanup(); + this.__internal__eventemitter.emit("disconnected"); + } else { + killStaleSubscriptions(); + this.__internal__eventemitter.emit("connected"); + if (this.__internal__resubscribeMethods.size) { + this.__internal__resubscribe(); + } + } + }); + return (0, util_1.objectSpread)({}, chain4, { + remove: () => { + hc2.stop(); + chain4.remove(); + cleanup(); + }, + sendJsonRpc: hc2.sendJsonRpc.bind(hc2) + }); + }); + try { + await this.__internal__chain; + } catch (e) { + this.__internal__chain = null; + this.__internal__eventemitter.emit("error", e); + throw e; + } + } + __internal__resubscribe = () => { + const promises = []; + this.__internal__resubscribeMethods.forEach((subDetails) => { + if (subDetails.type.startsWith("author_")) { + return; + } + try { + const promise = new Promise((resolve) => { + this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error)); + resolve(); + }); + promises.push(promise); + } catch (error) { + l15.error(error); + } + }); + Promise.all(promises).catch((err) => l15.log(err)); + }; + async disconnect() { + if (!this.__internal__chain) { + return; + } + const chain4 = await this.__internal__chain; + this.__internal__chain = null; + this.__internal__isChainReady = false; + try { + chain4.remove(); + } catch (_) { + } + this.__internal__eventemitter.emit("disconnected"); + } + on(type, sub) { + if (type === "connected" && this.isConnected) { + sub(); + } + this.__internal__eventemitter.on(type, sub); + return () => { + this.__internal__eventemitter.removeListener(type, sub); + }; + } + async send(method, params) { + if (!this.isConnected || !this.__internal__chain) { + throw new Error("Provider is not connected"); + } + const chain4 = await this.__internal__chain; + const [id4, json] = this.__internal__coder.encodeJson(method, params); + const result = new Promise((resolve, reject) => { + this.__internal__requests.set(id4, (response) => { + ((0, util_1.isError)(response) ? reject : resolve)(response); + }); + try { + chain4.sendJsonRpc(json); + } catch (e) { + this.__internal__chain = null; + try { + chain4.remove(); + } catch (_) { + } + this.__internal__eventemitter.emit("error", e); + } + }); + try { + return await result; + } finally { + this.__internal__requests.delete(id4); + } + } + async subscribe(type, method, params, callback) { + if (!subscriptionUnsubscriptionMethods.has(method)) { + throw new Error(`Unsupported subscribe method: ${method}`); + } + const id4 = await this.send(method, params); + const subscriptionId = `${type}::${id4}`; + const cb2 = (response) => { + if (response instanceof Error) { + callback(response, void 0); + } else { + callback(null, response); + } + }; + const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method); + if (!unsubscribeMethod) { + throw new Error("Invalid unsubscribe method found"); + } + this.__internal__resubscribeMethods.set(subscriptionId, { callback, method, params, type }); + this.__internal__subscriptions.set(subscriptionId, [cb2, { id: id4, unsubscribeMethod }]); + return id4; + } + unsubscribe(type, method, id4) { + if (!this.isConnected) { + throw new Error("Provider is not connected"); + } + const subscriptionId = `${type}::${id4}`; + if (!this.__internal__subscriptions.has(subscriptionId)) { + return Promise.reject(new Error(`Unable to find active subscription=${subscriptionId}`)); + } + this.__internal__resubscribeMethods.delete(subscriptionId); + this.__internal__subscriptions.delete(subscriptionId); + return this.send(method, [id4]); + } + }; + exports2.ScProvider = ScProvider; + } + }); + + // ../../node_modules/@polkadot/x-ws/cjs/packageInfo.js + var require_packageInfo23 = __commonJS({ + "../../node_modules/@polkadot/x-ws/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/x-ws", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/x-ws/cjs/browser.js + var require_browser6 = __commonJS({ + "../../node_modules/@polkadot/x-ws/cjs/browser.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WebSocket = exports2.packageInfo = void 0; + var x_global_1 = require_cjs(); + var packageInfo_js_1 = require_packageInfo23(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + exports2.WebSocket = x_global_1.xglobal.WebSocket; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/ws/errors.js + var require_errors2 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/ws/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getWSErrorString = void 0; + var known = { + 1e3: "Normal Closure", + 1001: "Going Away", + 1002: "Protocol Error", + 1003: "Unsupported Data", + 1004: "(For future)", + 1005: "No Status Received", + 1006: "Abnormal Closure", + 1007: "Invalid frame payload data", + 1008: "Policy Violation", + 1009: "Message too big", + 1010: "Missing Extension", + 1011: "Internal Error", + 1012: "Service Restart", + 1013: "Try Again Later", + 1014: "Bad Gateway", + 1015: "TLS Handshake" + }; + function getWSErrorString(code) { + if (code >= 0 && code <= 999) { + return "(Unused)"; + } else if (code >= 1016) { + if (code <= 1999) { + return "(For WebSocket standard)"; + } else if (code <= 2999) { + return "(For WebSocket extensions)"; + } else if (code <= 3999) { + return "(For libraries and frameworks)"; + } else if (code <= 4999) { + return "(For applications)"; + } + } + return known[code] || "(Unknown)"; + } + exports2.getWSErrorString = getWSErrorString; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/ws/index.js + var require_ws = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/ws/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WsProvider = void 0; + var tslib_1 = require_tslib(); + var eventemitter3_1 = require_eventemitter3(); + var util_1 = require_cjs3(); + var x_global_1 = require_cjs(); + var x_ws_1 = require_browser6(); + var index_js_1 = require_coder(); + var defaults_js_1 = tslib_1.__importDefault(require_defaults6()); + var lru_js_1 = require_lru(); + var errors_js_1 = require_errors2(); + var ALIASES = { + chain_finalisedHead: "chain_finalizedHead", + chain_subscribeFinalisedHeads: "chain_subscribeFinalizedHeads", + chain_unsubscribeFinalisedHeads: "chain_unsubscribeFinalizedHeads" + }; + var RETRY_DELAY = 2500; + var DEFAULT_TIMEOUT_MS = 60 * 1e3; + var TIMEOUT_INTERVAL = 5e3; + var l15 = (0, util_1.logger)("api-ws"); + function eraseRecord(record, cb2) { + Object.keys(record).forEach((key2) => { + if (cb2) { + cb2(record[key2]); + } + delete record[key2]; + }); + } + function defaultEndpointStats() { + return { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }; + } + var WsProvider = class { + __internal__callCache; + __internal__coder; + __internal__endpoints; + __internal__headers; + __internal__eventemitter; + __internal__handlers = {}; + __internal__isReadyPromise; + __internal__stats; + __internal__waitingForId = {}; + __internal__autoConnectMs; + __internal__endpointIndex; + __internal__endpointStats; + __internal__isConnected = false; + __internal__subscriptions = {}; + __internal__timeoutId = null; + __internal__websocket; + __internal__timeout; + constructor(endpoint = defaults_js_1.default.WS_URL, autoConnectMs = RETRY_DELAY, headers = {}, timeout, cacheCapacity) { + const endpoints = Array.isArray(endpoint) ? endpoint : [endpoint]; + if (endpoints.length === 0) { + throw new Error("WsProvider requires at least one Endpoint"); + } + endpoints.forEach((endpoint2) => { + if (!/^(wss|ws):\/\//.test(endpoint2)) { + throw new Error(`Endpoint should start with 'ws://', received '${endpoint2}'`); + } + }); + this.__internal__callCache = new lru_js_1.LRUCache(cacheCapacity || lru_js_1.DEFAULT_CAPACITY); + this.__internal__eventemitter = new eventemitter3_1.EventEmitter(); + this.__internal__autoConnectMs = autoConnectMs || 0; + this.__internal__coder = new index_js_1.RpcCoder(); + this.__internal__endpointIndex = -1; + this.__internal__endpoints = endpoints; + this.__internal__headers = headers; + this.__internal__websocket = null; + this.__internal__stats = { + active: { requests: 0, subscriptions: 0 }, + total: defaultEndpointStats() + }; + this.__internal__endpointStats = defaultEndpointStats(); + this.__internal__timeout = timeout || DEFAULT_TIMEOUT_MS; + if (autoConnectMs && autoConnectMs > 0) { + this.connectWithRetry().catch(util_1.noop); + } + this.__internal__isReadyPromise = new Promise((resolve) => { + this.__internal__eventemitter.once("connected", () => { + resolve(this); + }); + }); + } + get hasSubscriptions() { + return true; + } + get isClonable() { + return true; + } + get isConnected() { + return this.__internal__isConnected; + } + get isReady() { + return this.__internal__isReadyPromise; + } + get endpoint() { + return this.__internal__endpoints[this.__internal__endpointIndex]; + } + clone() { + return new WsProvider(this.__internal__endpoints); + } + selectEndpointIndex(endpoints) { + return (this.__internal__endpointIndex + 1) % endpoints.length; + } + async connect() { + if (this.__internal__websocket) { + throw new Error("WebSocket is already connected"); + } + try { + this.__internal__endpointIndex = this.selectEndpointIndex(this.__internal__endpoints); + this.__internal__websocket = typeof x_global_1.xglobal.WebSocket !== "undefined" && (0, util_1.isChildClass)(x_global_1.xglobal.WebSocket, x_ws_1.WebSocket) ? new x_ws_1.WebSocket(this.endpoint) : new x_ws_1.WebSocket(this.endpoint, void 0, { + headers: this.__internal__headers + }); + if (this.__internal__websocket) { + this.__internal__websocket.onclose = this.__internal__onSocketClose; + this.__internal__websocket.onerror = this.__internal__onSocketError; + this.__internal__websocket.onmessage = this.__internal__onSocketMessage; + this.__internal__websocket.onopen = this.__internal__onSocketOpen; + } + this.__internal__timeoutId = setInterval(() => this.__internal__timeoutHandlers(), TIMEOUT_INTERVAL); + } catch (error) { + l15.error(error); + this.__internal__emit("error", error); + throw error; + } + } + async connectWithRetry() { + if (this.__internal__autoConnectMs > 0) { + try { + await this.connect(); + } catch { + setTimeout(() => { + this.connectWithRetry().catch(util_1.noop); + }, this.__internal__autoConnectMs); + } + } + } + async disconnect() { + this.__internal__autoConnectMs = 0; + try { + if (this.__internal__websocket) { + this.__internal__websocket.close(1e3); + } + } catch (error) { + l15.error(error); + this.__internal__emit("error", error); + throw error; + } + } + get stats() { + return { + active: { + requests: Object.keys(this.__internal__handlers).length, + subscriptions: Object.keys(this.__internal__subscriptions).length + }, + total: this.__internal__stats.total + }; + } + get endpointStats() { + return this.__internal__endpointStats; + } + on(type, sub) { + this.__internal__eventemitter.on(type, sub); + return () => { + this.__internal__eventemitter.removeListener(type, sub); + }; + } + send(method, params, isCacheable, subscription) { + this.__internal__endpointStats.requests++; + this.__internal__stats.total.requests++; + const [id4, body] = this.__internal__coder.encodeJson(method, params); + const cacheKey = isCacheable ? `${method}::${(0, util_1.stringify)(params)}` : ""; + let resultPromise = isCacheable ? this.__internal__callCache.get(cacheKey) : null; + if (!resultPromise) { + resultPromise = this.__internal__send(id4, body, method, params, subscription); + if (isCacheable) { + this.__internal__callCache.set(cacheKey, resultPromise); + } + } else { + this.__internal__endpointStats.cached++; + this.__internal__stats.total.cached++; + } + return resultPromise; + } + async __internal__send(id4, body, method, params, subscription) { + return new Promise((resolve, reject) => { + try { + if (!this.isConnected || this.__internal__websocket === null) { + throw new Error("WebSocket is not connected"); + } + const callback = (error, result) => { + error ? reject(error) : resolve(result); + }; + l15.debug(() => ["calling", method, body]); + this.__internal__handlers[id4] = { + callback, + method, + params, + start: Date.now(), + subscription + }; + const bytesSent = body.length; + this.__internal__endpointStats.bytesSent += bytesSent; + this.__internal__stats.total.bytesSent += bytesSent; + this.__internal__websocket.send(body); + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + reject(error); + } + }); + } + subscribe(type, method, params, callback) { + this.__internal__endpointStats.subscriptions++; + this.__internal__stats.total.subscriptions++; + return this.send(method, params, false, { callback, type }); + } + async unsubscribe(type, method, id4) { + const subscription = `${type}::${id4}`; + if ((0, util_1.isUndefined)(this.__internal__subscriptions[subscription])) { + l15.debug(() => `Unable to find active subscription=${subscription}`); + return false; + } + delete this.__internal__subscriptions[subscription]; + try { + return this.isConnected && !(0, util_1.isNull)(this.__internal__websocket) ? this.send(method, [id4]) : true; + } catch { + return false; + } + } + __internal__emit = (type, ...args) => { + this.__internal__eventemitter.emit(type, ...args); + }; + __internal__onSocketClose = (event) => { + const error = new Error(`disconnected from ${this.endpoint}: ${event.code}:: ${event.reason || (0, errors_js_1.getWSErrorString)(event.code)}`); + if (this.__internal__autoConnectMs > 0) { + l15.error(error.message); + } + this.__internal__isConnected = false; + if (this.__internal__websocket) { + this.__internal__websocket.onclose = null; + this.__internal__websocket.onerror = null; + this.__internal__websocket.onmessage = null; + this.__internal__websocket.onopen = null; + this.__internal__websocket = null; + } + if (this.__internal__timeoutId) { + clearInterval(this.__internal__timeoutId); + this.__internal__timeoutId = null; + } + eraseRecord(this.__internal__handlers, (h) => { + try { + h.callback(error, void 0); + } catch (err) { + l15.error(err); + } + }); + eraseRecord(this.__internal__waitingForId); + this.__internal__endpointStats = defaultEndpointStats(); + this.__internal__emit("disconnected"); + if (this.__internal__autoConnectMs > 0) { + setTimeout(() => { + this.connectWithRetry().catch(util_1.noop); + }, this.__internal__autoConnectMs); + } + }; + __internal__onSocketError = (error) => { + l15.debug(() => ["socket error", error]); + this.__internal__emit("error", error); + }; + __internal__onSocketMessage = (message) => { + l15.debug(() => ["received", message.data]); + const bytesRecv = message.data.length; + this.__internal__endpointStats.bytesRecv += bytesRecv; + this.__internal__stats.total.bytesRecv += bytesRecv; + const response = JSON.parse(message.data); + return (0, util_1.isUndefined)(response.method) ? this.__internal__onSocketMessageResult(response) : this.__internal__onSocketMessageSubscribe(response); + }; + __internal__onSocketMessageResult = (response) => { + const handler = this.__internal__handlers[response.id]; + if (!handler) { + l15.debug(() => `Unable to find handler for id=${response.id}`); + return; + } + try { + const { method, params, subscription } = handler; + const result = this.__internal__coder.decodeResponse(response); + handler.callback(null, result); + if (subscription) { + const subId = `${subscription.type}::${result}`; + this.__internal__subscriptions[subId] = (0, util_1.objectSpread)({}, subscription, { + method, + params + }); + if (this.__internal__waitingForId[subId]) { + this.__internal__onSocketMessageSubscribe(this.__internal__waitingForId[subId]); + } + } + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + handler.callback(error, void 0); + } + delete this.__internal__handlers[response.id]; + }; + __internal__onSocketMessageSubscribe = (response) => { + if (!response.method) { + throw new Error("No method found in JSONRPC response"); + } + const method = ALIASES[response.method] || response.method; + const subId = `${method}::${response.params.subscription}`; + const handler = this.__internal__subscriptions[subId]; + if (!handler) { + this.__internal__waitingForId[subId] = response; + l15.debug(() => `Unable to find handler for subscription=${subId}`); + return; + } + delete this.__internal__waitingForId[subId]; + try { + const result = this.__internal__coder.decodeResponse(response); + handler.callback(null, result); + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + handler.callback(error, void 0); + } + }; + __internal__onSocketOpen = () => { + if (this.__internal__websocket === null) { + throw new Error("WebSocket cannot be null in onOpen"); + } + l15.debug(() => ["connected to", this.endpoint]); + this.__internal__isConnected = true; + this.__internal__resubscribe(); + this.__internal__emit("connected"); + return true; + }; + __internal__resubscribe = () => { + const subscriptions = this.__internal__subscriptions; + this.__internal__subscriptions = {}; + Promise.all(Object.keys(subscriptions).map(async (id4) => { + const { callback, method, params, type } = subscriptions[id4]; + if (type.startsWith("author_")) { + return; + } + try { + await this.subscribe(type, method, params, callback); + } catch (error) { + l15.error(error); + } + })).catch(l15.error); + }; + __internal__timeoutHandlers = () => { + const now2 = Date.now(); + const ids = Object.keys(this.__internal__handlers); + for (let i = 0, count = ids.length; i < count; i++) { + const handler = this.__internal__handlers[ids[i]]; + if (now2 - handler.start > this.__internal__timeout) { + try { + handler.callback(new Error(`No response received from RPC endpoint in ${this.__internal__timeout / 1e3}s`), void 0); + } catch { + } + this.__internal__endpointStats.timeout++; + this.__internal__stats.total.timeout++; + delete this.__internal__handlers[ids[i]]; + } + } + }; + }; + exports2.WsProvider = WsProvider; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/bundle.js + var require_bundle12 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WsProvider = exports2.ScProvider = exports2.packageInfo = exports2.HttpProvider = void 0; + var index_js_1 = require_http(); + Object.defineProperty(exports2, "HttpProvider", { enumerable: true, get: function() { + return index_js_1.HttpProvider; + } }); + var packageInfo_js_1 = require_packageInfo13(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_2 = require_substrate_connect(); + Object.defineProperty(exports2, "ScProvider", { enumerable: true, get: function() { + return index_js_2.ScProvider; + } }); + var index_js_3 = require_ws(); + Object.defineProperty(exports2, "WsProvider", { enumerable: true, get: function() { + return index_js_3.WsProvider; + } }); + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/index.js + var require_cjs16 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect9(); + tslib_1.__exportStar(require_bundle12(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/logging.js + var require_logging = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/logging.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.l = void 0; + var util_1 = require_cjs3(); + exports2.l = (0, util_1.logger)("api/util"); + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/filterEvents.js + var require_filterEvents = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/filterEvents.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterEvents = void 0; + var util_1 = require_cjs3(); + var logging_js_1 = require_logging(); + function filterEvents(txHash, { block: { extrinsics, header } }, allEvents, status) { + for (const [txIndex, x] of extrinsics.entries()) { + if (x.hash.eq(txHash)) { + return { + blockNumber: (0, util_1.isCompact)(header.number) ? header.number.unwrap() : header.number, + events: allEvents.filter(({ phase }) => phase.isApplyExtrinsic && phase.asApplyExtrinsic.eqn(txIndex)), + txIndex + }; + } + } + if (status.isInBlock) { + const allHashes = extrinsics.map((x) => x.hash.toHex()); + logging_js_1.l.warn(`block ${header.hash.toHex()}: Unable to find extrinsic ${txHash.toHex()} inside ${allHashes.join(", ")}`); + } + return {}; + } + exports2.filterEvents = filterEvents; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/isKeyringPair.js + var require_isKeyringPair = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/isKeyringPair.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isKeyringPair = void 0; + var util_1 = require_cjs3(); + function isKeyringPair(account) { + return (0, util_1.isFunction)(account.sign); + } + exports2.isKeyringPair = isKeyringPair; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/decorate.js + var require_decorate2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/decorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateDeriveSections = void 0; + var api_derive_1 = require_cjs12(); + function decorateDeriveSections(decorateMethod, derives) { + const getKeys2 = (s) => Object.keys(derives[s]); + const creator = (s, m) => decorateMethod(derives[s][m]); + const result = {}; + const names2 = Object.keys(derives); + for (let i = 0, count = names2.length; i < count; i++) { + (0, api_derive_1.lazyDeriveSection)(result, names2[i], getKeys2, creator); + } + return result; + } + exports2.decorateDeriveSections = decorateDeriveSections; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/index.js + var require_util19 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.l = exports2.isKeyringPair = exports2.filterEvents = void 0; + var tslib_1 = require_tslib(); + var filterEvents_js_1 = require_filterEvents(); + Object.defineProperty(exports2, "filterEvents", { enumerable: true, get: function() { + return filterEvents_js_1.filterEvents; + } }); + var isKeyringPair_js_1 = require_isKeyringPair(); + Object.defineProperty(exports2, "isKeyringPair", { enumerable: true, get: function() { + return isKeyringPair_js_1.isKeyringPair; + } }); + var logging_js_1 = require_logging(); + Object.defineProperty(exports2, "l", { enumerable: true, get: function() { + return logging_js_1.l; + } }); + tslib_1.__exportStar(require_decorate2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/Result.js + var require_Result2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/Result.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = void 0; + var recordIdentity = (record) => record; + function filterAndApply(events, section, methods, onFound) { + return events.filter(({ event }) => section === event.section && methods.includes(event.method)).map((record) => onFound(record)); + } + function getDispatchError({ event: { data: [dispatchError] } }) { + return dispatchError; + } + function getDispatchInfo({ event: { data, method } }) { + return method === "ExtrinsicSuccess" ? data[0] : data[1]; + } + function extractError(events = []) { + return filterAndApply(events, "system", ["ExtrinsicFailed"], getDispatchError)[0]; + } + function extractInfo(events = []) { + return filterAndApply(events, "system", ["ExtrinsicFailed", "ExtrinsicSuccess"], getDispatchInfo)[0]; + } + var SubmittableResult = class { + dispatchError; + dispatchInfo; + internalError; + events; + status; + txHash; + txIndex; + blockNumber; + constructor({ blockNumber, dispatchError, dispatchInfo, events, internalError, status, txHash, txIndex }) { + this.dispatchError = dispatchError || extractError(events); + this.dispatchInfo = dispatchInfo || extractInfo(events); + this.events = events || []; + this.internalError = internalError; + this.status = status; + this.txHash = txHash; + this.txIndex = txIndex; + this.blockNumber = blockNumber; + } + get isCompleted() { + return this.isError || this.status.isInBlock || this.status.isFinalized; + } + get isError() { + return this.status.isDropped || this.status.isFinalityTimeout || this.status.isInvalid || this.status.isUsurped; + } + get isFinalized() { + return this.status.isFinalized; + } + get isInBlock() { + return this.status.isInBlock; + } + get isWarning() { + return this.status.isRetracted; + } + filterRecords(section, method) { + return filterAndApply(this.events, section, Array.isArray(method) ? method : [method], recordIdentity); + } + findRecord(section, method) { + return this.filterRecords(section, method)[0]; + } + toHuman(isExtended) { + return { + dispatchError: this.dispatchError?.toHuman(), + dispatchInfo: this.dispatchInfo?.toHuman(), + events: this.events.map((e) => e.toHuman(isExtended)), + internalError: this.internalError?.message.toString(), + status: this.status.toHuman(isExtended) + }; + } + }; + exports2.SubmittableResult = SubmittableResult; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/createClass.js + var require_createClass2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/createClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClass = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util19(); + var Result_js_1 = require_Result2(); + function makeEraOptions(api, registry, partialOptions, { header, mortalLength, nonce }) { + if (!header) { + if (partialOptions.era && !partialOptions.blockHash) { + throw new Error("Expected blockHash to be passed alongside non-immortal era options"); + } + if ((0, util_1.isNumber)(partialOptions.era)) { + delete partialOptions.era; + delete partialOptions.blockHash; + } + return makeSignOptions(api, partialOptions, { nonce }); + } + return makeSignOptions(api, partialOptions, { + blockHash: header.hash, + era: registry.createTypeUnsafe("ExtrinsicEra", [{ + current: header.number, + period: partialOptions.era || mortalLength + }]), + nonce + }); + } + function makeSignAndSendOptions(partialOptions, statusCb) { + let options = {}; + if ((0, util_1.isFunction)(partialOptions)) { + statusCb = partialOptions; + } else { + options = (0, util_1.objectSpread)({}, partialOptions); + } + return [options, statusCb]; + } + function makeSignOptions(api, partialOptions, extras) { + return (0, util_1.objectSpread)({ blockHash: api.genesisHash, genesisHash: api.genesisHash }, partialOptions, extras, { runtimeVersion: api.runtimeVersion, signedExtensions: api.registry.signedExtensions, version: api.extrinsicType }); + } + function optionsOrNonce(partialOptions = {}) { + return (0, util_1.isBn)(partialOptions) || (0, util_1.isNumber)(partialOptions) ? { nonce: partialOptions } : partialOptions; + } + function createClass({ api, apiType, blockHash, decorateMethod }) { + const ExtrinsicBase2 = api.registry.createClass("Extrinsic"); + class Submittable extends ExtrinsicBase2 { + __internal__ignoreStatusCb; + __internal__transformResult = util_1.identity; + constructor(registry, extrinsic) { + super(registry, extrinsic, { version: api.extrinsicType }); + this.__internal__ignoreStatusCb = apiType === "rxjs"; + } + get hasDryRun() { + return (0, util_1.isFunction)(api.rpc.system?.dryRun); + } + get hasPaymentInfo() { + return (0, util_1.isFunction)(api.call.transactionPaymentApi?.queryInfo); + } + dryRun(account, optionsOrHash) { + if (!this.hasDryRun) { + throw new Error("The system.dryRun RPC call is not available in your environment"); + } + if (blockHash || (0, util_1.isString)(optionsOrHash) || (0, util_1.isU8a)(optionsOrHash)) { + return decorateMethod(() => api.rpc.system.dryRun(this.toHex(), blockHash || optionsOrHash)); + } + return decorateMethod(() => this.__internal__observeSign(account, optionsOrHash).pipe((0, rxjs_1.switchMap)(() => api.rpc.system.dryRun(this.toHex()))))(); + } + paymentInfo(account, optionsOrHash) { + if (!this.hasPaymentInfo) { + throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment"); + } + if (blockHash || (0, util_1.isString)(optionsOrHash) || (0, util_1.isU8a)(optionsOrHash)) { + return decorateMethod(() => api.callAt(blockHash || optionsOrHash).pipe((0, rxjs_1.switchMap)((callAt) => { + const u8a = this.toU8a(); + return callAt.transactionPaymentApi.queryInfo(u8a, u8a.length); + }))); + } + const [allOptions] = makeSignAndSendOptions(optionsOrHash); + const address = (0, index_js_1.isKeyringPair)(account) ? account.address : account.toString(); + return decorateMethod(() => api.derive.tx.signingInfo(address, allOptions.nonce, allOptions.era).pipe((0, rxjs_1.first)(), (0, rxjs_1.switchMap)((signingInfo) => { + const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo); + const signOptions = makeSignOptions(api, eraOptions, {}); + const u8a = api.tx(this.toU8a()).signFake(address, signOptions).toU8a(); + return api.call.transactionPaymentApi.queryInfo(u8a, u8a.length); + })))(); + } + send(statusCb) { + const isSubscription2 = api.hasSubscriptions && (this.__internal__ignoreStatusCb || !!statusCb); + return decorateMethod(isSubscription2 ? this.__internal__observeSubscribe : this.__internal__observeSend)(statusCb); + } + signAsync(account, partialOptions) { + return decorateMethod(() => this.__internal__observeSign(account, partialOptions).pipe((0, rxjs_1.map)(() => this)))(); + } + signAndSend(account, partialOptions, optionalStatusCb) { + const [options, statusCb] = makeSignAndSendOptions(partialOptions, optionalStatusCb); + const isSubscription2 = api.hasSubscriptions && (this.__internal__ignoreStatusCb || !!statusCb); + return decorateMethod( + () => this.__internal__observeSign(account, options).pipe((0, rxjs_1.switchMap)((info) => isSubscription2 ? this.__internal__observeSubscribe(info) : this.__internal__observeSend(info))) + )(statusCb); + } + withResultTransform(transform) { + this.__internal__transformResult = transform; + return this; + } + __internal__observeSign = (account, partialOptions) => { + const address = (0, index_js_1.isKeyringPair)(account) ? account.address : account.toString(); + const options = optionsOrNonce(partialOptions); + return api.derive.tx.signingInfo(address, options.nonce, options.era).pipe((0, rxjs_1.first)(), (0, rxjs_1.mergeMap)(async (signingInfo) => { + const eraOptions = makeEraOptions(api, this.registry, options, signingInfo); + let updateId = -1; + if ((0, index_js_1.isKeyringPair)(account)) { + this.sign(account, eraOptions); + } else { + updateId = await this.__internal__signViaSigner(address, eraOptions, signingInfo.header); + } + return { options: eraOptions, updateId }; + })); + }; + __internal__observeStatus = (txHash, status) => { + if (!status.isFinalized && !status.isInBlock) { + return (0, rxjs_1.of)(this.__internal__transformResult(new Result_js_1.SubmittableResult({ + status, + txHash + }))); + } + const blockHash2 = status.isInBlock ? status.asInBlock : status.asFinalized; + return api.derive.tx.events(blockHash2).pipe((0, rxjs_1.map)(({ block, events }) => this.__internal__transformResult(new Result_js_1.SubmittableResult({ + ...(0, index_js_1.filterEvents)(txHash, block, events, status), + status, + txHash + }))), (0, rxjs_1.catchError)((internalError) => (0, rxjs_1.of)(this.__internal__transformResult(new Result_js_1.SubmittableResult({ + internalError, + status, + txHash + }))))); + }; + __internal__observeSend = (info) => { + return api.rpc.author.submitExtrinsic(this).pipe((0, rxjs_1.tap)((hash8) => { + this.__internal__updateSigner(hash8, info); + })); + }; + __internal__observeSubscribe = (info) => { + const txHash = this.hash; + return api.rpc.author.submitAndWatchExtrinsic(this).pipe((0, rxjs_1.switchMap)((status) => this.__internal__observeStatus(txHash, status)), (0, rxjs_1.tap)((status) => { + this.__internal__updateSigner(status, info); + })); + }; + __internal__signViaSigner = async (address, options, header) => { + const signer = options.signer || api.signer; + if (!signer) { + throw new Error("No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing."); + } + const payload = this.registry.createTypeUnsafe("SignerPayload", [(0, util_1.objectSpread)({}, options, { + address, + blockNumber: header ? header.number : 0, + method: this.method + })]); + let result; + if ((0, util_1.isFunction)(signer.signPayload)) { + result = await signer.signPayload(payload.toPayload()); + } else if ((0, util_1.isFunction)(signer.signRaw)) { + result = await signer.signRaw(payload.toRaw()); + } else { + throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)"); + } + super.addSignature(address, result.signature, payload.toPayload()); + return result.id; + }; + __internal__updateSigner = (status, info) => { + if (info && info.updateId !== -1) { + const { options, updateId } = info; + const signer = options.signer || api.signer; + if (signer && (0, util_1.isFunction)(signer.update)) { + signer.update(updateId, status); + } + } + }; + } + return Submittable; + } + exports2.createClass = createClass; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/createSubmittable.js + var require_createSubmittable = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/createSubmittable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSubmittable = void 0; + var createClass_js_1 = require_createClass2(); + function createSubmittable(apiType, api, decorateMethod, registry, blockHash) { + const Submittable = (0, createClass_js_1.createClass)({ api, apiType, blockHash, decorateMethod }); + return (extrinsic) => new Submittable(registry || api.registry, extrinsic); + } + exports2.createSubmittable = createSubmittable; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/index.js + var require_submittable = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = exports2.createSubmittable = void 0; + var createSubmittable_js_1 = require_createSubmittable(); + Object.defineProperty(exports2, "createSubmittable", { enumerable: true, get: function() { + return createSubmittable_js_1.createSubmittable; + } }); + var Result_js_1 = require_Result2(); + Object.defineProperty(exports2, "SubmittableResult", { enumerable: true, get: function() { + return Result_js_1.SubmittableResult; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/find.js + var require_find2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/find.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.findError = exports2.findCall = void 0; + var util_1 = require_cjs3(); + function findCall(registry, callIndex) { + return registry.findMetaCall((0, util_1.u8aToU8a)(callIndex)); + } + exports2.findCall = findCall; + function findError(registry, errorIndex) { + return registry.findMetaError((0, util_1.u8aToU8a)(errorIndex)); + } + exports2.findError = findError; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/augmentObject.js + var require_augmentObject = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/augmentObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.augmentObject = void 0; + var util_1 = require_cjs3(); + var l15 = (0, util_1.logger)("api/augment"); + function logLength(type, values, and = []) { + return values.length ? ` ${values.length} ${type}${and.length ? " and" : ""}` : ""; + } + function logValues(type, values) { + return values.length ? ` + ${type.padStart(7)}: ${values.sort().join(", ")}` : ""; + } + function warn(prefix, type, [added, removed]) { + if (added.length || removed.length) { + l15.warn(`api.${prefix}: Found${logLength("added", added, removed)}${logLength("removed", removed)} ${type}:${logValues("added", added)}${logValues("removed", removed)}`); + } + } + function findSectionExcludes(a, b) { + return a.filter((s) => !b.includes(s)); + } + function findSectionIncludes(a, b) { + return a.filter((s) => b.includes(s)); + } + function extractSections(src, dst) { + const srcSections = Object.keys(src); + const dstSections = Object.keys(dst); + return [ + findSectionExcludes(srcSections, dstSections), + findSectionExcludes(dstSections, srcSections) + ]; + } + function findMethodExcludes(src, dst) { + const srcSections = Object.keys(src); + const dstSections = findSectionIncludes(Object.keys(dst), srcSections); + const excludes = []; + for (let s = 0, scount = dstSections.length; s < scount; s++) { + const section = dstSections[s]; + const srcMethods = Object.keys(src[section]); + const dstMethods = Object.keys(dst[section]); + for (let d = 0, mcount = dstMethods.length; d < mcount; d++) { + const method = dstMethods[d]; + if (!srcMethods.includes(method)) { + excludes.push(`${section}.${method}`); + } + } + } + return excludes; + } + function extractMethods(src, dst) { + return [ + findMethodExcludes(dst, src), + findMethodExcludes(src, dst) + ]; + } + function augmentObject(prefix, src, dst, fromEmpty = false) { + fromEmpty && (0, util_1.objectClear)(dst); + if (prefix && Object.keys(dst).length) { + warn(prefix, "modules", extractSections(src, dst)); + warn(prefix, "calls", extractMethods(src, dst)); + } + const sections = Object.keys(src); + for (let i = 0, count = sections.length; i < count; i++) { + const section = sections[i]; + const methods = src[section]; + if (!dst[section]) { + dst[section] = {}; + } + (0, util_1.lazyMethods)(dst[section], Object.keys(methods), (m) => methods[m]); + } + return dst; + } + exports2.augmentObject = augmentObject; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/validate.js + var require_validate3 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/validate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractStorageArgs = void 0; + var util_1 = require_cjs3(); + function sig({ lookup }, { method, section }, args) { + return `${section}.${method}(${args.map((a) => lookup.getTypeDef(a).type).join(", ")})`; + } + function extractStorageArgs(registry, creator, _args) { + const args = _args.filter((a) => !(0, util_1.isUndefined)(a)); + if (creator.meta.type.isPlain) { + if (args.length !== 0) { + throw new Error(`${sig(registry, creator, [])} does not take any arguments, ${args.length} found`); + } + } else { + const { hashers, key: key2 } = creator.meta.type.asMap; + const keys = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple.map((t) => t); + if (args.length !== keys.length) { + throw new Error(`${sig(registry, creator, keys)} is a map, requiring ${keys.length} arguments, ${args.length} found`); + } + } + return [creator, args]; + } + exports2.extractStorageArgs = extractStorageArgs; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Events.js + var require_Events = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Events = void 0; + var eventemitter3_1 = require_eventemitter3(); + var Events = class { + __internal__eventemitter = new eventemitter3_1.EventEmitter(); + emit(type, ...args) { + return this.__internal__eventemitter.emit(type, ...args); + } + on(type, handler) { + this.__internal__eventemitter.on(type, handler); + return this; + } + off(type, handler) { + this.__internal__eventemitter.removeListener(type, handler); + return this; + } + once(type, handler) { + this.__internal__eventemitter.once(type, handler); + return this; + } + }; + exports2.Events = Events; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Decorate.js + var require_Decorate = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Decorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Decorate = void 0; + var rxjs_1 = require_cjs7(); + var api_derive_1 = require_cjs12(); + var rpc_core_1 = require_cjs11(); + var rpc_provider_1 = require_cjs16(); + var types_1 = require_cjs10(); + var types_known_1 = require_cjs13(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_submittable(); + var augmentObject_js_1 = require_augmentObject(); + var decorate_js_1 = require_decorate2(); + var validate_js_1 = require_validate3(); + var Events_js_1 = require_Events(); + var find_js_1 = require_find2(); + var PAGE_SIZE_K = 1e3; + var PAGE_SIZE_V = 250; + var PAGE_SIZE_Q = 50; + var l15 = (0, util_1.logger)("api/init"); + var instanceCounter = 0; + function getAtQueryFn(api, { method, section }) { + return (0, util_1.assertReturn)(api.rx.query[section] && api.rx.query[section][method], () => `query.${section}.${method} is not available in this version of the metadata`); + } + var Decorate = class extends Events_js_1.Events { + __internal__instanceId; + __internal__runtimeLog = {}; + __internal__registry; + __internal__storageGetQ = []; + __internal__storageSubQ = []; + __phantom = new util_1.BN(0); + _type; + _call = {}; + _consts = {}; + _derive; + _errors = {}; + _events = {}; + _extrinsics; + _extrinsicType = types_1.GenericExtrinsic.LATEST_EXTRINSIC_VERSION; + _genesisHash; + _isConnected; + _isReady = false; + _query = {}; + _queryMulti; + _rpc; + _rpcCore; + _runtimeMap = {}; + _runtimeChain; + _runtimeMetadata; + _runtimeVersion; + _rx = { call: {}, consts: {}, query: {}, tx: {} }; + _options; + _decorateMethod; + constructor(options, type, decorateMethod) { + super(); + this.__internal__instanceId = `${++instanceCounter}`; + this.__internal__registry = options.source?.registry || options.registry || new types_1.TypeRegistry(); + this._rx.callAt = (blockHash, knownVersion) => (0, rxjs_1.from)(this.at(blockHash, knownVersion)).pipe((0, rxjs_1.map)((a) => a.rx.call)); + this._rx.queryAt = (blockHash, knownVersion) => (0, rxjs_1.from)(this.at(blockHash, knownVersion)).pipe((0, rxjs_1.map)((a) => a.rx.query)); + this._rx.registry = this.__internal__registry; + this._decorateMethod = decorateMethod; + this._options = options; + this._type = type; + const provider = options.source ? options.source._rpcCore.provider.isClonable ? options.source._rpcCore.provider.clone() : options.source._rpcCore.provider : options.provider || new rpc_provider_1.WsProvider(); + this._rpcCore = new rpc_core_1.RpcCore(this.__internal__instanceId, this.__internal__registry, { + isPedantic: this._options.isPedantic, + provider, + userRpc: this._options.rpc + }); + this._isConnected = new rxjs_1.BehaviorSubject(this._rpcCore.provider.isConnected); + this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions; + } + get registry() { + return this.__internal__registry; + } + createType(type, ...params) { + return this.__internal__registry.createType(type, ...params); + } + registerTypes(types2) { + types2 && this.__internal__registry.register(types2); + } + get hasSubscriptions() { + return this._rpcCore.provider.hasSubscriptions; + } + get supportMulti() { + return this._rpcCore.provider.hasSubscriptions || !!this._rpcCore.state.queryStorageAt; + } + _emptyDecorated(registry, blockHash) { + return { + call: {}, + consts: {}, + errors: {}, + events: {}, + query: {}, + registry, + rx: { + call: {}, + query: {} + }, + tx: (0, index_js_1.createSubmittable)(this._type, this._rx, this._decorateMethod, registry, blockHash) + }; + } + _createDecorated(registry, fromEmpty, decoratedApi, blockHash) { + if (!decoratedApi) { + decoratedApi = this._emptyDecorated(registry.registry, blockHash); + } + if (fromEmpty || !registry.decoratedMeta) { + registry.decoratedMeta = (0, types_1.expandMetadata)(registry.registry, registry.metadata); + } + const runtime34 = this._decorateCalls(registry, this._decorateMethod, blockHash); + const runtimeRx = this._decorateCalls(registry, this._rxDecorateMethod, blockHash); + const storage = this._decorateStorage(registry.decoratedMeta, this._decorateMethod, blockHash); + const storageRx = this._decorateStorage(registry.decoratedMeta, this._rxDecorateMethod, blockHash); + (0, augmentObject_js_1.augmentObject)("consts", registry.decoratedMeta.consts, decoratedApi.consts, fromEmpty); + (0, augmentObject_js_1.augmentObject)("errors", registry.decoratedMeta.errors, decoratedApi.errors, fromEmpty); + (0, augmentObject_js_1.augmentObject)("events", registry.decoratedMeta.events, decoratedApi.events, fromEmpty); + (0, augmentObject_js_1.augmentObject)("query", storage, decoratedApi.query, fromEmpty); + (0, augmentObject_js_1.augmentObject)("query", storageRx, decoratedApi.rx.query, fromEmpty); + (0, augmentObject_js_1.augmentObject)("call", runtime34, decoratedApi.call, fromEmpty); + (0, augmentObject_js_1.augmentObject)("call", runtimeRx, decoratedApi.rx.call, fromEmpty); + decoratedApi.findCall = (callIndex) => (0, find_js_1.findCall)(registry.registry, callIndex); + decoratedApi.findError = (errorIndex) => (0, find_js_1.findError)(registry.registry, errorIndex); + decoratedApi.queryMulti = blockHash ? this._decorateMultiAt(decoratedApi, this._decorateMethod, blockHash) : this._decorateMulti(this._decorateMethod); + decoratedApi.runtimeVersion = registry.runtimeVersion; + return { + createdAt: blockHash, + decoratedApi, + decoratedMeta: registry.decoratedMeta + }; + } + _injectMetadata(registry, fromEmpty = false) { + if (fromEmpty || !registry.decoratedApi) { + registry.decoratedApi = this._emptyDecorated(registry.registry); + } + const { decoratedApi, decoratedMeta } = this._createDecorated(registry, fromEmpty, registry.decoratedApi); + this._call = decoratedApi.call; + this._consts = decoratedApi.consts; + this._errors = decoratedApi.errors; + this._events = decoratedApi.events; + this._query = decoratedApi.query; + this._rx.call = decoratedApi.rx.call; + this._rx.query = decoratedApi.rx.query; + const tx2 = this._decorateExtrinsics(decoratedMeta, this._decorateMethod); + const rxtx = this._decorateExtrinsics(decoratedMeta, this._rxDecorateMethod); + if (fromEmpty || !this._extrinsics) { + this._extrinsics = tx2; + this._rx.tx = rxtx; + } else { + (0, augmentObject_js_1.augmentObject)("tx", tx2, this._extrinsics, false); + (0, augmentObject_js_1.augmentObject)(null, rxtx, this._rx.tx, false); + } + (0, augmentObject_js_1.augmentObject)(null, decoratedMeta.consts, this._rx.consts, fromEmpty); + this.emit("decorated"); + } + injectMetadata(metadata, fromEmpty, registry) { + this._injectMetadata({ counter: 0, metadata, registry: registry || this.__internal__registry, runtimeVersion: this.__internal__registry.createType("RuntimeVersionPartial") }, fromEmpty); + } + _decorateFunctionMeta(input, output4) { + output4.meta = input.meta; + output4.method = input.method; + output4.section = input.section; + output4.toJSON = input.toJSON; + if (input.callIndex) { + output4.callIndex = input.callIndex; + } + return output4; + } + _filterRpc(methods, additional) { + if (Object.keys(additional).length !== 0) { + this._rpcCore.addUserInterfaces(additional); + this._decorateRpc(this._rpcCore, this._decorateMethod, this._rpc); + this._decorateRpc(this._rpcCore, this._rxDecorateMethod, this._rx.rpc); + } + const sectionMap = {}; + for (let i = 0, count = methods.length; i < count; i++) { + const [section] = methods[i].split("_"); + sectionMap[section] = true; + } + const sections = Object.keys(sectionMap); + for (let i = 0, count = sections.length; i < count; i++) { + const nameA = (0, util_1.stringUpperFirst)(sections[i]); + const nameB = `${nameA}Api`; + this._runtimeMap[(0, util_crypto_1.blake2AsHex)(nameA, 64)] = nameA; + this._runtimeMap[(0, util_crypto_1.blake2AsHex)(nameB, 64)] = nameB; + } + this._filterRpcMethods(methods); + } + _filterRpcMethods(exposed) { + const hasResults = exposed.length !== 0; + const allKnown = [...this._rpcCore.mapping.entries()]; + const allKeys = []; + const count = allKnown.length; + for (let i = 0; i < count; i++) { + const [, { alias: alias2, endpoint, method, pubsub, section }] = allKnown[i]; + allKeys.push(`${section}_${method}`); + if (pubsub) { + allKeys.push(`${section}_${pubsub[1]}`); + allKeys.push(`${section}_${pubsub[2]}`); + } + if (alias2) { + allKeys.push(...alias2); + } + if (endpoint) { + allKeys.push(endpoint); + } + } + const unknown = exposed.filter((k) => !allKeys.includes(k) && !k.includes("_unstable_")); + if (unknown.length && !this._options.noInitWarn) { + l15.warn(`RPC methods not decorated: ${unknown.join(", ")}`); + } + for (let i = 0; i < count; i++) { + const [k, { method, section }] = allKnown[i]; + if (hasResults && !exposed.includes(k) && k !== "rpc_methods") { + if (this._rpc[section]) { + delete this._rpc[section][method]; + delete this._rx.rpc[section][method]; + } + } + } + } + _rpcSubmitter(decorateMethod) { + const method = (method2, ...params) => { + return (0, rxjs_1.from)(this._rpcCore.provider.send(method2, params)); + }; + return decorateMethod(method); + } + _decorateRpc(rpc18, decorateMethod, input = this._rpcSubmitter(decorateMethod)) { + const out = input; + const decorateFn = (section, method) => { + const source = rpc18[section][method]; + const fn2 = decorateMethod(source, { methodName: method }); + fn2.meta = source.meta; + fn2.raw = decorateMethod(source.raw, { methodName: method }); + return fn2; + }; + for (let s = 0, scount = rpc18.sections.length; s < scount; s++) { + const section = rpc18.sections[s]; + if (!Object.prototype.hasOwnProperty.call(out, section)) { + const methods = Object.keys(rpc18[section]); + const decorateInternal = (method) => decorateFn(section, method); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const method = methods[m]; + if (this.hasSubscriptions || !(method.startsWith("subscribe") || method.startsWith("unsubscribe"))) { + if (!Object.prototype.hasOwnProperty.call(out, section)) { + out[section] = {}; + } + (0, util_1.lazyMethod)(out[section], method, decorateInternal); + } + } + } + } + return out; + } + _addRuntimeDef(result, additional) { + if (!additional) { + return; + } + const entries = Object.entries(additional); + for (let j10 = 0, ecount = entries.length; j10 < ecount; j10++) { + const [key2, defs] = entries[j10]; + if (result[key2]) { + for (let k = 0, dcount = defs.length; k < dcount; k++) { + const def = defs[k]; + const prev = result[key2].find(({ version: version23 }) => def.version === version23); + if (prev) { + (0, util_1.objectSpread)(prev.methods, def.methods); + } else { + result[key2].push(def); + } + } + } else { + result[key2] = defs; + } + } + } + _getRuntimeDefs(registry, specName, chain4 = "") { + const result = {}; + const defValues = Object.values(types_1.typeDefinitions); + for (let i = 0, count = defValues.length; i < count; i++) { + this._addRuntimeDef(result, defValues[i].runtime); + } + this._addRuntimeDef(result, (0, types_known_1.getSpecRuntime)(registry, chain4, specName)); + this._addRuntimeDef(result, this._options.runtime); + return Object.entries(result); + } + _decorateCalls({ registry, runtimeVersion: { apis, specName, specVersion } }, decorateMethod, blockHash) { + const result = {}; + const named = {}; + const hashes = {}; + const sections = this._getRuntimeDefs(registry, specName, this._runtimeChain); + const older = []; + const implName = `${specName.toString()}/${specVersion.toString()}`; + const hasLogged = this.__internal__runtimeLog[implName] || false; + this.__internal__runtimeLog[implName] = true; + for (let i = 0, scount = sections.length; i < scount; i++) { + const [_section, secs] = sections[i]; + const sectionHash = (0, util_crypto_1.blake2AsHex)(_section, 64); + const rtApi = apis.find(([a]) => a.eq(sectionHash)); + hashes[sectionHash] = true; + if (rtApi) { + const all = secs.map(({ version: version23 }) => version23).sort(); + const sec = secs.find(({ version: version23 }) => rtApi[1].eq(version23)); + if (sec) { + const section = (0, util_1.stringCamelCase)(_section); + const methods = Object.entries(sec.methods); + if (methods.length) { + if (!named[section]) { + named[section] = {}; + } + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const [_method, def] = methods[m]; + const method = (0, util_1.stringCamelCase)(_method); + named[section][method] = (0, util_1.objectSpread)({ method, name: `${_section}_${_method}`, section, sectionHash }, def); + } + } + } else { + older.push(`${_section}/${rtApi[1].toString()} (${all.join("/")} known)`); + } + } + } + const notFound = apis.map(([a, v]) => [a.toHex(), v.toString()]).filter(([a]) => !hashes[a]).map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`); + if (!this._options.noInitWarn && !hasLogged) { + if (older.length) { + l15.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(", ")}`); + } + if (notFound.length) { + l15.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(", ")}`); + } + } + const stateCall = blockHash ? (name6, bytes5) => this._rpcCore.state.call(name6, bytes5, blockHash) : (name6, bytes5) => this._rpcCore.state.call(name6, bytes5); + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(named[section]), (method) => this._decorateCall(registry, named[section][method], stateCall, decorateMethod)); + const modules = Object.keys(named); + for (let i = 0, count = modules.length; i < count; i++) { + (0, util_1.lazyMethod)(result, modules[i], lazySection); + } + return result; + } + _decorateCall(registry, def, stateCall, decorateMethod) { + const decorated = decorateMethod((...args) => { + if (args.length !== def.params.length) { + throw new Error(`${def.name}:: Expected ${def.params.length} arguments, found ${args.length}`); + } + const bytes5 = registry.createType("Raw", (0, util_1.u8aConcatStrict)(args.map((a, i) => registry.createTypeUnsafe(def.params[i].type, [a]).toU8a()))); + return stateCall(def.name, bytes5).pipe((0, rxjs_1.map)((r10) => registry.createTypeUnsafe(def.type, [r10]))); + }); + decorated.meta = def; + return decorated; + } + _decorateMulti(decorateMethod) { + return decorateMethod((keys) => keys.length ? (this.hasSubscriptions ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt)(keys.map((args) => Array.isArray(args) ? args[0].creator.meta.type.isPlain ? [args[0].creator] : args[0].creator.meta.type.asMap.hashers.length === 1 ? [args[0].creator, args.slice(1)] : [args[0].creator, ...args.slice(1)] : [args.creator])) : (0, rxjs_1.of)([])); + } + _decorateMultiAt(atApi, decorateMethod, blockHash) { + return decorateMethod((calls) => calls.length ? this._rpcCore.state.queryStorageAt(calls.map((args) => { + if (Array.isArray(args)) { + const { creator } = getAtQueryFn(atApi, args[0].creator); + return creator.meta.type.isPlain ? [creator] : creator.meta.type.asMap.hashers.length === 1 ? [creator, args.slice(1)] : [creator, ...args.slice(1)]; + } + return [getAtQueryFn(atApi, args.creator).creator]; + }), blockHash) : (0, rxjs_1.of)([])); + } + _decorateExtrinsics({ tx: tx2 }, decorateMethod) { + const result = (0, index_js_1.createSubmittable)(this._type, this._rx, decorateMethod); + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(tx2[section]), (method) => method.startsWith("$") ? tx2[section][method] : this._decorateExtrinsicEntry(tx2[section][method], result)); + const sections = Object.keys(tx2); + for (let i = 0, count = sections.length; i < count; i++) { + (0, util_1.lazyMethod)(result, sections[i], lazySection); + } + return result; + } + _decorateExtrinsicEntry(method, creator) { + const decorated = (...params) => creator(method(...params)); + decorated.is = (other) => method.is(other); + return this._decorateFunctionMeta(method, decorated); + } + _decorateStorage({ query, registry }, decorateMethod, blockHash) { + const result = {}; + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(query[section]), (method) => blockHash ? this._decorateStorageEntryAt(registry, query[section][method], decorateMethod, blockHash) : this._decorateStorageEntry(query[section][method], decorateMethod)); + const sections = Object.keys(query); + for (let i = 0, count = sections.length; i < count; i++) { + (0, util_1.lazyMethod)(result, sections[i], lazySection); + } + return result; + } + _decorateStorageEntry(creator, decorateMethod) { + const getArgs = (args, registry) => (0, validate_js_1.extractStorageArgs)(registry || this.__internal__registry, creator, args); + const getQueryAt = (blockHash) => (0, rxjs_1.from)(this.at(blockHash)).pipe((0, rxjs_1.map)((api) => getAtQueryFn(api, creator))); + const decorated = this._decorateStorageCall(creator, decorateMethod); + decorated.creator = creator; + decorated.at = decorateMethod((blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => q(...args)))); + decorated.hash = decorateMethod((...args) => this._rpcCore.state.getStorageHash(getArgs(args))); + decorated.is = (key2) => key2.section === creator.section && key2.method === creator.method; + decorated.key = (...args) => (0, util_1.u8aToHex)((0, util_1.compactStripLength)(creator(...args))[1]); + decorated.keyPrefix = (...args) => (0, util_1.u8aToHex)(creator.keyPrefix(...args)); + decorated.size = decorateMethod((...args) => this._rpcCore.state.getStorageSize(getArgs(args))); + decorated.sizeAt = decorateMethod((blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._rpcCore.state.getStorageSize(getArgs(args, q.creator.meta.registry), blockHash)))); + if (creator.iterKey && creator.meta.type.isMap) { + decorated.entries = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapEntries(creator, null, args))); + decorated.entriesAt = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._retrieveMapEntries(q.creator, blockHash, args))))); + decorated.entriesPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapEntriesPaged(creator, void 0, opts))); + decorated.keys = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapKeys(creator, null, args))); + decorated.keysAt = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._retrieveMapKeys(q.creator, blockHash, args))))); + decorated.keysPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapKeysPaged(creator, void 0, opts))); + } + if (this.supportMulti && creator.meta.type.isMap) { + decorated.multi = decorateMethod((args) => creator.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(args.map((a) => [creator, [a]])) : this._retrieveMulti(args.map((a) => [creator, a]))); + } + return this._decorateFunctionMeta(creator, decorated); + } + _decorateStorageEntryAt(registry, creator, decorateMethod, blockHash) { + const getArgs = (args) => (0, validate_js_1.extractStorageArgs)(registry, creator, args); + const decorated = decorateMethod((...args) => this._rpcCore.state.getStorage(getArgs(args), blockHash)); + decorated.creator = creator; + decorated.hash = decorateMethod((...args) => this._rpcCore.state.getStorageHash(getArgs(args), blockHash)); + decorated.is = (key2) => key2.section === creator.section && key2.method === creator.method; + decorated.key = (...args) => (0, util_1.u8aToHex)((0, util_1.compactStripLength)(creator(...args))[1]); + decorated.keyPrefix = (...keys) => (0, util_1.u8aToHex)(creator.keyPrefix(...keys)); + decorated.size = decorateMethod((...args) => this._rpcCore.state.getStorageSize(getArgs(args), blockHash)); + if (creator.iterKey && creator.meta.type.isMap) { + decorated.entries = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapEntries(creator, blockHash, args))); + decorated.entriesPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapEntriesPaged(creator, blockHash, opts))); + decorated.keys = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapKeys(creator, blockHash, args))); + decorated.keysPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapKeysPaged(creator, blockHash, opts))); + } + if (this.supportMulti && creator.meta.type.isMap) { + decorated.multi = decorateMethod((args) => creator.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(args.map((a) => [creator, [a]]), blockHash) : this._retrieveMulti(args.map((a) => [creator, a]), blockHash)); + } + return this._decorateFunctionMeta(creator, decorated); + } + _queueStorage(call, queue) { + const query = queue === this.__internal__storageSubQ ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; + let queueIdx = queue.length - 1; + let valueIdx = 0; + let valueObs; + if (queueIdx === -1 || !queue[queueIdx] || queue[queueIdx][1].length === PAGE_SIZE_Q) { + queueIdx++; + valueObs = (0, rxjs_1.from)( + new Promise((resolve) => { + (0, util_1.nextTick)(() => { + const calls = queue[queueIdx][1]; + delete queue[queueIdx]; + resolve(calls); + }); + }) + ).pipe((0, rxjs_1.switchMap)((calls) => query(calls))); + queue.push([valueObs, [call]]); + } else { + valueObs = queue[queueIdx][0]; + valueIdx = queue[queueIdx][1].length; + queue[queueIdx][1].push(call); + } + return valueObs.pipe( + (0, rxjs_1.map)((values) => values[valueIdx]) + ); + } + _decorateStorageCall(creator, decorateMethod) { + const memoed = (0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => { + const call = (0, validate_js_1.extractStorageArgs)(this.__internal__registry, creator, args); + if (!this.hasSubscriptions) { + return this._rpcCore.state.getStorage(call); + } + return this._queueStorage(call, this.__internal__storageSubQ); + }); + return decorateMethod(memoed, { + methodName: creator.method, + overrideNoSub: (...args) => this._queueStorage((0, validate_js_1.extractStorageArgs)(this.__internal__registry, creator, args), this.__internal__storageGetQ) + }); + } + _retrieveMulti(keys, blockHash) { + if (!keys.length) { + return (0, rxjs_1.of)([]); + } + const query = this.hasSubscriptions && !blockHash ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; + if (keys.length <= PAGE_SIZE_V) { + return blockHash ? query(keys, blockHash) : query(keys); + } + return (0, rxjs_1.combineLatest)((0, util_1.arrayChunk)(keys, PAGE_SIZE_V).map((k) => blockHash ? query(k, blockHash) : query(k))).pipe((0, rxjs_1.map)(util_1.arrayFlatten)); + } + _retrieveMapKeys({ iterKey, meta: meta2, method, section }, at, args) { + if (!iterKey || !meta2.type.isMap) { + throw new Error("keys can only be retrieved on maps"); + } + const headKey = iterKey(...args).toHex(); + const startSubject = new rxjs_1.BehaviorSubject(headKey); + const query = at ? (startKey) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey, at) : (startKey) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey); + const setMeta = (key2) => key2.setMeta(meta2, section, method); + return startSubject.pipe( + (0, rxjs_1.switchMap)(query), + (0, rxjs_1.map)((keys) => keys.map(setMeta)), + (0, rxjs_1.tap)((keys) => (0, util_1.nextTick)(() => { + keys.length === PAGE_SIZE_K ? startSubject.next(keys[PAGE_SIZE_K - 1].toHex()) : startSubject.complete(); + })), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)(util_1.arrayFlatten) + ); + } + _retrieveMapKeysPaged({ iterKey, meta: meta2, method, section }, at, opts) { + if (!iterKey || !meta2.type.isMap) { + throw new Error("keys can only be retrieved on maps"); + } + const setMeta = (key2) => key2.setMeta(meta2, section, method); + const query = at ? (headKey) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey, at) : (headKey) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey); + return query(iterKey(...opts.args).toHex()).pipe((0, rxjs_1.map)((keys) => keys.map(setMeta))); + } + _retrieveMapEntries(entry, at, args) { + const query = at ? (keys) => this._rpcCore.state.queryStorageAt(keys, at) : (keys) => this._rpcCore.state.queryStorageAt(keys); + return this._retrieveMapKeys(entry, at, args).pipe((0, rxjs_1.switchMap)((keys) => keys.length ? (0, rxjs_1.combineLatest)((0, util_1.arrayChunk)(keys, PAGE_SIZE_V).map(query)).pipe((0, rxjs_1.map)((valsArr) => (0, util_1.arrayFlatten)(valsArr).map((value, index) => [keys[index], value]))) : (0, rxjs_1.of)([]))); + } + _retrieveMapEntriesPaged(entry, at, opts) { + const query = at ? (keys) => this._rpcCore.state.queryStorageAt(keys, at) : (keys) => this._rpcCore.state.queryStorageAt(keys); + return this._retrieveMapKeysPaged(entry, at, opts).pipe((0, rxjs_1.switchMap)((keys) => keys.length ? query(keys).pipe((0, rxjs_1.map)((valsArr) => valsArr.map((value, index) => [keys[index], value]))) : (0, rxjs_1.of)([]))); + } + _decorateDeriveRx(decorateMethod) { + const specName = this._runtimeVersion?.specName.toString(); + const available = (0, api_derive_1.getAvailableDerives)(this.__internal__instanceId, this._rx, (0, util_1.objectSpread)({}, this._options.derives, this._options.typesBundle?.spec?.[specName || ""]?.derives)); + return (0, decorate_js_1.decorateDeriveSections)(decorateMethod, available); + } + _decorateDerive(decorateMethod) { + return (0, decorate_js_1.decorateDeriveSections)(decorateMethod, this._rx.derive); + } + _rxDecorateMethod = (method) => { + return method; + }; + }; + exports2.Decorate = Decorate; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Init.js + var require_Init = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Init.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Init = void 0; + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var types_known_1 = require_cjs13(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var Decorate_js_1 = require_Decorate(); + var KEEPALIVE_INTERVAL = 1e4; + var WITH_VERSION_SHORTCUT = false; + var l15 = (0, util_1.logger)("api/init"); + function textToString(t) { + return t.toString(); + } + var Init = class extends Decorate_js_1.Decorate { + __internal__atLast = null; + __internal__healthTimer = null; + __internal__registries = []; + __internal__updateSub = null; + __internal__waitingRegistries = {}; + constructor(options, type, decorateMethod) { + super(options, type, decorateMethod); + this.registry.setKnownTypes(options); + if (!options.source) { + this.registerTypes(options.types); + } else { + this.__internal__registries = options.source.__internal__registries; + } + this._rpc = this._decorateRpc(this._rpcCore, this._decorateMethod); + this._rx.rpc = this._decorateRpc(this._rpcCore, this._rxDecorateMethod); + if (this.supportMulti) { + this._queryMulti = this._decorateMulti(this._decorateMethod); + this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod); + } + this._rx.signer = options.signer; + this._rpcCore.setRegistrySwap((blockHash) => this.getBlockRegistry(blockHash)); + this._rpcCore.setResolveBlockHash((blockNumber) => (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getBlockHash(blockNumber))); + if (this.hasSubscriptions) { + this._rpcCore.provider.on("disconnected", () => this.__internal__onProviderDisconnect()); + this._rpcCore.provider.on("error", (e) => this.__internal__onProviderError(e)); + this._rpcCore.provider.on("connected", () => this.__internal__onProviderConnect()); + } else if (!this._options.noInitWarn) { + l15.warn("Api will be available in a limited mode since the provider does not support subscriptions"); + } + if (this._rpcCore.provider.isConnected) { + this.__internal__onProviderConnect().catch(util_1.noop); + } + } + _initRegistry(registry, chain4, version23, metadata, chainProps) { + registry.clearCache(); + registry.setChainProperties(chainProps || this.registry.getChainProperties()); + registry.setKnownTypes(this._options); + registry.register((0, types_known_1.getSpecTypes)(registry, chain4, version23.specName, version23.specVersion)); + registry.setHasher((0, types_known_1.getSpecHasher)(registry, chain4, version23.specName)); + if (registry.knownTypes.typesBundle) { + registry.knownTypes.typesAlias = (0, types_known_1.getSpecAlias)(registry, chain4, version23.specName); + } + registry.setMetadata(metadata, void 0, (0, util_1.objectSpread)({}, (0, types_known_1.getSpecExtensions)(registry, chain4, version23.specName), this._options.signedExtensions), this._options.noInitWarn); + } + _getDefaultRegistry() { + return (0, util_1.assertReturn)(this.__internal__registries.find(({ isDefault }) => isDefault), "Initialization error, cannot find the default registry"); + } + async at(blockHash, knownVersion) { + const u8aHash = (0, util_1.u8aToU8a)(blockHash); + const u8aHex = (0, util_1.u8aToHex)(u8aHash); + const registry = await this.getBlockRegistry(u8aHash, knownVersion); + if (!this.__internal__atLast || this.__internal__atLast[0] !== u8aHex) { + this.__internal__atLast = [u8aHex, this._createDecorated(registry, true, null, u8aHash).decoratedApi]; + } + return this.__internal__atLast[1]; + } + async _createBlockRegistry(blockHash, header, version23) { + const registry = new types_1.TypeRegistry(blockHash); + const metadata = new types_1.Metadata(registry, await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata.raw(header.parentHash))); + const runtimeChain = this._runtimeChain; + if (!runtimeChain) { + throw new Error("Invalid initializion order, runtimeChain is not available"); + } + this._initRegistry(registry, runtimeChain, version23, metadata); + const result = { counter: 0, lastBlockHash: blockHash, metadata, registry, runtimeVersion: version23 }; + this.__internal__registries.push(result); + return result; + } + _cacheBlockRegistryProgress(key2, creator) { + let waiting = this.__internal__waitingRegistries[key2]; + if ((0, util_1.isUndefined)(waiting)) { + waiting = this.__internal__waitingRegistries[key2] = new Promise((resolve, reject) => { + creator().then((registry) => { + delete this.__internal__waitingRegistries[key2]; + resolve(registry); + }).catch((error) => { + delete this.__internal__waitingRegistries[key2]; + reject(error); + }); + }); + } + return waiting; + } + _getBlockRegistryViaVersion(blockHash, version23) { + if (version23) { + const existingViaVersion = this.__internal__registries.find(({ runtimeVersion: { specName, specVersion } }) => specName.eq(version23.specName) && specVersion.eq(version23.specVersion)); + if (existingViaVersion) { + existingViaVersion.counter++; + existingViaVersion.lastBlockHash = blockHash; + return existingViaVersion; + } + } + return null; + } + async _getBlockRegistryViaHash(blockHash) { + if (!this._genesisHash || !this._runtimeVersion) { + throw new Error("Cannot retrieve data on an uninitialized chain"); + } + const header = this.registry.createType("HeaderPartial", this._genesisHash.eq(blockHash) ? { number: util_1.BN_ZERO, parentHash: this._genesisHash } : await (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getHeader.raw(blockHash))); + if (header.parentHash.isEmpty) { + throw new Error("Unable to retrieve header and parent from supplied hash"); + } + const [firstVersion, lastVersion] = (0, types_known_1.getUpgradeVersion)(this._genesisHash, header.number); + const version23 = this.registry.createType("RuntimeVersionPartial", WITH_VERSION_SHORTCUT && (firstVersion && (lastVersion || firstVersion.specVersion.eq(this._runtimeVersion.specVersion))) ? { apis: firstVersion.apis, specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion } : await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))); + return this._getBlockRegistryViaVersion(blockHash, version23) || await this._cacheBlockRegistryProgress(version23.toHex(), () => this._createBlockRegistry(blockHash, header, version23)); + } + async getBlockRegistry(blockHash, knownVersion) { + return this.__internal__registries.find(({ lastBlockHash }) => lastBlockHash && (0, util_1.u8aEq)(lastBlockHash, blockHash)) || this._getBlockRegistryViaVersion(blockHash, knownVersion) || await this._cacheBlockRegistryProgress((0, util_1.u8aToHex)(blockHash), () => this._getBlockRegistryViaHash(blockHash)); + } + async _loadMeta() { + if (this._isReady) { + return true; + } + this._unsubscribeUpdates(); + [this._genesisHash, this._runtimeMetadata] = this._options.source?._isReady ? await this._metaFromSource(this._options.source) : await this._metaFromChain(this._options.metadata); + return this._initFromMeta(this._runtimeMetadata); + } + async _metaFromSource(source) { + this._extrinsicType = source.extrinsicVersion; + this._runtimeChain = source.runtimeChain; + this._runtimeVersion = source.runtimeVersion; + const sections = Object.keys(source.rpc); + const rpcs = []; + for (let s = 0, scount = sections.length; s < scount; s++) { + const section = sections[s]; + const methods = Object.keys(source.rpc[section]); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + rpcs.push(`${section}_${methods[m]}`); + } + } + this._filterRpc(rpcs, (0, types_known_1.getSpecRpc)(this.registry, source.runtimeChain, source.runtimeVersion.specName)); + return [source.genesisHash, source.runtimeMetadata]; + } + _subscribeUpdates() { + if (this.__internal__updateSub || !this.hasSubscriptions) { + return; + } + this.__internal__updateSub = this._rpcCore.state.subscribeRuntimeVersion().pipe((0, rxjs_1.switchMap)((version23) => this._runtimeVersion?.specVersion.eq(version23.specVersion) ? (0, rxjs_1.of)(false) : this._rpcCore.state.getMetadata().pipe((0, rxjs_1.map)((metadata) => { + l15.log(`Runtime version updated to spec=${version23.specVersion.toString()}, tx=${version23.transactionVersion.toString()}`); + this._runtimeMetadata = metadata; + this._runtimeVersion = version23; + this._rx.runtimeVersion = version23; + const thisRegistry = this._getDefaultRegistry(); + const runtimeChain = this._runtimeChain; + if (!runtimeChain) { + throw new Error("Invalid initializion order, runtimeChain is not available"); + } + thisRegistry.metadata = metadata; + thisRegistry.runtimeVersion = version23; + this._initRegistry(this.registry, runtimeChain, version23, metadata); + this._injectMetadata(thisRegistry, true); + return true; + })))).subscribe(); + } + async _metaFromChain(optMetadata) { + const [genesisHash, runtimeVersion, chain4, chainProps, rpcMethods, chainMetadata] = await Promise.all([ + (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getBlockHash(0)), + (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getRuntimeVersion()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.chain()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.properties()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.rpc.methods()), + optMetadata ? Promise.resolve(null) : (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata()) + ]); + this._runtimeChain = chain4; + this._runtimeVersion = runtimeVersion; + this._rx.runtimeVersion = runtimeVersion; + const metadataKey = `${genesisHash.toHex() || "0x"}-${runtimeVersion.specVersion.toString()}`; + const metadata = chainMetadata || (optMetadata?.[metadataKey] ? new types_1.Metadata(this.registry, optMetadata[metadataKey]) : await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata())); + this._initRegistry(this.registry, chain4, runtimeVersion, metadata, chainProps); + this._filterRpc(rpcMethods.methods.map(textToString), (0, types_known_1.getSpecRpc)(this.registry, chain4, runtimeVersion.specName)); + this._subscribeUpdates(); + if (!this.__internal__registries.length) { + this.__internal__registries.push({ counter: 0, isDefault: true, metadata, registry: this.registry, runtimeVersion }); + } + metadata.getUniqTypes(this._options.throwOnUnknown || false); + return [genesisHash, metadata]; + } + _initFromMeta(metadata) { + const runtimeVersion = this._runtimeVersion; + if (!runtimeVersion) { + throw new Error("Invalid initializion order, runtimeVersion is not available"); + } + this._extrinsicType = metadata.asLatest.extrinsic.version.toNumber(); + this._rx.extrinsicType = this._extrinsicType; + this._rx.genesisHash = this._genesisHash; + this._rx.runtimeVersion = runtimeVersion; + this._injectMetadata(this._getDefaultRegistry(), true); + this._rx.derive = this._decorateDeriveRx(this._rxDecorateMethod); + this._derive = this._decorateDerive(this._decorateMethod); + return true; + } + _subscribeHealth() { + this._unsubscribeHealth(); + this.__internal__healthTimer = this.hasSubscriptions ? setInterval(() => { + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.health.raw()).catch(util_1.noop); + }, KEEPALIVE_INTERVAL) : null; + } + _unsubscribeHealth() { + if (this.__internal__healthTimer) { + clearInterval(this.__internal__healthTimer); + this.__internal__healthTimer = null; + } + } + _unsubscribeUpdates() { + if (this.__internal__updateSub) { + this.__internal__updateSub.unsubscribe(); + this.__internal__updateSub = null; + } + } + _unsubscribe() { + this._unsubscribeHealth(); + this._unsubscribeUpdates(); + } + async __internal__onProviderConnect() { + this._isConnected.next(true); + this.emit("connected"); + try { + const cryptoReady = this._options.initWasm === false ? true : await (0, util_crypto_1.cryptoWaitReady)(); + const hasMeta = await this._loadMeta(); + this._subscribeHealth(); + if (hasMeta && !this._isReady && cryptoReady) { + this._isReady = true; + this.emit("ready", this); + } + } catch (_error) { + const error = new Error(`FATAL: Unable to initialize the API: ${_error.message}`); + l15.error(error); + this.emit("error", error); + } + } + __internal__onProviderDisconnect() { + this._isConnected.next(false); + this._unsubscribe(); + this.emit("disconnected"); + } + __internal__onProviderError(error) { + this.emit("error", error); + } + }; + exports2.Init = Init; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Getters.js + var require_Getters = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Getters.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Getters = void 0; + var packageInfo_js_1 = require_packageInfo19(); + var find_js_1 = require_find2(); + var Init_js_1 = require_Init(); + function assertResult(value) { + if (value === void 0) { + throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'"); + } + return value; + } + var Getters = class extends Init_js_1.Init { + get call() { + return assertResult(this._call); + } + get consts() { + return assertResult(this._consts); + } + get derive() { + return assertResult(this._derive); + } + get errors() { + return assertResult(this._errors); + } + get events() { + return assertResult(this._events); + } + get extrinsicVersion() { + return this._extrinsicType; + } + get genesisHash() { + return assertResult(this._genesisHash); + } + get isConnected() { + return this._isConnected.getValue(); + } + get libraryInfo() { + return `${packageInfo_js_1.packageInfo.name} v${packageInfo_js_1.packageInfo.version}`; + } + get query() { + return assertResult(this._query); + } + get queryMulti() { + return assertResult(this._queryMulti); + } + get rpc() { + return assertResult(this._rpc); + } + get runtimeChain() { + return assertResult(this._runtimeChain); + } + get runtimeMetadata() { + return assertResult(this._runtimeMetadata); + } + get runtimeVersion() { + return assertResult(this._runtimeVersion); + } + get rx() { + return assertResult(this._rx); + } + get stats() { + return this._rpcCore.stats; + } + get type() { + return this._type; + } + get tx() { + return assertResult(this._extrinsics); + } + findCall(callIndex) { + return (0, find_js_1.findCall)(this.registry, callIndex); + } + findError(errorIndex) { + return (0, find_js_1.findError)(this.registry, errorIndex); + } + }; + exports2.Getters = Getters; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/index.js + var require_base2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiBase = void 0; + var util_1 = require_cjs3(); + var Getters_js_1 = require_Getters(); + var ApiBase = class extends Getters_js_1.Getters { + constructor(options = {}, type, decorateMethod) { + super(options, type, decorateMethod); + } + connect() { + return this._rpcCore.connect(); + } + disconnect() { + this._unsubscribe(); + return this._rpcCore.disconnect(); + } + setSigner(signer) { + this._rx.signer = signer; + } + async sign(address, data, { signer } = {}) { + if ((0, util_1.isString)(address)) { + const _signer = signer || this._rx.signer; + if (!_signer?.signRaw) { + throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing."); + } + return (await _signer.signRaw((0, util_1.objectSpread)({ type: "bytes" }, data, { address }))).signature; + } + return (0, util_1.u8aToHex)(address.sign((0, util_1.u8aToU8a)(data.data))); + } + }; + exports2.ApiBase = ApiBase; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/Combinator.js + var require_Combinator = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/Combinator.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Combinator = void 0; + var util_1 = require_cjs3(); + var Combinator = class { + __internal__allHasFired = false; + __internal__callback; + __internal__fired = []; + __internal__fns = []; + __internal__isActive = true; + __internal__results = []; + __internal__subscriptions = []; + constructor(fns, callback) { + this.__internal__callback = callback; + this.__internal__subscriptions = fns.map(async (input, index) => { + const [fn2, ...args] = Array.isArray(input) ? input : [input]; + this.__internal__fired.push(false); + this.__internal__fns.push(fn2); + return fn2(...args, this._createCallback(index)); + }); + } + _allHasFired() { + this.__internal__allHasFired ||= this.__internal__fired.filter((hasFired) => !hasFired).length === 0; + return this.__internal__allHasFired; + } + _createCallback(index) { + return (value) => { + this.__internal__fired[index] = true; + this.__internal__results[index] = value; + this._triggerUpdate(); + }; + } + _triggerUpdate() { + if (!this.__internal__isActive || !(0, util_1.isFunction)(this.__internal__callback) || !this._allHasFired()) { + return; + } + try { + Promise.resolve(this.__internal__callback(this.__internal__results)).catch(util_1.noop); + } catch { + } + } + unsubscribe() { + if (!this.__internal__isActive) { + return; + } + this.__internal__isActive = false; + Promise.all(this.__internal__subscriptions.map(async (subscription) => { + try { + const unsubscribe = await subscription; + if ((0, util_1.isFunction)(unsubscribe)) { + unsubscribe(); + } + } catch { + } + })).catch(() => { + }); + } + }; + exports2.Combinator = Combinator; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/decorateMethod.js + var require_decorateMethod = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/decorateMethod.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPromiseMethod = exports2.promiseTracker = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + function promiseTracker(resolve, reject) { + let isCompleted = false; + return { + reject: (error) => { + if (!isCompleted) { + isCompleted = true; + reject(error); + } + return rxjs_1.EMPTY; + }, + resolve: (value) => { + if (!isCompleted) { + isCompleted = true; + resolve(value); + } + } + }; + } + exports2.promiseTracker = promiseTracker; + function extractArgs(args, needsCallback) { + const actualArgs = args.slice(); + const callback = args.length && (0, util_1.isFunction)(args[args.length - 1]) ? actualArgs.pop() : void 0; + if (needsCallback && !(0, util_1.isFunction)(callback)) { + throw new Error("Expected a callback to be passed with subscriptions"); + } + return [actualArgs, callback]; + } + function decorateCall(method, args) { + return new Promise((resolve, reject) => { + const tracker = promiseTracker(resolve, reject); + const subscription = method(...args).pipe((0, rxjs_1.catchError)((error) => tracker.reject(error))).subscribe((result) => { + tracker.resolve(result); + (0, util_1.nextTick)(() => subscription.unsubscribe()); + }); + }); + } + function decorateSubscribe(method, args, resultCb) { + return new Promise((resolve, reject) => { + const tracker = promiseTracker(resolve, reject); + const subscription = method(...args).pipe((0, rxjs_1.catchError)((error) => tracker.reject(error)), (0, rxjs_1.tap)(() => tracker.resolve(() => subscription.unsubscribe()))).subscribe((result) => { + (0, util_1.nextTick)(() => resultCb(result)); + }); + }); + } + function toPromiseMethod(method, options) { + const needsCallback = !!(options?.methodName && options.methodName.includes("subscribe")); + return function(...args) { + const [actualArgs, resultCb] = extractArgs(args, needsCallback); + return resultCb ? decorateSubscribe(method, actualArgs, resultCb) : decorateCall(options?.overrideNoSub || method, actualArgs); + }; + } + exports2.toPromiseMethod = toPromiseMethod; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/Api.js + var require_Api = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/Api.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiPromise = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_base2(); + var Combinator_js_1 = require_Combinator(); + var decorateMethod_js_1 = require_decorateMethod(); + var ApiPromise = class extends index_js_1.ApiBase { + __internal__isReadyPromise; + __internal__isReadyOrErrorPromise; + constructor(options) { + super(options, "promise", decorateMethod_js_1.toPromiseMethod); + this.__internal__isReadyPromise = new Promise((resolve) => { + super.once("ready", () => resolve(this)); + }); + this.__internal__isReadyOrErrorPromise = new Promise((resolve, reject) => { + const tracker = (0, decorateMethod_js_1.promiseTracker)(resolve, reject); + super.once("ready", () => tracker.resolve(this)); + super.once("error", (error) => tracker.reject(error)); + }); + } + static create(options) { + const instance = new ApiPromise(options); + if (options && options.throwOnConnect) { + return instance.isReadyOrError; + } + instance.isReadyOrError.catch(util_1.noop); + return instance.isReady; + } + get isReady() { + return this.__internal__isReadyPromise; + } + get isReadyOrError() { + return this.__internal__isReadyOrErrorPromise; + } + clone() { + return new ApiPromise((0, util_1.objectSpread)({}, this._options, { source: this })); + } + async combineLatest(fns, callback) { + const combinator = new Combinator_js_1.Combinator(fns, callback); + return () => { + combinator.unsubscribe(); + }; + } + }; + exports2.ApiPromise = ApiPromise; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/index.js + var require_promise2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPromiseMethod = exports2.ApiPromise = void 0; + var Api_js_1 = require_Api(); + Object.defineProperty(exports2, "ApiPromise", { enumerable: true, get: function() { + return Api_js_1.ApiPromise; + } }); + var decorateMethod_js_1 = require_decorateMethod(); + Object.defineProperty(exports2, "toPromiseMethod", { enumerable: true, get: function() { + return decorateMethod_js_1.toPromiseMethod; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/decorateMethod.js + var require_decorateMethod2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/decorateMethod.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toRxMethod = void 0; + function toRxMethod(method) { + return method; + } + exports2.toRxMethod = toRxMethod; + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/Api.js + var require_Api2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/Api.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiRx = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_base2(); + var decorateMethod_js_1 = require_decorateMethod2(); + var ApiRx = class extends index_js_1.ApiBase { + __internal__isReadyRx; + constructor(options) { + super(options, "rxjs", decorateMethod_js_1.toRxMethod); + this.__internal__isReadyRx = (0, rxjs_1.from)( + new Promise((resolve) => { + super.on("ready", () => resolve(this)); + }) + ); + } + static create(options) { + return new ApiRx(options).isReady; + } + get isReady() { + return this.__internal__isReadyRx; + } + clone() { + return new ApiRx((0, util_1.objectSpread)({}, this._options, { source: this })); + } + }; + exports2.ApiRx = ApiRx; + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/index.js + var require_rx = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toRxMethod = exports2.ApiRx = void 0; + var Api_js_1 = require_Api2(); + Object.defineProperty(exports2, "ApiRx", { enumerable: true, get: function() { + return Api_js_1.ApiRx; + } }); + var decorateMethod_js_1 = require_decorateMethod2(); + Object.defineProperty(exports2, "toRxMethod", { enumerable: true, get: function() { + return decorateMethod_js_1.toRxMethod; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/bundle.js + var require_bundle13 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = exports2.packageInfo = exports2.WsProvider = exports2.ScProvider = exports2.HttpProvider = exports2.Keyring = void 0; + var tslib_1 = require_tslib(); + require_cjs14(); + var keyring_1 = require_cjs15(); + Object.defineProperty(exports2, "Keyring", { enumerable: true, get: function() { + return keyring_1.Keyring; + } }); + var rpc_provider_1 = require_cjs16(); + Object.defineProperty(exports2, "HttpProvider", { enumerable: true, get: function() { + return rpc_provider_1.HttpProvider; + } }); + Object.defineProperty(exports2, "ScProvider", { enumerable: true, get: function() { + return rpc_provider_1.ScProvider; + } }); + Object.defineProperty(exports2, "WsProvider", { enumerable: true, get: function() { + return rpc_provider_1.WsProvider; + } }); + var packageInfo_js_1 = require_packageInfo19(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_submittable(); + Object.defineProperty(exports2, "SubmittableResult", { enumerable: true, get: function() { + return index_js_1.SubmittableResult; + } }); + tslib_1.__exportStar(require_promise2(), exports2); + tslib_1.__exportStar(require_rx(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/index.js + var require_cjs17 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect7(); + tslib_1.__exportStar(require_bundle13(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/packageInfo.js + var require_packageInfo24 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-base", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/packageInfo.js + var require_packageInfo25 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/packageDetect.js + var require_packageDetect10 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo24(); + var packageInfo_2 = require_packageInfo14(); + var packageInfo_3 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo25(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_3.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/packageInfo.js + var require_packageInfo26 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/packageDetect.js + var require_packageDetect11 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var packageInfo_2 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo26(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_2.packageInfo, packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types/cjs/types/registry.js + var require_registry3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/types/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/interfaces.js + var require_interfaces2 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/interfaces.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/index.js + var require_registry4 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_interfaces2(); + } + }); + + // ../../node_modules/@polkadot/types/cjs/lookup.js + var require_lookup2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/lookup.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.__TYPES_LOOKUP = void 0; + exports2.__TYPES_LOOKUP = "augmented"; + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-substrate.js + var require_types_substrate = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-polkadot.js + var require_types_polkadot = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-kusama.js + var require_types_kusama = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types.js + var require_types4 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_types_substrate(); + require_types_polkadot(); + require_types_kusama(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/index.js + var require_lookup3 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_types4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/augment.js + var require_augment2 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/augment.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry4(); + require_lookup3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/bundle.js + var require_bundle14 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_augment2(); + var packageInfo_js_1 = require_packageInfo26(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/index.js + var require_cjs18 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect11(); + tslib_1.__exportStar(require_bundle14(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/base.js + var require_base3 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/base.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_cjs14(); + require_cjs18(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/consts.js + var require_consts3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/consts.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/consts.js + var require_consts4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/consts.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_consts3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/errors.js + var require_errors3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/errors.js + var require_errors4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_errors3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/events.js + var require_events3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/events.js + var require_events4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_events3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/storage.js + var require_storage3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/storage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/query.js + var require_query2 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/query.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_storage3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/substrate.js + var require_substrate3 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry3(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/registry.js + var require_registry5 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_substrate3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/calls.js + var require_calls = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/calls.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/runtime.js + var require_runtime34 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_calls(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/submittable.js + var require_submittable2 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/submittable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/tx.js + var require_tx2 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/tx.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_submittable2(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/index.js + var require_substrate4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_base3(); + require_consts4(); + require_errors4(); + require_events4(); + require_query2(); + require_registry5(); + require_runtime34(); + require_tx2(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/bundle.js + var require_bundle15 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_substrate4(); + var packageInfo_js_1 = require_packageInfo25(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/index.js + var require_cjs19 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect10(); + tslib_1.__exportStar(require_bundle15(), exports2); + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/currencies/balance.js + var require_balance = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/currencies/balance.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.balance = void 0; + var _util = require_util10(); + var _operators = require_operators(); + var balance = (instanceId, api) => { + return (0, _util.memo)(instanceId, (address, token) => { + return api.rpc.system.properties().pipe((0, _operators.mergeMap)((properties) => { + const currencyId = api.registry.createType("CurrencyId", token); + const nativeTokenSymbol = properties.tokenSymbol.unwrapOrDefault()[0].toString(); + const nativeCurrencyId = api.registry.createType("CurrencyId", (api.registry.getDefinition("CurrencyId") || "").includes('"Token":"TokenSymbol"') ? { + Token: nativeTokenSymbol + } : nativeTokenSymbol); + if (currencyId.eq(nativeCurrencyId)) { + return api.query.system.account(address).pipe((0, _operators.map)((result) => { + return result.data.free; + })); + } + const lookupId = api.query.tokens.accounts.creator.meta.type.asMap.key; + const [typeId] = api.registry.lookup.getSiType(lookupId).def.asTuple; + const keyType = api.registry.lookup.getTypeDef(typeId).type; + const arg = keyType === "CurrencyId" ? [token, address] : [address, token]; + return api.query.tokens.accounts(...arg).pipe((0, _operators.map)((result) => { + return result.free; + })); + })); + }); + }; + exports2.balance = balance; + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/currencies/index.js + var require_currencies = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/currencies/index.js"(exports2) { + "use strict"; + exports2.__esModule = true; + var _balance = require_balance(); + Object.keys(_balance).forEach(function(key2) { + if (key2 === "default" || key2 === "__esModule") + return; + if (key2 in exports2 && exports2[key2] === _balance[key2]) + return; + exports2[key2] = _balance[key2]; + }); + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/index.js + var require_orml_api_derive = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/index.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.derive = void 0; + var _currencies = require_currencies(); + var derive2 = { + currencies: { + balance: _currencies.balance + } + }; + exports2.derive = derive2; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/allCurrencies.js + var require_allCurrencies = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/allCurrencies.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.allCurrencyIds = exports2.allNonNativeCurrencyIds = exports2.nativeCurrencyId = void 0; + var util_1 = require_util10(); + var rxjs_1 = require_cjs7(); + var operators_1 = require_operators(); + function getNativeCurrencyId(api) { + return api.rpc.system.properties().pipe((0, operators_1.switchMap)((properties) => { + const nativeTokenSymbol = properties.tokenSymbol.unwrapOrDefault()[0].toString(); + return (0, rxjs_1.of)(api.registry.createType("CurrencyId", api.registry.createType("TokenSymbol", nativeTokenSymbol))); + })); + } + function nativeCurrencyId(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return getNativeCurrencyId(api); + }); + } + exports2.nativeCurrencyId = nativeCurrencyId; + function getAllNonNativeCurrencyIds(api) { + return api.consts.transactionPayment.allNonNativeCurrencyIds; + } + function allNonNativeCurrencyIds(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return (0, rxjs_1.of)(getAllNonNativeCurrencyIds(api)); + }); + } + exports2.allNonNativeCurrencyIds = allNonNativeCurrencyIds; + function allCurrencyIds(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return getNativeCurrencyId(api).pipe((0, operators_1.switchMap)((nativeCurrencyId2) => { + return (0, rxjs_1.of)([ + nativeCurrencyId2, + ...getAllNonNativeCurrencyIds(api).slice() + ]); + })); + }); + } + exports2.allCurrencyIds = allCurrencyIds; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/defaultOptions.js + var require_defaultOptions = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/defaultOptions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultOptions = void 0; + exports2.defaultOptions = { + types: { + CallOf: "Call", + DispatchTime: { _enum: { At: "BlockNumber", After: "BlockNumber" } }, + ScheduleTaskIndex: "u32", + DelayedOrigin: { delay: "BlockNumber", origin: "PalletsOrigin" }, + AuthorityOrigin: "DelayedOrigin", + StorageValue: "Vec", + GraduallyUpdate: { + key: "StorageKey", + targetValue: "StorageValue", + perBlock: "StorageValue" + }, + StorageKeyBytes: "Vec", + StorageValueBytes: "Vec", + RpcDataProviderId: "Text", + DataProviderId: "u8", + TimestampedValue: { value: "OracleValue", timestamp: "Moment" }, + TimestampedValueOf: "TimestampedValue", + OrderedSet: "Vec", + OrmlAccountData: { + free: "Balance", + reserved: "Balance", + frozen: "Balance" + }, + OrmlBalanceLock: { amount: "Balance", id: "LockIdentifier" }, + AuctionInfo: { + bid: "Option<(AccountId, Balance)>", + start: "BlockNumber", + end: "Option" + }, + DelayedDispatchTime: { _enum: { At: "BlockNumber", After: "BlockNumber" } }, + DispatchId: "u32", + Price: "FixedU128", + OrmlVestingSchedule: { + start: "BlockNumber", + period: "BlockNumber", + periodCount: "u32", + perPeriod: "Compact" + }, + VestingScheduleOf: "OrmlVestingSchedule", + OrmlCurrencyId: "u8", + PoolInfo: { + totalShares: "Share", + rewards: "BTreeMap" + }, + CompactBalance: "Compact", + PoolInfoV0: { + totalShares: "Compact", + totalRewards: "CompactBalance", + totalWithdrawnRewards: "CompactBalance" + }, + Share: "u128", + OracleValue: "Price", + PalletBalanceOf: "Balance", + EstimateResourcesResponse: { + gas: "u256", + storage: "i32", + weightFee: "u256" + }, + EvmAccountInfo: { + nonce: "Index", + contractInfo: "Option", + developerDeposit: "Option" + }, + CodeInfo: { codeSize: "u32", refCount: "u32" }, + EvmContractInfo: { codeHash: "H256", maintainer: "H160", deployed: "bool" }, + EvmAddress: "H160", + CallRequest: { + from: "Option", + to: "Option", + gasLimit: "Option", + storageLimit: "Option", + value: "Option", + data: "Option" + }, + CommitmentOf: { + duration: "LockDuration", + amount: "BalanceOf", + candidate: "AccountId" + }, + Era: { index: "u32", start: "BlockNumber" }, + LockDuration: { _enum: ["OneMonth", "OneYear", "TenYears"] }, + PoolId: { + _enum: { + Loans: "CurrencyId", + DexIncentive: "CurrencyId", + DexSaving: "CurrencyId", + Homa: "Null" + } + }, + Amount: "i128", + AmountOf: "Amount", + AuctionId: "u32", + AuctionIdOf: "AuctionId", + TokenSymbol: { _enum: { REEF: 0, RUSD: 1 } }, + CurrencyId: { + _enum: { + Token: "TokenSymbol", + DEXShare: "(TokenSymbol, TokenSymbol)", + ERC20: "EvmAddress" + } + }, + CurrencyIdOf: "CurrencyId", + AuthoritysOriginId: { _enum: ["Root"] }, + TradingPair: "(CurrencyId, CurrencyId)", + OracleKey: "CurrencyId", + AsOriginId: "AuthoritysOriginId", + ExchangeRate: "FixedU128", + Rate: "FixedU128", + Ratio: "FixedU128", + Keys: "SessionKeys4", + PalletsOrigin: { + _enum: { + System: "SystemOrigin", + Timestamp: "Null", + RandomnessCollectiveFlip: "Null", + Balances: "Null", + Accounts: "Null", + Currencies: "Null", + Tokens: "Null", + Vesting: "Null", + AcalaTreasury: "Null", + Utility: "Null", + Multisig: "Null", + Recovery: "Null", + Proxy: "Null", + Scheduler: "Null", + Indices: "Null", + GraduallyUpdate: "Null", + Authorship: "Null", + Babe: "Null", + Grandpa: "Null", + Staking: "Null", + Session: "Null", + Historical: "Null", + GeneralCouncil: "CollectiveOrigin", + GeneralCouncilMembership: "Null", + HonzonCouncil: "CollectiveOrigin", + HonzonCouncilMembership: "Null", + HomaCouncil: "CollectiveOrigin", + HomaCouncilMembership: "Null", + TechnicalCommittee: "CollectiveOrigin", + TechnicalCommitteeMembership: "Null", + Authority: "DelayedOrigin", + ElectionsPhragmen: "Null", + AcalaOracle: "Null", + BandOracle: "Null", + OperatorMembershipAcala: "Null", + OperatorMembershipBand: "Null", + Auction: "Null", + Rewards: "Null", + OrmlNFT: "Null", + Prices: "Null", + Dex: "Null", + AuctionManager: "Null", + Loans: "Null", + Honzon: "Null", + CdpTreasury: "Null", + CdpEngine: "Null", + EmergencyShutdown: "Null", + Homa: "Null", + NomineesElection: "Null", + StakingPool: "Null", + PolkadotBridge: "Null", + Incentives: "Null", + AirDrop: "Null", + NFT: "Null", + RenVmBridge: "Null", + Contracts: "Null", + EVM: "Null", + Sudo: "Null", + TransactionPayment: "Null" + } + } + }, + rpc: { + oracle: { + getValue: { + description: "Retrieves the oracle value for a given key.", + params: [ + { name: "providerId", type: "RpcDataProviderId" }, + { name: "key", type: "OracleKey" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Option" + }, + getAllValues: { + description: "Retrieves all oracle values.", + params: [ + { name: "providerId", type: "RpcDataProviderId" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Vec<(OracleKey, Option)>" + } + }, + tokens: { + queryExistentialDeposit: { + description: "Query Existential Deposit for a given currency.", + params: [ + { name: "currencyId", type: "CurrencyId" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "NumberOrHex" + } + }, + evm: { + call: { + description: "eth call", + params: [ + { name: "data", type: "CallRequest" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Raw" + }, + estimateGas: { + description: "eth estimateGas", + params: [ + { name: "data", type: "CallRequest" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "u128" + }, + estimateResources: { + description: "eth estimateResources", + params: [ + { name: "from", type: "H160" }, + { name: "unsignedExtrinsic", type: "Bytes" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "EstimateResourcesResponse" + } + } + }, + typesAlias: { + evm: { AccountInfo: "EvmAccountInfo", ContractInfo: "EvmContractInfo" }, + tokens: { AccountData: "OrmlAccountData", BalanceLock: "OrmlBalanceLock" } + }, + typesBundle: { + spec: { + acala: { + types: [ + { + minmax: [600, 699], + types: { + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [700, 719], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [720, null], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress" + } + } + ] + }, + mandala: { + types: [ + { + minmax: [600, 699], + types: { + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [700, 719], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [720, null], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress" + } + } + ] + } + } + }, + signedExtensions: { SetEvmOrigin: { extrinsic: {}, payload: {} } } + }; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/options.js + var require_options = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/options.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k22, desc); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports2 && exports2.__importStar || function(mod3) { + if (mod3 && mod3.__esModule) + return mod3; + var result = {}; + if (mod3 != null) { + for (var k in mod3) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod3, k)) + __createBinding(result, mod3, k); + } + __setModuleDefault(result, mod3); + return result; + }; + var __rest = exports2 && exports2.__rest || function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.options = void 0; + var orml_api_derive_1 = require_orml_api_derive(); + var constants2 = __importStar(require_allCurrencies()); + var defaultOptions_1 = require_defaultOptions(); + var acalaDerives = { + constants: constants2 + }; + var acalaRpc = defaultOptions_1.defaultOptions.rpc; + var acalaTypes = defaultOptions_1.defaultOptions.types; + var acalaTypesAlias = defaultOptions_1.defaultOptions.typesAlias; + var acalaTypesBundle = defaultOptions_1.defaultOptions.typesBundle; + var acalaSignedExtensions = defaultOptions_1.defaultOptions.signedExtensions; + var options = (_a2 = {}) => { + var _b2, _c2, _d2, _e; + var { types: types2 = {}, rpc: rpc18 = {}, typesAlias: typesAlias2 = {}, typesBundle = {}, signedExtensions } = _a2, otherOptions = __rest(_a2, ["types", "rpc", "typesAlias", "typesBundle", "signedExtensions"]); + return Object.assign({ types: Object.assign(Object.assign({}, acalaTypes), types2), rpc: Object.assign(Object.assign({}, acalaRpc), rpc18), typesAlias: Object.assign(Object.assign({}, acalaTypesAlias), typesAlias2), derives: Object.assign(Object.assign({}, orml_api_derive_1.derive), acalaDerives), typesBundle: Object.assign(Object.assign({}, typesBundle), { spec: Object.assign(Object.assign({}, typesBundle.spec), { acala: Object.assign(Object.assign({}, (_b2 = acalaTypesBundle === null || acalaTypesBundle === void 0 ? void 0 : acalaTypesBundle.spec) === null || _b2 === void 0 ? void 0 : _b2.acala), (_c2 = typesBundle === null || typesBundle === void 0 ? void 0 : typesBundle.spec) === null || _c2 === void 0 ? void 0 : _c2.acala), mandala: Object.assign(Object.assign({}, (_d2 = acalaTypesBundle === null || acalaTypesBundle === void 0 ? void 0 : acalaTypesBundle.spec) === null || _d2 === void 0 ? void 0 : _d2.mandala), (_e = typesBundle === null || typesBundle === void 0 ? void 0 : typesBundle.spec) === null || _e === void 0 ? void 0 : _e.mandala) }) }), signedExtensions: Object.assign(Object.assign({}, acalaSignedExtensions), signedExtensions) }, otherOptions); + }; + exports2.options = options; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/Provider.js + var require_Provider = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/Provider.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Provider = void 0; + var bytes_1 = require_lib2(); + var properties_1 = require_lib7(); + var bignumber_1 = require_lib3(); + var logger_1 = require_lib(); + var scanner_1 = __importDefault(require_scanner()); + var api_1 = require_cjs17(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + require_cjs19(); + var utils_12 = require_utils3(); + var options_1 = require_options(); + var logger42 = new logger_1.Logger("evm-provider"); + var Provider3 = class { + constructor(_apiOptions, dataProvider) { + const apiOptions = (0, options_1.options)(_apiOptions); + this.api = new api_1.ApiPromise(apiOptions); + this.resolveApi = this.api.isReady; + this._isProvider = true; + this.dataProvider = dataProvider; + this.scanner = new scanner_1.default({ + wsProvider: apiOptions.provider, + types: apiOptions.types, + typesAlias: apiOptions.typesAlias, + typesSpec: apiOptions.typesSpec, + typesChain: apiOptions.typesChain, + typesBundle: apiOptions.typesBundle + }); + } + static isProvider(value) { + return !!(value && value._isProvider); + } + init() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.api.isReady; + this.dataProvider && (yield this.dataProvider.init()); + }); + } + getNetwork() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + return { + name: this.api.runtimeVersion.specName.toString(), + chainId: 13939 + }; + }); + } + getBlockNumber() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const r10 = yield this.api.rpc.chain.getHeader(); + return r10.number.toNumber(); + }); + } + getGasPrice() { + return __awaiter16(this, void 0, void 0, function* () { + return bignumber_1.BigNumber.from(0); + }); + } + getFeeData() { + return __awaiter16(this, void 0, void 0, function* () { + return { + maxFeePerGas: bignumber_1.BigNumber.from(1), + maxPriorityFeePerGas: bignumber_1.BigNumber.from(1), + gasPrice: bignumber_1.BigNumber.from(1) + }; + }); + } + getBalance(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + let address = yield (0, utils_12.resolveAddress)(this, addressOrName); + if (!address) { + address = yield this._toAddress(addressOrName); + } + const blockHash = yield this._resolveBlockHash(blockTag); + const accountInfo = blockHash ? yield this.api.query.system.account.at(blockHash, address) : yield this.api.query.system.account(address); + return bignumber_1.BigNumber.from(accountInfo.data.free.toBn().toString()); + }); + } + getTransactionCount(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const resolvedBlockTag = yield blockTag; + const address = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + let account; + if (resolvedBlockTag === "pending") { + account = yield this.api.query.evm.accounts(address); + } else { + const blockHash = yield this._resolveBlockHash(blockTag); + account = blockHash ? yield this.api.query.evm.accounts.at(blockHash, address) : yield this.api.query.evm.accounts(address); + } + if (!account.isNone) { + return account.unwrap().nonce.toNumber(); + } else { + return 0; + } + }); + } + getCode(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const { address, blockHash } = yield (0, properties_1.resolveProperties)({ + address: (0, utils_12.resolveEvmAddress)(this, addressOrName), + blockHash: this._getBlockTag(blockTag) + }); + const contractInfo = yield this.queryContractInfo(address, blockHash); + if (contractInfo.isNone) { + return "0x"; + } + const codeHash = contractInfo.unwrap().codeHash; + const api = yield blockHash ? this.api.at(blockHash) : this.api; + const code = yield api.query.evm.codes(codeHash); + return code.toHex(); + }); + } + _getBlockTag(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + blockTag = yield blockTag; + if (blockTag === void 0) { + blockTag = "latest"; + } + switch (blockTag) { + case "pending": { + return logger42.throwError("pending tag not implemented", logger_1.Logger.errors.UNSUPPORTED_OPERATION); + } + case "latest": { + const hash8 = yield this.api.rpc.chain.getBlockHash(); + return hash8.toHex(); + } + case "earliest": { + const hash8 = this.api.genesisHash; + return hash8.toHex(); + } + default: { + if (!(0, bytes_1.isHexString)(blockTag)) { + return logger42.throwArgumentError("blocktag should be a hex string", "blockTag", blockTag); + } + if (typeof blockTag === "string" && (0, bytes_1.isHexString)(blockTag, 32)) { + return blockTag; + } + const blockNumber = bignumber_1.BigNumber.from(blockTag).toNumber(); + const hash8 = yield this.api.rpc.chain.getBlockHash(blockNumber); + return hash8.toHex(); + } + } + }); + } + queryAccountInfo(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const resolvedBlockTag = yield blockTag; + if (resolvedBlockTag === "pending") { + const address2 = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + return this.api.query.evm.accounts(address2); + } + const { address, blockHash } = yield (0, properties_1.resolveProperties)({ + address: (0, utils_12.resolveEvmAddress)(this, addressOrName), + blockHash: this._getBlockTag(blockTag) + }); + const apiAt = yield this.api.at(blockHash); + const accountInfo = yield apiAt.query.evm.accounts(address); + return accountInfo; + }); + } + queryContractInfo(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const accountInfo = yield this.queryAccountInfo(addressOrName, blockTag); + if (accountInfo.isNone) { + return this.api.createType("Option", null); + } + return accountInfo.unwrap().contractInfo; + }); + } + getStorageAt(addressOrName, position, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const address = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + const blockHash = yield this._resolveBlockHash(blockTag); + const code = blockHash ? yield this.api.query.evm.accountStorages.at(blockHash, address) : yield this.api.query.evm.accountStorages(address); + return code.toHex(); + }); + } + sendTransaction(signedTransaction) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("sendTransaction"); + }); + } + call(transaction, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield this._resolveTransaction(transaction); + if (blockTag) { + const blockHash = yield this._resolveBlockHash(blockTag); + const result = yield this.api.rpc.evm.call(resolved, blockHash); + return result.toHex(); + } else { + const result = yield this.api.rpc.evm.call({ + to: resolved.to, + from: resolved.from, + data: resolved.data, + storageLimit: "0" + }); + return result.toHex(); + } + }); + } + estimateGas(transaction) { + return __awaiter16(this, void 0, void 0, function* () { + const resources = yield this.estimateResources(transaction); + return resources.gas.add(resources.storage); + }); + } + estimateResources(transaction) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield this._resolveTransaction(transaction); + const from2 = yield resolved.from; + const value = yield resolved.value; + const to2 = yield resolved.to; + const data = yield resolved.data; + const storageLimit = yield this._resolveStorageLimit(resolved); + if (!from2) { + return logger42.throwError("From cannot be undefined"); + } + const extrinsic = !to2 ? this.api.tx.evm.create(data, (0, utils_12.toBN)(value), (0, utils_12.toBN)(yield resolved.gasLimit), (0, utils_12.toBN)(storageLimit)) : this.api.tx.evm.call(to2, data, (0, utils_12.toBN)(value), (0, utils_12.toBN)(yield resolved.gasLimit), (0, utils_12.toBN)(storageLimit)); + const result = yield this.api.rpc.evm.estimateResources( + resolved.from, + extrinsic.toHex() + ); + return { + gas: bignumber_1.BigNumber.from(result.gas.toString()), + storage: bignumber_1.BigNumber.from(result.storage.toString()), + weightFee: bignumber_1.BigNumber.from(result.weightFee.toString()) + }; + }); + } + getBlock(blockHashOrBlockTag) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getBlock"); + }); + } + getBlockWithTransactions(blockHashOrBlockTag) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getBlockWithTransactions"); + }); + } + getTransaction(transactionHash) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getTransaction"); + }); + } + getTransactionReceipt(txHash) { + return __awaiter16(this, void 0, void 0, function* () { + if (!this.dataProvider) + return this._fail("getTransactionReceipt"); + return this.dataProvider.getTransactionReceipt(txHash, this._resolveBlockNumber); + }); + } + resolveName(name6) { + return __awaiter16(this, void 0, void 0, function* () { + return name6; + }); + } + lookupAddress(address) { + return __awaiter16(this, void 0, void 0, function* () { + return address; + }); + } + waitForTransaction(transactionHash, confirmations, timeout) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("waitForTransaction"); + }); + } + getLogs(filter) { + return __awaiter16(this, void 0, void 0, function* () { + if (!this.dataProvider) + return this._fail("getLogs"); + return this.dataProvider.getLogs(filter, this._resolveBlockNumber); + }); + } + _fail(operation) { + return Promise.resolve().then(() => { + logger42.throwError(`Unsupport ${operation}`); + }); + } + emit(eventName, ...args) { + return logger42.throwError("Unsupport Event"); + } + listenerCount(eventName) { + return logger42.throwError("Unsupport Event"); + } + listeners(eventName) { + return logger42.throwError("Unsupport Event"); + } + off(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + on(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + once(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + removeAllListeners(eventName) { + return logger42.throwError("Unsupport Event"); + } + addListener(eventName, listener) { + return this.on(eventName, listener); + } + removeListener(eventName, listener) { + return this.off(eventName, listener); + } + _resolveTransactionReceipt(transactionHash, blockHash, from2) { + return __awaiter16(this, void 0, void 0, function* () { + const detail = yield this.scanner.getBlockDetail({ + blockHash + }); + const blockNumber = detail.number; + const extrinsic = detail.extrinsics.find(({ hash: hash8 }) => hash8 === transactionHash); + if (!extrinsic) { + return logger42.throwError(`Transaction hash not found`); + } + const transactionIndex = extrinsic.index; + const events = detail.events.filter(({ phaseIndex }) => phaseIndex === transactionIndex); + const findCreated = events.find((x) => x.section.toUpperCase() === "EVM" && x.method.toUpperCase() === "CREATED"); + const findExecuted = events.find((x) => x.section.toUpperCase() === "EVM" && x.method.toUpperCase() === "EXECUTED"); + const result = events.find((x) => x.section.toUpperCase() === "SYSTEM" && x.method.toUpperCase() === "EXTRINSICSUCCESS"); + if (!result) { + return logger42.throwError(`Can't find event`); + } + const status = findCreated || findExecuted ? 1 : 0; + const contractAddress = findCreated ? findCreated.args[0] : null; + const to2 = findExecuted ? findExecuted.args[0] : null; + const logs = events.filter((e) => { + return e.method.toUpperCase() === "LOG" && e.section.toUpperCase() === "EVM"; + }).map((log, index) => { + return { + transactionHash, + blockNumber, + blockHash, + transactionIndex, + removed: false, + address: log.args[0].address, + data: log.args[0].data, + topics: log.args[0].topics, + logIndex: index + }; + }); + const gasUsed = bignumber_1.BigNumber.from(result.args[0].weight); + return { + to: to2, + from: from2, + contractAddress, + transactionIndex, + gasUsed, + logsBloom: "0x", + blockHash, + transactionHash, + logs, + blockNumber, + confirmations: 4, + cumulativeGasUsed: gasUsed, + byzantium: false, + status, + effectiveGasPrice: bignumber_1.BigNumber.from("1"), + type: 0 + }; + }); + } + _resolveBlockHash(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + if (!blockTag) + return void 0; + const resolvedBlockHash = yield blockTag; + if (resolvedBlockHash === "pending") { + throw new Error("Unsupport Block Pending"); + } + if (resolvedBlockHash === "latest") { + const hash9 = yield this.api.query.system.blockHash(); + return hash9.toString(); + } + if (resolvedBlockHash === "earliest") { + const hash9 = this.api.query.system.blockHash(0); + return hash9.toString(); + } + if ((0, util_1.isHex)(resolvedBlockHash)) { + return resolvedBlockHash; + } + const hash8 = yield this.api.query.system.blockHash(resolvedBlockHash); + return hash8.toString(); + }); + } + _resolveBlockNumber(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + if (!blockTag) { + return logger42.throwError(`Blocktag cannot be undefined`); + } + const resolvedBlockNumber = yield blockTag; + if (resolvedBlockNumber === "pending") { + throw new Error("Unsupport Block Pending"); + } + if (resolvedBlockNumber === "latest") { + const header = yield this.api.rpc.chain.getHeader(); + return header.number.toNumber(); + } + if (resolvedBlockNumber === "earliest") { + return 0; + } + if ((0, util_1.isNumber)(resolvedBlockNumber)) { + return resolvedBlockNumber; + } else { + throw new Error("Expect blockHash to be a number or tag"); + } + }); + } + _toAddress(addressOrName) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield addressOrName; + const address = (0, util_crypto_1.encodeAddress)((0, util_1.u8aFixLength)((0, util_1.u8aConcat)("evm:", (0, util_1.hexToU8a)(resolved)), 256, true)); + return address.toString(); + }); + } + _resolveTransaction(tx2) { + return __awaiter16(this, void 0, void 0, function* () { + for (const key2 of ["gasLimit", "value"]) { + const typeKey = key2; + if (tx2[typeKey]) { + if (bignumber_1.BigNumber.isBigNumber(tx2[typeKey])) { + tx2[typeKey] = tx2[typeKey].toHexString(); + } else if ((0, util_1.isNumber)(tx2[typeKey])) { + tx2[typeKey] = (0, util_1.numberToHex)(tx2[typeKey]); + } + } + } + delete tx2.nonce; + delete tx2.gasPrice; + delete tx2.chainId; + return tx2; + }); + } + _resolveStorageLimit(tx2) { + return __awaiter16(this, void 0, void 0, function* () { + if (tx2.customData) { + if ("storageLimit" in tx2.customData) { + const storageLimit = tx2.customData.storageLimit; + if (bignumber_1.BigNumber.isBigNumber(storageLimit)) { + return storageLimit; + } else if ((0, util_1.isNumber)(storageLimit)) { + return bignumber_1.BigNumber.from(storageLimit); + } + } + } + return bignumber_1.BigNumber.from(6e4); + }); + } + }; + exports2.Provider = Provider3; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/SigningKey.js + var require_SigningKey = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/SigningKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@reef-chain/evm-provider/TestAccountSigningKey.js + var require_TestAccountSigningKey = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/TestAccountSigningKey.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __classPrivateFieldSet = exports2 && exports2.__classPrivateFieldSet || function(receiver, state, value, kind, f10) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f10) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f10 : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f10.call(receiver, value) : f10 ? f10.value = value : state.set(receiver, value), value; + }; + var __classPrivateFieldGet = exports2 && exports2.__classPrivateFieldGet || function(receiver, state, kind, f10) { + if (kind === "a" && !f10) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f10 : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f10 : kind === "a" ? f10.call(receiver) : f10 ? f10.value : state.get(receiver); + }; + var _TestAccountSigningKey_keyringPairs; + var _TestAccountSigningKey_registry; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TestAccountSigningKey = void 0; + var id4 = 0; + var TestAccountSigningKey = class { + constructor(registry) { + _TestAccountSigningKey_keyringPairs.set(this, void 0); + _TestAccountSigningKey_registry.set(this, void 0); + __classPrivateFieldSet(this, _TestAccountSigningKey_keyringPairs, [], "f"); + __classPrivateFieldSet(this, _TestAccountSigningKey_registry, registry, "f"); + } + signPayload(payload) { + return __awaiter16(this, void 0, void 0, function* () { + const findKeyringPair = __classPrivateFieldGet(this, _TestAccountSigningKey_keyringPairs, "f").find((pair) => pair.address === payload.address); + if (!findKeyringPair) { + throw new Error(`Can't find the keyringpair for ${payload.address}`); + } + return new Promise((resolve) => { + const signed2 = __classPrivateFieldGet(this, _TestAccountSigningKey_registry, "f").createType("ExtrinsicPayload", payload, { version: payload.version }).sign(findKeyringPair); + resolve(Object.assign({ id: ++id4 }, signed2)); + }); + }); + } + addKeyringPair(...keyringPairs) { + __classPrivateFieldSet(this, _TestAccountSigningKey_keyringPairs, __classPrivateFieldGet(this, _TestAccountSigningKey_keyringPairs, "f").concat(...keyringPairs), "f"); + } + }; + exports2.TestAccountSigningKey = TestAccountSigningKey; + _TestAccountSigningKey_keyringPairs = /* @__PURE__ */ new WeakMap(), _TestAccountSigningKey_registry = /* @__PURE__ */ new WeakMap(); + } + }); + + // ../../node_modules/@reef-chain/evm-provider/index.js + var require_evm_provider = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/index.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k22, desc); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding(exports3, m, p); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MAX_STORAGE_LIMIT = exports2.MAX_GAS_LIMIT = void 0; + __exportStar(require_Signer(), exports2); + __exportStar(require_Provider(), exports2); + __exportStar(require_SigningKey(), exports2); + __exportStar(require_TestAccountSigningKey(), exports2); + var utils_12 = require_utils3(); + Object.defineProperty(exports2, "MAX_GAS_LIMIT", { enumerable: true, get: function() { + return utils_12.U64MAX; + } }); + var utils_2 = require_utils3(); + Object.defineProperty(exports2, "MAX_STORAGE_LIMIT", { enumerable: true, get: function() { + return utils_2.U32MAX; + } }); + } + }); + // ../../node_modules/micro-base/index.js var require_micro_base = __commonJS({ "../../node_modules/micro-base/index.js"(exports2) { @@ -33629,7 +91578,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/blakejs/util.js - var require_util2 = __commonJS({ + var require_util20 = __commonJS({ "../../node_modules/blakejs/util.js"(exports2, module2) { var ERROR_MSG_INPUT = "Input must be an string, Buffer or Uint8Array"; function normalizeInput(input) { @@ -33704,7 +91653,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/blakejs/blake2b.js var require_blake2b2 = __commonJS({ "../../node_modules/blakejs/blake2b.js"(exports2, module2) { - var util = require_util2(); + var util = require_util20(); function ADD64AA(v17, a, b) { const o02 = v17[a] + v17[b]; let o1 = v17[a + 1] + v17[b + 1]; @@ -34162,7 +92111,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/blakejs/blake2s.js var require_blake2s = __commonJS({ "../../node_modules/blakejs/blake2s.js"(exports2, module2) { - var util = require_util2(); + var util = require_util20(); function B2S_GET32(v17, i) { return v17[i] ^ v17[i + 1] << 8 ^ v17[i + 2] << 16 ^ v17[i + 3] << 24; } @@ -34529,7 +92478,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/minimalistic-crypto-utils/lib/utils.js - var require_utils5 = __commonJS({ + var require_utils6 = __commonJS({ "../../node_modules/minimalistic-crypto-utils/lib/utils.js"(exports2) { "use strict"; var utils2 = exports2; @@ -34588,13 +92537,13 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/elliptic/lib/elliptic/utils.js - var require_utils6 = __commonJS({ + var require_utils7 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/utils.js"(exports2) { "use strict"; var utils2 = exports2; var BN7 = require_bn6(); var minAssert = require_minimalistic_assert(); - var minUtils = require_utils5(); + var minUtils = require_utils6(); utils2.assert = minAssert; utils2.toArray = minUtils.toArray; utils2.zero2 = minUtils.zero2; @@ -34757,11 +92706,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/elliptic/lib/elliptic/curve/base.js - var require_base = __commonJS({ + var require_base4 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/base.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var getNAF2 = utils2.getNAF; var getJSF2 = utils2.getJSF; var assert6 = utils2.assert; @@ -34993,7 +92942,7 @@ ${formatDisplay(all, fmt)}`); BasePoint2.prototype.encodeCompressed = function encodeCompressed2(enc) { return this.encode(enc, true); }; - BasePoint2.prototype._encode = function _encode3(compact) { + BasePoint2.prototype._encode = function _encode2(compact) { var len = this.curve.p.byteLength(); var x = this.getX().toArray("be", len); if (compact) @@ -35069,10 +93018,10 @@ ${formatDisplay(all, fmt)}`); var require_short = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/short.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); + var Base2 = require_base4(); var assert6 = utils2.assert; function ShortCurve2(conf) { Base2.call(this, "short", conf); @@ -35769,8 +93718,8 @@ ${formatDisplay(all, fmt)}`); "use strict"; var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); - var utils2 = require_utils6(); + var Base2 = require_base4(); + var utils2 = require_utils7(); function MontCurve(conf) { Base2.call(this, "mont", conf); this.a = new BN7(conf.a, 16).toRed(this.red); @@ -35814,7 +93763,7 @@ ${formatDisplay(all, fmt)}`); }; Point4.prototype.precompute = function precompute2() { }; - Point4.prototype._encode = function _encode3() { + Point4.prototype._encode = function _encode2() { return this.getX().toArray("be", this.curve.p.byteLength()); }; Point4.fromJSON = function fromJSON2(curve, obj) { @@ -35895,10 +93844,10 @@ ${formatDisplay(all, fmt)}`); var require_edwards2 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/edwards.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); + var Base2 = require_base4(); var assert6 = utils2.assert; function EdwardsCurve(conf) { this.twisted = (conf.a | 0) !== 1; @@ -36197,7 +94146,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/curve/index.js"(exports2) { "use strict"; var curve = exports2; - curve.base = require_base(); + curve.base = require_base4(); curve.short = require_short(); curve.mont = require_mont(); curve.edwards = require_edwards2(); @@ -36997,7 +94946,7 @@ ${formatDisplay(all, fmt)}`); var curves = exports2; var hash8 = require_hash(); var curve = require_curve2(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function PresetCurve(options) { if (options.type === "short") @@ -37168,7 +95117,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/hmac-drbg/lib/hmac-drbg.js"(exports2, module2) { "use strict"; var hash8 = require_hash(); - var utils2 = require_utils5(); + var utils2 = require_utils6(); var assert6 = require_minimalistic_assert(); function HmacDRBG2(options) { if (!(this instanceof HmacDRBG2)) @@ -37262,7 +95211,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/ec/key.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function KeyPair2(ec3, options) { this.ec = ec3; @@ -37356,7 +95305,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/ec/signature.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function Signature3(options, enc) { if (options instanceof Signature3) @@ -37503,7 +95452,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var BN7 = require_bn6(); var HmacDRBG2 = require_hmac_drbg(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var curves = require_curves(); var rand2 = require_brorand(); var assert6 = utils2.assert; @@ -37681,7 +95630,7 @@ ${formatDisplay(all, fmt)}`); var require_key3 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/eddsa/key.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var parseBytes = utils2.parseBytes; var cachedProperty = utils2.cachedProperty; @@ -37756,7 +95705,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/eddsa/signature.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var cachedProperty = utils2.cachedProperty; var parseBytes = utils2.parseBytes; @@ -37806,7 +95755,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var hash8 = require_hash(); var curves = require_curves(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var parseBytes = utils2.parseBytes; var KeyPair2 = require_key3(); @@ -37894,7 +95843,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var elliptic2 = exports2; elliptic2.version = require_package().version; - elliptic2.utils = require_utils6(); + elliptic2.utils = require_utils7(); elliptic2.rand = require_brorand(); elliptic2.curve = require_curve2(); elliptic2.curves = require_curves(); @@ -40613,7 +98562,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/buffer/index.js - var require_buffer4 = __commonJS({ + var require_buffer5 = __commonJS({ "../../node_modules/buffer/index.js"(exports2) { "use strict"; var base646 = require_base64_js(); @@ -40879,7 +98828,7 @@ ${formatDisplay(all, fmt)}`); return false; } }; - Buffer2.concat = function concat13(list, length) { + Buffer2.concat = function concat12(list, length) { if (!Array.isArray(list)) { throw new TypeError('"list" argument must be an Array of Buffers'); } @@ -42309,7 +100258,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/safe-buffer/index.js var require_safe_buffer = __commonJS({ "../../node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -42365,7 +100314,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/randombytes/browser.js - var require_browser5 = __commonJS({ + var require_browser7 = __commonJS({ "../../node_modules/randombytes/browser.js"(exports2, module2) { "use strict"; var MAX_BYTES = 65536; @@ -42404,7 +100353,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/events/events.js - var require_events = __commonJS({ + var require_events5 = __commonJS({ "../../node_modules/events/events.js"(exports2, module2) { "use strict"; var R = typeof Reflect === "object" ? Reflect : null; @@ -42778,12 +100727,12 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/readable-stream/lib/internal/streams/stream-browser.js var require_stream_browser = __commonJS({ "../../node_modules/readable-stream/lib/internal/streams/stream-browser.js"(exports2, module2) { - module2.exports = require_events().EventEmitter; + module2.exports = require_events5().EventEmitter; } }); // (disabled):../../node_modules/util/util.js - var require_util3 = __commonJS({ + var require_util21 = __commonJS({ "(disabled):../../node_modules/util/util.js"() { } }); @@ -42861,9 +100810,9 @@ ${formatDisplay(all, fmt)}`); } return (hint === "string" ? String : Number)(input); } - var _require = require_buffer4(); + var _require = require_buffer5(); var Buffer2 = _require.Buffer; - var _require2 = require_util3(); + var _require2 = require_util21(); var inspect4 = _require2.inspect; var custom = inspect4 && inspect4.custom || "inspect"; function copyBuffer(src, target, offset) { @@ -42934,7 +100883,7 @@ ${formatDisplay(all, fmt)}`); } }, { key: "concat", - value: function concat13(n) { + value: function concat12(n) { if (this.length === 0) return Buffer2.alloc(0); var ret = Buffer2.allocUnsafe(n >>> 0); @@ -43272,7 +101221,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/util-deprecate/browser.js - var require_browser6 = __commonJS({ + var require_browser8 = __commonJS({ "../../node_modules/util-deprecate/browser.js"(exports2, module2) { module2.exports = deprecate; function deprecate(fn2, msg) { @@ -43326,10 +101275,10 @@ ${formatDisplay(all, fmt)}`); var Duplex; Writable.WritableState = WritableState; var internalUtil = { - deprecate: require_browser6() + deprecate: require_browser8() }; var Stream = require_stream_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { @@ -44447,12 +102396,12 @@ ${formatDisplay(all, fmt)}`); module2.exports = Readable; var Duplex; Readable.ReadableState = ReadableState; - var EE2 = require_events().EventEmitter; + var EE2 = require_events5().EventEmitter; var EElistenerCount = function EElistenerCount2(emitter, type) { return emitter.listeners(type).length; }; var Stream = require_stream_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { @@ -44461,7 +102410,7 @@ ${formatDisplay(all, fmt)}`); function _isUint8Array(obj) { return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } - var debugUtil = require_util3(); + var debugUtil = require_util21(); var debug; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog("stream"); @@ -45767,7 +103716,7 @@ ${formatDisplay(all, fmt)}`); var require_ripemd160 = __commonJS({ "../../node_modules/ripemd160/index.js"(exports2, module2) { "use strict"; - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var inherits = require_inherits_browser(); var HashBase = require_hash_base2(); var ARRAY16 = new Array(16); @@ -47278,7 +105227,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-hash/browser.js - var require_browser7 = __commonJS({ + var require_browser9 = __commonJS({ "../../node_modules/create-hash/browser.js"(exports2, module2) { "use strict"; var inherits = require_inherits_browser(); @@ -47360,7 +105309,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-hmac/browser.js - var require_browser8 = __commonJS({ + var require_browser10 = __commonJS({ "../../node_modules/create-hmac/browser.js"(exports2, module2) { "use strict"; var inherits = require_inherits_browser(); @@ -47733,7 +105682,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/pbkdf2/lib/async.js - var require_async = __commonJS({ + var require_async2 = __commonJS({ "../../node_modules/pbkdf2/lib/async.js"(exports2, module2) { var Buffer2 = require_safe_buffer().Buffer; var checkParameters = require_precondition(); @@ -47854,15 +105803,15 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/pbkdf2/browser.js - var require_browser9 = __commonJS({ + var require_browser11 = __commonJS({ "../../node_modules/pbkdf2/browser.js"(exports2) { - exports2.pbkdf2 = require_async(); + exports2.pbkdf2 = require_async2(); exports2.pbkdf2Sync = require_sync_browser(); } }); // ../../node_modules/des.js/lib/des/utils.js - var require_utils7 = __commonJS({ + var require_utils8 = __commonJS({ "../../node_modules/des.js/lib/des/utils.js"(exports2) { "use strict"; exports2.readUInt32BE = function readUInt32BE(bytes5, off) { @@ -48739,7 +106688,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var assert6 = require_minimalistic_assert(); var inherits = require_inherits_browser(); - var utils2 = require_utils7(); + var utils2 = require_utils8(); var Cipher = require_cipher(); function DESState() { this.tmp = new Array(2); @@ -48967,7 +106916,7 @@ ${formatDisplay(all, fmt)}`); var require_des2 = __commonJS({ "../../node_modules/des.js/lib/des.js"(exports2) { "use strict"; - exports2.utils = require_utils7(); + exports2.utils = require_utils8(); exports2.Cipher = require_cipher(); exports2.DES = require_des(); exports2.CBC = require_cbc(); @@ -50120,7 +108069,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-aes/browser.js - var require_browser10 = __commonJS({ + var require_browser12 = __commonJS({ "../../node_modules/browserify-aes/browser.js"(exports2) { var ciphers = require_encrypter(); var deciphers = require_decrypter(); @@ -50167,10 +108116,10 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-cipher/browser.js - var require_browser11 = __commonJS({ + var require_browser13 = __commonJS({ "../../node_modules/browserify-cipher/browser.js"(exports2) { var DES = require_browserify_des(); - var aes3 = require_browser10(); + var aes3 = require_browser12(); var aesModes = require_modes(); var desModes = require_modes2(); var ebtk = require_evp_bytestokey(); @@ -50325,7 +108274,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/diffie-hellman/lib/generatePrime.js var require_generatePrime = __commonJS({ "../../node_modules/diffie-hellman/lib/generatePrime.js"(exports2, module2) { - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); module2.exports = findPrime; findPrime.simpleSieve = simpleSieve; findPrime.fermatTest = fermatTest; @@ -50470,7 +108419,7 @@ ${formatDisplay(all, fmt)}`); var THREE = new BN7(3); var SEVEN = new BN7(7); var primes = require_generatePrime(); - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); module2.exports = DH2; function setPublicKey(pub, enc) { enc = enc || "utf8"; @@ -50605,7 +108554,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/diffie-hellman/browser.js - var require_browser12 = __commonJS({ + var require_browser14 = __commonJS({ "../../node_modules/diffie-hellman/browser.js"(exports2) { var generatePrime = require_generatePrime(); var primes = require_primes(); @@ -50701,14 +108650,14 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js var require_stream_browser2 = __commonJS({ "../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js"(exports2, module2) { - module2.exports = require_events().EventEmitter; + module2.exports = require_events5().EventEmitter; } }); // ../../node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer/index.js var require_safe_buffer2 = __commonJS({ "../../node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -50763,7 +108712,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/core-util-is/lib/util.js - var require_util4 = __commonJS({ + var require_util22 = __commonJS({ "../../node_modules/core-util-is/lib/util.js"(exports2) { function isArray4(arg) { if (Array.isArray) { @@ -50824,7 +108773,7 @@ ${formatDisplay(all, fmt)}`); return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined"; } exports2.isPrimitive = isPrimitive; - exports2.isBuffer = require_buffer4().Buffer.isBuffer; + exports2.isBuffer = require_buffer5().Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } @@ -50841,7 +108790,7 @@ ${formatDisplay(all, fmt)}`); } } var Buffer2 = require_safe_buffer2().Buffer; - var util = require_util3(); + var util = require_util21(); function copyBuffer(src, target, offset) { src.copy(target, offset); } @@ -50893,7 +108842,7 @@ ${formatDisplay(all, fmt)}`); } return ret; }; - BufferList.prototype.concat = function concat13(n) { + BufferList.prototype.concat = function concat12(n) { if (this.length === 0) return Buffer2.alloc(0); var ret = Buffer2.allocUnsafe(n >>> 0); @@ -51003,10 +108952,10 @@ ${formatDisplay(all, fmt)}`); var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; var Duplex; Writable.WritableState = WritableState; - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); var internalUtil = { - deprecate: require_browser6() + deprecate: require_browser8() }; var Stream = require_stream_browser2(); var Buffer2 = require_safe_buffer2().Buffer; @@ -51464,7 +109413,7 @@ ${formatDisplay(all, fmt)}`); return keys2; }; module2.exports = Duplex; - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); var Readable = require_stream_readable2(); var Writable = require_stream_writable2(); @@ -51534,7 +109483,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer/index.js var require_safe_buffer3 = __commonJS({ "../../node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -51857,7 +109806,7 @@ ${formatDisplay(all, fmt)}`); var isArray4 = require_isarray(); var Duplex; Readable.ReadableState = ReadableState; - var EE2 = require_events().EventEmitter; + var EE2 = require_events5().EventEmitter; var EElistenerCount = function(emitter, type) { return emitter.listeners(type).length; }; @@ -51871,9 +109820,9 @@ ${formatDisplay(all, fmt)}`); function _isUint8Array(obj) { return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); - var debugUtil = require_util3(); + var debugUtil = require_util21(); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog("stream"); @@ -52609,7 +110558,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; module2.exports = Transform; var Duplex = require_stream_duplex2(); - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); util.inherits(Transform, Duplex); function afterTransform(er2, data) { @@ -52716,7 +110665,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; module2.exports = PassThrough; var Transform = require_stream_transform2(); - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); util.inherits(PassThrough, Transform); function PassThrough(options) { @@ -55683,7 +113632,7 @@ ${formatDisplay(all, fmt)}`); var require_browserify_rsa = __commonJS({ "../../node_modules/browserify-rsa/index.js"(exports2, module2) { var BN7 = require_bn9(); - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); function blind(priv) { var r10 = getr(priv); var blinder = r10.toRed(BN7.mont(priv.modulus)).redPow(new BN7(priv.publicExponent)).fromRed(); @@ -58806,11 +116755,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/buffer.js - var require_buffer5 = __commonJS({ + var require_buffer6 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/buffer.js"(exports2) { var inherits = require_inherits_browser(); - var Reporter = require_base2().Reporter; - var Buffer2 = require_buffer4().Buffer; + var Reporter = require_base5().Reporter; + var Buffer2 = require_buffer5().Buffer; function DecoderBuffer(base2, options) { Reporter.call(this, options); if (!Buffer2.isBuffer(base2)) { @@ -58908,11 +116857,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/node.js - var require_node = __commonJS({ + var require_node2 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/node.js"(exports2, module2) { - var Reporter = require_base2().Reporter; - var EncoderBuffer = require_base2().EncoderBuffer; - var DecoderBuffer = require_base2().DecoderBuffer; + var Reporter = require_base5().Reporter; + var EncoderBuffer = require_base5().EncoderBuffer; + var DecoderBuffer = require_base5().DecoderBuffer; var assert6 = require_minimalistic_assert(); var tags = [ "seq", @@ -59441,20 +117390,20 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/index.js - var require_base2 = __commonJS({ + var require_base5 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/index.js"(exports2) { var base2 = exports2; base2.Reporter = require_reporter().Reporter; - base2.DecoderBuffer = require_buffer5().DecoderBuffer; - base2.EncoderBuffer = require_buffer5().EncoderBuffer; - base2.Node = require_node(); + base2.DecoderBuffer = require_buffer6().DecoderBuffer; + base2.EncoderBuffer = require_buffer6().EncoderBuffer; + base2.Node = require_node2(); } }); // ../../node_modules/asn1.js/lib/asn1/constants/der.js var require_der = __commonJS({ "../../node_modules/asn1.js/lib/asn1/constants/der.js"(exports2) { - var constants2 = require_constants2(); + var constants2 = require_constants5(); exports2.tagClass = { 0: "universal", 1: "application", @@ -59498,7 +117447,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/constants/index.js - var require_constants2 = __commonJS({ + var require_constants5 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/constants/index.js"(exports2) { var constants2 = exports2; constants2._reverse = function reverse(map2) { @@ -59782,7 +117731,7 @@ ${formatDisplay(all, fmt)}`); var require_pem = __commonJS({ "../../node_modules/asn1.js/lib/asn1/decoders/pem.js"(exports2, module2) { var inherits = require_inherits_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var DERDecoder = require_der2(); function PEMDecoder(entity) { DERDecoder.call(this, entity); @@ -59836,7 +117785,7 @@ ${formatDisplay(all, fmt)}`); var require_der3 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/encoders/der.js"(exports2, module2) { var inherits = require_inherits_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var asn1 = require_asn1(); var base2 = asn1.base; var der = asn1.constants.der; @@ -60101,8 +118050,8 @@ ${formatDisplay(all, fmt)}`); var asn1 = exports2; asn1.bignum = require_bn6(); asn1.define = require_api().define; - asn1.base = require_base2(); - asn1.constants = require_constants2(); + asn1.base = require_base5(); + asn1.constants = require_constants5(); asn1.decoders = require_decoders(); asn1.encoders = require_encoders(); } @@ -60328,7 +118277,7 @@ ${formatDisplay(all, fmt)}`); var startRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m; var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m; var evp = require_evp_bytestokey(); - var ciphers = require_browser10(); + var ciphers = require_browser12(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function(okey, password) { var key2 = okey.toString(); @@ -60364,8 +118313,8 @@ ${formatDisplay(all, fmt)}`); var asn1 = require_asn12(); var aesid = require_aesid(); var fixProc = require_fixProc(); - var ciphers = require_browser10(); - var compat = require_browser9(); + var ciphers = require_browser12(); + var compat = require_browser11(); var Buffer2 = require_safe_buffer().Buffer; function decrypt3(data, password) { var salt = data.algorithm.decrypt.kde.kdeparams.salt; @@ -60486,7 +118435,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/browserify-sign/browser/sign.js"(exports2, module2) { "use strict"; var Buffer2 = require_safe_buffer().Buffer; - var createHmac = require_browser8(); + var createHmac = require_browser10(); var crt = require_browserify_rsa(); var EC3 = require_elliptic().ec; var BN7 = require_bn10(); @@ -60726,11 +118675,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-sign/browser/index.js - var require_browser13 = __commonJS({ + var require_browser15 = __commonJS({ "../../node_modules/browserify-sign/browser/index.js"(exports2, module2) { "use strict"; var Buffer2 = require_safe_buffer().Buffer; - var createHash = require_browser7(); + var createHash = require_browser9(); var stream = require_readable_browser2(); var inherits = require_inherits_browser(); var sign4 = require_sign4(); @@ -60807,7 +118756,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-ecdh/browser.js - var require_browser14 = __commonJS({ + var require_browser16 = __commonJS({ "../../node_modules/create-ecdh/browser.js"(exports2, module2) { var elliptic2 = require_elliptic(); var BN7 = require_bn6(); @@ -60927,7 +118876,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/public-encrypt/mgf.js var require_mgf = __commonJS({ "../../node_modules/public-encrypt/mgf.js"(exports2, module2) { - var createHash = require_browser7(); + var createHash = require_browser9(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function(seed, len) { var t = Buffer2.alloc(0); @@ -60977,8 +118926,8 @@ ${formatDisplay(all, fmt)}`); var require_publicEncrypt = __commonJS({ "../../node_modules/public-encrypt/publicEncrypt.js"(exports2, module2) { var parseKeys = require_parse_asn1(); - var randomBytes3 = require_browser5(); - var createHash = require_browser7(); + var randomBytes3 = require_browser7(); + var createHash = require_browser9(); var mgf = require_mgf(); var xor = require_xor(); var BN7 = require_bn6(); @@ -61073,7 +119022,7 @@ ${formatDisplay(all, fmt)}`); var xor = require_xor(); var BN7 = require_bn6(); var crt = require_browserify_rsa(); - var createHash = require_browser7(); + var createHash = require_browser9(); var withPublic = require_withPublic(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function privateDecrypt(privateKey, enc, reverse) { @@ -61172,7 +119121,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/public-encrypt/browser.js - var require_browser15 = __commonJS({ + var require_browser17 = __commonJS({ "../../node_modules/public-encrypt/browser.js"(exports2) { exports2.publicEncrypt = require_publicEncrypt(); exports2.privateDecrypt = require_privateDecrypt(); @@ -61186,14 +119135,14 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/randomfill/browser.js - var require_browser16 = __commonJS({ + var require_browser18 = __commonJS({ "../../node_modules/randomfill/browser.js"(exports2) { "use strict"; function oldBrowser() { throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11"); } var safeBuffer = require_safe_buffer(); - var randombytes = require_browser5(); + var randombytes = require_browser7(); var Buffer2 = safeBuffer.Buffer; var kBufferMaxLength = safeBuffer.kMaxLength; var crypto8 = global.crypto || global.msCrypto; @@ -61292,19 +119241,19 @@ ${formatDisplay(all, fmt)}`); var require_crypto_browserify2 = __commonJS({ "../../node_modules/crypto-browserify/index.js"(exports2) { "use strict"; - exports2.randomBytes = exports2.rng = exports2.pseudoRandomBytes = exports2.prng = require_browser5(); - exports2.createHash = exports2.Hash = require_browser7(); - exports2.createHmac = exports2.Hmac = require_browser8(); + exports2.randomBytes = exports2.rng = exports2.pseudoRandomBytes = exports2.prng = require_browser7(); + exports2.createHash = exports2.Hash = require_browser9(); + exports2.createHmac = exports2.Hmac = require_browser10(); var algos = require_algos(); var algoKeys = Object.keys(algos); var hashes = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(algoKeys); exports2.getHashes = function() { return hashes; }; - var p = require_browser9(); + var p = require_browser11(); exports2.pbkdf2 = p.pbkdf2; exports2.pbkdf2Sync = p.pbkdf2Sync; - var aes3 = require_browser11(); + var aes3 = require_browser13(); exports2.Cipher = aes3.Cipher; exports2.createCipher = aes3.createCipher; exports2.Cipheriv = aes3.Cipheriv; @@ -61315,24 +119264,24 @@ ${formatDisplay(all, fmt)}`); exports2.createDecipheriv = aes3.createDecipheriv; exports2.getCiphers = aes3.getCiphers; exports2.listCiphers = aes3.listCiphers; - var dh2 = require_browser12(); + var dh2 = require_browser14(); exports2.DiffieHellmanGroup = dh2.DiffieHellmanGroup; exports2.createDiffieHellmanGroup = dh2.createDiffieHellmanGroup; exports2.getDiffieHellman = dh2.getDiffieHellman; exports2.createDiffieHellman = dh2.createDiffieHellman; exports2.DiffieHellman = dh2.DiffieHellman; - var sign4 = require_browser13(); + var sign4 = require_browser15(); exports2.createSign = sign4.createSign; exports2.Sign = sign4.Sign; exports2.createVerify = sign4.createVerify; exports2.Verify = sign4.Verify; - exports2.createECDH = require_browser14(); - var publicEncrypt = require_browser15(); + exports2.createECDH = require_browser16(); + var publicEncrypt = require_browser17(); exports2.publicEncrypt = publicEncrypt.publicEncrypt; exports2.privateEncrypt = publicEncrypt.privateEncrypt; exports2.publicDecrypt = publicEncrypt.publicDecrypt; exports2.privateDecrypt = publicEncrypt.privateDecrypt; - var rf2 = require_browser16(); + var rf2 = require_browser18(); exports2.randomFill = rf2.randomFill; exports2.randomFillSync = rf2.randomFillSync; exports2.createCredentials = function() { @@ -61363,7 +119312,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/scryptsy/lib/utils.js - var require_utils8 = __commonJS({ + var require_utils9 = __commonJS({ "../../node_modules/scryptsy/lib/utils.js"(exports2, module2) { var crypto8 = require_crypto_browserify2(); var MAX_VALUE = 2147483647; @@ -61555,7 +119504,7 @@ ${formatDisplay(all, fmt)}`); var { checkAndInit, smixSync - } = require_utils8(); + } = require_utils9(); function scrypt5(key2, salt, N11, r10, p, dkLen, progressCallback) { const { XY: XY2, @@ -61582,7 +119531,7 @@ ${formatDisplay(all, fmt)}`); var { checkAndInit, smix - } = require_utils8(); + } = require_utils9(); async function scrypt5(key2, salt, N11, r10, p, dkLen, progressCallback, promiseInterval) { const { XY: XY2, @@ -61603,7 +119552,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/scryptsy/lib/index.js - var require_lib7 = __commonJS({ + var require_lib12 = __commonJS({ "../../node_modules/scryptsy/lib/index.js"(exports2, module2) { var scrypt5 = require_scryptSync(); scrypt5.async = require_scrypt4(); @@ -67484,7 +125433,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/store/src/util.js - var require_util5 = __commonJS({ + var require_util23 = __commonJS({ "../../node_modules/store/src/util.js"(exports2, module2) { var assign = make_assign(); var create = make_create(); @@ -67600,7 +125549,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/src/store-engine.js var require_store_engine = __commonJS({ "../../node_modules/store/src/store-engine.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var slice = util.slice; var pluck = util.pluck; var each = util.each; @@ -67788,7 +125737,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/localStorage.js var require_localStorage = __commonJS({ "../../node_modules/store/storages/localStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "localStorage", @@ -67825,7 +125774,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/oldFF-globalStorage.js var require_oldFF_globalStorage = __commonJS({ "../../node_modules/store/storages/oldFF-globalStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "oldFF-globalStorage", @@ -67862,7 +125811,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/oldIE-userDataStorage.js var require_oldIE_userDataStorage = __commonJS({ "../../node_modules/store/storages/oldIE-userDataStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "oldIE-userDataStorage", @@ -67960,7 +125909,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/cookieStorage.js var require_cookieStorage = __commonJS({ "../../node_modules/store/storages/cookieStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; var trim2 = util.trim; module2.exports = { @@ -68017,7 +125966,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/sessionStorage.js var require_sessionStorage = __commonJS({ "../../node_modules/store/storages/sessionStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "sessionStorage", @@ -68086,7 +126035,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/store/storages/all.js - var require_all = __commonJS({ + var require_all2 = __commonJS({ "../../node_modules/store/storages/all.js"(exports2, module2) { module2.exports = [ require_localStorage(), @@ -68285,7 +126234,7 @@ ${formatDisplay(all, fmt)}`); var require_store_legacy = __commonJS({ "../../node_modules/store/dist/store.legacy.js"(exports2, module2) { var engine = require_store_engine(); - var storages = require_all(); + var storages = require_all2(); var plugins = [require_json22()]; module2.exports = engine.createStore(storages, plugins); } @@ -158923,175 +216872,34 @@ ${gz(e, r10)}`); var ethers_exports = {}; __export(ethers_exports, { BaseContract: () => BaseContract, - BigNumber: () => import_bignumber18.BigNumber, + BigNumber: () => import_bignumber17.BigNumber, Contract: () => Contract, ContractFactory: () => ContractFactory, - FixedNumber: () => import_bignumber18.FixedNumber, - Signer: () => Signer, - VoidSigner: () => VoidSigner, + FixedNumber: () => import_bignumber17.FixedNumber, + Signer: () => import_abstract_signer4.Signer, + VoidSigner: () => import_abstract_signer4.VoidSigner, Wallet: () => Wallet, Wordlist: () => Wordlist, constants: () => constants, - errors: () => import_logger44.ErrorCode, + errors: () => import_logger40.ErrorCode, getDefaultProvider: () => getDefaultProvider, - logger: () => logger42, - providers: () => lib_exports3, + logger: () => logger38, + providers: () => lib_exports2, utils: () => utils_exports, - version: () => version23, + version: () => version19, wordlists: () => wordlists }); // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js var import_bignumber = __toESM(require_lib3()); - - // ../../node_modules/@ethersproject/properties/lib.esm/index.js + var import_properties = __toESM(require_lib7()); var import_logger = __toESM(require_lib()); - // ../../node_modules/@ethersproject/properties/lib.esm/_version.js - var version2 = "properties/5.7.0"; - - // ../../node_modules/@ethersproject/properties/lib.esm/index.js - var __awaiter2 = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - var logger = new import_logger.Logger(version2); - function defineReadOnly(object, name6, value) { - Object.defineProperty(object, name6, { - enumerable: true, - value, - writable: false - }); - } - function getStatic(ctor, key2) { - for (let i = 0; i < 32; i++) { - if (ctor[key2]) { - return ctor[key2]; - } - if (!ctor.prototype || typeof ctor.prototype !== "object") { - break; - } - ctor = Object.getPrototypeOf(ctor.prototype).constructor; - } - return null; - } - function resolveProperties(object) { - return __awaiter2(this, void 0, void 0, function* () { - const promises = Object.keys(object).map((key2) => { - const value = object[key2]; - return Promise.resolve(value).then((v) => ({ key: key2, value: v })); - }); - const results = yield Promise.all(promises); - return results.reduce((accum, result) => { - accum[result.key] = result.value; - return accum; - }, {}); - }); - } - function checkProperties(object, properties) { - if (!object || typeof object !== "object") { - logger.throwArgumentError("invalid object", "object", object); - } - Object.keys(object).forEach((key2) => { - if (!properties[key2]) { - logger.throwArgumentError("invalid object key - " + key2, "transaction:" + key2, object); - } - }); - } - function shallowCopy(object) { - const result = {}; - for (const key2 in object) { - result[key2] = object[key2]; - } - return result; - } - var opaque = { bigint: true, boolean: true, "function": true, number: true, string: true }; - function _isFrozen(object) { - if (object === void 0 || object === null || opaque[typeof object]) { - return true; - } - if (Array.isArray(object) || typeof object === "object") { - if (!Object.isFrozen(object)) { - return false; - } - const keys = Object.keys(object); - for (let i = 0; i < keys.length; i++) { - let value = null; - try { - value = object[keys[i]]; - } catch (error) { - continue; - } - if (!_isFrozen(value)) { - return false; - } - } - return true; - } - return logger.throwArgumentError(`Cannot deepCopy ${typeof object}`, "object", object); - } - function _deepCopy(object) { - if (_isFrozen(object)) { - return object; - } - if (Array.isArray(object)) { - return Object.freeze(object.map((item) => deepCopy(item))); - } - if (typeof object === "object") { - const result = {}; - for (const key2 in object) { - const value = object[key2]; - if (value === void 0) { - continue; - } - defineReadOnly(result, key2, deepCopy(value)); - } - return result; - } - return logger.throwArgumentError(`Cannot deepCopy ${typeof object}`, "object", object); - } - function deepCopy(object) { - return _deepCopy(object); - } - var Description = class { - constructor(info) { - for (const key2 in info) { - this[key2] = deepCopy(info[key2]); - } - } - }; - - // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js - var import_logger2 = __toESM(require_lib()); - // ../../node_modules/@ethersproject/abi/lib.esm/_version.js - var version3 = "abi/5.7.0"; + var version2 = "abi/5.7.0"; // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js - var logger2 = new import_logger2.Logger(version3); + var logger = new import_logger.Logger(version2); var _constructorGuard = {}; var ModifiersBytes = { calldata: true, memory: true, storage: true }; var ModifiersNest = { calldata: true, memory: true }; @@ -159110,14 +216918,14 @@ ${gz(e, r10)}`); } } if (ModifiersBytes[name6] || name6 === "payable") { - logger2.throwArgumentError("invalid modifier", "name", name6); + logger.throwArgumentError("invalid modifier", "name", name6); } return false; } function parseParamType(param, allowIndexed) { let originalParam = param; function throwError(i) { - logger2.throwArgumentError(`unexpected character at position ${i}`, "param", param); + logger.throwArgumentError(`unexpected character at position ${i}`, "param", param); } param = param.replace(/\s/g, " "); function newNode(parent2) { @@ -159246,7 +217054,7 @@ ${gz(e, r10)}`); } } if (node.parent) { - logger2.throwArgumentError("unexpected eof", "param", param); + logger.throwArgumentError("unexpected eof", "param", param); } delete parent.state; if (node.name === "indexed") { @@ -159266,7 +217074,7 @@ ${gz(e, r10)}`); } function populate(object, params) { for (let key2 in params) { - defineReadOnly(object, key2, params[key2]); + (0, import_properties.defineReadOnly)(object, key2, params[key2]); } } var FormatTypes = Object.freeze({ @@ -159279,7 +217087,7 @@ ${gz(e, r10)}`); var ParamType = class { constructor(constructorGuard, params) { if (constructorGuard !== _constructorGuard) { - logger2.throwError("use fromString", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("use fromString", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new ParamType()" }); } @@ -159309,7 +217117,7 @@ ${gz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { let result2 = { @@ -159386,7 +217194,7 @@ ${gz(e, r10)}`); var Fragment = class { constructor(constructorGuard, params) { if (constructorGuard !== _constructorGuard) { - logger2.throwError("use a static from method", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("use a static from method", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new Fragment()" }); } @@ -159420,7 +217228,7 @@ ${gz(e, r10)}`); case "receive": return null; } - return logger2.throwArgumentError("invalid fragment object", "value", value); + return logger.throwArgumentError("invalid fragment object", "value", value); } static fromString(value) { value = value.replace(/\s/g, " "); @@ -159435,7 +217243,7 @@ ${gz(e, r10)}`); } else if (value.split(" ")[0] === "error") { return ErrorFragment.fromString(value.substring(5).trim()); } - return logger2.throwArgumentError("unsupported fragment", "value", value); + return logger.throwArgumentError("unsupported fragment", "value", value); } static isFragment(value) { return !!(value && value._isFragment); @@ -159447,7 +217255,7 @@ ${gz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159480,7 +217288,7 @@ ${gz(e, r10)}`); return value; } if (value.type !== "event") { - logger2.throwArgumentError("invalid event object", "value", value); + logger.throwArgumentError("invalid event object", "value", value); } const params = { name: verifyIdentifier(value.name), @@ -159493,7 +217301,7 @@ ${gz(e, r10)}`); static fromString(value) { let match = value.match(regexParen); if (!match) { - logger2.throwArgumentError("invalid event string", "value", value); + logger.throwArgumentError("invalid event string", "value", value); } let anonymous = false; match[3].split(" ").forEach((modifier) => { @@ -159504,7 +217312,7 @@ ${gz(e, r10)}`); case "": break; default: - logger2.warn("unknown modifier: " + modifier); + logger.warn("unknown modifier: " + modifier); } }); return EventFragment.fromObject({ @@ -159523,10 +217331,10 @@ ${gz(e, r10)}`); let comps = value.split("@"); if (comps.length !== 1) { if (comps.length > 2) { - logger2.throwArgumentError("invalid human-readable ABI signature", "value", value); + logger.throwArgumentError("invalid human-readable ABI signature", "value", value); } if (!comps[1].match(/^[0-9]+$/)) { - logger2.throwArgumentError("invalid human-readable ABI signature gas", "value", value); + logger.throwArgumentError("invalid human-readable ABI signature gas", "value", value); } params.gas = import_bignumber.BigNumber.from(comps[1]); return comps[0]; @@ -159578,19 +217386,19 @@ ${gz(e, r10)}`); result.constant = result.stateMutability === "view" || result.stateMutability === "pure"; if (value.constant != null) { if (!!value.constant !== result.constant) { - logger2.throwArgumentError("cannot have constant function with mutability " + result.stateMutability, "value", value); + logger.throwArgumentError("cannot have constant function with mutability " + result.stateMutability, "value", value); } } result.payable = result.stateMutability === "payable"; if (value.payable != null) { if (!!value.payable !== result.payable) { - logger2.throwArgumentError("cannot have payable function with mutability " + result.stateMutability, "value", value); + logger.throwArgumentError("cannot have payable function with mutability " + result.stateMutability, "value", value); } } } else if (value.payable != null) { result.payable = !!value.payable; if (value.constant == null && !result.payable && value.type !== "constructor") { - logger2.throwArgumentError("unable to determine stateMutability", "value", value); + logger.throwArgumentError("unable to determine stateMutability", "value", value); } result.constant = !!value.constant; if (result.constant) { @@ -159599,14 +217407,14 @@ ${gz(e, r10)}`); result.stateMutability = result.payable ? "payable" : "nonpayable"; } if (result.payable && result.constant) { - logger2.throwArgumentError("cannot have constant payable function", "value", value); + logger.throwArgumentError("cannot have constant payable function", "value", value); } } else if (value.constant != null) { result.constant = !!value.constant; result.payable = !result.constant; result.stateMutability = result.constant ? "view" : "payable"; } else if (value.type !== "constructor") { - logger2.throwArgumentError("unable to determine stateMutability", "value", value); + logger.throwArgumentError("unable to determine stateMutability", "value", value); } return result; } @@ -159616,7 +217424,7 @@ ${gz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159628,7 +217436,7 @@ ${gz(e, r10)}`); }); } if (format === FormatTypes.sighash) { - logger2.throwError("cannot format a constructor for sighash", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("cannot format a constructor for sighash", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "format(sighash)" }); } @@ -159649,11 +217457,11 @@ ${gz(e, r10)}`); return value; } if (value.type !== "constructor") { - logger2.throwArgumentError("invalid constructor object", "value", value); + logger.throwArgumentError("invalid constructor object", "value", value); } let state = verifyState(value); if (state.constant) { - logger2.throwArgumentError("constructor cannot be constant", "value", value); + logger.throwArgumentError("constructor cannot be constant", "value", value); } const params = { name: null, @@ -159670,7 +217478,7 @@ ${gz(e, r10)}`); value = parseGas(value, params); let parens = value.match(regexParen); if (!parens || parens[1].trim() !== "constructor") { - logger2.throwArgumentError("invalid constructor string", "value", value); + logger.throwArgumentError("invalid constructor string", "value", value); } params.inputs = parseParams(parens[2].trim(), false); parseModifiers(parens[3].trim(), params); @@ -159686,7 +217494,7 @@ ${gz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159733,7 +217541,7 @@ ${gz(e, r10)}`); return value; } if (value.type !== "function") { - logger2.throwArgumentError("invalid function object", "value", value); + logger.throwArgumentError("invalid function object", "value", value); } let state = verifyState(value); const params = { @@ -159753,11 +217561,11 @@ ${gz(e, r10)}`); value = parseGas(value, params); let comps = value.split(" returns "); if (comps.length > 2) { - logger2.throwArgumentError("invalid function string", "value", value); + logger.throwArgumentError("invalid function string", "value", value); } let parens = comps[0].match(regexParen); if (!parens) { - logger2.throwArgumentError("invalid function signature", "value", value); + logger.throwArgumentError("invalid function signature", "value", value); } params.name = parens[1].trim(); if (params.name) { @@ -159768,7 +217576,7 @@ ${gz(e, r10)}`); if (comps.length > 1) { let returns = comps[1].match(regexParen); if (returns[1].trim() != "" || returns[3].trim() != "") { - logger2.throwArgumentError("unexpected tokens", "value", value); + logger.throwArgumentError("unexpected tokens", "value", value); } params.outputs = parseParams(returns[2], false); } else { @@ -159783,7 +217591,7 @@ ${gz(e, r10)}`); function checkForbidden(fragment) { const sig = fragment.format(); if (sig === "Error(string)" || sig === "Panic(uint256)") { - logger2.throwArgumentError(`cannot specify user defined ${sig} error`, "fragment", fragment); + logger.throwArgumentError(`cannot specify user defined ${sig} error`, "fragment", fragment); } return fragment; } @@ -159793,7 +217601,7 @@ ${gz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159820,7 +217628,7 @@ ${gz(e, r10)}`); return value; } if (value.type !== "error") { - logger2.throwArgumentError("invalid error object", "value", value); + logger.throwArgumentError("invalid error object", "value", value); } const params = { type: value.type, @@ -159833,7 +217641,7 @@ ${gz(e, r10)}`); let params = { type: "error" }; let parens = value.match(regexParen); if (!parens) { - logger2.throwArgumentError("invalid error signature", "value", value); + logger.throwArgumentError("invalid error signature", "value", value); } params.name = parens[1].trim(); if (params.name) { @@ -159857,7 +217665,7 @@ ${gz(e, r10)}`); var regexIdentifier = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); function verifyIdentifier(value) { if (!value || !value.match(regexIdentifier)) { - logger2.throwArgumentError(`invalid identifier "${value}"`, "value", value); + logger.throwArgumentError(`invalid identifier "${value}"`, "value", value); } return value; } @@ -159879,7 +217687,7 @@ ${gz(e, r10)}`); } else if (c === ")") { depth--; if (depth === -1) { - logger2.throwArgumentError("unbalanced parenthesis", "value", value); + logger.throwArgumentError("unbalanced parenthesis", "value", value); } } } @@ -159891,14 +217699,16 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/abi/lib.esm/abi-coder.js - var import_bytes9 = __toESM(require_lib2()); - var import_logger7 = __toESM(require_lib()); + var import_bytes6 = __toESM(require_lib2()); + var import_properties3 = __toESM(require_lib7()); + var import_logger4 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js var import_bytes = __toESM(require_lib2()); var import_bignumber2 = __toESM(require_lib3()); - var import_logger3 = __toESM(require_lib()); - var logger3 = new import_logger3.Logger(version3); + var import_properties2 = __toESM(require_lib7()); + var import_logger2 = __toESM(require_lib()); + var logger2 = new import_logger2.Logger(version2); function checkResultErrors(result) { const errors2 = []; const checkErrors = function(path, object) { @@ -159926,12 +217736,12 @@ ${gz(e, r10)}`); this.dynamic = dynamic; } _throwError(message, value) { - logger3.throwArgumentError(message, this.localName, value); + logger2.throwArgumentError(message, this.localName, value); } }; var Writer = class { constructor(wordSize) { - defineReadOnly(this, "wordSize", wordSize || 32); + (0, import_properties2.defineReadOnly)(this, "wordSize", wordSize || 32); this._data = []; this._dataLength = 0; this._padding = new Uint8Array(wordSize); @@ -159961,7 +217771,7 @@ ${gz(e, r10)}`); _getValue(value) { let bytes5 = (0, import_bytes.arrayify)(import_bignumber2.BigNumber.from(value)); if (bytes5.length > this.wordSize) { - logger3.throwError("value out-of-bounds", import_logger3.Logger.errors.BUFFER_OVERRUN, { + logger2.throwError("value out-of-bounds", import_logger2.Logger.errors.BUFFER_OVERRUN, { length: this.wordSize, offset: bytes5.length }); @@ -159985,10 +217795,10 @@ ${gz(e, r10)}`); }; var Reader = class { constructor(data, wordSize, coerceFunc, allowLoose) { - defineReadOnly(this, "_data", (0, import_bytes.arrayify)(data)); - defineReadOnly(this, "wordSize", wordSize || 32); - defineReadOnly(this, "_coerceFunc", coerceFunc); - defineReadOnly(this, "allowLoose", allowLoose); + (0, import_properties2.defineReadOnly)(this, "_data", (0, import_bytes.arrayify)(data)); + (0, import_properties2.defineReadOnly)(this, "wordSize", wordSize || 32); + (0, import_properties2.defineReadOnly)(this, "_coerceFunc", coerceFunc); + (0, import_properties2.defineReadOnly)(this, "allowLoose", allowLoose); this._offset = 0; } get data() { @@ -160016,7 +217826,7 @@ ${gz(e, r10)}`); if (this.allowLoose && loose && this._offset + length <= this._data.length) { alignedLength = length; } else { - logger3.throwError("data out-of-bounds", import_logger3.Logger.errors.BUFFER_OVERRUN, { + logger2.throwError("data out-of-bounds", import_logger2.Logger.errors.BUFFER_OVERRUN, { length: this._data.length, offset: this._offset + alignedLength }); @@ -160037,263 +217847,9 @@ ${gz(e, r10)}`); } }; - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var import_bytes4 = __toESM(require_lib2()); - var import_bignumber3 = __toESM(require_lib3()); - - // ../../node_modules/@ethersproject/keccak256/lib.esm/index.js - var import_js_sha3 = __toESM(require_sha32()); - var import_bytes2 = __toESM(require_lib2()); - function keccak256(data) { - return "0x" + import_js_sha3.default.keccak_256((0, import_bytes2.arrayify)(data)); - } - - // ../../node_modules/@ethersproject/rlp/lib.esm/index.js - var lib_exports = {}; - __export(lib_exports, { - decode: () => decode, - encode: () => encode - }); - var import_bytes3 = __toESM(require_lib2()); - var import_logger4 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/rlp/lib.esm/_version.js - var version4 = "rlp/5.7.0"; - - // ../../node_modules/@ethersproject/rlp/lib.esm/index.js - var logger4 = new import_logger4.Logger(version4); - function arrayifyInteger(value) { - const result = []; - while (value) { - result.unshift(value & 255); - value >>= 8; - } - return result; - } - function unarrayifyInteger(data, offset, length) { - let result = 0; - for (let i = 0; i < length; i++) { - result = result * 256 + data[offset + i]; - } - return result; - } - function _encode(object) { - if (Array.isArray(object)) { - let payload = []; - object.forEach(function(child) { - payload = payload.concat(_encode(child)); - }); - if (payload.length <= 55) { - payload.unshift(192 + payload.length); - return payload; - } - const length2 = arrayifyInteger(payload.length); - length2.unshift(247 + length2.length); - return length2.concat(payload); - } - if (!(0, import_bytes3.isBytesLike)(object)) { - logger4.throwArgumentError("RLP object must be BytesLike", "object", object); - } - const data = Array.prototype.slice.call((0, import_bytes3.arrayify)(object)); - if (data.length === 1 && data[0] <= 127) { - return data; - } else if (data.length <= 55) { - data.unshift(128 + data.length); - return data; - } - const length = arrayifyInteger(data.length); - length.unshift(183 + length.length); - return length.concat(data); - } - function encode(object) { - return (0, import_bytes3.hexlify)(_encode(object)); - } - function _decodeChildren(data, offset, childOffset, length) { - const result = []; - while (childOffset < offset + 1 + length) { - const decoded = _decode(data, childOffset); - result.push(decoded.result); - childOffset += decoded.consumed; - if (childOffset > offset + 1 + length) { - logger4.throwError("child data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - } - return { consumed: 1 + length, result }; - } - function _decode(data, offset) { - if (data.length === 0) { - logger4.throwError("data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - if (data[offset] >= 248) { - const lengthLength = data[offset] - 247; - if (offset + 1 + lengthLength > data.length) { - logger4.throwError("data short segment too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const length = unarrayifyInteger(data, offset + 1, lengthLength); - if (offset + 1 + lengthLength + length > data.length) { - logger4.throwError("data long segment too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length); - } else if (data[offset] >= 192) { - const length = data[offset] - 192; - if (offset + 1 + length > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - return _decodeChildren(data, offset, offset + 1, length); - } else if (data[offset] >= 184) { - const lengthLength = data[offset] - 183; - if (offset + 1 + lengthLength > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const length = unarrayifyInteger(data, offset + 1, lengthLength); - if (offset + 1 + lengthLength + length > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const result = (0, import_bytes3.hexlify)(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length)); - return { consumed: 1 + lengthLength + length, result }; - } else if (data[offset] >= 128) { - const length = data[offset] - 128; - if (offset + 1 + length > data.length) { - logger4.throwError("data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const result = (0, import_bytes3.hexlify)(data.slice(offset + 1, offset + 1 + length)); - return { consumed: 1 + length, result }; - } - return { consumed: 1, result: (0, import_bytes3.hexlify)(data[offset]) }; - } - function decode(data) { - const bytes5 = (0, import_bytes3.arrayify)(data); - const decoded = _decode(bytes5, 0); - if (decoded.consumed !== bytes5.length) { - logger4.throwArgumentError("invalid rlp data", "data", data); - } - return decoded.result; - } - - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var import_logger5 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/address/lib.esm/_version.js - var version5 = "address/5.7.0"; - - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var logger5 = new import_logger5.Logger(version5); - function getChecksumAddress(address) { - if (!(0, import_bytes4.isHexString)(address, 20)) { - logger5.throwArgumentError("invalid address", "address", address); - } - address = address.toLowerCase(); - const chars2 = address.substring(2).split(""); - const expanded = new Uint8Array(40); - for (let i = 0; i < 40; i++) { - expanded[i] = chars2[i].charCodeAt(0); - } - const hashed = (0, import_bytes4.arrayify)(keccak256(expanded)); - for (let i = 0; i < 40; i += 2) { - if (hashed[i >> 1] >> 4 >= 8) { - chars2[i] = chars2[i].toUpperCase(); - } - if ((hashed[i >> 1] & 15) >= 8) { - chars2[i + 1] = chars2[i + 1].toUpperCase(); - } - } - return "0x" + chars2.join(""); - } - var MAX_SAFE_INTEGER = 9007199254740991; - function log10(x) { - if (Math.log10) { - return Math.log10(x); - } - return Math.log(x) / Math.LN10; - } - var ibanLookup = {}; - for (let i = 0; i < 10; i++) { - ibanLookup[String(i)] = String(i); - } - for (let i = 0; i < 26; i++) { - ibanLookup[String.fromCharCode(65 + i)] = String(10 + i); - } - var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER)); - function ibanChecksum(address) { - address = address.toUpperCase(); - address = address.substring(4) + address.substring(0, 2) + "00"; - let expanded = address.split("").map((c) => { - return ibanLookup[c]; - }).join(""); - while (expanded.length >= safeDigits) { - let block = expanded.substring(0, safeDigits); - expanded = parseInt(block, 10) % 97 + expanded.substring(block.length); - } - let checksum = String(98 - parseInt(expanded, 10) % 97); - while (checksum.length < 2) { - checksum = "0" + checksum; - } - return checksum; - } - function getAddress(address) { - let result = null; - if (typeof address !== "string") { - logger5.throwArgumentError("invalid address", "address", address); - } - if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { - if (address.substring(0, 2) !== "0x") { - address = "0x" + address; - } - result = getChecksumAddress(address); - if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { - logger5.throwArgumentError("bad address checksum", "address", address); - } - } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { - if (address.substring(2, 4) !== ibanChecksum(address)) { - logger5.throwArgumentError("bad icap checksum", "address", address); - } - result = (0, import_bignumber3._base36To16)(address.substring(4)); - while (result.length < 40) { - result = "0" + result; - } - result = getChecksumAddress("0x" + result); - } else { - logger5.throwArgumentError("invalid address", "address", address); - } - return result; - } - function isAddress(address) { - try { - getAddress(address); - return true; - } catch (error) { - } - return false; - } - function getIcapAddress(address) { - let base36 = (0, import_bignumber3._base16To36)(getAddress(address).substring(2)).toUpperCase(); - while (base36.length < 30) { - base36 = "0" + base36; - } - return "XE" + ibanChecksum("XE00" + base36) + base36; - } - function getContractAddress(transaction) { - let from2 = null; - try { - from2 = getAddress(transaction.from); - } catch (error) { - logger5.throwArgumentError("missing from address", "transaction", transaction); - } - const nonce = (0, import_bytes4.stripZeros)((0, import_bytes4.arrayify)(import_bignumber3.BigNumber.from(transaction.nonce).toHexString())); - return getAddress((0, import_bytes4.hexDataSlice)(keccak256(encode([from2, nonce])), 12)); - } - function getCreate2Address(from2, salt, initCodeHash) { - if ((0, import_bytes4.hexDataLength)(salt) !== 32) { - logger5.throwArgumentError("salt must be 32 bytes", "salt", salt); - } - if ((0, import_bytes4.hexDataLength)(initCodeHash) !== 32) { - logger5.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash); - } - return getAddress((0, import_bytes4.hexDataSlice)(keccak256((0, import_bytes4.concat)(["0xff", getAddress(from2), salt, initCodeHash])), 12)); - } - // ../../node_modules/@ethersproject/abi/lib.esm/coders/address.js - var import_bytes5 = __toESM(require_lib2()); + var import_address = __toESM(require_lib10()); + var import_bytes2 = __toESM(require_lib2()); var AddressCoder = class extends Coder { constructor(localName) { super("address", "address", localName, false); @@ -160303,19 +217859,19 @@ ${gz(e, r10)}`); } encode(writer, value) { try { - value = getAddress(value); + value = (0, import_address.getAddress)(value); } catch (error) { this._throwError(error.message, value); } return writer.writeValue(value); } decode(reader) { - return getAddress((0, import_bytes5.hexZeroPad)(reader.readValue().toHexString(), 20)); + return (0, import_address.getAddress)((0, import_bytes2.hexZeroPad)(reader.readValue().toHexString(), 20)); } }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/array.js - var import_logger6 = __toESM(require_lib()); + var import_logger3 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js var AnonymousCoder = class extends Coder { @@ -160335,7 +217891,7 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/array.js - var logger6 = new import_logger6.Logger(version3); + var logger3 = new import_logger3.Logger(version2); function pack(writer, coders, values) { let arrayValues = null; if (Array.isArray(values)) { @@ -160345,14 +217901,14 @@ ${gz(e, r10)}`); arrayValues = coders.map((coder) => { const name6 = coder.localName; if (!name6) { - logger6.throwError("cannot encode object for signature with missing names", import_logger6.Logger.errors.INVALID_ARGUMENT, { + logger3.throwError("cannot encode object for signature with missing names", import_logger3.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder, value: values }); } if (unique[name6]) { - logger6.throwError("cannot encode object for signature with duplicate names", import_logger6.Logger.errors.INVALID_ARGUMENT, { + logger3.throwError("cannot encode object for signature with duplicate names", import_logger3.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder, value: values @@ -160362,10 +217918,10 @@ ${gz(e, r10)}`); return values[name6]; }); } else { - logger6.throwArgumentError("invalid tuple value", "tuple", values); + logger3.throwArgumentError("invalid tuple value", "tuple", values); } if (coders.length !== arrayValues.length) { - logger6.throwArgumentError("types/value length mismatch", "tuple", values); + logger3.throwArgumentError("types/value length mismatch", "tuple", values); } let staticWriter = new Writer(writer.wordSize); let dynamicWriter = new Writer(writer.wordSize); @@ -160401,7 +217957,7 @@ ${gz(e, r10)}`); try { value = coder.decode(offsetReader); } catch (error) { - if (error.code === import_logger6.Logger.errors.BUFFER_OVERRUN) { + if (error.code === import_logger3.Logger.errors.BUFFER_OVERRUN) { throw error; } value = error; @@ -160413,7 +217969,7 @@ ${gz(e, r10)}`); try { value = coder.decode(reader); } catch (error) { - if (error.code === import_logger6.Logger.errors.BUFFER_OVERRUN) { + if (error.code === import_logger3.Logger.errors.BUFFER_OVERRUN) { throw error; } value = error; @@ -160497,7 +218053,7 @@ ${gz(e, r10)}`); count = value.length; writer.writeValue(value.length); } - logger6.checkArgumentCount(value.length, count, "coder array" + (this.localName ? " " + this.localName : "")); + logger3.checkArgumentCount(value.length, count, "coder array" + (this.localName ? " " + this.localName : "")); let coders = []; for (let i = 0; i < value.length; i++) { coders.push(this.coder); @@ -160509,7 +218065,7 @@ ${gz(e, r10)}`); if (count === -1) { count = reader.readValue().toNumber(); if (count * 32 > reader._data.length) { - logger6.throwError("insufficient data length", import_logger6.Logger.errors.BUFFER_OVERRUN, { + logger3.throwError("insufficient data length", import_logger3.Logger.errors.BUFFER_OVERRUN, { length: reader._data.length, count }); @@ -160540,7 +218096,7 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/bytes.js - var import_bytes6 = __toESM(require_lib2()); + var import_bytes3 = __toESM(require_lib2()); var DynamicBytesCoder = class extends Coder { constructor(type, localName) { super(type, type, localName, true); @@ -160549,7 +218105,7 @@ ${gz(e, r10)}`); return "0x"; } encode(writer, value) { - value = (0, import_bytes6.arrayify)(value); + value = (0, import_bytes3.arrayify)(value); let length = writer.writeValue(value.length); length += writer.writeBytes(value); return length; @@ -160563,12 +218119,12 @@ ${gz(e, r10)}`); super("bytes", localName); } decode(reader) { - return reader.coerce(this.name, (0, import_bytes6.hexlify)(super.decode(reader))); + return reader.coerce(this.name, (0, import_bytes3.hexlify)(super.decode(reader))); } }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js - var import_bytes7 = __toESM(require_lib2()); + var import_bytes4 = __toESM(require_lib2()); var FixedBytesCoder = class extends Coder { constructor(size, localName) { let name6 = "bytes" + String(size); @@ -160579,14 +218135,14 @@ ${gz(e, r10)}`); return "0x0000000000000000000000000000000000000000000000000000000000000000".substring(0, 2 + this.size * 2); } encode(writer, value) { - let data = (0, import_bytes7.arrayify)(value); + let data = (0, import_bytes4.arrayify)(value); if (data.length !== this.size) { this._throwError("incorrect data length", value); } return writer.writeBytes(data); } decode(reader) { - return reader.coerce(this.name, (0, import_bytes7.hexlify)(reader.readBytes(this.size))); + return reader.coerce(this.name, (0, import_bytes4.hexlify)(reader.readBytes(this.size))); } }; @@ -160611,7 +218167,7 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/number.js - var import_bignumber4 = __toESM(require_lib3()); + var import_bignumber3 = __toESM(require_lib3()); var import_constants = __toESM(require_lib5()); var NumberCoder = class extends Coder { constructor(size, signed2, localName) { @@ -160624,7 +218180,7 @@ ${gz(e, r10)}`); return 0; } encode(writer, value) { - let v = import_bignumber4.BigNumber.from(value); + let v = import_bignumber3.BigNumber.from(value); let maxUintValue = import_constants.MaxUint256.mask(writer.wordSize * 8); if (this.signed) { let bounds = maxUintValue.mask(this.size * 8 - 1); @@ -160720,12 +218276,12 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/abi-coder.js - var logger7 = new import_logger7.Logger(version3); + var logger4 = new import_logger4.Logger(version2); var paramTypeBytes = new RegExp(/^bytes([0-9]*)$/); var paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/); var AbiCoder = class { constructor(coerceFunc) { - defineReadOnly(this, "coerceFunc", coerceFunc || null); + (0, import_properties3.defineReadOnly)(this, "coerceFunc", coerceFunc || null); } _getCoder(param) { switch (param.baseType) { @@ -160750,7 +218306,7 @@ ${gz(e, r10)}`); if (match) { let size = parseInt(match[2] || "256"); if (size === 0 || size > 256 || size % 8 !== 0) { - logger7.throwArgumentError("invalid " + match[1] + " bit length", "param", param); + logger4.throwArgumentError("invalid " + match[1] + " bit length", "param", param); } return new NumberCoder(size / 8, match[1] === "int", param.name); } @@ -160758,11 +218314,11 @@ ${gz(e, r10)}`); if (match) { let size = parseInt(match[1]); if (size === 0 || size > 32) { - logger7.throwArgumentError("invalid bytes length", "param", param); + logger4.throwArgumentError("invalid bytes length", "param", param); } return new FixedBytesCoder(size, param.name); } - return logger7.throwArgumentError("invalid type", "type", param.type); + return logger4.throwArgumentError("invalid type", "type", param.type); } _getWordSize() { return 32; @@ -160780,7 +218336,7 @@ ${gz(e, r10)}`); } encode(types2, values) { if (types2.length !== values.length) { - logger7.throwError("types/values length mismatch", import_logger7.Logger.errors.INVALID_ARGUMENT, { + logger4.throwError("types/values length mismatch", import_logger4.Logger.errors.INVALID_ARGUMENT, { count: { types: types2.length, values: values.length }, value: { types: types2, values } }); @@ -160794,51 +218350,54 @@ ${gz(e, r10)}`); decode(types2, data, loose) { const coders = types2.map((type) => this._getCoder(ParamType.from(type))); const coder = new TupleCoder(coders, "_"); - return coder.decode(this._getReader((0, import_bytes9.arrayify)(data), loose)); + return coder.decode(this._getReader((0, import_bytes6.arrayify)(data), loose)); } }; var defaultAbiCoder = new AbiCoder(); // ../../node_modules/@ethersproject/abi/lib.esm/interface.js - var import_bignumber6 = __toESM(require_lib3()); - var import_bytes15 = __toESM(require_lib2()); + var import_address4 = __toESM(require_lib10()); + var import_bignumber5 = __toESM(require_lib3()); + var import_bytes12 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/hash/lib.esm/id.js + var import_keccak256 = __toESM(require_lib8()); var import_strings2 = __toESM(require_lib6()); function id2(text2) { - return keccak256((0, import_strings2.toUtf8Bytes)(text2)); + return (0, import_keccak256.keccak256)((0, import_strings2.toUtf8Bytes)(text2)); } // ../../node_modules/@ethersproject/hash/lib.esm/namehash.js - var import_bytes12 = __toESM(require_lib2()); + var import_bytes9 = __toESM(require_lib2()); var import_strings4 = __toESM(require_lib6()); - var import_logger8 = __toESM(require_lib()); + var import_keccak2562 = __toESM(require_lib8()); + var import_logger5 = __toESM(require_lib()); // ../../node_modules/@ethersproject/hash/lib.esm/_version.js - var version6 = "hash/5.7.0"; + var version3 = "hash/5.7.0"; // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js var import_strings3 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/base64/lib.esm/index.js - var lib_exports2 = {}; - __export(lib_exports2, { - decode: () => decode2, - encode: () => encode2 + var lib_exports = {}; + __export(lib_exports, { + decode: () => decode, + encode: () => encode }); // ../../node_modules/@ethersproject/base64/lib.esm/base64.js - var import_bytes11 = __toESM(require_lib2()); - function decode2(textData) { + var import_bytes8 = __toESM(require_lib2()); + function decode(textData) { textData = atob(textData); const data = []; for (let i = 0; i < textData.length; i++) { data.push(textData.charCodeAt(i)); } - return (0, import_bytes11.arrayify)(data); + return (0, import_bytes8.arrayify)(data); } - function encode2(data) { - data = (0, import_bytes11.arrayify)(data); + function encode(data) { + data = (0, import_bytes8.arrayify)(data); let textData = ""; for (let i = 0; i < data.length; i++) { textData += String.fromCharCode(data[i]); @@ -161067,7 +218626,7 @@ ${gz(e, r10)}`); // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js function getData() { - return read_compressed_payload(decode2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAM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uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")); } // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js @@ -161173,7 +218732,7 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/namehash.js - var logger8 = new import_logger8.Logger(version6); + var logger5 = new import_logger5.Logger(version3); var Zeros = new Uint8Array(32); Zeros.fill(0); function checkComponent(comp) { @@ -161211,17 +218770,17 @@ ${gz(e, r10)}`); } function namehash(name6) { if (typeof name6 !== "string") { - logger8.throwArgumentError("invalid ENS name; not a string", "name", name6); + logger5.throwArgumentError("invalid ENS name; not a string", "name", name6); } let result = Zeros; const comps = ensNameSplit(name6); while (comps.length) { - result = keccak256((0, import_bytes12.concat)([result, keccak256(comps.pop())])); + result = (0, import_keccak2562.keccak256)((0, import_bytes9.concat)([result, (0, import_keccak2562.keccak256)(comps.pop())])); } - return (0, import_bytes12.hexlify)(result); + return (0, import_bytes9.hexlify)(result); } function dnsEncode(name6) { - return (0, import_bytes12.hexlify)((0, import_bytes12.concat)(ensNameSplit(name6).map((comp) => { + return (0, import_bytes9.hexlify)((0, import_bytes9.concat)(ensNameSplit(name6).map((comp) => { if (comp.length > 63) { throw new Error("invalid DNS encoded entry; length exceeds 63 bytes"); } @@ -161233,14 +218792,15 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/message.js - var import_bytes13 = __toESM(require_lib2()); + var import_bytes10 = __toESM(require_lib2()); + var import_keccak2563 = __toESM(require_lib8()); var import_strings5 = __toESM(require_lib6()); var messagePrefix = "Ethereum Signed Message:\n"; function hashMessage(message) { if (typeof message === "string") { message = (0, import_strings5.toUtf8Bytes)(message); } - return keccak256((0, import_bytes13.concat)([ + return (0, import_keccak2563.keccak256)((0, import_bytes10.concat)([ (0, import_strings5.toUtf8Bytes)(messagePrefix), (0, import_strings5.toUtf8Bytes)(String(message.length)), message @@ -161248,10 +218808,13 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/typed-data.js - var import_bignumber5 = __toESM(require_lib3()); - var import_bytes14 = __toESM(require_lib2()); - var import_logger9 = __toESM(require_lib()); - var __awaiter3 = function(thisArg, _arguments, P, generator) { + var import_address3 = __toESM(require_lib10()); + var import_bignumber4 = __toESM(require_lib3()); + var import_bytes11 = __toESM(require_lib2()); + var import_keccak2564 = __toESM(require_lib8()); + var import_properties4 = __toESM(require_lib7()); + var import_logger6 = __toESM(require_lib()); + var __awaiter2 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -161278,23 +218841,23 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger9 = new import_logger9.Logger(version6); + var logger6 = new import_logger6.Logger(version3); var padding = new Uint8Array(32); padding.fill(0); - var NegativeOne2 = import_bignumber5.BigNumber.from(-1); - var Zero2 = import_bignumber5.BigNumber.from(0); - var One3 = import_bignumber5.BigNumber.from(1); - var MaxUint2562 = import_bignumber5.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); + var NegativeOne2 = import_bignumber4.BigNumber.from(-1); + var Zero2 = import_bignumber4.BigNumber.from(0); + var One3 = import_bignumber4.BigNumber.from(1); + var MaxUint2562 = import_bignumber4.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); function hexPadRight(value) { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); const padOffset = bytes5.length % 32; if (padOffset) { - return (0, import_bytes14.hexConcat)([bytes5, padding.slice(padOffset)]); + return (0, import_bytes11.hexConcat)([bytes5, padding.slice(padOffset)]); } - return (0, import_bytes14.hexlify)(bytes5); + return (0, import_bytes11.hexlify)(bytes5); } - var hexTrue = (0, import_bytes14.hexZeroPad)(One3.toHexString(), 32); - var hexFalse = (0, import_bytes14.hexZeroPad)(Zero2.toHexString(), 32); + var hexTrue = (0, import_bytes11.hexZeroPad)(One3.toHexString(), 32); + var hexFalse = (0, import_bytes11.hexZeroPad)(Zero2.toHexString(), 32); var domainFieldTypes = { name: "string", version: "string", @@ -161312,7 +218875,7 @@ ${gz(e, r10)}`); function checkString(key2) { return function(value) { if (typeof value !== "string") { - logger9.throwArgumentError(`invalid domain value for ${JSON.stringify(key2)}`, `domain.${key2}`, value); + logger6.throwArgumentError(`invalid domain value for ${JSON.stringify(key2)}`, `domain.${key2}`, value); } return value; }; @@ -161322,28 +218885,28 @@ ${gz(e, r10)}`); version: checkString("version"), chainId: function(value) { try { - return import_bignumber5.BigNumber.from(value).toString(); + return import_bignumber4.BigNumber.from(value).toString(); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value for "chainId"`, "domain.chainId", value); + return logger6.throwArgumentError(`invalid domain value for "chainId"`, "domain.chainId", value); }, verifyingContract: function(value) { try { - return getAddress(value).toLowerCase(); + return (0, import_address3.getAddress)(value).toLowerCase(); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); + return logger6.throwArgumentError(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); }, salt: function(value) { try { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); if (bytes5.length !== 32) { throw new Error("bad length"); } - return (0, import_bytes14.hexlify)(bytes5); + return (0, import_bytes11.hexlify)(bytes5); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value "salt"`, "domain.salt", value); + return logger6.throwArgumentError(`invalid domain value "salt"`, "domain.salt", value); } }; function getBaseEncoder(type) { @@ -161353,16 +218916,16 @@ ${gz(e, r10)}`); const signed2 = match[1] === ""; const width = parseInt(match[2] || "256"); if (width % 8 !== 0 || width > 256 || match[2] && match[2] !== String(width)) { - logger9.throwArgumentError("invalid numeric width", "type", type); + logger6.throwArgumentError("invalid numeric width", "type", type); } const boundsUpper = MaxUint2562.mask(signed2 ? width - 1 : width); const boundsLower = signed2 ? boundsUpper.add(One3).mul(NegativeOne2) : Zero2; return function(value) { - const v = import_bignumber5.BigNumber.from(value); + const v = import_bignumber4.BigNumber.from(value); if (v.lt(boundsLower) || v.gt(boundsUpper)) { - logger9.throwArgumentError(`value out-of-bounds for ${type}`, "value", value); + logger6.throwArgumentError(`value out-of-bounds for ${type}`, "value", value); } - return (0, import_bytes14.hexZeroPad)(v.toTwos(256).toHexString(), 32); + return (0, import_bytes11.hexZeroPad)(v.toTwos(256).toHexString(), 32); }; } } @@ -161371,12 +218934,12 @@ ${gz(e, r10)}`); if (match) { const width = parseInt(match[1]); if (width === 0 || width > 32 || match[1] !== String(width)) { - logger9.throwArgumentError("invalid bytes width", "type", type); + logger6.throwArgumentError("invalid bytes width", "type", type); } return function(value) { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); if (bytes5.length !== width) { - logger9.throwArgumentError(`invalid length for ${type}`, "value", value); + logger6.throwArgumentError(`invalid length for ${type}`, "value", value); } return hexPadRight(value); }; @@ -161385,7 +218948,7 @@ ${gz(e, r10)}`); switch (type) { case "address": return function(value) { - return (0, import_bytes14.hexZeroPad)(getAddress(value), 32); + return (0, import_bytes11.hexZeroPad)((0, import_address3.getAddress)(value), 32); }; case "bool": return function(value) { @@ -161393,7 +218956,7 @@ ${gz(e, r10)}`); }; case "bytes": return function(value) { - return keccak256(value); + return (0, import_keccak2564.keccak256)(value); }; case "string": return function(value) { @@ -161407,9 +218970,9 @@ ${gz(e, r10)}`); } var TypedDataEncoder = class { constructor(types2) { - defineReadOnly(this, "types", Object.freeze(deepCopy(types2))); - defineReadOnly(this, "_encoderCache", {}); - defineReadOnly(this, "_types", {}); + (0, import_properties4.defineReadOnly)(this, "types", Object.freeze((0, import_properties4.deepCopy)(types2))); + (0, import_properties4.defineReadOnly)(this, "_encoderCache", {}); + (0, import_properties4.defineReadOnly)(this, "_types", {}); const links = {}; const parents = {}; const subtypes = {}; @@ -161422,19 +218985,19 @@ ${gz(e, r10)}`); const uniqueNames = {}; types2[name6].forEach((field) => { if (uniqueNames[field.name]) { - logger9.throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name6)}`, "types", types2); + logger6.throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name6)}`, "types", types2); } uniqueNames[field.name] = true; const baseType = field.type.match(/^([^\x5b]*)(\x5b|$)/)[1]; if (baseType === name6) { - logger9.throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, "types", types2); + logger6.throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, "types", types2); } const encoder5 = getBaseEncoder(baseType); if (encoder5) { return; } if (!parents[baseType]) { - logger9.throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, "types", types2); + logger6.throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, "types", types2); } parents[baseType].push(name6); links[name6][baseType] = true; @@ -161442,14 +219005,14 @@ ${gz(e, r10)}`); } const primaryTypes = Object.keys(parents).filter((n) => parents[n].length === 0); if (primaryTypes.length === 0) { - logger9.throwArgumentError("missing primary type", "types", types2); + logger6.throwArgumentError("missing primary type", "types", types2); } else if (primaryTypes.length > 1) { - logger9.throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => JSON.stringify(t)).join(", ")}`, "types", types2); + logger6.throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => JSON.stringify(t)).join(", ")}`, "types", types2); } - defineReadOnly(this, "primaryType", primaryTypes[0]); + (0, import_properties4.defineReadOnly)(this, "primaryType", primaryTypes[0]); function checkCircular(type, found) { if (found[type]) { - logger9.throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, "types", types2); + logger6.throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, "types", types2); } found[type] = true; Object.keys(links[type]).forEach((child) => { @@ -161491,13 +219054,13 @@ ${gz(e, r10)}`); const length = parseInt(match[3]); return (value) => { if (length >= 0 && value.length !== length) { - logger9.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); + logger6.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); } let result = value.map(subEncoder); if (this._types[subtype]) { - result = result.map(keccak256); + result = result.map(import_keccak2564.keccak256); } - return keccak256((0, import_bytes14.hexConcat)(result)); + return (0, import_keccak2564.keccak256)((0, import_bytes11.hexConcat)(result)); }; } const fields = this.types[type]; @@ -161507,20 +219070,20 @@ ${gz(e, r10)}`); const values = fields.map(({ name: name6, type: type2 }) => { const result = this.getEncoder(type2)(value[name6]); if (this._types[type2]) { - return keccak256(result); + return (0, import_keccak2564.keccak256)(result); } return result; }); values.unshift(encodedType); - return (0, import_bytes14.hexConcat)(values); + return (0, import_bytes11.hexConcat)(values); }; } - return logger9.throwArgumentError(`unknown type: ${type}`, "type", type); + return logger6.throwArgumentError(`unknown type: ${type}`, "type", type); } encodeType(name6) { const result = this._types[name6]; if (!result) { - logger9.throwArgumentError(`unknown type: ${JSON.stringify(name6)}`, "name", name6); + logger6.throwArgumentError(`unknown type: ${JSON.stringify(name6)}`, "name", name6); } return result; } @@ -161528,7 +219091,7 @@ ${gz(e, r10)}`); return this.getEncoder(type)(value); } hashStruct(name6, value) { - return keccak256(this.encodeData(name6, value)); + return (0, import_keccak2564.keccak256)(this.encodeData(name6, value)); } encode(value) { return this.encodeData(this.primaryType, value); @@ -161548,7 +219111,7 @@ ${gz(e, r10)}`); const subtype = match[1]; const length = parseInt(match[3]); if (length >= 0 && value.length !== length) { - logger9.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); + logger6.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); } return value.map((v) => this._visit(subtype, v, callback)); } @@ -161559,7 +219122,7 @@ ${gz(e, r10)}`); return accum; }, {}); } - return logger9.throwArgumentError(`unknown type: ${type}`, "type", type); + return logger6.throwArgumentError(`unknown type: ${type}`, "type", type); } visit(value, callback) { return this._visit(this.primaryType, value, callback); @@ -161578,7 +219141,7 @@ ${gz(e, r10)}`); for (const name6 in domain) { const type = domainFieldTypes[name6]; if (!type) { - logger9.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name6)}`, "domain", domain); + logger6.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name6)}`, "domain", domain); } domainFields.push({ name: name6, type }); } @@ -161588,25 +219151,25 @@ ${gz(e, r10)}`); return TypedDataEncoder.hashStruct("EIP712Domain", { EIP712Domain: domainFields }, domain); } static encode(domain, types2, value) { - return (0, import_bytes14.hexConcat)([ + return (0, import_bytes11.hexConcat)([ "0x1901", TypedDataEncoder.hashDomain(domain), TypedDataEncoder.from(types2).hash(value) ]); } static hash(domain, types2, value) { - return keccak256(TypedDataEncoder.encode(domain, types2, value)); + return (0, import_keccak2564.keccak256)(TypedDataEncoder.encode(domain, types2, value)); } static resolveNames(domain, types2, value, resolveName2) { - return __awaiter3(this, void 0, void 0, function* () { - domain = shallowCopy(domain); + return __awaiter2(this, void 0, void 0, function* () { + domain = (0, import_properties4.shallowCopy)(domain); const ensCache = {}; - if (domain.verifyingContract && !(0, import_bytes14.isHexString)(domain.verifyingContract, 20)) { + if (domain.verifyingContract && !(0, import_bytes11.isHexString)(domain.verifyingContract, 20)) { ensCache[domain.verifyingContract] = "0x"; } const encoder5 = TypedDataEncoder.from(types2); encoder5.visit(value, (type, value2) => { - if (type === "address" && !(0, import_bytes14.isHexString)(value2, 20)) { + if (type === "address" && !(0, import_bytes11.isHexString)(value2, 20)) { ensCache[value2] = "0x"; } return value2; @@ -161639,9 +219202,9 @@ ${gz(e, r10)}`); domainTypes.push({ name: name6, type: domainFieldTypes[name6] }); }); const encoder5 = TypedDataEncoder.from(types2); - const typesWithDomain = shallowCopy(types2); + const typesWithDomain = (0, import_properties4.shallowCopy)(types2); if (typesWithDomain.EIP712Domain) { - logger9.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types2); + logger6.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types2); } else { typesWithDomain.EIP712Domain = domainTypes; } @@ -161652,10 +219215,10 @@ ${gz(e, r10)}`); primaryType: encoder5.primaryType, message: encoder5.visit(value, (type, value2) => { if (type.match(/^bytes(\d*)/)) { - return (0, import_bytes14.hexlify)((0, import_bytes14.arrayify)(value2)); + return (0, import_bytes11.hexlify)((0, import_bytes11.arrayify)(value2)); } if (type.match(/^u?int/)) { - return import_bignumber5.BigNumber.from(value2).toString(); + return import_bignumber4.BigNumber.from(value2).toString(); } switch (type) { case "address": @@ -161664,26 +219227,28 @@ ${gz(e, r10)}`); return !!value2; case "string": if (typeof value2 !== "string") { - logger9.throwArgumentError(`invalid string`, "value", value2); + logger6.throwArgumentError(`invalid string`, "value", value2); } return value2; } - return logger9.throwArgumentError("unsupported type", "type", type); + return logger6.throwArgumentError("unsupported type", "type", type); }) }; } }; // ../../node_modules/@ethersproject/abi/lib.esm/interface.js - var import_logger10 = __toESM(require_lib()); - var logger10 = new import_logger10.Logger(version3); - var LogDescription = class extends Description { + var import_keccak2565 = __toESM(require_lib8()); + var import_properties5 = __toESM(require_lib7()); + var import_logger7 = __toESM(require_lib()); + var logger7 = new import_logger7.Logger(version2); + var LogDescription = class extends import_properties5.Description { }; - var TransactionDescription = class extends Description { + var TransactionDescription = class extends import_properties5.Description { }; - var ErrorDescription = class extends Description { + var ErrorDescription = class extends import_properties5.Description { }; - var Indexed = class extends Description { + var Indexed = class extends import_properties5.Description { static isIndexed(value) { return !!(value && value._isIndexed); } @@ -161705,23 +219270,23 @@ ${gz(e, r10)}`); } else { abi = fragments; } - defineReadOnly(this, "fragments", abi.map((fragment) => { + (0, import_properties5.defineReadOnly)(this, "fragments", abi.map((fragment) => { return Fragment.from(fragment); }).filter((fragment) => fragment != null)); - defineReadOnly(this, "_abiCoder", getStatic(new.target, "getAbiCoder")()); - defineReadOnly(this, "functions", {}); - defineReadOnly(this, "errors", {}); - defineReadOnly(this, "events", {}); - defineReadOnly(this, "structs", {}); + (0, import_properties5.defineReadOnly)(this, "_abiCoder", (0, import_properties5.getStatic)(new.target, "getAbiCoder")()); + (0, import_properties5.defineReadOnly)(this, "functions", {}); + (0, import_properties5.defineReadOnly)(this, "errors", {}); + (0, import_properties5.defineReadOnly)(this, "events", {}); + (0, import_properties5.defineReadOnly)(this, "structs", {}); this.fragments.forEach((fragment) => { let bucket = null; switch (fragment.type) { case "constructor": if (this.deploy) { - logger10.warn("duplicate definition - constructor"); + logger7.warn("duplicate definition - constructor"); return; } - defineReadOnly(this, "deploy", fragment); + (0, import_properties5.defineReadOnly)(this, "deploy", fragment); return; case "function": bucket = this.functions; @@ -161737,25 +219302,25 @@ ${gz(e, r10)}`); } let signature2 = fragment.format(); if (bucket[signature2]) { - logger10.warn("duplicate definition - " + signature2); + logger7.warn("duplicate definition - " + signature2); return; } bucket[signature2] = fragment; }); if (!this.deploy) { - defineReadOnly(this, "deploy", ConstructorFragment.from({ + (0, import_properties5.defineReadOnly)(this, "deploy", ConstructorFragment.from({ payable: false, type: "constructor" })); } - defineReadOnly(this, "_isInterface", true); + (0, import_properties5.defineReadOnly)(this, "_isInterface", true); } format(format) { if (!format) { format = FormatTypes.full; } if (format === FormatTypes.sighash) { - logger10.throwArgumentError("interface does not support formatting sighash", "format", format); + logger7.throwArgumentError("interface does not support formatting sighash", "format", format); } const abi = this.fragments.map((fragment) => fragment.format(format)); if (format === FormatTypes.json) { @@ -161767,89 +219332,89 @@ ${gz(e, r10)}`); return defaultAbiCoder; } static getAddress(address) { - return getAddress(address); + return (0, import_address4.getAddress)(address); } static getSighash(fragment) { - return (0, import_bytes15.hexDataSlice)(id2(fragment.format()), 0, 4); + return (0, import_bytes12.hexDataSlice)(id2(fragment.format()), 0, 4); } static getEventTopic(eventFragment) { return id2(eventFragment.format()); } getFunction(nameOrSignatureOrSighash) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrSighash)) { + if ((0, import_bytes12.isHexString)(nameOrSignatureOrSighash)) { for (const name6 in this.functions) { if (nameOrSignatureOrSighash === this.getSighash(name6)) { return this.functions[name6]; } } - logger10.throwArgumentError("no matching function", "sighash", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching function", "sighash", nameOrSignatureOrSighash); } if (nameOrSignatureOrSighash.indexOf("(") === -1) { const name6 = nameOrSignatureOrSighash.trim(); const matching = Object.keys(this.functions).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching function", "name", name6); + logger7.throwArgumentError("no matching function", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching functions", "name", name6); + logger7.throwArgumentError("multiple matching functions", "name", name6); } return this.functions[matching[0]]; } const result = this.functions[FunctionFragment.fromString(nameOrSignatureOrSighash).format()]; if (!result) { - logger10.throwArgumentError("no matching function", "signature", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching function", "signature", nameOrSignatureOrSighash); } return result; } getEvent(nameOrSignatureOrTopic) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrTopic)) { + if ((0, import_bytes12.isHexString)(nameOrSignatureOrTopic)) { const topichash = nameOrSignatureOrTopic.toLowerCase(); for (const name6 in this.events) { if (topichash === this.getEventTopic(name6)) { return this.events[name6]; } } - logger10.throwArgumentError("no matching event", "topichash", topichash); + logger7.throwArgumentError("no matching event", "topichash", topichash); } if (nameOrSignatureOrTopic.indexOf("(") === -1) { const name6 = nameOrSignatureOrTopic.trim(); const matching = Object.keys(this.events).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching event", "name", name6); + logger7.throwArgumentError("no matching event", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching events", "name", name6); + logger7.throwArgumentError("multiple matching events", "name", name6); } return this.events[matching[0]]; } const result = this.events[EventFragment.fromString(nameOrSignatureOrTopic).format()]; if (!result) { - logger10.throwArgumentError("no matching event", "signature", nameOrSignatureOrTopic); + logger7.throwArgumentError("no matching event", "signature", nameOrSignatureOrTopic); } return result; } getError(nameOrSignatureOrSighash) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrSighash)) { - const getSighash = getStatic(this.constructor, "getSighash"); + if ((0, import_bytes12.isHexString)(nameOrSignatureOrSighash)) { + const getSighash = (0, import_properties5.getStatic)(this.constructor, "getSighash"); for (const name6 in this.errors) { const error = this.errors[name6]; if (nameOrSignatureOrSighash === getSighash(error)) { return this.errors[name6]; } } - logger10.throwArgumentError("no matching error", "sighash", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching error", "sighash", nameOrSignatureOrSighash); } if (nameOrSignatureOrSighash.indexOf("(") === -1) { const name6 = nameOrSignatureOrSighash.trim(); const matching = Object.keys(this.errors).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching error", "name", name6); + logger7.throwArgumentError("no matching error", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching errors", "name", name6); + logger7.throwArgumentError("multiple matching errors", "name", name6); } return this.errors[matching[0]]; } const result = this.errors[FunctionFragment.fromString(nameOrSignatureOrSighash).format()]; if (!result) { - logger10.throwArgumentError("no matching error", "signature", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching error", "signature", nameOrSignatureOrSighash); } return result; } @@ -161865,13 +219430,13 @@ ${gz(e, r10)}`); } } } - return getStatic(this.constructor, "getSighash")(fragment); + return (0, import_properties5.getStatic)(this.constructor, "getSighash")(fragment); } getEventTopic(eventFragment) { if (typeof eventFragment === "string") { eventFragment = this.getEvent(eventFragment); } - return getStatic(this.constructor, "getEventTopic")(eventFragment); + return (0, import_properties5.getStatic)(this.constructor, "getEventTopic")(eventFragment); } _decodeParams(params, data) { return this._abiCoder.decode(params, data); @@ -161886,9 +219451,9 @@ ${gz(e, r10)}`); if (typeof fragment === "string") { fragment = this.getError(fragment); } - const bytes5 = (0, import_bytes15.arrayify)(data); - if ((0, import_bytes15.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(fragment)) { - logger10.throwArgumentError(`data signature does not match error ${fragment.name}.`, "data", (0, import_bytes15.hexlify)(bytes5)); + const bytes5 = (0, import_bytes12.arrayify)(data); + if ((0, import_bytes12.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(fragment)) { + logger7.throwArgumentError(`data signature does not match error ${fragment.name}.`, "data", (0, import_bytes12.hexlify)(bytes5)); } return this._decodeParams(fragment.inputs, bytes5.slice(4)); } @@ -161896,7 +219461,7 @@ ${gz(e, r10)}`); if (typeof fragment === "string") { fragment = this.getError(fragment); } - return (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ + return (0, import_bytes12.hexlify)((0, import_bytes12.concat)([ this.getSighash(fragment), this._encodeParams(fragment.inputs, values || []) ])); @@ -161905,9 +219470,9 @@ ${gz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - const bytes5 = (0, import_bytes15.arrayify)(data); - if ((0, import_bytes15.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(functionFragment)) { - logger10.throwArgumentError(`data signature does not match function ${functionFragment.name}.`, "data", (0, import_bytes15.hexlify)(bytes5)); + const bytes5 = (0, import_bytes12.arrayify)(data); + if ((0, import_bytes12.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(functionFragment)) { + logger7.throwArgumentError(`data signature does not match function ${functionFragment.name}.`, "data", (0, import_bytes12.hexlify)(bytes5)); } return this._decodeParams(functionFragment.inputs, bytes5.slice(4)); } @@ -161915,7 +219480,7 @@ ${gz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - return (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ + return (0, import_bytes12.hexlify)((0, import_bytes12.concat)([ this.getSighash(functionFragment), this._encodeParams(functionFragment.inputs, values || []) ])); @@ -161924,7 +219489,7 @@ ${gz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - let bytes5 = (0, import_bytes15.arrayify)(data); + let bytes5 = (0, import_bytes12.arrayify)(data); let reason = null; let message = ""; let errorArgs = null; @@ -161938,7 +219503,7 @@ ${gz(e, r10)}`); } break; case 4: { - const selector = (0, import_bytes15.hexlify)(bytes5.slice(0, 4)); + const selector = (0, import_bytes12.hexlify)(bytes5.slice(0, 4)); const builtin = BuiltinErrors[selector]; if (builtin) { errorArgs = this._abiCoder.decode(builtin.inputs, bytes5.slice(4)); @@ -161964,9 +219529,9 @@ ${gz(e, r10)}`); break; } } - return logger10.throwError("call revert exception" + message, import_logger10.Logger.errors.CALL_EXCEPTION, { + return logger7.throwError("call revert exception" + message, import_logger7.Logger.errors.CALL_EXCEPTION, { method: functionFragment.format(), - data: (0, import_bytes15.hexlify)(data), + data: (0, import_bytes12.hexlify)(data), errorArgs, errorName, errorSignature, @@ -161977,14 +219542,14 @@ ${gz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - return (0, import_bytes15.hexlify)(this._abiCoder.encode(functionFragment.outputs, values || [])); + return (0, import_bytes12.hexlify)(this._abiCoder.encode(functionFragment.outputs, values || [])); } encodeFilterTopics(eventFragment, values) { if (typeof eventFragment === "string") { eventFragment = this.getEvent(eventFragment); } if (values.length > eventFragment.inputs.length) { - logger10.throwError("too many arguments for " + eventFragment.format(), import_logger10.Logger.errors.UNEXPECTED_ARGUMENT, { + logger7.throwError("too many arguments for " + eventFragment.format(), import_logger7.Logger.errors.UNEXPECTED_ARGUMENT, { argument: "values", value: values }); @@ -161997,31 +219562,31 @@ ${gz(e, r10)}`); if (param.type === "string") { return id2(value); } else if (param.type === "bytes") { - return keccak256((0, import_bytes15.hexlify)(value)); + return (0, import_keccak2565.keccak256)((0, import_bytes12.hexlify)(value)); } if (param.type === "bool" && typeof value === "boolean") { value = value ? "0x01" : "0x00"; } if (param.type.match(/^u?int/)) { - value = import_bignumber6.BigNumber.from(value).toHexString(); + value = import_bignumber5.BigNumber.from(value).toHexString(); } if (param.type === "address") { this._abiCoder.encode(["address"], [value]); } - return (0, import_bytes15.hexZeroPad)((0, import_bytes15.hexlify)(value), 32); + return (0, import_bytes12.hexZeroPad)((0, import_bytes12.hexlify)(value), 32); }; values.forEach((value, index) => { let param = eventFragment.inputs[index]; if (!param.indexed) { if (value != null) { - logger10.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + param.name, value); + logger7.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + param.name, value); } return; } if (value == null) { topics.push(null); } else if (param.baseType === "array" || param.baseType === "tuple") { - logger10.throwArgumentError("filtering with tuples or arrays not supported", "contract." + param.name, value); + logger7.throwArgumentError("filtering with tuples or arrays not supported", "contract." + param.name, value); } else if (Array.isArray(value)) { topics.push(value.map((value2) => encodeTopic(param, value2))); } else { @@ -162044,7 +219609,7 @@ ${gz(e, r10)}`); topics.push(this.getEventTopic(eventFragment)); } if (values.length !== eventFragment.inputs.length) { - logger10.throwArgumentError("event arguments/values mismatch", "values", values); + logger7.throwArgumentError("event arguments/values mismatch", "values", values); } eventFragment.inputs.forEach((param, index) => { const value = values[index]; @@ -162052,7 +219617,7 @@ ${gz(e, r10)}`); if (param.type === "string") { topics.push(id2(value)); } else if (param.type === "bytes") { - topics.push(keccak256(value)); + topics.push((0, import_keccak2565.keccak256)(value)); } else if (param.baseType === "tuple" || param.baseType === "array") { throw new Error("not implemented"); } else { @@ -162074,8 +219639,8 @@ ${gz(e, r10)}`); } if (topics != null && !eventFragment.anonymous) { let topicHash = this.getEventTopic(eventFragment); - if (!(0, import_bytes15.isHexString)(topics[0], 32) || topics[0].toLowerCase() !== topicHash) { - logger10.throwError("fragment/topic mismatch", import_logger10.Logger.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: topicHash, value: topics[0] }); + if (!(0, import_bytes12.isHexString)(topics[0], 32) || topics[0].toLowerCase() !== topicHash) { + logger7.throwError("fragment/topic mismatch", import_logger7.Logger.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: topicHash, value: topics[0] }); } topics = topics.slice(1); } @@ -162096,7 +219661,7 @@ ${gz(e, r10)}`); dynamic.push(false); } }); - let resultIndexed = topics != null ? this._abiCoder.decode(indexed, (0, import_bytes15.concat)(topics)) : null; + let resultIndexed = topics != null ? this._abiCoder.decode(indexed, (0, import_bytes12.concat)(topics)) : null; let resultNonIndexed = this._abiCoder.decode(nonIndexed, data, true); let result = []; let nonIndexedIndex = 0, indexedIndex = 0; @@ -162158,7 +219723,7 @@ ${gz(e, r10)}`); name: fragment.name, signature: fragment.format(), sighash: this.getSighash(fragment), - value: import_bignumber6.BigNumber.from(tx2.value || "0") + value: import_bignumber5.BigNumber.from(tx2.value || "0") }); } parseLog(log) { @@ -162175,7 +219740,7 @@ ${gz(e, r10)}`); }); } parseError(data) { - const hexData = (0, import_bytes15.hexlify)(data); + const hexData = (0, import_bytes12.hexlify)(data); let fragment = this.getError(hexData.substring(0, 10).toLowerCase()); if (!fragment) { return null; @@ -162194,14 +219759,15 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/abstract-provider/lib.esm/index.js - var import_bignumber7 = __toESM(require_lib3()); - var import_logger11 = __toESM(require_lib()); + var import_bignumber6 = __toESM(require_lib3()); + var import_properties6 = __toESM(require_lib7()); + var import_logger8 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abstract-provider/lib.esm/_version.js - var version7 = "abstract-provider/5.7.0"; + var version4 = "abstract-provider/5.7.0"; // ../../node_modules/@ethersproject/abstract-provider/lib.esm/index.js - var __awaiter4 = function(thisArg, _arguments, P, generator) { + var __awaiter3 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -162228,20 +219794,20 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger11 = new import_logger11.Logger(version7); - var ForkEvent = class extends Description { + var logger8 = new import_logger8.Logger(version4); + var ForkEvent = class extends import_properties6.Description { static isForkEvent(value) { return !!(value && value._isForkEvent); } }; var Provider = class { constructor() { - logger11.checkAbstract(new.target, Provider); - defineReadOnly(this, "_isProvider", true); + logger8.checkAbstract(new.target, Provider); + (0, import_properties6.defineReadOnly)(this, "_isProvider", true); } getFeeData() { - return __awaiter4(this, void 0, void 0, function* () { - const { block, gasPrice } = yield resolveProperties({ + return __awaiter3(this, void 0, void 0, function* () { + const { block, gasPrice } = yield (0, import_properties6.resolveProperties)({ block: this.getBlock("latest"), gasPrice: this.getGasPrice().catch((error) => { return null; @@ -162250,7 +219816,7 @@ ${gz(e, r10)}`); let lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null; if (block && block.baseFeePerGas) { lastBaseFeePerGas = block.baseFeePerGas; - maxPriorityFeePerGas = import_bignumber7.BigNumber.from("1500000000"); + maxPriorityFeePerGas = import_bignumber6.BigNumber.from("1500000000"); maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas); } return { lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas, gasPrice }; @@ -162267,296 +219833,21 @@ ${gz(e, r10)}`); } }; - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/index.js - var import_logger12 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/_version.js - var version8 = "abstract-signer/5.7.0"; - - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/index.js - var __awaiter5 = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - var logger12 = new import_logger12.Logger(version8); - var allowedTransactionKeys = [ - "accessList", - "ccipReadEnabled", - "chainId", - "customData", - "data", - "from", - "gasLimit", - "gasPrice", - "maxFeePerGas", - "maxPriorityFeePerGas", - "nonce", - "to", - "type", - "value" - ]; - var forwardErrors = [ - import_logger12.Logger.errors.INSUFFICIENT_FUNDS, - import_logger12.Logger.errors.NONCE_EXPIRED, - import_logger12.Logger.errors.REPLACEMENT_UNDERPRICED - ]; - var Signer = class { - constructor() { - logger12.checkAbstract(new.target, Signer); - defineReadOnly(this, "_isSigner", true); - } - getBalance(blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getBalance"); - return yield this.provider.getBalance(this.getAddress(), blockTag); - }); - } - getTransactionCount(blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getTransactionCount"); - return yield this.provider.getTransactionCount(this.getAddress(), blockTag); - }); - } - estimateGas(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("estimateGas"); - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - return yield this.provider.estimateGas(tx2); - }); - } - call(transaction, blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("call"); - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - return yield this.provider.call(tx2, blockTag); - }); - } - sendTransaction(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("sendTransaction"); - const tx2 = yield this.populateTransaction(transaction); - const signedTx = yield this.signTransaction(tx2); - return yield this.provider.sendTransaction(signedTx); - }); - } - getChainId() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getChainId"); - const network2 = yield this.provider.getNetwork(); - return network2.chainId; - }); - } - getGasPrice() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getGasPrice"); - return yield this.provider.getGasPrice(); - }); - } - getFeeData() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getFeeData"); - return yield this.provider.getFeeData(); - }); - } - resolveName(name6) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("resolveName"); - return yield this.provider.resolveName(name6); - }); - } - checkTransaction(transaction) { - for (const key2 in transaction) { - if (allowedTransactionKeys.indexOf(key2) === -1) { - logger12.throwArgumentError("invalid transaction key: " + key2, "transaction", transaction); - } - } - const tx2 = shallowCopy(transaction); - if (tx2.from == null) { - tx2.from = this.getAddress(); - } else { - tx2.from = Promise.all([ - Promise.resolve(tx2.from), - this.getAddress() - ]).then((result) => { - if (result[0].toLowerCase() !== result[1].toLowerCase()) { - logger12.throwArgumentError("from address mismatch", "transaction", transaction); - } - return result[0]; - }); - } - return tx2; - } - populateTransaction(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - if (tx2.to != null) { - tx2.to = Promise.resolve(tx2.to).then((to2) => __awaiter5(this, void 0, void 0, function* () { - if (to2 == null) { - return null; - } - const address = yield this.resolveName(to2); - if (address == null) { - logger12.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); - } - return address; - })); - tx2.to.catch((error) => { - }); - } - const hasEip1559 = tx2.maxFeePerGas != null || tx2.maxPriorityFeePerGas != null; - if (tx2.gasPrice != null && (tx2.type === 2 || hasEip1559)) { - logger12.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction); - } else if ((tx2.type === 0 || tx2.type === 1) && hasEip1559) { - logger12.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction); - } - if ((tx2.type === 2 || tx2.type == null) && (tx2.maxFeePerGas != null && tx2.maxPriorityFeePerGas != null)) { - tx2.type = 2; - } else if (tx2.type === 0 || tx2.type === 1) { - if (tx2.gasPrice == null) { - tx2.gasPrice = this.getGasPrice(); - } - } else { - const feeData = yield this.getFeeData(); - if (tx2.type == null) { - if (feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null) { - tx2.type = 2; - if (tx2.gasPrice != null) { - const gasPrice = tx2.gasPrice; - delete tx2.gasPrice; - tx2.maxFeePerGas = gasPrice; - tx2.maxPriorityFeePerGas = gasPrice; - } else { - if (tx2.maxFeePerGas == null) { - tx2.maxFeePerGas = feeData.maxFeePerGas; - } - if (tx2.maxPriorityFeePerGas == null) { - tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; - } - } - } else if (feeData.gasPrice != null) { - if (hasEip1559) { - logger12.throwError("network does not support EIP-1559", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: "populateTransaction" - }); - } - if (tx2.gasPrice == null) { - tx2.gasPrice = feeData.gasPrice; - } - tx2.type = 0; - } else { - logger12.throwError("failed to get consistent fee data", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: "signer.getFeeData" - }); - } - } else if (tx2.type === 2) { - if (tx2.maxFeePerGas == null) { - tx2.maxFeePerGas = feeData.maxFeePerGas; - } - if (tx2.maxPriorityFeePerGas == null) { - tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; - } - } - } - if (tx2.nonce == null) { - tx2.nonce = this.getTransactionCount("pending"); - } - if (tx2.gasLimit == null) { - tx2.gasLimit = this.estimateGas(tx2).catch((error) => { - if (forwardErrors.indexOf(error.code) >= 0) { - throw error; - } - return logger12.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger12.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { - error, - tx: tx2 - }); - }); - } - if (tx2.chainId == null) { - tx2.chainId = this.getChainId(); - } else { - tx2.chainId = Promise.all([ - Promise.resolve(tx2.chainId), - this.getChainId() - ]).then((results) => { - if (results[1] !== 0 && results[0] !== results[1]) { - logger12.throwArgumentError("chainId address mismatch", "transaction", transaction); - } - return results[0]; - }); - } - return yield resolveProperties(tx2); - }); - } - _checkProvider(operation) { - if (!this.provider) { - logger12.throwError("missing provider", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: operation || "_checkProvider" - }); - } - } - static isSigner(value) { - return !!(value && value._isSigner); - } - }; - var VoidSigner = class extends Signer { - constructor(address, provider) { - super(); - defineReadOnly(this, "address", address); - defineReadOnly(this, "provider", provider || null); - } - getAddress() { - return Promise.resolve(this.address); - } - _fail(message, operation) { - return Promise.resolve().then(() => { - logger12.throwError(message, import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { operation }); - }); - } - signMessage(message) { - return this._fail("VoidSigner cannot sign messages", "signMessage"); - } - signTransaction(transaction) { - return this._fail("VoidSigner cannot sign transactions", "signTransaction"); - } - _signTypedData(domain, types2, value) { - return this._fail("VoidSigner cannot sign typed data", "signTypedData"); - } - connect(provider) { - return new VoidSigner(this.address, provider); - } - }; - // node_modules/@ethersproject/contracts/lib.esm/index.js - var import_bignumber9 = __toESM(require_lib3()); - var import_bytes18 = __toESM(require_lib2()); + var import_abstract_signer = __toESM(require_lib11()); + var import_address6 = __toESM(require_lib10()); + var import_bignumber8 = __toESM(require_lib3()); + var import_bytes15 = __toESM(require_lib2()); + var import_properties9 = __toESM(require_lib7()); // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var import_bignumber8 = __toESM(require_lib3()); - var import_bytes17 = __toESM(require_lib2()); + var import_address5 = __toESM(require_lib10()); + var import_bignumber7 = __toESM(require_lib3()); + var import_bytes14 = __toESM(require_lib2()); var import_constants2 = __toESM(require_lib5()); + var import_keccak2566 = __toESM(require_lib8()); + var import_properties8 = __toESM(require_lib7()); + var RLP = __toESM(require_lib9()); // ../../node_modules/@ethersproject/signing-key/lib.esm/elliptic.js var import_bn = __toESM(require_bn8()); @@ -162964,14 +220255,14 @@ ${gz(e, r10)}`); BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) { return this.encode(enc, true); }; - BasePoint.prototype._encode = function _encode2(compact) { + BasePoint.prototype._encode = function _encode(compact) { var len = this.curve.p.byteLength(); var x = this.getX().toArray("be", len); if (compact) return [this.getY().isEven() ? 2 : 3].concat(x); return [4].concat(x, this.getY().toArray("be", len)); }; - BasePoint.prototype.encode = function encode3(enc, compact) { + BasePoint.prototype.encode = function encode2(enc, compact) { return utils_1$1.encode(this._encode(compact), enc); }; BasePoint.prototype.precompute = function precompute(power) { @@ -164413,14 +221704,15 @@ ${gz(e, r10)}`); var EC$1 = elliptic_1.ec; // ../../node_modules/@ethersproject/signing-key/lib.esm/index.js - var import_bytes16 = __toESM(require_lib2()); - var import_logger13 = __toESM(require_lib()); + var import_bytes13 = __toESM(require_lib2()); + var import_properties7 = __toESM(require_lib7()); + var import_logger9 = __toESM(require_lib()); // ../../node_modules/@ethersproject/signing-key/lib.esm/_version.js - var version9 = "signing-key/5.7.0"; + var version5 = "signing-key/5.7.0"; // ../../node_modules/@ethersproject/signing-key/lib.esm/index.js - var logger13 = new import_logger13.Logger(version9); + var logger9 = new import_logger9.Logger(version5); var _curve = null; function getCurve() { if (!_curve) { @@ -164430,50 +221722,50 @@ ${gz(e, r10)}`); } var SigningKey = class { constructor(privateKey) { - defineReadOnly(this, "curve", "secp256k1"); - defineReadOnly(this, "privateKey", (0, import_bytes16.hexlify)(privateKey)); - if ((0, import_bytes16.hexDataLength)(this.privateKey) !== 32) { - logger13.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); + (0, import_properties7.defineReadOnly)(this, "curve", "secp256k1"); + (0, import_properties7.defineReadOnly)(this, "privateKey", (0, import_bytes13.hexlify)(privateKey)); + if ((0, import_bytes13.hexDataLength)(this.privateKey) !== 32) { + logger9.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); } - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - defineReadOnly(this, "publicKey", "0x" + keyPair2.getPublic(false, "hex")); - defineReadOnly(this, "compressedPublicKey", "0x" + keyPair2.getPublic(true, "hex")); - defineReadOnly(this, "_isSigningKey", true); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + (0, import_properties7.defineReadOnly)(this, "publicKey", "0x" + keyPair2.getPublic(false, "hex")); + (0, import_properties7.defineReadOnly)(this, "compressedPublicKey", "0x" + keyPair2.getPublic(true, "hex")); + (0, import_properties7.defineReadOnly)(this, "_isSigningKey", true); } _addPoint(other) { - const p02 = getCurve().keyFromPublic((0, import_bytes16.arrayify)(this.publicKey)); - const p12 = getCurve().keyFromPublic((0, import_bytes16.arrayify)(other)); + const p02 = getCurve().keyFromPublic((0, import_bytes13.arrayify)(this.publicKey)); + const p12 = getCurve().keyFromPublic((0, import_bytes13.arrayify)(other)); return "0x" + p02.pub.add(p12.pub).encodeCompressed("hex"); } signDigest(digest) { - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - const digestBytes = (0, import_bytes16.arrayify)(digest); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + const digestBytes = (0, import_bytes13.arrayify)(digest); if (digestBytes.length !== 32) { - logger13.throwArgumentError("bad digest length", "digest", digest); + logger9.throwArgumentError("bad digest length", "digest", digest); } const signature2 = keyPair2.sign(digestBytes, { canonical: true }); - return (0, import_bytes16.splitSignature)({ + return (0, import_bytes13.splitSignature)({ recoveryParam: signature2.recoveryParam, - r: (0, import_bytes16.hexZeroPad)("0x" + signature2.r.toString(16), 32), - s: (0, import_bytes16.hexZeroPad)("0x" + signature2.s.toString(16), 32) + r: (0, import_bytes13.hexZeroPad)("0x" + signature2.r.toString(16), 32), + s: (0, import_bytes13.hexZeroPad)("0x" + signature2.s.toString(16), 32) }); } computeSharedSecret(otherKey) { - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - const otherKeyPair = getCurve().keyFromPublic((0, import_bytes16.arrayify)(computePublicKey(otherKey))); - return (0, import_bytes16.hexZeroPad)("0x" + keyPair2.derive(otherKeyPair.getPublic()).toString(16), 32); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + const otherKeyPair = getCurve().keyFromPublic((0, import_bytes13.arrayify)(computePublicKey(otherKey))); + return (0, import_bytes13.hexZeroPad)("0x" + keyPair2.derive(otherKeyPair.getPublic()).toString(16), 32); } static isSigningKey(value) { return !!(value && value._isSigningKey); } }; function recoverPublicKey(digest, signature2) { - const sig = (0, import_bytes16.splitSignature)(signature2); - const rs2 = { r: (0, import_bytes16.arrayify)(sig.r), s: (0, import_bytes16.arrayify)(sig.s) }; - return "0x" + getCurve().recoverPubKey((0, import_bytes16.arrayify)(digest), rs2, sig.recoveryParam).encode("hex", false); + const sig = (0, import_bytes13.splitSignature)(signature2); + const rs2 = { r: (0, import_bytes13.arrayify)(sig.r), s: (0, import_bytes13.arrayify)(sig.s) }; + return "0x" + getCurve().recoverPubKey((0, import_bytes13.arrayify)(digest), rs2, sig.recoveryParam).encode("hex", false); } function computePublicKey(key2, compressed) { - const bytes5 = (0, import_bytes16.arrayify)(key2); + const bytes5 = (0, import_bytes13.arrayify)(key2); if (bytes5.length === 32) { const signingKey = new SigningKey(bytes5); if (compressed) { @@ -164482,26 +221774,26 @@ ${gz(e, r10)}`); return signingKey.publicKey; } else if (bytes5.length === 33) { if (compressed) { - return (0, import_bytes16.hexlify)(bytes5); + return (0, import_bytes13.hexlify)(bytes5); } return "0x" + getCurve().keyFromPublic(bytes5).getPublic(false, "hex"); } else if (bytes5.length === 65) { if (!compressed) { - return (0, import_bytes16.hexlify)(bytes5); + return (0, import_bytes13.hexlify)(bytes5); } return "0x" + getCurve().keyFromPublic(bytes5).getPublic(true, "hex"); } - return logger13.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); + return logger9.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); } // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var import_logger14 = __toESM(require_lib()); + var import_logger10 = __toESM(require_lib()); // ../../node_modules/@ethersproject/transactions/lib.esm/_version.js - var version10 = "transactions/5.7.0"; + var version6 = "transactions/5.7.0"; // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var logger14 = new import_logger14.Logger(version10); + var logger10 = new import_logger10.Logger(version6); var TransactionTypes; (function(TransactionTypes2) { TransactionTypes2[TransactionTypes2["legacy"] = 0] = "legacy"; @@ -164512,13 +221804,13 @@ ${gz(e, r10)}`); if (value === "0x") { return null; } - return getAddress(value); + return (0, import_address5.getAddress)(value); } function handleNumber(value) { if (value === "0x") { return import_constants2.Zero; } - return import_bignumber8.BigNumber.from(value); + return import_bignumber7.BigNumber.from(value); } var transactionFields = [ { name: "nonce", maxLength: 32, numeric: true }, @@ -164528,7 +221820,7 @@ ${gz(e, r10)}`); { name: "value", maxLength: 32, numeric: true }, { name: "data" } ]; - var allowedTransactionKeys2 = { + var allowedTransactionKeys = { chainId: true, data: true, gasLimit: true, @@ -164540,24 +221832,24 @@ ${gz(e, r10)}`); }; function computeAddress(key2) { const publicKey = computePublicKey(key2); - return getAddress((0, import_bytes17.hexDataSlice)(keccak256((0, import_bytes17.hexDataSlice)(publicKey, 1)), 12)); + return (0, import_address5.getAddress)((0, import_bytes14.hexDataSlice)((0, import_keccak2566.keccak256)((0, import_bytes14.hexDataSlice)(publicKey, 1)), 12)); } function recoverAddress(digest, signature2) { - return computeAddress(recoverPublicKey((0, import_bytes17.arrayify)(digest), signature2)); + return computeAddress(recoverPublicKey((0, import_bytes14.arrayify)(digest), signature2)); } function formatNumber(value, name6) { - const result = (0, import_bytes17.stripZeros)(import_bignumber8.BigNumber.from(value).toHexString()); + const result = (0, import_bytes14.stripZeros)(import_bignumber7.BigNumber.from(value).toHexString()); if (result.length > 32) { - logger14.throwArgumentError("invalid length for " + name6, "transaction:" + name6, value); + logger10.throwArgumentError("invalid length for " + name6, "transaction:" + name6, value); } return result; } function accessSetify(addr, storageKeys) { return { - address: getAddress(addr), + address: (0, import_address5.getAddress)(addr), storageKeys: (storageKeys || []).map((storageKey, index) => { - if ((0, import_bytes17.hexDataLength)(storageKey) !== 32) { - logger14.throwArgumentError("invalid access list storageKey", `accessList[${addr}:${index}]`, storageKey); + if ((0, import_bytes14.hexDataLength)(storageKey) !== 32) { + logger10.throwArgumentError("invalid access list storageKey", `accessList[${addr}:${index}]`, storageKey); } return storageKey.toLowerCase(); }) @@ -164568,7 +221860,7 @@ ${gz(e, r10)}`); return value.map((set2, index) => { if (Array.isArray(set2)) { if (set2.length > 2) { - logger14.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${index}]`, set2); + logger10.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${index}]`, set2); } return accessSetify(set2[0], set2[1]); } @@ -164590,10 +221882,10 @@ ${gz(e, r10)}`); } function _serializeEip1559(transaction, signature2) { if (transaction.gasPrice != null) { - const gasPrice = import_bignumber8.BigNumber.from(transaction.gasPrice); - const maxFeePerGas = import_bignumber8.BigNumber.from(transaction.maxFeePerGas || 0); + const gasPrice = import_bignumber7.BigNumber.from(transaction.gasPrice); + const maxFeePerGas = import_bignumber7.BigNumber.from(transaction.maxFeePerGas || 0); if (!gasPrice.eq(maxFeePerGas)) { - logger14.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", { + logger10.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", { gasPrice, maxFeePerGas }); @@ -164605,18 +221897,18 @@ ${gz(e, r10)}`); formatNumber(transaction.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"), formatNumber(transaction.maxFeePerGas || 0, "maxFeePerGas"), formatNumber(transaction.gasLimit || 0, "gasLimit"), - transaction.to != null ? getAddress(transaction.to) : "0x", + transaction.to != null ? (0, import_address5.getAddress)(transaction.to) : "0x", formatNumber(transaction.value || 0, "value"), transaction.data || "0x", formatAccessList(transaction.accessList || []) ]; if (signature2) { - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); fields.push(formatNumber(sig.recoveryParam, "recoveryParam")); - fields.push((0, import_bytes17.stripZeros)(sig.r)); - fields.push((0, import_bytes17.stripZeros)(sig.s)); + fields.push((0, import_bytes14.stripZeros)(sig.r)); + fields.push((0, import_bytes14.stripZeros)(sig.s)); } - return (0, import_bytes17.hexConcat)(["0x02", encode(fields)]); + return (0, import_bytes14.hexConcat)(["0x02", RLP.encode(fields)]); } function _serializeEip2930(transaction, signature2) { const fields = [ @@ -164624,21 +221916,21 @@ ${gz(e, r10)}`); formatNumber(transaction.nonce || 0, "nonce"), formatNumber(transaction.gasPrice || 0, "gasPrice"), formatNumber(transaction.gasLimit || 0, "gasLimit"), - transaction.to != null ? getAddress(transaction.to) : "0x", + transaction.to != null ? (0, import_address5.getAddress)(transaction.to) : "0x", formatNumber(transaction.value || 0, "value"), transaction.data || "0x", formatAccessList(transaction.accessList || []) ]; if (signature2) { - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); fields.push(formatNumber(sig.recoveryParam, "recoveryParam")); - fields.push((0, import_bytes17.stripZeros)(sig.r)); - fields.push((0, import_bytes17.stripZeros)(sig.s)); + fields.push((0, import_bytes14.stripZeros)(sig.r)); + fields.push((0, import_bytes14.stripZeros)(sig.s)); } - return (0, import_bytes17.hexConcat)(["0x01", encode(fields)]); + return (0, import_bytes14.hexConcat)(["0x01", RLP.encode(fields)]); } function _serialize(transaction, signature2) { - checkProperties(transaction, allowedTransactionKeys2); + (0, import_properties8.checkProperties)(transaction, allowedTransactionKeys); const raw = []; transactionFields.forEach(function(fieldInfo) { let value = transaction[fieldInfo.name] || []; @@ -164646,36 +221938,36 @@ ${gz(e, r10)}`); if (fieldInfo.numeric) { options.hexPad = "left"; } - value = (0, import_bytes17.arrayify)((0, import_bytes17.hexlify)(value, options)); + value = (0, import_bytes14.arrayify)((0, import_bytes14.hexlify)(value, options)); if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) { - logger14.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); + logger10.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); } if (fieldInfo.maxLength) { - value = (0, import_bytes17.stripZeros)(value); + value = (0, import_bytes14.stripZeros)(value); if (value.length > fieldInfo.maxLength) { - logger14.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); + logger10.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); } } - raw.push((0, import_bytes17.hexlify)(value)); + raw.push((0, import_bytes14.hexlify)(value)); }); let chainId = 0; if (transaction.chainId != null) { chainId = transaction.chainId; if (typeof chainId !== "number") { - logger14.throwArgumentError("invalid transaction.chainId", "transaction", transaction); + logger10.throwArgumentError("invalid transaction.chainId", "transaction", transaction); } - } else if (signature2 && !(0, import_bytes17.isBytesLike)(signature2) && signature2.v > 28) { + } else if (signature2 && !(0, import_bytes14.isBytesLike)(signature2) && signature2.v > 28) { chainId = Math.floor((signature2.v - 35) / 2); } if (chainId !== 0) { - raw.push((0, import_bytes17.hexlify)(chainId)); + raw.push((0, import_bytes14.hexlify)(chainId)); raw.push("0x"); raw.push("0x"); } if (!signature2) { - return encode(raw); + return RLP.encode(raw); } - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); let v = 27 + sig.recoveryParam; if (chainId !== 0) { raw.pop(); @@ -164683,20 +221975,20 @@ ${gz(e, r10)}`); raw.pop(); v += chainId * 2 + 8; if (sig.v > 28 && sig.v !== v) { - logger14.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); + logger10.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); } } else if (sig.v !== v) { - logger14.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); + logger10.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); } - raw.push((0, import_bytes17.hexlify)(v)); - raw.push((0, import_bytes17.stripZeros)((0, import_bytes17.arrayify)(sig.r))); - raw.push((0, import_bytes17.stripZeros)((0, import_bytes17.arrayify)(sig.s))); - return encode(raw); + raw.push((0, import_bytes14.hexlify)(v)); + raw.push((0, import_bytes14.stripZeros)((0, import_bytes14.arrayify)(sig.r))); + raw.push((0, import_bytes14.stripZeros)((0, import_bytes14.arrayify)(sig.s))); + return RLP.encode(raw); } function serialize(transaction, signature2) { if (transaction.type == null || transaction.type === 0) { if (transaction.accessList != null) { - logger14.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction); + logger10.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction); } return _serialize(transaction, signature2); } @@ -164708,7 +222000,7 @@ ${gz(e, r10)}`); default: break; } - return logger14.throwError(`unsupported transaction type: ${transaction.type}`, import_logger14.Logger.errors.UNSUPPORTED_OPERATION, { + return logger10.throwError(`unsupported transaction type: ${transaction.type}`, import_logger10.Logger.errors.UNSUPPORTED_OPERATION, { operation: "serializeTransaction", transactionType: transaction.type }); @@ -164721,20 +222013,20 @@ ${gz(e, r10)}`); } tx2.v = recid; } catch (error) { - logger14.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]); + logger10.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]); } - tx2.r = (0, import_bytes17.hexZeroPad)(fields[1], 32); - tx2.s = (0, import_bytes17.hexZeroPad)(fields[2], 32); + tx2.r = (0, import_bytes14.hexZeroPad)(fields[1], 32); + tx2.s = (0, import_bytes14.hexZeroPad)(fields[2], 32); try { - const digest = keccak256(serialize3(tx2)); + const digest = (0, import_keccak2566.keccak256)(serialize3(tx2)); tx2.from = recoverAddress(digest, { r: tx2.r, s: tx2.s, recoveryParam: tx2.v }); } catch (error) { } } function _parseEip1559(payload) { - const transaction = decode(payload.slice(1)); + const transaction = RLP.decode(payload.slice(1)); if (transaction.length !== 9 && transaction.length !== 12) { - logger14.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, import_bytes17.hexlify)(payload)); + logger10.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, import_bytes14.hexlify)(payload)); } const maxPriorityFeePerGas = handleNumber(transaction[2]); const maxFeePerGas = handleNumber(transaction[3]); @@ -164754,14 +222046,14 @@ ${gz(e, r10)}`); if (transaction.length === 9) { return tx2; } - tx2.hash = keccak256(payload); + tx2.hash = (0, import_keccak2566.keccak256)(payload); _parseEipSignature(tx2, transaction.slice(9), _serializeEip1559); return tx2; } function _parseEip2930(payload) { - const transaction = decode(payload.slice(1)); + const transaction = RLP.decode(payload.slice(1)); if (transaction.length !== 8 && transaction.length !== 11) { - logger14.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, import_bytes17.hexlify)(payload)); + logger10.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, import_bytes14.hexlify)(payload)); } const tx2 = { type: 1, @@ -164777,14 +222069,14 @@ ${gz(e, r10)}`); if (transaction.length === 8) { return tx2; } - tx2.hash = keccak256(payload); + tx2.hash = (0, import_keccak2566.keccak256)(payload); _parseEipSignature(tx2, transaction.slice(8), _serializeEip2930); return tx2; } function _parse(rawTransaction) { - const transaction = decode(rawTransaction); + const transaction = RLP.decode(rawTransaction); if (transaction.length !== 9 && transaction.length !== 6) { - logger14.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction); + logger10.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction); } const tx2 = { nonce: handleNumber(transaction[0]).toNumber(), @@ -164799,13 +222091,13 @@ ${gz(e, r10)}`); return tx2; } try { - tx2.v = import_bignumber8.BigNumber.from(transaction[6]).toNumber(); + tx2.v = import_bignumber7.BigNumber.from(transaction[6]).toNumber(); } catch (error) { return tx2; } - tx2.r = (0, import_bytes17.hexZeroPad)(transaction[7], 32); - tx2.s = (0, import_bytes17.hexZeroPad)(transaction[8], 32); - if (import_bignumber8.BigNumber.from(tx2.r).isZero() && import_bignumber8.BigNumber.from(tx2.s).isZero()) { + tx2.r = (0, import_bytes14.hexZeroPad)(transaction[7], 32); + tx2.s = (0, import_bytes14.hexZeroPad)(transaction[8], 32); + if (import_bignumber7.BigNumber.from(tx2.r).isZero() && import_bignumber7.BigNumber.from(tx2.s).isZero()) { tx2.chainId = tx2.v; tx2.v = 0; } else { @@ -164816,23 +222108,23 @@ ${gz(e, r10)}`); let recoveryParam = tx2.v - 27; const raw = transaction.slice(0, 6); if (tx2.chainId !== 0) { - raw.push((0, import_bytes17.hexlify)(tx2.chainId)); + raw.push((0, import_bytes14.hexlify)(tx2.chainId)); raw.push("0x"); raw.push("0x"); recoveryParam -= tx2.chainId * 2 + 8; } - const digest = keccak256(encode(raw)); + const digest = (0, import_keccak2566.keccak256)(RLP.encode(raw)); try { - tx2.from = recoverAddress(digest, { r: (0, import_bytes17.hexlify)(tx2.r), s: (0, import_bytes17.hexlify)(tx2.s), recoveryParam }); + tx2.from = recoverAddress(digest, { r: (0, import_bytes14.hexlify)(tx2.r), s: (0, import_bytes14.hexlify)(tx2.s), recoveryParam }); } catch (error) { } - tx2.hash = keccak256(rawTransaction); + tx2.hash = (0, import_keccak2566.keccak256)(rawTransaction); } tx2.type = null; return tx2; } function parse(rawTransaction) { - const payload = (0, import_bytes17.arrayify)(rawTransaction); + const payload = (0, import_bytes14.arrayify)(rawTransaction); if (payload[0] > 127) { return _parse(payload); } @@ -164844,20 +222136,20 @@ ${gz(e, r10)}`); default: break; } - return logger14.throwError(`unsupported transaction type: ${payload[0]}`, import_logger14.Logger.errors.UNSUPPORTED_OPERATION, { + return logger10.throwError(`unsupported transaction type: ${payload[0]}`, import_logger10.Logger.errors.UNSUPPORTED_OPERATION, { operation: "parseTransaction", transactionType: payload[0] }); } // node_modules/@ethersproject/contracts/lib.esm/index.js - var import_logger15 = __toESM(require_lib()); + var import_logger11 = __toESM(require_lib()); // node_modules/@ethersproject/contracts/lib.esm/_version.js - var version11 = "contracts/5.7.0"; + var version7 = "contracts/5.7.0"; // node_modules/@ethersproject/contracts/lib.esm/index.js - var __awaiter6 = function(thisArg, _arguments, P, generator) { + var __awaiter4 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -164884,8 +222176,8 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger15 = new import_logger15.Logger(version11); - var allowedTransactionKeys3 = { + var logger11 = new import_logger11.Logger(version7); + var allowedTransactionKeys2 = { chainId: true, data: true, from: true, @@ -164902,29 +222194,29 @@ ${gz(e, r10)}`); ccipReadEnabled: true }; function resolveName(resolver, nameOrPromise) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { const name6 = yield nameOrPromise; if (typeof name6 !== "string") { - logger15.throwArgumentError("invalid address or ENS name", "name", name6); + logger11.throwArgumentError("invalid address or ENS name", "name", name6); } try { - return getAddress(name6); + return (0, import_address6.getAddress)(name6); } catch (error) { } if (!resolver) { - logger15.throwError("a provider or signer is needed to resolve ENS names", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("a provider or signer is needed to resolve ENS names", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resolveName" }); } const address = yield resolver.resolveName(name6); if (address == null) { - logger15.throwArgumentError("resolver or addr is not configured for ENS name", "name", name6); + logger11.throwArgumentError("resolver or addr is not configured for ENS name", "name", name6); } return address; }); } function resolveAddresses(resolver, value, paramType) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (Array.isArray(paramType)) { return yield Promise.all(paramType.map((paramType2, index) => { return resolveAddresses(resolver, Array.isArray(value) ? value[index] : value[paramType2.name], paramType2); @@ -164938,7 +222230,7 @@ ${gz(e, r10)}`); } if (paramType.baseType === "array") { if (!Array.isArray(value)) { - return Promise.reject(logger15.makeError("invalid value for array", import_logger15.Logger.errors.INVALID_ARGUMENT, { + return Promise.reject(logger11.makeError("invalid value for array", import_logger11.Logger.errors.INVALID_ARGUMENT, { argument: "value", value })); @@ -164949,20 +222241,20 @@ ${gz(e, r10)}`); }); } function populateTransaction(contract, fragment, args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let overrides = {}; if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") { - overrides = shallowCopy(args.pop()); + overrides = (0, import_properties9.shallowCopy)(args.pop()); } - logger15.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract"); + logger11.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract"); if (contract.signer) { if (overrides.from) { - overrides.from = resolveProperties({ + overrides.from = (0, import_properties9.resolveProperties)({ override: resolveName(contract.signer, overrides.from), signer: contract.signer.getAddress() - }).then((check) => __awaiter6(this, void 0, void 0, function* () { - if (getAddress(check.signer) !== check.override) { - logger15.throwError("Contract with a Signer cannot override from", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + }).then((check) => __awaiter4(this, void 0, void 0, function* () { + if ((0, import_address6.getAddress)(check.signer) !== check.override) { + logger11.throwError("Contract with a Signer cannot override from", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.from" }); } @@ -164974,10 +222266,10 @@ ${gz(e, r10)}`); } else if (overrides.from) { overrides.from = resolveName(contract.provider, overrides.from); } - const resolved = yield resolveProperties({ + const resolved = yield (0, import_properties9.resolveProperties)({ args: resolveAddresses(contract.signer || contract.provider, args, fragment.inputs), address: contract.resolvedAddress, - overrides: resolveProperties(overrides) || {} + overrides: (0, import_properties9.resolveProperties)(overrides) || {} }); const data = contract.interface.encodeFunctionData(fragment, resolved.args); const tx2 = { @@ -164986,19 +222278,19 @@ ${gz(e, r10)}`); }; const ro2 = resolved.overrides; if (ro2.nonce != null) { - tx2.nonce = import_bignumber9.BigNumber.from(ro2.nonce).toNumber(); + tx2.nonce = import_bignumber8.BigNumber.from(ro2.nonce).toNumber(); } if (ro2.gasLimit != null) { - tx2.gasLimit = import_bignumber9.BigNumber.from(ro2.gasLimit); + tx2.gasLimit = import_bignumber8.BigNumber.from(ro2.gasLimit); } if (ro2.gasPrice != null) { - tx2.gasPrice = import_bignumber9.BigNumber.from(ro2.gasPrice); + tx2.gasPrice = import_bignumber8.BigNumber.from(ro2.gasPrice); } if (ro2.maxFeePerGas != null) { - tx2.maxFeePerGas = import_bignumber9.BigNumber.from(ro2.maxFeePerGas); + tx2.maxFeePerGas = import_bignumber8.BigNumber.from(ro2.maxFeePerGas); } if (ro2.maxPriorityFeePerGas != null) { - tx2.maxPriorityFeePerGas = import_bignumber9.BigNumber.from(ro2.maxPriorityFeePerGas); + tx2.maxPriorityFeePerGas = import_bignumber8.BigNumber.from(ro2.maxPriorityFeePerGas); } if (ro2.from != null) { tx2.from = ro2.from; @@ -165011,19 +222303,19 @@ ${gz(e, r10)}`); } if (tx2.gasLimit == null && fragment.gas != null) { let intrinsic = 21e3; - const bytes5 = (0, import_bytes18.arrayify)(data); + const bytes5 = (0, import_bytes15.arrayify)(data); for (let i = 0; i < bytes5.length; i++) { intrinsic += 4; if (bytes5[i]) { intrinsic += 64; } } - tx2.gasLimit = import_bignumber9.BigNumber.from(fragment.gas).add(intrinsic); + tx2.gasLimit = import_bignumber8.BigNumber.from(fragment.gas).add(intrinsic); } if (ro2.value) { - const roValue = import_bignumber9.BigNumber.from(ro2.value); + const roValue = import_bignumber8.BigNumber.from(ro2.value); if (!roValue.isZero() && !fragment.payable) { - logger15.throwError("non-payable method cannot override value", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("non-payable method cannot override value", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.value", value: overrides.value }); @@ -165031,7 +222323,7 @@ ${gz(e, r10)}`); tx2.value = roValue; } if (ro2.customData) { - tx2.customData = shallowCopy(ro2.customData); + tx2.customData = (0, import_properties9.shallowCopy)(ro2.customData); } if (ro2.ccipReadEnabled) { tx2.ccipReadEnabled = !!ro2.ccipReadEnabled; @@ -165049,7 +222341,7 @@ ${gz(e, r10)}`); delete overrides.ccipReadEnabled; const leftovers = Object.keys(overrides).filter((key2) => overrides[key2] != null); if (leftovers.length) { - logger15.throwError(`cannot override ${leftovers.map((l15) => JSON.stringify(l15)).join(",")}`, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError(`cannot override ${leftovers.map((l15) => JSON.stringify(l15)).join(",")}`, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides", overrides: leftovers }); @@ -165065,9 +222357,9 @@ ${gz(e, r10)}`); function buildEstimate(contract, fragment) { const signerOrProvider = contract.signer || contract.provider; return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (!signerOrProvider) { - logger15.throwError("estimate require a provider or signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("estimate require a provider or signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "estimateGas" }); } @@ -165081,7 +222373,7 @@ ${gz(e, r10)}`); tx2.wait = (confirmations) => { return wait(confirmations).then((receipt) => { receipt.events = receipt.logs.map((log) => { - let event = deepCopy(log); + let event = (0, import_properties9.deepCopy)(log); let parsed = null; try { parsed = contract.interface.parseLog(log); @@ -165116,10 +222408,10 @@ ${gz(e, r10)}`); function buildCall(contract, fragment, collapseSimple) { const signerOrProvider = contract.signer || contract.provider; return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let blockTag = void 0; if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") { - const overrides = shallowCopy(args.pop()); + const overrides = (0, import_properties9.shallowCopy)(args.pop()); if (overrides.blockTag != null) { blockTag = yield overrides.blockTag; } @@ -165138,7 +222430,7 @@ ${gz(e, r10)}`); } return value; } catch (error) { - if (error.code === import_logger15.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger11.Logger.errors.CALL_EXCEPTION) { error.address = contract.address; error.args = args; error.transaction = tx2; @@ -165150,9 +222442,9 @@ ${gz(e, r10)}`); } function buildSend(contract, fragment) { return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (!contract.signer) { - logger15.throwError("sending a transaction requires a signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("sending a transaction requires a signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction" }); } @@ -165185,8 +222477,8 @@ ${gz(e, r10)}`); } var RunningEvent = class { constructor(tag, filter) { - defineReadOnly(this, "tag", tag); - defineReadOnly(this, "filter", filter); + (0, import_properties9.defineReadOnly)(this, "tag", tag); + (0, import_properties9.defineReadOnly)(this, "filter", filter); this._listeners = []; } addListener(listener, once) { @@ -165241,16 +222533,16 @@ ${gz(e, r10)}`); let topic = contractInterface.getEventTopic(fragment); if (topics) { if (topic !== topics[0]) { - logger15.throwArgumentError("topic mismatch", "topics", topics); + logger11.throwArgumentError("topic mismatch", "topics", topics); } filter.topics = topics.slice(); } else { filter.topics = [topic]; } super(getEventTag(filter), filter); - defineReadOnly(this, "address", address); - defineReadOnly(this, "interface", contractInterface); - defineReadOnly(this, "fragment", fragment); + (0, import_properties9.defineReadOnly)(this, "address", address); + (0, import_properties9.defineReadOnly)(this, "interface", contractInterface); + (0, import_properties9.defineReadOnly)(this, "fragment", fragment); } prepareEvent(event) { super.prepareEvent(event); @@ -165279,8 +222571,8 @@ ${gz(e, r10)}`); var WildcardRunningEvent = class extends RunningEvent { constructor(address, contractInterface) { super("*", { address }); - defineReadOnly(this, "address", address); - defineReadOnly(this, "interface", contractInterface); + (0, import_properties9.defineReadOnly)(this, "address", address); + (0, import_properties9.defineReadOnly)(this, "interface", contractInterface); } prepareEvent(event) { super.prepareEvent(event); @@ -165298,29 +222590,29 @@ ${gz(e, r10)}`); }; var BaseContract = class { constructor(addressOrName, contractInterface, signerOrProvider) { - defineReadOnly(this, "interface", getStatic(new.target, "getInterface")(contractInterface)); + (0, import_properties9.defineReadOnly)(this, "interface", (0, import_properties9.getStatic)(new.target, "getInterface")(contractInterface)); if (signerOrProvider == null) { - defineReadOnly(this, "provider", null); - defineReadOnly(this, "signer", null); - } else if (Signer.isSigner(signerOrProvider)) { - defineReadOnly(this, "provider", signerOrProvider.provider || null); - defineReadOnly(this, "signer", signerOrProvider); + (0, import_properties9.defineReadOnly)(this, "provider", null); + (0, import_properties9.defineReadOnly)(this, "signer", null); + } else if (import_abstract_signer.Signer.isSigner(signerOrProvider)) { + (0, import_properties9.defineReadOnly)(this, "provider", signerOrProvider.provider || null); + (0, import_properties9.defineReadOnly)(this, "signer", signerOrProvider); } else if (Provider.isProvider(signerOrProvider)) { - defineReadOnly(this, "provider", signerOrProvider); - defineReadOnly(this, "signer", null); + (0, import_properties9.defineReadOnly)(this, "provider", signerOrProvider); + (0, import_properties9.defineReadOnly)(this, "signer", null); } else { - logger15.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider); + logger11.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider); } - defineReadOnly(this, "callStatic", {}); - defineReadOnly(this, "estimateGas", {}); - defineReadOnly(this, "functions", {}); - defineReadOnly(this, "populateTransaction", {}); - defineReadOnly(this, "filters", {}); + (0, import_properties9.defineReadOnly)(this, "callStatic", {}); + (0, import_properties9.defineReadOnly)(this, "estimateGas", {}); + (0, import_properties9.defineReadOnly)(this, "functions", {}); + (0, import_properties9.defineReadOnly)(this, "populateTransaction", {}); + (0, import_properties9.defineReadOnly)(this, "filters", {}); { const uniqueFilters = {}; Object.keys(this.interface.events).forEach((eventSignature) => { const event = this.interface.events[eventSignature]; - defineReadOnly(this.filters, eventSignature, (...args) => { + (0, import_properties9.defineReadOnly)(this.filters, eventSignature, (...args) => { return { address: this.address, topics: this.interface.encodeFilterTopics(event, args) @@ -165334,25 +222626,25 @@ ${gz(e, r10)}`); Object.keys(uniqueFilters).forEach((name6) => { const filters = uniqueFilters[name6]; if (filters.length === 1) { - defineReadOnly(this.filters, name6, this.filters[filters[0]]); + (0, import_properties9.defineReadOnly)(this.filters, name6, this.filters[filters[0]]); } else { - logger15.warn(`Duplicate definition of ${name6} (${filters.join(", ")})`); + logger11.warn(`Duplicate definition of ${name6} (${filters.join(", ")})`); } }); } - defineReadOnly(this, "_runningEvents", {}); - defineReadOnly(this, "_wrappedEmits", {}); + (0, import_properties9.defineReadOnly)(this, "_runningEvents", {}); + (0, import_properties9.defineReadOnly)(this, "_wrappedEmits", {}); if (addressOrName == null) { - logger15.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName); + logger11.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName); } - defineReadOnly(this, "address", addressOrName); + (0, import_properties9.defineReadOnly)(this, "address", addressOrName); if (this.provider) { - defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName)); + (0, import_properties9.defineReadOnly)(this, "resolvedAddress", resolveName(this.provider, addressOrName)); } else { try { - defineReadOnly(this, "resolvedAddress", Promise.resolve(getAddress(addressOrName))); + (0, import_properties9.defineReadOnly)(this, "resolvedAddress", Promise.resolve((0, import_address6.getAddress)(addressOrName))); } catch (error) { - logger15.throwError("provider is required to use ENS name as contract address", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("provider is required to use ENS name as contract address", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new Contract" }); } @@ -165364,7 +222656,7 @@ ${gz(e, r10)}`); Object.keys(this.interface.functions).forEach((signature2) => { const fragment = this.interface.functions[signature2]; if (uniqueSignatures[signature2]) { - logger15.warn(`Duplicate ABI entry for ${JSON.stringify(signature2)}`); + logger11.warn(`Duplicate ABI entry for ${JSON.stringify(signature2)}`); return; } uniqueSignatures[signature2] = true; @@ -165376,19 +222668,19 @@ ${gz(e, r10)}`); uniqueNames[`%${name6}`].push(signature2); } if (this[signature2] == null) { - defineReadOnly(this, signature2, buildDefault(this, fragment, true)); + (0, import_properties9.defineReadOnly)(this, signature2, buildDefault(this, fragment, true)); } if (this.functions[signature2] == null) { - defineReadOnly(this.functions, signature2, buildDefault(this, fragment, false)); + (0, import_properties9.defineReadOnly)(this.functions, signature2, buildDefault(this, fragment, false)); } if (this.callStatic[signature2] == null) { - defineReadOnly(this.callStatic, signature2, buildCall(this, fragment, true)); + (0, import_properties9.defineReadOnly)(this.callStatic, signature2, buildCall(this, fragment, true)); } if (this.populateTransaction[signature2] == null) { - defineReadOnly(this.populateTransaction, signature2, buildPopulate(this, fragment)); + (0, import_properties9.defineReadOnly)(this.populateTransaction, signature2, buildPopulate(this, fragment)); } if (this.estimateGas[signature2] == null) { - defineReadOnly(this.estimateGas, signature2, buildEstimate(this, fragment)); + (0, import_properties9.defineReadOnly)(this.estimateGas, signature2, buildEstimate(this, fragment)); } }); Object.keys(uniqueNames).forEach((name6) => { @@ -165400,26 +222692,26 @@ ${gz(e, r10)}`); const signature2 = signatures[0]; try { if (this[name6] == null) { - defineReadOnly(this, name6, this[signature2]); + (0, import_properties9.defineReadOnly)(this, name6, this[signature2]); } } catch (e) { } if (this.functions[name6] == null) { - defineReadOnly(this.functions, name6, this.functions[signature2]); + (0, import_properties9.defineReadOnly)(this.functions, name6, this.functions[signature2]); } if (this.callStatic[name6] == null) { - defineReadOnly(this.callStatic, name6, this.callStatic[signature2]); + (0, import_properties9.defineReadOnly)(this.callStatic, name6, this.callStatic[signature2]); } if (this.populateTransaction[name6] == null) { - defineReadOnly(this.populateTransaction, name6, this.populateTransaction[signature2]); + (0, import_properties9.defineReadOnly)(this.populateTransaction, name6, this.populateTransaction[signature2]); } if (this.estimateGas[name6] == null) { - defineReadOnly(this.estimateGas, name6, this.estimateGas[signature2]); + (0, import_properties9.defineReadOnly)(this.estimateGas, name6, this.estimateGas[signature2]); } }); } static getContractAddress(transaction) { - return getContractAddress(transaction); + return (0, import_address6.getContractAddress)(transaction); } static getInterface(contractInterface) { if (Interface.isInterface(contractInterface)) { @@ -165439,7 +222731,7 @@ ${gz(e, r10)}`); } else { this._deployedPromise = this.provider.getCode(this.address, blockTag).then((code) => { if (code === "0x") { - logger15.throwError("contract not deployed", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("contract not deployed", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { contractAddress: this.address, operation: "getDeployed" }); @@ -165452,14 +222744,14 @@ ${gz(e, r10)}`); } fallback(overrides) { if (!this.signer) { - logger15.throwError("sending a transactions require a signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); + logger11.throwError("sending a transactions require a signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); } - const tx2 = shallowCopy(overrides || {}); + const tx2 = (0, import_properties9.shallowCopy)(overrides || {}); ["from", "to"].forEach(function(key2) { if (tx2[key2] == null) { return; } - logger15.throwError("cannot override " + key2, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); + logger11.throwError("cannot override " + key2, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); }); tx2.to = this.resolvedAddress; return this.deployed().then(() => { @@ -165468,11 +222760,11 @@ ${gz(e, r10)}`); } connect(signerOrProvider) { if (typeof signerOrProvider === "string") { - signerOrProvider = new VoidSigner(signerOrProvider, this.provider); + signerOrProvider = new import_abstract_signer.VoidSigner(signerOrProvider, this.provider); } const contract = new this.constructor(this.address, this.interface, signerOrProvider); if (this.deployTransaction) { - defineReadOnly(contract, "deployTransaction", this.deployTransaction); + (0, import_properties9.defineReadOnly)(contract, "deployTransaction", this.deployTransaction); } return contract; } @@ -165531,7 +222823,7 @@ ${gz(e, r10)}`); } } _wrapEvent(runningEvent, log, listener) { - const event = deepCopy(log); + const event = (0, import_properties9.deepCopy)(log); event.removeListener = () => { if (!listener) { return; @@ -165553,7 +222845,7 @@ ${gz(e, r10)}`); } _addEventListener(runningEvent, listener, once) { if (!this.provider) { - logger15.throwError("events require a provider or a signer with a provider", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" }); + logger11.throwError("events require a provider or a signer with a provider", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" }); } runningEvent.addListener(listener, once); this._runningEvents[runningEvent.tag] = runningEvent; @@ -165583,10 +222875,10 @@ ${gz(e, r10)}`); } queryFilter(event, fromBlockOrBlockhash, toBlock) { const runningEvent = this._getRunningEvent(event); - const filter = shallowCopy(runningEvent.filter); - if (typeof fromBlockOrBlockhash === "string" && (0, import_bytes18.isHexString)(fromBlockOrBlockhash, 32)) { + const filter = (0, import_properties9.shallowCopy)(runningEvent.filter); + if (typeof fromBlockOrBlockhash === "string" && (0, import_bytes15.isHexString)(fromBlockOrBlockhash, 32)) { if (toBlock != null) { - logger15.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock); + logger11.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock); } filter.blockHash = fromBlockOrBlockhash; } else { @@ -165677,8 +222969,8 @@ ${gz(e, r10)}`); let bytecodeHex = null; if (typeof bytecode === "string") { bytecodeHex = bytecode; - } else if ((0, import_bytes18.isBytes)(bytecode)) { - bytecodeHex = (0, import_bytes18.hexlify)(bytecode); + } else if ((0, import_bytes15.isBytes)(bytecode)) { + bytecodeHex = (0, import_bytes15.hexlify)(bytecode); } else if (bytecode && typeof bytecode.object === "string") { bytecodeHex = bytecode.object; } else { @@ -165687,22 +222979,22 @@ ${gz(e, r10)}`); if (bytecodeHex.substring(0, 2) !== "0x") { bytecodeHex = "0x" + bytecodeHex; } - if (!(0, import_bytes18.isHexString)(bytecodeHex) || bytecodeHex.length % 2) { - logger15.throwArgumentError("invalid bytecode", "bytecode", bytecode); + if (!(0, import_bytes15.isHexString)(bytecodeHex) || bytecodeHex.length % 2) { + logger11.throwArgumentError("invalid bytecode", "bytecode", bytecode); } - if (signer && !Signer.isSigner(signer)) { - logger15.throwArgumentError("invalid signer", "signer", signer); + if (signer && !import_abstract_signer.Signer.isSigner(signer)) { + logger11.throwArgumentError("invalid signer", "signer", signer); } - defineReadOnly(this, "bytecode", bytecodeHex); - defineReadOnly(this, "interface", getStatic(new.target, "getInterface")(contractInterface)); - defineReadOnly(this, "signer", signer || null); + (0, import_properties9.defineReadOnly)(this, "bytecode", bytecodeHex); + (0, import_properties9.defineReadOnly)(this, "interface", (0, import_properties9.getStatic)(new.target, "getInterface")(contractInterface)); + (0, import_properties9.defineReadOnly)(this, "signer", signer || null); } getDeployTransaction(...args) { let tx2 = {}; if (args.length === this.interface.deploy.inputs.length + 1 && typeof args[args.length - 1] === "object") { - tx2 = shallowCopy(args.pop()); + tx2 = (0, import_properties9.shallowCopy)(args.pop()); for (const key2 in tx2) { - if (!allowedTransactionKeys3[key2]) { + if (!allowedTransactionKeys2[key2]) { throw new Error("unknown transaction override " + key2); } } @@ -165711,39 +223003,39 @@ ${gz(e, r10)}`); if (tx2[key2] == null) { return; } - logger15.throwError("cannot override " + key2, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); + logger11.throwError("cannot override " + key2, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); }); if (tx2.value) { - const value = import_bignumber9.BigNumber.from(tx2.value); + const value = import_bignumber8.BigNumber.from(tx2.value); if (!value.isZero() && !this.interface.deploy.payable) { - logger15.throwError("non-payable constructor cannot override value", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("non-payable constructor cannot override value", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.value", value: tx2.value }); } } - logger15.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); - tx2.data = (0, import_bytes18.hexlify)((0, import_bytes18.concat)([ + logger11.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); + tx2.data = (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ this.bytecode, this.interface.encodeDeploy(args) ])); return tx2; } deploy(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let overrides = {}; if (args.length === this.interface.deploy.inputs.length + 1) { overrides = args.pop(); } - logger15.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); + logger11.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); const params = yield resolveAddresses(this.signer, args, this.interface.deploy.inputs); params.push(overrides); const unsignedTx = this.getDeployTransaction(...params); const tx2 = yield this.signer.sendTransaction(unsignedTx); - const address = getStatic(this.constructor, "getContractAddress")(tx2); - const contract = getStatic(this.constructor, "getContract")(address, this.interface, this.signer); + const address = (0, import_properties9.getStatic)(this.constructor, "getContractAddress")(tx2); + const contract = (0, import_properties9.getStatic)(this.constructor, "getContract")(address, this.interface, this.signer); addContractWait(contract, tx2); - defineReadOnly(contract, "deployTransaction", tx2); + (0, import_properties9.defineReadOnly)(contract, "deployTransaction", tx2); return contract; }); } @@ -165755,7 +223047,7 @@ ${gz(e, r10)}`); } static fromSolidity(compilerOutput, signer) { if (compilerOutput == null) { - logger15.throwError("missing compiler output", import_logger15.Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" }); + logger11.throwError("missing compiler output", import_logger11.Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" }); } if (typeof compilerOutput === "string") { compilerOutput = JSON.parse(compilerOutput); @@ -165773,7 +223065,7 @@ ${gz(e, r10)}`); return Contract.getInterface(contractInterface); } static getContractAddress(tx2) { - return getContractAddress(tx2); + return (0, import_address6.getContractAddress)(tx2); } static getContract(address, contractInterface, signer) { return new Contract(address, contractInterface, signer); @@ -165781,25 +223073,29 @@ ${gz(e, r10)}`); }; // node_modules/ethers/lib.esm/ethers.js - var import_bignumber18 = __toESM(require_lib3()); + var import_bignumber17 = __toESM(require_lib3()); + var import_abstract_signer4 = __toESM(require_lib11()); // node_modules/@ethersproject/wallet/lib.esm/index.js - var import_bytes27 = __toESM(require_lib2()); + var import_address10 = __toESM(require_lib10()); + var import_abstract_signer2 = __toESM(require_lib11()); + var import_bytes24 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/basex/lib.esm/index.js - var import_bytes19 = __toESM(require_lib2()); + var import_bytes16 = __toESM(require_lib2()); + var import_properties10 = __toESM(require_lib7()); var BaseX = class { constructor(alphabet4) { - defineReadOnly(this, "alphabet", alphabet4); - defineReadOnly(this, "base", alphabet4.length); - defineReadOnly(this, "_alphabetMap", {}); - defineReadOnly(this, "_leader", alphabet4.charAt(0)); + (0, import_properties10.defineReadOnly)(this, "alphabet", alphabet4); + (0, import_properties10.defineReadOnly)(this, "base", alphabet4.length); + (0, import_properties10.defineReadOnly)(this, "_alphabetMap", {}); + (0, import_properties10.defineReadOnly)(this, "_leader", alphabet4.charAt(0)); for (let i = 0; i < alphabet4.length; i++) { this._alphabetMap[alphabet4.charAt(i)] = i; } } encode(value) { - let source = (0, import_bytes19.arrayify)(value); + let source = (0, import_bytes16.arrayify)(value); if (source.length === 0) { return ""; } @@ -165853,23 +223149,23 @@ ${gz(e, r10)}`); for (let k = 0; value[k] === this._leader && k < value.length - 1; ++k) { bytes5.push(0); } - return (0, import_bytes19.arrayify)(new Uint8Array(bytes5.reverse())); + return (0, import_bytes16.arrayify)(new Uint8Array(bytes5.reverse())); } }; var Base32 = new BaseX("abcdefghijklmnopqrstuvwxyz234567"); var Base58 = new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var import_bytes22 = __toESM(require_lib2()); - var import_bignumber10 = __toESM(require_lib3()); + var import_bytes19 = __toESM(require_lib2()); + var import_bignumber9 = __toESM(require_lib3()); var import_strings6 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.js - var import_bytes21 = __toESM(require_lib2()); + var import_bytes18 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js var import_hash3 = __toESM(require_hash()); - var import_bytes20 = __toESM(require_lib2()); + var import_bytes17 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/sha2/lib.esm/types.js var SupportedAlgorithm; @@ -165879,36 +223175,36 @@ ${gz(e, r10)}`); })(SupportedAlgorithm || (SupportedAlgorithm = {})); // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js - var import_logger16 = __toESM(require_lib()); + var import_logger12 = __toESM(require_lib()); // ../../node_modules/@ethersproject/sha2/lib.esm/_version.js - var version12 = "sha2/5.7.0"; + var version8 = "sha2/5.7.0"; // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js - var logger16 = new import_logger16.Logger(version12); + var logger12 = new import_logger12.Logger(version8); function ripemd160(data) { - return "0x" + import_hash3.default.ripemd160().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.ripemd160().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function sha256(data) { - return "0x" + import_hash3.default.sha256().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.sha256().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function sha512(data) { - return "0x" + import_hash3.default.sha512().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.sha512().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function computeHmac(algorithm, key2, data) { if (!SupportedAlgorithm[algorithm]) { - logger16.throwError("unsupported algorithm " + algorithm, import_logger16.Logger.errors.UNSUPPORTED_OPERATION, { + logger12.throwError("unsupported algorithm " + algorithm, import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { operation: "hmac", algorithm }); } - return "0x" + import_hash3.default.hmac(import_hash3.default[algorithm], (0, import_bytes20.arrayify)(key2)).update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.hmac(import_hash3.default[algorithm], (0, import_bytes17.arrayify)(key2)).update((0, import_bytes17.arrayify)(data)).digest("hex"); } // ../../node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.js function pbkdf2(password, salt, iterations, keylen, hashAlgorithm) { - password = (0, import_bytes21.arrayify)(password); - salt = (0, import_bytes21.arrayify)(salt); + password = (0, import_bytes18.arrayify)(password); + salt = (0, import_bytes18.arrayify)(salt); let hLen; let l15 = 1; const DK2 = new Uint8Array(keylen); @@ -165921,7 +223217,7 @@ ${gz(e, r10)}`); block1[salt.length + 1] = i >> 16 & 255; block1[salt.length + 2] = i >> 8 & 255; block1[salt.length + 3] = i & 255; - let U = (0, import_bytes21.arrayify)(computeHmac(hashAlgorithm, password, block1)); + let U = (0, import_bytes18.arrayify)(computeHmac(hashAlgorithm, password, block1)); if (!hLen) { hLen = U.length; T = new Uint8Array(hLen); @@ -165930,30 +223226,34 @@ ${gz(e, r10)}`); } T.set(U); for (let j10 = 1; j10 < iterations; j10++) { - U = (0, import_bytes21.arrayify)(computeHmac(hashAlgorithm, password, U)); + U = (0, import_bytes18.arrayify)(computeHmac(hashAlgorithm, password, U)); for (let k = 0; k < hLen; k++) T[k] ^= U[k]; } const destPos = (i - 1) * hLen; const len = i === l15 ? r10 : hLen; - DK2.set((0, import_bytes21.arrayify)(T).slice(0, len), destPos); + DK2.set((0, import_bytes18.arrayify)(T).slice(0, len), destPos); } - return (0, import_bytes21.hexlify)(DK2); + return (0, import_bytes18.hexlify)(DK2); } + // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js + var import_properties12 = __toESM(require_lib7()); + // ../../node_modules/@ethersproject/wordlists/lib.esm/wordlist.js - var import_logger17 = __toESM(require_lib()); + var import_properties11 = __toESM(require_lib7()); + var import_logger13 = __toESM(require_lib()); // ../../node_modules/@ethersproject/wordlists/lib.esm/_version.js - var version13 = "wordlists/5.7.0"; + var version9 = "wordlists/5.7.0"; // ../../node_modules/@ethersproject/wordlists/lib.esm/wordlist.js var exportWordlist = false; - var logger17 = new import_logger17.Logger(version13); + var logger13 = new import_logger13.Logger(version9); var Wordlist = class { constructor(locale) { - logger17.checkAbstract(new.target, Wordlist); - defineReadOnly(this, "locale", locale); + logger13.checkAbstract(new.target, Wordlist); + (0, import_properties11.defineReadOnly)(this, "locale", locale); } split(mnemonic) { return mnemonic.toLowerCase().split(/ +/g); @@ -165981,7 +223281,7 @@ ${gz(e, r10)}`); const anyGlobal2 = window; if (anyGlobal2._ethers && anyGlobal2._ethers.wordlists) { if (!anyGlobal2._ethers.wordlists[name6]) { - defineReadOnly(anyGlobal2._ethers.wordlists, name6, lang); + (0, import_properties11.defineReadOnly)(anyGlobal2._ethers.wordlists, name6, lang); } } } catch (error) { @@ -166025,14 +223325,14 @@ ${gz(e, r10)}`); }; // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var import_logger18 = __toESM(require_lib()); + var import_logger14 = __toESM(require_lib()); // ../../node_modules/@ethersproject/hdnode/lib.esm/_version.js - var version14 = "hdnode/5.7.0"; + var version10 = "hdnode/5.7.0"; // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var logger18 = new import_logger18.Logger(version14); - var N = import_bignumber10.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); + var logger14 = new import_logger14.Logger(version10); + var N = import_bignumber9.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); var MasterSecret = (0, import_strings6.toUtf8Bytes)("Bitcoin seed"); var HardenedBit = 2147483648; function getUpperMask(bits2) { @@ -166042,10 +223342,10 @@ ${gz(e, r10)}`); return (1 << bits2) - 1; } function bytes32(value) { - return (0, import_bytes22.hexZeroPad)((0, import_bytes22.hexlify)(value), 32); + return (0, import_bytes19.hexZeroPad)((0, import_bytes19.hexlify)(value), 32); } function base58check(data) { - return Base58.encode((0, import_bytes22.concat)([data, (0, import_bytes22.hexDataSlice)(sha256(sha256(data)), 0, 4)])); + return Base58.encode((0, import_bytes19.concat)([data, (0, import_bytes19.hexDataSlice)(sha256(sha256(data)), 0, 4)])); } function getWordlist(wordlist2) { if (wordlist2 == null) { @@ -166054,7 +223354,7 @@ ${gz(e, r10)}`); if (typeof wordlist2 === "string") { const words2 = wordlists[wordlist2]; if (words2 == null) { - logger18.throwArgumentError("unknown locale", "wordlist", wordlist2); + logger14.throwArgumentError("unknown locale", "wordlist", wordlist2); } return words2; } @@ -166069,40 +223369,40 @@ ${gz(e, r10)}`); } if (privateKey) { const signingKey = new SigningKey(privateKey); - defineReadOnly(this, "privateKey", signingKey.privateKey); - defineReadOnly(this, "publicKey", signingKey.compressedPublicKey); + (0, import_properties12.defineReadOnly)(this, "privateKey", signingKey.privateKey); + (0, import_properties12.defineReadOnly)(this, "publicKey", signingKey.compressedPublicKey); } else { - defineReadOnly(this, "privateKey", null); - defineReadOnly(this, "publicKey", (0, import_bytes22.hexlify)(publicKey)); - } - defineReadOnly(this, "parentFingerprint", parentFingerprint); - defineReadOnly(this, "fingerprint", (0, import_bytes22.hexDataSlice)(ripemd160(sha256(this.publicKey)), 0, 4)); - defineReadOnly(this, "address", computeAddress(this.publicKey)); - defineReadOnly(this, "chainCode", chainCode); - defineReadOnly(this, "index", index); - defineReadOnly(this, "depth", depth); + (0, import_properties12.defineReadOnly)(this, "privateKey", null); + (0, import_properties12.defineReadOnly)(this, "publicKey", (0, import_bytes19.hexlify)(publicKey)); + } + (0, import_properties12.defineReadOnly)(this, "parentFingerprint", parentFingerprint); + (0, import_properties12.defineReadOnly)(this, "fingerprint", (0, import_bytes19.hexDataSlice)(ripemd160(sha256(this.publicKey)), 0, 4)); + (0, import_properties12.defineReadOnly)(this, "address", computeAddress(this.publicKey)); + (0, import_properties12.defineReadOnly)(this, "chainCode", chainCode); + (0, import_properties12.defineReadOnly)(this, "index", index); + (0, import_properties12.defineReadOnly)(this, "depth", depth); if (mnemonicOrPath == null) { - defineReadOnly(this, "mnemonic", null); - defineReadOnly(this, "path", null); + (0, import_properties12.defineReadOnly)(this, "mnemonic", null); + (0, import_properties12.defineReadOnly)(this, "path", null); } else if (typeof mnemonicOrPath === "string") { - defineReadOnly(this, "mnemonic", null); - defineReadOnly(this, "path", mnemonicOrPath); + (0, import_properties12.defineReadOnly)(this, "mnemonic", null); + (0, import_properties12.defineReadOnly)(this, "path", mnemonicOrPath); } else { - defineReadOnly(this, "mnemonic", mnemonicOrPath); - defineReadOnly(this, "path", mnemonicOrPath.path); + (0, import_properties12.defineReadOnly)(this, "mnemonic", mnemonicOrPath); + (0, import_properties12.defineReadOnly)(this, "path", mnemonicOrPath.path); } } get extendedKey() { if (this.depth >= 256) { throw new Error("Depth too large!"); } - return base58check((0, import_bytes22.concat)([ + return base58check((0, import_bytes19.concat)([ this.privateKey != null ? "0x0488ADE4" : "0x0488B21E", - (0, import_bytes22.hexlify)(this.depth), + (0, import_bytes19.hexlify)(this.depth), this.parentFingerprint, - (0, import_bytes22.hexZeroPad)((0, import_bytes22.hexlify)(this.index), 4), + (0, import_bytes19.hexZeroPad)((0, import_bytes19.hexlify)(this.index), 4), this.chainCode, - this.privateKey != null ? (0, import_bytes22.concat)(["0x00", this.privateKey]) : this.publicKey + this.privateKey != null ? (0, import_bytes19.concat)(["0x00", this.privateKey]) : this.publicKey ])); } neuter() { @@ -166121,25 +223421,25 @@ ${gz(e, r10)}`); if (!this.privateKey) { throw new Error("cannot derive child of neutered node"); } - data.set((0, import_bytes22.arrayify)(this.privateKey), 1); + data.set((0, import_bytes19.arrayify)(this.privateKey), 1); if (path) { path += "'"; } } else { - data.set((0, import_bytes22.arrayify)(this.publicKey)); + data.set((0, import_bytes19.arrayify)(this.publicKey)); } for (let i = 24; i >= 0; i -= 8) { data[33 + (i >> 3)] = index >> 24 - i & 255; } - const I = (0, import_bytes22.arrayify)(computeHmac(SupportedAlgorithm.sha512, this.chainCode, data)); + const I = (0, import_bytes19.arrayify)(computeHmac(SupportedAlgorithm.sha512, this.chainCode, data)); const IL2 = I.slice(0, 32); const IR2 = I.slice(32); let ki2 = null; let Ki2 = null; if (this.privateKey) { - ki2 = bytes32(import_bignumber10.BigNumber.from(IL2).add(this.privateKey).mod(N)); + ki2 = bytes32(import_bignumber9.BigNumber.from(IL2).add(this.privateKey).mod(N)); } else { - const ek2 = new SigningKey((0, import_bytes22.hexlify)(IL2)); + const ek2 = new SigningKey((0, import_bytes19.hexlify)(IL2)); Ki2 = ek2._addPoint(this.publicKey); } let mnemonicOrPath = path; @@ -166183,11 +223483,11 @@ ${gz(e, r10)}`); return result; } static _fromSeed(seed, mnemonic) { - const seedArray = (0, import_bytes22.arrayify)(seed); + const seedArray = (0, import_bytes19.arrayify)(seed); if (seedArray.length < 16 || seedArray.length > 64) { throw new Error("invalid seed"); } - const I = (0, import_bytes22.arrayify)(computeHmac(SupportedAlgorithm.sha512, MasterSecret, seedArray)); + const I = (0, import_bytes19.arrayify)(computeHmac(SupportedAlgorithm.sha512, MasterSecret, seedArray)); return new HDNode(_constructorGuard2, bytes32(I.slice(0, 32)), null, "0x00000000", bytes32(I.slice(32)), 0, 0, mnemonic); } static fromMnemonic(mnemonic, password, wordlist2) { @@ -166205,25 +223505,25 @@ ${gz(e, r10)}`); static fromExtendedKey(extendedKey) { const bytes5 = Base58.decode(extendedKey); if (bytes5.length !== 82 || base58check(bytes5.slice(0, 78)) !== extendedKey) { - logger18.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); + logger14.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); } const depth = bytes5[4]; - const parentFingerprint = (0, import_bytes22.hexlify)(bytes5.slice(5, 9)); - const index = parseInt((0, import_bytes22.hexlify)(bytes5.slice(9, 13)).substring(2), 16); - const chainCode = (0, import_bytes22.hexlify)(bytes5.slice(13, 45)); + const parentFingerprint = (0, import_bytes19.hexlify)(bytes5.slice(5, 9)); + const index = parseInt((0, import_bytes19.hexlify)(bytes5.slice(9, 13)).substring(2), 16); + const chainCode = (0, import_bytes19.hexlify)(bytes5.slice(13, 45)); const key2 = bytes5.slice(45, 78); - switch ((0, import_bytes22.hexlify)(bytes5.slice(0, 4))) { + switch ((0, import_bytes19.hexlify)(bytes5.slice(0, 4))) { case "0x0488b21e": case "0x043587cf": - return new HDNode(_constructorGuard2, null, (0, import_bytes22.hexlify)(key2), parentFingerprint, chainCode, index, depth, null); + return new HDNode(_constructorGuard2, null, (0, import_bytes19.hexlify)(key2), parentFingerprint, chainCode, index, depth, null); case "0x0488ade4": case "0x04358394 ": if (key2[0] !== 0) { break; } - return new HDNode(_constructorGuard2, (0, import_bytes22.hexlify)(key2.slice(1)), null, parentFingerprint, chainCode, index, depth, null); + return new HDNode(_constructorGuard2, (0, import_bytes19.hexlify)(key2.slice(1)), null, parentFingerprint, chainCode, index, depth, null); } - return logger18.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); + return logger14.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); } }; function mnemonicToSeed(mnemonic, password) { @@ -166235,12 +223535,12 @@ ${gz(e, r10)}`); } function mnemonicToEntropy(mnemonic, wordlist2) { wordlist2 = getWordlist(wordlist2); - logger18.checkNormalize(); + logger14.checkNormalize(); const words2 = wordlist2.split(mnemonic); if (words2.length % 3 !== 0) { throw new Error("invalid mnemonic"); } - const entropy = (0, import_bytes22.arrayify)(new Uint8Array(Math.ceil(11 * words2.length / 8))); + const entropy = (0, import_bytes19.arrayify)(new Uint8Array(Math.ceil(11 * words2.length / 8))); let offset = 0; for (let i = 0; i < words2.length; i++) { let index = wordlist2.getWordIndex(words2[i].normalize("NFKD")); @@ -166257,15 +223557,15 @@ ${gz(e, r10)}`); const entropyBits = 32 * words2.length / 3; const checksumBits = words2.length / 3; const checksumMask = getUpperMask(checksumBits); - const checksum = (0, import_bytes22.arrayify)(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; + const checksum = (0, import_bytes19.arrayify)(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; if (checksum !== (entropy[entropy.length - 1] & checksumMask)) { throw new Error("invalid checksum"); } - return (0, import_bytes22.hexlify)(entropy.slice(0, entropyBits / 8)); + return (0, import_bytes19.hexlify)(entropy.slice(0, entropyBits / 8)); } function entropyToMnemonic(entropy, wordlist2) { wordlist2 = getWordlist(wordlist2); - entropy = (0, import_bytes22.arrayify)(entropy); + entropy = (0, import_bytes19.arrayify)(entropy); if (entropy.length % 4 !== 0 || entropy.length < 16 || entropy.length > 32) { throw new Error("invalid entropy"); } @@ -166284,7 +223584,7 @@ ${gz(e, r10)}`); } } const checksumBits = entropy.length / 4; - const checksum = (0, import_bytes22.arrayify)(sha256(entropy))[0] & getUpperMask(checksumBits); + const checksum = (0, import_bytes19.arrayify)(sha256(entropy))[0] & getUpperMask(checksumBits); indices[indices.length - 1] <<= checksumBits; indices[indices.length - 1] |= checksum >> 8 - checksumBits; return wordlist2.join(indices.map((index) => wordlist2.getWord(index))); @@ -166299,20 +223599,24 @@ ${gz(e, r10)}`); } function getAccountPath(index) { if (typeof index !== "number" || index < 0 || index >= HardenedBit || index % 1) { - logger18.throwArgumentError("invalid account index", "index", index); + logger14.throwArgumentError("invalid account index", "index", index); } return `m/44'/60'/${index}'/0/0`; } + // node_modules/@ethersproject/wallet/lib.esm/index.js + var import_keccak2569 = __toESM(require_lib8()); + var import_properties15 = __toESM(require_lib7()); + // ../../node_modules/@ethersproject/random/lib.esm/random.js - var import_bytes23 = __toESM(require_lib2()); - var import_logger19 = __toESM(require_lib()); + var import_bytes20 = __toESM(require_lib2()); + var import_logger15 = __toESM(require_lib()); // ../../node_modules/@ethersproject/random/lib.esm/_version.js - var version15 = "random/5.7.0"; + var version11 = "random/5.7.0"; // ../../node_modules/@ethersproject/random/lib.esm/random.js - var logger19 = new import_logger19.Logger(version15); + var logger15 = new import_logger15.Logger(version11); function getGlobal() { if (typeof self !== "undefined") { return self; @@ -166328,10 +223632,10 @@ ${gz(e, r10)}`); var anyGlobal = getGlobal(); var crypto2 = anyGlobal.crypto || anyGlobal.msCrypto; if (!crypto2 || !crypto2.getRandomValues) { - logger19.warn("WARNING: Missing strong random number source"); + logger15.warn("WARNING: Missing strong random number source"); crypto2 = { getRandomValues: function(buffer) { - return logger19.throwError("no secure random source avaialble", import_logger19.Logger.errors.UNSUPPORTED_OPERATION, { + return logger15.throwError("no secure random source avaialble", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "crypto.getRandomValues" }); } @@ -166339,11 +223643,11 @@ ${gz(e, r10)}`); } function randomBytes(length) { if (length <= 0 || length > 1024 || length % 1 || length != length) { - logger19.throwArgumentError("invalid length", "length", length); + logger15.throwArgumentError("invalid length", "length", length); } const result = new Uint8Array(length); crypto2.getRandomValues(result); - return (0, import_bytes23.arrayify)(result); + return (0, import_bytes20.arrayify)(result); } // ../../node_modules/@ethersproject/random/lib.esm/shuffle.js @@ -166360,21 +223664,24 @@ ${gz(e, r10)}`); // ../../node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.js var import_aes_js = __toESM(require_aes_js()); - var import_bytes25 = __toESM(require_lib2()); + var import_address7 = __toESM(require_lib10()); + var import_bytes22 = __toESM(require_lib2()); + var import_keccak2567 = __toESM(require_lib8()); var import_strings8 = __toESM(require_lib6()); - var import_logger20 = __toESM(require_lib()); + var import_properties13 = __toESM(require_lib7()); + var import_logger16 = __toESM(require_lib()); // ../../node_modules/@ethersproject/json-wallets/lib.esm/_version.js - var version16 = "json-wallets/5.7.0"; + var version12 = "json-wallets/5.7.0"; // ../../node_modules/@ethersproject/json-wallets/lib.esm/utils.js - var import_bytes24 = __toESM(require_lib2()); + var import_bytes21 = __toESM(require_lib2()); var import_strings7 = __toESM(require_lib6()); function looseArrayify(hexString) { if (typeof hexString === "string" && hexString.substring(0, 2) !== "0x") { hexString = "0x" + hexString; } - return (0, import_bytes24.arrayify)(hexString); + return (0, import_bytes21.arrayify)(hexString); } function zpad(value, length) { value = String(value); @@ -166387,7 +223694,7 @@ ${gz(e, r10)}`); if (typeof password === "string") { return (0, import_strings7.toUtf8Bytes)(password, import_strings7.UnicodeNormalizationForm.NFKC); } - return (0, import_bytes24.arrayify)(password); + return (0, import_bytes21.arrayify)(password); } function searchPath(object, path) { let currentChild = object; @@ -166408,10 +223715,10 @@ ${gz(e, r10)}`); return currentChild; } function uuidV4(randomBytes3) { - const bytes5 = (0, import_bytes24.arrayify)(randomBytes3); + const bytes5 = (0, import_bytes21.arrayify)(randomBytes3); bytes5[6] = bytes5[6] & 15 | 64; bytes5[8] = bytes5[8] & 63 | 128; - const value = (0, import_bytes24.hexlify)(bytes5); + const value = (0, import_bytes21.hexlify)(bytes5); return [ value.substring(2, 10), value.substring(10, 14), @@ -166422,8 +223729,8 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.js - var logger20 = new import_logger20.Logger(version16); - var CrowdsaleAccount = class extends Description { + var logger16 = new import_logger16.Logger(version12); + var CrowdsaleAccount = class extends import_properties13.Description { isCrowdsaleAccount(value) { return !!(value && value._isCrowdsaleAccount); } @@ -166431,22 +223738,22 @@ ${gz(e, r10)}`); function decrypt(json, password) { const data = JSON.parse(json); password = getPassword(password); - const ethaddr = getAddress(searchPath(data, "ethaddr")); + const ethaddr = (0, import_address7.getAddress)(searchPath(data, "ethaddr")); const encseed = looseArrayify(searchPath(data, "encseed")); if (!encseed || encseed.length % 16 !== 0) { - logger20.throwArgumentError("invalid encseed", "json", json); + logger16.throwArgumentError("invalid encseed", "json", json); } - const key2 = (0, import_bytes25.arrayify)(pbkdf2(password, password, 2e3, 32, "sha256")).slice(0, 16); + const key2 = (0, import_bytes22.arrayify)(pbkdf2(password, password, 2e3, 32, "sha256")).slice(0, 16); const iv2 = encseed.slice(0, 16); const encryptedSeed = encseed.slice(16); const aesCbc = new import_aes_js.default.ModeOfOperation.cbc(key2, iv2); - const seed = import_aes_js.default.padding.pkcs7.strip((0, import_bytes25.arrayify)(aesCbc.decrypt(encryptedSeed))); + const seed = import_aes_js.default.padding.pkcs7.strip((0, import_bytes22.arrayify)(aesCbc.decrypt(encryptedSeed))); let seedHex = ""; for (let i = 0; i < seed.length; i++) { seedHex += String.fromCharCode(seed[i]); } const seedHexBytes = (0, import_strings8.toUtf8Bytes)(seedHex); - const privateKey = keccak256(seedHexBytes); + const privateKey = (0, import_keccak2567.keccak256)(seedHexBytes); return new CrowdsaleAccount({ _isCrowdsaleAccount: true, address: ethaddr, @@ -166455,6 +223762,7 @@ ${gz(e, r10)}`); } // ../../node_modules/@ethersproject/json-wallets/lib.esm/inspect.js + var import_address8 = __toESM(require_lib10()); function isCrowdsaleWallet(json) { let data = null; try { @@ -166479,14 +223787,14 @@ ${gz(e, r10)}`); function getJsonWalletAddress(json) { if (isCrowdsaleWallet(json)) { try { - return getAddress(JSON.parse(json).ethaddr); + return (0, import_address8.getAddress)(JSON.parse(json).ethaddr); } catch (error) { return null; } } if (isKeystoreWallet(json)) { try { - return getAddress(JSON.parse(json).address); + return (0, import_address8.getAddress)(JSON.parse(json).address); } catch (error) { return null; } @@ -166497,9 +223805,12 @@ ${gz(e, r10)}`); // ../../node_modules/@ethersproject/json-wallets/lib.esm/keystore.js var import_aes_js2 = __toESM(require_aes_js()); var import_scrypt_js = __toESM(require_scrypt3()); - var import_bytes26 = __toESM(require_lib2()); - var import_logger21 = __toESM(require_lib()); - var __awaiter7 = function(thisArg, _arguments, P, generator) { + var import_address9 = __toESM(require_lib10()); + var import_bytes23 = __toESM(require_lib2()); + var import_keccak2568 = __toESM(require_lib8()); + var import_properties14 = __toESM(require_lib7()); + var import_logger17 = __toESM(require_lib()); + var __awaiter5 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -166526,11 +223837,11 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger21 = new import_logger21.Logger(version16); + var logger17 = new import_logger17.Logger(version12); function hasMnemonic(value) { return value != null && value.mnemonic && value.mnemonic.phrase; } - var KeystoreAccount = class extends Description { + var KeystoreAccount = class extends import_properties14.Description { isKeystoreAccount(value) { return !!(value && value._isKeystoreAccount); } @@ -166541,19 +223852,19 @@ ${gz(e, r10)}`); const iv2 = looseArrayify(searchPath(data, "crypto/cipherparams/iv")); const counter = new import_aes_js2.default.Counter(iv2); const aesCtr = new import_aes_js2.default.ModeOfOperation.ctr(key2, counter); - return (0, import_bytes26.arrayify)(aesCtr.decrypt(ciphertext)); + return (0, import_bytes23.arrayify)(aesCtr.decrypt(ciphertext)); } return null; } function _getAccount(data, key2) { const ciphertext = looseArrayify(searchPath(data, "crypto/ciphertext")); - const computedMAC = (0, import_bytes26.hexlify)(keccak256((0, import_bytes26.concat)([key2.slice(16, 32), ciphertext]))).substring(2); + const computedMAC = (0, import_bytes23.hexlify)((0, import_keccak2568.keccak256)((0, import_bytes23.concat)([key2.slice(16, 32), ciphertext]))).substring(2); if (computedMAC !== searchPath(data, "crypto/mac").toLowerCase()) { throw new Error("invalid password"); } const privateKey = _decrypt(data, key2.slice(0, 16), ciphertext); if (!privateKey) { - logger21.throwError("unsupported cipher", import_logger21.Logger.errors.UNSUPPORTED_OPERATION, { + logger17.throwError("unsupported cipher", import_logger17.Logger.errors.UNSUPPORTED_OPERATION, { operation: "decrypt" }); } @@ -166564,14 +223875,14 @@ ${gz(e, r10)}`); if (check.substring(0, 2) !== "0x") { check = "0x" + check; } - if (getAddress(check) !== address) { + if ((0, import_address9.getAddress)(check) !== address) { throw new Error("address mismatch"); } } const account = { _isKeystoreAccount: true, address, - privateKey: (0, import_bytes26.hexlify)(privateKey) + privateKey: (0, import_bytes23.hexlify)(privateKey) }; if (searchPath(data, "x-ethers/version") === "0.1") { const mnemonicCiphertext = looseArrayify(searchPath(data, "x-ethers/mnemonicCiphertext")); @@ -166580,7 +223891,7 @@ ${gz(e, r10)}`); const mnemonicAesCtr = new import_aes_js2.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter); const path = searchPath(data, "x-ethers/path") || defaultPath; const locale = searchPath(data, "x-ethers/locale") || "en"; - const entropy = (0, import_bytes26.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext)); + const entropy = (0, import_bytes23.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext)); try { const mnemonic = entropyToMnemonic(entropy, locale); const node = HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path); @@ -166589,7 +223900,7 @@ ${gz(e, r10)}`); } account.mnemonic = node.mnemonic; } catch (error) { - if (error.code !== import_logger21.Logger.errors.INVALID_ARGUMENT || error.argument !== "wordlist") { + if (error.code !== import_logger17.Logger.errors.INVALID_ARGUMENT || error.argument !== "wordlist") { throw error; } } @@ -166597,7 +223908,7 @@ ${gz(e, r10)}`); return new KeystoreAccount(account); } function pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc) { - return (0, import_bytes26.arrayify)(pbkdf2(passwordBytes, salt, count, dkLen, prfFunc)); + return (0, import_bytes23.arrayify)(pbkdf2(passwordBytes, salt, count, dkLen, prfFunc)); } function pbkdf22(passwordBytes, salt, count, dkLen, prfFunc) { return Promise.resolve(pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc)); @@ -166607,7 +223918,7 @@ ${gz(e, r10)}`); const kdf = searchPath(data, "crypto/kdf"); if (kdf && typeof kdf === "string") { const throwError = function(name6, value) { - return logger21.throwArgumentError("invalid key-derivation function parameters", name6, value); + return logger17.throwArgumentError("invalid key-derivation function parameters", name6, value); }; if (kdf.toLowerCase() === "scrypt") { const salt = looseArrayify(searchPath(data, "crypto/kdfparams/salt")); @@ -166644,7 +223955,7 @@ ${gz(e, r10)}`); return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc); } } - return logger21.throwArgumentError("unsupported key-derivation function", "kdf", kdf); + return logger17.throwArgumentError("unsupported key-derivation function", "kdf", kdf); } function decryptSync(json, password) { const data = JSON.parse(json); @@ -166652,7 +223963,7 @@ ${gz(e, r10)}`); return _getAccount(data, key2); } function decrypt2(json, password, progressCallback) { - return __awaiter7(this, void 0, void 0, function* () { + return __awaiter5(this, void 0, void 0, function* () { const data = JSON.parse(json); const key2 = yield _computeKdfKey(data, password, pbkdf22, import_scrypt_js.default.scrypt, progressCallback); return _getAccount(data, key2); @@ -166660,7 +223971,7 @@ ${gz(e, r10)}`); } function encrypt(account, password, options, progressCallback) { try { - if (getAddress(account.address) !== computeAddress(account.privateKey)) { + if ((0, import_address9.getAddress)(account.address) !== computeAddress(account.privateKey)) { throw new Error("address/privateKey mismatch"); } if (hasMnemonic(account)) { @@ -166680,14 +223991,14 @@ ${gz(e, r10)}`); if (!options) { options = {}; } - const privateKey = (0, import_bytes26.arrayify)(account.privateKey); + const privateKey = (0, import_bytes23.arrayify)(account.privateKey); const passwordBytes = getPassword(password); let entropy = null; let path = null; let locale = null; if (hasMnemonic(account)) { const srcMnemonic = account.mnemonic; - entropy = (0, import_bytes26.arrayify)(mnemonicToEntropy(srcMnemonic.phrase, srcMnemonic.locale || "en")); + entropy = (0, import_bytes23.arrayify)(mnemonicToEntropy(srcMnemonic.phrase, srcMnemonic.locale || "en")); path = srcMnemonic.path || defaultPath; locale = srcMnemonic.locale || "en"; } @@ -166697,14 +224008,14 @@ ${gz(e, r10)}`); } let salt = null; if (options.salt) { - salt = (0, import_bytes26.arrayify)(options.salt); + salt = (0, import_bytes23.arrayify)(options.salt); } else { salt = randomBytes(32); ; } let iv2 = null; if (options.iv) { - iv2 = (0, import_bytes26.arrayify)(options.iv); + iv2 = (0, import_bytes23.arrayify)(options.iv); if (iv2.length !== 16) { throw new Error("invalid iv"); } @@ -166713,7 +224024,7 @@ ${gz(e, r10)}`); } let uuidRandom = null; if (options.uuid) { - uuidRandom = (0, import_bytes26.arrayify)(options.uuid); + uuidRandom = (0, import_bytes23.arrayify)(options.uuid); if (uuidRandom.length !== 16) { throw new Error("invalid uuid"); } @@ -166733,14 +224044,14 @@ ${gz(e, r10)}`); } } return import_scrypt_js.default.scrypt(passwordBytes, salt, N11, r10, p, 64, progressCallback).then((key2) => { - key2 = (0, import_bytes26.arrayify)(key2); + key2 = (0, import_bytes23.arrayify)(key2); const derivedKey = key2.slice(0, 16); const macPrefix = key2.slice(16, 32); const mnemonicKey = key2.slice(32, 64); const counter = new import_aes_js2.default.Counter(iv2); const aesCtr = new import_aes_js2.default.ModeOfOperation.ctr(derivedKey, counter); - const ciphertext = (0, import_bytes26.arrayify)(aesCtr.encrypt(privateKey)); - const mac = keccak256((0, import_bytes26.concat)([macPrefix, ciphertext])); + const ciphertext = (0, import_bytes23.arrayify)(aesCtr.encrypt(privateKey)); + const mac = (0, import_keccak2568.keccak256)((0, import_bytes23.concat)([macPrefix, ciphertext])); const data = { address: account.address.substring(2).toLowerCase(), id: uuidV4(uuidRandom), @@ -166748,12 +224059,12 @@ ${gz(e, r10)}`); crypto: { cipher: "aes-128-ctr", cipherparams: { - iv: (0, import_bytes26.hexlify)(iv2).substring(2) + iv: (0, import_bytes23.hexlify)(iv2).substring(2) }, - ciphertext: (0, import_bytes26.hexlify)(ciphertext).substring(2), + ciphertext: (0, import_bytes23.hexlify)(ciphertext).substring(2), kdf: "scrypt", kdfparams: { - salt: (0, import_bytes26.hexlify)(salt).substring(2), + salt: (0, import_bytes23.hexlify)(salt).substring(2), n: N11, dklen: 32, p, @@ -166766,14 +224077,14 @@ ${gz(e, r10)}`); const mnemonicIv = randomBytes(16); const mnemonicCounter = new import_aes_js2.default.Counter(mnemonicIv); const mnemonicAesCtr = new import_aes_js2.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter); - const mnemonicCiphertext = (0, import_bytes26.arrayify)(mnemonicAesCtr.encrypt(entropy)); + const mnemonicCiphertext = (0, import_bytes23.arrayify)(mnemonicAesCtr.encrypt(entropy)); const now2 = new Date(); const timestamp = now2.getUTCFullYear() + "-" + zpad(now2.getUTCMonth() + 1, 2) + "-" + zpad(now2.getUTCDate(), 2) + "T" + zpad(now2.getUTCHours(), 2) + "-" + zpad(now2.getUTCMinutes(), 2) + "-" + zpad(now2.getUTCSeconds(), 2) + ".0Z"; data["x-ethers"] = { client, gethFilename: "UTC--" + timestamp + "--" + data.address, - mnemonicCounter: (0, import_bytes26.hexlify)(mnemonicIv).substring(2), - mnemonicCiphertext: (0, import_bytes26.hexlify)(mnemonicCiphertext).substring(2), + mnemonicCounter: (0, import_bytes23.hexlify)(mnemonicIv).substring(2), + mnemonicCiphertext: (0, import_bytes23.hexlify)(mnemonicCiphertext).substring(2), path, locale, version: "0.1" @@ -166811,13 +224122,13 @@ ${gz(e, r10)}`); } // node_modules/@ethersproject/wallet/lib.esm/index.js - var import_logger22 = __toESM(require_lib()); + var import_logger18 = __toESM(require_lib()); // node_modules/@ethersproject/wallet/lib.esm/_version.js - var version17 = "wallet/5.7.0"; + var version13 = "wallet/5.7.0"; // node_modules/@ethersproject/wallet/lib.esm/index.js - var __awaiter8 = function(thisArg, _arguments, P, generator) { + var __awaiter6 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -166844,27 +224155,27 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger22 = new import_logger22.Logger(version17); + var logger18 = new import_logger18.Logger(version13); function isAccount(value) { - return value != null && (0, import_bytes27.isHexString)(value.privateKey, 32) && value.address != null; + return value != null && (0, import_bytes24.isHexString)(value.privateKey, 32) && value.address != null; } function hasMnemonic2(value) { const mnemonic = value.mnemonic; return mnemonic && mnemonic.phrase; } - var Wallet = class extends Signer { + var Wallet = class extends import_abstract_signer2.Signer { constructor(privateKey, provider) { super(); if (isAccount(privateKey)) { const signingKey = new SigningKey(privateKey.privateKey); - defineReadOnly(this, "_signingKey", () => signingKey); - defineReadOnly(this, "address", computeAddress(this.publicKey)); - if (this.address !== getAddress(privateKey.address)) { - logger22.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]"); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => signingKey); + (0, import_properties15.defineReadOnly)(this, "address", computeAddress(this.publicKey)); + if (this.address !== (0, import_address10.getAddress)(privateKey.address)) { + logger18.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]"); } if (hasMnemonic2(privateKey)) { const srcMnemonic = privateKey.mnemonic; - defineReadOnly(this, "_mnemonic", () => ({ + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => ({ phrase: srcMnemonic.phrase, path: srcMnemonic.path || defaultPath, locale: srcMnemonic.locale || "en" @@ -166872,17 +224183,17 @@ ${gz(e, r10)}`); const mnemonic = this.mnemonic; const node = HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path); if (computeAddress(node.privateKey) !== this.address) { - logger22.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]"); + logger18.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]"); } } else { - defineReadOnly(this, "_mnemonic", () => null); + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => null); } } else { if (SigningKey.isSigningKey(privateKey)) { if (privateKey.curve !== "secp256k1") { - logger22.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); + logger18.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); } - defineReadOnly(this, "_signingKey", () => privateKey); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => privateKey); } else { if (typeof privateKey === "string") { if (privateKey.match(/^[0-9a-f]*$/i) && privateKey.length === 64) { @@ -166890,15 +224201,15 @@ ${gz(e, r10)}`); } } const signingKey = new SigningKey(privateKey); - defineReadOnly(this, "_signingKey", () => signingKey); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => signingKey); } - defineReadOnly(this, "_mnemonic", () => null); - defineReadOnly(this, "address", computeAddress(this.publicKey)); + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => null); + (0, import_properties15.defineReadOnly)(this, "address", computeAddress(this.publicKey)); } if (provider && !Provider.isProvider(provider)) { - logger22.throwArgumentError("invalid provider", "provider", provider); + logger18.throwArgumentError("invalid provider", "provider", provider); } - defineReadOnly(this, "provider", provider || null); + (0, import_properties15.defineReadOnly)(this, "provider", provider || null); } get mnemonic() { return this._mnemonic(); @@ -166916,34 +224227,34 @@ ${gz(e, r10)}`); return new Wallet(this, provider); } signTransaction(transaction) { - return resolveProperties(transaction).then((tx2) => { + return (0, import_properties15.resolveProperties)(transaction).then((tx2) => { if (tx2.from != null) { - if (getAddress(tx2.from) !== this.address) { - logger22.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); + if ((0, import_address10.getAddress)(tx2.from) !== this.address) { + logger18.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); } delete tx2.from; } - const signature2 = this._signingKey().signDigest(keccak256(serialize(tx2))); + const signature2 = this._signingKey().signDigest((0, import_keccak2569.keccak256)(serialize(tx2))); return serialize(tx2, signature2); }); } signMessage(message) { - return __awaiter8(this, void 0, void 0, function* () { - return (0, import_bytes27.joinSignature)(this._signingKey().signDigest(hashMessage(message))); + return __awaiter6(this, void 0, void 0, function* () { + return (0, import_bytes24.joinSignature)(this._signingKey().signDigest(hashMessage(message))); }); } _signTypedData(domain, types2, value) { - return __awaiter8(this, void 0, void 0, function* () { + return __awaiter6(this, void 0, void 0, function* () { const populated = yield TypedDataEncoder.resolveNames(domain, types2, value, (name6) => { if (this.provider == null) { - logger22.throwError("cannot resolve ENS names without a provider", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { + logger18.throwError("cannot resolve ENS names without a provider", import_logger18.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resolveName", value: name6 }); } return this.provider.resolveName(name6); }); - return (0, import_bytes27.joinSignature)(this._signingKey().signDigest(TypedDataEncoder.hash(populated.domain, types2, populated.value))); + return (0, import_bytes24.joinSignature)(this._signingKey().signDigest(TypedDataEncoder.hash(populated.domain, types2, populated.value))); }); } encrypt(password, options, progressCallback) { @@ -166965,7 +224276,7 @@ ${gz(e, r10)}`); options = {}; } if (options.extraEntropy) { - entropy = (0, import_bytes27.arrayify)((0, import_bytes27.hexDataSlice)(keccak256((0, import_bytes27.concat)([entropy, options.extraEntropy])), 0, 16)); + entropy = (0, import_bytes24.arrayify)((0, import_bytes24.hexDataSlice)((0, import_keccak2569.keccak256)((0, import_bytes24.concat)([entropy, options.extraEntropy])), 0, 16)); } const mnemonic = entropyToMnemonic(entropy, options.locale); return Wallet.fromMnemonic(mnemonic, options.path, options.locale); @@ -166996,8 +224307,8 @@ ${gz(e, r10)}`); var constants = __toESM(require_lib5()); // node_modules/@ethersproject/providers/lib.esm/index.js - var lib_exports3 = {}; - __export(lib_exports3, { + var lib_exports2 = {}; + __export(lib_exports2, { AlchemyProvider: () => AlchemyProvider, AlchemyWebSocketProvider: () => AlchemyWebSocketProvider, AnkrProvider: () => AnkrProvider, @@ -167028,13 +224339,13 @@ ${gz(e, r10)}`); }); // ../../node_modules/@ethersproject/networks/lib.esm/index.js - var import_logger23 = __toESM(require_lib()); + var import_logger19 = __toESM(require_lib()); // ../../node_modules/@ethersproject/networks/lib.esm/_version.js - var version18 = "networks/5.7.1"; + var version14 = "networks/5.7.1"; // ../../node_modules/@ethersproject/networks/lib.esm/index.js - var logger23 = new import_logger23.Logger(version18); + var logger19 = new import_logger19.Logger(version14); function isRenetworkable(value) { return value && typeof value.renetwork === "function"; } @@ -167235,12 +224546,12 @@ ${gz(e, r10)}`); const standard = networks[network2.name]; if (!standard) { if (typeof network2.chainId !== "number") { - logger23.throwArgumentError("invalid network chainId", "network", network2); + logger19.throwArgumentError("invalid network chainId", "network", network2); } return network2; } if (network2.chainId !== 0 && network2.chainId !== standard.chainId) { - logger23.throwArgumentError("network chainId mismatch", "network", network2); + logger19.throwArgumentError("network chainId mismatch", "network", network2); } let defaultProvider = network2._defaultProvider || null; if (defaultProvider == null && standard._defaultProvider) { @@ -167259,22 +224570,24 @@ ${gz(e, r10)}`); } // node_modules/@ethersproject/providers/lib.esm/base-provider.js - var import_bignumber12 = __toESM(require_lib3()); - var import_bytes31 = __toESM(require_lib2()); + var import_bignumber11 = __toESM(require_lib3()); + var import_bytes28 = __toESM(require_lib2()); var import_constants4 = __toESM(require_lib5()); + var import_properties18 = __toESM(require_lib7()); var import_strings10 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/web/lib.esm/index.js - var import_bytes29 = __toESM(require_lib2()); + var import_bytes26 = __toESM(require_lib2()); + var import_properties16 = __toESM(require_lib7()); var import_strings9 = __toESM(require_lib6()); - var import_logger24 = __toESM(require_lib()); + var import_logger20 = __toESM(require_lib()); // ../../node_modules/@ethersproject/web/lib.esm/_version.js - var version19 = "web/5.7.1"; + var version15 = "web/5.7.1"; // ../../node_modules/@ethersproject/web/lib.esm/geturl.js - var import_bytes28 = __toESM(require_lib2()); - var __awaiter9 = function(thisArg, _arguments, P, generator) { + var import_bytes25 = __toESM(require_lib2()); + var __awaiter7 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -167302,7 +224615,7 @@ ${gz(e, r10)}`); }); }; function getUrl(href, options) { - return __awaiter9(this, void 0, void 0, function* () { + return __awaiter7(this, void 0, void 0, function* () { if (options == null) { options = {}; } @@ -167353,13 +224666,13 @@ ${gz(e, r10)}`); headers, statusCode: response.status, statusMessage: response.statusText, - body: (0, import_bytes28.arrayify)(new Uint8Array(body)) + body: (0, import_bytes25.arrayify)(new Uint8Array(body)) }; }); } // ../../node_modules/@ethersproject/web/lib.esm/index.js - var __awaiter10 = function(thisArg, _arguments, P, generator) { + var __awaiter8 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -167386,7 +224699,7 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger24 = new import_logger24.Logger(version19); + var logger20 = new import_logger20.Logger(version15); function staller(duration) { return new Promise((resolve) => { setTimeout(resolve, duration); @@ -167399,7 +224712,7 @@ ${gz(e, r10)}`); if (typeof value === "string") { return value; } - if ((0, import_bytes29.isBytesLike)(value)) { + if ((0, import_bytes26.isBytesLike)(value)) { if (type && (type.split("/")[0] === "text" || type.split(";")[0].trim() === "application/json")) { try { return (0, import_strings9.toUtf8String)(value); @@ -167407,7 +224720,7 @@ ${gz(e, r10)}`); } ; } - return (0, import_bytes29.hexlify)(value); + return (0, import_bytes26.hexlify)(value); } return value; } @@ -167418,10 +224731,10 @@ ${gz(e, r10)}`); } function _fetchData(connection, body, processFunc) { const attemptLimit = typeof connection === "object" && connection.throttleLimit != null ? connection.throttleLimit : 12; - logger24.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit); + logger20.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit); const throttleCallback = typeof connection === "object" ? connection.throttleCallback : null; const throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100; - logger24.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval); + logger20.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval); const errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false; const headers = {}; let url = null; @@ -167434,7 +224747,7 @@ ${gz(e, r10)}`); url = connection; } else if (typeof connection === "object") { if (connection == null || connection.url == null) { - logger24.throwArgumentError("missing URL", "connection.url", connection); + logger20.throwArgumentError("missing URL", "connection.url", connection); } url = connection.url; if (typeof connection.timeout === "number" && connection.timeout > 0) { @@ -167451,19 +224764,19 @@ ${gz(e, r10)}`); options.allowGzip = !!connection.allowGzip; if (connection.user != null && connection.password != null) { if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) { - logger24.throwError("basic authentication requires a secure https url", import_logger24.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" }); + logger20.throwError("basic authentication requires a secure https url", import_logger20.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" }); } const authorization = connection.user + ":" + connection.password; headers["authorization"] = { key: "Authorization", - value: "Basic " + encode2((0, import_strings9.toUtf8Bytes)(authorization)) + value: "Basic " + encode((0, import_strings9.toUtf8Bytes)(authorization)) }; } if (connection.skipFetchSetup != null) { options.skipFetchSetup = !!connection.skipFetchSetup; } if (connection.fetchOptions != null) { - options.fetchOptions = shallowCopy(connection.fetchOptions); + options.fetchOptions = (0, import_properties16.shallowCopy)(connection.fetchOptions); } } const reData = new RegExp("^data:([^;:]*)?(;base64)?,(.*)$", "i"); @@ -167474,7 +224787,7 @@ ${gz(e, r10)}`); statusCode: 200, statusMessage: "OK", headers: { "content-type": dataMatch[1] || "text/plain" }, - body: dataMatch[2] ? decode2(dataMatch[3]) : unpercent(dataMatch[3]) + body: dataMatch[2] ? decode(dataMatch[3]) : unpercent(dataMatch[3]) }; let result = response.body; if (processFunc) { @@ -167482,7 +224795,7 @@ ${gz(e, r10)}`); } return Promise.resolve(result); } catch (error) { - logger24.throwError("processing response error", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("processing response error", import_logger20.Logger.errors.SERVER_ERROR, { body: bodyify(dataMatch[1], dataMatch[2]), error, requestBody: null, @@ -167516,7 +224829,7 @@ ${gz(e, r10)}`); return; } timer2 = null; - reject(logger24.makeError("timeout", import_logger24.Logger.errors.TIMEOUT, { + reject(logger20.makeError("timeout", import_logger20.Logger.errors.TIMEOUT, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, timeout, @@ -167535,7 +224848,7 @@ ${gz(e, r10)}`); return { promise, cancel }; }(); const runningFetch = function() { - return __awaiter10(this, void 0, void 0, function* () { + return __awaiter8(this, void 0, void 0, function* () { for (let attempt = 0; attempt < attemptLimit; attempt++) { let response = null; try { @@ -167569,7 +224882,7 @@ ${gz(e, r10)}`); response = error.response; if (response == null) { runningTimeout.cancel(); - logger24.throwError("missing response", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("missing response", import_logger20.Logger.errors.SERVER_ERROR, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, serverError: error, @@ -167582,7 +224895,7 @@ ${gz(e, r10)}`); body2 = null; } else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) { runningTimeout.cancel(); - logger24.throwError("bad response", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("bad response", import_logger20.Logger.errors.SERVER_ERROR, { status: response.statusCode, headers: response.headers, body: bodyify(body2, response.headers ? response.headers["content-type"] : null), @@ -167609,7 +224922,7 @@ ${gz(e, r10)}`); } } runningTimeout.cancel(); - logger24.throwError("processing response error", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("processing response error", import_logger20.Logger.errors.SERVER_ERROR, { body: bodyify(body2, response.headers ? response.headers["content-type"] : null), error, requestBody: bodyify(options.body, flatHeaders["content-type"]), @@ -167621,7 +224934,7 @@ ${gz(e, r10)}`); runningTimeout.cancel(); return body2; } - return logger24.throwError("failed response", import_logger24.Logger.errors.SERVER_ERROR, { + return logger20.throwError("failed response", import_logger20.Logger.errors.SERVER_ERROR, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, url @@ -167637,7 +224950,7 @@ ${gz(e, r10)}`); try { result = JSON.parse((0, import_strings9.toUtf8String)(value)); } catch (error) { - logger24.throwError("invalid JSON", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("invalid JSON", import_logger20.Logger.errors.SERVER_ERROR, { body: value, error }); @@ -167651,11 +224964,11 @@ ${gz(e, r10)}`); let body = null; if (json != null) { body = (0, import_strings9.toUtf8Bytes)(json); - const updated = typeof connection === "string" ? { url: connection } : shallowCopy(connection); + const updated = typeof connection === "string" ? { url: connection } : (0, import_properties16.shallowCopy)(connection); if (updated.headers) { const hasContentType = Object.keys(updated.headers).filter((k) => k.toLowerCase() === "content-type").length !== 0; if (!hasContentType) { - updated.headers = shallowCopy(updated.headers); + updated.headers = (0, import_properties16.shallowCopy)(updated.headers); updated.headers["content-type"] = "application/json"; } } else { @@ -167669,7 +224982,7 @@ ${gz(e, r10)}`); if (!options) { options = {}; } - options = shallowCopy(options); + options = (0, import_properties16.shallowCopy)(options); if (options.floor == null) { options.floor = 0; } @@ -167741,17 +225054,19 @@ ${gz(e, r10)}`); // node_modules/@ethersproject/providers/lib.esm/base-provider.js var import_bech32 = __toESM(require_bech32()); - var import_logger26 = __toESM(require_lib()); + var import_logger22 = __toESM(require_lib()); // node_modules/@ethersproject/providers/lib.esm/_version.js - var version20 = "providers/5.7.2"; + var version16 = "providers/5.7.2"; // node_modules/@ethersproject/providers/lib.esm/formatter.js - var import_bignumber11 = __toESM(require_lib3()); - var import_bytes30 = __toESM(require_lib2()); + var import_address11 = __toESM(require_lib10()); + var import_bignumber10 = __toESM(require_lib3()); + var import_bytes27 = __toESM(require_lib2()); var import_constants3 = __toESM(require_lib5()); - var import_logger25 = __toESM(require_lib()); - var logger25 = new import_logger25.Logger(version20); + var import_properties17 = __toESM(require_lib7()); + var import_logger21 = __toESM(require_lib()); + var logger21 = new import_logger21.Logger(version16); var Formatter = class { constructor() { this.formats = this.getDefaultFormats(); @@ -167847,7 +225162,7 @@ ${gz(e, r10)}`); transactions: Formatter.allowNull(Formatter.arrayOf(hash8)), baseFeePerGas: Formatter.allowNull(bigNumber) }; - formats.blockWithTransactions = shallowCopy(formats.block); + formats.blockWithTransactions = (0, import_properties17.shallowCopy)(formats.block); formats.blockWithTransactions.transactions = Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this))); formats.filter = { fromBlock: Formatter.allowNull(blockTag, void 0), @@ -167876,16 +225191,16 @@ ${gz(e, r10)}`); if (number4 === "0x") { return 0; } - return import_bignumber11.BigNumber.from(number4).toNumber(); + return import_bignumber10.BigNumber.from(number4).toNumber(); } type(number4) { if (number4 === "0x" || number4 == null) { return 0; } - return import_bignumber11.BigNumber.from(number4).toNumber(); + return import_bignumber10.BigNumber.from(number4).toNumber(); } bigNumber(value) { - return import_bignumber11.BigNumber.from(value); + return import_bignumber10.BigNumber.from(value); } boolean(value) { if (typeof value === "boolean") { @@ -167907,11 +225222,11 @@ ${gz(e, r10)}`); if (!strict && value.substring(0, 2) !== "0x") { value = "0x" + value; } - if ((0, import_bytes30.isHexString)(value)) { + if ((0, import_bytes27.isHexString)(value)) { return value.toLowerCase(); } } - return logger25.throwArgumentError("invalid hash", "value", value); + return logger21.throwArgumentError("invalid hash", "value", value); } data(value, strict) { const result = this.hex(value, strict); @@ -167921,17 +225236,17 @@ ${gz(e, r10)}`); return result; } address(value) { - return getAddress(value); + return (0, import_address11.getAddress)(value); } callAddress(value) { - if (!(0, import_bytes30.isHexString)(value, 32)) { + if (!(0, import_bytes27.isHexString)(value, 32)) { return null; } - const address = getAddress((0, import_bytes30.hexDataSlice)(value, 12)); + const address = (0, import_address11.getAddress)((0, import_bytes27.hexDataSlice)(value, 12)); return address === import_constants3.AddressZero ? null : address; } contractAddress(value) { - return getContractAddress(value); + return (0, import_address11.getContractAddress)(value); } blockTag(blockTag) { if (blockTag == null) { @@ -167949,15 +225264,15 @@ ${gz(e, r10)}`); case "finalized": return blockTag; } - if (typeof blockTag === "number" || (0, import_bytes30.isHexString)(blockTag)) { - return (0, import_bytes30.hexValue)(blockTag); + if (typeof blockTag === "number" || (0, import_bytes27.isHexString)(blockTag)) { + return (0, import_bytes27.hexValue)(blockTag); } throw new Error("invalid blockTag"); } hash(value, strict) { const result = this.hex(value, strict); - if ((0, import_bytes30.hexDataLength)(result) !== 32) { - return logger25.throwArgumentError("invalid hash", "value", value); + if ((0, import_bytes27.hexDataLength)(result) !== 32) { + return logger21.throwArgumentError("invalid hash", "value", value); } return result; } @@ -167965,7 +225280,7 @@ ${gz(e, r10)}`); if (value == null) { return null; } - const v = import_bignumber11.BigNumber.from(value); + const v = import_bignumber10.BigNumber.from(value); try { return v.toNumber(); } catch (error) { @@ -167973,10 +225288,10 @@ ${gz(e, r10)}`); return null; } uint256(value) { - if (!(0, import_bytes30.isHexString)(value)) { + if (!(0, import_bytes27.isHexString)(value)) { throw new Error("invalid uint256"); } - return (0, import_bytes30.hexZeroPad)(value, 32); + return (0, import_bytes27.hexZeroPad)(value, 32); } _block(value, format) { if (value.author != null && value.miner == null) { @@ -167984,7 +225299,7 @@ ${gz(e, r10)}`); } const difficulty = value._difficulty != null ? value._difficulty : value.difficulty; const result = Formatter.check(format, value); - result._difficulty = difficulty == null ? null : import_bignumber11.BigNumber.from(difficulty); + result._difficulty = difficulty == null ? null : import_bignumber10.BigNumber.from(difficulty); return result; } block(value) { @@ -168000,7 +225315,7 @@ ${gz(e, r10)}`); if (transaction.gas != null && transaction.gasLimit == null) { transaction.gasLimit = transaction.gas; } - if (transaction.to && import_bignumber11.BigNumber.from(transaction.to).isZero()) { + if (transaction.to && import_bignumber10.BigNumber.from(transaction.to).isZero()) { transaction.to = "0x0000000000000000000000000000000000000000"; } if (transaction.input != null && transaction.data == null) { @@ -168015,8 +225330,8 @@ ${gz(e, r10)}`); const result = Formatter.check(this.formats.transaction, transaction); if (transaction.chainId != null) { let chainId = transaction.chainId; - if ((0, import_bytes30.isHexString)(chainId)) { - chainId = import_bignumber11.BigNumber.from(chainId).toNumber(); + if ((0, import_bytes27.isHexString)(chainId)) { + chainId = import_bignumber10.BigNumber.from(chainId).toNumber(); } result.chainId = chainId; } else { @@ -168024,8 +225339,8 @@ ${gz(e, r10)}`); if (chainId == null && result.v == null) { chainId = transaction.chainId; } - if ((0, import_bytes30.isHexString)(chainId)) { - chainId = import_bignumber11.BigNumber.from(chainId).toNumber(); + if ((0, import_bytes27.isHexString)(chainId)) { + chainId = import_bignumber10.BigNumber.from(chainId).toNumber(); } if (typeof chainId !== "number" && result.v != null) { chainId = (result.v - 35) / 2; @@ -168054,18 +225369,18 @@ ${gz(e, r10)}`); const result = Formatter.check(this.formats.receipt, value); if (result.root != null) { if (result.root.length <= 4) { - const value2 = import_bignumber11.BigNumber.from(result.root).toNumber(); + const value2 = import_bignumber10.BigNumber.from(result.root).toNumber(); if (value2 === 0 || value2 === 1) { if (result.status != null && result.status !== value2) { - logger25.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status }); + logger21.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status }); } result.status = value2; delete result.root; } else { - logger25.throwArgumentError("invalid alt-root-status", "value.root", result.root); + logger21.throwArgumentError("invalid alt-root-status", "value.root", result.root); } } else if (result.root.length !== 66) { - logger25.throwArgumentError("invalid root hash", "value.root", result.root); + logger21.throwArgumentError("invalid root hash", "value.root", result.root); } } if (result.status != null) { @@ -168159,7 +225474,7 @@ ${gz(e, r10)}`); } // node_modules/@ethersproject/providers/lib.esm/base-provider.js - var __awaiter11 = function(thisArg, _arguments, P, generator) { + var __awaiter9 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -168186,14 +225501,14 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger26 = new import_logger26.Logger(version20); + var logger22 = new import_logger22.Logger(version16); var MAX_CCIP_REDIRECTS = 10; function checkTopic(topic) { if (topic == null) { return "null"; } - if ((0, import_bytes31.hexDataLength)(topic) !== 32) { - logger26.throwArgumentError("invalid topic", "topic", topic); + if ((0, import_bytes28.hexDataLength)(topic) !== 32) { + logger22.throwArgumentError("invalid topic", "topic", topic); } return topic.toLowerCase(); } @@ -168233,7 +225548,7 @@ ${gz(e, r10)}`); function getEventTag2(eventName) { if (typeof eventName === "string") { eventName = eventName.toLowerCase(); - if ((0, import_bytes31.hexDataLength)(eventName) === 32) { + if ((0, import_bytes28.hexDataLength)(eventName) === 32) { return "tx:" + eventName; } if (eventName.indexOf(":") === -1) { @@ -168242,7 +225557,7 @@ ${gz(e, r10)}`); } else if (Array.isArray(eventName)) { return "filter:*:" + serializeTopics(eventName); } else if (ForkEvent.isForkEvent(eventName)) { - logger26.warn("not implemented"); + logger22.warn("not implemented"); throw new Error("not implemented"); } else if (eventName && typeof eventName === "object") { return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []); @@ -168260,9 +225575,9 @@ ${gz(e, r10)}`); var PollableEvents = ["block", "network", "pending", "poll"]; var Event = class { constructor(tag, listener, once) { - defineReadOnly(this, "tag", tag); - defineReadOnly(this, "listener", listener); - defineReadOnly(this, "once", once); + (0, import_properties18.defineReadOnly)(this, "tag", tag); + (0, import_properties18.defineReadOnly)(this, "listener", listener); + (0, import_properties18.defineReadOnly)(this, "once", once); this._lastBlockNumber = -2; this._inflight = false; } @@ -168314,10 +225629,10 @@ ${gz(e, r10)}`); "700": { symbol: "xdai", ilk: "eth" } }; function bytes32ify(value) { - return (0, import_bytes31.hexZeroPad)(import_bignumber12.BigNumber.from(value).toHexString(), 32); + return (0, import_bytes28.hexZeroPad)(import_bignumber11.BigNumber.from(value).toHexString(), 32); } function base58Encode(data) { - return Base58.encode((0, import_bytes31.concat)([data, (0, import_bytes31.hexDataSlice)(sha256(sha256(data)), 0, 4)])); + return Base58.encode((0, import_bytes28.concat)([data, (0, import_bytes28.hexDataSlice)(sha256(sha256(data)), 0, 4)])); } var matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i"); var matchers = [ @@ -168337,9 +225652,9 @@ ${gz(e, r10)}`); if (result === "0x") { return null; } - const offset = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(result, start, start + 32)).toNumber(); - const length = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(result, offset, offset + 32)).toNumber(); - return (0, import_bytes31.hexDataSlice)(result, offset + 32, offset + 32 + length); + const offset = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(result, start, start + 32)).toNumber(); + const length = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(result, offset, offset + 32)).toNumber(); + return (0, import_bytes28.hexDataSlice)(result, offset + 32, offset + 32 + length); } function getIpfsLink(link) { if (link.match(/^ipfs:\/\/ipfs\//i)) { @@ -168347,12 +225662,12 @@ ${gz(e, r10)}`); } else if (link.match(/^ipfs:\/\//i)) { link = link.substring(7); } else { - logger26.throwArgumentError("unsupported IPFS format", "link", link); + logger22.throwArgumentError("unsupported IPFS format", "link", link); } return `https://gateway.ipfs.io/ipfs/${link}`; } function numPad(value) { - const result = (0, import_bytes31.arrayify)(value); + const result = (0, import_bytes28.arrayify)(value); if (result.length > 32) { throw new Error("internal; should not happen"); } @@ -168376,20 +225691,20 @@ ${gz(e, r10)}`); byteCount += 32; } for (let i = 0; i < datas.length; i++) { - const data = (0, import_bytes31.arrayify)(datas[i]); + const data = (0, import_bytes28.arrayify)(datas[i]); result[i] = numPad(byteCount); result.push(numPad(data.length)); result.push(bytesPad(data)); byteCount += 32 + Math.ceil(data.length / 32) * 32; } - return (0, import_bytes31.hexConcat)(result); + return (0, import_bytes28.hexConcat)(result); } var Resolver = class { constructor(provider, address, name6, resolvedAddress) { - defineReadOnly(this, "provider", provider); - defineReadOnly(this, "name", name6); - defineReadOnly(this, "address", provider.formatter.address(address)); - defineReadOnly(this, "_resolvedAddress", resolvedAddress); + (0, import_properties18.defineReadOnly)(this, "provider", provider); + (0, import_properties18.defineReadOnly)(this, "name", name6); + (0, import_properties18.defineReadOnly)(this, "address", provider.formatter.address(address)); + (0, import_properties18.defineReadOnly)(this, "_resolvedAddress", resolvedAddress); } supportsWildcard() { if (!this._supportsEip2544) { @@ -168397,9 +225712,9 @@ ${gz(e, r10)}`); to: this.address, data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000" }).then((result) => { - return import_bignumber12.BigNumber.from(result).eq(1); + return import_bignumber11.BigNumber.from(result).eq(1); }).catch((error) => { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return false; } this._supportsEip2544 = null; @@ -168409,21 +225724,21 @@ ${gz(e, r10)}`); return this._supportsEip2544; } _fetch(selector, parameters) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const tx2 = { to: this.address, ccipReadEnabled: true, - data: (0, import_bytes31.hexConcat)([selector, namehash(this.name), parameters || "0x"]) + data: (0, import_bytes28.hexConcat)([selector, namehash(this.name), parameters || "0x"]) }; let parseBytes = false; if (yield this.supportsWildcard()) { parseBytes = true; - tx2.data = (0, import_bytes31.hexConcat)(["0x9061b923", encodeBytes([dnsEncode(this.name), tx2.data])]); + tx2.data = (0, import_bytes28.hexConcat)(["0x9061b923", encodeBytes([dnsEncode(this.name), tx2.data])]); } try { let result = yield this.provider.call(tx2); - if ((0, import_bytes31.arrayify)(result).length % 32 === 4) { - logger26.throwError("resolver threw error", import_logger26.Logger.errors.CALL_EXCEPTION, { + if ((0, import_bytes28.arrayify)(result).length % 32 === 4) { + logger22.throwError("resolver threw error", import_logger22.Logger.errors.CALL_EXCEPTION, { transaction: tx2, data: result }); @@ -168433,7 +225748,7 @@ ${gz(e, r10)}`); } return result; } catch (error) { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return null; } throw error; @@ -168441,7 +225756,7 @@ ${gz(e, r10)}`); }); } _fetchBytes(selector, parameters) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const result = yield this._fetch(selector, parameters); if (result != null) { return _parseBytes(result, 0); @@ -168452,20 +225767,20 @@ ${gz(e, r10)}`); _getAddress(coinType, hexBytes) { const coinInfo = coinInfos[String(coinType)]; if (coinInfo == null) { - logger26.throwError(`unsupported coin type: ${coinType}`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError(`unsupported coin type: ${coinType}`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `getAddress(${coinType})` }); } if (coinInfo.ilk === "eth") { return this.provider.formatter.address(hexBytes); } - const bytes5 = (0, import_bytes31.arrayify)(hexBytes); + const bytes5 = (0, import_bytes28.arrayify)(hexBytes); if (coinInfo.p2pkh != null) { const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/); if (p2pkh) { const length = parseInt(p2pkh[1], 16); if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) { - return base58Encode((0, import_bytes31.concat)([[coinInfo.p2pkh], "0x" + p2pkh[2]])); + return base58Encode((0, import_bytes28.concat)([[coinInfo.p2pkh], "0x" + p2pkh[2]])); } } } @@ -168474,30 +225789,30 @@ ${gz(e, r10)}`); if (p2sh) { const length = parseInt(p2sh[1], 16); if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) { - return base58Encode((0, import_bytes31.concat)([[coinInfo.p2sh], "0x" + p2sh[2]])); + return base58Encode((0, import_bytes28.concat)([[coinInfo.p2sh], "0x" + p2sh[2]])); } } } if (coinInfo.prefix != null) { const length = bytes5[1]; - let version27 = bytes5[0]; - if (version27 === 0) { + let version23 = bytes5[0]; + if (version23 === 0) { if (length !== 20 && length !== 32) { - version27 = -1; + version23 = -1; } } else { - version27 = -1; + version23 = -1; } - if (version27 >= 0 && bytes5.length === 2 + length && length >= 1 && length <= 75) { + if (version23 >= 0 && bytes5.length === 2 + length && length >= 1 && length <= 75) { const words2 = import_bech32.default.toWords(bytes5.slice(2)); - words2.unshift(version27); + words2.unshift(version23); return import_bech32.default.encode(coinInfo.prefix, words2); } } return null; } getAddress(coinType) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (coinType == null) { coinType = 60; } @@ -168509,7 +225824,7 @@ ${gz(e, r10)}`); } return this.provider.formatter.callAddress(result); } catch (error) { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return null; } throw error; @@ -168521,7 +225836,7 @@ ${gz(e, r10)}`); } const address = this._getAddress(coinType, hexBytes); if (address == null) { - logger26.throwError(`invalid or unsupported coin data`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError(`invalid or unsupported coin data`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `getAddress(${coinType})`, coinType, data: hexBytes @@ -168531,7 +225846,7 @@ ${gz(e, r10)}`); }); } getAvatar() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const linkage = [{ type: "name", content: this.name }]; try { const avatar = yield this.getText("avatar"); @@ -168564,20 +225879,20 @@ ${gz(e, r10)}`); return null; } const addr = yield this.provider.formatter.address(comps[0]); - const tokenId = (0, import_bytes31.hexZeroPad)(import_bignumber12.BigNumber.from(comps[1]).toHexString(), 32); + const tokenId = (0, import_bytes28.hexZeroPad)(import_bignumber11.BigNumber.from(comps[1]).toHexString(), 32); if (scheme === "erc721") { const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({ to: addr, - data: (0, import_bytes31.hexConcat)(["0x6352211e", tokenId]) + data: (0, import_bytes28.hexConcat)(["0x6352211e", tokenId]) })); if (owner !== tokenOwner) { return null; } linkage.push({ type: "owner", content: tokenOwner }); } else if (scheme === "erc1155") { - const balance = import_bignumber12.BigNumber.from(yield this.provider.call({ + const balance = import_bignumber11.BigNumber.from(yield this.provider.call({ to: addr, - data: (0, import_bytes31.hexConcat)(["0x00fdd58e", (0, import_bytes31.hexZeroPad)(owner, 32), tokenId]) + data: (0, import_bytes28.hexConcat)(["0x00fdd58e", (0, import_bytes28.hexZeroPad)(owner, 32), tokenId]) })); if (balance.isZero()) { return null; @@ -168586,7 +225901,7 @@ ${gz(e, r10)}`); } const tx2 = { to: this.provider.formatter.address(comps[0]), - data: (0, import_bytes31.hexConcat)([selector, tokenId]) + data: (0, import_bytes28.hexConcat)([selector, tokenId]) }; let metadataUrl = _parseString(yield this.provider.call(tx2), 0); if (metadataUrl == null) { @@ -168630,7 +225945,7 @@ ${gz(e, r10)}`); }); } getContentHash() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const hexBytes = yield this._fetchBytes("0xbc1c58d1"); if (hexBytes == null || hexBytes === "0x") { return null; @@ -168659,24 +225974,24 @@ ${gz(e, r10)}`); if (skynet) { if (skynet[1].length === 34 * 2) { const urlSafe = { "=": "", "+": "-", "/": "_" }; - const hash8 = encode2("0x" + skynet[1]).replace(/[=+\/]/g, (a) => urlSafe[a]); + const hash8 = encode("0x" + skynet[1]).replace(/[=+\/]/g, (a) => urlSafe[a]); return "sia://" + hash8; } } - return logger26.throwError(`invalid or unsupported content hash data`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + return logger22.throwError(`invalid or unsupported content hash data`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getContentHash()", data: hexBytes }); }); } getText(key2) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let keyBytes = (0, import_strings10.toUtf8Bytes)(key2); - keyBytes = (0, import_bytes31.concat)([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]); + keyBytes = (0, import_bytes28.concat)([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]); if (keyBytes.length % 32 !== 0) { - keyBytes = (0, import_bytes31.concat)([keyBytes, (0, import_bytes31.hexZeroPad)("0x", 32 - key2.length % 32)]); + keyBytes = (0, import_bytes28.concat)([keyBytes, (0, import_bytes28.hexZeroPad)("0x", 32 - key2.length % 32)]); } - const hexBytes = yield this._fetchBytes("0x59d1d43c", (0, import_bytes31.hexlify)(keyBytes)); + const hexBytes = yield this._fetchBytes("0x59d1d43c", (0, import_bytes28.hexlify)(keyBytes)); if (hexBytes == null || hexBytes === "0x") { return null; } @@ -168693,7 +226008,7 @@ ${gz(e, r10)}`); this._emitted = { block: -2 }; this.disableCcipRead = false; this.formatter = new.target.getFormatter(); - defineReadOnly(this, "anyNetwork", network2 === "any"); + (0, import_properties18.defineReadOnly)(this, "anyNetwork", network2 === "any"); if (this.anyNetwork) { network2 = this.detectNetwork(); } @@ -168704,12 +226019,12 @@ ${gz(e, r10)}`); this._ready().catch((error) => { }); } else { - const knownNetwork = getStatic(new.target, "getNetwork")(network2); + const knownNetwork = (0, import_properties18.getStatic)(new.target, "getNetwork")(network2); if (knownNetwork) { - defineReadOnly(this, "_network", knownNetwork); + (0, import_properties18.defineReadOnly)(this, "_network", knownNetwork); this.emit("network", knownNetwork, null); } else { - logger26.throwArgumentError("invalid network", "network", network2); + logger22.throwArgumentError("invalid network", "network", network2); } } this._maxInternalBlockNumber = -1024; @@ -168719,7 +226034,7 @@ ${gz(e, r10)}`); this._fastQueryDate = 0; } _ready() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (this._network == null) { let network2 = null; if (this._networkPromise) { @@ -168732,13 +226047,13 @@ ${gz(e, r10)}`); network2 = yield this.detectNetwork(); } if (!network2) { - logger26.throwError("no network detected", import_logger26.Logger.errors.UNKNOWN_ERROR, {}); + logger22.throwError("no network detected", import_logger22.Logger.errors.UNKNOWN_ERROR, {}); } if (this._network == null) { if (this.anyNetwork) { this._network = network2; } else { - defineReadOnly(this, "_network", network2); + (0, import_properties18.defineReadOnly)(this, "_network", network2); } this.emit("network", network2, null); } @@ -168751,7 +226066,7 @@ ${gz(e, r10)}`); return this._ready().then((network2) => { return network2; }, (error) => { - if (error.code === import_logger26.Logger.errors.NETWORK_ERROR && error.event === "noNetwork") { + if (error.code === import_logger22.Logger.errors.NETWORK_ERROR && error.event === "noNetwork") { return void 0; } throw error; @@ -168768,7 +226083,7 @@ ${gz(e, r10)}`); return getNetwork(network2 == null ? "homestead" : network2); } ccipReadFetch(tx2, calldata, urls) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (this.disableCcipRead || urls.length === 0) { return null; } @@ -168788,18 +226103,18 @@ ${gz(e, r10)}`); } const errorMessage = result.message || "unknown error"; if (result.status >= 400 && result.status < 500) { - return logger26.throwError(`response not found during CCIP fetch: ${errorMessage}`, import_logger26.Logger.errors.SERVER_ERROR, { url, errorMessage }); + return logger22.throwError(`response not found during CCIP fetch: ${errorMessage}`, import_logger22.Logger.errors.SERVER_ERROR, { url, errorMessage }); } errorMessages.push(errorMessage); } - return logger26.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, import_logger22.Logger.errors.SERVER_ERROR, { urls, errorMessages }); }); } _getInternalBlockNumber(maxAge) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this._ready(); if (maxAge > 0) { while (this._internalBlockNumber) { @@ -168818,7 +226133,7 @@ ${gz(e, r10)}`); } } const reqTime = getTime(); - const checkInternalBlockNumber = resolveProperties({ + const checkInternalBlockNumber = (0, import_properties18.resolveProperties)({ blockNumber: this.perform("getBlockNumber", {}), networkError: this.getNetwork().then((network2) => null, (error) => error) }).then(({ blockNumber, networkError }) => { @@ -168829,7 +226144,7 @@ ${gz(e, r10)}`); throw networkError; } const respTime = getTime(); - blockNumber = import_bignumber12.BigNumber.from(blockNumber).toNumber(); + blockNumber = import_bignumber11.BigNumber.from(blockNumber).toNumber(); if (blockNumber < this._maxInternalBlockNumber) { blockNumber = this._maxInternalBlockNumber; } @@ -168847,7 +226162,7 @@ ${gz(e, r10)}`); }); } poll() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const pollId = nextPollId++; const runners = []; let blockNumber = null; @@ -168867,8 +226182,8 @@ ${gz(e, r10)}`); this._emitted.block = blockNumber - 1; } if (Math.abs(this._emitted.block - blockNumber) > 1e3) { - logger26.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`); - this.emit("error", logger26.makeError("network block skew detected", import_logger26.Logger.errors.NETWORK_ERROR, { + logger22.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`); + this.emit("error", logger22.makeError("network block skew detected", import_logger22.Logger.errors.NETWORK_ERROR, { blockNumber, event: "blockSkew", previousBlockNumber: this._emitted.block @@ -168972,14 +226287,14 @@ ${gz(e, r10)}`); return this._network; } detectNetwork() { - return __awaiter11(this, void 0, void 0, function* () { - return logger26.throwError("provider does not support network detection", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + return __awaiter9(this, void 0, void 0, function* () { + return logger22.throwError("provider does not support network detection", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: "provider.detectNetwork" }); }); } getNetwork() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const network2 = yield this._ready(); const currentNetwork = yield this.detectNetwork(); if (network2.chainId !== currentNetwork.chainId) { @@ -168996,7 +226311,7 @@ ${gz(e, r10)}`); yield stall(0); return this._network; } - const error = logger26.makeError("underlying network changed", import_logger26.Logger.errors.NETWORK_ERROR, { + const error = logger22.makeError("underlying network changed", import_logger22.Logger.errors.NETWORK_ERROR, { event: "changed", network: network2, detectedNetwork: currentNetwork @@ -169077,12 +226392,12 @@ ${gz(e, r10)}`); } } waitForTransaction(transactionHash, confirmations, timeout) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { return this._waitForTransaction(transactionHash, confirmations == null ? 1 : confirmations, timeout || 0, null); }); } _waitForTransaction(transactionHash, confirmations, timeout, replaceable) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const receipt = yield this.getTransactionReceipt(transactionHash); if ((receipt ? receipt.confirmations : 0) >= confirmations) { return receipt; @@ -169116,12 +226431,12 @@ ${gz(e, r10)}`); if (replaceable) { let lastBlockNumber = replaceable.startBlock; let scannedBlock = null; - const replaceHandler = (blockNumber) => __awaiter11(this, void 0, void 0, function* () { + const replaceHandler = (blockNumber) => __awaiter9(this, void 0, void 0, function* () { if (done) { return; } yield stall(1e3); - this.getTransactionCount(replaceable.from).then((nonce) => __awaiter11(this, void 0, void 0, function* () { + this.getTransactionCount(replaceable.from).then((nonce) => __awaiter9(this, void 0, void 0, function* () { if (done) { return; } @@ -169164,7 +226479,7 @@ ${gz(e, r10)}`); } else if (tx2.data === "0x" && tx2.from === tx2.to && tx2.value.isZero()) { reason = "cancelled"; } - reject(logger26.makeError("transaction was replaced", import_logger26.Logger.errors.TRANSACTION_REPLACED, { + reject(logger22.makeError("transaction was replaced", import_logger22.Logger.errors.TRANSACTION_REPLACED, { cancelled: reason === "replaced" || reason === "cancelled", reason, replacement: this._wrapTransaction(tx2), @@ -169201,7 +226516,7 @@ ${gz(e, r10)}`); if (alreadyDone()) { return; } - reject(logger26.makeError("timeout exceeded", import_logger26.Logger.errors.TIMEOUT, { timeout })); + reject(logger22.makeError("timeout exceeded", import_logger22.Logger.errors.TIMEOUT, { timeout })); }, timeout); if (timer2.unref) { timer2.unref(); @@ -169214,18 +226529,18 @@ ${gz(e, r10)}`); }); } getBlockNumber() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { return this._getInternalBlockNumber(0); }); } getGasPrice() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); const result = yield this.perform("getGasPrice", {}); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getGasPrice", result, error @@ -169234,17 +226549,17 @@ ${gz(e, r10)}`); }); } getBalance(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getBalance", params); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getBalance", params, result, @@ -169254,17 +226569,17 @@ ${gz(e, r10)}`); }); } getTransactionCount(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getTransactionCount", params); try { - return import_bignumber12.BigNumber.from(result).toNumber(); + return import_bignumber11.BigNumber.from(result).toNumber(); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getTransactionCount", params, result, @@ -169274,17 +226589,17 @@ ${gz(e, r10)}`); }); } getCode(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getCode", params); try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getCode", params, result, @@ -169294,18 +226609,18 @@ ${gz(e, r10)}`); }); } getStorageAt(addressOrName, position, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag), - position: Promise.resolve(position).then((p) => (0, import_bytes31.hexValue)(p)) + position: Promise.resolve(position).then((p) => (0, import_bytes28.hexValue)(p)) }); const result = yield this.perform("getStorageAt", params); try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getStorageAt", params, result, @@ -169315,14 +226630,14 @@ ${gz(e, r10)}`); }); } _wrapTransaction(tx2, hash8, startBlock) { - if (hash8 != null && (0, import_bytes31.hexDataLength)(hash8) !== 32) { + if (hash8 != null && (0, import_bytes28.hexDataLength)(hash8) !== 32) { throw new Error("invalid response - sendTransaction"); } const result = tx2; if (hash8 != null && tx2.hash !== hash8) { - logger26.throwError("Transaction hash mismatch from Provider.sendTransaction.", import_logger26.Logger.errors.UNKNOWN_ERROR, { expectedHash: tx2.hash, returnedHash: hash8 }); + logger22.throwError("Transaction hash mismatch from Provider.sendTransaction.", import_logger22.Logger.errors.UNKNOWN_ERROR, { expectedHash: tx2.hash, returnedHash: hash8 }); } - result.wait = (confirms, timeout) => __awaiter11(this, void 0, void 0, function* () { + result.wait = (confirms, timeout) => __awaiter9(this, void 0, void 0, function* () { if (confirms == null) { confirms = 1; } @@ -169346,7 +226661,7 @@ ${gz(e, r10)}`); } this._emitted["t:" + tx2.hash] = receipt.blockNumber; if (receipt.status === 0) { - logger26.throwError("transaction failed", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("transaction failed", import_logger22.Logger.errors.CALL_EXCEPTION, { transactionHash: tx2.hash, transaction: tx2, receipt @@ -169357,9 +226672,9 @@ ${gz(e, r10)}`); return result; } sendTransaction(signedTransaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const hexTx = yield Promise.resolve(signedTransaction).then((t) => (0, import_bytes31.hexlify)(t)); + const hexTx = yield Promise.resolve(signedTransaction).then((t) => (0, import_bytes28.hexlify)(t)); const tx2 = this.formatter.transaction(signedTransaction); if (tx2.confirmations == null) { tx2.confirmations = 0; @@ -169376,7 +226691,7 @@ ${gz(e, r10)}`); }); } _getTransactionRequest(transaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const values = yield transaction; const tx2 = {}; ["from", "to"].forEach((key2) => { @@ -169389,7 +226704,7 @@ ${gz(e, r10)}`); if (values[key2] == null) { return; } - tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? import_bignumber12.BigNumber.from(v) : null); + tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? import_bignumber11.BigNumber.from(v) : null); }); ["type"].forEach((key2) => { if (values[key2] == null) { @@ -169404,13 +226719,13 @@ ${gz(e, r10)}`); if (values[key2] == null) { return; } - tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? (0, import_bytes31.hexlify)(v) : null); + tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? (0, import_bytes28.hexlify)(v) : null); }); - return this.formatter.transactionRequest(yield resolveProperties(tx2)); + return this.formatter.transactionRequest(yield (0, import_properties18.resolveProperties)(tx2)); }); } _getFilter(filter) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { filter = yield filter; const result = {}; if (filter.address != null) { @@ -169428,25 +226743,25 @@ ${gz(e, r10)}`); } result[key2] = this._getBlockTag(filter[key2]); }); - return this.formatter.filter(yield resolveProperties(result)); + return this.formatter.filter(yield (0, import_properties18.resolveProperties)(result)); }); } _call(transaction, blockTag, attempt) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (attempt >= MAX_CCIP_REDIRECTS) { - logger26.throwError("CCIP read exceeded maximum redirections", import_logger26.Logger.errors.SERVER_ERROR, { + logger22.throwError("CCIP read exceeded maximum redirections", import_logger22.Logger.errors.SERVER_ERROR, { redirects: attempt, transaction }); } const txSender = transaction.to; const result = yield this.perform("call", { transaction, blockTag }); - if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && (0, import_bytes31.hexDataLength)(result) % 32 === 4) { + if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && (0, import_bytes28.hexDataLength)(result) % 32 === 4) { try { - const data = (0, import_bytes31.hexDataSlice)(result, 4); - const sender = (0, import_bytes31.hexDataSlice)(data, 0, 32); - if (!import_bignumber12.BigNumber.from(sender).eq(txSender)) { - logger26.throwError("CCIP Read sender did not match", import_logger26.Logger.errors.CALL_EXCEPTION, { + const data = (0, import_bytes28.hexDataSlice)(result, 4); + const sender = (0, import_bytes28.hexDataSlice)(data, 0, 32); + if (!import_bignumber11.BigNumber.from(sender).eq(txSender)) { + logger22.throwError("CCIP Read sender did not match", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169454,13 +226769,13 @@ ${gz(e, r10)}`); }); } const urls = []; - const urlsOffset = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, 32, 64)).toNumber(); - const urlsLength = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, urlsOffset, urlsOffset + 32)).toNumber(); - const urlsData = (0, import_bytes31.hexDataSlice)(data, urlsOffset + 32); + const urlsOffset = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, 32, 64)).toNumber(); + const urlsLength = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, urlsOffset, urlsOffset + 32)).toNumber(); + const urlsData = (0, import_bytes28.hexDataSlice)(data, urlsOffset + 32); for (let u = 0; u < urlsLength; u++) { const url = _parseString(urlsData, u * 32); if (url == null) { - logger26.throwError("CCIP Read contained corrupt URL string", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("CCIP Read contained corrupt URL string", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169470,19 +226785,19 @@ ${gz(e, r10)}`); urls.push(url); } const calldata = _parseBytes(data, 64); - if (!import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, 100, 128)).isZero()) { - logger26.throwError("CCIP Read callback selector included junk", import_logger26.Logger.errors.CALL_EXCEPTION, { + if (!import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, 100, 128)).isZero()) { + logger22.throwError("CCIP Read callback selector included junk", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, data: result }); } - const callbackSelector = (0, import_bytes31.hexDataSlice)(data, 96, 100); + const callbackSelector = (0, import_bytes28.hexDataSlice)(data, 96, 100); const extraData = _parseBytes(data, 128); const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls); if (ccipResult == null) { - logger26.throwError("CCIP Read disabled or provided no URLs", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("CCIP Read disabled or provided no URLs", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169491,19 +226806,19 @@ ${gz(e, r10)}`); } const tx2 = { to: txSender, - data: (0, import_bytes31.hexConcat)([callbackSelector, encodeBytes([ccipResult, extraData])]) + data: (0, import_bytes28.hexConcat)([callbackSelector, encodeBytes([ccipResult, extraData])]) }; return this._call(tx2, blockTag, attempt + 1); } catch (error) { - if (error.code === import_logger26.Logger.errors.SERVER_ERROR) { + if (error.code === import_logger22.Logger.errors.SERVER_ERROR) { throw error; } } } try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "call", params: { transaction, blockTag }, result, @@ -169513,9 +226828,9 @@ ${gz(e, r10)}`); }); } call(transaction, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const resolved = yield resolveProperties({ + const resolved = yield (0, import_properties18.resolveProperties)({ transaction: this._getTransactionRequest(transaction), blockTag: this._getBlockTag(blockTag), ccipReadEnabled: Promise.resolve(transaction.ccipReadEnabled) @@ -169524,16 +226839,16 @@ ${gz(e, r10)}`); }); } estimateGas(transaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ transaction: this._getTransactionRequest(transaction) }); const result = yield this.perform("estimateGas", params); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "estimateGas", params, result, @@ -169543,14 +226858,14 @@ ${gz(e, r10)}`); }); } _getAddress(addressOrName) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { addressOrName = yield addressOrName; if (typeof addressOrName !== "string") { - logger26.throwArgumentError("invalid address or ENS name", "name", addressOrName); + logger22.throwArgumentError("invalid address or ENS name", "name", addressOrName); } const address = yield this.resolveName(addressOrName); if (address == null) { - logger26.throwError("ENS name not configured", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError("ENS name not configured", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `resolveName(${JSON.stringify(addressOrName)})` }); } @@ -169558,26 +226873,26 @@ ${gz(e, r10)}`); }); } _getBlock(blockHashOrBlockTag, includeTransactions) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); blockHashOrBlockTag = yield blockHashOrBlockTag; let blockNumber = -128; const params = { includeTransactions: !!includeTransactions }; - if ((0, import_bytes31.isHexString)(blockHashOrBlockTag, 32)) { + if ((0, import_bytes28.isHexString)(blockHashOrBlockTag, 32)) { params.blockHash = blockHashOrBlockTag; } else { try { params.blockTag = yield this._getBlockTag(blockHashOrBlockTag); - if ((0, import_bytes31.isHexString)(params.blockTag)) { + if ((0, import_bytes28.isHexString)(params.blockTag)) { blockNumber = parseInt(params.blockTag.substring(2), 16); } } catch (error) { - logger26.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag); + logger22.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag); } } - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const block = yield this.perform("getBlock", params); if (block == null) { if (params.blockHash != null) { @@ -169624,11 +226939,11 @@ ${gz(e, r10)}`); return this._getBlock(blockHashOrBlockTag, true); } getTransaction(transactionHash) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); transactionHash = yield transactionHash; const params = { transactionHash: this.formatter.hash(transactionHash, true) }; - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const result = yield this.perform("getTransaction", params); if (result == null) { if (this._emitted["t:" + transactionHash] == null) { @@ -169652,11 +226967,11 @@ ${gz(e, r10)}`); }); } getTransactionReceipt(transactionHash) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); transactionHash = yield transactionHash; const params = { transactionHash: this.formatter.hash(transactionHash, true) }; - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const result = yield this.perform("getTransactionReceipt", params); if (result == null) { if (this._emitted["t:" + transactionHash] == null) { @@ -169683,9 +226998,9 @@ ${gz(e, r10)}`); }); } getLogs(filter) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ filter: this._getFilter(filter) }); + const params = yield (0, import_properties18.resolveProperties)({ filter: this._getFilter(filter) }); const logs = yield this.perform("getLogs", params); logs.forEach((log) => { if (log.removed == null) { @@ -169696,17 +227011,17 @@ ${gz(e, r10)}`); }); } getEtherPrice() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); return this.perform("getEtherPrice", {}); }); } _getBlockTag(blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { blockTag = yield blockTag; if (typeof blockTag === "number" && blockTag < 0) { if (blockTag % 1) { - logger26.throwArgumentError("invalid BlockTag", "blockTag", blockTag); + logger22.throwArgumentError("invalid BlockTag", "blockTag", blockTag); } let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval); blockNumber += blockTag; @@ -169719,7 +227034,7 @@ ${gz(e, r10)}`); }); } getResolver(name6) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let currentName = name6; while (true) { if (currentName === "" || currentName === ".") { @@ -169741,13 +227056,13 @@ ${gz(e, r10)}`); }); } _getResolver(name6, operation) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (operation == null) { operation = "ENS"; } const network2 = yield this.getNetwork(); if (!network2.ensAddress) { - logger26.throwError("network does not support ENS", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network2.name }); + logger22.throwError("network does not support ENS", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network2.name }); } try { const addrData = yield this.call({ @@ -169761,17 +227076,17 @@ ${gz(e, r10)}`); }); } resolveName(name6) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { name6 = yield name6; try { return Promise.resolve(this.formatter.address(name6)); } catch (error) { - if ((0, import_bytes31.isHexString)(name6)) { + if ((0, import_bytes28.isHexString)(name6)) { throw error; } } if (typeof name6 !== "string") { - logger26.throwArgumentError("invalid ENS name", "name", name6); + logger22.throwArgumentError("invalid ENS name", "name", name6); } const resolver = yield this.getResolver(name6); if (!resolver) { @@ -169781,7 +227096,7 @@ ${gz(e, r10)}`); }); } lookupAddress(address) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { address = yield address; address = this.formatter.address(address); const node = address.substring(2).toLowerCase() + ".addr.reverse"; @@ -169801,9 +227116,9 @@ ${gz(e, r10)}`); }); } getAvatar(nameOrAddress) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let resolver = null; - if ((0, import_bytes31.isHexString)(nameOrAddress)) { + if ((0, import_bytes28.isHexString)(nameOrAddress)) { const address = this.formatter.address(nameOrAddress); const node = address.substring(2).toLowerCase() + ".addr.reverse"; const resolverAddress = yield this._getResolver(node, "getAvatar"); @@ -169817,7 +227132,7 @@ ${gz(e, r10)}`); return avatar2.url; } } catch (error) { - if (error.code !== import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code !== import_logger22.Logger.errors.CALL_EXCEPTION) { throw error; } } @@ -169828,7 +227143,7 @@ ${gz(e, r10)}`); }), 0); resolver = yield this.getResolver(name6); } catch (error) { - if (error.code !== import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code !== import_logger22.Logger.errors.CALL_EXCEPTION) { throw error; } return null; @@ -169847,7 +227162,7 @@ ${gz(e, r10)}`); }); } perform(method, params) { - return logger26.throwError(method + " not implemented", import_logger26.Logger.errors.NOT_IMPLEMENTED, { operation: method }); + return logger22.throwError(method + " not implemented", import_logger22.Logger.errors.NOT_IMPLEMENTED, { operation: method }); } _startEvent(event) { this.polling = this._events.filter((e) => e.pollable()).length > 0; @@ -169951,15 +227266,21 @@ ${gz(e, r10)}`); } }; + // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js + var import_properties22 = __toESM(require_lib7()); + // node_modules/@ethersproject/providers/lib.esm/websocket-provider.js - var import_bignumber14 = __toESM(require_lib3()); + var import_bignumber13 = __toESM(require_lib3()); + var import_properties20 = __toESM(require_lib7()); // node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js - var import_bignumber13 = __toESM(require_lib3()); - var import_bytes32 = __toESM(require_lib2()); + var import_abstract_signer3 = __toESM(require_lib11()); + var import_bignumber12 = __toESM(require_lib3()); + var import_bytes29 = __toESM(require_lib2()); + var import_properties19 = __toESM(require_lib7()); var import_strings11 = __toESM(require_lib6()); - var import_logger27 = __toESM(require_lib()); - var __awaiter12 = function(thisArg, _arguments, P, generator) { + var import_logger23 = __toESM(require_lib()); + var __awaiter10 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -169986,14 +227307,14 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger27 = new import_logger27.Logger(version20); + var logger23 = new import_logger23.Logger(version16); var errorGas = ["call", "estimateGas"]; function spelunk(value, requireData) { if (value == null) { return null; } if (typeof value.message === "string" && value.message.match("reverted")) { - const data = (0, import_bytes32.isHexString)(value.data) ? value.data : null; + const data = (0, import_bytes29.isHexString)(value.data) ? value.data : null; if (!requireData || data) { return { message: value.message, data }; } @@ -170022,7 +227343,7 @@ ${gz(e, r10)}`); if (result) { return result.data; } - logger27.throwError("missing revert data in call exception; Transaction reverted without a reason string", import_logger27.Logger.errors.CALL_EXCEPTION, { + logger23.throwError("missing revert data in call exception; Transaction reverted without a reason string", import_logger23.Logger.errors.CALL_EXCEPTION, { data: "0x", transaction, error @@ -170034,7 +227355,7 @@ ${gz(e, r10)}`); result = spelunk(error, false); } if (result) { - logger27.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger27.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger23.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger23.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { reason: result.message, method, transaction, @@ -170043,7 +227364,7 @@ ${gz(e, r10)}`); } } let message = error.message; - if (error.code === import_logger27.Logger.errors.SERVER_ERROR && error.error && typeof error.error.message === "string") { + if (error.code === import_logger23.Logger.errors.SERVER_ERROR && error.error && typeof error.error.message === "string") { message = error.error.message; } else if (typeof error.body === "string") { message = error.body; @@ -170052,35 +227373,35 @@ ${gz(e, r10)}`); } message = (message || "").toLowerCase(); if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) { - logger27.throwError("insufficient funds for intrinsic transaction cost", import_logger27.Logger.errors.INSUFFICIENT_FUNDS, { + logger23.throwError("insufficient funds for intrinsic transaction cost", import_logger23.Logger.errors.INSUFFICIENT_FUNDS, { error, method, transaction }); } if (message.match(/nonce (is )?too low/i)) { - logger27.throwError("nonce has already been used", import_logger27.Logger.errors.NONCE_EXPIRED, { + logger23.throwError("nonce has already been used", import_logger23.Logger.errors.NONCE_EXPIRED, { error, method, transaction }); } if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) { - logger27.throwError("replacement fee too low", import_logger27.Logger.errors.REPLACEMENT_UNDERPRICED, { + logger23.throwError("replacement fee too low", import_logger23.Logger.errors.REPLACEMENT_UNDERPRICED, { error, method, transaction }); } if (message.match(/only replay-protected/i)) { - logger27.throwError("legacy pre-eip-155 transactions not supported", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + logger23.throwError("legacy pre-eip-155 transactions not supported", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { error, method, transaction }); } if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) { - logger27.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger27.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger23.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger23.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { error, method, transaction @@ -170109,28 +227430,28 @@ ${gz(e, r10)}`); return value; } var _constructorGuard3 = {}; - var JsonRpcSigner = class extends Signer { + var JsonRpcSigner = class extends import_abstract_signer3.Signer { constructor(constructorGuard, provider, addressOrIndex) { super(); if (constructorGuard !== _constructorGuard3) { throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner"); } - defineReadOnly(this, "provider", provider); + (0, import_properties19.defineReadOnly)(this, "provider", provider); if (addressOrIndex == null) { addressOrIndex = 0; } if (typeof addressOrIndex === "string") { - defineReadOnly(this, "_address", this.provider.formatter.address(addressOrIndex)); - defineReadOnly(this, "_index", null); + (0, import_properties19.defineReadOnly)(this, "_address", this.provider.formatter.address(addressOrIndex)); + (0, import_properties19.defineReadOnly)(this, "_index", null); } else if (typeof addressOrIndex === "number") { - defineReadOnly(this, "_index", addressOrIndex); - defineReadOnly(this, "_address", null); + (0, import_properties19.defineReadOnly)(this, "_index", addressOrIndex); + (0, import_properties19.defineReadOnly)(this, "_address", null); } else { - logger27.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex); + logger23.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex); } } connect(provider) { - return logger27.throwError("cannot alter JSON-RPC Signer connection", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + return logger23.throwError("cannot alter JSON-RPC Signer connection", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "connect" }); } @@ -170143,7 +227464,7 @@ ${gz(e, r10)}`); } return this.provider.send("eth_accounts", []).then((accounts2) => { if (accounts2.length <= this._index) { - logger27.throwError("unknown account #" + this._index, import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + logger23.throwError("unknown account #" + this._index, import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getAddress" }); } @@ -170151,7 +227472,7 @@ ${gz(e, r10)}`); }); } sendUncheckedTransaction(transaction) { - transaction = shallowCopy(transaction); + transaction = (0, import_properties19.shallowCopy)(transaction); const fromAddress = this.getAddress().then((address) => { if (address) { address = address.toLowerCase(); @@ -170159,29 +227480,29 @@ ${gz(e, r10)}`); return address; }); if (transaction.gasLimit == null) { - const estimate = shallowCopy(transaction); + const estimate = (0, import_properties19.shallowCopy)(transaction); estimate.from = fromAddress; transaction.gasLimit = this.provider.estimateGas(estimate); } if (transaction.to != null) { - transaction.to = Promise.resolve(transaction.to).then((to2) => __awaiter12(this, void 0, void 0, function* () { + transaction.to = Promise.resolve(transaction.to).then((to2) => __awaiter10(this, void 0, void 0, function* () { if (to2 == null) { return null; } const address = yield this.provider.resolveName(to2); if (address == null) { - logger27.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); + logger23.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); } return address; })); } - return resolveProperties({ - tx: resolveProperties(transaction), + return (0, import_properties19.resolveProperties)({ + tx: (0, import_properties19.resolveProperties)(transaction), sender: fromAddress }).then(({ tx: tx2, sender }) => { if (tx2.from != null) { if (tx2.from.toLowerCase() !== sender) { - logger27.throwArgumentError("from address mismatch", "transaction", transaction); + logger23.throwArgumentError("from address mismatch", "transaction", transaction); } } else { tx2.from = sender; @@ -170191,7 +227512,7 @@ ${gz(e, r10)}`); return hash8; }, (error) => { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected transaction", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected transaction", import_logger23.Logger.errors.ACTION_REJECTED, { action: "sendTransaction", transaction: tx2 }); @@ -170201,16 +227522,16 @@ ${gz(e, r10)}`); }); } signTransaction(transaction) { - return logger27.throwError("signing transactions is unsupported", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + return logger23.throwError("signing transactions is unsupported", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "signTransaction" }); } sendTransaction(transaction) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const blockNumber = yield this.provider._getInternalBlockNumber(100 + 2 * this.provider.pollingInterval); const hash8 = yield this.sendUncheckedTransaction(transaction); try { - return yield poll(() => __awaiter12(this, void 0, void 0, function* () { + return yield poll(() => __awaiter10(this, void 0, void 0, function* () { const tx2 = yield this.provider.getTransaction(hash8); if (tx2 === null) { return void 0; @@ -170224,14 +227545,14 @@ ${gz(e, r10)}`); }); } signMessage(message) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const data = typeof message === "string" ? (0, import_strings11.toUtf8Bytes)(message) : message; const address = yield this.getAddress(); try { - return yield this.provider.send("personal_sign", [(0, import_bytes32.hexlify)(data), address.toLowerCase()]); + return yield this.provider.send("personal_sign", [(0, import_bytes29.hexlify)(data), address.toLowerCase()]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "signMessage", from: address, messageData: message @@ -170242,14 +227563,14 @@ ${gz(e, r10)}`); }); } _legacySignMessage(message) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const data = typeof message === "string" ? (0, import_strings11.toUtf8Bytes)(message) : message; const address = yield this.getAddress(); try { - return yield this.provider.send("eth_sign", [address.toLowerCase(), (0, import_bytes32.hexlify)(data)]); + return yield this.provider.send("eth_sign", [address.toLowerCase(), (0, import_bytes29.hexlify)(data)]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "_legacySignMessage", from: address, messageData: message @@ -170260,7 +227581,7 @@ ${gz(e, r10)}`); }); } _signTypedData(domain, types2, value) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const populated = yield TypedDataEncoder.resolveNames(domain, types2, value, (name6) => { return this.provider.resolveName(name6); }); @@ -170272,7 +227593,7 @@ ${gz(e, r10)}`); ]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "_signTypedData", from: address, messageData: { domain: populated.domain, types: types2, value: populated.value } @@ -170283,7 +227604,7 @@ ${gz(e, r10)}`); }); } unlock(password) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const provider = this.provider; const address = yield this.getAddress(); return provider.send("personal_unlockAccount", [address.toLowerCase(), password, null]); @@ -170310,7 +227631,7 @@ ${gz(e, r10)}`); }); } }; - var allowedTransactionKeys4 = { + var allowedTransactionKeys3 = { chainId: true, data: true, gasLimit: true, @@ -170339,14 +227660,14 @@ ${gz(e, r10)}`); } super(networkOrReady); if (!url) { - url = getStatic(this.constructor, "defaultUrl")(); + url = (0, import_properties19.getStatic)(this.constructor, "defaultUrl")(); } if (typeof url === "string") { - defineReadOnly(this, "connection", Object.freeze({ + (0, import_properties19.defineReadOnly)(this, "connection", Object.freeze({ url })); } else { - defineReadOnly(this, "connection", Object.freeze(shallowCopy(url))); + (0, import_properties19.defineReadOnly)(this, "connection", Object.freeze((0, import_properties19.shallowCopy)(url))); } this._nextId = 42; } @@ -170369,7 +227690,7 @@ ${gz(e, r10)}`); return this._cache["detectNetwork"]; } _uncachedDetectNetwork() { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { yield timer(0); let chainId = null; try { @@ -170381,18 +227702,18 @@ ${gz(e, r10)}`); } } if (chainId != null) { - const getNetwork2 = getStatic(this.constructor, "getNetwork"); + const getNetwork2 = (0, import_properties19.getStatic)(this.constructor, "getNetwork"); try { - return getNetwork2(import_bignumber13.BigNumber.from(chainId).toNumber()); + return getNetwork2(import_bignumber12.BigNumber.from(chainId).toNumber()); } catch (error) { - return logger27.throwError("could not detect network", import_logger27.Logger.errors.NETWORK_ERROR, { + return logger23.throwError("could not detect network", import_logger23.Logger.errors.NETWORK_ERROR, { chainId, event: "invalidNetwork", serverError: error }); } } - return logger27.throwError("could not detect network", import_logger27.Logger.errors.NETWORK_ERROR, { + return logger23.throwError("could not detect network", import_logger23.Logger.errors.NETWORK_ERROR, { event: "noNetwork" }); }); @@ -170417,7 +227738,7 @@ ${gz(e, r10)}`); }; this.emit("debug", { action: "request", - request: deepCopy(request), + request: (0, import_properties19.deepCopy)(request), provider: this }); const cache = ["eth_chainId", "eth_blockNumber"].indexOf(method) >= 0; @@ -170462,7 +227783,7 @@ ${gz(e, r10)}`); case "getCode": return ["eth_getCode", [getLowerCase(params.address), params.blockTag]]; case "getStorageAt": - return ["eth_getStorageAt", [getLowerCase(params.address), (0, import_bytes32.hexZeroPad)(params.position, 32), params.blockTag]]; + return ["eth_getStorageAt", [getLowerCase(params.address), (0, import_bytes29.hexZeroPad)(params.position, 32), params.blockTag]]; case "sendTransaction": return ["eth_sendRawTransaction", [params.signedTransaction]]; case "getBlock": @@ -170477,11 +227798,11 @@ ${gz(e, r10)}`); case "getTransactionReceipt": return ["eth_getTransactionReceipt", [params.transactionHash]]; case "call": { - const hexlifyTransaction = getStatic(this.constructor, "hexlifyTransaction"); + const hexlifyTransaction = (0, import_properties19.getStatic)(this.constructor, "hexlifyTransaction"); return ["eth_call", [hexlifyTransaction(params.transaction, { from: true }), params.blockTag]]; } case "estimateGas": { - const hexlifyTransaction = getStatic(this.constructor, "hexlifyTransaction"); + const hexlifyTransaction = (0, import_properties19.getStatic)(this.constructor, "hexlifyTransaction"); return ["eth_estimateGas", [hexlifyTransaction(params.transaction, { from: true })]]; } case "getLogs": @@ -170495,15 +227816,15 @@ ${gz(e, r10)}`); return null; } perform(method, params) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { if (method === "call" || method === "estimateGas") { const tx2 = params.transaction; - if (tx2 && tx2.type != null && import_bignumber13.BigNumber.from(tx2.type).isZero()) { + if (tx2 && tx2.type != null && import_bignumber12.BigNumber.from(tx2.type).isZero()) { if (tx2.maxFeePerGas == null && tx2.maxPriorityFeePerGas == null) { const feeData = yield this.getFeeData(); if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) { - params = shallowCopy(params); - params.transaction = shallowCopy(tx2); + params = (0, import_properties19.shallowCopy)(params); + params.transaction = (0, import_properties19.shallowCopy)(tx2); delete params.transaction.type; } } @@ -170511,7 +227832,7 @@ ${gz(e, r10)}`); } const args = this.prepareRequest(method, params); if (args == null) { - logger27.throwError(method + " not implemented", import_logger27.Logger.errors.NOT_IMPLEMENTED, { operation: method }); + logger23.throwError(method + " not implemented", import_logger23.Logger.errors.NOT_IMPLEMENTED, { operation: method }); } try { return yield this.send(args[0], args[1]); @@ -170576,7 +227897,7 @@ ${gz(e, r10)}`); super._stopEvent(event); } static hexlifyTransaction(transaction, allowExtra) { - const allowed = shallowCopy(allowedTransactionKeys4); + const allowed = (0, import_properties19.shallowCopy)(allowedTransactionKeys3); if (allowExtra) { for (const key2 in allowExtra) { if (allowExtra[key2]) { @@ -170584,13 +227905,13 @@ ${gz(e, r10)}`); } } } - checkProperties(transaction, allowed); + (0, import_properties19.checkProperties)(transaction, allowed); const result = {}; ["chainId", "gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function(key2) { if (transaction[key2] == null) { return; } - const value = (0, import_bytes32.hexValue)(import_bignumber13.BigNumber.from(transaction[key2])); + const value = (0, import_bytes29.hexValue)(import_bignumber12.BigNumber.from(transaction[key2])); if (key2 === "gasLimit") { key2 = "gas"; } @@ -170600,7 +227921,7 @@ ${gz(e, r10)}`); if (transaction[key2] == null) { return; } - result[key2] = (0, import_bytes32.hexlify)(transaction[key2]); + result[key2] = (0, import_bytes29.hexlify)(transaction[key2]); }); if (transaction.accessList) { result["accessList"] = accessListify(transaction.accessList); @@ -170610,7 +227931,7 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/ws.js - var import_logger28 = __toESM(require_lib()); + var import_logger24 = __toESM(require_lib()); var WS2 = null; try { WS2 = WebSocket; @@ -170618,17 +227939,17 @@ ${gz(e, r10)}`); throw new Error("inject please"); } } catch (error) { - const logger46 = new import_logger28.Logger(version20); + const logger42 = new import_logger24.Logger(version16); WS2 = function() { - logger46.throwError("WebSockets not supported in this environment", import_logger28.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("WebSockets not supported in this environment", import_logger24.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new WebSocket()" }); }; } // node_modules/@ethersproject/providers/lib.esm/websocket-provider.js - var import_logger29 = __toESM(require_lib()); - var __awaiter13 = function(thisArg, _arguments, P, generator) { + var import_logger25 = __toESM(require_lib()); + var __awaiter11 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -170655,12 +227976,12 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger28 = new import_logger29.Logger(version20); + var logger24 = new import_logger25.Logger(version16); var NextId = 1; var WebSocketProvider = class extends JsonRpcProvider { constructor(url, network2) { if (network2 === "any") { - logger28.throwError("WebSocketProvider does not support 'any' network yet", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("WebSocketProvider does not support 'any' network yet", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "network:any" }); } @@ -170672,14 +227993,14 @@ ${gz(e, r10)}`); this._pollingInterval = -1; this._wsReady = false; if (typeof url === "string") { - defineReadOnly(this, "_websocket", new WS2(this.connection.url)); + (0, import_properties20.defineReadOnly)(this, "_websocket", new WS2(this.connection.url)); } else { - defineReadOnly(this, "_websocket", url); + (0, import_properties20.defineReadOnly)(this, "_websocket", url); } - defineReadOnly(this, "_requests", {}); - defineReadOnly(this, "_subs", {}); - defineReadOnly(this, "_subIds", {}); - defineReadOnly(this, "_detectNetwork", super.detectNetwork()); + (0, import_properties20.defineReadOnly)(this, "_requests", {}); + (0, import_properties20.defineReadOnly)(this, "_subs", {}); + (0, import_properties20.defineReadOnly)(this, "_subIds", {}); + (0, import_properties20.defineReadOnly)(this, "_detectNetwork", super.detectNetwork()); this.websocket.onopen = () => { this._wsReady = true; Object.keys(this._requests).forEach((id4) => { @@ -170705,8 +228026,8 @@ ${gz(e, r10)}`); let error = null; if (result.error) { error = new Error(result.error.message || "unknown error"); - defineReadOnly(error, "code", result.error.code || null); - defineReadOnly(error, "response", data); + (0, import_properties20.defineReadOnly)(error, "code", result.error.code || null); + (0, import_properties20.defineReadOnly)(error, "response", data); } else { error = new Error("unknown error"); } @@ -170744,17 +228065,17 @@ ${gz(e, r10)}`); return 0; } resetEventsBlock(blockNumber) { - logger28.throwError("cannot reset events block on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot reset events block on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resetEventBlock" }); } set pollingInterval(value) { - logger28.throwError("cannot set polling interval on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot set polling interval on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "setPollingInterval" }); } poll() { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { return null; }); } @@ -170762,7 +228083,7 @@ ${gz(e, r10)}`); if (!value) { return; } - logger28.throwError("cannot set polling on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot set polling on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "setPolling" }); } @@ -170796,7 +228117,7 @@ ${gz(e, r10)}`); return "ws://localhost:8546"; } _subscribe(tag, param, processFunc) { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { let subIdPromise = this._subIds[tag]; if (subIdPromise == null) { subIdPromise = Promise.all(param).then((param2) => { @@ -170812,7 +228133,7 @@ ${gz(e, r10)}`); switch (event.type) { case "block": this._subscribe("block", ["newHeads"], (result) => { - const blockNumber = import_bignumber14.BigNumber.from(result.number).toNumber(); + const blockNumber = import_bignumber13.BigNumber.from(result.number).toNumber(); this._emitted.block = blockNumber; this.emit("block", blockNumber); }); @@ -170881,7 +228202,7 @@ ${gz(e, r10)}`); }); } destroy() { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { if (this.websocket.readyState === WS2.CONNECTING) { yield new Promise((resolve) => { this.websocket.onopen = function() { @@ -170898,11 +228219,12 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js - var import_logger31 = __toESM(require_lib()); + var import_logger27 = __toESM(require_lib()); // node_modules/@ethersproject/providers/lib.esm/url-json-rpc-provider.js - var import_logger30 = __toESM(require_lib()); - var __awaiter14 = function(thisArg, _arguments, P, generator) { + var import_properties21 = __toESM(require_lib7()); + var import_logger26 = __toESM(require_lib()); + var __awaiter12 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -170929,21 +228251,21 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger29 = new import_logger30.Logger(version20); + var logger25 = new import_logger26.Logger(version16); var StaticJsonRpcProvider = class extends JsonRpcProvider { detectNetwork() { const _super = Object.create(null, { detectNetwork: { get: () => super.detectNetwork } }); - return __awaiter14(this, void 0, void 0, function* () { + return __awaiter12(this, void 0, void 0, function* () { let network2 = this.network; if (network2 == null) { network2 = yield _super.detectNetwork.call(this); if (!network2) { - logger29.throwError("no network detected", import_logger30.Logger.errors.UNKNOWN_ERROR, {}); + logger25.throwError("no network detected", import_logger26.Logger.errors.UNKNOWN_ERROR, {}); } if (this._network == null) { - defineReadOnly(this, "_network", network2); + (0, import_properties21.defineReadOnly)(this, "_network", network2); this.emit("network", network2, null); } } @@ -170953,27 +228275,27 @@ ${gz(e, r10)}`); }; var UrlJsonRpcProvider = class extends StaticJsonRpcProvider { constructor(network2, apiKey) { - logger29.checkAbstract(new.target, UrlJsonRpcProvider); - network2 = getStatic(new.target, "getNetwork")(network2); - apiKey = getStatic(new.target, "getApiKey")(apiKey); - const connection = getStatic(new.target, "getUrl")(network2, apiKey); + logger25.checkAbstract(new.target, UrlJsonRpcProvider); + network2 = (0, import_properties21.getStatic)(new.target, "getNetwork")(network2); + apiKey = (0, import_properties21.getStatic)(new.target, "getApiKey")(apiKey); + const connection = (0, import_properties21.getStatic)(new.target, "getUrl")(network2, apiKey); super(connection, network2); if (typeof apiKey === "string") { - defineReadOnly(this, "apiKey", apiKey); + (0, import_properties21.defineReadOnly)(this, "apiKey", apiKey); } else if (apiKey != null) { Object.keys(apiKey).forEach((key2) => { - defineReadOnly(this, key2, apiKey[key2]); + (0, import_properties21.defineReadOnly)(this, key2, apiKey[key2]); }); } } _startPending() { - logger29.warn("WARNING: API provider does not support pending filters"); + logger25.warn("WARNING: API provider does not support pending filters"); } isCommunityResource() { return false; } getSigner(address) { - return logger29.throwError("API provider does not support signing", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" }); + return logger25.throwError("API provider does not support signing", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" }); } listAccounts() { return Promise.resolve([]); @@ -170982,21 +228304,21 @@ ${gz(e, r10)}`); return apiKey; } static getUrl(network2, apiKey) { - return logger29.throwError("not implemented; sub-classes must override getUrl", import_logger30.Logger.errors.NOT_IMPLEMENTED, { + return logger25.throwError("not implemented; sub-classes must override getUrl", import_logger26.Logger.errors.NOT_IMPLEMENTED, { operation: "getUrl" }); } }; // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js - var logger30 = new import_logger31.Logger(version20); + var logger26 = new import_logger27.Logger(version16); var defaultApiKey = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"; var AlchemyWebSocketProvider = class extends WebSocketProvider { constructor(network2, apiKey) { const provider = new AlchemyProvider(network2, apiKey); const url = provider.connection.url.replace(/^http/i, "ws").replace(".alchemyapi.", ".ws.alchemyapi."); super(url, provider.network); - defineReadOnly(this, "apiKey", provider.apiKey); + (0, import_properties22.defineReadOnly)(this, "apiKey", provider.apiKey); } isCommunityResource() { return this.apiKey === defaultApiKey; @@ -171011,7 +228333,7 @@ ${gz(e, r10)}`); return defaultApiKey; } if (apiKey && typeof apiKey !== "string") { - logger30.throwArgumentError("invalid apiKey", "apiKey", apiKey); + logger26.throwArgumentError("invalid apiKey", "apiKey", apiKey); } return apiKey; } @@ -171043,7 +228365,7 @@ ${gz(e, r10)}`); host = "opt-goerli.g.alchemy.com/v2/"; break; default: - logger30.throwArgumentError("unsupported network", "network", arguments[0]); + logger26.throwArgumentError("unsupported network", "network", arguments[0]); } return { allowGzip: true, @@ -171062,8 +228384,8 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/ankr-provider.js - var import_logger32 = __toESM(require_lib()); - var logger31 = new import_logger32.Logger(version20); + var import_logger28 = __toESM(require_lib()); + var logger27 = new import_logger28.Logger(version16); var defaultApiKey2 = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972"; function getHost(name6) { switch (name6) { @@ -171080,7 +228402,7 @@ ${gz(e, r10)}`); case "arbitrum": return "rpc.ankr.com/arbitrum/"; } - return logger31.throwArgumentError("unsupported network", "name", name6); + return logger27.throwArgumentError("unsupported network", "name", name6); } var AnkrProvider = class extends UrlJsonRpcProvider { isCommunityResource() { @@ -171115,8 +228437,8 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/cloudflare-provider.js - var import_logger33 = __toESM(require_lib()); - var __awaiter15 = function(thisArg, _arguments, P, generator) { + var import_logger29 = __toESM(require_lib()); + var __awaiter13 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171143,11 +228465,11 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger32 = new import_logger33.Logger(version20); + var logger28 = new import_logger29.Logger(version16); var CloudflareProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { if (apiKey != null) { - logger32.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey); + logger28.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey); } return null; } @@ -171158,7 +228480,7 @@ ${gz(e, r10)}`); host = "https://cloudflare-eth.com/"; break; default: - logger32.throwArgumentError("unsupported network", "network", arguments[0]); + logger28.throwArgumentError("unsupported network", "network", arguments[0]); } return host; } @@ -171166,7 +228488,7 @@ ${gz(e, r10)}`); const _super = Object.create(null, { perform: { get: () => super.perform } }); - return __awaiter15(this, void 0, void 0, function* () { + return __awaiter13(this, void 0, void 0, function* () { if (method === "getBlockNumber") { const block = yield _super.perform.call(this, "getBlock", { blockTag: "latest" }); return block.number; @@ -171177,9 +228499,10 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/etherscan-provider.js - var import_bytes33 = __toESM(require_lib2()); - var import_logger34 = __toESM(require_lib()); - var __awaiter16 = function(thisArg, _arguments, P, generator) { + var import_bytes30 = __toESM(require_lib2()); + var import_properties23 = __toESM(require_lib7()); + var import_logger30 = __toESM(require_lib()); + var __awaiter14 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171206,7 +228529,7 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger33 = new import_logger34.Logger(version20); + var logger29 = new import_logger30.Logger(version16); function getTransactionPostData(transaction) { const result = {}; for (let key2 in transaction) { @@ -171218,13 +228541,13 @@ ${gz(e, r10)}`); continue; } if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key2]) { - value = (0, import_bytes33.hexValue)((0, import_bytes33.hexlify)(value)); + value = (0, import_bytes30.hexValue)((0, import_bytes30.hexlify)(value)); } else if (key2 === "accessList") { value = "[" + accessListify(value).map((set2) => { return `{address:"${set2.address}",storageKeys:["${set2.storageKeys.join('","')}"]}`; }).join(",") + "]"; } else { - value = (0, import_bytes33.hexlify)(value); + value = (0, import_bytes30.hexlify)(value); } result[key2] = value; } @@ -171278,24 +228601,24 @@ ${gz(e, r10)}`); return parseInt(blockTag.substring(2), 16); } function checkError2(method, error, transaction) { - if (method === "call" && error.code === import_logger34.Logger.errors.SERVER_ERROR) { + if (method === "call" && error.code === import_logger30.Logger.errors.SERVER_ERROR) { const e = error.error; if (e && (e.message.match(/reverted/i) || e.message.match(/VM execution error/i))) { let data = e.data; if (data) { data = "0x" + data.replace(/^.*0x/i, ""); } - if ((0, import_bytes33.isHexString)(data)) { + if ((0, import_bytes30.isHexString)(data)) { return data; } - logger33.throwError("missing revert data in call exception", import_logger34.Logger.errors.CALL_EXCEPTION, { + logger29.throwError("missing revert data in call exception", import_logger30.Logger.errors.CALL_EXCEPTION, { error, data: "0x" }); } } let message = error.message; - if (error.code === import_logger34.Logger.errors.SERVER_ERROR) { + if (error.code === import_logger30.Logger.errors.SERVER_ERROR) { if (error.error && typeof error.error.message === "string") { message = error.error.message; } else if (typeof error.body === "string") { @@ -171306,28 +228629,28 @@ ${gz(e, r10)}`); } message = (message || "").toLowerCase(); if (message.match(/insufficient funds/)) { - logger33.throwError("insufficient funds for intrinsic transaction cost", import_logger34.Logger.errors.INSUFFICIENT_FUNDS, { + logger29.throwError("insufficient funds for intrinsic transaction cost", import_logger30.Logger.errors.INSUFFICIENT_FUNDS, { error, method, transaction }); } if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) { - logger33.throwError("nonce has already been used", import_logger34.Logger.errors.NONCE_EXPIRED, { + logger29.throwError("nonce has already been used", import_logger30.Logger.errors.NONCE_EXPIRED, { error, method, transaction }); } if (message.match(/another transaction with same nonce/)) { - logger33.throwError("replacement fee too low", import_logger34.Logger.errors.REPLACEMENT_UNDERPRICED, { + logger29.throwError("replacement fee too low", import_logger30.Logger.errors.REPLACEMENT_UNDERPRICED, { error, method, transaction }); } if (message.match(/execution failed due to an exception|execution reverted/)) { - logger33.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger34.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger29.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger30.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { error, method, transaction @@ -171338,8 +228661,8 @@ ${gz(e, r10)}`); var EtherscanProvider = class extends BaseProvider { constructor(network2, apiKey) { super(network2); - defineReadOnly(this, "baseUrl", this.getBaseUrl()); - defineReadOnly(this, "apiKey", apiKey || null); + (0, import_properties23.defineReadOnly)(this, "baseUrl", this.getBaseUrl()); + (0, import_properties23.defineReadOnly)(this, "apiKey", apiKey || null); } getBaseUrl() { switch (this.network ? this.network.name : "invalid") { @@ -171363,7 +228686,7 @@ ${gz(e, r10)}`); return "https://api-goerli-optimistic.etherscan.io"; default: } - return logger33.throwArgumentError("unsupported network", "network", this.network.name); + return logger29.throwArgumentError("unsupported network", "network", this.network.name); } getUrl(module2, params) { const query = Object.keys(params).reduce((accum, key2) => { @@ -171385,7 +228708,7 @@ ${gz(e, r10)}`); return params; } fetch(module2, params, post) { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { const url = post ? this.getPostUrl() : this.getUrl(module2, params); const payload = post ? this.getPostData(module2, params) : null; const procFunc = module2 === "proxy" ? getJsonResult : getResult2; @@ -171415,14 +228738,14 @@ ${gz(e, r10)}`); this.emit("debug", { action: "response", request: url, - response: deepCopy(result), + response: (0, import_properties23.deepCopy)(result), provider: this }); return result; }); } detectNetwork() { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { return this.network; }); } @@ -171430,7 +228753,7 @@ ${gz(e, r10)}`); const _super = Object.create(null, { perform: { get: () => super.perform } }); - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { switch (method) { case "getBlockNumber": return this.fetch("proxy", { action: "eth_blockNumber" }); @@ -171523,12 +228846,12 @@ ${gz(e, r10)}`); } if (params.filter.topics && params.filter.topics.length > 0) { if (params.filter.topics.length > 1) { - logger33.throwError("unsupported topic count", import_logger34.Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics }); + logger29.throwError("unsupported topic count", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics }); } if (params.filter.topics.length === 1) { const topic0 = params.filter.topics[0]; if (typeof topic0 !== "string" || topic0.length !== 66) { - logger33.throwError("unsupported topic format", import_logger34.Logger.errors.UNSUPPORTED_OPERATION, { topic0 }); + logger29.throwError("unsupported topic format", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { topic0 }); } args.topic0 = topic0; } @@ -171562,7 +228885,7 @@ ${gz(e, r10)}`); }); } getHistory(addressOrName, startBlock, endBlock) { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { const params = { action: "txlist", address: yield this.resolveName(addressOrName), @@ -171594,10 +228917,11 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/fallback-provider.js - var import_bignumber15 = __toESM(require_lib3()); - var import_bytes34 = __toESM(require_lib2()); - var import_logger35 = __toESM(require_lib()); - var __awaiter17 = function(thisArg, _arguments, P, generator) { + var import_bignumber14 = __toESM(require_lib3()); + var import_bytes31 = __toESM(require_lib2()); + var import_properties24 = __toESM(require_lib7()); + var import_logger31 = __toESM(require_lib()); + var __awaiter15 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171624,7 +228948,7 @@ ${gz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger34 = new import_logger35.Logger(version20); + var logger30 = new import_logger31.Logger(version16); function now() { return new Date().getTime(); } @@ -171637,7 +228961,7 @@ ${gz(e, r10)}`); } if (result) { if (!(result.name === network2.name && result.chainId === network2.chainId && (result.ensAddress === network2.ensAddress || result.ensAddress == null && network2.ensAddress == null))) { - logger34.throwArgumentError("provider mismatch", "networks", networks2); + logger30.throwArgumentError("provider mismatch", "networks", networks2); } } else { result = network2; @@ -171664,7 +228988,7 @@ ${gz(e, r10)}`); return JSON.stringify(value); } else if (typeof value === "string") { return value; - } else if (import_bignumber15.BigNumber.isBigNumber(value)) { + } else if (import_bignumber14.BigNumber.isBigNumber(value)) { return value.toString(); } else if (Array.isArray(value)) { return JSON.stringify(value.map((i) => serialize2(i))); @@ -171707,11 +229031,11 @@ ${gz(e, r10)}`); return { cancel, getPromise, wait }; } var ForwardErrors = [ - import_logger35.Logger.errors.CALL_EXCEPTION, - import_logger35.Logger.errors.INSUFFICIENT_FUNDS, - import_logger35.Logger.errors.NONCE_EXPIRED, - import_logger35.Logger.errors.REPLACEMENT_UNDERPRICED, - import_logger35.Logger.errors.UNPREDICTABLE_GAS_LIMIT + import_logger31.Logger.errors.CALL_EXCEPTION, + import_logger31.Logger.errors.INSUFFICIENT_FUNDS, + import_logger31.Logger.errors.NONCE_EXPIRED, + import_logger31.Logger.errors.REPLACEMENT_UNDERPRICED, + import_logger31.Logger.errors.UNPREDICTABLE_GAS_LIMIT ]; var ForwardProperties = [ "address", @@ -171804,7 +229128,7 @@ ${gz(e, r10)}`); if (tx2 == null) { return null; } - tx2 = shallowCopy(tx2); + tx2 = (0, import_properties24.shallowCopy)(tx2); tx2.confirmations = -1; return serialize2(tx2); }; @@ -171815,9 +229139,9 @@ ${gz(e, r10)}`); if (block == null) { return null; } - block = shallowCopy(block); + block = (0, import_properties24.shallowCopy)(block); block.transactions = block.transactions.map((tx2) => { - tx2 = shallowCopy(tx2); + tx2 = (0, import_properties24.shallowCopy)(tx2); tx2.confirmations = -1; return tx2; }); @@ -171838,7 +229162,7 @@ ${gz(e, r10)}`); return normalizedTally(normalize7, provider.quorum); } function waitForSync(config7, blockNumber) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { const provider = config7.provider; if (provider.blockNumber != null && provider.blockNumber >= blockNumber || blockNumber === -1) { return provider; @@ -171859,7 +229183,7 @@ ${gz(e, r10)}`); }); } function getRunner(config7, currentBlockNumber, method, params) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { let provider = config7.provider; switch (method) { case "getBlockNumber": @@ -171873,23 +229197,23 @@ ${gz(e, r10)}`); case "getBalance": case "getTransactionCount": case "getCode": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider[method](params.address, params.blockTag || "latest"); case "getStorageAt": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider.getStorageAt(params.address, params.position, params.blockTag || "latest"); case "getBlock": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider[params.includeTransactions ? "getBlockWithTransactions" : "getBlock"](params.blockTag || params.blockHash); case "call": case "estimateGas": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } if (method === "call" && params.blockTag) { @@ -171901,13 +229225,13 @@ ${gz(e, r10)}`); return provider[method](params.transactionHash); case "getLogs": { let filter = params.filter; - if (filter.fromBlock && (0, import_bytes34.isHexString)(filter.fromBlock) || filter.toBlock && (0, import_bytes34.isHexString)(filter.toBlock)) { + if (filter.fromBlock && (0, import_bytes31.isHexString)(filter.fromBlock) || filter.toBlock && (0, import_bytes31.isHexString)(filter.toBlock)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider.getLogs(filter); } } - return logger34.throwError("unknown method error", import_logger35.Logger.errors.UNKNOWN_ERROR, { + return logger30.throwError("unknown method error", import_logger31.Logger.errors.UNKNOWN_ERROR, { method, params }); @@ -171916,7 +229240,7 @@ ${gz(e, r10)}`); var FallbackProvider = class extends BaseProvider { constructor(providers, quorum) { if (providers.length === 0) { - logger34.throwArgumentError("missing providers", "providers", providers); + logger30.throwArgumentError("missing providers", "providers", providers); } const providerConfigs = providers.map((configOrProvider, index) => { if (Provider.isProvider(configOrProvider)) { @@ -171924,7 +229248,7 @@ ${gz(e, r10)}`); const priority = 1; return Object.freeze({ provider: configOrProvider, weight: 1, stallTimeout, priority }); } - const config7 = shallowCopy(configOrProvider); + const config7 = (0, import_properties24.shallowCopy)(configOrProvider); if (config7.priority == null) { config7.priority = 1; } @@ -171936,7 +229260,7 @@ ${gz(e, r10)}`); } const weight = config7.weight; if (weight % 1 || weight > 512 || weight < 1) { - logger34.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight); + logger30.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight); } return Object.freeze(config7); }); @@ -171944,7 +229268,7 @@ ${gz(e, r10)}`); if (quorum == null) { quorum = total / 2; } else if (quorum > total) { - logger34.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum); + logger30.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum); } let networkOrReady = checkNetworks(providerConfigs.map((c) => c.provider.network)); if (networkOrReady == null) { @@ -171955,18 +229279,18 @@ ${gz(e, r10)}`); }); } super(networkOrReady); - defineReadOnly(this, "providerConfigs", Object.freeze(providerConfigs)); - defineReadOnly(this, "quorum", quorum); + (0, import_properties24.defineReadOnly)(this, "providerConfigs", Object.freeze(providerConfigs)); + (0, import_properties24.defineReadOnly)(this, "quorum", quorum); this._highestBlockNumber = -1; } detectNetwork() { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { const networks2 = yield Promise.all(this.providerConfigs.map((c) => c.provider.getNetwork())); return checkNetworks(networks2); }); } perform(method, params) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { if (method === "sendTransaction") { const results = yield Promise.all(this.providerConfigs.map((c) => { return c.provider.sendTransaction(params.signedTransaction).then((result) => { @@ -171987,7 +229311,7 @@ ${gz(e, r10)}`); yield this.getBlockNumber(); } const processFunc = getProcessFunc(this, method, params); - const configs = shuffled(this.providerConfigs.map(shallowCopy)); + const configs = shuffled(this.providerConfigs.map(import_properties24.shallowCopy)); configs.sort((a, b) => a.priority - b.priority); const currentBlockNumber = this._highestBlockNumber; let i = 0; @@ -172011,7 +229335,7 @@ ${gz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, now()), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -172023,7 +229347,7 @@ ${gz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, now()), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -172033,7 +229357,7 @@ ${gz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, null), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -172101,7 +229425,7 @@ ${gz(e, r10)}`); } props[name6] = e[name6]; }); - logger34.throwError(e.reason || e.message, errorCode, props); + logger30.throwError(e.reason || e.message, errorCode, props); }); if (configs.filter((c) => !c.done).length === 0) { break; @@ -172113,7 +229437,7 @@ ${gz(e, r10)}`); } c.cancelled = true; }); - return logger34.throwError("failed to meet quorum", import_logger35.Logger.errors.SERVER_ERROR, { + return logger30.throwError("failed to meet quorum", import_logger31.Logger.errors.SERVER_ERROR, { method, params, results: configs.map((c) => exposeDebugConfig(c)), @@ -172127,23 +229451,24 @@ ${gz(e, r10)}`); var IpcProvider = null; // node_modules/@ethersproject/providers/lib.esm/infura-provider.js - var import_logger36 = __toESM(require_lib()); - var logger35 = new import_logger36.Logger(version20); + var import_properties25 = __toESM(require_lib7()); + var import_logger32 = __toESM(require_lib()); + var logger31 = new import_logger32.Logger(version16); var defaultProjectId = "84842078b09946638c03157f83405213"; var InfuraWebSocketProvider = class extends WebSocketProvider { constructor(network2, apiKey) { const provider = new InfuraProvider(network2, apiKey); const connection = provider.connection; if (connection.password) { - logger35.throwError("INFURA WebSocket project secrets unsupported", import_logger36.Logger.errors.UNSUPPORTED_OPERATION, { + logger31.throwError("INFURA WebSocket project secrets unsupported", import_logger32.Logger.errors.UNSUPPORTED_OPERATION, { operation: "InfuraProvider.getWebSocketProvider()" }); } const url = connection.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/"); super(url, network2); - defineReadOnly(this, "apiKey", provider.projectId); - defineReadOnly(this, "projectId", provider.projectId); - defineReadOnly(this, "projectSecret", provider.projectSecret); + (0, import_properties25.defineReadOnly)(this, "apiKey", provider.projectId); + (0, import_properties25.defineReadOnly)(this, "projectId", provider.projectId); + (0, import_properties25.defineReadOnly)(this, "projectSecret", provider.projectSecret); } isCommunityResource() { return this.projectId === defaultProjectId; @@ -172165,8 +229490,8 @@ ${gz(e, r10)}`); if (typeof apiKey === "string") { apiKeyObj.projectId = apiKey; } else if (apiKey.projectSecret != null) { - logger35.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId); - logger35.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]"); + logger31.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId); + logger31.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]"); apiKeyObj.projectId = apiKey.projectId; apiKeyObj.projectSecret = apiKey.projectSecret; } else if (apiKey.projectId) { @@ -172206,7 +229531,7 @@ ${gz(e, r10)}`); host = "arbitrum-goerli.infura.io"; break; default: - logger35.throwError("unsupported network", import_logger36.Logger.errors.INVALID_ARGUMENT, { + logger31.throwError("unsupported network", import_logger32.Logger.errors.INVALID_ARGUMENT, { argument: "network", value: network2 }); @@ -172233,6 +229558,7 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/json-rpc-batch-provider.js + var import_properties26 = __toESM(require_lib7()); var JsonRpcBatchProvider = class extends JsonRpcProvider { send(method, params) { const request = { @@ -172258,7 +229584,7 @@ ${gz(e, r10)}`); const request2 = batch.map((inflight) => inflight.request); this.emit("debug", { action: "requestBatch", - request: deepCopy(request2), + request: (0, import_properties26.deepCopy)(request2), provider: this }); return fetchJson(this.connection, JSON.stringify(request2)).then((result) => { @@ -172297,18 +229623,18 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.js - var import_logger37 = __toESM(require_lib()); - var logger36 = new import_logger37.Logger(version20); + var import_logger33 = __toESM(require_lib()); + var logger32 = new import_logger33.Logger(version16); var defaultApiKey3 = "ETHERS_JS_SHARED"; var NodesmithProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { if (apiKey && typeof apiKey !== "string") { - logger36.throwArgumentError("invalid apiKey", "apiKey", apiKey); + logger32.throwArgumentError("invalid apiKey", "apiKey", apiKey); } return apiKey || defaultApiKey3; } static getUrl(network2, apiKey) { - logger36.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform."); + logger32.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform."); let host = null; switch (network2.name) { case "homestead": @@ -172327,15 +229653,15 @@ ${gz(e, r10)}`); host = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc"; break; default: - logger36.throwArgumentError("unsupported network", "network", arguments[0]); + logger32.throwArgumentError("unsupported network", "network", arguments[0]); } return host + "?apiKey=" + apiKey; } }; // node_modules/@ethersproject/providers/lib.esm/pocket-provider.js - var import_logger38 = __toESM(require_lib()); - var logger37 = new import_logger38.Logger(version20); + var import_logger34 = __toESM(require_lib()); + var logger33 = new import_logger34.Logger(version16); var defaultApplicationId = "62e1ad51b37b8e00394bda3b"; var PocketProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { @@ -172354,7 +229680,7 @@ ${gz(e, r10)}`); } else if (apiKey.applicationId) { apiKeyObj.applicationId = apiKey.applicationId; } else { - logger37.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey); + logger33.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey); } return apiKeyObj; } @@ -172383,7 +229709,7 @@ ${gz(e, r10)}`); host = "eth-ropsten.gateway.pokt.network"; break; default: - logger37.throwError("unsupported network", import_logger38.Logger.errors.INVALID_ARGUMENT, { + logger33.throwError("unsupported network", import_logger34.Logger.errors.INVALID_ARGUMENT, { argument: "network", value: network2 }); @@ -172402,8 +229728,9 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/web3-provider.js - var import_logger39 = __toESM(require_lib()); - var logger38 = new import_logger39.Logger(version20); + var import_properties27 = __toESM(require_lib7()); + var import_logger35 = __toESM(require_lib()); + var logger34 = new import_logger35.Logger(version16); var _nextId = 1; function buildWeb3LegacyFetcher(provider, sendFunc) { const fetcher = "Web3LegacyFetcher"; @@ -172418,7 +229745,7 @@ ${gz(e, r10)}`); this.emit("debug", { action: "request", fetcher, - request: deepCopy(request), + request: (0, import_properties27.deepCopy)(request), provider: this }); sendFunc(request, (error, response) => { @@ -172459,7 +229786,7 @@ ${gz(e, r10)}`); this.emit("debug", { action: "request", fetcher: "Eip1193Fetcher", - request: deepCopy(request), + request: (0, import_properties27.deepCopy)(request), provider: this }); return provider.request(request).then((response) => { @@ -172486,7 +229813,7 @@ ${gz(e, r10)}`); var Web3Provider = class extends JsonRpcProvider { constructor(provider, network2) { if (provider == null) { - logger38.throwArgumentError("missing provider", "provider", provider); + logger34.throwArgumentError("missing provider", "provider", provider); } let path = null; let jsonRpcFetchFunc = null; @@ -172510,15 +229837,15 @@ ${gz(e, r10)}`); } else if (provider.send) { jsonRpcFetchFunc = buildWeb3LegacyFetcher(provider, provider.send.bind(provider)); } else { - logger38.throwArgumentError("unsupported provider", "provider", provider); + logger34.throwArgumentError("unsupported provider", "provider", provider); } if (!path) { path = "unknown:"; } } super(path, network2); - defineReadOnly(this, "jsonRpcFetchFunc", jsonRpcFetchFunc); - defineReadOnly(this, "provider", subprovider); + (0, import_properties27.defineReadOnly)(this, "jsonRpcFetchFunc", jsonRpcFetchFunc); + (0, import_properties27.defineReadOnly)(this, "provider", subprovider); } send(method, params) { return this.jsonRpcFetchFunc(method, params); @@ -172526,8 +229853,8 @@ ${gz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/index.js - var import_logger40 = __toESM(require_lib()); - var logger39 = new import_logger40.Logger(version20); + var import_logger36 = __toESM(require_lib()); + var logger35 = new import_logger36.Logger(version16); function getDefaultProvider(network2, options) { if (network2 == null) { network2 = "homestead"; @@ -172543,13 +229870,13 @@ ${gz(e, r10)}`); case "wss": return new WebSocketProvider(network2); default: - logger39.throwArgumentError("unsupported URL scheme", "network", network2); + logger35.throwArgumentError("unsupported URL scheme", "network", network2); } } } const n = getNetwork(network2); if (!n || !n._defaultProvider) { - logger39.throwError("unsupported getDefaultProvider network", import_logger40.Logger.errors.NETWORK_ERROR, { + logger35.throwError("unsupported getDefaultProvider network", import_logger36.Logger.errors.NETWORK_ERROR, { operation: "getDefaultProvider", network: network2 }); @@ -172583,9 +229910,9 @@ ${gz(e, r10)}`); Indexed: () => Indexed, Interface: () => Interface, LogDescription: () => LogDescription, - Logger: () => import_logger43.Logger, + Logger: () => import_logger39.Logger, ParamType: () => ParamType, - RLP: () => lib_exports, + RLP: () => RLP2, SigningKey: () => SigningKey, SupportedAlgorithm: () => SupportedAlgorithm, TransactionDescription: () => TransactionDescription, @@ -172597,20 +229924,20 @@ ${gz(e, r10)}`); _fetchData: () => _fetchData, _toEscapedUtf8String: () => import_strings13._toEscapedUtf8String, accessListify: () => accessListify, - arrayify: () => import_bytes36.arrayify, + arrayify: () => import_bytes33.arrayify, base58: () => Base58, - base64: () => lib_exports2, - checkProperties: () => checkProperties, + base64: () => lib_exports, + checkProperties: () => import_properties28.checkProperties, checkResultErrors: () => checkResultErrors, commify: () => commify, computeAddress: () => computeAddress, computeHmac: () => computeHmac, computePublicKey: () => computePublicKey, - concat: () => import_bytes36.concat, - deepCopy: () => deepCopy, + concat: () => import_bytes33.concat, + deepCopy: () => import_properties28.deepCopy, defaultAbiCoder: () => defaultAbiCoder, defaultPath: () => defaultPath, - defineReadOnly: () => defineReadOnly, + defineReadOnly: () => import_properties28.defineReadOnly, dnsEncode: () => dnsEncode, entropyToMnemonic: () => entropyToMnemonic, fetchJson: () => fetchJson, @@ -172618,29 +229945,29 @@ ${gz(e, r10)}`); formatEther: () => formatEther, formatUnits: () => formatUnits, getAccountPath: () => getAccountPath, - getAddress: () => getAddress, - getContractAddress: () => getContractAddress, - getCreate2Address: () => getCreate2Address, - getIcapAddress: () => getIcapAddress, + getAddress: () => import_address12.getAddress, + getContractAddress: () => import_address12.getContractAddress, + getCreate2Address: () => import_address12.getCreate2Address, + getIcapAddress: () => import_address12.getIcapAddress, getJsonWalletAddress: () => getJsonWalletAddress, - getStatic: () => getStatic, + getStatic: () => import_properties28.getStatic, hashMessage: () => hashMessage, - hexConcat: () => import_bytes36.hexConcat, - hexDataLength: () => import_bytes36.hexDataLength, - hexDataSlice: () => import_bytes36.hexDataSlice, - hexStripZeros: () => import_bytes36.hexStripZeros, - hexValue: () => import_bytes36.hexValue, - hexZeroPad: () => import_bytes36.hexZeroPad, - hexlify: () => import_bytes36.hexlify, + hexConcat: () => import_bytes33.hexConcat, + hexDataLength: () => import_bytes33.hexDataLength, + hexDataSlice: () => import_bytes33.hexDataSlice, + hexStripZeros: () => import_bytes33.hexStripZeros, + hexValue: () => import_bytes33.hexValue, + hexZeroPad: () => import_bytes33.hexZeroPad, + hexlify: () => import_bytes33.hexlify, id: () => id2, - isAddress: () => isAddress, - isBytes: () => import_bytes36.isBytes, - isBytesLike: () => import_bytes36.isBytesLike, - isHexString: () => import_bytes36.isHexString, + isAddress: () => import_address12.isAddress, + isBytes: () => import_bytes33.isBytes, + isBytesLike: () => import_bytes33.isBytesLike, + isHexString: () => import_bytes33.isHexString, isValidMnemonic: () => isValidMnemonic, isValidName: () => isValidName, - joinSignature: () => import_bytes36.joinSignature, - keccak256: () => keccak256, + joinSignature: () => import_bytes33.joinSignature, + keccak256: () => import_keccak25611.keccak256, mnemonicToEntropy: () => mnemonicToEntropy, mnemonicToSeed: () => mnemonicToSeed, namehash: () => namehash, @@ -172653,84 +229980,87 @@ ${gz(e, r10)}`); randomBytes: () => randomBytes, recoverAddress: () => recoverAddress, recoverPublicKey: () => recoverPublicKey, - resolveProperties: () => resolveProperties, + resolveProperties: () => import_properties28.resolveProperties, ripemd160: () => ripemd160, serializeTransaction: () => serialize, sha256: () => sha256, sha512: () => sha512, - shallowCopy: () => shallowCopy, + shallowCopy: () => import_properties28.shallowCopy, shuffled: () => shuffled, - solidityKeccak256: () => keccak2562, + solidityKeccak256: () => keccak25610, solidityPack: () => pack2, soliditySha256: () => sha2562, - splitSignature: () => import_bytes36.splitSignature, - stripZeros: () => import_bytes36.stripZeros, + splitSignature: () => import_bytes33.splitSignature, + stripZeros: () => import_bytes33.stripZeros, toUtf8Bytes: () => import_strings13.toUtf8Bytes, toUtf8CodePoints: () => import_strings13.toUtf8CodePoints, toUtf8String: () => import_strings13.toUtf8String, verifyMessage: () => verifyMessage, verifyTypedData: () => verifyTypedData, - zeroPad: () => import_bytes36.zeroPad + zeroPad: () => import_bytes33.zeroPad }); - var import_bytes36 = __toESM(require_lib2()); - var import_logger43 = __toESM(require_lib()); + var import_address12 = __toESM(require_lib10()); + var import_bytes33 = __toESM(require_lib2()); + var import_keccak25611 = __toESM(require_lib8()); + var import_logger39 = __toESM(require_lib()); // node_modules/@ethersproject/solidity/lib.esm/index.js - var import_bignumber16 = __toESM(require_lib3()); - var import_bytes35 = __toESM(require_lib2()); + var import_bignumber15 = __toESM(require_lib3()); + var import_bytes32 = __toESM(require_lib2()); + var import_keccak25610 = __toESM(require_lib8()); var import_strings12 = __toESM(require_lib6()); - var import_logger41 = __toESM(require_lib()); + var import_logger37 = __toESM(require_lib()); // node_modules/@ethersproject/solidity/lib.esm/_version.js - var version21 = "solidity/5.7.0"; + var version17 = "solidity/5.7.0"; // node_modules/@ethersproject/solidity/lib.esm/index.js var regexBytes = new RegExp("^bytes([0-9]+)$"); var regexNumber = new RegExp("^(u?int)([0-9]*)$"); var regexArray = new RegExp("^(.*)\\[([0-9]*)\\]$"); var Zeros2 = "0000000000000000000000000000000000000000000000000000000000000000"; - var logger40 = new import_logger41.Logger(version21); + var logger36 = new import_logger37.Logger(version17); function _pack(type, value, isArray4) { switch (type) { case "address": if (isArray4) { - return (0, import_bytes35.zeroPad)(value, 32); + return (0, import_bytes32.zeroPad)(value, 32); } - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); case "string": return (0, import_strings12.toUtf8Bytes)(value); case "bytes": - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); case "bool": value = value ? "0x01" : "0x00"; if (isArray4) { - return (0, import_bytes35.zeroPad)(value, 32); + return (0, import_bytes32.zeroPad)(value, 32); } - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); } let match = type.match(regexNumber); if (match) { let size = parseInt(match[2] || "256"); if (match[2] && String(size) !== match[2] || size % 8 !== 0 || size === 0 || size > 256) { - logger40.throwArgumentError("invalid number type", "type", type); + logger36.throwArgumentError("invalid number type", "type", type); } if (isArray4) { size = 256; } - value = import_bignumber16.BigNumber.from(value).toTwos(size); - return (0, import_bytes35.zeroPad)(value, size / 8); + value = import_bignumber15.BigNumber.from(value).toTwos(size); + return (0, import_bytes32.zeroPad)(value, size / 8); } match = type.match(regexBytes); if (match) { const size = parseInt(match[1]); if (String(size) !== match[1] || size === 0 || size > 32) { - logger40.throwArgumentError("invalid bytes type", "type", type); + logger36.throwArgumentError("invalid bytes type", "type", type); } - if ((0, import_bytes35.arrayify)(value).byteLength !== size) { - logger40.throwArgumentError(`invalid value for ${type}`, "value", value); + if ((0, import_bytes32.arrayify)(value).byteLength !== size) { + logger36.throwArgumentError(`invalid value for ${type}`, "value", value); } if (isArray4) { - return (0, import_bytes35.arrayify)((value + Zeros2).substring(0, 66)); + return (0, import_bytes32.arrayify)((value + Zeros2).substring(0, 66)); } return value; } @@ -172739,45 +230069,47 @@ ${gz(e, r10)}`); const baseType = match[1]; const count = parseInt(match[2] || String(value.length)); if (count != value.length) { - logger40.throwArgumentError(`invalid array length for ${type}`, "value", value); + logger36.throwArgumentError(`invalid array length for ${type}`, "value", value); } const result = []; value.forEach(function(value2) { result.push(_pack(baseType, value2, true)); }); - return (0, import_bytes35.concat)(result); + return (0, import_bytes32.concat)(result); } - return logger40.throwArgumentError("invalid type", "type", type); + return logger36.throwArgumentError("invalid type", "type", type); } function pack2(types2, values) { if (types2.length != values.length) { - logger40.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values); + logger36.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values); } const tight = []; types2.forEach(function(type, index) { tight.push(_pack(type, values[index])); }); - return (0, import_bytes35.hexlify)((0, import_bytes35.concat)(tight)); + return (0, import_bytes32.hexlify)((0, import_bytes32.concat)(tight)); } - function keccak2562(types2, values) { - return keccak256(pack2(types2, values)); + function keccak25610(types2, values) { + return (0, import_keccak25610.keccak256)(pack2(types2, values)); } function sha2562(types2, values) { return sha256(pack2(types2, values)); } // node_modules/ethers/lib.esm/utils.js + var import_properties28 = __toESM(require_lib7()); + var RLP2 = __toESM(require_lib9()); var import_strings13 = __toESM(require_lib6()); // node_modules/@ethersproject/units/lib.esm/index.js - var import_bignumber17 = __toESM(require_lib3()); - var import_logger42 = __toESM(require_lib()); + var import_bignumber16 = __toESM(require_lib3()); + var import_logger38 = __toESM(require_lib()); // node_modules/@ethersproject/units/lib.esm/_version.js - var version22 = "units/5.7.0"; + var version18 = "units/5.7.0"; // node_modules/@ethersproject/units/lib.esm/index.js - var logger41 = new import_logger42.Logger(version22); + var logger37 = new import_logger38.Logger(version18); var names = [ "wei", "kwei", @@ -172790,7 +230122,7 @@ ${gz(e, r10)}`); function commify(value) { const comps = String(value).split("."); if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || comps[1] && !comps[1].match(/^[0-9]*$/) || value === "." || value === "-.") { - logger41.throwArgumentError("invalid value", "value", value); + logger37.throwArgumentError("invalid value", "value", value); } let whole = comps[0]; let negative = ""; @@ -172831,11 +230163,11 @@ ${gz(e, r10)}`); unitName = 3 * index; } } - return (0, import_bignumber17.formatFixed)(value, unitName != null ? unitName : 18); + return (0, import_bignumber16.formatFixed)(value, unitName != null ? unitName : 18); } function parseUnits(value, unitName) { if (typeof value !== "string") { - logger41.throwArgumentError("value must be a string", "value", value); + logger37.throwArgumentError("value must be a string", "value", value); } if (typeof unitName === "string") { const index = names.indexOf(unitName); @@ -172843,7 +230175,7 @@ ${gz(e, r10)}`); unitName = 3 * index; } } - return (0, import_bignumber17.parseFixed)(value, unitName != null ? unitName : 18); + return (0, import_bignumber16.parseFixed)(value, unitName != null ? unitName : 18); } function formatEther(wei) { return formatUnits(wei, 18); @@ -172856,13 +230188,13 @@ ${gz(e, r10)}`); var import_strings14 = __toESM(require_lib6()); // node_modules/ethers/lib.esm/ethers.js - var import_logger44 = __toESM(require_lib()); + var import_logger40 = __toESM(require_lib()); // node_modules/ethers/lib.esm/_version.js - var version23 = "ethers/5.7.2"; + var version19 = "ethers/5.7.2"; // node_modules/ethers/lib.esm/ethers.js - var logger42 = new import_logger44.Logger(version23); + var logger38 = new import_logger40.Logger(version19); // node_modules/ethers/lib.esm/index.js try { @@ -174914,7 +232246,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { var outputAmount = inputAmount.toLocaleString("en", { useGrouping: false, minimumFractionDigits: decimals, maximumFractionDigits: decimals }); return outputAmount.startsWith("0.") ? outputAmount.replace("0.", "") : outputAmount.replace(".", ""); }; - var calculateAmount = ({ decimals, amount }) => import_bignumber18.BigNumber.from(transformAmount(decimals, assertAmount(amount))).toString(); + var calculateAmount = ({ decimals, amount }) => import_bignumber17.BigNumber.from(transformAmount(decimals, assertAmount(amount))).toString(); var calculateAmountWithPercentage = ({ amount: oldAmount, decimals }, percentage) => { if (!oldAmount) { return "0"; @@ -175824,7 +233156,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { name: "REEF", address: "0x0000000000000000000000000000000001000000", iconUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/6951.png", - balance: import_bignumber18.BigNumber.from(0), + balance: import_bignumber17.BigNumber.from(0), decimals: 18, symbol: "REEF" }; @@ -175909,6 +233241,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { }; // src/jsApi/swapApi.ts + var import_evm_provider = __toESM(require_evm_provider()); var import_utils4 = __toESM(require_utils3()); var defaultSwapSettings = { deadline: 1, @@ -175942,6 +233275,49 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { } return void 0; }; + var getReefCoinBalance = async (address, provider) => { + const balance = await provider.api.derive.balances.all(address).then((res) => import_bignumber17.BigNumber.from(res.freeBalance.toString(10))); + return balance; + }; + var signerToReefSigner = async (signer, provider, { + address, + name: name6, + source, + genesisHash + }) => { + const evmAddress = await signer.getAddress(); + const isEvmClaimed = await signer.isClaimed(); + let inj; + try { + inj = await V7e.web3FromAddress(address); + } catch (e) { + } + const balance = await getReefCoinBalance(address, provider); + return { + signer, + balance, + evmAddress, + isEvmClaimed, + name: name6, + address, + source, + genesisHash, + sign: inj?.signer + }; + }; + var accountToSigner = async (account, provider, sign4, source) => { + const signer = new import_evm_provider.Signer(provider, account.address, sign4); + return signerToReefSigner( + signer, + provider, + { + source, + address: account.address, + name: account.name || "", + genesisHash: account.genesisHash || "" + } + ); + }; var initApi3 = (signingKey) => { window.swap = { execute: (signerAddress, token1, token2, settings) => { @@ -175964,7 +233340,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { { decimals: token2.decimals, amount: token2.amount }, settings.slippageTolerance ); - const signer = await s9e(reefSigner.address, provider, signingKey); + const { signer } = await accountToSigner(reefSigner, provider, signingKey, "injected"); const swapRouter = new Contract( x7e.getReefswapNetworkConfig(network2).routerAddress, ReefswapRouter, @@ -176000,6 +233376,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { (0, import_utils4.toBN)(582938 * 2), (0, import_utils4.toBN)(64 * 2) ); + console.log("signer.provider.api.tx.utility.batchAll===", Object.keys(signer.provider.api.tx.balances)); const batch = signer.provider.api.tx.utility.batchAll([ approveExtrinsic, tradeExtrinsic @@ -176129,12 +233506,12 @@ query FETCH_TX_INFO { var tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: "; var BASE = 1e14; var LOG_BASE = 14; - var MAX_SAFE_INTEGER2 = 9007199254740991; + var MAX_SAFE_INTEGER = 9007199254740991; var POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13]; var SQRT_BASE = 1e7; var MAX = 1e9; function clone(configObject) { - var div, convertBase, parseNumeric, P = BigNumber19.prototype = { constructor: BigNumber19, toString: null, valueOf: null }, ONE = new BigNumber19(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT2 = { + var div, convertBase, parseNumeric, P = BigNumber18.prototype = { constructor: BigNumber18, toString: null, valueOf: null }, ONE = new BigNumber18(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT2 = { prefix: "", groupSize: 3, secondaryGroupSize: 0, @@ -176144,10 +233521,10 @@ query FETCH_TX_INFO { fractionGroupSeparator: "\xA0", suffix: "" }, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true; - function BigNumber19(v, b) { + function BigNumber18(v, b) { var alphabet4, c, caseChanged, e, i, isNum, len, str2, x = this; - if (!(x instanceof BigNumber19)) - return new BigNumber19(v, b); + if (!(x instanceof BigNumber18)) + return new BigNumber18(v, b); if (b == null) { if (v && v._isBigNumber === true) { x.s = v.s; @@ -176193,7 +233570,7 @@ query FETCH_TX_INFO { } else { intCheck(b, 2, ALPHABET.length, "Base"); if (b == 10 && alphabetHasNormalDecimalDigits) { - x = new BigNumber19(v); + x = new BigNumber18(v); return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); } str2 = String(v); @@ -176201,7 +233578,7 @@ query FETCH_TX_INFO { if (v * 0 != 0) return parseNumeric(x, str2, isNum, b); x.s = 1 / v < 0 ? (str2 = str2.slice(1), -1) : 1; - if (BigNumber19.DEBUG && str2.replace(/^0\.0*|\./, "").length > 15) { + if (BigNumber18.DEBUG && str2.replace(/^0\.0*|\./, "").length > 15) { throw Error(tooManyDigits + v); } } else { @@ -176240,7 +233617,7 @@ query FETCH_TX_INFO { ; if (str2 = str2.slice(i, ++len)) { len -= i; - if (isNum && BigNumber19.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER2 || v !== mathfloor(v))) { + if (isNum && BigNumber18.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER || v !== mathfloor(v))) { throw Error(tooManyDigits + x.s * v); } if ((e = e - i - 1) > MAX_EXP) { @@ -176271,18 +233648,18 @@ query FETCH_TX_INFO { x.c = [x.e = 0]; } } - BigNumber19.clone = clone; - BigNumber19.ROUND_UP = 0; - BigNumber19.ROUND_DOWN = 1; - BigNumber19.ROUND_CEIL = 2; - BigNumber19.ROUND_FLOOR = 3; - BigNumber19.ROUND_HALF_UP = 4; - BigNumber19.ROUND_HALF_DOWN = 5; - BigNumber19.ROUND_HALF_EVEN = 6; - BigNumber19.ROUND_HALF_CEIL = 7; - BigNumber19.ROUND_HALF_FLOOR = 8; - BigNumber19.EUCLID = 9; - BigNumber19.config = BigNumber19.set = function(obj) { + BigNumber18.clone = clone; + BigNumber18.ROUND_UP = 0; + BigNumber18.ROUND_DOWN = 1; + BigNumber18.ROUND_CEIL = 2; + BigNumber18.ROUND_FLOOR = 3; + BigNumber18.ROUND_HALF_UP = 4; + BigNumber18.ROUND_HALF_DOWN = 5; + BigNumber18.ROUND_HALF_EVEN = 6; + BigNumber18.ROUND_HALF_CEIL = 7; + BigNumber18.ROUND_HALF_FLOOR = 8; + BigNumber18.EUCLID = 9; + BigNumber18.config = BigNumber18.set = function(obj) { var p, v; if (obj != null) { if (typeof obj == "object") { @@ -176383,10 +233760,10 @@ query FETCH_TX_INFO { ALPHABET }; }; - BigNumber19.isBigNumber = function(v) { + BigNumber18.isBigNumber = function(v) { if (!v || v._isBigNumber !== true) return false; - if (!BigNumber19.DEBUG) + if (!BigNumber18.DEBUG) return true; var i, n, c = v.c, e = v.e, s = v.s; out: @@ -176415,13 +233792,13 @@ query FETCH_TX_INFO { } throw Error(bignumberError + "Invalid BigNumber: " + v); }; - BigNumber19.maximum = BigNumber19.max = function() { + BigNumber18.maximum = BigNumber18.max = function() { return maxOrMin(arguments, -1); }; - BigNumber19.minimum = BigNumber19.min = function() { + BigNumber18.minimum = BigNumber18.min = function() { return maxOrMin(arguments, 1); }; - BigNumber19.random = function() { + BigNumber18.random = function() { var pow2_53 = 9007199254740992; var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() { return mathfloor(Math.random() * pow2_53); @@ -176429,7 +233806,7 @@ query FETCH_TX_INFO { return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0); }; return function(dp2) { - var a, b, e, k, v, i = 0, c = [], rand2 = new BigNumber19(ONE); + var a, b, e, k, v, i = 0, c = [], rand2 = new BigNumber18(ONE); if (dp2 == null) dp2 = DECIMAL_PLACES; else @@ -176497,8 +233874,8 @@ query FETCH_TX_INFO { return rand2; }; }(); - BigNumber19.sum = function() { - var i = 1, args = arguments, sum = new BigNumber19(args[0]); + BigNumber18.sum = function() { + var i = 1, args = arguments, sum = new BigNumber18(args[0]); for (; i < args.length; ) sum = sum.plus(args[i++]); return sum; @@ -176528,7 +233905,7 @@ query FETCH_TX_INFO { k = POW_PRECISION; POW_PRECISION = 0; str2 = str2.replace(".", ""); - y = new BigNumber19(baseIn); + y = new BigNumber18(baseIn); x = y.pow(str2.length - i); POW_PRECISION = k; y.c = toBaseOut( @@ -176625,11 +234002,11 @@ query FETCH_TX_INFO { return function(x, y, dp2, rm2, base2) { var cmp, e, i, more, n, prod, prodL, q, qc2, rem, remL, rem0, xi2, xL2, yc0, yL2, yz2, s = x.s == y.s ? 1 : -1, xc2 = x.c, yc2 = y.c; if (!xc2 || !xc2[0] || !yc2 || !yc2[0]) { - return new BigNumber19( + return new BigNumber18( !x.s || !y.s || (xc2 ? yc2 && xc2[0] == yc2[0] : !yc2) ? NaN : xc2 && xc2[0] == 0 || !yc2 ? s * 0 : s / 0 ); } - q = new BigNumber19(s); + q = new BigNumber18(s); qc2 = q.c = []; e = x.e - y.e; s = dp2 + e + 1; @@ -176746,7 +234123,7 @@ query FETCH_TX_INFO { str2 = coeffToString(n.c); str2 = id4 == 1 || id4 == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) ? toExponential(str2, ne) : toFixedPoint(str2, ne, "0"); } else { - n = round(new BigNumber19(n), i, rm2); + n = round(new BigNumber18(n), i, rm2); e = n.e; str2 = coeffToString(n.c); len = str2.length; @@ -176775,9 +234152,9 @@ query FETCH_TX_INFO { return n.s < 0 && c02 ? "-" + str2 : str2; } function maxOrMin(args, n) { - var k, y, i = 1, x = new BigNumber19(args[0]); + var k, y, i = 1, x = new BigNumber18(args[0]); for (; i < args.length; i++) { - y = new BigNumber19(args[i]); + y = new BigNumber18(args[i]); if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) { x = y; } @@ -176817,9 +234194,9 @@ query FETCH_TX_INFO { s = s.replace(dotAfter, "$1").replace(dotBefore, "0.$1"); } if (str2 != s) - return new BigNumber19(s, base2); + return new BigNumber18(s, base2); } - if (BigNumber19.DEBUG) { + if (BigNumber18.DEBUG) { throw Error(bignumberError + "Not a" + (b ? " base " + b : "") + " number: " + str2); } x.s = null; @@ -176926,13 +234303,13 @@ query FETCH_TX_INFO { return n.s < 0 ? "-" + str2 : str2; } P.absoluteValue = P.abs = function() { - var x = new BigNumber19(this); + var x = new BigNumber18(this); if (x.s < 0) x.s = 1; return x; }; P.comparedTo = function(y, b) { - return compare(this, new BigNumber19(y, b)); + return compare(this, new BigNumber18(y, b)); }; P.decimalPlaces = P.dp = function(dp2, rm2) { var c, n, v, x = this; @@ -176942,7 +234319,7 @@ query FETCH_TX_INFO { rm2 = ROUNDING_MODE; else intCheck(rm2, 0, 8); - return round(new BigNumber19(x), dp2 + x.e + 1, rm2); + return round(new BigNumber18(x), dp2 + x.e + 1, rm2); } if (!(c = x.c)) return null; @@ -176955,28 +234332,28 @@ query FETCH_TX_INFO { return n; }; P.dividedBy = P.div = function(y, b) { - return div(this, new BigNumber19(y, b), DECIMAL_PLACES, ROUNDING_MODE); + return div(this, new BigNumber18(y, b), DECIMAL_PLACES, ROUNDING_MODE); }; P.dividedToIntegerBy = P.idiv = function(y, b) { - return div(this, new BigNumber19(y, b), 0, 1); + return div(this, new BigNumber18(y, b), 0, 1); }; P.exponentiatedBy = P.pow = function(n, m) { var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y, x = this; - n = new BigNumber19(n); + n = new BigNumber18(n); if (n.c && !n.isInteger()) { throw Error(bignumberError + "Exponent not an integer: " + valueOf(n)); } if (m != null) - m = new BigNumber19(m); + m = new BigNumber18(m); nIsBig = n.e > 14; if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { - y = new BigNumber19(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); + y = new BigNumber18(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); return m ? y.mod(m) : y; } nIsNeg = n.s < 0; if (m) { if (m.c ? !m.c[0] : !m.s) - return new BigNumber19(NaN); + return new BigNumber18(NaN); isModExp = !nIsNeg && x.isInteger() && m.isInteger(); if (isModExp) x = x.mod(m); @@ -176984,12 +234361,12 @@ query FETCH_TX_INFO { k = x.s < 0 && isOdd(n) ? -0 : 0; if (x.e > -1) k = 1 / k; - return new BigNumber19(nIsNeg ? 1 / k : k); + return new BigNumber18(nIsNeg ? 1 / k : k); } else if (POW_PRECISION) { k = mathceil(POW_PRECISION / LOG_BASE + 2); } if (nIsBig) { - half = new BigNumber19(0.5); + half = new BigNumber18(0.5); if (nIsNeg) n.s = 1; nIsOdd = isOdd(n); @@ -176997,7 +234374,7 @@ query FETCH_TX_INFO { i = Math.abs(+valueOf(n)); nIsOdd = i % 2; } - y = new BigNumber19(ONE); + y = new BigNumber18(ONE); for (; ; ) { if (nIsOdd) { y = y.times(x); @@ -177042,7 +234419,7 @@ query FETCH_TX_INFO { return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; }; P.integerValue = function(rm2) { - var n = new BigNumber19(this); + var n = new BigNumber18(this); if (rm2 == null) rm2 = ROUNDING_MODE; else @@ -177050,25 +234427,25 @@ query FETCH_TX_INFO { return round(n, n.e + 1, rm2); }; P.isEqualTo = P.eq = function(y, b) { - return compare(this, new BigNumber19(y, b)) === 0; + return compare(this, new BigNumber18(y, b)) === 0; }; P.isFinite = function() { return !!this.c; }; P.isGreaterThan = P.gt = function(y, b) { - return compare(this, new BigNumber19(y, b)) > 0; + return compare(this, new BigNumber18(y, b)) > 0; }; P.isGreaterThanOrEqualTo = P.gte = function(y, b) { - return (b = compare(this, new BigNumber19(y, b))) === 1 || b === 0; + return (b = compare(this, new BigNumber18(y, b))) === 1 || b === 0; }; P.isInteger = function() { return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; }; P.isLessThan = P.lt = function(y, b) { - return compare(this, new BigNumber19(y, b)) < 0; + return compare(this, new BigNumber18(y, b)) < 0; }; P.isLessThanOrEqualTo = P.lte = function(y, b) { - return (b = compare(this, new BigNumber19(y, b))) === -1 || b === 0; + return (b = compare(this, new BigNumber18(y, b))) === -1 || b === 0; }; P.isNaN = function() { return !this.s; @@ -177084,10 +234461,10 @@ query FETCH_TX_INFO { }; P.minus = function(y, b) { var i, j10, t, xLTy, x = this, a = x.s; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); b = y.s; if (!a || !b) - return new BigNumber19(NaN); + return new BigNumber18(NaN); if (a != b) { y.s = -b; return x.plus(y); @@ -177095,9 +234472,9 @@ query FETCH_TX_INFO { var xe2 = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc2 = x.c, yc2 = y.c; if (!xe2 || !ye) { if (!xc2 || !yc2) - return xc2 ? (y.s = -b, y) : new BigNumber19(yc2 ? x : NaN); + return xc2 ? (y.s = -b, y) : new BigNumber18(yc2 ? x : NaN); if (!xc2[0] || !yc2[0]) { - return yc2[0] ? (y.s = -b, y) : new BigNumber19(xc2[0] ? x : ROUNDING_MODE == 3 ? -0 : 0); + return yc2[0] ? (y.s = -b, y) : new BigNumber18(xc2[0] ? x : ROUNDING_MODE == 3 ? -0 : 0); } } xe2 = bitFloor(xe2); @@ -177155,11 +234532,11 @@ query FETCH_TX_INFO { }; P.modulo = P.mod = function(y, b) { var q, s, x = this; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); if (!x.c || !y.s || y.c && !y.c[0]) { - return new BigNumber19(NaN); + return new BigNumber18(NaN); } else if (!y.c || x.c && !x.c[0]) { - return new BigNumber19(x); + return new BigNumber18(x); } if (MODULO_MODE == 9) { s = y.s; @@ -177176,7 +234553,7 @@ query FETCH_TX_INFO { return y; }; P.multipliedBy = P.times = function(y, b) { - var c, e, i, j10, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc2, base2, sqrtBase, x = this, xc2 = x.c, yc2 = (y = new BigNumber19(y, b)).c; + var c, e, i, j10, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc2, base2, sqrtBase, x = this, xc2 = x.c, yc2 = (y = new BigNumber18(y, b)).c; if (!xc2 || !yc2 || !xc2[0] || !yc2[0]) { if (!x.s || !y.s || xc2 && !xc2[0] && !yc2 || yc2 && !yc2[0] && !xc2) { y.c = y.e = y.s = null; @@ -177229,16 +234606,16 @@ query FETCH_TX_INFO { return normalise(y, zc2, e); }; P.negated = function() { - var x = new BigNumber19(this); + var x = new BigNumber18(this); x.s = -x.s || null; return x; }; P.plus = function(y, b) { var t, x = this, a = x.s; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); b = y.s; if (!a || !b) - return new BigNumber19(NaN); + return new BigNumber18(NaN); if (a != b) { y.s = -b; return x.minus(y); @@ -177246,9 +234623,9 @@ query FETCH_TX_INFO { var xe2 = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc2 = x.c, yc2 = y.c; if (!xe2 || !ye) { if (!xc2 || !yc2) - return new BigNumber19(a / 0); + return new BigNumber18(a / 0); if (!xc2[0] || !yc2[0]) - return yc2[0] ? y : new BigNumber19(xc2[0] ? x : a * 0); + return yc2[0] ? y : new BigNumber18(xc2[0] ? x : a * 0); } xe2 = bitFloor(xe2); ye = bitFloor(ye); @@ -177292,7 +234669,7 @@ query FETCH_TX_INFO { rm2 = ROUNDING_MODE; else intCheck(rm2, 0, 8); - return round(new BigNumber19(x), sd2, rm2); + return round(new BigNumber18(x), sd2, rm2); } if (!(c = x.c)) return null; @@ -177309,13 +234686,13 @@ query FETCH_TX_INFO { return n; }; P.shiftedBy = function(k) { - intCheck(k, -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2); + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); return this.times("1e" + k); }; P.squareRoot = P.sqrt = function() { - var m, n, r10, rep2, t, x = this, c = x.c, s = x.s, e = x.e, dp2 = DECIMAL_PLACES + 4, half = new BigNumber19("0.5"); + var m, n, r10, rep2, t, x = this, c = x.c, s = x.s, e = x.e, dp2 = DECIMAL_PLACES + 4, half = new BigNumber18("0.5"); if (s !== 1 || !c || !c[0]) { - return new BigNumber19(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + return new BigNumber18(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); } s = Math.sqrt(+valueOf(x)); if (s == 0 || s == 1 / 0) { @@ -177330,9 +234707,9 @@ query FETCH_TX_INFO { n = s.toExponential(); n = n.slice(0, n.indexOf("e") + 1) + e; } - r10 = new BigNumber19(n); + r10 = new BigNumber18(n); } else { - r10 = new BigNumber19(s + ""); + r10 = new BigNumber18(s + ""); } if (r10.c[0]) { e = r10.e; @@ -177427,23 +234804,23 @@ query FETCH_TX_INFO { P.toFraction = function(md2) { var d, d02, d12, d22, e, exp, n, n02, n12, q, r10, s, x = this, xc2 = x.c; if (md2 != null) { - n = new BigNumber19(md2); + n = new BigNumber18(md2); if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { throw Error(bignumberError + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n)); } } if (!xc2) - return new BigNumber19(x); - d = new BigNumber19(ONE); - n12 = d02 = new BigNumber19(ONE); - d12 = n02 = new BigNumber19(ONE); + return new BigNumber18(x); + d = new BigNumber18(ONE); + n12 = d02 = new BigNumber18(ONE); + d12 = n02 = new BigNumber18(ONE); s = coeffToString(xc2); e = d.e = s.length - x.e - 1; d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; md2 = !md2 || n.comparedTo(d) > 0 ? e > 0 ? d : n12 : n; exp = MAX_EXP; MAX_EXP = 1 / 0; - n = new BigNumber19(s); + n = new BigNumber18(s); n02.c[0] = 0; for (; ; ) { q = div(n, d, 0, 1); @@ -177490,7 +234867,7 @@ query FETCH_TX_INFO { if (b == null) { str2 = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(coeffToString(n.c), e) : toFixedPoint(coeffToString(n.c), e, "0"); } else if (b === 10 && alphabetHasNormalDecimalDigits) { - n = round(new BigNumber19(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); + n = round(new BigNumber18(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); str2 = toFixedPoint(coeffToString(n.c), n.e, "0"); } else { intCheck(b, 2, ALPHABET.length, "Base"); @@ -177508,8 +234885,8 @@ query FETCH_TX_INFO { P[Symbol.toStringTag] = "BigNumber"; P[Symbol.for("nodejs.util.inspect.custom")] = P.valueOf; if (configObject != null) - BigNumber19.set(configObject); - return BigNumber19; + BigNumber18.set(configObject); + return BigNumber18; } function bitFloor(n) { var i = n | 0; @@ -177580,8 +234957,8 @@ query FETCH_TX_INFO { } return str2; } - var BigNumber18 = clone(); - var bignumber_default = BigNumber18; + var BigNumber17 = clone(); + var bignumber_default = BigNumber17; // src/jsApi/utils/networkUtils.ts var getDexUrl = (network2) => { @@ -178885,7 +236262,7 @@ query FETCH_TX_INFO { isNaN(maxSize) ? -1 : maxSize ]; } - function logger43(origin) { + function logger39(origin) { const type = `${origin.toUpperCase()}:`.padStart(16); const [isDebug, maxSize] = parseEnv(origin.toLowerCase()); return { @@ -178975,9 +236352,9 @@ query FETCH_TX_INFO { } // ../../node_modules/@polkadot/wasm-crypto/node_modules/@polkadot/wasm-crypto-wasm/bytes.js - var import_bytes37 = __toESM(require_bytes(), 1); - var bytes = import_bytes37.bytes; - var sizeUncompressed = import_bytes37.sizeUncompressed; + var import_bytes34 = __toESM(require_bytes(), 1); + var bytes = import_bytes34.bytes; + var sizeUncompressed = import_bytes34.sizeUncompressed; // ../../node_modules/@polkadot/wasm-crypto/node_modules/@polkadot/wasm-crypto-wasm/fflate.js var u82 = Uint8Array; @@ -179546,7 +236923,7 @@ query FETCH_TX_INFO { wasm2.ext_hmac_sha512(8, ...allocU8a(key2), ...allocU8a(data)); return resultU8a(); }); - var keccak2563 = withWasm((wasm2, data) => { + var keccak25612 = withWasm((wasm2, data) => { wasm2.ext_keccak256(8, ...allocU8a(data)); return resultU8a(); }); @@ -180768,11 +238145,11 @@ query FETCH_TX_INFO { } // node_modules/@polkadot/util-crypto/keccak/asU8a.js - var import_js_sha32 = __toESM(require_sha32(), 1); + var import_js_sha3 = __toESM(require_sha32(), 1); function keccakAsU8a(value, bitLength = 256, onlyJs) { const is256 = bitLength === 256; const u8a = u8aToU8a(value); - return isWasmOnly(onlyJs) ? is256 ? keccak2563(u8a) : keccak512(u8a) : new Uint8Array(is256 ? import_js_sha32.default.keccak256.update(u8a).arrayBuffer() : import_js_sha32.default.keccak512.update(u8a).arrayBuffer()); + return isWasmOnly(onlyJs) ? is256 ? keccak25612(u8a) : keccak512(u8a) : new Uint8Array(is256 ? import_js_sha3.default.keccak256.update(u8a).arrayBuffer() : import_js_sha3.default.keccak512.update(u8a).arrayBuffer()); } var keccak256AsU8a = createBitHasher(256, keccakAsU8a); var keccak512AsU8a = createBitHasher(512, keccakAsU8a); @@ -183205,7 +240582,7 @@ zoo`.split("\n"); } // node_modules/@polkadot/util-crypto/scrypt/encode.js - var import_scryptsy = __toESM(require_lib7(), 1); + var import_scryptsy = __toESM(require_lib12(), 1); // node_modules/@polkadot/util-crypto/scrypt/defaults.js var DEFAULT_PARAMS = { @@ -184773,7 +242150,7 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types-codec/base/Vec.js var MAX_LENGTH = 64 * 1024; - var l = logger43("Vec"); + var l = logger39("Vec"); function decodeVecLength(value) { if (Array.isArray(value)) { return [value, value.length, 0]; @@ -185208,7 +242585,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types-codec/extended/Map.js - var l10 = logger43("Map"); + var l10 = logger39("Map"); function decodeMapFromU8a(registry, KeyClass, ValClass, u8a) { const output4 = /* @__PURE__ */ new Map(); const [offset, count] = compactFromU8aLim(u8a); @@ -185347,7 +242724,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types-codec/extended/BTreeSet.js - var l11 = logger43("BTreeSet"); + var l11 = logger39("BTreeSet"); function decodeSetFromU8a(registry, ValClass, u8a) { const output4 = /* @__PURE__ */ new Set(); const [offset, count] = compactFromU8aLim(u8a); @@ -186721,8 +244098,8 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types-create/util/xcm.js var XCM_MAPPINGS = ["AssetInstance", "Fungibility", "Junction", "Junctions", "MultiAsset", "MultiAssetFilter", "MultiLocation", "Response", "WildFungibility", "WildMultiAsset", "Xcm", "XcmError", "XcmOrder"]; - function mapXcmTypes(version27) { - return XCM_MAPPINGS.reduce((all, key2) => objectSpread2(all, { [key2]: `${key2}${version27}` }), {}); + function mapXcmTypes(version23) { + return XCM_MAPPINGS.reduce((all, key2) => objectSpread2(all, { [key2]: `${key2}${version23}` }), {}); } // ../../node_modules/@polkadot/types-known/chain/index.js @@ -189695,7 +247072,7 @@ zoo`.split("\n"); // src/jsApi/background/Signer.ts var sendRequest; var nextId = 0; - var Signer2 = class { + var Signer5 = class { constructor(_sendRequest) { sendRequest = _sendRequest; } @@ -199903,7 +257280,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types/metadata/PortableRegistry/PortableRegistry.js - var l12 = logger43("PortableRegistry"); + var l12 = logger39("PortableRegistry"); var TYPE_UNWRAP = { toNumber: () => -1 }; var PRIMITIVE_ALIAS = { Char: "u32", @@ -200653,7 +258030,7 @@ zoo`.split("\n"); } // ../../node_modules/@polkadot/types/metadata/util/validateTypes.js - var l13 = logger43("metadata"); + var l13 = logger39("metadata"); function validateTypes(registry, throwError, types2) { const missing = flattenUniq(extractTypes(types2)).filter((type) => !registry.hasType(type) && !registry.isLookupType(type)).sort(); if (missing.length !== 0) { @@ -203662,7 +261039,7 @@ zoo`.split("\n"); var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8); // ../../node_modules/@polkadot/util-crypto/keccak/asU8a.js - var keccakAsU8a2 = /* @__PURE__ */ createDualHasher({ 256: keccak2563, 512: keccak512 }, { 256: keccak_256, 512: keccak_512 }); + var keccakAsU8a2 = /* @__PURE__ */ createDualHasher({ 256: keccak25612, 512: keccak512 }, { 256: keccak_256, 512: keccak_512 }); // ../../node_modules/@polkadot/util-crypto/secp256k1/expand.js function secp256k1Expand3(publicKey, onlyJs) { @@ -204069,25 +261446,25 @@ zoo`.split("\n"); "ExtrinsicUnknown", "ExtrinsicV4" ]; - function newFromValue(registry, value, version27) { + function newFromValue(registry, value, version23) { if (value instanceof GenericExtrinsic) { return value.unwrap(); } - const isSigned = (version27 & BIT_SIGNED) === BIT_SIGNED; - const type = VERSIONS[version27 & UNMASK_VERSION] || VERSIONS[0]; - return registry.createTypeUnsafe(type, [value, { isSigned, version: version27 }]); + const isSigned = (version23 & BIT_SIGNED) === BIT_SIGNED; + const type = VERSIONS[version23 & UNMASK_VERSION] || VERSIONS[0]; + return registry.createTypeUnsafe(type, [value, { isSigned, version: version23 }]); } - function decodeExtrinsic(registry, value, version27 = DEFAULT_VERSION) { + function decodeExtrinsic(registry, value, version23 = DEFAULT_VERSION) { if (isU8a2(value) || Array.isArray(value) || isHex2(value)) { - return decodeU8a3(registry, u8aToU8a2(value), version27); + return decodeU8a3(registry, u8aToU8a2(value), version23); } else if (value instanceof registry.createClassUnsafe("Call")) { - return newFromValue(registry, { method: value }, version27); + return newFromValue(registry, { method: value }, version23); } - return newFromValue(registry, value, version27); + return newFromValue(registry, value, version23); } - function decodeU8a3(registry, value, version27) { + function decodeU8a3(registry, value, version23) { if (!value.length) { - return newFromValue(registry, new Uint8Array(), version27); + return newFromValue(registry, new Uint8Array(), version23); } const [offset, length] = compactFromU8a(value); const total = offset + length.toNumber(); @@ -204169,8 +261546,8 @@ zoo`.split("\n"); }; var GenericExtrinsic = class extends ExtrinsicBase { __internal__hashCache; - constructor(registry, value, { version: version27 } = {}) { - super(registry, decodeExtrinsic(registry, value, version27)); + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsic(registry, value, version23)); } get hash() { if (!this.__internal__hashCache) { @@ -204383,15 +261760,15 @@ zoo`.split("\n"); "ExtrinsicPayloadUnknown", "ExtrinsicPayloadV4" ]; - function decodeExtrinsicPayload(registry, value, version27 = DEFAULT_VERSION) { + function decodeExtrinsicPayload(registry, value, version23 = DEFAULT_VERSION) { if (value instanceof GenericExtrinsicPayload) { return value.unwrap(); } - return registry.createTypeUnsafe(VERSIONS2[version27] || VERSIONS2[0], [value, { version: version27 }]); + return registry.createTypeUnsafe(VERSIONS2[version23] || VERSIONS2[0], [value, { version: version23 }]); } var GenericExtrinsicPayload = class extends AbstractBase { - constructor(registry, value, { version: version27 } = {}) { - super(registry, decodeExtrinsicPayload(registry, value, version27)); + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsicPayload(registry, value, version23)); } get blockHash() { return this.inner.blockHash; @@ -204448,17 +261825,17 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types/extrinsic/ExtrinsicPayloadUnknown.js var GenericExtrinsicPayloadUnknown = class extends Struct { - constructor(registry, _value, { version: version27 = 0 } = {}) { + constructor(registry, _value, { version: version23 = 0 } = {}) { super(registry, {}); - throw new Error(`Unsupported extrinsic payload version ${version27}`); + throw new Error(`Unsupported extrinsic payload version ${version23}`); } }; // ../../node_modules/@polkadot/types/extrinsic/ExtrinsicUnknown.js var GenericExtrinsicUnknown = class extends Struct { - constructor(registry, _value, { isSigned = false, version: version27 = 0 } = {}) { + constructor(registry, _value, { isSigned = false, version: version23 = 0 } = {}) { super(registry, {}); - throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version27 & UNMASK_VERSION}`); + throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version23 & UNMASK_VERSION}`); } }; @@ -205919,14 +263296,14 @@ zoo`.split("\n"); prefix }]); } - function convertExtrinsic(registry, { signedExtensions, version: version27 }) { + function convertExtrinsic(registry, { signedExtensions, version: version23 }) { return registry.createTypeUnsafe("ExtrinsicMetadataV14", [{ signedExtensions: signedExtensions.map((identifier) => ({ identifier, type: 0 })), type: 0, - version: version27 + version: version23 }]); } function createPallet(specs, registry, mod3, { calls, constants: constants2, errors: errors2, events, storage }) { @@ -206013,22 +263390,22 @@ zoo`.split("\n"); metadata: "MetadataAll" }, value); } - __internal__assertVersion = (version27) => { - if (this.version > version27) { - throw new Error(`Cannot convert metadata from version ${this.version} to ${version27}`); + __internal__assertVersion = (version23) => { + if (this.version > version23) { + throw new Error(`Cannot convert metadata from version ${this.version} to ${version23}`); } - return this.version === version27; + return this.version === version23; }; - __internal__getVersion = (version27, fromPrev) => { - if (version27 !== "latest" && this.__internal__assertVersion(version27)) { - const asCurr = `asV${version27}`; + __internal__getVersion = (version23, fromPrev) => { + if (version23 !== "latest" && this.__internal__assertVersion(version23)) { + const asCurr = `asV${version23}`; return this.__internal__metadata()[asCurr]; } - if (!this.__internal__converted.has(version27)) { - const asPrev = version27 === "latest" ? `asV${LATEST_VERSION}` : `asV${version27 - 1}`; - this.__internal__converted.set(version27, fromPrev(this.registry, this[asPrev], this.version)); + if (!this.__internal__converted.has(version23)) { + const asPrev = version23 === "latest" ? `asV${LATEST_VERSION}` : `asV${version23 - 1}`; + this.__internal__converted.set(version23, fromPrev(this.registry, this[asPrev], this.version)); } - return this.__internal__converted.get(version27); + return this.__internal__converted.get(version23); }; __internal__metadata = () => { return this.getT("metadata"); @@ -206123,7 +263500,7 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types/create/registry.js var DEFAULT_FIRST_CALL_IDX = new Uint8Array(2); - var l14 = logger43("registry"); + var l14 = logger39("registry"); function sortDecimalStrings(a, b) { return parseInt(a, 10) - parseInt(b, 10); } @@ -206147,13 +263524,13 @@ zoo`.split("\n"); function getVariantStringIdx({ index }) { return index.toString(); } - function injectErrors(_, { lookup, pallets }, version27, result) { + function injectErrors(_, { lookup, pallets }, version23, result) { clearRecord(result); for (let i = 0, count = pallets.length; i < count; i++) { const { errors: errors2, index, name: name6 } = pallets[i]; if (errors2.isSome) { const sectionName = stringCamelCase(name6); - lazyMethod(result, version27 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, errors2.unwrap(), getVariantStringIdx, ({ docs, fields, index: index2, name: name7 }) => ({ + lazyMethod(result, version23 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, errors2.unwrap(), getVariantStringIdx, ({ docs, fields, index: index2, name: name7 }) => ({ args: getFieldArgs(lookup, fields), docs: docs.map(valueToString), fields, @@ -206165,12 +263542,12 @@ zoo`.split("\n"); } } } - function injectEvents(registry, { lookup, pallets }, version27, result) { + function injectEvents(registry, { lookup, pallets }, version23, result) { const filtered = pallets.filter(filterEventsSome); clearRecord(result); for (let i = 0, count = filtered.length; i < count; i++) { const { events, index, name: name6 } = filtered[i]; - lazyMethod(result, version27 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, events.unwrap(), getVariantStringIdx, (variant) => { + lazyMethod(result, version23 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, events.unwrap(), getVariantStringIdx, (variant) => { const meta2 = registry.createType("EventMetadataLatest", objectSpread2({}, variant, { args: getFieldArgs(lookup, variant.fields) })); return class extends GenericEventData { constructor(registry2, value) { @@ -206180,13 +263557,13 @@ zoo`.split("\n"); })); } } - function injectExtrinsics(registry, { lookup, pallets }, version27, result, mapping2) { + function injectExtrinsics(registry, { lookup, pallets }, version23, result, mapping2) { const filtered = pallets.filter(filterCallsSome); clearRecord(result); clearRecord(mapping2); for (let i = 0, count = filtered.length; i < count; i++) { const { calls, index, name: name6 } = filtered[i]; - const sectionIndex = version27 >= 12 ? index.toNumber() : i; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; const sectionName = stringCamelCase(name6); const allCalls = calls.unwrap(); lazyMethod(result, sectionIndex, () => lazyVariants(lookup, allCalls, getVariantStringIdx, (variant) => createCallFunction(registry, lookup, variant, sectionName, sectionIndex))); @@ -206774,9 +264151,9 @@ zoo`.split("\n"); this.createFromUri(suri, meta2, type) ); } - createFromJson({ address, encoded, encoding: { content, type, version: version27 }, meta: meta2 }, ignoreChecksum) { - assert2(version27 !== "3" || content[0] === "pkcs8", () => `Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); - const cryptoType = version27 === "0" || !Array.isArray(content) ? this.type : content[1]; + createFromJson({ address, encoded, encoding: { content, type, version: version23 }, meta: meta2 }, ignoreChecksum) { + assert2(version23 !== "3" || content[0] === "pkcs8", () => `Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; const encType = !Array.isArray(type) ? [type] : type; assert2(["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType), () => `Unknown crypto type ${cryptoType}`); const publicKey = isHex(address) ? hexToU8a(address) : this.decodeAddress(address, ignoreChecksum); @@ -211183,7 +268560,7 @@ zoo`.split("\n"); // node_modules/@polkadot/keyring/node_modules/@polkadot/util-crypto/keccak/asU8a.js var keccakAsU8a3 = createDualHasher2({ - 256: keccak2563, + 256: keccak25612, 512: keccak512 }, { 256: keccak_2562, @@ -212226,14 +269603,14 @@ zoo`.split("\n"); encoding: { content, type, - version: version27 + version: version23 }, meta: meta2 }, ignoreChecksum) { - if (version27 === "3" && content[0] !== "pkcs8") { + if (version23 === "3" && content[0] !== "pkcs8") { throw new Error(`Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); } - const cryptoType = version27 === "0" || !Array.isArray(content) ? this.type : content[1]; + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; const encType = !Array.isArray(type) ? [type] : type; if (!["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType)) { throw new Error(`Unknown crypto type ${cryptoType}`); @@ -215387,7 +272764,7 @@ zoo`.split("\n"); }; function getFlutterSigningKey(flutterJS) { let sendRequest2 = getSignatureSendRequest(flutterJS); - return new Signer2(sendRequest2); + return new Signer5(sendRequest2); } // ../../node_modules/@firebase/util/dist/index.esm2017.js @@ -216055,7 +273432,7 @@ zoo`.split("\n"); throw new Error(`Attempted to log a message with an invalid logType (value: ${logType})`); } }; - var Logger45 = class { + var Logger41 = class { constructor(name6) { this.name = name6; this._logLevel = defaultLogLevel; @@ -216256,8 +273633,8 @@ zoo`.split("\n"); var unwrap = (value) => reverseTransformCache.get(value); // ../../node_modules/idb/build/index.js - function openDB(name6, version27, { blocked, upgrade, blocking, terminated } = {}) { - const request = indexedDB.open(name6, version27); + function openDB(name6, version23, { blocked, upgrade, blocking, terminated } = {}) { + const request = indexedDB.open(name6, version23); const openPromise = wrap(request); if (upgrade) { request.addEventListener("upgradeneeded", (event) => { @@ -216338,7 +273715,7 @@ zoo`.split("\n"); } var name$p = "@firebase/app"; var version$1 = "0.10.6"; - var logger44 = new Logger45("@firebase/app"); + var logger40 = new Logger41("@firebase/app"); var name$o = "@firebase/app-compat"; var name$n = "@firebase/analytics-compat"; var name$m = "@firebase/analytics"; @@ -216401,13 +273778,13 @@ zoo`.split("\n"); try { app.container.addComponent(component); } catch (e) { - logger44.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e); + logger40.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e); } } function _registerComponent(component) { const componentName = component.name; if (_components.has(componentName)) { - logger44.debug(`There were multiple attempts to register component ${componentName}.`); + logger40.debug(`There were multiple attempts to register component ${componentName}.`); return false; } _components.set(componentName, component); @@ -216531,17 +273908,17 @@ zoo`.split("\n"); } return app; } - function registerVersion(libraryKeyOrName, version27, variant) { + function registerVersion(libraryKeyOrName, version23, variant) { var _a2; let library = (_a2 = PLATFORM_LOG_STRING[libraryKeyOrName]) !== null && _a2 !== void 0 ? _a2 : libraryKeyOrName; if (variant) { library += `-${variant}`; } const libraryMismatch = library.match(/\s|\//); - const versionMismatch = version27.match(/\s|\//); + const versionMismatch = version23.match(/\s|\//); if (libraryMismatch || versionMismatch) { const warning = [ - `Unable to register library "${library}" with version "${version27}":` + `Unable to register library "${library}" with version "${version23}":` ]; if (libraryMismatch) { warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`); @@ -216550,12 +273927,12 @@ zoo`.split("\n"); warning.push("and"); } if (versionMismatch) { - warning.push(`version name "${version27}" contains illegal characters (whitespace or "/")`); + warning.push(`version name "${version23}" contains illegal characters (whitespace or "/")`); } - logger44.warn(warning.join(" ")); + logger40.warn(warning.join(" ")); return; } - _registerComponent(new Component(`${library}-version`, () => ({ library, version: version27 }), "VERSION")); + _registerComponent(new Component(`${library}-version`, () => ({ library, version: version23 }), "VERSION")); } var DB_NAME = "firebase-heartbeat-database"; var DB_VERSION = 1; @@ -216591,12 +273968,12 @@ zoo`.split("\n"); return result; } catch (e) { if (e instanceof FirebaseError) { - logger44.warn(e.message); + logger40.warn(e.message); } else { const idbGetError = ERROR_FACTORY.create("idb-get", { originalErrorMessage: e === null || e === void 0 ? void 0 : e.message }); - logger44.warn(idbGetError.message); + logger40.warn(idbGetError.message); } } } @@ -216609,12 +273986,12 @@ zoo`.split("\n"); await tx2.done; } catch (e) { if (e instanceof FirebaseError) { - logger44.warn(e.message); + logger40.warn(e.message); } else { const idbGetError = ERROR_FACTORY.create("idb-set", { originalErrorMessage: e === null || e === void 0 ? void 0 : e.message }); - logger44.warn(idbGetError.message); + logger40.warn(idbGetError.message); } } } @@ -216782,14 +274159,14 @@ zoo`.split("\n"); // ../../node_modules/firebase/app/dist/esm/index.esm.js var name3 = "firebase"; - var version24 = "10.12.3"; - registerVersion(name3, version24, "app"); + var version20 = "10.12.3"; + registerVersion(name3, version20, "app"); // ../../node_modules/@firebase/installations/dist/esm/index.esm2017.js var name4 = "@firebase/installations"; - var version25 = "0.6.8"; + var version21 = "0.6.8"; var PENDING_TIMEOUT_MS = 1e4; - var PACKAGE_VERSION = `w:${version25}`; + var PACKAGE_VERSION = `w:${version21}`; var INTERNAL_AUTH_VERSION = "FIS_v2"; var INSTALLATIONS_API_URL = "https://firebaseinstallations.googleapis.com/v1"; var TOKEN_EXPIRATION_BUFFER = 60 * 60 * 1e3; @@ -217312,8 +274689,8 @@ zoo`.split("\n"); _registerComponent(new Component(INSTALLATIONS_NAME_INTERNAL, internalFactory, "PRIVATE")); } registerInstallations(); - registerVersion(name4, version25); - registerVersion(name4, version25, "esm2017"); + registerVersion(name4, version21); + registerVersion(name4, version21, "esm2017"); // ../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js var ANALYTICS_TYPE = "analytics"; @@ -217322,7 +274699,7 @@ zoo`.split("\n"); var FETCH_TIMEOUT_MILLIS = 60 * 1e3; var DYNAMIC_CONFIG_URL = "https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig"; var GTAG_URL = "https://www.googletagmanager.com/gtag/js"; - var logger45 = new Logger45("@firebase/analytics"); + var logger41 = new Logger41("@firebase/analytics"); var ERRORS2 = { ["already-exists"]: "A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.", ["already-initialized"]: "initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.", @@ -217343,7 +274720,7 @@ zoo`.split("\n"); const err = ERROR_FACTORY3.create("invalid-gtag-resource", { gtagURL: url }); - logger45.warn(err.message); + logger41.warn(err.message); return ""; } return url; @@ -217390,7 +274767,7 @@ zoo`.split("\n"); } } } catch (e) { - logger45.error(e); + logger41.error(e); } gtagCore("config", measurementId, gtagParams); } @@ -217420,7 +274797,7 @@ zoo`.split("\n"); await Promise.all(initializationPromisesToWaitFor); gtagCore("event", measurementId, gtagParams || {}); } catch (e) { - logger45.error(e); + logger41.error(e); } } function wrapGtag(gtagCore, initializationPromisesMap2, dynamicConfigPromisesList2, measurementIdToAppId2) { @@ -217445,7 +274822,7 @@ zoo`.split("\n"); gtagCore(command, ...args); } } catch (e) { - logger45.error(e); + logger41.error(e); } } return gtagWrapper; @@ -217552,7 +274929,7 @@ zoo`.split("\n"); await setAbortableTimeout(signal, throttleEndTimeMillis); } catch (e) { if (measurementId) { - logger45.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${e === null || e === void 0 ? void 0 : e.message}]`); + logger41.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${e === null || e === void 0 ? void 0 : e.message}]`); return { appId, measurementId }; } throw e; @@ -217566,7 +274943,7 @@ zoo`.split("\n"); if (!isRetriableError(error)) { retryData.deleteThrottleMetadata(appId); if (measurementId) { - logger45.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${error === null || error === void 0 ? void 0 : error.message}]`); + logger41.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${error === null || error === void 0 ? void 0 : error.message}]`); return { appId, measurementId }; } else { throw e; @@ -217578,7 +274955,7 @@ zoo`.split("\n"); backoffCount: backoffCount + 1 }; retryData.setThrottleMetadata(appId, throttleMetadata); - logger45.debug(`Calling attemptFetch again in ${backoffMillis} millis`); + logger41.debug(`Calling attemptFetch again in ${backoffMillis} millis`); return attemptFetchDynamicConfigWithRetry(appFields, throttleMetadata, signal, retryData); } } @@ -217632,7 +275009,7 @@ zoo`.split("\n"); } async function validateIndexedDB() { if (!isIndexedDBAvailable()) { - logger45.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { + logger41.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { errorInfo: "IndexedDB is not available in this environment." }).message); return false; @@ -217640,7 +275017,7 @@ zoo`.split("\n"); try { await validateIndexedDBOpenable(); } catch (e) { - logger45.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { + logger41.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { errorInfo: e === null || e === void 0 ? void 0 : e.toString() }).message); return false; @@ -217654,9 +275031,9 @@ zoo`.split("\n"); dynamicConfigPromise.then((config7) => { measurementIdToAppId2[config7.measurementId] = config7.appId; if (app.options.measurementId && config7.measurementId !== app.options.measurementId) { - logger45.warn(`The measurement ID in the local Firebase config (${app.options.measurementId}) does not match the measurement ID fetched from the server (${config7.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`); + logger41.warn(`The measurement ID in the local Firebase config (${app.options.measurementId}) does not match the measurement ID fetched from the server (${config7.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`); } - }).catch((e) => logger45.error(e)); + }).catch((e) => logger41.error(e)); dynamicConfigPromisesList2.push(dynamicConfigPromise); const fidPromise = validateIndexedDB().then((envIsValid) => { if (envIsValid) { @@ -217720,7 +275097,7 @@ zoo`.split("\n"); const err = ERROR_FACTORY3.create("invalid-analytics-context", { errorInfo: details }); - logger45.warn(err.message); + logger41.warn(err.message); } } function factory(app, installations, options) { @@ -217731,7 +275108,7 @@ zoo`.split("\n"); } if (!app.options.apiKey) { if (app.options.measurementId) { - logger45.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${app.options.measurementId} provided in the "measurementId" field in the local Firebase config.`); + logger41.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${app.options.measurementId} provided in the "measurementId" field in the local Firebase config.`); } else { throw ERROR_FACTORY3.create("no-api-key"); } @@ -217775,10 +275152,10 @@ zoo`.split("\n"); } function logEvent(analyticsInstance, eventName, eventParams, options) { analyticsInstance = getModularInstance(analyticsInstance); - logEvent$1(wrappedGtagFunction, initializationPromisesMap[analyticsInstance.app.options.appId], eventName, eventParams, options).catch((e) => logger45.error(e)); + logEvent$1(wrappedGtagFunction, initializationPromisesMap[analyticsInstance.app.options.appId], eventName, eventParams, options).catch((e) => logger41.error(e)); } var name5 = "@firebase/analytics"; - var version26 = "0.10.5"; + var version22 = "0.10.5"; function registerAnalytics() { _registerComponent(new Component(ANALYTICS_TYPE, (container, { options: analyticsOptions }) => { const app = container.getProvider("app").getImmediate(); @@ -217786,8 +275163,8 @@ zoo`.split("\n"); return factory(app, installations, analyticsOptions); }, "PUBLIC")); _registerComponent(new Component("analytics-internal", internalFactory2, "PRIVATE")); - registerVersion(name5, version26); - registerVersion(name5, version26, "esm2017"); + registerVersion(name5, version22); + registerVersion(name5, version22, "esm2017"); function internalFactory2(container) { try { const analytics = container.getProvider(ANALYTICS_TYPE).getImmediate(); diff --git a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts index cac2a485..f9e8f8a2 100644 --- a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts +++ b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts @@ -1,13 +1,15 @@ import { reefState ,network as nw, getAccountSigner} from '@reef-chain/util-lib'; import { switchMap, take } from "rxjs/operators"; -import { Contract} from "ethers"; +import { BigNumber, Contract} from "ethers"; import { ReefswapRouter } from "./abi/ReefswapRouter"; import { Observable, combineLatest, firstValueFrom } from "rxjs"; import { calculateAmount, calculateAmountWithPercentage, calculateDeadline, getInputAmount, getOutputAmount } from "./utils/math"; import { approveTokenAmount, getREEF20Contract } from './utils/tokenUtils'; import { getPoolReserves } from './utils/poolUtils'; import Signer from "./background/Signer"; +import { Signer as ReefSigner } from '@reef-chain/evm-provider'; import { toBN } from '@reef-chain/evm-provider/utils'; +import { extension as extReef } from '@reef-chain/util-lib'; interface SwapSettings { deadline: number; @@ -52,6 +54,64 @@ const captureError = (events: Event[]): string|undefined => { return undefined; }; + const getReefCoinBalance = async ( + address: string, + provider: any, + ): Promise => { + const balance = await provider.api.derive.balances + .all(address as any) + .then((res: any) => BigNumber.from(res.freeBalance.toString(10))); + return balance; + }; + + const signerToReefSigner = async ( + signer: ReefSigner, + provider: any, + { + address, name, source, genesisHash, + }: any, + ): Promise => { + const evmAddress = await signer.getAddress(); + const isEvmClaimed = await signer.isClaimed(); + let inj; + try { + inj = await extReef.web3FromAddress(address); + } catch (e) { + // when web3Enable() is not called before + } + const balance = await getReefCoinBalance(address, provider); + return { + signer, + balance, + evmAddress, + isEvmClaimed, + name, + address, + source, + genesisHash: genesisHash!, + sign: inj?.signer, + }; + }; + + const accountToSigner = async ( + account: any, + provider: any, + sign: any, + source: string, + ): Promise => { + const signer = new ReefSigner(provider, account.address, sign); + return signerToReefSigner( + signer, + provider, + { + source, + address: account.address, + name: account.name || '', + genesisHash: account.genesisHash || '', + }, + ); + }; + export const initApi = (signingKey: Signer) => { (window as any).swap = { // Executes a swap @@ -79,8 +139,8 @@ export const initApi = (signingKey: Signer) => { { decimals: token2.decimals, amount: token2.amount }, settings.slippageTolerance ); - - const signer = await getAccountSigner(reefSigner.address, provider, signingKey); + const {signer} = await accountToSigner(reefSigner, provider, signingKey,"injected"); + const swapRouter = new Contract( nw.getReefswapNetworkConfig(network).routerAddress, @@ -131,6 +191,7 @@ export const initApi = (signingKey: Signer) => { toBN(64 * 2), // hardcoded storage estimation, multiply by 2 as a safety margin ); + console.log("signer.provider.api.tx.utility.batchAll===",Object.keys(signer.provider.api.tx.balances)) // Batching extrinsics const batch = signer.provider.api.tx.utility.batchAll([ approveExtrinsic, From dfeb19c546ccd6ade760cb6401ff5cdb3549e0b0 Mon Sep 17 00:00:00 2001 From: Anukul Pandey Date: Thu, 1 Aug 2024 13:06:19 +0530 Subject: [PATCH 3/5] feat: complete --- lib/js/packages/reef-mobile-js/dist/index.js | 1 - lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/js/packages/reef-mobile-js/dist/index.js b/lib/js/packages/reef-mobile-js/dist/index.js index b70afda4..c41cefb2 100644 --- a/lib/js/packages/reef-mobile-js/dist/index.js +++ b/lib/js/packages/reef-mobile-js/dist/index.js @@ -233376,7 +233376,6 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { (0, import_utils4.toBN)(582938 * 2), (0, import_utils4.toBN)(64 * 2) ); - console.log("signer.provider.api.tx.utility.batchAll===", Object.keys(signer.provider.api.tx.balances)); const batch = signer.provider.api.tx.utility.batchAll([ approveExtrinsic, tradeExtrinsic diff --git a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts index f9e8f8a2..a8906830 100644 --- a/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts +++ b/lib/js/packages/reef-mobile-js/src/jsApi/swapApi.ts @@ -191,7 +191,6 @@ export const initApi = (signingKey: Signer) => { toBN(64 * 2), // hardcoded storage estimation, multiply by 2 as a safety margin ); - console.log("signer.provider.api.tx.utility.batchAll===",Object.keys(signer.provider.api.tx.balances)) // Batching extrinsics const batch = signer.provider.api.tx.utility.batchAll([ approveExtrinsic, From e845d33ee71407869d5594115723fbce4d83c9a1 Mon Sep 17 00:00:00 2001 From: matjazonline Date: Thu, 8 Aug 2024 11:56:52 +0200 Subject: [PATCH 4/5] build js --- lib/js/packages/dApp-js/dist/index.js | 22132 +++--- lib/js/packages/reef-mobile-js/dist/index.js | 62900 ++++++++++++++++- lib/js/yarn.lock | 776 +- 3 files changed, 71597 insertions(+), 14211 deletions(-) diff --git a/lib/js/packages/dApp-js/dist/index.js b/lib/js/packages/dApp-js/dist/index.js index e59c8199..11e2f356 100644 --- a/lib/js/packages/dApp-js/dist/index.js +++ b/lib/js/packages/dApp-js/dist/index.js @@ -124,20 +124,20 @@ // ../../node_modules/@reef-chain/util-lib/dist/module/util-lib.mjs var import_meta = {}; - var Pj = Object.defineProperty; - var kj = (t, e, r) => e in t ? Pj(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var re = (t, e, r) => (kj(t, typeof e != "symbol" ? e + "" : e, r), r); - var G2 = (t, e, r) => { + var Rj = Object.defineProperty; + var Cj = (t, e, r) => e in t ? Rj(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var re = (t, e, r) => (Cj(t, typeof e != "symbol" ? e + "" : e, r), r); + var W2 = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; - var he = (t, e, r) => (G2(t, e, "read from private field"), r ? r.call(t) : e.get(t)); + var he = (t, e, r) => (W2(t, e, "read from private field"), r ? r.call(t) : e.get(t)); var Vt = (t, e, r) => { if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }; - var Nt = (t, e, r, n) => (G2(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r); + var Nt = (t, e, r, n) => (W2(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r); var q0 = (t, e, r, n) => ({ set _(i) { Nt(t, e, i, r); @@ -146,25 +146,25 @@ return he(t, e, n); } }); - var At = (t, e, r) => (G2(t, e, "access private method"), r); - var b3 = function(t, e) { - return b3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { + var At = (t, e, r) => (W2(t, e, "access private method"), r); + var y3 = function(t, e) { + return y3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { r.__proto__ = n; } || function(r, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]); - }, b3(t, e); + }, y3(t, e); }; function ln(t, e) { if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); - b3(t, e); + y3(t, e); function r() { this.constructor = t; } t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r()); } - function Rj(t, e, r, n) { + function Dj(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -191,7 +191,7 @@ u((n = n.apply(t, e || [])).next()); }); } - function wv(t, e) { + function bv(t, e) { var r = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -256,7 +256,7 @@ return { value: u[0] ? u[1] : void 0, done: true }; } } - function Hi(t) { + function Fi(t) { var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0; if (r) return r.call(t); @@ -297,7 +297,7 @@ function df(t) { return this instanceof df ? (this.v = t, this) : new df(t); } - function Cj(t, e, r) { + function Lj(t, e, r) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var n = r.apply(t, e || []), i, s = []; @@ -336,11 +336,11 @@ E(_), s.shift(), s.length && c(s[0][0], s[0][1]); } } - function Dj(t) { + function Bj(t) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var e = t[Symbol.asyncIterator], r; - return e ? e.call(t) : (t = typeof Hi == "function" ? Hi(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { + return e ? e.call(t) : (t = typeof Fi == "function" ? Fi(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { return this; }, r); function n(s) { @@ -365,7 +365,7 @@ }, r = t(e); return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r; } - var Op = fl(function(t) { + var Pp = fl(function(t) { return function(r) { t(this), this.message = r ? r.length + ` errors occurred during unsubscription: ` + r.map(function(n, i) { @@ -374,7 +374,7 @@ `) : "", this.name = "UnsubscriptionError", this.errors = r; }; }); - function Ya(t, e) { + function Ka(t, e) { if (t) { var r = t.indexOf(e); 0 <= r && t.splice(r, 1); @@ -392,7 +392,7 @@ if (o) if (this._parentage = null, Array.isArray(o)) try { - for (var a = Hi(o), c = a.next(); !c.done; c = a.next()) { + for (var a = Fi(o), c = a.next(); !c.done; c = a.next()) { var u = c.value; u.remove(this); } @@ -413,18 +413,18 @@ try { f(); } catch (N) { - s = N instanceof Op ? N.errors : [N]; + s = N instanceof Pp ? N.errors : [N]; } var p = this._finalizers; if (p) { this._finalizers = null; try { - for (var b = Hi(p), E = b.next(); !E.done; E = b.next()) { + for (var b = Fi(p), E = b.next(); !E.done; E = b.next()) { var _ = E.value; try { - R9(_); + k9(_); } catch (N) { - s = s ?? [], N instanceof Op ? s = lr(lr([], ur(s)), ur(N.errors)) : s.push(N); + s = s ?? [], N instanceof Pp ? s = lr(lr([], ur(s)), ur(N.errors)) : s.push(N); } } } catch (N) { @@ -439,13 +439,13 @@ } } if (s) - throw new Op(s); + throw new Pp(s); } }, t.prototype.add = function(e) { var r; if (e && e !== this) if (this.closed) - R9(e); + k9(e); else { if (e instanceof t) { if (e.closed || e._hasParent(this)) @@ -462,45 +462,45 @@ this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e; }, t.prototype._removeParent = function(e) { var r = this._parentage; - r === e ? this._parentage = null : Array.isArray(r) && Ya(r, e); + r === e ? this._parentage = null : Array.isArray(r) && Ka(r, e); }, t.prototype.remove = function(e) { var r = this._finalizers; - r && Ya(r, e), e instanceof t && e._removeParent(this); + r && Ka(r, e), e instanceof t && e._removeParent(this); }, t.EMPTY = function() { var e = new t(); return e.closed = true, e; }(), t; }(); - var yA = fi.EMPTY; - function bA(t) { + var gA = fi.EMPTY; + function yA(t) { return t instanceof fi || t && "closed" in t && Rt(t.remove) && Rt(t.add) && Rt(t.unsubscribe); } - function R9(t) { + function k9(t) { Rt(t) ? t() : t.unsubscribe(); } - var nu = { + var tu = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: false, useDeprecatedNextContext: false }; - var x1 = { + var _1 = { setTimeout: function(t, e) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; - var i = x1.delegate; + var i = _1.delegate; return i != null && i.setTimeout ? i.setTimeout.apply(i, lr([t, e], ur(r))) : setTimeout.apply(void 0, lr([t, e], ur(r))); }, clearTimeout: function(t) { - var e = x1.delegate; + var e = _1.delegate; return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t); }, delegate: void 0 }; - function wA(t) { - x1.setTimeout(function() { - var e = nu.onUnhandledError; + function bA(t) { + _1.setTimeout(function() { + var e = tu.onUnhandledError; if (e) e(t); else @@ -509,51 +509,51 @@ } function an() { } - var Lj = function() { - return vv("C", void 0, void 0); + var Uj = function() { + return wv("C", void 0, void 0); }(); - function Bj(t) { - return vv("E", void 0, t); + function jj(t) { + return wv("E", void 0, t); } - function Uj(t) { - return vv("N", t, void 0); + function Vj(t) { + return wv("N", t, void 0); } - function vv(t, e, r) { + function wv(t, e, r) { return { kind: t, value: e, error: r }; } - var ku = null; - function Pp(t) { - if (nu.useDeprecatedSynchronousErrorHandling) { - var e = !ku; - if (e && (ku = { errorThrown: false, error: null }), t(), e) { - var r = ku, n = r.errorThrown, i = r.error; - if (ku = null, n) + var Pu = null; + function kp(t) { + if (tu.useDeprecatedSynchronousErrorHandling) { + var e = !Pu; + if (e && (Pu = { errorThrown: false, error: null }), t(), e) { + var r = Pu, n = r.errorThrown, i = r.error; + if (Pu = null, n) throw i; } } else t(); } - function jj(t) { - nu.useDeprecatedSynchronousErrorHandling && ku && (ku.errorThrown = true, ku.error = t); + function zj(t) { + tu.useDeprecatedSynchronousErrorHandling && Pu && (Pu.errorThrown = true, Pu.error = t); } - var qm = function(t) { + var Wm = function(t) { ln(e, t); function e(r) { var n = t.call(this) || this; - return n.isStopped = false, r ? (n.destination = r, bA(r) && r.add(n)) : n.destination = Hj, n; + return n.isStopped = false, r ? (n.destination = r, yA(r) && r.add(n)) : n.destination = Wj, n; } return e.create = function(r, n, i) { return new Ef(r, n, i); }, e.prototype.next = function(r) { - this.isStopped ? X2(Uj(r), this) : this._next(r); + this.isStopped ? K2(Vj(r), this) : this._next(r); }, e.prototype.error = function(r) { - this.isStopped ? X2(Bj(r), this) : (this.isStopped = true, this._error(r)); + this.isStopped ? K2(jj(r), this) : (this.isStopped = true, this._error(r)); }, e.prototype.complete = function() { - this.isStopped ? X2(Lj, this) : (this.isStopped = true, this._complete()); + this.isStopped ? K2(Uj, this) : (this.isStopped = true, this._complete()); }, e.prototype.unsubscribe = function() { this.closed || (this.isStopped = true, t.prototype.unsubscribe.call(this), this.destination = null); }, e.prototype._next = function(r) { @@ -572,11 +572,11 @@ } }, e; }(fi); - var Vj = Function.prototype.bind; - function K2(t, e) { - return Vj.call(t, e); + var Fj = Function.prototype.bind; + function G2(t, e) { + return Fj.call(t, e); } - var zj = function() { + var Hj = function() { function t(e) { this.partialObserver = e; } @@ -620,48 +620,48 @@ }; else { var a; - s && nu.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() { + s && tu.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() { return s.unsubscribe(); }, o = { - next: r.next && K2(r.next, a), - error: r.error && K2(r.error, a), - complete: r.complete && K2(r.complete, a) + next: r.next && G2(r.next, a), + error: r.error && G2(r.error, a), + complete: r.complete && G2(r.complete, a) }) : o = r; } - return s.destination = new zj(o), s; + return s.destination = new Hj(o), s; } return e; - }(qm); + }(Wm); function W0(t) { - nu.useDeprecatedSynchronousErrorHandling ? jj(t) : wA(t); + tu.useDeprecatedSynchronousErrorHandling ? zj(t) : bA(t); } - function Fj(t) { + function qj(t) { throw t; } - function X2(t, e) { - var r = nu.onStoppedNotification; - r && x1.setTimeout(function() { + function K2(t, e) { + var r = tu.onStoppedNotification; + r && _1.setTimeout(function() { return r(t, e); }); } - var Hj = { + var Wj = { closed: true, next: an, - error: Fj, + error: qj, complete: an }; - var Wm = function() { + var Gm = function() { return typeof Symbol == "function" && Symbol.observable || "@@observable"; }(); function Rn(t) { return t; } - function xv() { + function vv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return vA(t); + return wA(t); } - function vA(t) { + function wA(t) { return t.length === 0 ? Rn : t.length === 1 ? t[0] : function(r) { return t.reduce(function(n, i) { return i(n); @@ -676,8 +676,8 @@ var r = new t(); return r.source = this, r.operator = e, r; }, t.prototype.subscribe = function(e, r, n) { - var i = this, s = Wj(e) ? e : new Ef(e, r, n); - return Pp(function() { + var i = this, s = Kj(e) ? e : new Ef(e, r, n); + return kp(function() { var o = i, a = o.operator, c = o.source; s.add(a ? a.call(s, c) : c ? i._subscribe(s) : i._trySubscribe(s)); }), s; @@ -689,7 +689,7 @@ } }, t.prototype.forEach = function(e, r) { var n = this; - return r = C9(r), new r(function(i, s) { + return r = R9(r), new r(function(i, s) { var o = new Ef({ next: function(a) { try { @@ -706,15 +706,15 @@ }, t.prototype._subscribe = function(e) { var r; return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e); - }, t.prototype[Wm] = function() { + }, t.prototype[Gm] = function() { return this; }, t.prototype.pipe = function() { for (var e = [], r = 0; r < arguments.length; r++) e[r] = arguments[r]; - return vA(e)(this); + return wA(e)(this); }, t.prototype.toPromise = function(e) { var r = this; - return e = C9(e), new e(function(n, i) { + return e = R9(e), new e(function(n, i) { var s; r.subscribe(function(o) { return s = o; @@ -728,22 +728,22 @@ return new t(e); }, t; }(); - function C9(t) { + function R9(t) { var e; - return (e = t ?? nu.Promise) !== null && e !== void 0 ? e : Promise; + return (e = t ?? tu.Promise) !== null && e !== void 0 ? e : Promise; } - function qj(t) { + function Gj(t) { return t && Rt(t.next) && Rt(t.error) && Rt(t.complete); } - function Wj(t) { - return t && t instanceof qm || qj(t) && bA(t); + function Kj(t) { + return t && t instanceof Wm || Gj(t) && yA(t); } - function xA(t) { + function vA(t) { return Rt(t == null ? void 0 : t.lift); } - function wt(t) { + function yt(t) { return function(e) { - if (xA(e)) + if (vA(e)) return e.lift(function(r) { try { return t(r, this); @@ -755,9 +755,9 @@ }; } function lt(t, e, r, n, i) { - return new _v(t, e, r, n, i); + return new xv(t, e, r, n, i); } - var _v = function(t) { + var xv = function(t) { ln(e, t); function e(r, n, i, s, o, a) { var c = t.call(this, r) || this; @@ -792,9 +792,9 @@ t.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this)); } }, e; - }(qm); + }(Wm); function Wd() { - return wt(function(t, e) { + return yt(function(t, e) { var r = null; t._refCount++; var n = lt(e, void 0, void 0, void 0, function() { @@ -808,11 +808,11 @@ t.subscribe(n), n.closed || (r = t.connect()); }); } - var Gm = function(t) { + var Km = function(t) { ln(e, t); function e(r, n) { var i = t.call(this) || this; - return i.source = r, i.subjectFactory = n, i._subject = null, i._refCount = 0, i._connection = null, xA(r) && (i.lift = r.lift), i; + return i.source = r, i.subjectFactory = n, i._subject = null, i._refCount = 0, i._connection = null, vA(r) && (i.lift = r.lift), i; } return e.prototype._subscribe = function(r) { return this.getSubject().subscribe(r); @@ -841,9 +841,9 @@ return Wd()(this); }, e; }(Ht); - var _A = { + var xA = { now: function() { - return (_A.delegate || performance).now(); + return (xA.delegate || performance).now(); }, delegate: void 0 }; @@ -872,12 +872,12 @@ }, delegate: void 0 }; - function Gj(t) { - return t ? EA(t) : Kj; + function Xj(t) { + return t ? _A(t) : Yj; } - function EA(t) { + function _A(t) { return new Ht(function(e) { - var r = t || _A, n = r.now(), i = 0, s = function() { + var r = t || xA, n = r.now(), i = 0, s = function() { e.closed || (i = Vu.requestAnimationFrame(function(o) { i = 0; var a = r.now(); @@ -892,8 +892,8 @@ }; }); } - var Kj = EA(); - var SA = fl(function(t) { + var Yj = _A(); + var EA = fl(function(t) { return function() { t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; }; @@ -905,19 +905,19 @@ return r.closed = false, r.currentObservers = null, r.observers = [], r.isStopped = false, r.hasError = false, r.thrownError = null, r; } return e.prototype.lift = function(r) { - var n = new D9(this, this); + var n = new C9(this, this); return n.operator = r, n; }, e.prototype._throwIfClosed = function() { if (this.closed) - throw new SA(); + throw new EA(); }, e.prototype.next = function(r) { var n = this; - Pp(function() { + kp(function() { var i, s; if (n._throwIfClosed(), !n.isStopped) { n.currentObservers || (n.currentObservers = Array.from(n.observers)); try { - for (var o = Hi(n.currentObservers), a = o.next(); !a.done; a = o.next()) { + for (var o = Fi(n.currentObservers), a = o.next(); !a.done; a = o.next()) { var c = a.value; c.next(r); } @@ -935,7 +935,7 @@ }); }, e.prototype.error = function(r) { var n = this; - Pp(function() { + kp(function() { if (n._throwIfClosed(), !n.isStopped) { n.hasError = n.isStopped = true, n.thrownError = r; for (var i = n.observers; i.length; ) @@ -944,7 +944,7 @@ }); }, e.prototype.complete = function() { var r = this; - Pp(function() { + kp(function() { if (r._throwIfClosed(), !r.isStopped) { r.isStopped = true; for (var n = r.observers; n.length; ) @@ -966,8 +966,8 @@ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r); }, e.prototype._innerSubscribe = function(r) { var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers; - return s || o ? yA : (this.currentObservers = null, a.push(r), new fi(function() { - n.currentObservers = null, Ya(a, r); + return s || o ? gA : (this.currentObservers = null, a.push(r), new fi(function() { + n.currentObservers = null, Ka(a, r); })); }, e.prototype._checkFinalizedStatuses = function(r) { var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped; @@ -976,10 +976,10 @@ var r = new Ht(); return r.source = this, r; }, e.create = function(r, n) { - return new D9(r, n); + return new C9(r, n); }, e; }(Ht); - var D9 = function(t) { + var C9 = function(t) { ln(e, t); function e(r, n) { var i = t.call(this) || this; @@ -996,10 +996,10 @@ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r); }, e.prototype._subscribe = function(r) { var n, i; - return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : yA; + return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : gA; }, e; }(Er); - var Xc = function(t) { + var Gc = function(t) { ln(e, t); function e(r) { var n = t.call(this) || this; @@ -1023,16 +1023,16 @@ t.prototype.next.call(this, this._value = r); }, e; }(Er); - var Km = { + var Xm = { now: function() { - return (Km.delegate || Date).now(); + return (Xm.delegate || Date).now(); }, delegate: void 0 }; - var tc = function(t) { + var ru = function(t) { ln(e, t); function e(r, n, i) { - r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Km); + r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xm); var s = t.call(this) || this; return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = true, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s; } @@ -1053,7 +1053,7 @@ } }, e; }(Er); - var Ev = function(t) { + var _v = function(t) { ln(e, t); function e() { var r = t !== null && t.apply(this, arguments) || this; @@ -1069,7 +1069,7 @@ s || (this._isComplete = true, n && t.prototype.next.call(this, i), t.prototype.complete.call(this)); }, e; }(Er); - var Xj = function(t) { + var Zj = function(t) { ln(e, t); function e(r, n) { return t.call(this) || this; @@ -1078,15 +1078,15 @@ return this; }, e; }(fi); - var _1 = { + var E1 = { setInterval: function(t, e) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; - var i = _1.delegate; + var i = E1.delegate; return i != null && i.setInterval ? i.setInterval.apply(i, lr([t, e], ur(r))) : setInterval.apply(void 0, lr([t, e], ur(r))); }, clearInterval: function(t) { - var e = _1.delegate; + var e = E1.delegate; return ((e == null ? void 0 : e.clearInterval) || clearInterval)(t); }, delegate: void 0 @@ -1105,11 +1105,11 @@ var s = this.id, o = this.scheduler; return s != null && (this.id = this.recycleAsyncId(o, s, n)), this.pending = true, this.delay = n, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(o, this.id, n), this; }, e.prototype.requestAsyncId = function(r, n, i) { - return i === void 0 && (i = 0), _1.setInterval(r.flush.bind(r, this), i); + return i === void 0 && (i = 0), E1.setInterval(r.flush.bind(r, this), i); }, e.prototype.recycleAsyncId = function(r, n, i) { if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === false) return n; - n != null && _1.clearInterval(n); + n != null && E1.clearInterval(n); }, e.prototype.execute = function(r, n) { if (this.closed) return new Error("executing a cancelled action"); @@ -1130,70 +1130,70 @@ }, e.prototype.unsubscribe = function() { if (!this.closed) { var r = this, n = r.id, i = r.scheduler, s = i.actions; - this.work = this.state = this.scheduler = null, this.pending = false, Ya(s, this), n != null && (this.id = this.recycleAsyncId(i, n, null)), this.delay = null, t.prototype.unsubscribe.call(this); + this.work = this.state = this.scheduler = null, this.pending = false, Ka(s, this), n != null && (this.id = this.recycleAsyncId(i, n, null)), this.delay = null, t.prototype.unsubscribe.call(this); } }, e; - }(Xj); - var Yj = 1; - var Y2; - var w3 = {}; - function L9(t) { - return t in w3 ? (delete w3[t], true) : false; - } - var MA = { + }(Zj); + var Jj = 1; + var X2; + var b3 = {}; + function D9(t) { + return t in b3 ? (delete b3[t], true) : false; + } + var SA = { setImmediate: function(t) { - var e = Yj++; - return w3[e] = true, Y2 || (Y2 = Promise.resolve()), Y2.then(function() { - return L9(e) && t(); + var e = Jj++; + return b3[e] = true, X2 || (X2 = Promise.resolve()), X2.then(function() { + return D9(e) && t(); }), e; }, clearImmediate: function(t) { - L9(t); + D9(t); } }; - var Zj = MA.setImmediate; - var Jj = MA.clearImmediate; - var E1 = { + var Qj = SA.setImmediate; + var $j = SA.clearImmediate; + var S1 = { setImmediate: function() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = E1.delegate; - return ((r == null ? void 0 : r.setImmediate) || Zj).apply(void 0, lr([], ur(t))); + var r = S1.delegate; + return ((r == null ? void 0 : r.setImmediate) || Qj).apply(void 0, lr([], ur(t))); }, clearImmediate: function(t) { - var e = E1.delegate; - return ((e == null ? void 0 : e.clearImmediate) || Jj)(t); + var e = S1.delegate; + return ((e == null ? void 0 : e.clearImmediate) || $j)(t); }, delegate: void 0 }; - var Qj = function(t) { + var eV = function(t) { ln(e, t); function e(r, n) { var i = t.call(this, r, n) || this; return i.scheduler = r, i.work = n, i; } return e.prototype.requestAsyncId = function(r, n, i) { - return i === void 0 && (i = 0), i !== null && i > 0 ? t.prototype.requestAsyncId.call(this, r, n, i) : (r.actions.push(this), r._scheduled || (r._scheduled = E1.setImmediate(r.flush.bind(r, void 0)))); + return i === void 0 && (i = 0), i !== null && i > 0 ? t.prototype.requestAsyncId.call(this, r, n, i) : (r.actions.push(this), r._scheduled || (r._scheduled = S1.setImmediate(r.flush.bind(r, void 0)))); }, e.prototype.recycleAsyncId = function(r, n, i) { var s; if (i === void 0 && (i = 0), i != null ? i > 0 : this.delay > 0) return t.prototype.recycleAsyncId.call(this, r, n, i); var o = r.actions; - n != null && ((s = o[o.length - 1]) === null || s === void 0 ? void 0 : s.id) !== n && (E1.clearImmediate(n), r._scheduled === n && (r._scheduled = void 0)); + n != null && ((s = o[o.length - 1]) === null || s === void 0 ? void 0 : s.id) !== n && (S1.clearImmediate(n), r._scheduled === n && (r._scheduled = void 0)); }, e; }(Gd); - var v3 = function() { + var w3 = function() { function t(e, r) { r === void 0 && (r = t.now), this.schedulerActionCtor = e, this.now = r; } return t.prototype.schedule = function(e, r, n) { return r === void 0 && (r = 0), new this.schedulerActionCtor(this, e).schedule(n, r); - }, t.now = Km.now, t; + }, t.now = Xm.now, t; }(); var Kd = function(t) { ln(e, t); function e(r, n) { - n === void 0 && (n = v3.now); + n === void 0 && (n = w3.now); var i = t.call(this, r, n) || this; return i.actions = [], i._active = false, i; } @@ -1215,8 +1215,8 @@ throw i; } }, e; - }(v3); - var $j = function(t) { + }(w3); + var tV = function(t) { ln(e, t); function e() { return t !== null && t.apply(this, arguments) || this; @@ -1238,11 +1238,11 @@ } }, e; }(Kd); - var Sv = new $j(Qj); - var eV = Sv; - var Vs = new Kd(Gd); - var Mv = Vs; - var tV = function(t) { + var Ev = new tV(eV); + var rV = Ev; + var js = new Kd(Gd); + var Sv = js; + var nV = function(t) { ln(e, t); function e(r, n) { var i = t.call(this, r, n) || this; @@ -1256,16 +1256,16 @@ return i === void 0 && (i = 0), i != null && i > 0 || i == null && this.delay > 0 ? t.prototype.requestAsyncId.call(this, r, n, i) : (r.flush(this), 0); }, e; }(Gd); - var rV = function(t) { + var iV = function(t) { ln(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e; }(Kd); - var AA = new rV(tV); - var nV = AA; - var iV = function(t) { + var MA = new iV(nV); + var sV = MA; + var oV = function(t) { ln(e, t); function e(r, n) { var i = t.call(this, r, n) || this; @@ -1283,7 +1283,7 @@ n != null && ((s = o[o.length - 1]) === null || s === void 0 ? void 0 : s.id) !== n && (Vu.cancelAnimationFrame(n), r._scheduled = void 0); }, e; }(Gd); - var sV = function(t) { + var aV = function(t) { ln(e, t); function e() { return t !== null && t.apply(this, arguments) || this; @@ -1305,12 +1305,12 @@ } }, e; }(Kd); - var TA = new sV(iV); - var oV = TA; - var aV = function(t) { + var AA = new aV(oV); + var cV = AA; + var uV = function(t) { ln(e, t); function e(r, n) { - r === void 0 && (r = NA), n === void 0 && (n = 1 / 0); + r === void 0 && (r = TA), n === void 0 && (n = 1 / 0); var i = t.call(this, r, function() { return i.frame; }) || this; @@ -1326,7 +1326,7 @@ } }, e.frameTimeFactor = 10, e; }(Kd); - var NA = function(t) { + var TA = function(t) { ln(e, t); function e(r, n, i) { i === void 0 && (i = r.index += 1); @@ -1357,57 +1357,57 @@ var Gi = new Ht(function(t) { return t.complete(); }); - function cV(t) { - return t ? uV(t) : Gi; + function lV(t) { + return t ? fV(t) : Gi; } - function uV(t) { + function fV(t) { return new Ht(function(e) { return t.schedule(function() { return e.complete(); }); }); } - function Xm(t) { + function Ym(t) { return t && Rt(t.schedule); } - function Av(t) { + function Mv(t) { return t[t.length - 1]; } function Xd(t) { - return Rt(Av(t)) ? t.pop() : void 0; + return Rt(Mv(t)) ? t.pop() : void 0; } - function rc(t) { - return Xm(Av(t)) ? t.pop() : void 0; + function $a(t) { + return Ym(Mv(t)) ? t.pop() : void 0; } - function IA(t, e) { - return typeof Av(t) == "number" ? t.pop() : e; + function NA(t, e) { + return typeof Mv(t) == "number" ? t.pop() : e; } - var Tv = function(t) { + var Av = function(t) { return t && typeof t.length == "number" && typeof t != "function"; }; - function OA(t) { + function IA(t) { return Rt(t == null ? void 0 : t.then); } - function PA(t) { - return Rt(t[Wm]); + function OA(t) { + return Rt(t[Gm]); } - function kA(t) { + function PA(t) { return Symbol.asyncIterator && Rt(t == null ? void 0 : t[Symbol.asyncIterator]); } - function RA(t) { + function kA(t) { return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); } - function lV() { + function hV() { return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator; } - var CA = lV(); - function DA(t) { - return Rt(t == null ? void 0 : t[CA]); + var RA = hV(); + function CA(t) { + return Rt(t == null ? void 0 : t[RA]); } - function LA(t) { - return Cj(this, arguments, function() { + function DA(t) { + return Lj(this, arguments, function() { var r, n, i, s; - return wv(this, function(o) { + return bv(this, function(o) { switch (o.label) { case 0: r = t.getReader(), o.label = 1; @@ -1435,57 +1435,57 @@ }); }); } - function BA(t) { + function LA(t) { return Rt(t == null ? void 0 : t.getReader); } function Ot(t) { if (t instanceof Ht) return t; if (t != null) { - if (PA(t)) - return fV(t); - if (Tv(t)) - return hV(t); if (OA(t)) return dV(t); - if (kA(t)) - return UA(t); - if (DA(t)) + if (Av(t)) return pV(t); - if (BA(t)) + if (IA(t)) return mV(t); + if (PA(t)) + return BA(t); + if (CA(t)) + return gV(t); + if (LA(t)) + return yV(t); } - throw RA(t); + throw kA(t); } - function fV(t) { + function dV(t) { return new Ht(function(e) { - var r = t[Wm](); + var r = t[Gm](); if (Rt(r.subscribe)) return r.subscribe(e); throw new TypeError("Provided object does not correctly implement Symbol.observable"); }); } - function hV(t) { + function pV(t) { return new Ht(function(e) { for (var r = 0; r < t.length && !e.closed; r++) e.next(t[r]); e.complete(); }); } - function dV(t) { + function mV(t) { return new Ht(function(e) { t.then(function(r) { e.closed || (e.next(r), e.complete()); }, function(r) { return e.error(r); - }).then(null, wA); + }).then(null, bA); }); } - function pV(t) { + function gV(t) { return new Ht(function(e) { var r, n; try { - for (var i = Hi(t), s = i.next(); !s.done; s = i.next()) { + for (var i = Fi(t), s = i.next(); !s.done; s = i.next()) { var o = s.value; if (e.next(o), e.closed) return; @@ -1503,24 +1503,24 @@ e.complete(); }); } - function UA(t) { + function BA(t) { return new Ht(function(e) { - gV(t, e).catch(function(r) { + bV(t, e).catch(function(r) { return e.error(r); }); }); } - function mV(t) { - return UA(LA(t)); + function yV(t) { + return BA(DA(t)); } - function gV(t, e) { + function bV(t, e) { var r, n, i, s; - return Rj(this, void 0, void 0, function() { + return Dj(this, void 0, void 0, function() { var o, a; - return wv(this, function(c) { + return bv(this, function(c) { switch (c.label) { case 0: - c.trys.push([0, 5, 6, 11]), r = Dj(t), c.label = 1; + c.trys.push([0, 5, 6, 11]), r = Bj(t), c.label = 1; case 1: return [4, r.next()]; case 2: @@ -1553,7 +1553,7 @@ }); }); } - function qi(t, e, r, n, i) { + function Hi(t, e, r, n, i) { n === void 0 && (n = 0), i === void 0 && (i = false); var s = e.schedule(function() { r(), i ? t.add(this.schedule(null, n)) : this.unsubscribe(); @@ -1562,36 +1562,36 @@ return s; } function Yd(t, e) { - return e === void 0 && (e = 0), wt(function(r, n) { + return e === void 0 && (e = 0), yt(function(r, n) { r.subscribe(lt(n, function(i) { - return qi(n, t, function() { + return Hi(n, t, function() { return n.next(i); }, e); }, function() { - return qi(n, t, function() { + return Hi(n, t, function() { return n.complete(); }, e); }, function(i) { - return qi(n, t, function() { + return Hi(n, t, function() { return n.error(i); }, e); })); }); } function Zd(t, e) { - return e === void 0 && (e = 0), wt(function(r, n) { + return e === void 0 && (e = 0), yt(function(r, n) { n.add(t.schedule(function() { return r.subscribe(n); }, e)); }); } - function yV(t, e) { + function wV(t, e) { return Ot(t).pipe(Zd(e), Yd(e)); } - function bV(t, e) { + function vV(t, e) { return Ot(t).pipe(Zd(e), Yd(e)); } - function wV(t, e) { + function xV(t, e) { return new Ht(function(r) { var n = 0; return e.schedule(function() { @@ -1599,11 +1599,11 @@ }); }); } - function jA(t, e) { + function UA(t, e) { return new Ht(function(r) { var n; - return qi(r, e, function() { - n = t[CA](), qi(r, e, function() { + return Hi(r, e, function() { + n = t[RA](), Hi(r, e, function() { var i, s, o; try { i = n.next(), s = i.value, o = i.done; @@ -1618,13 +1618,13 @@ }; }); } - function VA(t, e) { + function jA(t, e) { if (!t) throw new Error("Iterable cannot be null"); return new Ht(function(r) { - qi(r, e, function() { + Hi(r, e, function() { var n = t[Symbol.asyncIterator](); - qi(r, e, function() { + Hi(r, e, function() { n.next().then(function(i) { i.done ? r.complete() : r.next(i.value); }); @@ -1632,36 +1632,36 @@ }); }); } - function vV(t, e) { - return VA(LA(t), e); + function _V(t, e) { + return jA(DA(t), e); } - function zA(t, e) { + function VA(t, e) { if (t != null) { - if (PA(t)) - return yV(t, e); - if (Tv(t)) - return wV(t, e); if (OA(t)) - return bV(t, e); - if (kA(t)) - return VA(t, e); - if (DA(t)) - return jA(t, e); - if (BA(t)) + return wV(t, e); + if (Av(t)) + return xV(t, e); + if (IA(t)) return vV(t, e); + if (PA(t)) + return jA(t, e); + if (CA(t)) + return UA(t, e); + if (LA(t)) + return _V(t, e); } - throw RA(t); + throw kA(t); } - function Fr(t, e) { - return e ? zA(t, e) : Ot(t); + function zr(t, e) { + return e ? VA(t, e) : Ot(t); } - function xe() { + function _e() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t); - return Fr(t, r); + var r = $a(t); + return zr(t, r); } - function FA(t, e) { + function zA(t, e) { var r = Rt(t) ? t : function() { return t; }, n = function(i) { @@ -1671,16 +1671,16 @@ return e.schedule(n, 0, i); } : n); } - var x3; + var v3; (function(t) { t.NEXT = "N", t.ERROR = "E", t.COMPLETE = "C"; - })(x3 || (x3 = {})); - var kp = function() { + })(v3 || (v3 = {})); + var Rp = function() { function t(e, r, n) { this.kind = e, this.value = r, this.error = n, this.hasValue = e === "N"; } return t.prototype.observe = function(e) { - return HA(this, e); + return FA(this, e); }, t.prototype.do = function(e, r, n) { var i = this, s = i.kind, o = i.value, a = i.error; return s === "N" ? e == null ? void 0 : e(o) : s === "E" ? r == null ? void 0 : r(a) : n == null ? void 0 : n(); @@ -1688,7 +1688,7 @@ var i; return Rt((i = e) === null || i === void 0 ? void 0 : i.next) ? this.observe(e) : this.do(e, r, n); }, t.prototype.toObservable = function() { - var e = this, r = e.kind, n = e.value, i = e.error, s = r === "N" ? xe(n) : r === "E" ? FA(function() { + var e = this, r = e.kind, n = e.value, i = e.error, s = r === "N" ? _e(n) : r === "E" ? zA(function() { return i; }) : r === "C" ? Gi : 0; if (!s) @@ -1702,13 +1702,13 @@ return t.completeNotification; }, t.completeNotification = new t("C"), t; }(); - function HA(t, e) { + function FA(t, e) { var r, n, i, s = t, o = s.kind, a = s.value, c = s.error; if (typeof o != "string") throw new TypeError('Invalid notification, missing "kind"'); o === "N" ? (r = e.next) === null || r === void 0 || r.call(e, a) : o === "E" ? (n = e.error) === null || n === void 0 || n.call(e, c) : (i = e.complete) === null || i === void 0 || i.call(e); } - function xV(t) { + function EV(t) { return !!t && (t instanceof Ht || Rt(t.lift) && Rt(t.subscribe)); } var hl = fl(function(t) { @@ -1716,7 +1716,7 @@ t(this), this.name = "EmptyError", this.message = "no elements in sequence"; }; }); - function _V(t, e) { + function SV(t, e) { var r = typeof e == "object"; return new Promise(function(n, i) { var s = false, o; @@ -1746,36 +1746,36 @@ t.subscribe(s); }); } - var _3 = fl(function(t) { + var x3 = fl(function(t) { return function() { t(this), this.name = "ArgumentOutOfRangeError", this.message = "argument out of range"; }; }); - var qA = fl(function(t) { + var HA = fl(function(t) { return function(r) { t(this), this.name = "NotFoundError", this.message = r; }; }); - var WA = fl(function(t) { + var qA = fl(function(t) { return function(r) { t(this), this.name = "SequenceError", this.message = r; }; }); - function Nv(t) { + function Tv(t) { return t instanceof Date && !isNaN(t); } - var GA = fl(function(t) { + var WA = fl(function(t) { return function(r) { r === void 0 && (r = null), t(this), this.message = "Timeout has occurred", this.name = "TimeoutError", this.info = r; }; }); - function Iv(t, e) { - var r = Nv(t) ? { first: t } : typeof t == "number" ? { each: t } : t, n = r.first, i = r.each, s = r.with, o = s === void 0 ? EV : s, a = r.scheduler, c = a === void 0 ? e ?? Vs : a, u = r.meta, f = u === void 0 ? null : u; + function Nv(t, e) { + var r = Tv(t) ? { first: t } : typeof t == "number" ? { each: t } : t, n = r.first, i = r.each, s = r.with, o = s === void 0 ? MV : s, a = r.scheduler, c = a === void 0 ? e ?? js : a, u = r.meta, f = u === void 0 ? null : u; if (n == null && i == null) throw new TypeError("No timeout provided."); - return wt(function(p, b) { + return yt(function(p, b) { var E, _, N = null, k = 0, F = function(L) { - _ = qi(b, c, function() { + _ = Hi(b, c, function() { try { E.unsubscribe(), Ot(o({ meta: f, @@ -1794,44 +1794,44 @@ })), !k && F(n != null ? typeof n == "number" ? n : +n - c.now() : i); }); } - function EV(t) { - throw new GA(t); + function MV(t) { + throw new WA(t); } function we(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = 0; r.subscribe(lt(n, function(s) { n.next(t.call(e, s, i++)); })); }); } - var SV = Array.isArray; - function MV(t, e) { - return SV(e) ? t.apply(void 0, lr([], ur(e))) : t(e); + var AV = Array.isArray; + function TV(t, e) { + return AV(e) ? t.apply(void 0, lr([], ur(e))) : t(e); } function dl(t) { return we(function(e) { - return MV(t, e); + return TV(t, e); }); } - function S1(t, e, r, n) { + function M1(t, e, r, n) { if (r) - if (Xm(r)) + if (Ym(r)) n = r; else return function() { for (var i = [], s = 0; s < arguments.length; s++) i[s] = arguments[s]; - return S1(t, e, n).apply(this, i).pipe(dl(r)); + return M1(t, e, n).apply(this, i).pipe(dl(r)); }; return n ? function() { for (var i = [], s = 0; s < arguments.length; s++) i[s] = arguments[s]; - return S1(t, e).apply(this, i).pipe(Zd(n), Yd(n)); + return M1(t, e).apply(this, i).pipe(Zd(n), Yd(n)); } : function() { for (var i = this, s = [], o = 0; o < arguments.length; o++) s[o] = arguments[o]; - var a = new Ev(), c = true; + var a = new _v(), c = true; return new Ht(function(u) { var f = a.subscribe(u); if (c) { @@ -1856,23 +1856,23 @@ }); }; } - function AV(t, e, r) { - return S1(false, t, e, r); + function NV(t, e, r) { + return M1(false, t, e, r); } - function TV(t, e, r) { - return S1(true, t, e, r); + function IV(t, e, r) { + return M1(true, t, e, r); } - var NV = Array.isArray; - var IV = Object.getPrototypeOf; - var OV = Object.prototype; - var PV = Object.keys; - function KA(t) { + var OV = Array.isArray; + var PV = Object.getPrototypeOf; + var kV = Object.prototype; + var RV = Object.keys; + function GA(t) { if (t.length === 1) { var e = t[0]; - if (NV(e)) + if (OV(e)) return { args: e, keys: null }; - if (kV(e)) { - var r = PV(e); + if (CV(e)) { + var r = RV(e); return { args: r.map(function(n) { return e[n]; @@ -1883,31 +1883,31 @@ } return { args: t, keys: null }; } - function kV(t) { - return t && typeof t == "object" && IV(t) === OV; + function CV(t) { + return t && typeof t == "object" && PV(t) === kV; } - function XA(t, e) { + function KA(t, e) { return t.reduce(function(r, n, i) { return r[n] = e[i], r; }, {}); } - function Qe() { + function $e() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t), n = Xd(t), i = KA(t), s = i.args, o = i.keys; + var r = $a(t), n = Xd(t), i = GA(t), s = i.args, o = i.keys; if (s.length === 0) - return Fr([], r); - var a = new Ht(YA(s, r, o ? function(c) { - return XA(o, c); + return zr([], r); + var a = new Ht(XA(s, r, o ? function(c) { + return KA(o, c); } : Rn)); return n ? a.pipe(dl(n)) : a; } - function YA(t, e, r) { + function XA(t, e, r) { return r === void 0 && (r = Rn), function(n) { - B9(e, function() { + L9(e, function() { for (var i = t.length, s = new Array(i), o = i, a = i, c = function(f) { - B9(e, function() { - var p = Fr(t[f], e), b = false; + L9(e, function() { + var p = zr(t[f], e), b = false; p.subscribe(lt(n, function(E) { s[f] = E, b || (b = true, a--), a || n.next(r(s.slice())); }, function() { @@ -1919,10 +1919,10 @@ }, n); }; } - function B9(t, e, r) { - t ? qi(r, t, e) : e(); + function L9(t, e, r) { + t ? Hi(r, t, e) : e(); } - function Ov(t, e, r, n, i, s, o, a) { + function Iv(t, e, r, n, i, s, o, a) { var c = [], u = 0, f = 0, p = false, b = function() { p && !c.length && !u && e.complete(); }, E = function(N) { @@ -1940,7 +1940,7 @@ u--; for (var F = function() { var L = c.shift(); - o ? qi(e, o, function() { + o ? Hi(e, o, function() { return _(L); }) : _(L); }; c.length && u < n; ) @@ -1962,34 +1962,34 @@ return we(function(s, o) { return e(n, s, i, o); })(Ot(t(n, i))); - }, r) : (typeof e == "number" && (r = e), wt(function(n, i) { - return Ov(n, i, t, r); + }, r) : (typeof e == "number" && (r = e), yt(function(n, i) { + return Iv(n, i, t, r); })); } function Jd(t) { return t === void 0 && (t = 1 / 0), Cn(Rn, t); } - function Ym() { + function Zm() { return Jd(1); } - function ud() { + function cd() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return Ym()(Fr(t, rc(t))); + return Zm()(zr(t, $a(t))); } function Qd(t) { return new Ht(function(e) { Ot(t()).subscribe(e); }); } - var RV = { + var DV = { connector: function() { return new Er(); }, resetOnDisconnect: true }; - function CV(t, e) { - e === void 0 && (e = RV); + function LV(t, e) { + e === void 0 && (e = DV); var r = null, n = e.connector, i = e.resetOnDisconnect, s = i === void 0 ? true : i, o = n(), a = new Ht(function(c) { return o.subscribe(c); }); @@ -2001,10 +2001,10 @@ })), r; }, a; } - function ZA() { + function YA() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = Xd(t), n = KA(t), i = n.args, s = n.keys, o = new Ht(function(a) { + var r = Xd(t), n = GA(t), i = n.args, s = n.keys, o = new Ht(function(a) { var c = i.length; if (!c) { a.complete(); @@ -2017,27 +2017,27 @@ }, function() { return f--; }, void 0, function() { - (!f || !N) && (p || a.next(s ? XA(s, u) : u), a.complete()); + (!f || !N) && (p || a.next(s ? KA(s, u) : u), a.complete()); })); }, E = 0; E < c; E++) b(E); }); return r ? o.pipe(dl(r)) : o; } - var DV = ["addListener", "removeListener"]; - var LV = ["addEventListener", "removeEventListener"]; - var BV = ["on", "off"]; - function E3(t, e, r, n) { + var BV = ["addListener", "removeListener"]; + var UV = ["addEventListener", "removeEventListener"]; + var jV = ["on", "off"]; + function _3(t, e, r, n) { if (Rt(r) && (n = r, r = void 0), n) - return E3(t, e, r).pipe(dl(n)); - var i = ur(VV(t) ? LV.map(function(a) { + return _3(t, e, r).pipe(dl(n)); + var i = ur(FV(t) ? UV.map(function(a) { return function(c) { return t[a](e, c, r); }; - }) : UV(t) ? DV.map(U9(t, e)) : jV(t) ? BV.map(U9(t, e)) : [], 2), s = i[0], o = i[1]; - if (!s && Tv(t)) + }) : VV(t) ? BV.map(B9(t, e)) : zV(t) ? jV.map(B9(t, e)) : [], 2), s = i[0], o = i[1]; + if (!s && Av(t)) return Cn(function(a) { - return E3(a, e, r); + return _3(a, e, r); })(Ot(t)); if (!s) throw new TypeError("Invalid event target"); @@ -2052,24 +2052,24 @@ }; }); } - function U9(t, e) { + function B9(t, e) { return function(r) { return function(n) { return t[r](e, n); }; }; } - function UV(t) { + function VV(t) { return Rt(t.addListener) && Rt(t.removeListener); } - function jV(t) { + function zV(t) { return Rt(t.on) && Rt(t.off); } - function VV(t) { + function FV(t) { return Rt(t.addEventListener) && Rt(t.removeEventListener); } - function JA(t, e, r) { - return r ? JA(t, e).pipe(dl(r)) : new Ht(function(n) { + function ZA(t, e, r) { + return r ? ZA(t, e).pipe(dl(r)) : new Ht(function(n) { var i = function() { for (var o = [], a = 0; a < arguments.length; a++) o[a] = arguments[a]; @@ -2080,12 +2080,12 @@ } : void 0; }); } - function zV(t, e, r, n, i) { + function HV(t, e, r, n, i) { var s, o, a, c; - arguments.length === 1 ? (s = t, c = s.initialState, e = s.condition, r = s.iterate, o = s.resultSelector, a = o === void 0 ? Rn : o, i = s.scheduler) : (c = t, !n || Xm(n) ? (a = Rn, i = n) : a = n); + arguments.length === 1 ? (s = t, c = s.initialState, e = s.condition, r = s.iterate, o = s.resultSelector, a = o === void 0 ? Rn : o, i = s.scheduler) : (c = t, !n || Ym(n) ? (a = Rn, i = n) : a = n); function u() { var f; - return wv(this, function(p) { + return bv(this, function(p) { switch (p.label) { case 0: f = c, p.label = 1; @@ -2101,19 +2101,19 @@ }); } return Qd(i ? function() { - return jA(u(), i); + return UA(u(), i); } : u); } - function FV(t, e, r) { + function qV(t, e, r) { return Qd(function() { return t() ? e : r; }); } - function aa(t, e, r) { - t === void 0 && (t = 0), r === void 0 && (r = Mv); + function oa(t, e, r) { + t === void 0 && (t = 0), r === void 0 && (r = Sv); var n = -1; - return e != null && (Xm(e) ? r = e : n = e), new Ht(function(i) { - var s = Nv(t) ? +t - r.now() : t; + return e != null && (Ym(e) ? r = e : n = e), new Ht(function(i) { + var s = Tv(t) ? +t - r.now() : t; s < 0 && (s = 0); var o = 0; return r.schedule(function() { @@ -2121,22 +2121,22 @@ }, s); }); } - function QA(t, e) { - return t === void 0 && (t = 0), e === void 0 && (e = Vs), t < 0 && (t = 0), aa(t, t, e); + function JA(t, e) { + return t === void 0 && (t = 0), e === void 0 && (e = js), t < 0 && (t = 0), oa(t, t, e); } - function Zm() { + function Ov() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t), n = IA(t, 1 / 0), i = t; - return i.length ? i.length === 1 ? Ot(i[0]) : Jd(n)(Fr(i, r)) : Gi; + var r = $a(t), n = NA(t, 1 / 0), i = t; + return i.length ? i.length === 1 ? Ot(i[0]) : Jd(n)(zr(i, r)) : Gi; } - var Pv = new Ht(an); - function HV() { - return Pv; + var QA = new Ht(an); + function WV() { + return QA; } - var qV = Array.isArray; + var GV = Array.isArray; function pl(t) { - return t.length === 1 && qV(t[0]) ? t[0] : t; + return t.length === 1 && GV(t[0]) ? t[0] : t; } function $A() { for (var t = [], e = 0; e < arguments.length; e++) @@ -2152,7 +2152,7 @@ s(); return; } - var a = new _v(n, void 0, an, an); + var a = new xv(n, void 0, an, an); o.subscribe(a), a.add(s); } else n.complete(); @@ -2160,26 +2160,26 @@ s(); }); } - function WV(t, e) { - return Fr(Object.entries(t), e); + function KV(t, e) { + return zr(Object.entries(t), e); } function eT(t, e) { return function(r, n) { return !t.call(e, r, n); }; } - function Wr(t, e) { - return wt(function(r, n) { + function qr(t, e) { + return yt(function(r, n) { var i = 0; r.subscribe(lt(n, function(s) { return t.call(e, s, i++) && n.next(s); })); }); } - function GV(t, e, r) { - return [Wr(e, r)(Ot(t)), Wr(eT(e, r))(Ot(t))]; + function XV(t, e, r) { + return [qr(e, r)(Ot(t)), qr(eT(e, r))(Ot(t))]; } - function KV() { + function YV() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; return t = pl(t), t.length === 1 ? Ot(t[0]) : new Ht(tT(t)); @@ -2199,7 +2199,7 @@ n(i); }; } - function XV(t, e, r) { + function ZV(t, e, r) { if (e == null && (e = t, t = 0), e <= 0) return Gi; var n = e + t; @@ -2214,7 +2214,7 @@ i.complete(); }); } - function YV(t, e) { + function JV(t, e) { return new Ht(function(r) { var n = t(), i = e(n), s = i ? Ot(i) : Gi; return s.subscribe(r), function() { @@ -2222,7 +2222,7 @@ }; }); } - function kv() { + function Pv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; var r = Xd(t), n = pl(t); @@ -2257,8 +2257,8 @@ }; }) : Gi; } - function Rv(t) { - return wt(function(e, r) { + function kv(t) { + return yt(function(e, r) { var n = false, i = null, s = null, o = false, a = function() { if (s == null || s.unsubscribe(), s = null, n) { n = false; @@ -2277,12 +2277,12 @@ }); } function rT(t, e) { - return e === void 0 && (e = Vs), Rv(function() { - return aa(t, e); + return e === void 0 && (e = js), kv(function() { + return oa(t, e); }); } function nT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = []; return e.subscribe(lt(r, function(i) { return n.push(i); @@ -2297,13 +2297,13 @@ }); } function iT(t, e) { - return e === void 0 && (e = null), e = e ?? t, wt(function(r, n) { + return e === void 0 && (e = null), e = e ?? t, yt(function(r, n) { var i = [], s = 0; r.subscribe(lt(n, function(o) { var a, c, u, f, p = null; s++ % e === 0 && i.push([]); try { - for (var b = Hi(i), E = b.next(); !E.done; E = b.next()) { + for (var b = Fi(i), E = b.next(); !E.done; E = b.next()) { var _ = E.value; _.push(o), t <= _.length && (p = p ?? [], p.push(_)); } @@ -2319,9 +2319,9 @@ } if (p) try { - for (var N = Hi(p), k = N.next(); !k.done; k = N.next()) { + for (var N = Fi(p), k = N.next(); !k.done; k = N.next()) { var _ = k.value; - Ya(i, _), n.next(_); + Ka(i, _), n.next(_); } } catch (F) { u = { error: F }; @@ -2336,7 +2336,7 @@ }, function() { var o, a; try { - for (var c = Hi(i), u = c.next(); !u.done; u = c.next()) { + for (var c = Fi(i), u = c.next(); !u.done; u = c.next()) { var f = u.value; n.next(f); } @@ -2359,11 +2359,11 @@ function sT(t) { for (var e, r, n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - var s = (e = rc(n)) !== null && e !== void 0 ? e : Vs, o = (r = n[0]) !== null && r !== void 0 ? r : null, a = n[1] || 1 / 0; - return wt(function(c, u) { + var s = (e = $a(n)) !== null && e !== void 0 ? e : js, o = (r = n[0]) !== null && r !== void 0 ? r : null, a = n[1] || 1 / 0; + return yt(function(c, u) { var f = [], p = false, b = function(N) { var k = N.buffer, F = N.subs; - F.unsubscribe(), Ya(f, N), u.next(k), p && E(); + F.unsubscribe(), Ka(f, N), u.next(k), p && E(); }, E = function() { if (f) { var N = new fi(); @@ -2372,16 +2372,16 @@ buffer: k, subs: N }; - f.push(F), qi(N, s, function() { + f.push(F), Hi(N, s, function() { return b(F); }, t); } }; - o !== null && o >= 0 ? qi(u, s, E, o, true) : p = true, E(); + o !== null && o >= 0 ? Hi(u, s, E, o, true) : p = true, E(); var _ = lt(u, function(N) { var k, F, L = f.slice(); try { - for (var D = Hi(L), q = D.next(); !q.done; q = D.next()) { + for (var D = Fi(L), q = D.next(); !q.done; q = D.next()) { var W = q.value, z = W.buffer; z.push(N), a <= z.length && b(W); } @@ -2406,19 +2406,19 @@ }); } function oT(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = []; Ot(t).subscribe(lt(n, function(s) { var o = []; i.push(o); var a = new fi(), c = function() { - Ya(i, o), n.next(o), a.unsubscribe(); + Ka(i, o), n.next(o), a.unsubscribe(); }; a.add(Ot(e(s)).subscribe(lt(n, c, an))); }, an)), r.subscribe(lt(n, function(s) { var o, a; try { - for (var c = Hi(i), u = c.next(); !u.done; u = c.next()) { + for (var c = Fi(i), u = c.next(); !u.done; u = c.next()) { var f = u.value; f.push(s); } @@ -2440,7 +2440,7 @@ }); } function aT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = null, i = null, s = function() { i == null || i.unsubscribe(); var o = n; @@ -2455,11 +2455,11 @@ })); }); } - function Yt(t) { - return wt(function(e, r) { + function $t(t) { + return yt(function(e, r) { var n = null, i = false, s; n = e.subscribe(lt(r, void 0, void 0, function(o) { - s = Ot(t(o, Yt(t)(e))), n ? (n.unsubscribe(), n = null, s.subscribe(r)) : i = true; + s = Ot(t(o, $t(t)(e))), n ? (n.unsubscribe(), n = null, s.subscribe(r)) : i = true; })), i && (n.unsubscribe(), n = null, s.subscribe(r)); }); } @@ -2475,54 +2475,54 @@ }; } function Vf(t, e) { - return wt(cT(t, e, arguments.length >= 2, false, true)); + return yt(cT(t, e, arguments.length >= 2, false, true)); } - var ZV = function(t, e) { + var QV = function(t, e) { return t.push(e), t; }; function ml() { - return wt(function(t, e) { - Vf(ZV, [])(t).subscribe(e); + return yt(function(t, e) { + Vf(QV, [])(t).subscribe(e); }); } function uT(t, e) { - return xv(ml(), Cn(function(r) { + return vv(ml(), Cn(function(r) { return t(r); }), e ? dl(e) : Rn); } - function Cv(t) { - return uT(Qe, t); + function Rv(t) { + return uT($e, t); } - var lT = Cv; - function Dv() { + var lT = Rv; + function Cv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; var r = Xd(t); - return r ? xv(Dv.apply(void 0, lr([], ur(t))), dl(r)) : wt(function(n, i) { - YA(lr([n], ur(pl(t))))(i); + return r ? vv(Cv.apply(void 0, lr([], ur(t))), dl(r)) : yt(function(n, i) { + XA(lr([n], ur(pl(t))))(i); }); } - function Lv() { + function Dv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return Dv.apply(void 0, lr([], ur(t))); + return Cv.apply(void 0, lr([], ur(t))); } - function M1(t, e) { + function A1(t, e) { return Rt(e) ? Cn(t, e, 1) : Cn(t, 1); } function fT(t, e) { - return Rt(e) ? M1(function() { + return Rt(e) ? A1(function() { return t; - }, e) : M1(function() { + }, e) : A1(function() { return t; }); } function hT() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t); - return wt(function(n, i) { - Ym()(Fr(lr([n], ur(t)), r)).subscribe(i); + var r = $a(t); + return yt(function(n, i) { + Zm()(zr(lr([n], ur(t)), r)).subscribe(i); }); } function dT() { @@ -2530,22 +2530,22 @@ t[e] = arguments[e]; return hT.apply(void 0, lr([], ur(t))); } - function JV(t) { + function $V(t) { return new Ht(function(e) { return t.subscribe(e); }); } - var QV = { + var ez = { connector: function() { return new Er(); } }; function Jm(t, e) { - e === void 0 && (e = QV); + e === void 0 && (e = ez); var r = e.connector; - return wt(function(n, i) { + return yt(function(n, i) { var s = r(); - Ot(t(JV(s))).subscribe(i), i.add(n.subscribe(s)); + Ot(t($V(s))).subscribe(i), i.add(n.subscribe(s)); }); } function pT(t) { @@ -2554,7 +2554,7 @@ }, 0); } function mT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = false, i = null, s = null, o = function() { if (s == null || s.unsubscribe(), s = null, n) { n = false; @@ -2572,7 +2572,7 @@ }); } function gT(t, e) { - return e === void 0 && (e = Vs), wt(function(r, n) { + return e === void 0 && (e = js), yt(function(r, n) { var i = null, s = null, o = null, a = function() { if (i) { i.unsubscribe(), i = null; @@ -2598,7 +2598,7 @@ }); } function $d(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = false; e.subscribe(lt(r, function(i) { n = true, r.next(i); @@ -2607,49 +2607,49 @@ })); }); } - function sa(t) { + function ia(t) { return t <= 0 ? function() { return Gi; - } : wt(function(e, r) { + } : yt(function(e, r) { var n = 0; e.subscribe(lt(r, function(i) { ++n <= t && (r.next(i), t <= n && r.complete()); })); }); } - function Bv() { - return wt(function(t, e) { + function Lv() { + return yt(function(t, e) { t.subscribe(lt(e, an)); }); } - function Uv(t) { + function Bv(t) { return we(function() { return t; }); } function Qm(t, e) { return e ? function(r) { - return ud(e.pipe(sa(1), Bv()), r.pipe(Qm(t))); + return cd(e.pipe(ia(1), Lv()), r.pipe(Qm(t))); } : Cn(function(r, n) { - return Ot(t(r, n)).pipe(sa(1), Uv(r)); + return Ot(t(r, n)).pipe(ia(1), Bv(r)); }); } function yT(t, e) { - e === void 0 && (e = Vs); - var r = aa(t, e); + e === void 0 && (e = js); + var r = oa(t, e); return Qm(function() { return r; }); } function bT() { - return wt(function(t, e) { + return yt(function(t, e) { t.subscribe(lt(e, function(r) { - return HA(r, e); + return FA(r, e); })); }); } function wT(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = /* @__PURE__ */ new Set(); r.subscribe(lt(n, function(s) { var o = t ? t(s) : s; @@ -2659,8 +2659,8 @@ }, an)); }); } - function ca(t, e) { - return e === void 0 && (e = Rn), t = t ?? $V, wt(function(r, n) { + function ec(t, e) { + return e === void 0 && (e = Rn), t = t ?? tz, yt(function(r, n) { var i, s = true; r.subscribe(lt(n, function(o) { var a = e(o); @@ -2668,16 +2668,16 @@ })); }); } - function $V(t, e) { + function tz(t, e) { return t === e; } function vT(t, e) { - return ca(function(r, n) { + return ec(function(r, n) { return e ? e(r[t], n[t]) : r[t] === n[t]; }); } function e0(t) { - return t === void 0 && (t = ez), wt(function(e, r) { + return t === void 0 && (t = rz), yt(function(e, r) { var n = false; e.subscribe(lt(r, function(i) { n = true, r.next(i); @@ -2686,18 +2686,18 @@ })); }); } - function ez() { + function rz() { return new hl(); } function xT(t, e) { if (t < 0) - throw new _3(); + throw new x3(); var r = arguments.length >= 2; return function(n) { - return n.pipe(Wr(function(i, s) { + return n.pipe(qr(function(i, s) { return s === t; - }), sa(1), r ? $d(e) : e0(function() { - return new _3(); + }), ia(1), r ? $d(e) : e0(function() { + return new x3(); })); }; } @@ -2705,11 +2705,11 @@ for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; return function(r) { - return ud(r, xe.apply(void 0, lr([], ur(t)))); + return cd(r, _e.apply(void 0, lr([], ur(t)))); }; } function ET(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = 0; r.subscribe(lt(n, function(s) { t.call(e, s, i++, r) || (n.next(false), n.complete()); @@ -2725,7 +2725,7 @@ return e(n, s, i, o); })); })); - } : wt(function(r, n) { + } : yt(function(r, n) { var i = 0, s = null, o = false; r.subscribe(lt(n, function(a) { s || (s = lt(n, void 0, function() { @@ -2736,17 +2736,17 @@ })); }); } - function jv() { + function Uv() { return $m(Rn); } - var ST = jv; + var ST = Uv; function MT(t, e, r) { - return e === void 0 && (e = 1 / 0), e = (e || 0) < 1 ? 1 / 0 : e, wt(function(n, i) { - return Ov(n, i, t, e, void 0, true, r); + return e === void 0 && (e = 1 / 0), e = (e || 0) < 1 ? 1 / 0 : e, yt(function(n, i) { + return Iv(n, i, t, e, void 0, true, r); }); } - function Vv(t) { - return wt(function(e, r) { + function jv(t) { + return yt(function(e, r) { try { e.subscribe(r); } finally { @@ -2755,7 +2755,7 @@ }); } function AT(t, e) { - return wt(TT(t, e, "value")); + return yt(TT(t, e, "value")); } function TT(t, e, r) { var n = r === "index"; @@ -2770,20 +2770,20 @@ }; } function NT(t, e) { - return wt(TT(t, e, "index")); + return yt(TT(t, e, "index")); } - function A1(t, e) { + function T1(t, e) { var r = arguments.length >= 2; return function(n) { - return n.pipe(t ? Wr(function(i, s) { + return n.pipe(t ? qr(function(i, s) { return t(i, s, n); - }) : Rn, sa(1), r ? $d(e) : e0(function() { + }) : Rn, ia(1), r ? $d(e) : e0(function() { return new hl(); })); }; } function IT(t, e, r, n) { - return wt(function(i, s) { + return yt(function(i, s) { var o; !e || typeof e == "function" ? o = e : (r = e.duration, o = e.element, n = e.connector); var a = /* @__PURE__ */ new Map(), c = function(_) { @@ -2792,7 +2792,7 @@ return c(function(N) { return N.error(_); }); - }, f = 0, p = false, b = new _v(s, function(_) { + }, f = 0, p = false, b = new xv(s, function(_) { try { var N = t(_), k = a.get(N); if (!k) { @@ -2834,7 +2834,7 @@ }); } function OT() { - return wt(function(t, e) { + return yt(function(t, e) { t.subscribe(lt(e, function() { e.next(false), e.complete(); }, function() { @@ -2842,17 +2842,17 @@ })); }); } - function zv(t) { + function Vv(t) { return t <= 0 ? function() { return Gi; - } : wt(function(e, r) { + } : yt(function(e, r) { var n = []; e.subscribe(lt(r, function(i) { n.push(i), t < n.length && n.shift(); }, function() { var i, s; try { - for (var o = Hi(n), a = o.next(); !a.done; a = o.next()) { + for (var o = Fi(n), a = o.next(); !a.done; a = o.next()) { var c = a.value; r.next(c); } @@ -2875,21 +2875,21 @@ function PT(t, e) { var r = arguments.length >= 2; return function(n) { - return n.pipe(t ? Wr(function(i, s) { + return n.pipe(t ? qr(function(i, s) { return t(i, s, n); - }) : Rn, zv(1), r ? $d(e) : e0(function() { + }) : Rn, Vv(1), r ? $d(e) : e0(function() { return new hl(); })); }; } function kT() { - return wt(function(t, e) { + return yt(function(t, e) { t.subscribe(lt(e, function(r) { - e.next(kp.createNext(r)); + e.next(Rp.createNext(r)); }, function() { - e.next(kp.createComplete()), e.complete(); + e.next(Rp.createComplete()), e.complete(); }, function(r) { - e.next(kp.createError(r)), e.complete(); + e.next(Rp.createError(r)), e.complete(); })); }); } @@ -2908,10 +2908,10 @@ return t; }, r)); } - function zf(t, e, r) { - return r === void 0 && (r = 1 / 0), wt(function(n, i) { + function t0(t, e, r) { + return r === void 0 && (r = 1 / 0), yt(function(n, i) { var s = e; - return Ov(n, i, function(o, a) { + return Iv(n, i, function(o, a) { return t(s, o, a); }, r, function(o) { s = o; @@ -2920,18 +2920,18 @@ }); }); } - function Fv() { + function zv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t), n = IA(t, 1 / 0); - return t = pl(t), wt(function(i, s) { - Jd(n)(Fr(lr([i], ur(t)), r)).subscribe(s); + var r = $a(t), n = NA(t, 1 / 0); + return t = pl(t), yt(function(i, s) { + Jd(n)(zr(lr([i], ur(t)), r)).subscribe(s); }); } - function iu() { + function nu() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return Fv.apply(void 0, lr([], ur(t))); + return zv.apply(void 0, lr([], ur(t))); } function LT(t) { return Vf(Rt(t) ? function(e, r) { @@ -2947,7 +2947,7 @@ return Rt(e) ? Jm(e, { connector: r }) : function(n) { - return new Gm(n, r); + return new Km(n, r); }; } function BT() { @@ -2958,9 +2958,9 @@ return $A.apply(void 0, lr([n], ur(r))); }; } - var tz = BT; + var nz = BT; function UT() { - return wt(function(t, e) { + return yt(function(t, e) { var r, n = false; t.subscribe(lt(e, function(i) { var s = r; @@ -2994,16 +2994,16 @@ } function zT(t) { return function(e) { - var r = new Xc(t); - return new Gm(e, function() { + var r = new Gc(t); + return new Km(e, function() { return r; }); }; } function FT() { return function(t) { - var e = new Ev(); - return new Gm(t, function() { + var e = new _v(); + return new Km(t, function() { return e; }); }; @@ -3012,13 +3012,13 @@ r && !Rt(r) && (n = r); var i = Rt(r) ? r : void 0; return function(s) { - return eg(new tc(t, e, n), i)(s); + return eg(new ru(t, e, n), i)(s); }; } - function Hv() { + function Fv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return t.length ? wt(function(r, n) { + return t.length ? yt(function(r, n) { tT(lr([r], ur(t)))(n); }) : Rn; } @@ -3026,10 +3026,10 @@ var e, r = 1 / 0, n; return t != null && (typeof t == "object" ? (e = t.count, r = e === void 0 ? 1 / 0 : e, n = t.delay) : r = t), r <= 0 ? function() { return Gi; - } : wt(function(i, s) { + } : yt(function(i, s) { var o = 0, a, c = function() { if (a == null || a.unsubscribe(), a = null, n != null) { - var f = typeof n == "number" ? aa(n) : Ot(n(o)), p = lt(s, function() { + var f = typeof n == "number" ? oa(n) : Ot(n(o)), p = lt(s, function() { p.unsubscribe(), u(); }); f.subscribe(p); @@ -3045,7 +3045,7 @@ }); } function qT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n, i = false, s, o = false, a = false, c = function() { return a && o && (r.complete(), true); }, u = function() { @@ -3069,7 +3069,7 @@ count: t }; var r = e.count, n = r === void 0 ? 1 / 0 : r, i = e.delay, s = e.resetOnSuccess, o = s === void 0 ? false : s; - return n <= 0 ? Rn : wt(function(a, c) { + return n <= 0 ? Rn : yt(function(a, c) { var u = 0, f, p = function() { var b = false; f = a.subscribe(lt(c, function(E) { @@ -3080,7 +3080,7 @@ f ? (f.unsubscribe(), f = null, p()) : b = true; }; if (i != null) { - var N = typeof i == "number" ? aa(i) : Ot(i(E, u)), k = lt(c, function() { + var N = typeof i == "number" ? oa(i) : Ot(i(E, u)), k = lt(c, function() { k.unsubscribe(), _(); }, function() { c.complete(); @@ -3096,7 +3096,7 @@ }); } function GT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n, i = false, s, o = function() { n = e.subscribe(lt(r, void 0, void 0, function(a) { s || (s = new Er(), Ot(t(s)).subscribe(lt(r, function() { @@ -3107,8 +3107,8 @@ o(); }); } - function qv(t) { - return wt(function(e, r) { + function Hv(t) { + return yt(function(e, r) { var n = false, i = null; e.subscribe(lt(r, function(s) { n = true, i = s; @@ -3122,16 +3122,16 @@ }); } function KT(t, e) { - return e === void 0 && (e = Vs), qv(QA(t, e)); + return e === void 0 && (e = js), Hv(JA(t, e)); } - function t0(t, e) { - return wt(cT(t, e, arguments.length >= 2, true)); + function r0(t, e) { + return yt(cT(t, e, arguments.length >= 2, true)); } function XT(t, e) { return e === void 0 && (e = function(r, n) { return r === n; - }), wt(function(r, n) { - var i = j9(), s = j9(), o = function(c) { + }), yt(function(r, n) { + var i = U9(), s = U9(), o = function(c) { n.next(c), n.complete(); }, a = function(c, u) { var f = lt(n, function(p) { @@ -3147,7 +3147,7 @@ r.subscribe(a(i, s)), Ot(t).subscribe(a(s, i)); }); } - function j9() { + function U9() { return { buffer: [], complete: false @@ -3167,26 +3167,26 @@ var D = f; F(), D == null || D.unsubscribe(); }; - return wt(function(D, q) { + return yt(function(D, q) { E++, !N && !_ && k(); var W = b = b ?? r(); q.add(function() { - E--, E === 0 && !N && !_ && (p = Z2(L, c)); + E--, E === 0 && !N && !_ && (p = Y2(L, c)); }), W.subscribe(q), !f && E > 0 && (f = new Ef({ next: function(z) { return W.next(z); }, error: function(z) { - N = true, k(), p = Z2(F, i, z), W.error(z); + N = true, k(), p = Y2(F, i, z), W.error(z); }, complete: function() { - _ = true, k(), p = Z2(F, o), W.complete(); + _ = true, k(), p = Y2(F, o), W.complete(); } }), Ot(D).subscribe(f)); })(u); }; } - function Z2(t, e) { + function Y2(t, e) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; if (e === true) { @@ -3202,11 +3202,11 @@ return Ot(e.apply(void 0, lr([], ur(r)))).subscribe(i); } } - function qt(t, e, r) { + function Wt(t, e, r) { var n, i, s, o, a = false; return t && typeof t == "object" ? (n = t.bufferSize, o = n === void 0 ? 1 / 0 : n, i = t.windowTime, e = i === void 0 ? 1 / 0 : i, s = t.refCount, a = s === void 0 ? false : s, r = t.scheduler) : o = t ?? 1 / 0, gl({ connector: function() { - return new tc(o, e, r); + return new ru(o, e, r); }, resetOnError: true, resetOnComplete: false, @@ -3214,22 +3214,22 @@ }); } function YT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = false, i, s = false, o = 0; e.subscribe(lt(r, function(a) { - s = true, (!t || t(a, o++, e)) && (n && r.error(new WA("Too many matching values")), n = true, i = a); + s = true, (!t || t(a, o++, e)) && (n && r.error(new qA("Too many matching values")), n = true, i = a); }, function() { - n ? (r.next(i), r.complete()) : r.error(s ? new qA("No matching values") : new hl()); + n ? (r.next(i), r.complete()) : r.error(s ? new HA("No matching values") : new hl()); })); }); } function ZT(t) { - return Wr(function(e, r) { + return qr(function(e, r) { return t <= r; }); } function JT(t) { - return t <= 0 ? Rn : wt(function(e, r) { + return t <= 0 ? Rn : yt(function(e, r) { var n = new Array(t), i = 0; return e.subscribe(lt(r, function(s) { var o = i++; @@ -3245,7 +3245,7 @@ }); } function QT(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = false, i = lt(r, function() { i == null || i.unsubscribe(), n = true; }, an); @@ -3254,24 +3254,24 @@ })); }); } - function Wv(t) { - return wt(function(e, r) { + function qv(t) { + return yt(function(e, r) { var n = false, i = 0; e.subscribe(lt(r, function(s) { return (n || (n = !t(s, i++))) && r.next(s); })); }); } - function Cr() { + function Qr() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = rc(t); - return wt(function(n, i) { - (r ? ud(t, n, r) : ud(t, n)).subscribe(i); + var r = $a(t); + return yt(function(n, i) { + (r ? cd(t, n, r) : cd(t, n)).subscribe(i); }); } - function Oe(t, e) { - return wt(function(r, n) { + function Pe(t, e) { + return yt(function(r, n) { var i = null, s = 0, o = false, a = function() { return o && !i && n.complete(); }; @@ -3289,19 +3289,19 @@ }); } function $T() { - return Oe(Rn); + return Pe(Rn); } function eN(t, e) { - return Rt(e) ? Oe(function() { + return Rt(e) ? Pe(function() { return t; - }, e) : Oe(function() { + }, e) : Pe(function() { return t; }); } function tN(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = e; - return Oe(function(s, o) { + return Pe(function(s, o) { return t(i, s, o); }, function(s, o) { return i = o, o; @@ -3311,14 +3311,14 @@ }); } function rN(t) { - return wt(function(e, r) { + return yt(function(e, r) { Ot(t).subscribe(lt(r, function() { return r.complete(); }, an)), !r.closed && e.subscribe(r); }); } function nN(t, e) { - return e === void 0 && (e = false), wt(function(r, n) { + return e === void 0 && (e = false), yt(function(r, n) { var i = 0; r.subscribe(lt(n, function(s) { var o = t(s, i++); @@ -3326,9 +3326,9 @@ })); }); } - function Us(t, e, r) { + function Bs(t, e, r) { var n = Rt(t) || e || r ? { next: t, error: e, complete: r } : t; - return n ? wt(function(i, s) { + return n ? yt(function(i, s) { var o; (o = n.subscribe) === null || o === void 0 || o.call(n); var a = true; @@ -3347,8 +3347,8 @@ })); }) : Rn; } - function Gv(t, e) { - return wt(function(r, n) { + function Wv(t, e) { + return yt(function(r, n) { var i = e ?? {}, s = i.leading, o = s === void 0 ? true : s, a = i.trailing, c = a === void 0 ? false : a, u = false, f = null, p = null, b = false, E = function() { p == null || p.unsubscribe(), p = null, c && (k(), b && n.complete()); }, _ = function() { @@ -3370,22 +3370,22 @@ }); } function iN(t, e, r) { - e === void 0 && (e = Vs); - var n = aa(t, e); - return Gv(function() { + e === void 0 && (e = js); + var n = oa(t, e); + return Wv(function() { return n; }, r); } function sN(t) { - return t === void 0 && (t = Vs), wt(function(e, r) { + return t === void 0 && (t = js), yt(function(e, r) { var n = t.now(); e.subscribe(lt(r, function(i) { var s = t.now(), o = s - n; - n = s, r.next(new rz(i, o)); + n = s, r.next(new iz(i, o)); })); }); } - var rz = function() { + var iz = function() { function t(e, r) { this.value = e, this.interval = r; } @@ -3393,7 +3393,7 @@ }(); function oN(t, e, r) { var n, i, s; - if (r = r ?? Mv, Nv(t) ? n = t : typeof t == "number" && (i = t), e) + if (r = r ?? Sv, Tv(t) ? n = t : typeof t == "number" && (i = t), e) s = function() { return e; }; @@ -3401,7 +3401,7 @@ throw new TypeError("No observable provided to switch to"); if (n == null && i == null) throw new TypeError("No timeout provided."); - return Iv({ + return Nv({ first: n, each: i, scheduler: r, @@ -3409,12 +3409,12 @@ }); } function aN(t) { - return t === void 0 && (t = Km), we(function(e) { + return t === void 0 && (t = Xm), we(function(e) { return { value: e, timestamp: t.now() }; }); } function cN(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n = new Er(); r.next(n.asObservable()); var i = function(s) { @@ -3434,12 +3434,12 @@ function uN(t, e) { e === void 0 && (e = 0); var r = e > 0 ? e : t; - return wt(function(n, i) { + return yt(function(n, i) { var s = [new Er()], o = [], a = 0; i.next(s[0].asObservable()), n.subscribe(lt(i, function(c) { var u, f; try { - for (var p = Hi(s), b = p.next(); !b.done; b = p.next()) { + for (var p = Fi(s), b = p.next(); !b.done; b = p.next()) { var E = b.value; E.next(c); } @@ -3474,11 +3474,11 @@ function lN(t) { for (var e, r, n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - var s = (e = rc(n)) !== null && e !== void 0 ? e : Vs, o = (r = n[0]) !== null && r !== void 0 ? r : null, a = n[1] || 1 / 0; - return wt(function(c, u) { + var s = (e = $a(n)) !== null && e !== void 0 ? e : js, o = (r = n[0]) !== null && r !== void 0 ? r : null, a = n[1] || 1 / 0; + return yt(function(c, u) { var f = [], p = false, b = function(k) { var F = k.window, L = k.subs; - F.complete(), L.unsubscribe(), Ya(f, k), p && E(); + F.complete(), L.unsubscribe(), Ka(f, k), p && E(); }, E = function() { if (f) { var k = new fi(); @@ -3488,12 +3488,12 @@ subs: k, seen: 0 }; - f.push(L), u.next(F.asObservable()), qi(k, s, function() { + f.push(L), u.next(F.asObservable()), Hi(k, s, function() { return b(L); }, t); } }; - o !== null && o >= 0 ? qi(u, s, E, o, true) : p = true, E(); + o !== null && o >= 0 ? Hi(u, s, E, o, true) : p = true, E(); var _ = function(k) { return f.slice().forEach(k); }, N = function(k) { @@ -3520,7 +3520,7 @@ }); } function fN(t, e) { - return wt(function(r, n) { + return yt(function(r, n) { var i = [], s = function(o) { for (; 0 < i.length; ) i.shift().error(o); @@ -3530,7 +3530,7 @@ var a = new Er(); i.push(a); var c = new fi(), u = function() { - Ya(i, a), a.complete(), c.unsubscribe(); + Ka(i, a), a.complete(), c.unsubscribe(); }, f; try { f = Ot(e(o)); @@ -3542,7 +3542,7 @@ }, an)), r.subscribe(lt(n, function(o) { var a, c, u = i.slice(); try { - for (var f = Hi(u), p = f.next(); !p.done; p = f.next()) { + for (var f = Fi(u), p = f.next(); !p.done; p = f.next()) { var b = p.value; b.next(o); } @@ -3567,7 +3567,7 @@ }); } function hN(t) { - return wt(function(e, r) { + return yt(function(e, r) { var n, i, s = function(a) { n.error(a), r.error(a); }, o = function() { @@ -3590,11 +3590,11 @@ })); }); } - function Kv() { + function Gv() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; var r = Xd(t); - return wt(function(n, i) { + return yt(function(n, i) { for (var s = t.length, o = new Array(s), a = t.map(function() { return false; }), c = false, u = function(p) { @@ -3612,13 +3612,13 @@ }); } function dN(t) { - return uT(kv, t); + return uT(Pv, t); } function pN() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return wt(function(r, n) { - kv.apply(void 0, lr([r], ur(t))).subscribe(n); + return yt(function(r, n) { + Pv.apply(void 0, lr([r], ur(t))).subscribe(n); }); } function mN() { @@ -3626,61 +3626,61 @@ t[e] = arguments[e]; return pN.apply(void 0, lr([], ur(t))); } - var nz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var sz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ArgumentOutOfRangeError: _3, - AsyncSubject: Ev, - BehaviorSubject: Xc, - ConnectableObservable: Gm, + ArgumentOutOfRangeError: x3, + AsyncSubject: _v, + BehaviorSubject: Gc, + ConnectableObservable: Km, EMPTY: Gi, EmptyError: hl, - NEVER: Pv, - NotFoundError: qA, - Notification: kp, + NEVER: QA, + NotFoundError: HA, + Notification: Rp, get NotificationKind() { - return x3; + return v3; }, - ObjectUnsubscribedError: SA, + ObjectUnsubscribedError: EA, Observable: Ht, - ReplaySubject: tc, - Scheduler: v3, - SequenceError: WA, + ReplaySubject: ru, + Scheduler: w3, + SequenceError: qA, Subject: Er, - Subscriber: qm, + Subscriber: Wm, Subscription: fi, - TimeoutError: GA, - UnsubscriptionError: Op, - VirtualAction: NA, - VirtualTimeScheduler: aV, - animationFrame: oV, - animationFrameScheduler: TA, - animationFrames: Gj, - asap: eV, - asapScheduler: Sv, - async: Mv, - asyncScheduler: Vs, - audit: Rv, + TimeoutError: WA, + UnsubscriptionError: Pp, + VirtualAction: TA, + VirtualTimeScheduler: uV, + animationFrame: cV, + animationFrameScheduler: AA, + animationFrames: Xj, + asap: rV, + asapScheduler: Ev, + async: Sv, + asyncScheduler: js, + audit: kv, auditTime: rT, - bindCallback: AV, - bindNodeCallback: TV, + bindCallback: NV, + bindNodeCallback: IV, buffer: nT, bufferCount: iT, bufferTime: sT, bufferToggle: oT, bufferWhen: aT, - catchError: Yt, + catchError: $t, combineAll: lT, - combineLatest: Qe, - combineLatestAll: Cv, - combineLatestWith: Lv, - concat: ud, - concatAll: Ym, - concatMap: M1, + combineLatest: $e, + combineLatestAll: Rv, + combineLatestWith: Dv, + concat: cd, + concatAll: Zm, + concatMap: A1, concatMapTo: fT, concatWith: dT, - config: nu, + config: tu, connect: Jm, - connectable: CV, + connectable: LV, count: pT, debounce: mT, debounceTime: gT, @@ -3690,136 +3690,136 @@ delayWhen: Qm, dematerialize: bT, distinct: wT, - distinctUntilChanged: ca, + distinctUntilChanged: ec, distinctUntilKeyChanged: vT, elementAt: xT, - empty: cV, + empty: lV, endWith: _T, every: ET, exhaust: ST, - exhaustAll: jv, + exhaustAll: Uv, exhaustMap: $m, expand: MT, - filter: Wr, - finalize: Vv, + filter: qr, + finalize: jv, find: AT, findIndex: NT, - first: A1, + first: T1, firstValueFrom: wn, flatMap: CT, - forkJoin: ZA, - from: Fr, - fromEvent: E3, - fromEventPattern: JA, - generate: zV, + forkJoin: YA, + from: zr, + fromEvent: _3, + fromEventPattern: ZA, + generate: HV, groupBy: IT, identity: Rn, - ignoreElements: Bv, - iif: FV, - interval: QA, + ignoreElements: Lv, + iif: qV, + interval: JA, isEmpty: OT, - isObservable: xV, + isObservable: EV, last: PT, - lastValueFrom: _V, + lastValueFrom: SV, map: we, - mapTo: Uv, + mapTo: Bv, materialize: kT, max: RT, - merge: Zm, + merge: Ov, mergeAll: Jd, mergeMap: Cn, mergeMapTo: DT, - mergeScan: zf, - mergeWith: iu, + mergeScan: t0, + mergeWith: nu, min: LT, multicast: eg, - never: HV, + never: WV, noop: an, - observable: Wm, + observable: Gm, observeOn: Yd, - of: xe, + of: _e, onErrorResumeNext: $A, onErrorResumeNextWith: BT, - pairs: WV, + pairs: KV, pairwise: UT, - partition: GV, - pipe: xv, + partition: XV, + pipe: vv, pluck: jT, publish: VT, publishBehavior: zT, publishLast: FT, publishReplay: tg, - queue: nV, - queueScheduler: AA, - race: KV, - raceWith: Hv, - range: XV, + queue: sV, + queueScheduler: MA, + race: YV, + raceWith: Fv, + range: ZV, reduce: Vf, refCount: Wd, repeat: HT, repeatWhen: qT, retry: WT, retryWhen: GT, - sample: qv, + sample: Hv, sampleTime: KT, - scan: t0, - scheduled: zA, + scan: r0, + scheduled: VA, sequenceEqual: XT, share: gl, - shareReplay: qt, + shareReplay: Wt, single: YT, skip: ZT, skipLast: JT, skipUntil: QT, - skipWhile: Wv, - startWith: Cr, + skipWhile: qv, + startWith: Qr, subscribeOn: Zd, switchAll: $T, - switchMap: Oe, + switchMap: Pe, switchMapTo: eN, switchScan: tN, - take: sa, - takeLast: zv, + take: ia, + takeLast: Vv, takeUntil: rN, takeWhile: nN, - tap: Us, - throttle: Gv, + tap: Bs, + throttle: Wv, throttleTime: iN, - throwError: FA, + throwError: zA, throwIfEmpty: e0, timeInterval: sN, - timeout: Iv, + timeout: Nv, timeoutWith: oN, - timer: aa, + timer: oa, timestamp: aN, toArray: ml, - using: YV, + using: JV, window: cN, windowCount: uN, windowTime: lN, windowToggle: fN, windowWhen: hN, - withLatestFrom: Kv, - zip: kv, + withLatestFrom: Gv, + zip: Pv, zipAll: dN, zipWith: mN }, Symbol.toStringTag, { value: "Module" })); - var gN = new tc( + var gN = new ru( 1 ); - var S3 = {}; - var su = gN.asObservable(); - su.subscribe( + var E3 = {}; + var iu = gN.asObservable(); + iu.subscribe( (t) => console.log("SELECTED NETWORK=", t.rpcUrl) ); - function oz(t) { + function cz(t) { return t("return this"); } - var hi = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : oz(Function); - function Xv(t, e) { + var hi = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : cz(Function); + function Kv(t, e) { return typeof hi[t] > "u" ? e : hi[t]; } - var az = class { + var uz = class { constructor(e) { re(this, "__encoding"); this.__encoding = e; @@ -3831,9 +3831,9 @@ return r; } }; - var cz = { name: "@polkadot/x-textdecoder", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; - var uz = /* @__PURE__ */ Xv("TextDecoder", az); - var lz = class { + var lz = { name: "@polkadot/x-textdecoder", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; + var fz = /* @__PURE__ */ Kv("TextDecoder", uz); + var hz = class { encode(e) { const r = e.length, n = new Uint8Array(r); for (let i = 0; i < r; i++) @@ -3841,34 +3841,34 @@ return n; } }; - var fz = { name: "@polkadot/x-textencoder", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; - var hz = /* @__PURE__ */ Xv("TextEncoder", lz); - var dz = [cz, fz]; - var Yv = { name: "@polkadot/util", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; + var dz = { name: "@polkadot/x-textencoder", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; + var pz = /* @__PURE__ */ Kv("TextEncoder", hz); + var mz = [lz, dz]; + var Xv = { name: "@polkadot/util", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; function St(t) { return typeof t == "function"; } - var pz = `Either remove and explicitly install matching versions or dedupe using your package manager. + var gz = `Either remove and explicitly install matching versions or dedupe using your package manager. The following conflicting packages were found:`; var bN = "POLKADOTJS_DISABLE_ESM_CJS_WARNING"; - function mz(t) { + function yz(t) { const e = hi; return e.__polkadotjs || (e.__polkadotjs = {}), e.__polkadotjs[t] || (e.__polkadotjs[t] = []), e.__polkadotjs[t]; } - function gz(t, e) { + function bz(t, e) { let r = 0; for (let n = 0, i = t.length; n < i; n++) r = Math.max(r, t[n].version.length); return t.map((n) => ` ${e(n.version.padEnd(r), n).join(" ")}`).join(` `); } - function yz(t, { name: e }) { + function wz(t, { name: e }) { return [ t, e ]; } - function bz(t, { path: e, type: r }) { + function vz(t, { path: e, type: r }) { let n; if (e && e.length >= 5) { const i = e.indexOf("node_modules"); @@ -3880,7 +3880,7 @@ The following conflicting packages were found:`; n ]; } - function wz(t, e) { + function xz(t, e) { if (t) return t; if (St(e)) @@ -3891,27 +3891,27 @@ The following conflicting packages were found:`; } return e || ""; } - function V9(t, e, r) { + function j9(t, e, r) { console.warn(`${t} -${pz} -${gz(e, r)}`); +${gz} +${bz(e, r)}`); } function yl({ name: t, path: e, type: r, version: n }, i, s = []) { var p, b; if (!t.startsWith("@polkadot")) throw new Error(`Invalid package descriptor ${t}`); - const o = mz(t); - o.push({ path: wz(e, i), type: r, version: n }); + const o = yz(t); + o.push({ path: xz(e, i), type: r, version: n }); const a = o.every((E) => E.version === n), c = ((b = (p = hi.process) == null ? void 0 : p.env) == null ? void 0 : b[bN]) === "1"; if (o.length !== 1 && !(c && a)) - V9(`${t} has multiple versions, ensure that there is only one installed.`, o, bz); + j9(`${t} has multiple versions, ensure that there is only one installed.`, o, vz); else { const E = s.filter((_) => _ && _.version !== n); - E.length && V9(`${t} requires direct dependencies exactly matching version ${n}.`, E, yz); + E.length && j9(`${t} requires direct dependencies exactly matching version ${n}.`, E, wz); } } - yl(Yv, null, dz); - function T1(t, e) { + yl(Xv, null, mz); + function N1(t, e) { const r = Math.ceil(t.length / e); if (r === 1) return [t]; @@ -3922,7 +3922,7 @@ ${gz(e, r)}`); } return n; } - function vz(t, e = true) { + function _z(t, e = true) { return t.filter((r) => r !== void 0 && (e || r !== null)); } function zu(t) { @@ -3943,7 +3943,7 @@ ${gz(e, r)}`); } return n; } - function xz(t, e = 0) { + function Ez(t, e = 0) { if (t <= 0) throw new Error("Expected non-zero, positive number as a range size"); const r = new Array(t); @@ -3951,7 +3951,7 @@ ${gz(e, r)}`); r[n] = n + e; return r; } - function _z(t) { + function Sz(t) { const e = t.slice(); let r = e.length; if (r === 1) @@ -3962,13 +3962,13 @@ ${gz(e, r)}`); } return e; } - function Ez(t) { + function Mz(t) { const e = t.length, r = new Array(e), n = new Array(e); for (let i = 0; i < e; i++) [r[i], n[i]] = t[i]; return [r, n]; } - function Sz(t, e) { + function Az(t, e) { const r = t.length, n = new Array(r); for (let i = 0; i < r; i++) n[i] = [t[i], e[i]]; @@ -3978,10 +3978,10 @@ ${gz(e, r)}`); if (!t) throw new Error(St(e) ? e() : e); } - function La(t, e) { + function Ca(t, e) { return wN(t != null, e), t; } - function Zv(t) { + function Yv(t) { throw new Error(`This codepath should be unreachable. Unhandled input: ${t}`); } function rg(t) { @@ -3995,90 +3995,90 @@ ${gz(e, r)}`); return n; }; } - var Mz = /* @__PURE__ */ rg((t, e) => t > e); - var Az = /* @__PURE__ */ rg((t, e) => t < e); - function Tz() { + var Tz = /* @__PURE__ */ rg((t, e) => t > e); + var Nz = /* @__PURE__ */ rg((t, e) => t < e); + function Iz() { return Number.NaN; } - var vt = /* @__PURE__ */ Xv("BigInt", Tz); - var Yu = /* @__PURE__ */ vt(0); - var Yc = /* @__PURE__ */ vt(1); - var Nz = /* @__PURE__ */ vt(2); - var Iz = /* @__PURE__ */ vt(3); - var Oz = /* @__PURE__ */ vt(4); - var Pz = /* @__PURE__ */ vt(5); - var kz = /* @__PURE__ */ vt(6); - var Rz = /* @__PURE__ */ vt(7); - var Cz = /* @__PURE__ */ vt(8); - var Dz = /* @__PURE__ */ vt(9); - var Lz = /* @__PURE__ */ vt(10); - var Bz = /* @__PURE__ */ vt(100); - var Uz = /* @__PURE__ */ vt(1e3); - var jz = /* @__PURE__ */ vt(1e6); - var M3 = /* @__PURE__ */ vt(1e9); - var Vz = M3 * M3; - var vN = /* @__PURE__ */ vt(Number.MAX_SAFE_INTEGER); - var xN = /* @__PURE__ */ vt(94906265); - var z9 = vt(256); - var F9 = vt(256 * 256); - var zz = vt("0x10000000000000000"); - function N1(t, { isLe: e = true, isNegative: r = false } = {}) { + var bt = /* @__PURE__ */ Kv("BigInt", Iz); + var Yu = /* @__PURE__ */ bt(0); + var Kc = /* @__PURE__ */ bt(1); + var Oz = /* @__PURE__ */ bt(2); + var Pz = /* @__PURE__ */ bt(3); + var kz = /* @__PURE__ */ bt(4); + var Rz = /* @__PURE__ */ bt(5); + var Cz = /* @__PURE__ */ bt(6); + var Dz = /* @__PURE__ */ bt(7); + var Lz = /* @__PURE__ */ bt(8); + var Bz = /* @__PURE__ */ bt(9); + var Uz = /* @__PURE__ */ bt(10); + var jz = /* @__PURE__ */ bt(100); + var Vz = /* @__PURE__ */ bt(1e3); + var zz = /* @__PURE__ */ bt(1e6); + var S3 = /* @__PURE__ */ bt(1e9); + var Fz = S3 * S3; + var vN = /* @__PURE__ */ bt(Number.MAX_SAFE_INTEGER); + var xN = /* @__PURE__ */ bt(94906265); + var V9 = bt(256); + var z9 = bt(256 * 256); + var Hz = bt("0x10000000000000000"); + function I1(t, { isLe: e = true, isNegative: r = false } = {}) { e || (t = t.slice().reverse()); const n = t.length; if (r && n && t[n - 1] & 128) { switch (n) { case 0: - return vt(0); + return bt(0); case 1: - return vt((t[0] ^ 255) * -1 - 1); + return bt((t[0] ^ 255) * -1 - 1); case 2: - return vt((t[0] + (t[1] << 8) ^ 65535) * -1 - 1); + return bt((t[0] + (t[1] << 8) ^ 65535) * -1 - 1); case 4: - return vt((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) * -1 - 1); + return bt((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) * -1 - 1); } const s = new DataView(t.buffer, t.byteOffset); if (n === 8) return s.getBigInt64(0, true); - let o = vt(0); + let o = bt(0); const a = n % 2; for (let c = n - 2; c >= a; c -= 2) - o = o * F9 + vt(s.getUint16(c, true) ^ 65535); - return a && (o = o * z9 + vt(t[0] ^ 255)), o * -Yc - Yc; + o = o * z9 + bt(s.getUint16(c, true) ^ 65535); + return a && (o = o * V9 + bt(t[0] ^ 255)), o * -Kc - Kc; } switch (n) { case 0: - return vt(0); + return bt(0); case 1: - return vt(t[0]); + return bt(t[0]); case 2: - return vt(t[0] + (t[1] << 8)); + return bt(t[0] + (t[1] << 8)); case 4: - return vt(t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216); + return bt(t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216); } const i = new DataView(t.buffer, t.byteOffset); switch (n) { case 8: return i.getBigUint64(0, true); case 16: - return i.getBigUint64(8, true) * zz + i.getBigUint64(0, true); + return i.getBigUint64(8, true) * Hz + i.getBigUint64(0, true); default: { - let s = vt(0); + let s = bt(0); const o = n % 2; for (let a = n - 2; a >= o; a -= 2) - s = s * F9 + vt(i.getUint16(a, true)); - return o && (s = s * z9 + vt(t[0])), s; + s = s * z9 + bt(i.getUint16(a, true)); + return o && (s = s * V9 + bt(t[0])), s; } } } - var J2 = "0123456789abcdef"; - var I1 = new Uint8Array(256); + var Z2 = "0123456789abcdef"; + var O1 = new Uint8Array(256); var _N = new Uint8Array(256 * 256); - for (let t = 0, e = J2.length; t < e; t++) - I1[J2[t].charCodeAt(0) | 0] = t | 0, t > 9 && (I1[J2[t].toUpperCase().charCodeAt(0) | 0] = t | 0); + for (let t = 0, e = Z2.length; t < e; t++) + O1[Z2[t].charCodeAt(0) | 0] = t | 0, t > 9 && (O1[Z2[t].toUpperCase().charCodeAt(0) | 0] = t | 0); for (let t = 0; t < 256; t++) { const e = t << 8; for (let r = 0; r < 256; r++) - _N[e | r] = I1[t] << 4 | I1[r]; + _N[e | r] = O1[t] << 4 | O1[r]; } function On(t, e = -1) { if (!t) @@ -4090,10 +4090,10 @@ ${gz(e, r)}`); return s; } function EN(t, { isLe: e = false, isNegative: r = false } = {}) { - return !t || t === "0x" ? vt(0) : N1(On(t), { isLe: e, isNegative: r }); + return !t || t === "0x" ? bt(0) : I1(On(t), { isLe: e, isNegative: r }); } var Lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; - function nc(t) { + function tc(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } function fn(t) { @@ -4117,14 +4117,14 @@ ${gz(e, r)}`); }); }), r; } - var Jv = { exports: {} }; - var Fz = {}; - var Hz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Zv = { exports: {} }; + var qz = {}; + var Wz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Fz + default: qz }, Symbol.toStringTag, { value: "Module" })); - var ng = /* @__PURE__ */ fn(Hz); - Jv.exports; + var ng = /* @__PURE__ */ fn(Wz); + Zv.exports; (function(t) { (function(e, r) { function n(d, l) { @@ -4590,7 +4590,7 @@ ${gz(e, r)}`); return g !== 0 ? h.words[m] = g | 0 : h.length--, h._strip(); } var L = function(l, h, y) { - var x = l.words, v = h.words, M = y.words, w = 0, g, m, P, Q = x[0] | 0, A = Q & 8191, K = Q >>> 13, U = x[1] | 0, j = U & 8191, G = U >>> 13, R = x[2] | 0, Y = R & 8191, ee = R >>> 13, ae = x[3] | 0, ie = ae & 8191, Z = ae >>> 13, ce = x[4] | 0, oe = ce & 8191, me = ce >>> 13, pe = x[5] | 0, se = pe & 8191, le = pe >>> 13, be = x[6] | 0, ye = be & 8191, Ee = be >>> 13, Te = x[7] | 0, C = Te & 8191, O = Te >>> 13, B = x[8] | 0, $ = B & 8191, te = B >>> 13, J = x[9] | 0, ne = J & 8191, fe = J >>> 13, ge = v[0] | 0, de = ge & 8191, ve = ge >>> 13, Ae = v[1] | 0, Ne = Ae & 8191, De = Ae >>> 13, ut = v[2] | 0, Ve = ut & 8191, Ze = ut >>> 13, Ge = v[3] | 0, ke = Ge & 8191, Re = Ge >>> 13, Je = v[4] | 0, Me = Je & 8191, Pe = Je >>> 13, et = v[5] | 0, Ce = et & 8191, ze = et >>> 13, nt = v[6] | 0, qe = nt & 8191, Ke = nt >>> 13, at = v[7] | 0, We = at & 8191, $e = at >>> 13, dt = v[8] | 0, ft = dt & 8191, ht = dt >>> 13, Mt = v[9] | 0, rt = Mt & 8191, _t = Mt >>> 13; + var x = l.words, v = h.words, M = y.words, w = 0, g, m, P, Q = x[0] | 0, A = Q & 8191, K = Q >>> 13, U = x[1] | 0, j = U & 8191, G = U >>> 13, R = x[2] | 0, Y = R & 8191, ee = R >>> 13, ae = x[3] | 0, ie = ae & 8191, Z = ae >>> 13, ce = x[4] | 0, oe = ce & 8191, me = ce >>> 13, pe = x[5] | 0, se = pe & 8191, le = pe >>> 13, be = x[6] | 0, ye = be & 8191, Ee = be >>> 13, Te = x[7] | 0, C = Te & 8191, O = Te >>> 13, B = x[8] | 0, $ = B & 8191, te = B >>> 13, J = x[9] | 0, ne = J & 8191, fe = J >>> 13, ge = v[0] | 0, de = ge & 8191, ve = ge >>> 13, Ae = v[1] | 0, Ne = Ae & 8191, De = Ae >>> 13, ut = v[2] | 0, Ve = ut & 8191, Ze = ut >>> 13, Ge = v[3] | 0, ke = Ge & 8191, Re = Ge >>> 13, Je = v[4] | 0, Me = Je & 8191, Oe = Je >>> 13, et = v[5] | 0, Ce = et & 8191, ze = et >>> 13, nt = v[6] | 0, qe = nt & 8191, Ke = nt >>> 13, at = v[7] | 0, We = at & 8191, Qe = at >>> 13, dt = v[8] | 0, ft = dt & 8191, ht = dt >>> 13, Mt = v[9] | 0, rt = Mt & 8191, _t = Mt >>> 13; y.negative = l.negative ^ h.negative, y.length = 19, g = Math.imul(A, de), m = Math.imul(A, ve), m = m + Math.imul(K, de) | 0, P = Math.imul(K, ve); var gr = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (gr >>> 26) | 0, gr &= 67108863, g = Math.imul(j, de), m = Math.imul(j, ve), m = m + Math.imul(G, de) | 0, P = Math.imul(G, ve), g = g + Math.imul(A, Ne) | 0, m = m + Math.imul(A, De) | 0, m = m + Math.imul(K, Ne) | 0, P = P + Math.imul(K, De) | 0; @@ -4599,37 +4599,37 @@ ${gz(e, r)}`); var br = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (br >>> 26) | 0, br &= 67108863, g = Math.imul(ie, de), m = Math.imul(ie, ve), m = m + Math.imul(Z, de) | 0, P = Math.imul(Z, ve), g = g + Math.imul(Y, Ne) | 0, m = m + Math.imul(Y, De) | 0, m = m + Math.imul(ee, Ne) | 0, P = P + Math.imul(ee, De) | 0, g = g + Math.imul(j, Ve) | 0, m = m + Math.imul(j, Ze) | 0, m = m + Math.imul(G, Ve) | 0, P = P + Math.imul(G, Ze) | 0, g = g + Math.imul(A, ke) | 0, m = m + Math.imul(A, Re) | 0, m = m + Math.imul(K, ke) | 0, P = P + Math.imul(K, Re) | 0; var wr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, g = Math.imul(oe, de), m = Math.imul(oe, ve), m = m + Math.imul(me, de) | 0, P = Math.imul(me, ve), g = g + Math.imul(ie, Ne) | 0, m = m + Math.imul(ie, De) | 0, m = m + Math.imul(Z, Ne) | 0, P = P + Math.imul(Z, De) | 0, g = g + Math.imul(Y, Ve) | 0, m = m + Math.imul(Y, Ze) | 0, m = m + Math.imul(ee, Ve) | 0, P = P + Math.imul(ee, Ze) | 0, g = g + Math.imul(j, ke) | 0, m = m + Math.imul(j, Re) | 0, m = m + Math.imul(G, ke) | 0, P = P + Math.imul(G, Re) | 0, g = g + Math.imul(A, Me) | 0, m = m + Math.imul(A, Pe) | 0, m = m + Math.imul(K, Me) | 0, P = P + Math.imul(K, Pe) | 0; + w = (P + (m >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, g = Math.imul(oe, de), m = Math.imul(oe, ve), m = m + Math.imul(me, de) | 0, P = Math.imul(me, ve), g = g + Math.imul(ie, Ne) | 0, m = m + Math.imul(ie, De) | 0, m = m + Math.imul(Z, Ne) | 0, P = P + Math.imul(Z, De) | 0, g = g + Math.imul(Y, Ve) | 0, m = m + Math.imul(Y, Ze) | 0, m = m + Math.imul(ee, Ve) | 0, P = P + Math.imul(ee, Ze) | 0, g = g + Math.imul(j, ke) | 0, m = m + Math.imul(j, Re) | 0, m = m + Math.imul(G, ke) | 0, P = P + Math.imul(G, Re) | 0, g = g + Math.imul(A, Me) | 0, m = m + Math.imul(A, Oe) | 0, m = m + Math.imul(K, Me) | 0, P = P + Math.imul(K, Oe) | 0; var tr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, g = Math.imul(se, de), m = Math.imul(se, ve), m = m + Math.imul(le, de) | 0, P = Math.imul(le, ve), g = g + Math.imul(oe, Ne) | 0, m = m + Math.imul(oe, De) | 0, m = m + Math.imul(me, Ne) | 0, P = P + Math.imul(me, De) | 0, g = g + Math.imul(ie, Ve) | 0, m = m + Math.imul(ie, Ze) | 0, m = m + Math.imul(Z, Ve) | 0, P = P + Math.imul(Z, Ze) | 0, g = g + Math.imul(Y, ke) | 0, m = m + Math.imul(Y, Re) | 0, m = m + Math.imul(ee, ke) | 0, P = P + Math.imul(ee, Re) | 0, g = g + Math.imul(j, Me) | 0, m = m + Math.imul(j, Pe) | 0, m = m + Math.imul(G, Me) | 0, P = P + Math.imul(G, Pe) | 0, g = g + Math.imul(A, Ce) | 0, m = m + Math.imul(A, ze) | 0, m = m + Math.imul(K, Ce) | 0, P = P + Math.imul(K, ze) | 0; + w = (P + (m >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, g = Math.imul(se, de), m = Math.imul(se, ve), m = m + Math.imul(le, de) | 0, P = Math.imul(le, ve), g = g + Math.imul(oe, Ne) | 0, m = m + Math.imul(oe, De) | 0, m = m + Math.imul(me, Ne) | 0, P = P + Math.imul(me, De) | 0, g = g + Math.imul(ie, Ve) | 0, m = m + Math.imul(ie, Ze) | 0, m = m + Math.imul(Z, Ve) | 0, P = P + Math.imul(Z, Ze) | 0, g = g + Math.imul(Y, ke) | 0, m = m + Math.imul(Y, Re) | 0, m = m + Math.imul(ee, ke) | 0, P = P + Math.imul(ee, Re) | 0, g = g + Math.imul(j, Me) | 0, m = m + Math.imul(j, Oe) | 0, m = m + Math.imul(G, Me) | 0, P = P + Math.imul(G, Oe) | 0, g = g + Math.imul(A, Ce) | 0, m = m + Math.imul(A, ze) | 0, m = m + Math.imul(K, Ce) | 0, P = P + Math.imul(K, ze) | 0; var Dn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, g = Math.imul(ye, de), m = Math.imul(ye, ve), m = m + Math.imul(Ee, de) | 0, P = Math.imul(Ee, ve), g = g + Math.imul(se, Ne) | 0, m = m + Math.imul(se, De) | 0, m = m + Math.imul(le, Ne) | 0, P = P + Math.imul(le, De) | 0, g = g + Math.imul(oe, Ve) | 0, m = m + Math.imul(oe, Ze) | 0, m = m + Math.imul(me, Ve) | 0, P = P + Math.imul(me, Ze) | 0, g = g + Math.imul(ie, ke) | 0, m = m + Math.imul(ie, Re) | 0, m = m + Math.imul(Z, ke) | 0, P = P + Math.imul(Z, Re) | 0, g = g + Math.imul(Y, Me) | 0, m = m + Math.imul(Y, Pe) | 0, m = m + Math.imul(ee, Me) | 0, P = P + Math.imul(ee, Pe) | 0, g = g + Math.imul(j, Ce) | 0, m = m + Math.imul(j, ze) | 0, m = m + Math.imul(G, Ce) | 0, P = P + Math.imul(G, ze) | 0, g = g + Math.imul(A, qe) | 0, m = m + Math.imul(A, Ke) | 0, m = m + Math.imul(K, qe) | 0, P = P + Math.imul(K, Ke) | 0; + w = (P + (m >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, g = Math.imul(ye, de), m = Math.imul(ye, ve), m = m + Math.imul(Ee, de) | 0, P = Math.imul(Ee, ve), g = g + Math.imul(se, Ne) | 0, m = m + Math.imul(se, De) | 0, m = m + Math.imul(le, Ne) | 0, P = P + Math.imul(le, De) | 0, g = g + Math.imul(oe, Ve) | 0, m = m + Math.imul(oe, Ze) | 0, m = m + Math.imul(me, Ve) | 0, P = P + Math.imul(me, Ze) | 0, g = g + Math.imul(ie, ke) | 0, m = m + Math.imul(ie, Re) | 0, m = m + Math.imul(Z, ke) | 0, P = P + Math.imul(Z, Re) | 0, g = g + Math.imul(Y, Me) | 0, m = m + Math.imul(Y, Oe) | 0, m = m + Math.imul(ee, Me) | 0, P = P + Math.imul(ee, Oe) | 0, g = g + Math.imul(j, Ce) | 0, m = m + Math.imul(j, ze) | 0, m = m + Math.imul(G, Ce) | 0, P = P + Math.imul(G, ze) | 0, g = g + Math.imul(A, qe) | 0, m = m + Math.imul(A, Ke) | 0, m = m + Math.imul(K, qe) | 0, P = P + Math.imul(K, Ke) | 0; var Ln = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, g = Math.imul(C, de), m = Math.imul(C, ve), m = m + Math.imul(O, de) | 0, P = Math.imul(O, ve), g = g + Math.imul(ye, Ne) | 0, m = m + Math.imul(ye, De) | 0, m = m + Math.imul(Ee, Ne) | 0, P = P + Math.imul(Ee, De) | 0, g = g + Math.imul(se, Ve) | 0, m = m + Math.imul(se, Ze) | 0, m = m + Math.imul(le, Ve) | 0, P = P + Math.imul(le, Ze) | 0, g = g + Math.imul(oe, ke) | 0, m = m + Math.imul(oe, Re) | 0, m = m + Math.imul(me, ke) | 0, P = P + Math.imul(me, Re) | 0, g = g + Math.imul(ie, Me) | 0, m = m + Math.imul(ie, Pe) | 0, m = m + Math.imul(Z, Me) | 0, P = P + Math.imul(Z, Pe) | 0, g = g + Math.imul(Y, Ce) | 0, m = m + Math.imul(Y, ze) | 0, m = m + Math.imul(ee, Ce) | 0, P = P + Math.imul(ee, ze) | 0, g = g + Math.imul(j, qe) | 0, m = m + Math.imul(j, Ke) | 0, m = m + Math.imul(G, qe) | 0, P = P + Math.imul(G, Ke) | 0, g = g + Math.imul(A, We) | 0, m = m + Math.imul(A, $e) | 0, m = m + Math.imul(K, We) | 0, P = P + Math.imul(K, $e) | 0; + w = (P + (m >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, g = Math.imul(C, de), m = Math.imul(C, ve), m = m + Math.imul(O, de) | 0, P = Math.imul(O, ve), g = g + Math.imul(ye, Ne) | 0, m = m + Math.imul(ye, De) | 0, m = m + Math.imul(Ee, Ne) | 0, P = P + Math.imul(Ee, De) | 0, g = g + Math.imul(se, Ve) | 0, m = m + Math.imul(se, Ze) | 0, m = m + Math.imul(le, Ve) | 0, P = P + Math.imul(le, Ze) | 0, g = g + Math.imul(oe, ke) | 0, m = m + Math.imul(oe, Re) | 0, m = m + Math.imul(me, ke) | 0, P = P + Math.imul(me, Re) | 0, g = g + Math.imul(ie, Me) | 0, m = m + Math.imul(ie, Oe) | 0, m = m + Math.imul(Z, Me) | 0, P = P + Math.imul(Z, Oe) | 0, g = g + Math.imul(Y, Ce) | 0, m = m + Math.imul(Y, ze) | 0, m = m + Math.imul(ee, Ce) | 0, P = P + Math.imul(ee, ze) | 0, g = g + Math.imul(j, qe) | 0, m = m + Math.imul(j, Ke) | 0, m = m + Math.imul(G, qe) | 0, P = P + Math.imul(G, Ke) | 0, g = g + Math.imul(A, We) | 0, m = m + Math.imul(A, Qe) | 0, m = m + Math.imul(K, We) | 0, P = P + Math.imul(K, Qe) | 0; var Bn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, g = Math.imul($, de), m = Math.imul($, ve), m = m + Math.imul(te, de) | 0, P = Math.imul(te, ve), g = g + Math.imul(C, Ne) | 0, m = m + Math.imul(C, De) | 0, m = m + Math.imul(O, Ne) | 0, P = P + Math.imul(O, De) | 0, g = g + Math.imul(ye, Ve) | 0, m = m + Math.imul(ye, Ze) | 0, m = m + Math.imul(Ee, Ve) | 0, P = P + Math.imul(Ee, Ze) | 0, g = g + Math.imul(se, ke) | 0, m = m + Math.imul(se, Re) | 0, m = m + Math.imul(le, ke) | 0, P = P + Math.imul(le, Re) | 0, g = g + Math.imul(oe, Me) | 0, m = m + Math.imul(oe, Pe) | 0, m = m + Math.imul(me, Me) | 0, P = P + Math.imul(me, Pe) | 0, g = g + Math.imul(ie, Ce) | 0, m = m + Math.imul(ie, ze) | 0, m = m + Math.imul(Z, Ce) | 0, P = P + Math.imul(Z, ze) | 0, g = g + Math.imul(Y, qe) | 0, m = m + Math.imul(Y, Ke) | 0, m = m + Math.imul(ee, qe) | 0, P = P + Math.imul(ee, Ke) | 0, g = g + Math.imul(j, We) | 0, m = m + Math.imul(j, $e) | 0, m = m + Math.imul(G, We) | 0, P = P + Math.imul(G, $e) | 0, g = g + Math.imul(A, ft) | 0, m = m + Math.imul(A, ht) | 0, m = m + Math.imul(K, ft) | 0, P = P + Math.imul(K, ht) | 0; + w = (P + (m >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, g = Math.imul($, de), m = Math.imul($, ve), m = m + Math.imul(te, de) | 0, P = Math.imul(te, ve), g = g + Math.imul(C, Ne) | 0, m = m + Math.imul(C, De) | 0, m = m + Math.imul(O, Ne) | 0, P = P + Math.imul(O, De) | 0, g = g + Math.imul(ye, Ve) | 0, m = m + Math.imul(ye, Ze) | 0, m = m + Math.imul(Ee, Ve) | 0, P = P + Math.imul(Ee, Ze) | 0, g = g + Math.imul(se, ke) | 0, m = m + Math.imul(se, Re) | 0, m = m + Math.imul(le, ke) | 0, P = P + Math.imul(le, Re) | 0, g = g + Math.imul(oe, Me) | 0, m = m + Math.imul(oe, Oe) | 0, m = m + Math.imul(me, Me) | 0, P = P + Math.imul(me, Oe) | 0, g = g + Math.imul(ie, Ce) | 0, m = m + Math.imul(ie, ze) | 0, m = m + Math.imul(Z, Ce) | 0, P = P + Math.imul(Z, ze) | 0, g = g + Math.imul(Y, qe) | 0, m = m + Math.imul(Y, Ke) | 0, m = m + Math.imul(ee, qe) | 0, P = P + Math.imul(ee, Ke) | 0, g = g + Math.imul(j, We) | 0, m = m + Math.imul(j, Qe) | 0, m = m + Math.imul(G, We) | 0, P = P + Math.imul(G, Qe) | 0, g = g + Math.imul(A, ft) | 0, m = m + Math.imul(A, ht) | 0, m = m + Math.imul(K, ft) | 0, P = P + Math.imul(K, ht) | 0; var Un = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, g = Math.imul(ne, de), m = Math.imul(ne, ve), m = m + Math.imul(fe, de) | 0, P = Math.imul(fe, ve), g = g + Math.imul($, Ne) | 0, m = m + Math.imul($, De) | 0, m = m + Math.imul(te, Ne) | 0, P = P + Math.imul(te, De) | 0, g = g + Math.imul(C, Ve) | 0, m = m + Math.imul(C, Ze) | 0, m = m + Math.imul(O, Ve) | 0, P = P + Math.imul(O, Ze) | 0, g = g + Math.imul(ye, ke) | 0, m = m + Math.imul(ye, Re) | 0, m = m + Math.imul(Ee, ke) | 0, P = P + Math.imul(Ee, Re) | 0, g = g + Math.imul(se, Me) | 0, m = m + Math.imul(se, Pe) | 0, m = m + Math.imul(le, Me) | 0, P = P + Math.imul(le, Pe) | 0, g = g + Math.imul(oe, Ce) | 0, m = m + Math.imul(oe, ze) | 0, m = m + Math.imul(me, Ce) | 0, P = P + Math.imul(me, ze) | 0, g = g + Math.imul(ie, qe) | 0, m = m + Math.imul(ie, Ke) | 0, m = m + Math.imul(Z, qe) | 0, P = P + Math.imul(Z, Ke) | 0, g = g + Math.imul(Y, We) | 0, m = m + Math.imul(Y, $e) | 0, m = m + Math.imul(ee, We) | 0, P = P + Math.imul(ee, $e) | 0, g = g + Math.imul(j, ft) | 0, m = m + Math.imul(j, ht) | 0, m = m + Math.imul(G, ft) | 0, P = P + Math.imul(G, ht) | 0, g = g + Math.imul(A, rt) | 0, m = m + Math.imul(A, _t) | 0, m = m + Math.imul(K, rt) | 0, P = P + Math.imul(K, _t) | 0; + w = (P + (m >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, g = Math.imul(ne, de), m = Math.imul(ne, ve), m = m + Math.imul(fe, de) | 0, P = Math.imul(fe, ve), g = g + Math.imul($, Ne) | 0, m = m + Math.imul($, De) | 0, m = m + Math.imul(te, Ne) | 0, P = P + Math.imul(te, De) | 0, g = g + Math.imul(C, Ve) | 0, m = m + Math.imul(C, Ze) | 0, m = m + Math.imul(O, Ve) | 0, P = P + Math.imul(O, Ze) | 0, g = g + Math.imul(ye, ke) | 0, m = m + Math.imul(ye, Re) | 0, m = m + Math.imul(Ee, ke) | 0, P = P + Math.imul(Ee, Re) | 0, g = g + Math.imul(se, Me) | 0, m = m + Math.imul(se, Oe) | 0, m = m + Math.imul(le, Me) | 0, P = P + Math.imul(le, Oe) | 0, g = g + Math.imul(oe, Ce) | 0, m = m + Math.imul(oe, ze) | 0, m = m + Math.imul(me, Ce) | 0, P = P + Math.imul(me, ze) | 0, g = g + Math.imul(ie, qe) | 0, m = m + Math.imul(ie, Ke) | 0, m = m + Math.imul(Z, qe) | 0, P = P + Math.imul(Z, Ke) | 0, g = g + Math.imul(Y, We) | 0, m = m + Math.imul(Y, Qe) | 0, m = m + Math.imul(ee, We) | 0, P = P + Math.imul(ee, Qe) | 0, g = g + Math.imul(j, ft) | 0, m = m + Math.imul(j, ht) | 0, m = m + Math.imul(G, ft) | 0, P = P + Math.imul(G, ht) | 0, g = g + Math.imul(A, rt) | 0, m = m + Math.imul(A, _t) | 0, m = m + Math.imul(K, rt) | 0, P = P + Math.imul(K, _t) | 0; var jn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, g = Math.imul(ne, Ne), m = Math.imul(ne, De), m = m + Math.imul(fe, Ne) | 0, P = Math.imul(fe, De), g = g + Math.imul($, Ve) | 0, m = m + Math.imul($, Ze) | 0, m = m + Math.imul(te, Ve) | 0, P = P + Math.imul(te, Ze) | 0, g = g + Math.imul(C, ke) | 0, m = m + Math.imul(C, Re) | 0, m = m + Math.imul(O, ke) | 0, P = P + Math.imul(O, Re) | 0, g = g + Math.imul(ye, Me) | 0, m = m + Math.imul(ye, Pe) | 0, m = m + Math.imul(Ee, Me) | 0, P = P + Math.imul(Ee, Pe) | 0, g = g + Math.imul(se, Ce) | 0, m = m + Math.imul(se, ze) | 0, m = m + Math.imul(le, Ce) | 0, P = P + Math.imul(le, ze) | 0, g = g + Math.imul(oe, qe) | 0, m = m + Math.imul(oe, Ke) | 0, m = m + Math.imul(me, qe) | 0, P = P + Math.imul(me, Ke) | 0, g = g + Math.imul(ie, We) | 0, m = m + Math.imul(ie, $e) | 0, m = m + Math.imul(Z, We) | 0, P = P + Math.imul(Z, $e) | 0, g = g + Math.imul(Y, ft) | 0, m = m + Math.imul(Y, ht) | 0, m = m + Math.imul(ee, ft) | 0, P = P + Math.imul(ee, ht) | 0, g = g + Math.imul(j, rt) | 0, m = m + Math.imul(j, _t) | 0, m = m + Math.imul(G, rt) | 0, P = P + Math.imul(G, _t) | 0; + w = (P + (m >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, g = Math.imul(ne, Ne), m = Math.imul(ne, De), m = m + Math.imul(fe, Ne) | 0, P = Math.imul(fe, De), g = g + Math.imul($, Ve) | 0, m = m + Math.imul($, Ze) | 0, m = m + Math.imul(te, Ve) | 0, P = P + Math.imul(te, Ze) | 0, g = g + Math.imul(C, ke) | 0, m = m + Math.imul(C, Re) | 0, m = m + Math.imul(O, ke) | 0, P = P + Math.imul(O, Re) | 0, g = g + Math.imul(ye, Me) | 0, m = m + Math.imul(ye, Oe) | 0, m = m + Math.imul(Ee, Me) | 0, P = P + Math.imul(Ee, Oe) | 0, g = g + Math.imul(se, Ce) | 0, m = m + Math.imul(se, ze) | 0, m = m + Math.imul(le, Ce) | 0, P = P + Math.imul(le, ze) | 0, g = g + Math.imul(oe, qe) | 0, m = m + Math.imul(oe, Ke) | 0, m = m + Math.imul(me, qe) | 0, P = P + Math.imul(me, Ke) | 0, g = g + Math.imul(ie, We) | 0, m = m + Math.imul(ie, Qe) | 0, m = m + Math.imul(Z, We) | 0, P = P + Math.imul(Z, Qe) | 0, g = g + Math.imul(Y, ft) | 0, m = m + Math.imul(Y, ht) | 0, m = m + Math.imul(ee, ft) | 0, P = P + Math.imul(ee, ht) | 0, g = g + Math.imul(j, rt) | 0, m = m + Math.imul(j, _t) | 0, m = m + Math.imul(G, rt) | 0, P = P + Math.imul(G, _t) | 0; var rn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, g = Math.imul(ne, Ve), m = Math.imul(ne, Ze), m = m + Math.imul(fe, Ve) | 0, P = Math.imul(fe, Ze), g = g + Math.imul($, ke) | 0, m = m + Math.imul($, Re) | 0, m = m + Math.imul(te, ke) | 0, P = P + Math.imul(te, Re) | 0, g = g + Math.imul(C, Me) | 0, m = m + Math.imul(C, Pe) | 0, m = m + Math.imul(O, Me) | 0, P = P + Math.imul(O, Pe) | 0, g = g + Math.imul(ye, Ce) | 0, m = m + Math.imul(ye, ze) | 0, m = m + Math.imul(Ee, Ce) | 0, P = P + Math.imul(Ee, ze) | 0, g = g + Math.imul(se, qe) | 0, m = m + Math.imul(se, Ke) | 0, m = m + Math.imul(le, qe) | 0, P = P + Math.imul(le, Ke) | 0, g = g + Math.imul(oe, We) | 0, m = m + Math.imul(oe, $e) | 0, m = m + Math.imul(me, We) | 0, P = P + Math.imul(me, $e) | 0, g = g + Math.imul(ie, ft) | 0, m = m + Math.imul(ie, ht) | 0, m = m + Math.imul(Z, ft) | 0, P = P + Math.imul(Z, ht) | 0, g = g + Math.imul(Y, rt) | 0, m = m + Math.imul(Y, _t) | 0, m = m + Math.imul(ee, rt) | 0, P = P + Math.imul(ee, _t) | 0; + w = (P + (m >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, g = Math.imul(ne, Ve), m = Math.imul(ne, Ze), m = m + Math.imul(fe, Ve) | 0, P = Math.imul(fe, Ze), g = g + Math.imul($, ke) | 0, m = m + Math.imul($, Re) | 0, m = m + Math.imul(te, ke) | 0, P = P + Math.imul(te, Re) | 0, g = g + Math.imul(C, Me) | 0, m = m + Math.imul(C, Oe) | 0, m = m + Math.imul(O, Me) | 0, P = P + Math.imul(O, Oe) | 0, g = g + Math.imul(ye, Ce) | 0, m = m + Math.imul(ye, ze) | 0, m = m + Math.imul(Ee, Ce) | 0, P = P + Math.imul(Ee, ze) | 0, g = g + Math.imul(se, qe) | 0, m = m + Math.imul(se, Ke) | 0, m = m + Math.imul(le, qe) | 0, P = P + Math.imul(le, Ke) | 0, g = g + Math.imul(oe, We) | 0, m = m + Math.imul(oe, Qe) | 0, m = m + Math.imul(me, We) | 0, P = P + Math.imul(me, Qe) | 0, g = g + Math.imul(ie, ft) | 0, m = m + Math.imul(ie, ht) | 0, m = m + Math.imul(Z, ft) | 0, P = P + Math.imul(Z, ht) | 0, g = g + Math.imul(Y, rt) | 0, m = m + Math.imul(Y, _t) | 0, m = m + Math.imul(ee, rt) | 0, P = P + Math.imul(ee, _t) | 0; var Vn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, g = Math.imul(ne, ke), m = Math.imul(ne, Re), m = m + Math.imul(fe, ke) | 0, P = Math.imul(fe, Re), g = g + Math.imul($, Me) | 0, m = m + Math.imul($, Pe) | 0, m = m + Math.imul(te, Me) | 0, P = P + Math.imul(te, Pe) | 0, g = g + Math.imul(C, Ce) | 0, m = m + Math.imul(C, ze) | 0, m = m + Math.imul(O, Ce) | 0, P = P + Math.imul(O, ze) | 0, g = g + Math.imul(ye, qe) | 0, m = m + Math.imul(ye, Ke) | 0, m = m + Math.imul(Ee, qe) | 0, P = P + Math.imul(Ee, Ke) | 0, g = g + Math.imul(se, We) | 0, m = m + Math.imul(se, $e) | 0, m = m + Math.imul(le, We) | 0, P = P + Math.imul(le, $e) | 0, g = g + Math.imul(oe, ft) | 0, m = m + Math.imul(oe, ht) | 0, m = m + Math.imul(me, ft) | 0, P = P + Math.imul(me, ht) | 0, g = g + Math.imul(ie, rt) | 0, m = m + Math.imul(ie, _t) | 0, m = m + Math.imul(Z, rt) | 0, P = P + Math.imul(Z, _t) | 0; + w = (P + (m >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, g = Math.imul(ne, ke), m = Math.imul(ne, Re), m = m + Math.imul(fe, ke) | 0, P = Math.imul(fe, Re), g = g + Math.imul($, Me) | 0, m = m + Math.imul($, Oe) | 0, m = m + Math.imul(te, Me) | 0, P = P + Math.imul(te, Oe) | 0, g = g + Math.imul(C, Ce) | 0, m = m + Math.imul(C, ze) | 0, m = m + Math.imul(O, Ce) | 0, P = P + Math.imul(O, ze) | 0, g = g + Math.imul(ye, qe) | 0, m = m + Math.imul(ye, Ke) | 0, m = m + Math.imul(Ee, qe) | 0, P = P + Math.imul(Ee, Ke) | 0, g = g + Math.imul(se, We) | 0, m = m + Math.imul(se, Qe) | 0, m = m + Math.imul(le, We) | 0, P = P + Math.imul(le, Qe) | 0, g = g + Math.imul(oe, ft) | 0, m = m + Math.imul(oe, ht) | 0, m = m + Math.imul(me, ft) | 0, P = P + Math.imul(me, ht) | 0, g = g + Math.imul(ie, rt) | 0, m = m + Math.imul(ie, _t) | 0, m = m + Math.imul(Z, rt) | 0, P = P + Math.imul(Z, _t) | 0; var zn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, g = Math.imul(ne, Me), m = Math.imul(ne, Pe), m = m + Math.imul(fe, Me) | 0, P = Math.imul(fe, Pe), g = g + Math.imul($, Ce) | 0, m = m + Math.imul($, ze) | 0, m = m + Math.imul(te, Ce) | 0, P = P + Math.imul(te, ze) | 0, g = g + Math.imul(C, qe) | 0, m = m + Math.imul(C, Ke) | 0, m = m + Math.imul(O, qe) | 0, P = P + Math.imul(O, Ke) | 0, g = g + Math.imul(ye, We) | 0, m = m + Math.imul(ye, $e) | 0, m = m + Math.imul(Ee, We) | 0, P = P + Math.imul(Ee, $e) | 0, g = g + Math.imul(se, ft) | 0, m = m + Math.imul(se, ht) | 0, m = m + Math.imul(le, ft) | 0, P = P + Math.imul(le, ht) | 0, g = g + Math.imul(oe, rt) | 0, m = m + Math.imul(oe, _t) | 0, m = m + Math.imul(me, rt) | 0, P = P + Math.imul(me, _t) | 0; + w = (P + (m >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, g = Math.imul(ne, Me), m = Math.imul(ne, Oe), m = m + Math.imul(fe, Me) | 0, P = Math.imul(fe, Oe), g = g + Math.imul($, Ce) | 0, m = m + Math.imul($, ze) | 0, m = m + Math.imul(te, Ce) | 0, P = P + Math.imul(te, ze) | 0, g = g + Math.imul(C, qe) | 0, m = m + Math.imul(C, Ke) | 0, m = m + Math.imul(O, qe) | 0, P = P + Math.imul(O, Ke) | 0, g = g + Math.imul(ye, We) | 0, m = m + Math.imul(ye, Qe) | 0, m = m + Math.imul(Ee, We) | 0, P = P + Math.imul(Ee, Qe) | 0, g = g + Math.imul(se, ft) | 0, m = m + Math.imul(se, ht) | 0, m = m + Math.imul(le, ft) | 0, P = P + Math.imul(le, ht) | 0, g = g + Math.imul(oe, rt) | 0, m = m + Math.imul(oe, _t) | 0, m = m + Math.imul(me, rt) | 0, P = P + Math.imul(me, _t) | 0; var Tr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, g = Math.imul(ne, Ce), m = Math.imul(ne, ze), m = m + Math.imul(fe, Ce) | 0, P = Math.imul(fe, ze), g = g + Math.imul($, qe) | 0, m = m + Math.imul($, Ke) | 0, m = m + Math.imul(te, qe) | 0, P = P + Math.imul(te, Ke) | 0, g = g + Math.imul(C, We) | 0, m = m + Math.imul(C, $e) | 0, m = m + Math.imul(O, We) | 0, P = P + Math.imul(O, $e) | 0, g = g + Math.imul(ye, ft) | 0, m = m + Math.imul(ye, ht) | 0, m = m + Math.imul(Ee, ft) | 0, P = P + Math.imul(Ee, ht) | 0, g = g + Math.imul(se, rt) | 0, m = m + Math.imul(se, _t) | 0, m = m + Math.imul(le, rt) | 0, P = P + Math.imul(le, _t) | 0; + w = (P + (m >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, g = Math.imul(ne, Ce), m = Math.imul(ne, ze), m = m + Math.imul(fe, Ce) | 0, P = Math.imul(fe, ze), g = g + Math.imul($, qe) | 0, m = m + Math.imul($, Ke) | 0, m = m + Math.imul(te, qe) | 0, P = P + Math.imul(te, Ke) | 0, g = g + Math.imul(C, We) | 0, m = m + Math.imul(C, Qe) | 0, m = m + Math.imul(O, We) | 0, P = P + Math.imul(O, Qe) | 0, g = g + Math.imul(ye, ft) | 0, m = m + Math.imul(ye, ht) | 0, m = m + Math.imul(Ee, ft) | 0, P = P + Math.imul(Ee, ht) | 0, g = g + Math.imul(se, rt) | 0, m = m + Math.imul(se, _t) | 0, m = m + Math.imul(le, rt) | 0, P = P + Math.imul(le, _t) | 0; var Fn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, g = Math.imul(ne, qe), m = Math.imul(ne, Ke), m = m + Math.imul(fe, qe) | 0, P = Math.imul(fe, Ke), g = g + Math.imul($, We) | 0, m = m + Math.imul($, $e) | 0, m = m + Math.imul(te, We) | 0, P = P + Math.imul(te, $e) | 0, g = g + Math.imul(C, ft) | 0, m = m + Math.imul(C, ht) | 0, m = m + Math.imul(O, ft) | 0, P = P + Math.imul(O, ht) | 0, g = g + Math.imul(ye, rt) | 0, m = m + Math.imul(ye, _t) | 0, m = m + Math.imul(Ee, rt) | 0, P = P + Math.imul(Ee, _t) | 0; + w = (P + (m >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, g = Math.imul(ne, qe), m = Math.imul(ne, Ke), m = m + Math.imul(fe, qe) | 0, P = Math.imul(fe, Ke), g = g + Math.imul($, We) | 0, m = m + Math.imul($, Qe) | 0, m = m + Math.imul(te, We) | 0, P = P + Math.imul(te, Qe) | 0, g = g + Math.imul(C, ft) | 0, m = m + Math.imul(C, ht) | 0, m = m + Math.imul(O, ft) | 0, P = P + Math.imul(O, ht) | 0, g = g + Math.imul(ye, rt) | 0, m = m + Math.imul(ye, _t) | 0, m = m + Math.imul(Ee, rt) | 0, P = P + Math.imul(Ee, _t) | 0; var Hn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Hn >>> 26) | 0, Hn &= 67108863, g = Math.imul(ne, We), m = Math.imul(ne, $e), m = m + Math.imul(fe, We) | 0, P = Math.imul(fe, $e), g = g + Math.imul($, ft) | 0, m = m + Math.imul($, ht) | 0, m = m + Math.imul(te, ft) | 0, P = P + Math.imul(te, ht) | 0, g = g + Math.imul(C, rt) | 0, m = m + Math.imul(C, _t) | 0, m = m + Math.imul(O, rt) | 0, P = P + Math.imul(O, _t) | 0; + w = (P + (m >>> 13) | 0) + (Hn >>> 26) | 0, Hn &= 67108863, g = Math.imul(ne, We), m = Math.imul(ne, Qe), m = m + Math.imul(fe, We) | 0, P = Math.imul(fe, Qe), g = g + Math.imul($, ft) | 0, m = m + Math.imul($, ht) | 0, m = m + Math.imul(te, ft) | 0, P = P + Math.imul(te, ht) | 0, g = g + Math.imul(C, rt) | 0, m = m + Math.imul(C, _t) | 0, m = m + Math.imul(O, rt) | 0, P = P + Math.imul(O, _t) | 0; var qn = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (qn >>> 26) | 0, qn &= 67108863, g = Math.imul(ne, ft), m = Math.imul(ne, ht), m = m + Math.imul(fe, ft) | 0, P = Math.imul(fe, ht), g = g + Math.imul($, rt) | 0, m = m + Math.imul($, _t) | 0, m = m + Math.imul(te, rt) | 0, P = P + Math.imul(te, _t) | 0; var Ji = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (Ji >>> 26) | 0, Ji &= 67108863, g = Math.imul(ne, rt), m = Math.imul(ne, _t), m = m + Math.imul(fe, rt) | 0, P = Math.imul(fe, _t); - var ga = (w + g | 0) + ((m & 8191) << 13) | 0; - return w = (P + (m >>> 13) | 0) + (ga >>> 26) | 0, ga &= 67108863, M[0] = gr, M[1] = yr, M[2] = br, M[3] = wr, M[4] = tr, M[5] = Dn, M[6] = Ln, M[7] = Bn, M[8] = Un, M[9] = jn, M[10] = rn, M[11] = Vn, M[12] = zn, M[13] = Tr, M[14] = Fn, M[15] = Hn, M[16] = qn, M[17] = Ji, M[18] = ga, w !== 0 && (M[19] = w, y.length++), y; + var pa = (w + g | 0) + ((m & 8191) << 13) | 0; + return w = (P + (m >>> 13) | 0) + (pa >>> 26) | 0, pa &= 67108863, M[0] = gr, M[1] = yr, M[2] = br, M[3] = wr, M[4] = tr, M[5] = Dn, M[6] = Ln, M[7] = Bn, M[8] = Un, M[9] = jn, M[10] = rn, M[11] = Vn, M[12] = zn, M[13] = Tr, M[14] = Fn, M[15] = Hn, M[16] = qn, M[17] = Ji, M[18] = pa, w !== 0 && (M[19] = w, y.length++), y; }; Math.imul || (L = F); function D(d, l, h) { @@ -5276,67 +5276,67 @@ ${gz(e, r)}`); return h._forceRed(this); }; })(t, Lt); - })(Jv); - var qz = Jv.exports; - var ct = /* @__PURE__ */ nc(qz); + })(Zv); + var Gz = Zv.exports; + var ct = /* @__PURE__ */ tc(Gz); function Ki(t) { return ct.isBN(t); } var SN = /^0x[\da-fA-F]+$/; - var Wz = /^[\da-fA-F]+$/; + var Kz = /^[\da-fA-F]+$/; function Ft(t, e = -1, r) { return typeof t == "string" && (t === "0x" || SN.test(t)) && (e === -1 ? r || t.length % 2 === 0 : t.length === 2 + Math.ceil(e / 4)); } function di(t) { return !!t && typeof t == "object"; } - function Qv(...t) { + function Jv(...t) { return (e) => (di(e) || St(e)) && t.every((r) => St(e[r])); } - function Gz(...t) { + function Xz(...t) { return (e) => St(e) && t.every((r) => St(e[r])); } function ig(...t) { return (e) => di(e) && t.every((r) => St(e[r])); } - var $v = /* @__PURE__ */ Qv("toBigInt"); - var e4 = /* @__PURE__ */ Qv("toBn"); - function t4(t) { - return typeof t == "bigint" ? t : t ? Ft(t) ? EN(t.toString()) : Ki(t) ? vt(t.toString()) : $v(t) ? t.toBigInt() : e4(t) ? vt(t.toBn().toString()) : vt(t) : vt(0); + var Qv = /* @__PURE__ */ Jv("toBigInt"); + var $v = /* @__PURE__ */ Jv("toBn"); + function e4(t) { + return typeof t == "bigint" ? t : t ? Ft(t) ? EN(t.toString()) : Ki(t) ? bt(t.toString()) : Qv(t) ? t.toBigInt() : $v(t) ? bt(t.toBn().toString()) : bt(t) : bt(0); } - function Kz(t) { - const e = t4(t); + function Yz(t) { + const e = e4(t); if (e < Yu) throw new Error("square root of negative numbers is not supported"); if (e <= vN) - return vt(~~Math.sqrt(Number(e))); + return bt(~~Math.sqrt(Number(e))); let r = xN; for (; ; ) { - const n = e / r + r >> Yc; - if (r === n || r === n - Yc) + const n = e / r + r >> Kc; + if (r === n || r === n - Kc) return r; r = n; } } - var hn = typeof vt == "function" && typeof vt.asIntN == "function"; + var hn = typeof bt == "function" && typeof bt.asIntN == "function"; var MN = typeof __require == "function" && typeof module < "u"; - var Xz = typeof __dirname < "u"; - var Yz = !MN; - var Zz = typeof WebAssembly < "u"; - var r4 = typeof hi.Buffer == "function" && typeof hi.Buffer.isBuffer == "function"; - var Jz = typeof hi.process == "object"; - function n4(t) { - return r4 && !!t && St(t.readDoubleLE) && hi.Buffer.isBuffer(t); + var Zz = typeof __dirname < "u"; + var Jz = !MN; + var Qz = typeof WebAssembly < "u"; + var t4 = typeof hi.Buffer == "function" && typeof hi.Buffer.isBuffer == "function"; + var $z = typeof hi.process == "object"; + function r4(t) { + return t4 && !!t && St(t.readDoubleLE) && hi.Buffer.isBuffer(t); } function Et(t) { return (t && t.constructor) === Uint8Array || t instanceof Uint8Array; } - var Qz = new hz(); - function Dr(t) { - return t ? Qz.encode(t.toString()) : new Uint8Array(); + var eF = new pz(); + function Cr(t) { + return t ? eF.encode(t.toString()) : new Uint8Array(); } function Xe(t) { - return Et(t) ? n4(t) ? new Uint8Array(t) : t : Ft(t) ? On(t) : Array.isArray(t) ? new Uint8Array(t) : Dr(t); + return Et(t) ? r4(t) ? new Uint8Array(t) : t : Ft(t) ? On(t) : Array.isArray(t) ? new Uint8Array(t) : Cr(t); } function AN(t, e) { const r = Xe(t), n = Xe(e); @@ -5354,7 +5354,7 @@ ${gz(e, r)}`); i++; } } - function $t(...t) { + function Qt(...t) { const e = t.length, r = new Array(e); let n = 0; for (let i = 0; i < e; i++) @@ -5372,7 +5372,7 @@ ${gz(e, r)}`); i.set(t[s], n), n += t[s].length; return i; } - function i4(t) { + function n4(t) { const e = t.length | 0; for (let r = 0; r < e; r++) if (t[r] | 0) @@ -5402,10 +5402,10 @@ ${gz(e, r)}`); const i = new Uint8Array(n); return i.set(t, r ? 0 : n - t.length), i; } - function s4(t) { + function i4(t) { return t.sort(AN); } - function Zn(t, { isLe: e = true, isNegative: r = false } = {}) { + function Yn(t, { isLe: e = true, isNegative: r = false } = {}) { e || (t = t.slice().reverse()); const n = t.length; if (r && n && t[n - 1] & 128) @@ -5446,8 +5446,8 @@ ${gz(e, r)}`); return new ct(t, "le"); } } - function $z(t) { - return r4 ? hi.Buffer.from(t || []) : new Uint8Array(t || []); + function tF(t) { + return t4 ? hi.Buffer.from(t || []) : new Uint8Array(t || []); } function NN(t, { bitLength: e = 32, isLe: r = true } = {}) { if (e !== 32 && e !== 64) @@ -5457,20 +5457,20 @@ ${gz(e, r)}`); const n = new DataView(t.buffer, t.byteOffset); return e === 32 ? n.getFloat32(0, r) : n.getFloat64(0, r); } - var O1 = new Array(256); + var P1 = new Array(256); var IN = new Array(256 * 256); for (let t = 0; t < 256; t++) - O1[t] = t.toString(16).padStart(2, "0"); + P1[t] = t.toString(16).padStart(2, "0"); for (let t = 0; t < 256; t++) { const e = t << 8; for (let r = 0; r < 256; r++) - IN[e | r] = O1[t] + O1[r]; + IN[e | r] = P1[t] + P1[r]; } - function Q2(t, e) { + function J2(t, e) { const r = t.length % 2 | 0, n = t.length - r | 0; for (let i = 0; i < n; i += 2) e += IN[t[i] << 8 | t[i + 1]]; - return r && (e += O1[t[n] | 0]), e; + return r && (e += P1[t[n] | 0]), e; } function Bt(t, e = -1, r = true) { const n = r ? "0x" : ""; @@ -5478,11 +5478,11 @@ ${gz(e, r)}`); if (e > 0) { const i = Math.ceil(e / 8); if (t.length > i) - return `${Q2(t.subarray(0, i / 2), n)}\u2026${Q2(t.subarray(t.length - i / 2), "")}`; + return `${J2(t.subarray(0, i / 2), n)}\u2026${J2(t.subarray(t.length - i / 2), "")}`; } } else return n; - return Q2(t, n); + return J2(t, n); } function ON(t, { isLe: e = true, isNegative: r = false } = {}) { e || (t = t.slice().reverse()); @@ -5525,91 +5525,91 @@ ${gz(e, r)}`); throw new Error("Value more than 48-bits cannot be reliably converted"); } } - var eF = new uz("utf-8"); - function fo(t) { - return t ? eF.decode(t) : ""; + var rF = new fz("utf-8"); + function lo(t) { + return t ? rF.decode(t) : ""; } - var Rp = /* @__PURE__ */ Xe(`Ethereum Signed Message: + var Cp = /* @__PURE__ */ Xe(`Ethereum Signed Message: `); var Sf = /* @__PURE__ */ Xe(""); var Mf = /* @__PURE__ */ Xe(""); - var tF = Sf.length + Mf.length; - function ld(t, e) { - return t.length >= tF && Pn(t.subarray(0, Sf.length), Sf) && Pn(t.slice(-Mf.length), Mf) || e && t.length >= Rp.length && Pn(t.subarray(0, Rp.length), Rp); + var nF = Sf.length + Mf.length; + function ud(t, e) { + return t.length >= nF && Pn(t.subarray(0, Sf.length), Sf) && Pn(t.slice(-Mf.length), Mf) || e && t.length >= Cp.length && Pn(t.subarray(0, Cp.length), Cp); } function PN(t) { const e = Xe(t); - return ld(e, false) ? e.subarray(Sf.length, e.length - Mf.length) : e; + return ud(e, false) ? e.subarray(Sf.length, e.length - Mf.length) : e; } function kN(t) { const e = Xe(t); - return ld(e, true) ? e : pi([Sf, e, Mf]); + return ud(e, true) ? e : pi([Sf, e, Mf]); } - var H9 = vt(256); - var rF = vt(255); - function nF(t, e, r) { + var F9 = bt(256); + var iF = bt(255); + function sF(t, e, r) { const n = [], i = r && t < Yu; - for (i && (t = (t + Yc) * -Yc); t !== Yu; ) { - const s = t % H9, o = Number(i ? s ^ rF : s); - e ? n.push(o) : n.unshift(o), t = (t - s) / H9; + for (i && (t = (t + Kc) * -Kc); t !== Yu; ) { + const s = t % F9, o = Number(i ? s ^ iF : s); + e ? n.push(o) : n.unshift(o), t = (t - s) / F9; } return Uint8Array.from(n); } - function o4(t, { bitLength: e = -1, isLe: r = true, isNegative: n = false } = {}) { - const i = t4(t); + function s4(t, { bitLength: e = -1, isLe: r = true, isNegative: n = false } = {}) { + const i = e4(t); if (i === Yu) return e === -1 ? new Uint8Array(1) : new Uint8Array(Math.ceil((e || 0) / 8)); - const s = nF(i, r, n); + const s = sF(i, r, n); if (e === -1) return s; const o = Math.ceil((e || 0) / 8), a = new Uint8Array(o); return n && a.fill(255), a.set(s, r ? 0 : o - s.length), a; } - function iF(t, { bitLength: e = -1, isLe: r = false, isNegative: n = false } = {}) { - return Bt(o4(t || 0, { bitLength: e, isLe: r, isNegative: n })); + function oF(t, { bitLength: e = -1, isLe: r = false, isNegative: n = false } = {}) { + return Bt(s4(t || 0, { bitLength: e, isLe: r, isNegative: n })); } - function Jh(t) { + function Zh(t) { if (!t || t === "0x") return ""; if (SN.test(t)) return t.substring(2); - if (Wz.test(t)) + if (Kz.test(t)) return t; throw new Error(`Expected hex value to convert, found '${t}'`); } function Zu(t, { isLe: e = false, isNegative: r = false } = {}) { if (!t || t === "0x") return new ct(0); - const n = Jh(t), i = new ct(n, 16, e ? "le" : "be"); + const n = Zh(t), i = new ct(n, 16, e ? "le" : "be"); return r ? i.fromTwos(n.length * 4) : i; } - var a4 = /* @__PURE__ */ rg((t, e) => t.gt(e)); + var o4 = /* @__PURE__ */ rg((t, e) => t.gt(e)); var RN = /* @__PURE__ */ rg((t, e) => t.lt(e)); - var Jr = /* @__PURE__ */ new ct(0); + var Zr = /* @__PURE__ */ new ct(0); var bl = /* @__PURE__ */ new ct(1); - var r0 = /* @__PURE__ */ new ct(2); - var sF = /* @__PURE__ */ new ct(3); - var oF = /* @__PURE__ */ new ct(4); - var aF = /* @__PURE__ */ new ct(5); - var cF = /* @__PURE__ */ new ct(6); - var uF = /* @__PURE__ */ new ct(7); + var n0 = /* @__PURE__ */ new ct(2); + var aF = /* @__PURE__ */ new ct(3); + var cF = /* @__PURE__ */ new ct(4); + var uF = /* @__PURE__ */ new ct(5); + var lF = /* @__PURE__ */ new ct(6); + var fF = /* @__PURE__ */ new ct(7); var CN = /* @__PURE__ */ new ct(8); - var lF = /* @__PURE__ */ new ct(9); - var fF = /* @__PURE__ */ new ct(10); + var hF = /* @__PURE__ */ new ct(9); + var dF = /* @__PURE__ */ new ct(10); var DN = /* @__PURE__ */ new ct(100); - var hF = /* @__PURE__ */ new ct(1e3); + var pF = /* @__PURE__ */ new ct(1e3); var LN = /* @__PURE__ */ new ct(1e6); - var fd = /* @__PURE__ */ new ct(1e9); - var BN = fd.mul(fd); + var ld = /* @__PURE__ */ new ct(1e9); + var BN = ld.mul(ld); var UN = /* @__PURE__ */ new ct(Number.MAX_SAFE_INTEGER); var jN = /* @__PURE__ */ new ct(94906265); - function ic(t) { + function rc(t) { return typeof t == "bigint"; } function on(t) { - return t ? ct.isBN(t) ? t : Ft(t) ? Zu(t.toString()) : ic(t) ? new ct(t.toString()) : e4(t) ? t.toBn() : $v(t) ? new ct(t.toBigInt().toString()) : new ct(t) : new ct(0); + return t ? ct.isBN(t) ? t : Ft(t) ? Zu(t.toString()) : rc(t) ? new ct(t.toString()) : $v(t) ? t.toBn() : Qv(t) ? new ct(t.toBigInt().toString()) : new ct(t) : new ct(0); } - function c4(t) { + function a4(t) { const e = on(t); if (e.isNeg()) throw new Error("square root of negative numbers is not supported"); @@ -5623,8 +5623,8 @@ ${gz(e, r)}`); r = n; } } - var dF = { bitLength: -1, isLe: true, isNegative: false }; - function Hr(t, { bitLength: e = -1, isLe: r = true, isNegative: n = false } = dF) { + var mF = { bitLength: -1, isLe: true, isNegative: false }; + function Fr(t, { bitLength: e = -1, isLe: r = true, isNegative: n = false } = mF) { const i = on(t), s = Math.ceil(e === -1 ? i.bitLength() / 8 : (e || 0) / 8); if (!t) return e === -1 ? new Uint8Array(1) : new Uint8Array(s); @@ -5632,25 +5632,25 @@ ${gz(e, r)}`); return o.set(a.toArray(r ? "le" : "be", s), 0), o; } function VN(t, { bitLength: e = -1, isLe: r = false, isNegative: n = false } = {}) { - return Bt(Hr(t, { bitLength: e, isLe: r, isNegative: n })); + return Bt(Fr(t, { bitLength: e, isLe: r, isNegative: n })); } - function pF(t) { + function gF(t) { return new Uint8Array(t || []); } - var mF = r0.pow(new ct(8 - 2)).isub(bl); - var gF = r0.pow(new ct(16 - 2)).isub(bl); - var yF = r0.pow(new ct(32 - 2)).isub(bl); - var bF = { bitLength: 16 }; - var wF = { bitLength: 32 }; - function qr(t) { + var yF = n0.pow(new ct(8 - 2)).isub(bl); + var bF = n0.pow(new ct(16 - 2)).isub(bl); + var wF = n0.pow(new ct(32 - 2)).isub(bl); + var vF = { bitLength: 16 }; + var xF = { bitLength: 32 }; + function Hr(t) { const e = on(t); - if (e.lte(mF)) - return new Uint8Array([e.toNumber() << 2]); - if (e.lte(gF)) - return Hr(e.shln(2).iadd(bl), bF); if (e.lte(yF)) - return Hr(e.shln(2).iadd(r0), wF); - const r = Hr(e); + return new Uint8Array([e.toNumber() << 2]); + if (e.lte(bF)) + return Fr(e.shln(2).iadd(bl), vF); + if (e.lte(wF)) + return Fr(e.shln(2).iadd(n0), xF); + const r = Fr(e); let n = r.length; for (; r[n - 1] === 0; ) n--; @@ -5661,9 +5661,9 @@ ${gz(e, r)}`); r.subarray(0, n) ]); } - function ua(t) { + function aa(t) { return pi([ - qr(t.length), + Hr(t.length), t ]); } @@ -5686,12 +5686,12 @@ ${gz(e, r)}`); case 7: return [7, new ct(e[1] + (e[2] << 8) + (e[3] << 16) + (e[4] + (e[5] << 8) + (e[6] << 16)) * 16777216)]; default: - return [r, Zn(e.subarray(1, r))]; + return [r, Yn(e.subarray(1, r))]; } } } } - function ou(t) { + function su(t) { switch (t[0] & 3) { case 0: return [1, t[0] >>> 2]; @@ -5712,7 +5712,7 @@ ${gz(e, r)}`); } } } - function hd(t) { + function fd(t) { const [e, r] = sg(t), n = e + r.toNumber(); return [ n, @@ -5721,9 +5721,9 @@ ${gz(e, r)}`); } var zN = 60 * 1e3; var FN = zN * 60; - var vF = FN * 24; - var q9 = { days: 0, hours: 0, milliseconds: 0, minutes: 0, seconds: 0 }; - function jh(t, e) { + var _F = FN * 24; + var H9 = { days: 0, hours: 0, milliseconds: 0, minutes: 0, seconds: 0 }; + function Uh(t, e) { return { days: (t.days || 0) + e.days, hours: (t.hours || 0) + e.hours, @@ -5732,27 +5732,27 @@ ${gz(e, r)}`); seconds: (t.seconds || 0) + e.seconds }; } - function xF(t) { + function EF(t) { const e = t / 1e3; if (e < 60) { const s = ~~e; - return jh({ seconds: s }, Vh(t - s * 1e3)); + return Uh({ seconds: s }, jh(t - s * 1e3)); } const r = e / 60; if (r < 60) { const s = ~~r; - return jh({ minutes: s }, Vh(t - s * zN)); + return Uh({ minutes: s }, jh(t - s * zN)); } const n = r / 60; if (n < 24) { const s = ~~n; - return jh({ hours: s }, Vh(t - s * FN)); + return Uh({ hours: s }, jh(t - s * FN)); } const i = ~~(n / 24); - return jh({ days: i }, Vh(t - i * vF)); + return Uh({ days: i }, jh(t - i * _F)); } - function Vh(t) { - return t ? t < 1e3 ? jh({ milliseconds: t }, q9) : xF(t) : q9; + function jh(t) { + return t ? t < 1e3 ? Uh({ milliseconds: t }, H9) : EF(t) : H9; } function HN(t = 0, { bitLength: e = 32, isLe: r = true } = {}) { if (e !== 32 && e !== 64) @@ -5763,9 +5763,9 @@ ${gz(e, r)}`); function Af(t) { return typeof t == "boolean"; } - var W9 = new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)", "g"); - function u4(t, e = ",") { - const r = t[0].startsWith("-"), n = r ? t.substring(1).match(W9) : t.match(W9); + var q9 = new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)", "g"); + function c4(t, e = ",") { + const r = t[0].startsWith("-"), n = r ? t.substring(1).match(q9) : t.match(q9); return n ? `${r ? "-" : ""}${n.join(e)}` : t; } function qN(t) { @@ -5774,8 +5774,8 @@ ${gz(e, r)}`); thousand: 1e3 .toLocaleString(t).substring(1, 2) }; } - var n0 = 8; - var co = [ + var i0 = 8; + var ao = [ { power: -24, text: "yocto", value: "y" }, { power: -21, text: "zepto", value: "z" }, { power: -18, text: "atto", value: "a" }, @@ -5794,29 +5794,29 @@ ${gz(e, r)}`); { power: 21, text: "Zeta", value: "Z" }, { power: 24, text: "Yotta", value: "Y" } ]; - function l4(t) { - for (let e = 0, r = co.length; e < r; e++) - if (co[e].value === t) - return co[e]; - return co[n0]; + function u4(t) { + for (let e = 0, r = ao.length; e < r; e++) + if (ao[e].value === t) + return ao[e]; + return ao[i0]; } - function f4(t, e, r) { + function l4(t, e, r) { if (r) - return l4(r); - const n = n0 - 1 + Math.ceil((t.length - e) / 3); - return co[n] || co[n < 0 ? 0 : co.length - 1]; - } - var _F = 0; - var EF = co[n0].text; - var Tf = _F; - var Cp = EF; - function SF(t, { decimals: e = Tf, forceUnit: r, locale: n = "en", withAll: i = false, withSi: s = true, withSiFull: o = false, withUnit: a = true, withZero: c = true } = {}) { + return u4(r); + const n = i0 - 1 + Math.ceil((t.length - e) / 3); + return ao[n] || ao[n < 0 ? 0 : ao.length - 1]; + } + var SF = 0; + var MF = ao[i0].text; + var Tf = SF; + var Dp = MF; + function AF(t, { decimals: e = Tf, forceUnit: r, locale: n = "en", withAll: i = false, withSi: s = true, withSiFull: o = false, withUnit: a = true, withZero: c = true } = {}) { let u = on(t).toString(); if (u.length === 0 || u === "0") return "0"; let f = ""; u[0].startsWith("-") && (f = "-", u = u.substring(1)); - const p = f4(u, e, r), b = u.length - (e + p.power), E = b <= 0 ? "0" : u.substring(0, b); + const p = l4(u, e, r), b = u.length - (e + p.power), E = b <= 0 ? "0" : u.substring(0, b); let _ = u.padStart(b < 0 ? e : 1, "0").substring(b < 0 ? 0 : b).padEnd(i ? Math.max(e, 4) : 4, "0").substring(0, i ? Math.max(4, e + p.power) : 4); if (!c) { let D = _.length - 1; @@ -5825,37 +5825,37 @@ ${gz(e, r)}`); while (_[D] === "0"); _ = _.substring(0, D + 1); } - const N = Af(a) ? co[n0].text : a, k = s || o ? p.value === "-" ? a ? ` ${N}` : "" : ` ${o ? `${p.text}${a ? " " : ""}` : p.value}${a ? N : ""}` : "", { decimal: F, thousand: L } = qN(n); - return `${f}${u4(E, L)}${_ && `${F}${_}`}${k}`; + const N = Af(a) ? ao[i0].text : a, k = s || o ? p.value === "-" ? a ? ` ${N}` : "" : ` ${o ? `${p.text}${a ? " " : ""}` : p.value}${a ? N : ""}` : "", { decimal: F, thousand: L } = qN(n); + return `${f}${c4(E, L)}${_ && `${F}${_}`}${k}`; } - var au = SF; - au.calcSi = (t, e = Tf) => f4(t, e); - au.findSi = l4; - au.getDefaults = () => ({ + var ou = AF; + ou.calcSi = (t, e = Tf) => l4(t, e); + ou.findSi = u4; + ou.getDefaults = () => ({ decimals: Tf, - unit: Cp + unit: Dp }); - au.getOptions = (t = Tf) => co.filter(({ power: e }) => e < 0 ? t + e >= 0 : true); - au.setDefaults = ({ decimals: t, unit: e }) => { - Tf = (Array.isArray(t) ? t[0] : t) ?? Tf, Cp = (Array.isArray(e) ? e[0] : e) ?? Cp, co[n0].text = Cp; + ou.getOptions = (t = Tf) => ao.filter(({ power: e }) => e < 0 ? t + e >= 0 : true); + ou.setDefaults = ({ decimals: t, unit: e }) => { + Tf = (Array.isArray(t) ? t[0] : t) ?? Tf, Dp = (Array.isArray(e) ? e[0] : e) ?? Dp, ao[i0].text = Dp; }; - function fh(t) { + function lh(t) { return t.toString().padStart(2, "0"); } function WN(t) { - const e = t.getFullYear().toString(), r = fh(t.getMonth() + 1), n = fh(t.getDate()), i = fh(t.getHours()), s = fh(t.getMinutes()), o = fh(t.getSeconds()); + const e = t.getFullYear().toString(), r = lh(t.getMonth() + 1), n = lh(t.getDate()), i = lh(t.getHours()), s = lh(t.getMinutes()), o = lh(t.getSeconds()); return `${e}-${r}-${n} ${i}:${s}:${o}`; } - function MF(t) { + function TF(t) { return t < 15 ? `${t.toFixed(1)}s` : t < 60 ? `${t | 0}s` : t < 3600 ? `${t / 60 | 0}m` : `${t / 3600 | 0}h`; } - function AF(t, e) { + function NF(t, e) { const r = (t == null ? void 0 : t.getTime()) || 0, n = e instanceof Date ? e.getTime() : on(e).toNumber(); - return r && n ? MF(Math.max(Math.abs(r - n), 0) / 1e3) : "0.0s"; + return r && n ? TF(Math.max(Math.abs(r - n), 0) / 1e3) : "0.0s"; } - function P1(t, { locale: e = "en" } = {}) { + function k1(t, { locale: e = "en" } = {}) { const { thousand: r } = qN(e); - return u4(on(t).toString(), r); + return c4(on(t).toString(), r); } function GN(t) { return !!t && Ft(t, -1); @@ -5865,21 +5865,21 @@ ${gz(e, r)}`); } function XN(t, e = -1, r = false) { const n = Math.ceil(e / 4), i = n + 2; - return KN(e === -1 || t.length === i || !r && t.length < i ? Jh(t) : t.length > i ? Jh(t).slice(-1 * n) : `${"0".repeat(n)}${Jh(t)}`.slice(-1 * n)); + return KN(e === -1 || t.length === i || !r && t.length < i ? Zh(t) : t.length > i ? Zh(t).slice(-1 * n) : `${"0".repeat(n)}${Zh(t)}`.slice(-1 * n)); } - function TF(t) { + function IF(t) { return t ? Zu(t).toNumber() : NaN; } - function NF(t) { - return fo(On(t)); + function OF(t) { + return lo(On(t)); } - function IF(t) { + function PF(t) { return Array.isArray(t); } function pr(t) { return typeof t == "string" || t instanceof String; } - function OF(t) { + function kF(t) { for (let e = 0, r = t.length; e < r; e++) { const n = t.charCodeAt(e); if (n < 32 || n > 126) @@ -5887,7 +5887,7 @@ ${gz(e, r)}`); } return true; } - function G9(t) { + function W9(t) { for (let e = 0, r = t.length; e < r; e++) { const n = t[e] | 0; if (n < 32 || n > 126) @@ -5895,59 +5895,59 @@ ${gz(e, r)}`); } return true; } - function A3(t) { - return pr(t) ? Ft(t) ? G9(Xe(t)) : OF(t) : t ? G9(t) : false; + function M3(t) { + return pr(t) ? Ft(t) ? W9(Xe(t)) : kF(t) : t ? W9(t) : false; } - var T3 = /* @__PURE__ */ Gz("isPrototypeOf", "hasOwnProperty"); + var A3 = /* @__PURE__ */ Xz("isPrototypeOf", "hasOwnProperty"); function YN(t, e) { - return T3(e) && T3(t) ? t === e || t.isPrototypeOf(e) : false; + return A3(e) && A3(t) ? t === e || t.isPrototypeOf(e) : false; } - var PF = /* @__PURE__ */ ig("toHex", "toHuman", "toU8a"); - var kF = /* @__PURE__ */ ig("get"); + var RF = /* @__PURE__ */ ig("toHex", "toHuman", "toU8a"); + var CF = /* @__PURE__ */ ig("get"); function ss(t) { - return PF(t) && kF(t.registry); + return RF(t) && CF(t.registry); } - var h4 = /* @__PURE__ */ ig("toBigInt", "toBn", "toNumber", "unwrap"); + var f4 = /* @__PURE__ */ ig("toBigInt", "toBn", "toNumber", "unwrap"); function ZN(t) { return (t && t.constructor) === Error || t instanceof Error; } - function RF(t, e) { + function DF(t, e) { return (t && t.constructor) === e || t instanceof e; } - var Na = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"; + var Aa = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"; var nn = "[a-fA-F\\d]{1,4}"; var JN = ` (?: (?:${nn}:){7}(?:${nn}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 -(?:${nn}:){6}(?:${Na}|:${nn}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 -(?:${nn}:){5}(?::${Na}|(?::${nn}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 -(?:${nn}:){4}(?:(?::${nn}){0,1}:${Na}|(?::${nn}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 -(?:${nn}:){3}(?:(?::${nn}){0,2}:${Na}|(?::${nn}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 -(?:${nn}:){2}(?:(?::${nn}){0,3}:${Na}|(?::${nn}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 -(?:${nn}:){1}(?:(?::${nn}){0,4}:${Na}|(?::${nn}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 -(?::(?:(?::${nn}){0,5}:${Na}|(?::${nn}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 +(?:${nn}:){6}(?:${Aa}|:${nn}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 +(?:${nn}:){5}(?::${Aa}|(?::${nn}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 +(?:${nn}:){4}(?:(?::${nn}){0,1}:${Aa}|(?::${nn}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 +(?:${nn}:){3}(?:(?::${nn}){0,2}:${Aa}|(?::${nn}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 +(?:${nn}:){2}(?:(?::${nn}){0,3}:${Aa}|(?::${nn}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 +(?:${nn}:){1}(?:(?::${nn}){0,4}:${Aa}|(?::${nn}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 +(?::(?:(?::${nn}){0,5}:${Aa}|(?::${nn}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 `.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(); - var CF = new RegExp(`(?:^${Na}$)|(?:^${JN}$)`); - var DF = new RegExp(`^${Na}$`); - var LF = new RegExp(`^${JN}$`); - function BF(t, e) { + var LF = new RegExp(`(?:^${Aa}$)|(?:^${JN}$)`); + var BF = new RegExp(`^${Aa}$`); + var UF = new RegExp(`^${JN}$`); + function jF(t, e) { switch (e) { case "v4": - return DF.test(t); + return BF.test(t); case "v6": - return LF.test(t); + return UF.test(t); default: - return CF.test(t); + return LF.test(t); } } - function UF(t, e) { - return ic(e) ? e.toString() : e; + function VF(t, e) { + return rc(e) ? e.toString() : e; } function Ct(t, e) { - return JSON.stringify(t, UF, e); + return JSON.stringify(t, VF, e); } - function jF(t) { + function zF(t) { const e = typeof t != "string" ? Ct(t) : t; try { const r = JSON.parse(e); @@ -5956,26 +5956,26 @@ ${gz(e, r)}`); return false; } } - function Fc(t) { + function Vc(t) { return t === null; } function rr(t) { return typeof t == "number"; } - var VF = /* @__PURE__ */ Qv("next"); - var zF = /* @__PURE__ */ ig("catch", "then"); - var FF = new Uint8Array([127, 69, 76, 70]); - var HF = new Uint8Array([80, 86, 77, 0]); - function qF(t) { + var FF = /* @__PURE__ */ Jv("next"); + var HF = /* @__PURE__ */ ig("catch", "then"); + var qF = new Uint8Array([127, 69, 76, 70]); + var WF = new Uint8Array([80, 86, 77, 0]); + function GF(t) { if (Et(t)) { const e = t.subarray(0, 4); - return Pn(e, HF) || Pn(e, FF); + return Pn(e, WF) || Pn(e, qF); } return false; } - var WF = /(Development|Local Testnet)$/; - function GF(t) { - return t ? !!WF.test(t.toString()) : false; + var KF = /(Development|Local Testnet)$/; + function XF(t) { + return t ? !!KF.test(t.toString()) : false; } function Ar(t) { return t === void 0; @@ -6048,11 +6048,11 @@ ${gz(e, r)}`); return false; return true; } - var KF = new Uint8Array([0, 97, 115, 109]); - function XF(t) { - return Et(t) && Pn(t.subarray(0, 4), KF); + var YF = new Uint8Array([0, 97, 115, 109]); + function ZF(t) { + return Et(t) && Pn(t.subarray(0, 4), YF); } - function Jn(t, e, r, n, i = 0) { + function Zn(t, e, r, n, i = 0) { const s = n ? n(e, i) : e.toString(); let o; Object.defineProperty(t, s, { @@ -6070,23 +6070,23 @@ ${gz(e, r)}`); } }); } - function Hc(t, e, r, n) { + function zc(t, e, r, n) { for (let i = 0, s = e.length; i < s; i++) - Jn(t, e[i], r, n, i); + Zn(t, e[i], r, n, i); return t; } - function cu(t) { + function au(t) { return t; } function os() { } - var YF = { + var JF = { debug: "log", error: "error", log: "log", warn: "warn" }; - function ZF(t) { + function QF(t) { if (t && di(t) && t.constructor === Object) { const e = {}; for (const [r, n] of Object.entries(t)) @@ -6096,9 +6096,9 @@ ${gz(e, r)}`); return t; } function og(t) { - return Array.isArray(t) ? t.map(og) : Ki(t) ? t.toString() : Et(t) || n4(t) ? Bt(Xe(t)) : ZF(t); + return Array.isArray(t) ? t.map(og) : Ki(t) ? t.toString() : Et(t) || r4(t) ? Bt(Xe(t)) : QF(t); } - function JF(t) { + function $F(t) { return (e) => { if (t <= 0) return e; @@ -6106,47 +6106,47 @@ ${gz(e, r)}`); return r.length < t ? e : `${r.substring(0, t)} ...`; }; } - function zh(t, e, r, n = -1) { + function Vh(t, e, r, n = -1) { if (r.length === 1 && St(r[0])) { const i = r[0](); - return zh(t, e, Array.isArray(i) ? i : [i], n); + return Vh(t, e, Array.isArray(i) ? i : [i], n); } - console[YF[t]](WN(/* @__PURE__ */ new Date()), e, ...r.map(og).map(JF(n))); + console[JF[t]](WN(/* @__PURE__ */ new Date()), e, ...r.map(og).map($F(n))); } - function QF(t, e) { + function eH(t, e) { return !!t && (t === "*" || e === t || t.endsWith("*") && e.startsWith(t.slice(0, -1))); } - function $F(t, e) { + function tH(t, e) { return !!t && t.startsWith("-") && (e === t.slice(1) || t.endsWith("*") && e.startsWith(t.slice(1, -1))); } - function eH(t, e) { + function rH(t, e) { let r = false; for (const n of t) - QF(n, e) ? r = true : $F(n, e) && (r = false); + eH(n, e) ? r = true : tH(n, e) && (r = false); return r; } - function tH(t) { + function nH(t) { var r, n, i, s; const e = parseInt(((n = (r = hi.process) == null ? void 0 : r.env) == null ? void 0 : n.DEBUG_MAX) || "-1", 10); return [ - eH((((s = (i = hi.process) == null ? void 0 : i.env) == null ? void 0 : s.DEBUG) || "").toLowerCase().split(","), t), + rH((((s = (i = hi.process) == null ? void 0 : i.env) == null ? void 0 : s.DEBUG) || "").toLowerCase().split(","), t), isNaN(e) ? -1 : e ]; } function mi(t) { - const e = `${t.toUpperCase()}:`.padStart(16), [r, n] = tH(t.toLowerCase()); + const e = `${t.toUpperCase()}:`.padStart(16), [r, n] = nH(t.toLowerCase()); return { - debug: r ? (...i) => zh("debug", e, i, n) : os, - error: (...i) => zh("error", e, i), - log: (...i) => zh("log", e, i), + debug: r ? (...i) => Vh("debug", e, i, n) : os, + error: (...i) => Vh("error", e, i), + log: (...i) => Vh("log", e, i), noop: os, - warn: (...i) => zh("warn", e, i) + warn: (...i) => Vh("warn", e, i) }; } - function rH() { + function iH() { return "none"; } - function af(t, { getInstanceId: e = rH } = {}) { + function af(t, { getInstanceId: e = iH } = {}) { const r = {}, n = (...i) => { const s = Ct(i), o = e(); return r[o] || (r[o] = {}), r[o][s] === void 0 && (r[o][s] = t(...i)), r[o][s]; @@ -6157,7 +6157,7 @@ ${gz(e, r)}`); ((a = r[o]) == null ? void 0 : a[s]) !== void 0 && delete r[o][s]; }, n; } - function Zc(t, e) { + function Xc(t, e) { setTimeout(() => { Promise.resolve().then(() => { t(); @@ -6170,7 +6170,7 @@ ${gz(e, r)}`); const r = (!t || Number.isNaN(t) ? 0 : t).toString(16); return XN(r.length % 2 ? `0${r}` : r, e, true); } - function nH(t, e = -1) { + function sH(t, e = -1) { return On($N(t, e)); } function eI(t) { @@ -6191,13 +6191,13 @@ ${gz(e, r)}`); } return t; } - function iH(t) { + function oH(t) { return st({}, t); } - function sH(t) { + function aH(t) { return Object.entries(t); } - function oH(t) { + function cH(t) { return Object.keys(t); } function ag(t, e, r, n, i = 0) { @@ -6209,14 +6209,14 @@ ${gz(e, r)}`); } }); } - function Jc(t, e, r, n) { + function Yc(t, e, r, n) { for (let i = 0, s = e.length; i < s; i++) ag(t, e[i], r, n, i); } - function aH(t) { + function uH(t) { return Object.values(t); } - function cH(t, e, ...r) { + function lH(t, e, ...r) { return new Promise((n, i) => { e.apply(t, r.concat((s, o) => { s ? i(s) : n(o); @@ -6224,10 +6224,10 @@ ${gz(e, r)}`); }); } var Nf = new Array(256); - var d4 = new Array(256); + var h4 = new Array(256); for (let t = 0, e = Nf.length; t < e; t++) - d4[t] = String.fromCharCode(t).toLowerCase(), Nf[t] = String.fromCharCode(t).toUpperCase(); - function uH(t) { + h4[t] = String.fromCharCode(t).toLowerCase(), Nf[t] = String.fromCharCode(t).toUpperCase(); + function fH(t) { return t.slice(0, t.length - 1).toLowerCase() + Nf[t.charCodeAt(t.length - 1)]; } function tI(t) { @@ -6236,211 +6236,211 @@ ${gz(e, r)}`); let n = ""; for (let i = 0, s = r.length; i < s; i++) { const o = r[i]; - n += t(/^[\dA-Z]+$/.test(o) ? o.toLowerCase() : o.replace(/^[\dA-Z]{2,}[^a-z]/, uH), i); + n += t(/^[\dA-Z]+$/.test(o) ? o.toLowerCase() : o.replace(/^[\dA-Z]{2,}[^a-z]/, fH), i); } return n; }; } - var dr = /* @__PURE__ */ tI((t, e) => (e ? Nf[t.charCodeAt(0)] : d4[t.charCodeAt(0)]) + t.slice(1)); + var dr = /* @__PURE__ */ tI((t, e) => (e ? Nf[t.charCodeAt(0)] : h4[t.charCodeAt(0)]) + t.slice(1)); var cg = /* @__PURE__ */ tI((t) => Nf[t.charCodeAt(0)] + t.slice(1)); function rI(t) { return (e) => e ? t[e.charCodeAt(0)] + e.slice(1) : ""; } - var lH = /* @__PURE__ */ rI(d4); + var hH = /* @__PURE__ */ rI(h4); var nI = /* @__PURE__ */ rI(Nf); - function fH(t, e = 6) { + function dH(t, e = 6) { return t.length <= 2 + 2 * e ? t.toString() : `${t.substring(0, e)}\u2026${t.slice(-e)}`; } - function p4(t) { - return Bt(Dr(t)); + function d4(t) { + return Bt(Cr(t)); } - var hH = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var pH = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BN: ct, - BN_BILLION: fd, + BN_BILLION: ld, BN_EIGHT: CN, - BN_FIVE: aF, - BN_FOUR: oF, + BN_FIVE: uF, + BN_FOUR: cF, BN_HUNDRED: DN, BN_MAX_INTEGER: UN, BN_MILLION: LN, - BN_NINE: lF, + BN_NINE: hF, BN_ONE: bl, BN_QUINTILL: BN, - BN_SEVEN: uF, - BN_SIX: cF, + BN_SEVEN: fF, + BN_SIX: lF, BN_SQRT_MAX_INTEGER: jN, - BN_TEN: fF, - BN_THOUSAND: hF, - BN_THREE: sF, - BN_TWO: r0, - BN_ZERO: Jr, + BN_TEN: dF, + BN_THOUSAND: pF, + BN_THREE: aF, + BN_TWO: n0, + BN_ZERO: Zr, POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG: bN, - U8A_WRAP_ETHEREUM: Rp, + U8A_WRAP_ETHEREUM: Cp, U8A_WRAP_POSTFIX: Mf, U8A_WRAP_PREFIX: Sf, _0n: Yu, - _1000n: Uz, - _100n: Bz, - _10n: Lz, - _1Bn: M3, - _1Mn: jz, - _1Qn: Vz, - _1n: Yc, - _2n: Nz, + _1000n: Vz, + _100n: jz, + _10n: Uz, + _1Bn: S3, + _1Mn: zz, + _1Qn: Fz, + _1n: Kc, + _2n: Oz, _2pow53n: vN, - _3n: Iz, - _4n: Oz, - _5n: Pz, - _6n: kz, - _7n: Rz, - _8n: Cz, - _9n: Dz, + _3n: Pz, + _4n: kz, + _5n: Rz, + _6n: Cz, + _7n: Dz, + _8n: Lz, + _9n: Bz, _sqrt2pow53n: xN, - arrayChunk: T1, - arrayFilter: vz, + arrayChunk: N1, + arrayFilter: _z, arrayFlatten: zu, - arrayRange: xz, - arrayShuffle: _z, - arrayUnzip: Ez, - arrayZip: Sz, + arrayRange: Ez, + arrayShuffle: Sz, + arrayUnzip: Mz, + arrayZip: Az, assert: wN, - assertReturn: La, - assertUnreachable: Zv, + assertReturn: Ca, + assertUnreachable: Yv, bnFromHex: Zu, - bnMax: a4, + bnMax: o4, bnMin: RN, - bnSqrt: c4, + bnSqrt: a4, bnToBn: on, bnToHex: VN, - bnToU8a: Hr, - bufferToU8a: pF, - calcSi: f4, - compactAddLength: ua, + bnToU8a: Fr, + bufferToU8a: gF, + calcSi: l4, + compactAddLength: aa, compactFromU8a: sg, - compactFromU8aLim: ou, - compactStripLength: hd, - compactToU8a: qr, + compactFromU8aLim: su, + compactStripLength: fd, + compactToU8a: Hr, detectPackage: yl, - extractTime: Vh, - findSi: l4, + extractTime: jh, + findSi: u4, floatToU8a: HN, - formatBalance: au, + formatBalance: ou, formatDate: WN, - formatDecimal: u4, - formatElapsed: AF, - formatNumber: P1, + formatDecimal: c4, + formatElapsed: NF, + formatNumber: k1, hasBigInt: hn, - hasBuffer: r4, + hasBuffer: t4, hasCjs: MN, - hasDirname: Xz, - hasEsm: Yz, - hasProcess: Jz, - hasWasm: Zz, + hasDirname: Zz, + hasEsm: Jz, + hasProcess: $z, + hasWasm: Qz, hexAddPrefix: KN, hexFixLength: XN, hexHasPrefix: GN, - hexStripPrefix: Jh, + hexStripPrefix: Zh, hexToBigInt: EN, hexToBn: Zu, - hexToNumber: TF, - hexToString: NF, + hexToNumber: IF, + hexToString: OF, hexToU8a: On, - identity: cu, - isArray: IF, - isAscii: A3, - isBigInt: ic, + identity: au, + isArray: PF, + isAscii: M3, + isBigInt: rc, isBn: Ki, isBoolean: Af, - isBuffer: n4, + isBuffer: r4, isChildClass: YN, - isClass: T3, + isClass: A3, isCodec: ss, - isCompact: h4, + isCompact: f4, isError: ZN, isFunction: St, isHex: Ft, - isInstanceOf: RF, - isIp: BF, - isJsonObject: jF, - isNull: Fc, + isInstanceOf: DF, + isIp: jF, + isJsonObject: zF, + isNull: Vc, isNumber: rr, isObject: di, - isObservable: VF, - isPromise: zF, - isRiscV: qF, + isObservable: FF, + isPromise: HF, + isRiscV: GF, isString: pr, - isTestChain: GF, - isToBigInt: $v, - isToBn: e4, + isTestChain: XF, + isToBigInt: Qv, + isToBn: $v, isU8a: Et, isUndefined: Ar, isUtf8: QN, - isWasm: XF, - lazyMethod: Jn, - lazyMethods: Hc, + isWasm: ZF, + lazyMethod: Zn, + lazyMethods: zc, logger: mi, loggerFormat: og, memoize: af, - nMax: Mz, - nMin: Az, - nSqrt: Kz, - nToBigInt: t4, - nToHex: iF, - nToU8a: o4, - nextTick: Zc, + nMax: Tz, + nMin: Nz, + nSqrt: Yz, + nToBigInt: e4, + nToHex: oF, + nToU8a: s4, + nextTick: Xc, noop: os, numberToHex: $N, - numberToU8a: nH, + numberToU8a: sH, objectClear: eI, - objectCopy: iH, - objectEntries: sH, - objectKeys: oH, - objectProperties: Jc, + objectCopy: oH, + objectEntries: aH, + objectKeys: cH, + objectProperties: Yc, objectProperty: ag, objectSpread: st, - objectValues: aH, - packageInfo: Yv, - promisify: cH, + objectValues: uH, + packageInfo: Xv, + promisify: lH, stringCamelCase: dr, - stringLowerFirst: lH, + stringLowerFirst: hH, stringPascalCase: cg, - stringShorten: fH, - stringToHex: p4, - stringToU8a: Dr, + stringShorten: dH, + stringToHex: d4, + stringToU8a: Cr, stringUpperFirst: nI, stringify: Ct, u8aCmp: AN, - u8aConcat: $t, + u8aConcat: Qt, u8aConcatStrict: pi, - u8aEmpty: i4, + u8aEmpty: n4, u8aEq: Pn, u8aFixLength: TN, - u8aIsWrapped: ld, - u8aSorted: s4, - u8aToBigInt: N1, - u8aToBn: Zn, - u8aToBuffer: $z, + u8aIsWrapped: ud, + u8aSorted: i4, + u8aToBigInt: I1, + u8aToBn: Yn, + u8aToBuffer: tF, u8aToFloat: NN, u8aToHex: Bt, u8aToNumber: ON, - u8aToString: fo, + u8aToString: lo, u8aToU8a: Xe, u8aUnwrapBytes: PN, u8aWrapBytes: kN }, Symbol.toStringTag, { value: "Module" })); - var dH = { name: "@polkadot/networks", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; - var pH = { name: "@polkadot/x-randomvalues", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; - var mH = hi.crypto; + var mH = { name: "@polkadot/networks", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; + var gH = { name: "@polkadot/x-randomvalues", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; + var yH = hi.crypto; function iI(t) { - return mH.getRandomValues(t); + return yH.getRandomValues(t); } - var gH = [dH, Yv, pH]; + var bH = [mH, Xv, gH]; var sI = { name: "@polkadot/util-crypto", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }; - yl(sI, null, gH); - var Dp = { getRandomValues: iI }; - var yH = { crypto: Dp }; - var bH = class { + yl(sI, null, bH); + var Lp = { getRandomValues: iI }; + var wH = { crypto: Lp }; + var vH = class { constructor(e) { re(this, "__internal__bridge"); re(this, "abort", () => { @@ -6450,14 +6450,14 @@ ${gz(e, r)}`); re(this, "__wbindgen_throw", (e10, r) => { throw new Error(this.__internal__bridge.getString(e10, r)); }); - re(this, "__wbg_self_1b7a39e3a92c949c", () => this.__internal__bridge.addObject(yH)); + re(this, "__wbg_self_1b7a39e3a92c949c", () => this.__internal__bridge.addObject(wH)); re(this, "__wbg_require_604837428532a733", (e10, r) => { throw new Error(`Unable to require ${this.__internal__bridge.getString(e10, r)}`); }); - re(this, "__wbg_crypto_968f1772287e2df0", (e10) => this.__internal__bridge.addObject(Dp)); - re(this, "__wbg_getRandomValues_a3d34b4fee3c2869", (e10) => this.__internal__bridge.addObject(Dp.getRandomValues)); + re(this, "__wbg_crypto_968f1772287e2df0", (e10) => this.__internal__bridge.addObject(Lp)); + re(this, "__wbg_getRandomValues_a3d34b4fee3c2869", (e10) => this.__internal__bridge.addObject(Lp.getRandomValues)); re(this, "__wbg_getRandomValues_f5e14ab7ac8e995d", (e10, r, n) => { - Dp.getRandomValues(this.__internal__bridge.getU8a(r, n)); + Lp.getRandomValues(this.__internal__bridge.getU8a(r, n)); }); re(this, "__wbg_randomFillSync_d5bd2d655fdf256a", (e10, r, n) => { throw new Error("randomFillsync is not available"); @@ -6468,7 +6468,7 @@ ${gz(e, r)}`); this.__internal__bridge = e; } }; - var wH = class { + var xH = class { constructor(e) { re(this, "__internal__createWasm"); re(this, "__internal__heap"); @@ -6480,7 +6480,7 @@ ${gz(e, r)}`); re(this, "__internal__wasmError"); re(this, "__internal__wasmPromise"); re(this, "__internal__type"); - this.__internal__createWasm = e, this.__internal__cachegetInt32 = null, this.__internal__cachegetUint8 = null, this.__internal__heap = new Array(32).fill(void 0).concat(void 0, null, true, false), this.__internal__heapNext = this.__internal__heap.length, this.__internal__type = "none", this.__internal__wasm = null, this.__internal__wasmError = null, this.__internal__wasmPromise = null, this.__internal__wbg = { ...new bH(this) }; + this.__internal__createWasm = e, this.__internal__cachegetInt32 = null, this.__internal__cachegetUint8 = null, this.__internal__heap = new Array(32).fill(void 0).concat(void 0, null, true, false), this.__internal__heapNext = this.__internal__heap.length, this.__internal__type = "none", this.__internal__wasm = null, this.__internal__wasmError = null, this.__internal__wasmPromise = null, this.__internal__wbg = { ...new vH(this) }; } get error() { return this.__internal__wasmError; @@ -6521,24 +6521,24 @@ ${gz(e, r)}`); return this.getUint8().subarray(e / 1, e / 1 + r); } getString(e, r) { - return fo(this.getU8a(e, r)); + return lo(this.getU8a(e, r)); } allocU8a(e) { const r = this.__internal__wasm.__wbindgen_malloc(e.length * 1); return this.getUint8().set(e, r / 1), [r, e.length]; } allocString(e) { - return this.allocU8a(Dr(e)); + return this.allocU8a(Cr(e)); } resultU8a() { const e = this.getInt32()[2], r = this.getInt32()[8 / 4 + 1], n = this.getU8a(e, r).slice(); return this.__internal__wasm.__wbindgen_free(e, r * 1), n; } resultString() { - return fo(this.resultU8a()); + return lo(this.resultU8a()); } }; - function vH(t, e, r) { + function _H(t, e, r) { return async (n) => { const i = { error: null, @@ -6559,21 +6559,21 @@ ${gz(e, r)}`); return i; }; } - var K9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var G9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var oI = new Array(256); - for (let t = 0, e = K9.length; t < e; t++) - oI[K9.charCodeAt(t)] = t; - function xH(t, e) { + for (let t = 0, e = G9.length; t < e; t++) + oI[G9.charCodeAt(t)] = t; + function EH(t, e) { let r = 0, n = 0, i = -1; for (let s = 0, o = e.length - 1; i !== o; s++) r = r << 6 | oI[t.charCodeAt(s)], (n += 6) >= 8 && (e[++i] = r >>> (n -= 8) & 255); return e; } - var Go = Uint8Array; - var jc = Uint16Array; - var N3 = Uint32Array; - var _H = new Go([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); - var aI = new Go([ + var Wo = Uint8Array; + var Bc = Uint16Array; + var T3 = Uint32Array; + var SH = new Wo([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); + var aI = new Wo([ 0, 0, 0, @@ -6607,7 +6607,7 @@ ${gz(e, r)}`); 0, 0 ]); - var cI = new Go([ + var cI = new Wo([ 0, 0, 0, @@ -6642,91 +6642,91 @@ ${gz(e, r)}`); 0 ]); var uI = (t, e) => { - const r = new jc(31); + const r = new Bc(31); for (let i = 0; i < 31; ++i) r[i] = e += 1 << t[i - 1]; - const n = new N3(r[30]); + const n = new T3(r[30]); for (let i = 1; i < 30; ++i) for (let s = r[i]; s < r[i + 1]; ++s) n[s] = s - r[i] << 5 | i; return [r, n]; }; - var [lI, EH] = uI(aI, 2); - lI[28] = 258, EH[258] = 28; - var [SH] = uI(cI, 0); - var I3 = new jc(32768); + var [lI, MH] = uI(aI, 2); + lI[28] = 258, MH[258] = 28; + var [AH] = uI(cI, 0); + var N3 = new Bc(32768); for (let t = 0; t < 32768; ++t) { let e = (t & 43690) >>> 1 | (t & 21845) << 1; - e = (e & 52428) >>> 2 | (e & 13107) << 2, e = (e & 61680) >>> 4 | (e & 3855) << 4, I3[t] = ((e & 65280) >>> 8 | (e & 255) << 8) >>> 1; + e = (e & 52428) >>> 2 | (e & 13107) << 2, e = (e & 61680) >>> 4 | (e & 3855) << 4, N3[t] = ((e & 65280) >>> 8 | (e & 255) << 8) >>> 1; } - var Qh = (t, e, r) => { + var Jh = (t, e, r) => { const n = t.length; let i = 0; - const s = new jc(e); + const s = new Bc(e); for (; i < n; ++i) t[i] && ++s[t[i] - 1]; - const o = new jc(e); + const o = new Bc(e); for (i = 1; i < e; ++i) o[i] = o[i - 1] + s[i - 1] << 1; let a; if (r) { - a = new jc(1 << e); + a = new Bc(1 << e); const c = 15 - e; for (i = 0; i < n; ++i) if (t[i]) { const u = i << 4 | t[i], f = e - t[i]; let p = o[t[i] - 1]++ << f; for (const b = p | (1 << f) - 1; p <= b; ++p) - a[I3[p] >> c] = u; + a[N3[p] >> c] = u; } } else - for (a = new jc(n), i = 0; i < n; ++i) - t[i] && (a[i] = I3[o[t[i] - 1]++] >> 15 - t[i]); + for (a = new Bc(n), i = 0; i < n; ++i) + t[i] && (a[i] = N3[o[t[i] - 1]++] >> 15 - t[i]); return a; }; - var i0 = new Go(288); + var s0 = new Wo(288); for (let t = 0; t < 144; ++t) - i0[t] = 8; + s0[t] = 8; for (let t = 144; t < 256; ++t) - i0[t] = 9; + s0[t] = 9; for (let t = 256; t < 280; ++t) - i0[t] = 7; + s0[t] = 7; for (let t = 280; t < 288; ++t) - i0[t] = 8; - var fI = new Go(32); + s0[t] = 8; + var fI = new Wo(32); for (let t = 0; t < 32; ++t) fI[t] = 5; - var MH = Qh(i0, 9, 1); - var AH = Qh(fI, 5, 1); - var Fs = (t, e, r) => { + var TH = Jh(s0, 9, 1); + var NH = Jh(fI, 5, 1); + var zs = (t, e, r) => { const n = e >>> 3; return (t[n] | t[n + 1] << 8) >>> (e & 7) & r; }; - var $2 = (t, e) => { + var Q2 = (t, e) => { const r = e >>> 3; return (t[r] | t[r + 1] << 8 | t[r + 2] << 16) >>> (e & 7); }; - var TH = (t) => (t >>> 3) + (t & 7 && 1); - var NH = (t, e, r) => { + var IH = (t) => (t >>> 3) + (t & 7 && 1); + var OH = (t, e, r) => { (e == null || e < 0) && (e = 0), (r == null || r > t.length) && (r = t.length); - const n = new (t instanceof jc ? jc : t instanceof N3 ? N3 : Go)(r - e); + const n = new (t instanceof Bc ? Bc : t instanceof T3 ? T3 : Wo)(r - e); return n.set(t.subarray(e, r)), n; }; - var ey = (t) => { + var $2 = (t) => { let e = t[0]; for (let r = 1, n = t.length; r < n; ++r) t[r] > e && (e = t[r]); return e; }; - var IH = (t, e, r) => { + var PH = (t, e, r) => { const n = !r || r.i; r || (r = {}); const i = t.length, s = !e || !n; - e || (e = new Go(i * 3)); + e || (e = new Wo(i * 3)); const o = (N) => { let k = e.length; if (N > k) { - const F = new Go(Math.max(k << 1, N)); + const F = new Wo(Math.max(k << 1, N)); F.set(e), e = F; } }; @@ -6736,40 +6736,40 @@ ${gz(e, r)}`); const _ = i << 3; do { if (!f) { - r.f = a = Fs(t, c, 1); - const L = Fs(t, c + 1, 3); + r.f = a = zs(t, c, 1); + const L = zs(t, c + 1, 3); if (c += 3, L) if (L == 1) - f = MH, p = AH, b = 9, E = 5; + f = TH, p = NH, b = 9, E = 5; else if (L == 2) { - const D = Fs(t, c, 31) + 257, q = Fs(t, c + 10, 15) + 4, W = D + Fs(t, c + 5, 31) + 1; + const D = zs(t, c, 31) + 257, q = zs(t, c + 10, 15) + 4, W = D + zs(t, c + 5, 31) + 1; c += 14; - const z = new Go(W), T = new Go(19); + const z = new Wo(W), T = new Wo(19); for (let d = 0; d < q; ++d) - T[_H[d]] = Fs(t, c + d * 3, 7); + T[SH[d]] = zs(t, c + d * 3, 7); c += q * 3; - const I = ey(T), H = (1 << I) - 1; + const I = $2(T), H = (1 << I) - 1; if (!n && c + W * (I + 7) > _) break; - const X = Qh(T, I, 1); + const X = Jh(T, I, 1); for (let d = 0; d < W; ) { - const l = X[Fs(t, c, H)]; + const l = X[zs(t, c, H)]; c += l & 15; const h = l >>> 4; if (h < 16) z[d++] = h; else { let y = 0, x = 0; - for (h == 16 ? (x = 3 + Fs(t, c, 3), c += 2, y = z[d - 1]) : h == 17 ? (x = 3 + Fs(t, c, 7), c += 3) : h == 18 && (x = 11 + Fs(t, c, 127), c += 7); x--; ) + for (h == 16 ? (x = 3 + zs(t, c, 3), c += 2, y = z[d - 1]) : h == 17 ? (x = 3 + zs(t, c, 7), c += 3) : h == 18 && (x = 11 + zs(t, c, 127), c += 7); x--; ) z[d++] = y; } } const V = z.subarray(0, D), S = z.subarray(D); - b = ey(V), E = ey(S), f = Qh(V, b, 1), p = Qh(S, E, 1); + b = $2(V), E = $2(S), f = Jh(V, b, 1), p = Jh(S, E, 1); } else throw "invalid block type"; else { - const D = TH(c) + 4, q = t[D - 4] | t[D - 3] << 8, W = D + q; + const D = IH(c) + 4, q = t[D - 4] | t[D - 3] << 8, W = D + q; if (W > i) { if (n) throw "unexpected EOF"; @@ -6784,7 +6784,7 @@ ${gz(e, r)}`); s && o(u + 131072); const N = (1 << b) - 1, k = (1 << E) - 1, F = b + E + 18; for (; n || c + F < _; ) { - const L = f[$2(t, c) & N], D = L >>> 4; + const L = f[Q2(t, c) & N], D = L >>> 4; if (c += L & 15, c > _) throw "unexpected EOF"; if (!L) @@ -6798,16 +6798,16 @@ ${gz(e, r)}`); let q = D - 254; if (D > 264) { const H = D - 257, X = aI[H]; - q = Fs(t, c, (1 << X) - 1) + lI[H], c += X; + q = zs(t, c, (1 << X) - 1) + lI[H], c += X; } - const W = p[$2(t, c) & k], z = W >>> 4; + const W = p[Q2(t, c) & k], z = W >>> 4; if (!W) throw "invalid distance"; c += W & 15; - let T = SH[z]; + let T = AH[z]; if (z > 3) { const H = cI[z]; - T += $2(t, c) & (1 << H) - 1, c += H; + T += Q2(t, c) & (1 << H) - 1, c += H; } if (c > _) throw "unexpected EOF"; @@ -6820,24 +6820,24 @@ ${gz(e, r)}`); } r.l = f, r.p = c, r.b = u, f && (a = 1, r.m = b, r.d = p, r.n = E); } while (!a); - return u == e.length ? e : NH(e, 0, u); + return u == e.length ? e : OH(e, 0, u); }; - var OH = (t) => { + var kH = (t) => { if ((t[0] & 15) != 8 || t[0] >>> 4 > 7 || (t[0] << 8 | t[1]) % 31) throw "invalid zlib data"; if (t[1] & 32) throw "invalid zlib data: preset dictionaries not supported"; }; - function PH(t, e) { - return IH((OH(t), t.subarray(2, -4)), e); + function RH(t, e) { + return PH((kH(t), t.subarray(2, -4)), e); } - var kH = 171008; - var RH = 339468; - var CH = "eNqkvQmYXVd153vuuVPVvTXcmqTSfOpKtmVbskaXJMvYugU2Tuj3mi8vL1++9/X3ZNmSwSXjoSxseJ9iF1gy4oUEhZhEBPIiGhLUEAUxBTkhIIiTVhN3EMMDAaYRgQR3QkDBdMeAg/v3X2ufc4caNCDZOvuss/faa6299tprrz3caNeDr8lFUZT7x9yK2+NHH41uzz+qf3P8z2vuUXvnkdM/BdJ8KOrBs2RPEhHfwgupsqeyjGlBx/LI7ZFV8ohX8Aj/kuwOZVSqkqVVpKv5IUUsqh4JxD1ihD5iGR/xP8IQknop2oszRnW5R6L4Q3FX/uE7XrVw586H77j73t2v2nPvzrsf3Pnae3fvuevue/fsjor6urjl6313TO65c9/O3VP33b9zas9dUawMS5ThVTsf3HPPXTs33LFl16Ztezbt2rbxzm2bt90ZdSvHMs9x59Tr7993385t41vv2rBly8aNW7fs2bj7rvVezZWe51V79v3Srnt33/eaX9l1z2v3PLhz16bdmzbfsfmuPXs23blx6/g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bHNY6rXy+7Ckbopf/aR7W8kIuRWqBAVMvV2wBUODd3/Ju7fyherUjVkxnz6/x5Q6eDBypsGldt3cc7iz7x7fBTraZFtZy2HYR3Lil74ep7pheMWrX4wS/yt18RdXF5wWKXz74yqk+Vor0P7r48Kv+PKYNfnMAUbDF/zT9SLOrA0pbd0+YWjtpZ9u8NxUteGbV/310nureNjnqy8rgTjSHHSXJN6JaGATwoOT15TNzgMMrHx+FX9sjhI0eNGym5kTTh33//+ffff6NabtyB72IiF6zgZ3njRI0vfnvtlmLgR3zsD7tfrzVmzRVRBVtfzL58cYGomzq3QVVzduJvSS1b1j8yr1/BqL9fKDT3/LAro/K37gbLq6LAFv+F/2OxidAdbfHDtIp7l2W+UPW7S39A2e+STzmV/dKd4zYtjfo58dJlL65HLRfsUtvmEYh55fS+yzZO7TYqPufKAh9MufV0VMvjxK8vUP3ubc02vJX64YjErGIHL4ufy5r5f7VzP26zLO6RM1PfODM6du6mZmW+m7Hw9IL0M28NP/ZUhaOzEkZPPTB3687RZV4t+uvKLcVLVTzw3woas/em6yY/WvCz8YOnx31bsWap3imlcgqWr7zuZEKf/R2fHtT1hwKLR8enl4gq3Wdpz1qdi0V1OLfim8TE6KhvJ7T+quhobJ2p1YZ9MxH1eY71KRvVckMEKBfVcg+B0pHnSNUzhM8sKhU1uETGmFEp2YNSx2QWiAY4KDUTKxGWqELR3Qdmj8zKjhuUnjxySMnaiTUTaibUqJ0dQdauWbvouOR0zIaiCTVrN6qZED0uOXNEjYFDR6ZgrpRKqFmnZoNGcfGNBiakJCYMapBcJariVVnJY4akZmGyRJaMzALVrhqRnZU8MD21xpD0UQOT0zP/D6UhBWI="; - var DH = /* @__PURE__ */ PH(xH(CH, new Uint8Array(kH)), new Uint8Array(RH)); - var LH = /* @__PURE__ */ vH("crypto", DH, null); - var tt = new wH(LH); - async function BH(t) { + var CH = 171008; + var DH = 339468; + var LH = "eNqkvQmYXVd153vuuVPVvTXcmqTSfOpKtmVbskaXJMvYugU2T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Wr7zuZEKf/R2fHtT1hwKLR8enl4gq3Wdpz1qdi0V1OLfim8TE6KhvJ7T+quhobJ2p1YZ9MxH1eY71KRvVckMEKBfVcg+B0pHnSNUzhM8sKhU1uETGmFEp2YNSx2QWiAY4KDUTKxGWqELR3Qdmj8zKjhuUnjxySMnaiTUTaibUqJ0dQdauWbvouOR0zIaiCTVrN6qZED0uOXNEjYFDR6ZgrpRKqFmnZoNGcfGNBiakJCYMapBcJariVVnJY4akZmGyRJaMzALVrhqRnZU8MD21xpD0UQOT0zP/D6UhBWI="; + var BH = /* @__PURE__ */ RH(EH(LH, new Uint8Array(CH)), new Uint8Array(DH)); + var UH = /* @__PURE__ */ _H("crypto", BH, null); + var tt = new xH(UH); + async function jH(t) { return tt.init(t); } function or(t) { @@ -6847,64 +6847,64 @@ ${gz(e, r)}`); return t(tt.wasm, ...e); }; } - var UH = /* @__PURE__ */ or((t, e) => (t.ext_bip39_generate(8, e), tt.resultString())); - var jH = /* @__PURE__ */ or((t, e) => (t.ext_bip39_to_entropy(8, ...tt.allocString(e)), tt.resultU8a())); - var VH = /* @__PURE__ */ or((t, e, r) => (t.ext_bip39_to_mini_secret(8, ...tt.allocString(e), ...tt.allocString(r)), tt.resultU8a())); - var zH = /* @__PURE__ */ or((t, e, r) => (t.ext_bip39_to_seed(8, ...tt.allocString(e), ...tt.allocString(r)), tt.resultU8a())); - var FH = /* @__PURE__ */ or((t, e) => t.ext_bip39_validate(...tt.allocString(e)) !== 0); - var HH = /* @__PURE__ */ or((t, e) => (t.ext_ed_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); - var qH = /* @__PURE__ */ or((t, e, r, n) => (t.ext_ed_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)), tt.resultU8a())); - var WH = /* @__PURE__ */ or((t, e, r, n) => t.ext_ed_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)) !== 0); - var GH = /* @__PURE__ */ or((t, e) => (t.ext_secp_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); - var KH = /* @__PURE__ */ or((t, e) => (t.ext_secp_pub_compress(8, ...tt.allocU8a(e)), tt.resultU8a())); - var XH = /* @__PURE__ */ or((t, e) => (t.ext_secp_pub_expand(8, ...tt.allocU8a(e)), tt.resultU8a())); - var YH = /* @__PURE__ */ or((t, e, r, n) => (t.ext_secp_recover(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); - var ZH = /* @__PURE__ */ or((t, e, r) => (t.ext_secp_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var JH = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_keypair_hard(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var QH = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_keypair_soft(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var $H = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_public_soft(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var eq = /* @__PURE__ */ or((t, e) => (t.ext_sr_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); - var tq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_sr_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)), tt.resultU8a())); - var rq = /* @__PURE__ */ or((t, e, r, n) => t.ext_sr_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)) !== 0); - var nq = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_agree(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var iq = /* @__PURE__ */ or((t, e, r, n, i) => (t.ext_vrf_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n), ...tt.allocU8a(i)), tt.resultU8a())); - var sq = /* @__PURE__ */ or((t, e, r, n, i, s) => t.ext_vrf_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n), ...tt.allocU8a(i), ...tt.allocU8a(s)) !== 0); - var oq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_blake2b(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); - var aq = /* @__PURE__ */ or((t, e, r) => (t.ext_hmac_sha256(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var cq = /* @__PURE__ */ or((t, e, r) => (t.ext_hmac_sha512(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); - var uq = /* @__PURE__ */ or((t, e) => (t.ext_keccak256(8, ...tt.allocU8a(e)), tt.resultU8a())); - var lq = /* @__PURE__ */ or((t, e) => (t.ext_keccak512(8, ...tt.allocU8a(e)), tt.resultU8a())); - var fq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_pbkdf2(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); - var hq = /* @__PURE__ */ or((t, e, r, n, i, s) => (t.ext_scrypt(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n, i, s), tt.resultU8a())); - var dq = /* @__PURE__ */ or((t, e) => (t.ext_sha256(8, ...tt.allocU8a(e)), tt.resultU8a())); - var pq = /* @__PURE__ */ or((t, e) => (t.ext_sha512(8, ...tt.allocU8a(e)), tt.resultU8a())); - var mq = /* @__PURE__ */ or((t, e, r) => (t.ext_twox(8, ...tt.allocU8a(e), r), tt.resultU8a())); + var VH = /* @__PURE__ */ or((t, e) => (t.ext_bip39_generate(8, e), tt.resultString())); + var zH = /* @__PURE__ */ or((t, e) => (t.ext_bip39_to_entropy(8, ...tt.allocString(e)), tt.resultU8a())); + var FH = /* @__PURE__ */ or((t, e, r) => (t.ext_bip39_to_mini_secret(8, ...tt.allocString(e), ...tt.allocString(r)), tt.resultU8a())); + var HH = /* @__PURE__ */ or((t, e, r) => (t.ext_bip39_to_seed(8, ...tt.allocString(e), ...tt.allocString(r)), tt.resultU8a())); + var qH = /* @__PURE__ */ or((t, e) => t.ext_bip39_validate(...tt.allocString(e)) !== 0); + var WH = /* @__PURE__ */ or((t, e) => (t.ext_ed_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); + var GH = /* @__PURE__ */ or((t, e, r, n) => (t.ext_ed_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)), tt.resultU8a())); + var KH = /* @__PURE__ */ or((t, e, r, n) => t.ext_ed_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)) !== 0); + var XH = /* @__PURE__ */ or((t, e) => (t.ext_secp_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); + var YH = /* @__PURE__ */ or((t, e) => (t.ext_secp_pub_compress(8, ...tt.allocU8a(e)), tt.resultU8a())); + var ZH = /* @__PURE__ */ or((t, e) => (t.ext_secp_pub_expand(8, ...tt.allocU8a(e)), tt.resultU8a())); + var JH = /* @__PURE__ */ or((t, e, r, n) => (t.ext_secp_recover(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); + var QH = /* @__PURE__ */ or((t, e, r) => (t.ext_secp_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var $H = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_keypair_hard(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var eq = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_keypair_soft(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var tq = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_derive_public_soft(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var rq = /* @__PURE__ */ or((t, e) => (t.ext_sr_from_seed(8, ...tt.allocU8a(e)), tt.resultU8a())); + var nq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_sr_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)), tt.resultU8a())); + var iq = /* @__PURE__ */ or((t, e, r, n) => t.ext_sr_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n)) !== 0); + var sq = /* @__PURE__ */ or((t, e, r) => (t.ext_sr_agree(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var oq = /* @__PURE__ */ or((t, e, r, n, i) => (t.ext_vrf_sign(8, ...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n), ...tt.allocU8a(i)), tt.resultU8a())); + var aq = /* @__PURE__ */ or((t, e, r, n, i, s) => t.ext_vrf_verify(...tt.allocU8a(e), ...tt.allocU8a(r), ...tt.allocU8a(n), ...tt.allocU8a(i), ...tt.allocU8a(s)) !== 0); + var cq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_blake2b(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); + var uq = /* @__PURE__ */ or((t, e, r) => (t.ext_hmac_sha256(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var lq = /* @__PURE__ */ or((t, e, r) => (t.ext_hmac_sha512(8, ...tt.allocU8a(e), ...tt.allocU8a(r)), tt.resultU8a())); + var fq = /* @__PURE__ */ or((t, e) => (t.ext_keccak256(8, ...tt.allocU8a(e)), tt.resultU8a())); + var hq = /* @__PURE__ */ or((t, e) => (t.ext_keccak512(8, ...tt.allocU8a(e)), tt.resultU8a())); + var dq = /* @__PURE__ */ or((t, e, r, n) => (t.ext_pbkdf2(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n), tt.resultU8a())); + var pq = /* @__PURE__ */ or((t, e, r, n, i, s) => (t.ext_scrypt(8, ...tt.allocU8a(e), ...tt.allocU8a(r), n, i, s), tt.resultU8a())); + var mq = /* @__PURE__ */ or((t, e) => (t.ext_sha256(8, ...tt.allocU8a(e)), tt.resultU8a())); + var gq = /* @__PURE__ */ or((t, e) => (t.ext_sha512(8, ...tt.allocU8a(e)), tt.resultU8a())); + var yq = /* @__PURE__ */ or((t, e, r) => (t.ext_twox(8, ...tt.allocU8a(e), r), tt.resultU8a())); function tn() { return !!tt.wasm; } - async function gq() { + async function bq() { try { - return !!await BH(); + return !!await jH(); } catch { return false; } } - var yq = tn; + var wq = tn; function hI() { - return gq().then(() => { + return bq().then(() => { if (!tn()) throw new Error("Unable to initialize @polkadot/util-crypto"); return true; }).catch(() => false); } - function k1(t) { + function R1(t) { return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array"; } - function m4(...t) { + function p4(...t) { const e = (s) => s, r = (s, o) => (a) => s(o(a)), n = t.map((s) => s.encode).reduceRight(r, e), i = t.map((s) => s.decode).reduce(r, e); return { encode: n, decode: i }; } - function g4(t) { + function m4(t) { return { encode: (e) => { if (!Array.isArray(e) || e.length && typeof e[0] != "number") @@ -6929,7 +6929,7 @@ ${gz(e, r)}`); } }; } - function y4(t = "") { + function g4(t = "") { if (typeof t != "string") throw new Error("join separator should be string"); return { @@ -6978,7 +6978,7 @@ ${gz(e, r)}`); } }; } - function O3(t, e, r) { + function I3(t, e, r) { if (e < 2) throw new Error(`convertRadix: wrong from=${e}, base cannot be less than 2`); if (r < 2) @@ -7015,16 +7015,16 @@ ${gz(e, r)}`); return i.reverse(); } var pI = (t, e) => e ? /* @__PURE__ */ pI(e, t % e) : t; - var R1 = (t, e) => t + (e - /* @__PURE__ */ pI(t, e)); - function P3(t, e, r, n) { + var C1 = (t, e) => t + (e - /* @__PURE__ */ pI(t, e)); + function O3(t, e, r, n) { if (!Array.isArray(t)) throw new Error("convertRadix2: data should be array"); if (e <= 0 || e > 32) throw new Error(`convertRadix2: wrong from=${e}`); if (r <= 0 || r > 32) throw new Error(`convertRadix2: wrong to=${r}`); - if (/* @__PURE__ */ R1(e, r) > 32) - throw new Error(`convertRadix2: carry overflow from=${e} to=${r} carryBits=${/* @__PURE__ */ R1(e, r)}`); + if (/* @__PURE__ */ C1(e, r) > 32) + throw new Error(`convertRadix2: carry overflow from=${e} to=${r} carryBits=${/* @__PURE__ */ C1(e, r)}`); let i = 0, s = 0; const o = 2 ** r - 1, a = []; for (const c of t) { @@ -7045,47 +7045,47 @@ ${gz(e, r)}`); function mI(t) { return { encode: (e) => { - if (!k1(e)) + if (!R1(e)) throw new Error("radix.encode input should be Uint8Array"); - return /* @__PURE__ */ O3(Array.from(e), 2 ** 8, t); + return /* @__PURE__ */ I3(Array.from(e), 2 ** 8, t); }, decode: (e) => { if (!Array.isArray(e) || e.length && typeof e[0] != "number") throw new Error("radix.decode input should be array of numbers"); - return Uint8Array.from(/* @__PURE__ */ O3(e, t, 2 ** 8)); + return Uint8Array.from(/* @__PURE__ */ I3(e, t, 2 ** 8)); } }; } function gI(t, e = false) { if (t <= 0 || t > 32) throw new Error("radix2: bits should be in (0..32]"); - if (/* @__PURE__ */ R1(8, t) > 32 || /* @__PURE__ */ R1(t, 8) > 32) + if (/* @__PURE__ */ C1(8, t) > 32 || /* @__PURE__ */ C1(t, 8) > 32) throw new Error("radix2: carry overflow"); return { encode: (r) => { - if (!k1(r)) + if (!R1(r)) throw new Error("radix2.encode input should be Uint8Array"); - return /* @__PURE__ */ P3(Array.from(r), 8, t, !e); + return /* @__PURE__ */ O3(Array.from(r), 8, t, !e); }, decode: (r) => { if (!Array.isArray(r) || r.length && typeof r[0] != "number") throw new Error("radix2.decode input should be array of numbers"); - return Uint8Array.from(/* @__PURE__ */ P3(r, t, 8, e)); + return Uint8Array.from(/* @__PURE__ */ O3(r, t, 8, e)); } }; } - function bq(t, e) { + function vq(t, e) { if (typeof e != "function") throw new Error("checksum fn should be function"); return { encode(r) { - if (!k1(r)) + if (!R1(r)) throw new Error("checksum.encode: input should be Uint8Array"); const n = e(r).slice(0, t), i = new Uint8Array(r.length + t); return i.set(r), i.set(n, r.length), i; }, decode(r) { - if (!k1(r)) + if (!R1(r)) throw new Error("checksum.decode: input should be Uint8Array"); const n = r.slice(0, -t), i = e(n).slice(0, t), s = r.slice(-t); for (let o = 0; o < t; o++) @@ -7095,30 +7095,30 @@ ${gz(e, r)}`); } }; } - var ty = { - alphabet: g4, - chain: m4, - checksum: bq, - convertRadix: O3, - convertRadix2: P3, + var ey = { + alphabet: m4, + chain: p4, + checksum: vq, + convertRadix: I3, + convertRadix2: O3, radix: mI, radix2: gI, - join: y4, + join: g4, padding: dI }; - var wq = /* @__PURE__ */ m4(/* @__PURE__ */ gI(6), /* @__PURE__ */ g4("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ dI(6), /* @__PURE__ */ y4("")); - var vq = (t) => /* @__PURE__ */ m4(/* @__PURE__ */ mI(58), /* @__PURE__ */ g4(t), /* @__PURE__ */ y4("")); - var xq = /* @__PURE__ */ vq("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); - function b4({ coder: t, ipfs: e }, r) { + var xq = /* @__PURE__ */ p4(/* @__PURE__ */ gI(6), /* @__PURE__ */ m4("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ dI(6), /* @__PURE__ */ g4("")); + var _q = (t) => /* @__PURE__ */ p4(/* @__PURE__ */ mI(58), /* @__PURE__ */ m4(t), /* @__PURE__ */ g4("")); + var Eq = /* @__PURE__ */ _q("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); + function y4({ coder: t, ipfs: e }, r) { return (n, i) => (r(n, i), t.decode(e && i ? n.substring(1) : n)); } - function w4({ coder: t, ipfs: e }) { + function b4({ coder: t, ipfs: e }) { return (r, n) => { const i = t.encode(Xe(r)); return e && n ? `${e}${i}` : i; }; } - function v4(t) { + function w4(t) { return (e, r) => { try { return t(e, r); @@ -7127,7 +7127,7 @@ ${gz(e, r)}`); } }; } - function x4({ chars: t, ipfs: e, type: r, withPadding: n }) { + function v4({ chars: t, ipfs: e, type: r, withPadding: n }) { return (i, s) => { if (typeof i != "string") throw new Error(`Expected ${r} string input`); @@ -7145,25 +7145,25 @@ ${gz(e, r)}`); return true; }; } - var _4 = { + var x4 = { chars: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", - coder: xq, + coder: Eq, ipfs: "z", type: "base58" }; - var E4 = /* @__PURE__ */ x4(_4); - var S4 = /* @__PURE__ */ b4(_4, E4); - var yI = /* @__PURE__ */ w4(_4); - var _q = /* @__PURE__ */ v4(E4); + var _4 = /* @__PURE__ */ v4(x4); + var E4 = /* @__PURE__ */ y4(x4, _4); + var yI = /* @__PURE__ */ b4(x4); + var Sq = /* @__PURE__ */ w4(_4); function ui(t) { if (!Number.isSafeInteger(t) || t < 0) throw new Error(`positive integer expected, not ${t}`); } - function Eq(t) { + function Mq(t) { return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array"; } - function s0(t, ...e) { - if (!Eq(t)) + function o0(t, ...e) { + if (!Mq(t)) throw new Error("Uint8Array expected"); if (e.length > 0 && !e.includes(t.length)) throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`); @@ -7173,43 +7173,43 @@ ${gz(e, r)}`); throw new Error("Hash should be wrapped by utils.wrapConstructor"); ui(t.outputLen), ui(t.blockLen); } - function Qc(t, e = true) { + function Zc(t, e = true) { if (t.destroyed) throw new Error("Hash instance has been destroyed"); if (e && t.finished) throw new Error("Hash#digest() has already been called"); } - function M4(t, e) { - s0(t); + function S4(t, e) { + o0(t); const r = e.outputLen; if (t.length < r) throw new Error(`digestInto() expects output buffer of length at least ${r}`); } - var ry = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0; - var qc = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)); - var Lp = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength); - var _o = (t, e) => t << 32 - e | t >>> e; + var ty = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0; + var Fc = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)); + var Bp = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength); + var xo = (t, e) => t << 32 - e | t >>> e; var nr = (t, e) => t << e | t >>> 32 - e >>> 0; - var ao = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68; + var oo = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68; var wI = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255; - var Ma = ao ? (t) => t : (t) => wI(t); - function Vo(t) { + var Ea = oo ? (t) => t : (t) => wI(t); + function jo(t) { for (let e = 0; e < t.length; e++) t[e] = wI(t[e]); } - function Sq(t) { + function Aq(t) { if (typeof t != "string") throw new Error(`utf8ToBytes expected string, got ${typeof t}`); return new Uint8Array(new TextEncoder().encode(t)); } - function ho(t) { - return typeof t == "string" && (t = Sq(t)), s0(t), t; + function fo(t) { + return typeof t == "string" && (t = Aq(t)), o0(t), t; } - function Mq(...t) { + function Tq(...t) { let e = 0; for (let n = 0; n < t.length; n++) { const i = t[n]; - s0(i), e += i.length; + o0(i), e += i.length; } const r = new Uint8Array(e); for (let n = 0, i = 0; n < t.length; n++) { @@ -7223,26 +7223,26 @@ ${gz(e, r)}`); return this._cloneInto(); } }; - var Aq = {}.toString; + var Nq = {}.toString; function vI(t, e) { - if (e !== void 0 && Aq.call(e) !== "[object Object]") + if (e !== void 0 && Nq.call(e) !== "[object Object]") throw new Error("Options should be object or undefined"); return Object.assign(t, e); } - function A4(t) { - const e = (n) => t().update(ho(n)).digest(), r = t(); + function M4(t) { + const e = (n) => t().update(fo(n)).digest(), r = t(); return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = () => t(), e; } - function Tq(t) { - const e = (n, i) => t(i).update(ho(n)).digest(), r = t({}); + function Iq(t) { + const e = (n, i) => t(i).update(fo(n)).digest(), r = t({}); return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = (n) => t(n), e; } function xI(t = 32) { - if (ry && typeof ry.getRandomValues == "function") - return ry.getRandomValues(new Uint8Array(t)); + if (ty && typeof ty.getRandomValues == "function") + return ty.getRandomValues(new Uint8Array(t)); throw new Error("crypto.getRandomValues must be defined"); } - var Nq = /* @__PURE__ */ new Uint8Array([ + var Oq = /* @__PURE__ */ new Uint8Array([ 0, 1, 2, @@ -7436,7 +7436,7 @@ ${gz(e, r)}`); 5, 3 ]); - var Iq = class extends ug { + var Pq = class extends ug { constructor(e, r, n = {}, i, s, o) { if (super(), this.blockLen = e, this.outputLen = r, this.length = 0, this.pos = 0, this.finished = false, this.destroyed = false, ui(e), ui(r), ui(i), r < 0 || r > i) throw new Error("outputLen bigger than keyLen"); @@ -7446,22 +7446,22 @@ ${gz(e, r)}`); throw new Error(`salt must be ${s} byte long or undefined`); if (n.personalization !== void 0 && n.personalization.length !== o) throw new Error(`personalization must be ${o} byte long or undefined`); - this.buffer32 = qc(this.buffer = new Uint8Array(e)); + this.buffer32 = Fc(this.buffer = new Uint8Array(e)); } update(e) { - Qc(this); + Zc(this); const { blockLen: r, buffer: n, buffer32: i } = this; - e = ho(e); + e = fo(e); const s = e.length, o = e.byteOffset, a = e.buffer; for (let c = 0; c < s; ) { - this.pos === r && (ao || Vo(i), this.compress(i, 0, false), ao || Vo(i), this.pos = 0); + this.pos === r && (oo || jo(i), this.compress(i, 0, false), oo || jo(i), this.pos = 0); const u = Math.min(r - this.pos, s - c), f = o + c; if (u === r && !(f % 4) && c + u < s) { const p = new Uint32Array(a, f, Math.floor((s - c) / 4)); - ao || Vo(p); + oo || jo(p); for (let b = 0; c + r < s; b += i.length, c += r) this.length += r, this.compress(p, b, false); - ao || Vo(p); + oo || jo(p); continue; } n.set(e.subarray(c, c + u), this.pos), this.pos += u, this.length += u, c += u; @@ -7469,11 +7469,11 @@ ${gz(e, r)}`); return this; } digestInto(e) { - Qc(this), M4(e, this); + Zc(this), S4(e, this); const { pos: r, buffer32: n } = this; - this.finished = true, this.buffer.subarray(r).fill(0), ao || Vo(n), this.compress(n, 0, true), ao || Vo(n); - const i = qc(e); - this.get().forEach((s, o) => i[o] = Ma(s)); + this.finished = true, this.buffer.subarray(r).fill(0), oo || jo(n), this.compress(n, 0, true), oo || jo(n); + const i = Fc(e); + this.get().forEach((s, o) => i[o] = Ea(s)); } digest() { const { buffer: e, outputLen: r } = this; @@ -7487,9 +7487,9 @@ ${gz(e, r)}`); } }; var G0 = /* @__PURE__ */ BigInt(2 ** 32 - 1); - var k3 = /* @__PURE__ */ BigInt(32); + var P3 = /* @__PURE__ */ BigInt(32); function _I(t, e = false) { - return e ? { h: Number(t & G0), l: Number(t >> k3 & G0) } : { h: Number(t >> k3 & G0) | 0, l: Number(t & G0) | 0 }; + return e ? { h: Number(t & G0), l: Number(t >> P3 & G0) } : { h: Number(t >> P3 & G0) | 0, l: Number(t & G0) | 0 }; } function EI(t, e = false) { let r = new Uint32Array(t.length), n = new Uint32Array(t.length); @@ -7499,54 +7499,54 @@ ${gz(e, r)}`); } return [r, n]; } - var Oq = (t, e) => BigInt(t >>> 0) << k3 | BigInt(e >>> 0); - var Pq = (t, e, r) => t >>> r; - var kq = (t, e, r) => t << 32 - r | e >>> r; - var Rq = (t, e, r) => t >>> r | e << 32 - r; + var kq = (t, e) => BigInt(t >>> 0) << P3 | BigInt(e >>> 0); + var Rq = (t, e, r) => t >>> r; var Cq = (t, e, r) => t << 32 - r | e >>> r; - var Dq = (t, e, r) => t << 64 - r | e >>> r - 32; - var Lq = (t, e, r) => t >>> r - 32 | e << 64 - r; - var Bq = (t, e) => e; - var Uq = (t, e) => t; + var Dq = (t, e, r) => t >>> r | e << 32 - r; + var Lq = (t, e, r) => t << 32 - r | e >>> r; + var Bq = (t, e, r) => t << 64 - r | e >>> r - 32; + var Uq = (t, e, r) => t >>> r - 32 | e << 64 - r; + var jq = (t, e) => e; + var Vq = (t, e) => t; var SI = (t, e, r) => t << r | e >>> 32 - r; var MI = (t, e, r) => e << r | t >>> 32 - r; var AI = (t, e, r) => e << r - 32 | t >>> 64 - r; var TI = (t, e, r) => t << r - 32 | e >>> 64 - r; - function jq(t, e, r, n) { + function zq(t, e, r, n) { const i = (e >>> 0) + (n >>> 0); return { h: t + r + (i / 2 ** 32 | 0) | 0, l: i | 0 }; } - var Vq = (t, e, r) => (t >>> 0) + (e >>> 0) + (r >>> 0); - var zq = (t, e, r, n) => e + r + n + (t / 2 ** 32 | 0) | 0; - var Fq = (t, e, r, n) => (t >>> 0) + (e >>> 0) + (r >>> 0) + (n >>> 0); - var Hq = (t, e, r, n, i) => e + r + n + i + (t / 2 ** 32 | 0) | 0; - var qq = (t, e, r, n, i) => (t >>> 0) + (e >>> 0) + (r >>> 0) + (n >>> 0) + (i >>> 0); - var Wq = (t, e, r, n, i, s) => e + r + n + i + s + (t / 2 ** 32 | 0) | 0; - var Gq = { + var Fq = (t, e, r) => (t >>> 0) + (e >>> 0) + (r >>> 0); + var Hq = (t, e, r, n) => e + r + n + (t / 2 ** 32 | 0) | 0; + var qq = (t, e, r, n) => (t >>> 0) + (e >>> 0) + (r >>> 0) + (n >>> 0); + var Wq = (t, e, r, n, i) => e + r + n + i + (t / 2 ** 32 | 0) | 0; + var Gq = (t, e, r, n, i) => (t >>> 0) + (e >>> 0) + (r >>> 0) + (n >>> 0) + (i >>> 0); + var Kq = (t, e, r, n, i, s) => e + r + n + i + s + (t / 2 ** 32 | 0) | 0; + var Xq = { fromBig: _I, split: EI, - toBig: Oq, - shrSH: Pq, - shrSL: kq, - rotrSH: Rq, - rotrSL: Cq, - rotrBH: Dq, - rotrBL: Lq, - rotr32H: Bq, - rotr32L: Uq, + toBig: kq, + shrSH: Rq, + shrSL: Cq, + rotrSH: Dq, + rotrSL: Lq, + rotrBH: Bq, + rotrBL: Uq, + rotr32H: jq, + rotr32L: Vq, rotlSH: SI, rotlSL: MI, rotlBH: AI, rotlBL: TI, - add: jq, - add3L: Vq, - add3H: zq, - add4L: Fq, - add4H: Hq, - add5H: Wq, - add5L: qq - }; - var Tt = Gq; + add: zq, + add3L: Fq, + add3H: Hq, + add4L: qq, + add4H: Wq, + add5H: Kq, + add5L: Gq + }; + var Tt = Xq; var dn = /* @__PURE__ */ new Uint32Array([ 4089235720, 1779033703, @@ -7566,31 +7566,31 @@ ${gz(e, r)}`); 1541459225 ]); var mt = /* @__PURE__ */ new Uint32Array(32); - function gc(t, e, r, n, i, s) { + function pc(t, e, r, n, i, s) { const o = i[s], a = i[s + 1]; let c = mt[2 * t], u = mt[2 * t + 1], f = mt[2 * e], p = mt[2 * e + 1], b = mt[2 * r], E = mt[2 * r + 1], _ = mt[2 * n], N = mt[2 * n + 1], k = Tt.add3L(c, f, o); u = Tt.add3H(k, u, p, a), c = k | 0, { Dh: N, Dl: _ } = { Dh: N ^ u, Dl: _ ^ c }, { Dh: N, Dl: _ } = { Dh: Tt.rotr32H(N, _), Dl: Tt.rotr32L(N, _) }, { h: E, l: b } = Tt.add(E, b, N, _), { Bh: p, Bl: f } = { Bh: p ^ E, Bl: f ^ b }, { Bh: p, Bl: f } = { Bh: Tt.rotrSH(p, f, 24), Bl: Tt.rotrSL(p, f, 24) }, mt[2 * t] = c, mt[2 * t + 1] = u, mt[2 * e] = f, mt[2 * e + 1] = p, mt[2 * r] = b, mt[2 * r + 1] = E, mt[2 * n] = _, mt[2 * n + 1] = N; } - function yc(t, e, r, n, i, s) { + function mc(t, e, r, n, i, s) { const o = i[s], a = i[s + 1]; let c = mt[2 * t], u = mt[2 * t + 1], f = mt[2 * e], p = mt[2 * e + 1], b = mt[2 * r], E = mt[2 * r + 1], _ = mt[2 * n], N = mt[2 * n + 1], k = Tt.add3L(c, f, o); u = Tt.add3H(k, u, p, a), c = k | 0, { Dh: N, Dl: _ } = { Dh: N ^ u, Dl: _ ^ c }, { Dh: N, Dl: _ } = { Dh: Tt.rotrSH(N, _, 16), Dl: Tt.rotrSL(N, _, 16) }, { h: E, l: b } = Tt.add(E, b, N, _), { Bh: p, Bl: f } = { Bh: p ^ E, Bl: f ^ b }, { Bh: p, Bl: f } = { Bh: Tt.rotrBH(p, f, 63), Bl: Tt.rotrBL(p, f, 63) }, mt[2 * t] = c, mt[2 * t + 1] = u, mt[2 * e] = f, mt[2 * e + 1] = p, mt[2 * r] = b, mt[2 * r + 1] = E, mt[2 * n] = _, mt[2 * n + 1] = N; } - var Kq = class extends Iq { + var Yq = class extends Pq { constructor(e = {}) { super(128, e.dkLen === void 0 ? 64 : e.dkLen, e, 64, 16, 16), this.v0l = dn[0] | 0, this.v0h = dn[1] | 0, this.v1l = dn[2] | 0, this.v1h = dn[3] | 0, this.v2l = dn[4] | 0, this.v2h = dn[5] | 0, this.v3l = dn[6] | 0, this.v3h = dn[7] | 0, this.v4l = dn[8] | 0, this.v4h = dn[9] | 0, this.v5l = dn[10] | 0, this.v5h = dn[11] | 0, this.v6l = dn[12] | 0, this.v6h = dn[13] | 0, this.v7l = dn[14] | 0, this.v7h = dn[15] | 0; const r = e.key ? e.key.length : 0; if (this.v0l ^= this.outputLen | r << 8 | 65536 | 1 << 24, e.salt) { - const n = qc(ho(e.salt)); - this.v4l ^= Ma(n[0]), this.v4h ^= Ma(n[1]), this.v5l ^= Ma(n[2]), this.v5h ^= Ma(n[3]); + const n = Fc(fo(e.salt)); + this.v4l ^= Ea(n[0]), this.v4h ^= Ea(n[1]), this.v5l ^= Ea(n[2]), this.v5h ^= Ea(n[3]); } if (e.personalization) { - const n = qc(ho(e.personalization)); - this.v6l ^= Ma(n[0]), this.v6h ^= Ma(n[1]), this.v7l ^= Ma(n[2]), this.v7h ^= Ma(n[3]); + const n = Fc(fo(e.personalization)); + this.v6l ^= Ea(n[0]), this.v6h ^= Ea(n[1]), this.v7l ^= Ea(n[2]), this.v7h ^= Ea(n[3]); } if (e.key) { const n = new Uint8Array(this.blockLen); - n.set(ho(e.key)), this.update(n); + n.set(fo(e.key)), this.update(n); } } get() { @@ -7605,16 +7605,16 @@ ${gz(e, r)}`); let { h: i, l: s } = Tt.fromBig(BigInt(this.length)); mt[24] = dn[8] ^ s, mt[25] = dn[9] ^ i, n && (mt[28] = ~mt[28], mt[29] = ~mt[29]); let o = 0; - const a = Nq; + const a = Oq; for (let c = 0; c < 12; c++) - gc(0, 4, 8, 12, e, r + 2 * a[o++]), yc(0, 4, 8, 12, e, r + 2 * a[o++]), gc(1, 5, 9, 13, e, r + 2 * a[o++]), yc(1, 5, 9, 13, e, r + 2 * a[o++]), gc(2, 6, 10, 14, e, r + 2 * a[o++]), yc(2, 6, 10, 14, e, r + 2 * a[o++]), gc(3, 7, 11, 15, e, r + 2 * a[o++]), yc(3, 7, 11, 15, e, r + 2 * a[o++]), gc(0, 5, 10, 15, e, r + 2 * a[o++]), yc(0, 5, 10, 15, e, r + 2 * a[o++]), gc(1, 6, 11, 12, e, r + 2 * a[o++]), yc(1, 6, 11, 12, e, r + 2 * a[o++]), gc(2, 7, 8, 13, e, r + 2 * a[o++]), yc(2, 7, 8, 13, e, r + 2 * a[o++]), gc(3, 4, 9, 14, e, r + 2 * a[o++]), yc(3, 4, 9, 14, e, r + 2 * a[o++]); + pc(0, 4, 8, 12, e, r + 2 * a[o++]), mc(0, 4, 8, 12, e, r + 2 * a[o++]), pc(1, 5, 9, 13, e, r + 2 * a[o++]), mc(1, 5, 9, 13, e, r + 2 * a[o++]), pc(2, 6, 10, 14, e, r + 2 * a[o++]), mc(2, 6, 10, 14, e, r + 2 * a[o++]), pc(3, 7, 11, 15, e, r + 2 * a[o++]), mc(3, 7, 11, 15, e, r + 2 * a[o++]), pc(0, 5, 10, 15, e, r + 2 * a[o++]), mc(0, 5, 10, 15, e, r + 2 * a[o++]), pc(1, 6, 11, 12, e, r + 2 * a[o++]), mc(1, 6, 11, 12, e, r + 2 * a[o++]), pc(2, 7, 8, 13, e, r + 2 * a[o++]), mc(2, 7, 8, 13, e, r + 2 * a[o++]), pc(3, 4, 9, 14, e, r + 2 * a[o++]), mc(3, 4, 9, 14, e, r + 2 * a[o++]); this.v0l ^= mt[0] ^ mt[16], this.v0h ^= mt[1] ^ mt[17], this.v1l ^= mt[2] ^ mt[18], this.v1h ^= mt[3] ^ mt[19], this.v2l ^= mt[4] ^ mt[20], this.v2h ^= mt[5] ^ mt[21], this.v3l ^= mt[6] ^ mt[22], this.v3h ^= mt[7] ^ mt[23], this.v4l ^= mt[8] ^ mt[24], this.v4h ^= mt[9] ^ mt[25], this.v5l ^= mt[10] ^ mt[26], this.v5h ^= mt[11] ^ mt[27], this.v6l ^= mt[12] ^ mt[28], this.v6h ^= mt[13] ^ mt[29], this.v7l ^= mt[14] ^ mt[30], this.v7h ^= mt[15] ^ mt[31], mt.fill(0); } destroy() { this.destroyed = true, this.buffer32.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } }; - var X9 = /* @__PURE__ */ Tq((t) => new Kq(t)); + var K9 = /* @__PURE__ */ Iq((t) => new Yq(t)); function lg(t) { return (...e) => Bt(t(...e)); } @@ -7629,18 +7629,18 @@ ${gz(e, r)}`); } function kn(t, e = 256, r, n) { const i = Math.ceil(e / 8), s = Xe(t); - return !hn || !n && tn() ? oq(s, Xe(r), i) : r ? X9(s, { dkLen: i, key: r }) : X9(s, { dkLen: i }); + return !hn || !n && tn() ? cq(s, Xe(r), i) : r ? K9(s, { dkLen: i, key: r }) : K9(s, { dkLen: i }); } - var Bp = /* @__PURE__ */ lg(kn); - var Xq = Dr("SS58PRE"); + var Up = /* @__PURE__ */ lg(kn); + var Zq = Cr("SS58PRE"); function II(t) { - return kn($t(Xq, t), 512); + return kn(Qt(Zq, t), 512); } - function T4(t) { + function A4(t) { const e = t[0] & 64 ? 2 : 1, r = e === 1 ? t[0] : (t[0] & 63) << 2 | t[1] >> 6 | (t[1] & 63) << 8, n = [34 + e, 35 + e].includes(t.length), i = t.length - (n ? 2 : 1), s = II(t.subarray(0, i)); return [(t[0] & 128) === 0 && ![46, 47].includes(t[0]) && (n ? t[t.length - 2] === s[0] && t[t.length - 1] === s[1] : t[t.length - 1] === s[0]), i, e, r]; } - var Yq = [ + var Jq = [ { prefix: 0, network: "polkadot", @@ -9532,7 +9532,7 @@ ${gz(e, r)}`); website: "https://xcavate.io/" } ]; - var Zq = { + var Qq = { acala: [ "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c" ], @@ -9696,7 +9696,7 @@ ${gz(e, r)}`); "0x1bf2a2ecb4a868de66ea8610f2ce7c8c43706561b6476031315f6640fe38e060" ] }; - var Jq = { + var $q = { centrifuge: "polkadot", kusama: "polkadot", polkadot: "polkadot", @@ -9705,7 +9705,7 @@ ${gz(e, r)}`); statemint: "polkadot", westmint: "polkadot" }; - var Qq = { + var eW = { acala: 787, ajuna: 354, "aleph-node": 643, @@ -9746,7 +9746,7 @@ ${gz(e, r)}`); xxnetwork: 1955, zeitgeist: 354 }; - var $q = { + var tW = { "": true, "cess-testnet": true, "dock-testnet": true, @@ -9756,30 +9756,30 @@ ${gz(e, r)}`); subspace_testnet: true, "zero-alphaville": true }; - var Y9 = [0, 2, 42]; - var eW = ["testnet"]; - function tW(t) { + var X9 = [0, 2, 42]; + var rW = ["testnet"]; + function nW(t) { var i, s; const e = t.network || "", r = e.replace(/_/g, "-").split("-"), n = t; - return n.slip44 = Qq[e], n.hasLedgerSupport = !!n.slip44, n.genesisHash = Zq[e] || [], n.icon = Jq[e] || "substrate", n.isTestnet = !!$q[e] || eW.includes(r[r.length - 1]), n.isIgnored = n.isTestnet || !(t.standardAccount && ((i = t.decimals) != null && i.length) && ((s = t.symbols) != null && s.length)) && t.prefix !== 42, n; + return n.slip44 = eW[e], n.hasLedgerSupport = !!n.slip44, n.genesisHash = Qq[e] || [], n.icon = $q[e] || "substrate", n.isTestnet = !!tW[e] || rW.includes(r[r.length - 1]), n.isIgnored = n.isTestnet || !(t.standardAccount && ((i = t.decimals) != null && i.length) && ((s = t.symbols) != null && s.length)) && t.prefix !== 42, n; } - function rW({ genesisHash: t, prefix: e }) { + function iW({ genesisHash: t, prefix: e }) { return !!t.length || e === 42; } - function nW(t) { + function sW(t) { return !t.isIgnored && !!t.network; } - function iW(t, e) { - const r = Y9.includes(t.prefix), n = Y9.includes(e.prefix); + function oW(t, e) { + const r = X9.includes(t.prefix), n = X9.includes(e.prefix); return r === n ? r ? 0 : t.displayName.localeCompare(e.displayName) : r ? -1 : 1; } - var OI = Yq.map(tW); - var N4 = OI.filter(nW).sort(iW); - var PI = N4.filter(rW); + var OI = Jq.map(nW); + var T4 = OI.filter(sW).sort(oW); + var PI = T4.filter(iW); var pf = { allowedDecodedLengths: [1, 2, 4, 8, 32, 33], allowedEncodedLengths: [3, 4, 6, 10, 35, 36, 37, 38], - allowedPrefix: N4.map(({ prefix: t }) => t), + allowedPrefix: T4.map(({ prefix: t }) => t), prefix: 42 }; function Mr(t, e, r = -1) { @@ -9788,10 +9788,10 @@ ${gz(e, r)}`); if (Et(t) || Ft(t)) return Xe(t); try { - const n = S4(t); + const n = E4(t); if (!pf.allowedEncodedLengths.includes(n.length)) throw new Error("Invalid decoded address length"); - const [i, s, o, a] = T4(n); + const [i, s, o, a] = A4(n); if (!i && !e) throw new Error("Invalid decoded address checksum"); if (r !== -1 && r !== a) @@ -9801,37 +9801,37 @@ ${gz(e, r)}`); throw new Error(`Decoding ${t}: ${n.message}`); } } - function sW(t, e) { + function aW(t, e) { return Mr(t, e).subarray(0, 20); } - function oW(t, e) { + function cW(t, e) { let r; try { - r = S4(t); + r = E4(t); } catch (s) { return [false, s.message]; } - const [n, , , i] = T4(r); + const [n, , , i] = A4(r); return i !== e ? [false, `Prefix mismatch, expected ${e}, found ${i}`] : pf.allowedEncodedLengths.includes(r.length) ? [n, n ? null : "Invalid decoded address checksum"] : [false, "Invalid decoded address length"]; } - var Z9 = { isLe: false }; - var Ru = { isLe: true }; + var Y9 = { isLe: false }; + var ku = { isLe: true }; var kI = { bitLength: 16, isLe: true }; - var aW = { bitLength: 32, isLe: false }; - var Up = { bitLength: 32, isLe: true }; + var uW = { bitLength: 32, isLe: false }; + var jp = { bitLength: 32, isLe: true }; var If = { bitLength: 256, isLe: false }; - var cW = { bitLength: 256, isLe: true }; - var J9 = { bitLength: 512, isLe: true }; - var uW = /^\d+$/; - var lW = 32; - var I4 = class { + var lW = { bitLength: 256, isLe: true }; + var Z9 = { bitLength: 512, isLe: true }; + var fW = /^\d+$/; + var hW = 32; + var N4 = class { constructor() { re(this, "__internal__chainCode", new Uint8Array(32)); re(this, "__internal__isHard", false); } static from(e) { - const r = new I4(), [n, i] = e.startsWith("/") ? [e.substring(1), true] : [e, false]; - return r.soft(uW.test(n) ? new ct(n, 10) : n), i ? r.harden() : r; + const r = new N4(), [n, i] = e.startsWith("/") ? [e.substring(1), true] : [e, false]; + return r.soft(fW.test(n) ? new ct(n, 10) : n), i ? r.harden() : r; } get chainCode() { return this.__internal__chainCode; @@ -9849,20 +9849,20 @@ ${gz(e, r)}`); return this.__internal__isHard = true, this; } soft(e) { - return rr(e) || Ki(e) || ic(e) ? this.soft(Hr(e, cW)) : Ft(e) ? this.soft(On(e)) : pr(e) ? this.soft(ua(Dr(e))) : e.length > lW ? this.soft(kn(e)) : (this.__internal__chainCode.fill(0), this.__internal__chainCode.set(e, 0), this); + return rr(e) || Ki(e) || rc(e) ? this.soft(Fr(e, lW)) : Ft(e) ? this.soft(On(e)) : pr(e) ? this.soft(aa(Cr(e))) : e.length > hW ? this.soft(kn(e)) : (this.__internal__chainCode.fill(0), this.__internal__chainCode.set(e, 0), this); } soften() { return this.__internal__isHard = false, this; } }; - var fW = /\/(\/?)([^/]+)/g; + var dW = /\/(\/?)([^/]+)/g; function hg(t) { - const e = t.match(fW), r = []; + const e = t.match(dW), r = []; let n = ""; if (e) { n = e.join(""); for (const i of e) - r.push(I4.from(i.substring(1))); + r.push(N4.from(i.substring(1))); } if (n !== t) throw new Error(`Re-constructed path "${n}" does not match input`); @@ -9871,9 +9871,9 @@ ${gz(e, r)}`); path: r }; } - var hW = /^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/; + var pW = /^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/; function RI(t) { - const e = t.match(hW); + const e = t.match(pW); if (e === null) throw new Error("Unable to match provided value to a secret URI"); const [, r, , n, , , i] = e, { path: s } = hg(n); @@ -9884,33 +9884,33 @@ ${gz(e, r)}`); phrase: r }; } - var dW = ua(Dr("Secp256k1HDKD")); - function pW(t, e) { + var mW = aa(Cr("Secp256k1HDKD")); + function gW(t, e) { if (!Et(e) || e.length !== 32) throw new Error("Invalid chainCode passed to derive"); - return kn($t(dW, t, e), 256); + return kn(Qt(mW, t, e), 256); } - function mW(t, e, r, n) { + function yW(t, e, r, n) { if (typeof t.setBigUint64 == "function") return t.setBigUint64(e, r, n); const i = BigInt(32), s = BigInt(4294967295), o = Number(r >> i & s), a = Number(r & s), c = n ? 4 : 0, u = n ? 0 : 4; t.setUint32(e + c, o, n), t.setUint32(e + u, a, n); } - var gW = (t, e, r) => t & e ^ ~t & r; - var yW = (t, e, r) => t & e ^ t & r ^ e & r; + var bW = (t, e, r) => t & e ^ ~t & r; + var wW = (t, e, r) => t & e ^ t & r ^ e & r; var CI = class extends ug { constructor(e, r, n, i) { - super(), this.blockLen = e, this.outputLen = r, this.padOffset = n, this.isLE = i, this.finished = false, this.length = 0, this.pos = 0, this.destroyed = false, this.buffer = new Uint8Array(e), this.view = Lp(this.buffer); + super(), this.blockLen = e, this.outputLen = r, this.padOffset = n, this.isLE = i, this.finished = false, this.length = 0, this.pos = 0, this.destroyed = false, this.buffer = new Uint8Array(e), this.view = Bp(this.buffer); } update(e) { - Qc(this); + Zc(this); const { view: r, buffer: n, blockLen: i } = this; - e = ho(e); + e = fo(e); const s = e.length; for (let o = 0; o < s; ) { const a = Math.min(i - this.pos, s - o); if (a === i) { - const c = Lp(e); + const c = Bp(e); for (; i <= s - o; o += i) this.process(c, o); continue; @@ -9920,14 +9920,14 @@ ${gz(e, r)}`); return this.length += e.length, this.roundClean(), this; } digestInto(e) { - Qc(this), M4(e, this), this.finished = true; + Zc(this), S4(e, this), this.finished = true; const { buffer: r, view: n, blockLen: i, isLE: s } = this; let { pos: o } = this; r[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > i - o && (this.process(n, 0), o = 0); for (let p = o; p < i; p++) r[p] = 0; - mW(n, i - 8, BigInt(this.length * 8), s), this.process(n, 0); - const a = Lp(e), c = this.outputLen; + yW(n, i - 8, BigInt(this.length * 8), s), this.process(n, 0); + const a = Bp(e), c = this.outputLen; if (c % 4) throw new Error("_sha2: outputLen should be aligned to 32bit"); const u = c / 4, f = this.get(); @@ -9948,7 +9948,7 @@ ${gz(e, r)}`); return e.length = i, e.pos = a, e.finished = s, e.destroyed = o, i % r && e.buffer.set(n), e; } }; - var bW = /* @__PURE__ */ new Uint32Array([ + var vW = /* @__PURE__ */ new Uint32Array([ 1116352408, 1899447441, 3049323471, @@ -10014,7 +10014,7 @@ ${gz(e, r)}`); 3204031479, 3329325298 ]); - var bc = /* @__PURE__ */ new Uint32Array([ + var gc = /* @__PURE__ */ new Uint32Array([ 1779033703, 3144134277, 1013904242, @@ -10024,10 +10024,10 @@ ${gz(e, r)}`); 528734635, 1541459225 ]); - var wc = /* @__PURE__ */ new Uint32Array(64); - var wW = class extends CI { + var yc = /* @__PURE__ */ new Uint32Array(64); + var xW = class extends CI { constructor() { - super(64, 32, 8, false), this.A = bc[0] | 0, this.B = bc[1] | 0, this.C = bc[2] | 0, this.D = bc[3] | 0, this.E = bc[4] | 0, this.F = bc[5] | 0, this.G = bc[6] | 0, this.H = bc[7] | 0; + super(64, 32, 8, false), this.A = gc[0] | 0, this.B = gc[1] | 0, this.C = gc[2] | 0, this.D = gc[3] | 0, this.E = gc[4] | 0, this.F = gc[5] | 0, this.G = gc[6] | 0, this.H = gc[7] | 0; } get() { const { A: e, B: r, C: n, D: i, E: s, F: o, G: a, H: c } = this; @@ -10038,30 +10038,30 @@ ${gz(e, r)}`); } process(e, r) { for (let p = 0; p < 16; p++, r += 4) - wc[p] = e.getUint32(r, false); + yc[p] = e.getUint32(r, false); for (let p = 16; p < 64; p++) { - const b = wc[p - 15], E = wc[p - 2], _ = _o(b, 7) ^ _o(b, 18) ^ b >>> 3, N = _o(E, 17) ^ _o(E, 19) ^ E >>> 10; - wc[p] = N + wc[p - 7] + _ + wc[p - 16] | 0; + const b = yc[p - 15], E = yc[p - 2], _ = xo(b, 7) ^ xo(b, 18) ^ b >>> 3, N = xo(E, 17) ^ xo(E, 19) ^ E >>> 10; + yc[p] = N + yc[p - 7] + _ + yc[p - 16] | 0; } let { A: n, B: i, C: s, D: o, E: a, F: c, G: u, H: f } = this; for (let p = 0; p < 64; p++) { - const b = _o(a, 6) ^ _o(a, 11) ^ _o(a, 25), E = f + b + gW(a, c, u) + bW[p] + wc[p] | 0, N = (_o(n, 2) ^ _o(n, 13) ^ _o(n, 22)) + yW(n, i, s) | 0; + const b = xo(a, 6) ^ xo(a, 11) ^ xo(a, 25), E = f + b + bW(a, c, u) + vW[p] + yc[p] | 0, N = (xo(n, 2) ^ xo(n, 13) ^ xo(n, 22)) + wW(n, i, s) | 0; f = u, u = c, c = a, a = o + E | 0, o = s, s = i, i = n, n = E + N | 0; } n = n + this.A | 0, i = i + this.B | 0, s = s + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, u = u + this.G | 0, f = f + this.H | 0, this.set(n, i, s, o, a, c, u, f); } roundClean() { - wc.fill(0); + yc.fill(0); } destroy() { this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0); } }; - var o0 = /* @__PURE__ */ A4(() => new wW()); + var a0 = /* @__PURE__ */ M4(() => new xW()); var DI = class extends ug { constructor(e, r) { super(), this.finished = false, this.destroyed = false, bI(e); - const n = ho(r); + const n = fo(r); if (this.iHash = e.create(), typeof this.iHash.update != "function") throw new Error("Expected instance of class which extends utils.Hash"); this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen; @@ -10075,10 +10075,10 @@ ${gz(e, r)}`); this.oHash.update(s), s.fill(0); } update(e) { - return Qc(this), this.iHash.update(e), this; + return Zc(this), this.iHash.update(e), this; } digestInto(e) { - Qc(this), s0(e, this.outputLen), this.finished = true, this.iHash.digestInto(e), this.oHash.update(e), this.oHash.digestInto(e), this.destroy(); + Zc(this), o0(e, this.outputLen), this.finished = true, this.iHash.digestInto(e), this.oHash.update(e), this.oHash.digestInto(e), this.destroy(); } digest() { const e = new Uint8Array(this.oHash.outputLen); @@ -10097,39 +10097,39 @@ ${gz(e, r)}`); dg.create = (t, e) => new DI(t, e); var LI = /* @__PURE__ */ BigInt(0); var pg = /* @__PURE__ */ BigInt(1); - var vW = /* @__PURE__ */ BigInt(2); + var _W = /* @__PURE__ */ BigInt(2); function Ju(t) { return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array"; } - function a0(t) { + function c0(t) { if (!Ju(t)) throw new Error("Uint8Array expected"); } - var xW = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0")); + var EW = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0")); function Qu(t) { - a0(t); + c0(t); let e = ""; for (let r = 0; r < t.length; r++) - e += xW[t[r]]; + e += EW[t[r]]; return e; } function BI(t) { const e = t.toString(16); return e.length & 1 ? `0${e}` : e; } - function O4(t) { + function I4(t) { if (typeof t != "string") throw new Error("hex string expected, got " + typeof t); return BigInt(t === "" ? "0" : `0x${t}`); } - var ba = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 }; - function Q9(t) { - if (t >= ba._0 && t <= ba._9) - return t - ba._0; - if (t >= ba._A && t <= ba._F) - return t - (ba._A - 10); - if (t >= ba._a && t <= ba._f) - return t - (ba._a - 10); + var ga = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 }; + function J9(t) { + if (t >= ga._0 && t <= ga._9) + return t - ga._0; + if (t >= ga._A && t <= ga._F) + return t - (ga._A - 10); + if (t >= ga._a && t <= ga._f) + return t - (ga._a - 10); } function Of(t) { if (typeof t != "string") @@ -10139,7 +10139,7 @@ ${gz(e, r)}`); throw new Error("padded hex string expected, got unpadded hex of length " + e); const n = new Uint8Array(r); for (let i = 0, s = 0; i < r; i++, s += 2) { - const o = Q9(t.charCodeAt(s)), a = Q9(t.charCodeAt(s + 1)); + const o = J9(t.charCodeAt(s)), a = J9(t.charCodeAt(s + 1)); if (o === void 0 || a === void 0) { const c = t[s] + t[s + 1]; throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + s); @@ -10149,18 +10149,18 @@ ${gz(e, r)}`); return n; } function Fu(t) { - return O4(Qu(t)); + return I4(Qu(t)); } function mf(t) { - return a0(t), O4(Qu(Uint8Array.from(t).reverse())); + return c0(t), I4(Qu(Uint8Array.from(t).reverse())); } function Pf(t, e) { return Of(t.toString(16).padStart(e * 2, "0")); } - function dd(t, e) { + function hd(t, e) { return Pf(t, e).reverse(); } - function _W(t) { + function SW(t) { return Of(BI(t)); } function vn(t, e, r) { @@ -10184,7 +10184,7 @@ ${gz(e, r)}`); let e = 0; for (let n = 0; n < t.length; n++) { const i = t[n]; - a0(i), e += i.length; + c0(i), e += i.length; } const r = new Uint8Array(e); for (let n = 0, i = 0; n < t.length; n++) { @@ -10193,7 +10193,7 @@ ${gz(e, r)}`); } return r; } - function EW(t, e) { + function MW(t, e) { if (t.length !== e.length) return false; let r = 0; @@ -10201,26 +10201,26 @@ ${gz(e, r)}`); r |= t[n] ^ e[n]; return r === 0; } - function SW(t) { + function AW(t) { if (typeof t != "string") throw new Error(`utf8ToBytes expected string, got ${typeof t}`); return new Uint8Array(new TextEncoder().encode(t)); } - function MW(t) { + function TW(t) { let e; for (e = 0; t > LI; t >>= pg, e += 1) ; return e; } - function AW(t, e) { + function NW(t, e) { return t >> BigInt(e) & pg; } - function TW(t, e, r) { + function IW(t, e, r) { return t | (r ? pg : LI) << BigInt(e); } - var P4 = (t) => (vW << BigInt(t - 1)) - pg; - var ny = (t) => new Uint8Array(t); - var $9 = (t) => Uint8Array.from(t); + var O4 = (t) => (_W << BigInt(t - 1)) - pg; + var ry = (t) => new Uint8Array(t); + var Q9 = (t) => Uint8Array.from(t); function UI(t, e, r) { if (typeof t != "number" || t < 2) throw new Error("hashLen must be a number"); @@ -10228,11 +10228,11 @@ ${gz(e, r)}`); throw new Error("qByteLen must be a number"); if (typeof r != "function") throw new Error("hmacFn must be a function"); - let n = ny(t), i = ny(t), s = 0; + let n = ry(t), i = ry(t), s = 0; const o = () => { n.fill(1), i.fill(0), s = 0; - }, a = (...p) => r(i, n, ...p), c = (p = ny()) => { - i = a($9([0]), p), n = a(), p.length !== 0 && (i = a($9([1]), p), n = a()); + }, a = (...p) => r(i, n, ...p), c = (p = ry()) => { + i = a(Q9([0]), p), n = a(), p.length !== 0 && (i = a(Q9([1]), p), n = a()); }, u = () => { if (s++ >= 1e3) throw new Error("drbg: tried 1000 values"); @@ -10253,7 +10253,7 @@ ${gz(e, r)}`); return o(), E; }; } - var NW = { + var OW = { bigint: (t) => typeof t == "bigint", function: (t) => typeof t == "function", boolean: (t) => typeof t == "boolean", @@ -10264,9 +10264,9 @@ ${gz(e, r)}`); field: (t, e) => e.Fp.isValid(t), hash: (t) => typeof t == "function" && Number.isSafeInteger(t.outputLen) }; - function Ff(t, e, r = {}) { + function zf(t, e, r = {}) { const n = (i, s, o) => { - const a = NW[s]; + const a = OW[s]; if (typeof a != "function") throw new Error(`Invalid validator "${s}", expected function`); const c = t[i]; @@ -10279,80 +10279,80 @@ ${gz(e, r)}`); n(i, s, true); return t; } - var IW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var PW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - abytes: a0, - bitGet: AW, - bitLen: MW, - bitMask: P4, - bitSet: TW, + abytes: c0, + bitGet: NW, + bitLen: TW, + bitMask: O4, + bitSet: IW, bytesToHex: Qu, bytesToNumberBE: Fu, bytesToNumberLE: mf, concatBytes: $u, createHmacDrbg: UI, ensureBytes: vn, - equalBytes: EW, + equalBytes: MW, hexToBytes: Of, - hexToNumber: O4, + hexToNumber: I4, isBytes: Ju, numberToBytesBE: Pf, - numberToBytesLE: dd, + numberToBytesLE: hd, numberToHexUnpadded: BI, - numberToVarBytesBE: _W, - utf8ToBytes: SW, - validateObject: Ff + numberToVarBytesBE: SW, + utf8ToBytes: AW, + validateObject: zf }, Symbol.toStringTag, { value: "Module" })); var In = BigInt(0); - var zr = BigInt(1); - var Ou = BigInt(2); - var OW = BigInt(3); - var R3 = BigInt(4); - var e6 = BigInt(5); - var t6 = BigInt(8); + var Vr = BigInt(1); + var Iu = BigInt(2); + var kW = BigInt(3); + var k3 = BigInt(4); + var $9 = BigInt(5); + var e6 = BigInt(8); BigInt(9); BigInt(16); function kr(t, e) { const r = t % e; return r >= In ? r : e + r; } - function PW(t, e, r) { + function RW(t, e, r) { if (r <= In || e < In) throw new Error("Expected power/modulo > 0"); - if (r === zr) + if (r === Vr) return In; - let n = zr; + let n = Vr; for (; e > In; ) - e & zr && (n = n * t % r), t = t * t % r, e >>= zr; + e & Vr && (n = n * t % r), t = t * t % r, e >>= Vr; return n; } - function Xr(t, e, r) { + function Kr(t, e, r) { let n = t; for (; e-- > In; ) n *= n, n %= r; return n; } - function C3(t, e) { + function R3(t, e) { if (t === In || e <= In) throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`); - let r = kr(t, e), n = e, i = In, s = zr; + let r = kr(t, e), n = e, i = In, s = Vr; for (; r !== In; ) { const a = n / r, c = n % r, u = i - s * a; n = r, r = c, i = s, s = u; } - if (n !== zr) + if (n !== Vr) throw new Error("invert: does not exist"); return kr(i, e); } - function kW(t) { - const e = (t - zr) / Ou; + function CW(t) { + const e = (t - Vr) / Iu; let r, n, i; - for (r = t - zr, n = 0; r % Ou === In; r /= Ou, n++) + for (r = t - Vr, n = 0; r % Iu === In; r /= Iu, n++) ; - for (i = Ou; i < t && PW(i, e, t) !== t - zr; i++) + for (i = Iu; i < t && RW(i, e, t) !== t - Vr; i++) ; if (n === 1) { - const o = (t + zr) / R3; + const o = (t + Vr) / k3; return function(c, u) { const f = c.pow(u, o); if (!c.eql(c.sqr(f), u)) @@ -10360,7 +10360,7 @@ ${gz(e, r)}`); return f; }; } - const s = (r + zr) / Ou; + const s = (r + Vr) / Iu; return function(a, c) { if (a.pow(c, e) === a.neg(a.ONE)) throw new Error("Cannot find square root"); @@ -10371,15 +10371,15 @@ ${gz(e, r)}`); let E = 1; for (let N = a.sqr(b); E < u && !a.eql(N, a.ONE); E++) N = a.sqr(N); - const _ = a.pow(f, zr << BigInt(u - E - 1)); + const _ = a.pow(f, Vr << BigInt(u - E - 1)); f = a.sqr(_), p = a.mul(p, _), b = a.mul(b, f), u = E; } return p; }; } - function RW(t) { - if (t % R3 === OW) { - const e = (t + zr) / R3; + function DW(t) { + if (t % k3 === kW) { + const e = (t + Vr) / k3; return function(n, i) { const s = n.pow(i, e); if (!n.eql(n.sqr(s), i)) @@ -10387,19 +10387,19 @@ ${gz(e, r)}`); return s; }; } - if (t % t6 === e6) { - const e = (t - e6) / t6; + if (t % e6 === $9) { + const e = (t - $9) / e6; return function(n, i) { - const s = n.mul(i, Ou), o = n.pow(s, e), a = n.mul(i, o), c = n.mul(n.mul(a, Ou), o), u = n.mul(a, n.sub(c, n.ONE)); + const s = n.mul(i, Iu), o = n.pow(s, e), a = n.mul(i, o), c = n.mul(n.mul(a, Iu), o), u = n.mul(a, n.sub(c, n.ONE)); if (!n.eql(n.sqr(u), i)) throw new Error("Cannot find square root"); return u; }; } - return kW(t); + return CW(t); } - var CW = (t, e) => (kr(t, e) & zr) === zr; - var DW = [ + var LW = (t, e) => (kr(t, e) & Vr) === Vr; + var BW = [ "create", "isValid", "is0", @@ -10418,28 +10418,28 @@ ${gz(e, r)}`); "mulN", "sqrN" ]; - function LW(t) { + function UW(t) { const e = { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" - }, r = DW.reduce((n, i) => (n[i] = "function", n), e); - return Ff(t, r); + }, r = BW.reduce((n, i) => (n[i] = "function", n), e); + return zf(t, r); } - function BW(t, e, r) { + function jW(t, e, r) { if (r < In) throw new Error("Expected power > 0"); if (r === In) return t.ONE; - if (r === zr) + if (r === Vr) return e; let n = t.ONE, i = e; for (; r > In; ) - r & zr && (n = t.mul(n, i)), i = t.sqr(i), r >>= zr; + r & Vr && (n = t.mul(n, i)), i = t.sqr(i), r >>= Vr; return n; } - function UW(t, e) { + function VW(t, e) { const r = new Array(e.length), n = e.reduce((s, o, a) => t.is0(o) ? s : (r[a] = s, t.mul(s, o)), t.ONE), i = t.inv(n); return e.reduceRight((s, o, a) => t.is0(o) ? s : (r[a] = t.mul(s, r[a]), t.mul(s, o)), i), r; } @@ -10453,13 +10453,13 @@ ${gz(e, r)}`); const { nBitLength: i, nByteLength: s } = jI(t, e); if (s > 2048) throw new Error("Field lengths over 2048 bytes are not supported"); - const o = RW(t), a = Object.freeze({ + const o = DW(t), a = Object.freeze({ ORDER: t, BITS: i, BYTES: s, - MASK: P4(i), + MASK: O4(i), ZERO: In, - ONE: zr, + ONE: Vr, create: (c) => kr(c, t), isValid: (c) => { if (typeof c != "bigint") @@ -10467,24 +10467,24 @@ ${gz(e, r)}`); return In <= c && c < t; }, is0: (c) => c === In, - isOdd: (c) => (c & zr) === zr, + isOdd: (c) => (c & Vr) === Vr, neg: (c) => kr(-c, t), eql: (c, u) => c === u, sqr: (c) => kr(c * c, t), add: (c, u) => kr(c + u, t), sub: (c, u) => kr(c - u, t), mul: (c, u) => kr(c * u, t), - pow: (c, u) => BW(a, c, u), - div: (c, u) => kr(c * C3(u, t), t), + pow: (c, u) => jW(a, c, u), + div: (c, u) => kr(c * R3(u, t), t), sqrN: (c) => c * c, addN: (c, u) => c + u, subN: (c, u) => c - u, mulN: (c, u) => c * u, - inv: (c) => C3(c, t), + inv: (c) => R3(c, t), sqrt: n.sqrt || ((c) => o(a, c)), - invertBatch: (c) => UW(a, c), + invertBatch: (c) => VW(a, c), cmov: (c, u, f) => f ? u : c, - toBytes: (c) => r ? dd(c, s) : Pf(c, s), + toBytes: (c) => r ? hd(c, s) : Pf(c, s), fromBytes: (c) => { if (c.length !== s) throw new Error(`Fp.fromBytes: expected ${s}, got ${c.length}`); @@ -10503,15 +10503,15 @@ ${gz(e, r)}`); const e = zI(t); return e + Math.ceil(e / 2); } - function jW(t, e, r = false) { + function zW(t, e, r = false) { const n = t.length, i = zI(e), s = FI(e); if (n < 16 || n < s || n > 1024) throw new Error(`expected ${s}-1024 bytes of input, got ${n}`); - const o = r ? Fu(t) : mf(t), a = kr(o, e - zr) + zr; - return r ? dd(a, i) : Pf(a, i); + const o = r ? Fu(t) : mf(t), a = kr(o, e - Vr) + Vr; + return r ? hd(a, i) : Pf(a, i); } - var VW = BigInt(0); - var iy = BigInt(1); + var FW = BigInt(0); + var ny = BigInt(1); function HI(t, e) { const r = (i, s) => { const o = s.negate(); @@ -10524,8 +10524,8 @@ ${gz(e, r)}`); constTimeNegate: r, unsafeLadder(i, s) { let o = t.ZERO, a = i; - for (; s > VW; ) - s & iy && (o = o.add(a)), a = a.double(), s >>= iy; + for (; s > FW; ) + s & ny && (o = o.add(a)), a = a.double(), s >>= ny; return o; }, precomputeWindow(i, s) { @@ -10546,7 +10546,7 @@ ${gz(e, r)}`); for (let _ = 0; _ < a; _++) { const N = _ * c; let k = Number(o & p); - o >>= E, k > c && (k -= b, o += iy); + o >>= E, k > c && (k -= b, o += ny); const F = N, L = N + Math.abs(k) - 1, D = _ % 2 !== 0, q = k < 0; k === 0 ? f = f.add(r(D, s[F])) : u = u.add(r(q, s[L])); } @@ -10559,8 +10559,8 @@ ${gz(e, r)}`); } }; } - function k4(t) { - return LW(t.Fp), Ff(t, { + function P4(t) { + return UW(t.Fp), zf(t, { n: "bigint", h: "bigint", Gx: "field", @@ -10574,9 +10574,9 @@ ${gz(e, r)}`); p: t.Fp.ORDER }); } - function zW(t) { - const e = k4(t); - Ff(e, { + function HW(t) { + const e = P4(t); + zf(e, { a: "field", b: "field" }, { @@ -10597,15 +10597,15 @@ ${gz(e, r)}`); } return Object.freeze({ ...e }); } - var { bytesToNumberBE: FW, hexToBytes: HW } = IW; - var Cu = { + var { bytesToNumberBE: qW, hexToBytes: WW } = PW; + var Ru = { Err: class extends Error { constructor(e = "") { super(e); } }, _parseInt(t) { - const { Err: e } = Cu; + const { Err: e } = Ru; if (t.length < 2 || t[0] !== 2) throw new e("Invalid signature integer tag"); const r = t[1], n = t.subarray(2, r + 2); @@ -10615,17 +10615,17 @@ ${gz(e, r)}`); throw new e("Invalid signature integer: negative"); if (n[0] === 0 && !(n[1] & 128)) throw new e("Invalid signature integer: unnecessary leading zero"); - return { d: FW(n), l: t.subarray(r + 2) }; + return { d: qW(n), l: t.subarray(r + 2) }; }, toSig(t) { - const { Err: e } = Cu, r = typeof t == "string" ? HW(t) : t; - a0(r); + const { Err: e } = Ru, r = typeof t == "string" ? WW(t) : t; + c0(r); let n = r.length; if (n < 2 || r[0] != 48) throw new e("Invalid signature tag"); if (r[1] !== n - 2) throw new e("Invalid signature: incorrect length"); - const { d: i, l: s } = Cu._parseInt(r.subarray(2)), { d: o, l: a } = Cu._parseInt(s); + const { d: i, l: s } = Ru._parseInt(r.subarray(2)), { d: o, l: a } = Ru._parseInt(s); if (a.length) throw new e("Invalid signature: left bytes after parsing"); return { r: i, s: o }; @@ -10638,13 +10638,13 @@ ${gz(e, r)}`); return `30${r(o + s + 4)}02${c}${i}02${a}${n}`; } }; - var Ba = BigInt(0); + var Da = BigInt(0); var Ps = BigInt(1); BigInt(2); - var r6 = BigInt(3); + var t6 = BigInt(3); BigInt(4); - function qW(t) { - const e = zW(t), { Fp: r } = e, n = e.toBytes || ((_, N, k) => { + function GW(t) { + const e = HW(t), { Fp: r } = e, n = e.toBytes || ((_, N, k) => { const F = N.toAffine(); return $u(Uint8Array.from([4]), r.toBytes(F.x), r.toBytes(F.y)); }), i = e.fromBytes || ((_) => { @@ -10658,7 +10658,7 @@ ${gz(e, r)}`); if (!r.eql(r.sqr(e.Gy), s(e.Gx))) throw new Error("bad generator point: equation left != right"); function o(_) { - return typeof _ == "bigint" && Ba < _ && _ < e.n; + return typeof _ == "bigint" && Da < _ && _ < e.n; } function a(_) { if (!o(_)) @@ -10752,7 +10752,7 @@ ${gz(e, r)}`); return new p(this.px, r.neg(this.py), this.pz); } double() { - const { a: N, b: k } = e, F = r.mul(k, r6), { px: L, py: D, pz: q } = this; + const { a: N, b: k } = e, F = r.mul(k, t6), { px: L, py: D, pz: q } = this; let W = r.ZERO, z = r.ZERO, T = r.ZERO, I = r.mul(L, L), H = r.mul(D, D), X = r.mul(q, q), V = r.mul(L, D); return V = r.add(V, V), T = r.mul(L, q), T = r.add(T, T), W = r.mul(N, T), z = r.mul(F, X), z = r.add(W, z), W = r.sub(H, z), z = r.add(H, z), z = r.mul(W, z), W = r.mul(V, W), T = r.mul(F, T), X = r.mul(N, X), V = r.sub(I, X), V = r.mul(N, V), V = r.add(V, T), T = r.add(I, I), I = r.add(T, I), I = r.add(I, X), I = r.mul(I, V), z = r.add(z, I), X = r.mul(D, q), X = r.add(X, X), I = r.mul(X, V), W = r.sub(W, I), T = r.mul(X, H), T = r.add(T, T), T = r.add(T, T), new p(W, z, T); } @@ -10760,7 +10760,7 @@ ${gz(e, r)}`); f(N); const { px: k, py: F, pz: L } = this, { px: D, py: q, pz: W } = N; let z = r.ZERO, T = r.ZERO, I = r.ZERO; - const H = e.a, X = r.mul(e.b, r6); + const H = e.a, X = r.mul(e.b, t6); let V = r.mul(k, D), S = r.mul(F, q), d = r.mul(L, W), l = r.add(k, F), h = r.add(D, q); l = r.mul(l, h), h = r.add(V, S), l = r.sub(l, h), h = r.add(k, L); let y = r.add(D, W); @@ -10780,7 +10780,7 @@ ${gz(e, r)}`); } multiplyUnsafe(N) { const k = p.ZERO; - if (N === Ba) + if (N === Da) return k; if (a(N), N === Ps) return this; @@ -10788,7 +10788,7 @@ ${gz(e, r)}`); if (!F) return E.unsafeLadder(this, N); let { k1neg: L, k1: D, k2neg: q, k2: W } = F.splitScalar(N), z = k, T = k, I = this; - for (; D > Ba || W > Ba; ) + for (; D > Da || W > Da; ) D & Ps && (z = z.add(I)), W & Ps && (T = T.add(I)), I = I.double(), D >>= Ps, W >>= Ps; return L && (z = z.negate()), q && (T = T.negate()), T = new p(r.mul(T.px, F.beta), T.py, T.pz), z.add(T); } @@ -10807,7 +10807,7 @@ ${gz(e, r)}`); return p.normalizeZ([F, L])[0]; } multiplyAndAddUnsafe(N, k, F) { - const L = p.BASE, D = (W, z) => z === Ba || z === Ps || !W.equals(L) ? W.multiplyUnsafe(z) : W.multiply(z), q = D(this, k).add(D(N, F)); + const L = p.BASE, D = (W, z) => z === Da || z === Ps || !W.equals(L) ? W.multiplyUnsafe(z) : W.multiply(z), q = D(this, k).add(D(N, F)); return q.is0() ? void 0 : q; } toAffine(N) { @@ -10849,9 +10849,9 @@ ${gz(e, r)}`); isWithinCurveOrder: o }; } - function WW(t) { - const e = k4(t); - return Ff(e, { + function KW(t) { + const e = P4(t); + return zf(e, { hash: "hash", hmac: "function", randomBytes: "function" @@ -10861,18 +10861,18 @@ ${gz(e, r)}`); lowS: "boolean" }), Object.freeze({ lowS: true, ...e }); } - function GW(t) { - const e = WW(t), { Fp: r, n } = e, i = r.BYTES + 1, s = 2 * r.BYTES + 1; + function XW(t) { + const e = KW(t), { Fp: r, n } = e, i = r.BYTES + 1, s = 2 * r.BYTES + 1; function o(h) { - return Ba < h && h < r.ORDER; + return Da < h && h < r.ORDER; } function a(h) { return kr(h, n); } function c(h) { - return C3(h, n); + return R3(h, n); } - const { ProjectivePoint: u, normPrivateKeyToScalar: f, weierstrassEquation: p, isWithinCurveOrder: b } = qW({ + const { ProjectivePoint: u, normPrivateKeyToScalar: f, weierstrassEquation: p, isWithinCurveOrder: b } = GW({ ...e, toBytes(h, y, x) { const v = y.toAffine(), M = r.toBytes(v.x), w = $u; @@ -10918,7 +10918,7 @@ ${gz(e, r)}`); return y = vn("compactSignature", y, x * 2), new F(k(y, 0, x), k(y, x, 2 * x)); } static fromDER(y) { - const { r: x, s: v } = Cu.toSig(vn("DER", y)); + const { r: x, s: v } = Ru.toSig(vn("DER", y)); return new F(x, v); } assertValidity() { @@ -10952,7 +10952,7 @@ ${gz(e, r)}`); return Of(this.toDERHex()); } toDERHex() { - return Cu.hexFromSig({ r: this.r, s: this.s }); + return Ru.hexFromSig({ r: this.r, s: this.s }); } toCompactRawBytes() { return Of(this.toCompactHex()); @@ -10972,7 +10972,7 @@ ${gz(e, r)}`); normPrivateKeyToScalar: f, randomPrivateKey: () => { const h = FI(e.n); - return jW(e.randomBytes(h), e.n); + return zW(e.randomBytes(h), e.n); }, precompute(h = 8, y = u.BASE) { return y._setWindowSize(h), y.multiply(BigInt(3)), y; @@ -10997,11 +10997,11 @@ ${gz(e, r)}`); return x > 0 ? y >> BigInt(x) : y; }, T = e.bits2int_modN || function(h) { return a(z(h)); - }, I = P4(e.nBitLength); + }, I = O4(e.nBitLength); function H(h) { if (typeof h != "bigint") throw new Error("bigint expected"); - if (!(Ba <= h && h < I)) + if (!(Da <= h && h < I)) throw new Error(`bigint expected < 2^${e.nBitLength}`); return Pf(h, e.nByteLength); } @@ -11022,10 +11022,10 @@ ${gz(e, r)}`); if (!b(R)) return; const Y = c(R), ee = u.BASE.multiply(R).toAffine(), ae = a(ee.x); - if (ae === Ba) + if (ae === Da) return; const ie = a(Y * a(U + ae * Q)); - if (ie === Ba) + if (ie === Da) return; let Z = (ee.x === ae ? 0 : 2) | Number(ee.y & Ps), ce = ie; return w && _(ie) && (ce = N(ie), Z ^= 1), new F(ae, ce, Z); @@ -11050,7 +11050,7 @@ ${gz(e, r)}`); try { m = F.fromDER(M); } catch (ae) { - if (!(ae instanceof Cu.Err)) + if (!(ae instanceof Ru.Err)) throw ae; m = F.fromCompact(M); } @@ -11082,34 +11082,34 @@ ${gz(e, r)}`); utils: L }; } - function KW(t) { + function YW(t) { return { hash: t, - hmac: (e, ...r) => dg(t, e, Mq(...r)), + hmac: (e, ...r) => dg(t, e, Tq(...r)), randomBytes: xI }; } - function XW(t, e) { - const r = (n) => GW({ ...t, ...KW(n) }); + function ZW(t, e) { + const r = (n) => XW({ ...t, ...YW(n) }); return Object.freeze({ ...r(e), create: r }); } var qI = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"); - var n6 = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); - var YW = BigInt(1); - var D3 = BigInt(2); - var i6 = (t, e) => (t + e / D3) / e; - function ZW(t) { - const e = qI, r = BigInt(3), n = BigInt(6), i = BigInt(11), s = BigInt(22), o = BigInt(23), a = BigInt(44), c = BigInt(88), u = t * t * t % e, f = u * u * t % e, p = Xr(f, r, e) * f % e, b = Xr(p, r, e) * f % e, E = Xr(b, D3, e) * u % e, _ = Xr(E, i, e) * E % e, N = Xr(_, s, e) * _ % e, k = Xr(N, a, e) * N % e, F = Xr(k, c, e) * k % e, L = Xr(F, a, e) * N % e, D = Xr(L, r, e) * f % e, q = Xr(D, o, e) * _ % e, W = Xr(q, n, e) * u % e, z = Xr(W, D3, e); - if (!L3.eql(L3.sqr(z), t)) + var r6 = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); + var JW = BigInt(1); + var C3 = BigInt(2); + var n6 = (t, e) => (t + e / C3) / e; + function QW(t) { + const e = qI, r = BigInt(3), n = BigInt(6), i = BigInt(11), s = BigInt(22), o = BigInt(23), a = BigInt(44), c = BigInt(88), u = t * t * t % e, f = u * u * t % e, p = Kr(f, r, e) * f % e, b = Kr(p, r, e) * f % e, E = Kr(b, C3, e) * u % e, _ = Kr(E, i, e) * E % e, N = Kr(_, s, e) * _ % e, k = Kr(N, a, e) * N % e, F = Kr(k, c, e) * k % e, L = Kr(F, a, e) * N % e, D = Kr(L, r, e) * f % e, q = Kr(D, o, e) * _ % e, W = Kr(q, n, e) * u % e, z = Kr(W, C3, e); + if (!D3.eql(D3.sqr(z), t)) throw new Error("Cannot find square root"); return z; } - var L3 = VI(qI, void 0, void 0, { sqrt: ZW }); - var Hf = XW({ + var D3 = VI(qI, void 0, void 0, { sqrt: QW }); + var Ff = ZW({ a: BigInt(0), b: BigInt(7), - Fp: L3, - n: n6, + Fp: D3, + n: r6, Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"), Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"), h: BigInt(1), @@ -11117,7 +11117,7 @@ ${gz(e, r)}`); endo: { beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"), splitScalar: (t) => { - const e = n6, r = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), n = -YW * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), i = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), s = r, o = BigInt("0x100000000000000000000000000000000"), a = i6(s * t, e), c = i6(-n * t, e); + const e = r6, r = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), n = -JW * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), i = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), s = r, o = BigInt("0x100000000000000000000000000000000"), a = n6(s * t, e), c = n6(-n * t, e); let u = kr(t - a * r - c * i, e), f = kr(-a * n - c * s, e); const p = u > o, b = f > o; if (p && (u = e - u), b && (f = e - f), u > o || f > o) @@ -11125,15 +11125,15 @@ ${gz(e, r)}`); return { k1neg: p, k1: u, k2neg: b, k2: f }; } } - }, o0); + }, a0); BigInt(0); - Hf.ProjectivePoint; + Ff.ProjectivePoint; function el(t, e) { if (t.length !== 32) throw new Error("Expected valid 32-byte private key as a seed"); if (!hn || !e && tn()) { - const r = GH(t), n = r.slice(32); - if (i4(n)) + const r = XH(t), n = r.slice(32); + if (n4(n)) throw new Error("Invalid publicKey generated from WASM interface"); return { publicKey: n, @@ -11141,7 +11141,7 @@ ${gz(e, r)}`); }; } return { - publicKey: Hf.getPublicKey(t, true), + publicKey: Ff.getPublicKey(t, true), secretKey: t }; } @@ -11152,22 +11152,22 @@ ${gz(e, r)}`); return t(e(r.secretKey.subarray(0, 32), n)); }; } - var B3 = /* @__PURE__ */ WI(el, pW); - var JW = ua(Dr("Ed25519HDKD")); + var L3 = /* @__PURE__ */ WI(el, gW); + var $W = aa(Cr("Ed25519HDKD")); function GI(t, e) { if (!Et(e) || e.length !== 32) throw new Error("Invalid chainCode passed to derive"); - return kn($t(JW, t, e)); + return kn(Qt($W, t, e)); } function wl(t = 32) { return iI(new Uint8Array(t)); } var KI = /* @__PURE__ */ lg(wl); - var QW = new ct(9007199254740991); - function $W() { - return Zu(KI(8)).and(QW).toNumber(); + var eG = new ct(9007199254740991); + function tG() { + return Zu(KI(8)).and(eG).toNumber(); } - var [eG, tG] = /* @__PURE__ */ (() => Tt.split([ + var [rG, nG] = /* @__PURE__ */ (() => Tt.split([ "0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", @@ -11249,9 +11249,9 @@ ${gz(e, r)}`); "0x5fcb6fab3ad6faec", "0x6c44198c4a475817" ].map((t) => BigInt(t))))(); - var vc = /* @__PURE__ */ new Uint32Array(80); - var xc = /* @__PURE__ */ new Uint32Array(80); - var rG = class extends CI { + var bc = /* @__PURE__ */ new Uint32Array(80); + var wc = /* @__PURE__ */ new Uint32Array(80); + var iG = class extends CI { constructor() { super(128, 64, 16, false), this.Ah = 1779033703, this.Al = -205731576, this.Bh = -1150833019, this.Bl = -2067093701, this.Ch = 1013904242, this.Cl = -23791573, this.Dh = -1521486534, this.Dl = 1595750129, this.Eh = 1359893119, this.El = -1377402159, this.Fh = -1694144372, this.Fl = 725511199, this.Gh = 528734635, this.Gl = -79577749, this.Hh = 1541459225, this.Hl = 327033209; } @@ -11264,14 +11264,14 @@ ${gz(e, r)}`); } process(e, r) { for (let D = 0; D < 16; D++, r += 4) - vc[D] = e.getUint32(r), xc[D] = e.getUint32(r += 4); + bc[D] = e.getUint32(r), wc[D] = e.getUint32(r += 4); for (let D = 16; D < 80; D++) { - const q = vc[D - 15] | 0, W = xc[D - 15] | 0, z = Tt.rotrSH(q, W, 1) ^ Tt.rotrSH(q, W, 8) ^ Tt.shrSH(q, W, 7), T = Tt.rotrSL(q, W, 1) ^ Tt.rotrSL(q, W, 8) ^ Tt.shrSL(q, W, 7), I = vc[D - 2] | 0, H = xc[D - 2] | 0, X = Tt.rotrSH(I, H, 19) ^ Tt.rotrBH(I, H, 61) ^ Tt.shrSH(I, H, 6), V = Tt.rotrSL(I, H, 19) ^ Tt.rotrBL(I, H, 61) ^ Tt.shrSL(I, H, 6), S = Tt.add4L(T, V, xc[D - 7], xc[D - 16]), d = Tt.add4H(S, z, X, vc[D - 7], vc[D - 16]); - vc[D] = d | 0, xc[D] = S | 0; + const q = bc[D - 15] | 0, W = wc[D - 15] | 0, z = Tt.rotrSH(q, W, 1) ^ Tt.rotrSH(q, W, 8) ^ Tt.shrSH(q, W, 7), T = Tt.rotrSL(q, W, 1) ^ Tt.rotrSL(q, W, 8) ^ Tt.shrSL(q, W, 7), I = bc[D - 2] | 0, H = wc[D - 2] | 0, X = Tt.rotrSH(I, H, 19) ^ Tt.rotrBH(I, H, 61) ^ Tt.shrSH(I, H, 6), V = Tt.rotrSL(I, H, 19) ^ Tt.rotrBL(I, H, 61) ^ Tt.shrSL(I, H, 6), S = Tt.add4L(T, V, wc[D - 7], wc[D - 16]), d = Tt.add4H(S, z, X, bc[D - 7], bc[D - 16]); + bc[D] = d | 0, wc[D] = S | 0; } let { Ah: n, Al: i, Bh: s, Bl: o, Ch: a, Cl: c, Dh: u, Dl: f, Eh: p, El: b, Fh: E, Fl: _, Gh: N, Gl: k, Hh: F, Hl: L } = this; for (let D = 0; D < 80; D++) { - const q = Tt.rotrSH(p, b, 14) ^ Tt.rotrSH(p, b, 18) ^ Tt.rotrBH(p, b, 41), W = Tt.rotrSL(p, b, 14) ^ Tt.rotrSL(p, b, 18) ^ Tt.rotrBL(p, b, 41), z = p & E ^ ~p & N, T = b & _ ^ ~b & k, I = Tt.add5L(L, W, T, tG[D], xc[D]), H = Tt.add5H(I, F, q, z, eG[D], vc[D]), X = I | 0, V = Tt.rotrSH(n, i, 28) ^ Tt.rotrBH(n, i, 34) ^ Tt.rotrBH(n, i, 39), S = Tt.rotrSL(n, i, 28) ^ Tt.rotrBL(n, i, 34) ^ Tt.rotrBL(n, i, 39), d = n & s ^ n & a ^ s & a, l = i & o ^ i & c ^ o & c; + const q = Tt.rotrSH(p, b, 14) ^ Tt.rotrSH(p, b, 18) ^ Tt.rotrBH(p, b, 41), W = Tt.rotrSL(p, b, 14) ^ Tt.rotrSL(p, b, 18) ^ Tt.rotrBL(p, b, 41), z = p & E ^ ~p & N, T = b & _ ^ ~b & k, I = Tt.add5L(L, W, T, nG[D], wc[D]), H = Tt.add5H(I, F, q, z, rG[D], bc[D]), X = I | 0, V = Tt.rotrSH(n, i, 28) ^ Tt.rotrBH(n, i, 34) ^ Tt.rotrBH(n, i, 39), S = Tt.rotrSL(n, i, 28) ^ Tt.rotrBL(n, i, 34) ^ Tt.rotrBL(n, i, 39), d = n & s ^ n & a ^ s & a, l = i & o ^ i & c ^ o & c; F = N | 0, L = k | 0, N = E | 0, k = _ | 0, E = p | 0, _ = b | 0, { h: p, l: b } = Tt.add(u | 0, f | 0, H | 0, X | 0), u = a | 0, f = c | 0, a = s | 0, c = o | 0, s = n | 0, o = i | 0; const h = Tt.add3L(X, S, l); n = Tt.add3H(h, H, V, d), i = h | 0; @@ -11279,21 +11279,21 @@ ${gz(e, r)}`); ({ h: n, l: i } = Tt.add(this.Ah | 0, this.Al | 0, n | 0, i | 0)), { h: s, l: o } = Tt.add(this.Bh | 0, this.Bl | 0, s | 0, o | 0), { h: a, l: c } = Tt.add(this.Ch | 0, this.Cl | 0, a | 0, c | 0), { h: u, l: f } = Tt.add(this.Dh | 0, this.Dl | 0, u | 0, f | 0), { h: p, l: b } = Tt.add(this.Eh | 0, this.El | 0, p | 0, b | 0), { h: E, l: _ } = Tt.add(this.Fh | 0, this.Fl | 0, E | 0, _ | 0), { h: N, l: k } = Tt.add(this.Gh | 0, this.Gl | 0, N | 0, k | 0), { h: F, l: L } = Tt.add(this.Hh | 0, this.Hl | 0, F | 0, L | 0), this.set(n, i, s, o, a, c, u, f, p, b, E, _, N, k, F, L); } roundClean() { - vc.fill(0), xc.fill(0); + bc.fill(0), wc.fill(0); } destroy() { this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } }; - var mg = /* @__PURE__ */ A4(() => new rG()); - var Hs = BigInt(0); + var mg = /* @__PURE__ */ M4(() => new iG()); + var Fs = BigInt(0); var $i = BigInt(1); var K0 = BigInt(2); - var nG = BigInt(8); - var iG = { zip215: true }; - function sG(t) { - const e = k4(t); - return Ff(t, { + var sG = BigInt(8); + var oG = { zip215: true }; + function aG(t) { + const e = P4(t); + return zf(t, { hash: "function", a: "bigint", d: "bigint", @@ -11305,25 +11305,25 @@ ${gz(e, r)}`); mapToCurve: "function" }), Object.freeze({ ...e }); } - function oG(t) { - const e = sG(t), { Fp: r, n, prehash: i, hash: s, randomBytes: o, nByteLength: a, h: c } = e, u = K0 << BigInt(a * 8) - $i, f = r.create, p = e.uvRatio || ((v, M) => { + function cG(t) { + const e = aG(t), { Fp: r, n, prehash: i, hash: s, randomBytes: o, nByteLength: a, h: c } = e, u = K0 << BigInt(a * 8) - $i, f = r.create, p = e.uvRatio || ((v, M) => { try { return { isValid: true, value: r.sqrt(v * r.inv(M)) }; } catch { - return { isValid: false, value: Hs }; + return { isValid: false, value: Fs }; } }), b = e.adjustScalarBytes || ((v) => v), E = e.domain || ((v, M, w) => { if (M.length || w) throw new Error("Contexts/pre-hash are not supported"); return v; - }), _ = (v) => typeof v == "bigint" && Hs < v, N = (v, M) => _(v) && _(M) && v < M, k = (v) => v === Hs || N(v, u); + }), _ = (v) => typeof v == "bigint" && Fs < v, N = (v, M) => _(v) && _(M) && v < M, k = (v) => v === Fs || N(v, u); function F(v, M) { if (N(v, M)) return v; throw new Error(`Expected valid scalar < ${M}, got ${typeof v} ${v}`); } function L(v) { - return v === Hs ? v : F(v, n); + return v === Fs ? v : F(v, n); } const D = /* @__PURE__ */ new Map(); function q(v) { @@ -11393,7 +11393,7 @@ ${gz(e, r)}`); const { a: w, d: g } = e, { ex: m, ey: P, ez: Q, et: A } = this, { ex: K, ey: U, ez: j, et: G } = M; if (w === BigInt(-1)) { const be = f((P - m) * (U + K)), ye = f((P + m) * (U - K)), Ee = f(ye - be); - if (Ee === Hs) + if (Ee === Fs) return this.double(); const Te = f(Q * K0 * G), C = f(A * K0 * j), O = C + Te, B = ye + be, $ = C - Te, te = f(O * Ee), J = f(B * $), ne = f(O * $), fe = f(Ee * B); return new W(te, J, fe, ne); @@ -11413,7 +11413,7 @@ ${gz(e, r)}`); } multiplyUnsafe(M) { let w = L(M); - return w === Hs ? T : this.equals(T) || w === $i ? this : this.equals(z) ? this.wNAF(w).p : I.unsafeLadder(this, w); + return w === Fs ? T : this.equals(T) || w === $i ? this : this.equals(z) ? this.wNAF(w).p : I.unsafeLadder(this, w); } isSmallOrder() { return this.multiplyUnsafe(c).is0(); @@ -11423,10 +11423,10 @@ ${gz(e, r)}`); } toAffine(M) { const { ex: w, ey: g, ez: m } = this, P = this.is0(); - M == null && (M = P ? nG : r.inv(m)); + M == null && (M = P ? sG : r.inv(m)); const Q = f(w * M), A = f(g * M), K = f(m * M); if (P) - return { x: Hs, y: $i }; + return { x: Fs, y: $i }; if (K !== $i) throw new Error("invZ was invalid"); return { x: Q, y: A }; @@ -11441,13 +11441,13 @@ ${gz(e, r)}`); const Q = M.slice(), A = M[P - 1]; Q[P - 1] = A & -129; const K = mf(Q); - K === Hs || (w ? F(K, u) : F(K, r.ORDER)); + K === Fs || (w ? F(K, u) : F(K, r.ORDER)); const U = f(K * K), j = f(U - $i), G = f(g * U - m); let { isValid: R, value: Y } = p(j, G); if (!R) throw new Error("Point.fromHex: invalid y coordinate"); const ee = (Y & $i) === $i, ae = (A & 128) !== 0; - if (!w && Y === Hs && ae) + if (!w && Y === Fs && ae) throw new Error("Point.fromHex: x=0 and x_0=1"); return ae !== ee && (Y = f(-Y)), W.fromAffine({ x: Y, y: K }); } @@ -11455,14 +11455,14 @@ ${gz(e, r)}`); return V(M).point; } toRawBytes() { - const { x: M, y: w } = this.toAffine(), g = dd(w, r.BYTES); + const { x: M, y: w } = this.toAffine(), g = hd(w, r.BYTES); return g[g.length - 1] |= M & $i ? 128 : 0, g; } toHex() { return Qu(this.toRawBytes()); } } - W.BASE = new W(e.Gx, e.Gy, $i, f(e.Gx * e.Gy)), W.ZERO = new W(Hs, $i, $i, Hs); + W.BASE = new W(e.Gx, e.Gy, $i, f(e.Gx * e.Gy)), W.ZERO = new W(Fs, $i, $i, Fs); const { BASE: z, ZERO: T } = W, I = HI(W, a * 8); function H(v) { return kr(v, n); @@ -11487,10 +11487,10 @@ ${gz(e, r)}`); v = vn("message", v), i && (v = i(v)); const { prefix: g, scalar: m, pointBytes: P } = V(M), Q = d(w.context, g, v), A = z.multiply(Q).toRawBytes(), K = d(w.context, A, P, v), U = H(Q + K * m); L(U); - const j = $u(A, dd(U, r.BYTES)); + const j = $u(A, hd(U, r.BYTES)); return vn("result", j, a * 2); } - const h = iG; + const h = oG; function y(v, M, w, g = h) { const { context: m, zip215: P } = g, Q = r.BYTES; v = vn("signature", v, 2 * Q), M = vn("message", M), i && (M = i(M)); @@ -11521,60 +11521,60 @@ ${gz(e, r)}`); } }; } - var R4 = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"); - var s6 = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"); + var k4 = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"); + var i6 = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"); BigInt(0); - var aG = BigInt(1); - var o6 = BigInt(2); + var uG = BigInt(1); + var s6 = BigInt(2); BigInt(3); - var cG = BigInt(5); - var uG = BigInt(8); - function lG(t) { - const e = BigInt(10), r = BigInt(20), n = BigInt(40), i = BigInt(80), s = R4, a = t * t % s * t % s, c = Xr(a, o6, s) * a % s, u = Xr(c, aG, s) * t % s, f = Xr(u, cG, s) * u % s, p = Xr(f, e, s) * f % s, b = Xr(p, r, s) * p % s, E = Xr(b, n, s) * b % s, _ = Xr(E, i, s) * E % s, N = Xr(_, i, s) * E % s, k = Xr(N, e, s) * f % s; - return { pow_p_5_8: Xr(k, o6, s) * t % s, b2: a }; + var lG = BigInt(5); + var fG = BigInt(8); + function hG(t) { + const e = BigInt(10), r = BigInt(20), n = BigInt(40), i = BigInt(80), s = k4, a = t * t % s * t % s, c = Kr(a, s6, s) * a % s, u = Kr(c, uG, s) * t % s, f = Kr(u, lG, s) * u % s, p = Kr(f, e, s) * f % s, b = Kr(p, r, s) * p % s, E = Kr(b, n, s) * b % s, _ = Kr(E, i, s) * E % s, N = Kr(_, i, s) * E % s, k = Kr(N, e, s) * f % s; + return { pow_p_5_8: Kr(k, s6, s) * t % s, b2: a }; } - function fG(t) { + function dG(t) { return t[0] &= 248, t[31] &= 127, t[31] |= 64, t; } - function hG(t, e) { - const r = R4, n = kr(e * e * e, r), i = kr(n * n * e, r), s = lG(t * i).pow_p_5_8; + function pG(t, e) { + const r = k4, n = kr(e * e * e, r), i = kr(n * n * e, r), s = hG(t * i).pow_p_5_8; let o = kr(t * n * s, r); - const a = kr(e * o * o, r), c = o, u = kr(o * s6, r), f = a === t, p = a === kr(-t, r), b = a === kr(-t * s6, r); - return f && (o = c), (p || b) && (o = u), CW(o, r) && (o = kr(-o, r)), { isValid: f || p, value: o }; + const a = kr(e * o * o, r), c = o, u = kr(o * i6, r), f = a === t, p = a === kr(-t, r), b = a === kr(-t * i6, r); + return f && (o = c), (p || b) && (o = u), LW(o, r) && (o = kr(-o, r)), { isValid: f || p, value: o }; } - var dG = /* @__PURE__ */ (() => VI(R4, void 0, true))(); - var pG = /* @__PURE__ */ (() => ({ + var mG = /* @__PURE__ */ (() => VI(k4, void 0, true))(); + var gG = /* @__PURE__ */ (() => ({ a: BigInt(-1), d: BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"), - Fp: dG, + Fp: mG, n: BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"), - h: uG, + h: fG, Gx: BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"), Gy: BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"), hash: mg, randomBytes: xI, - adjustScalarBytes: fG, - uvRatio: hG + adjustScalarBytes: dG, + uvRatio: pG }))(); - var C4 = /* @__PURE__ */ (() => oG(pG))(); + var R4 = /* @__PURE__ */ (() => cG(gG))(); function vl(t, e) { if (!hn || !e && tn()) { - const n = HH(t); + const n = WH(t); return { publicKey: n.slice(32), secretKey: n.slice(0, 64) }; } - const r = C4.getPublicKey(t); + const r = R4.getPublicKey(t); return { publicKey: r, secretKey: pi([t, r]) }; } - function mG() { + function yG() { return vl(wl()); } - function gG(t) { + function bG(t) { if (t.length !== 64) throw new Error("Invalid secretKey provided"); return { @@ -11582,8 +11582,8 @@ ${gz(e, r)}`); secretKey: t }; } - function yG(t) { - return vl(kn(Dr(t))); + function wG(t) { + return vl(kn(Cr(t))); } function XI(t, { publicKey: e, secretKey: r }, n) { if (r) { @@ -11592,68 +11592,68 @@ ${gz(e, r)}`); } else throw new Error("Expected a valid secretKey"); const i = Xe(t), s = r.subarray(0, 32); - return !hn || !n && tn() ? qH(e, s, i) : C4.sign(i, s); + return !hn || !n && tn() ? GH(e, s, i) : R4.sign(i, s); } - function D4(t, e, r, n) { + function C4(t, e, r, n) { const i = Xe(t), s = Xe(r), o = Xe(e); if (s.length !== 32) throw new Error(`Invalid publicKey, received ${s.length}, expected 32`); if (o.length !== 64) throw new Error(`Invalid signature, received ${o.length} bytes, expected 64`); try { - return !hn || !n && tn() ? WH(o, i, s) : C4.verify(o, i, s); + return !hn || !n && tn() ? KH(o, i, s) : R4.verify(o, i, s); } catch { return false; } } var YI = /* @__PURE__ */ WI(vl, GI); - var U3 = 64; - var bG = 32; - var sy = U3 + bG; + var B3 = 64; + var vG = 32; + var iy = B3 + vG; function ZI(t) { const e = Xe(t); - if (e.length !== sy) - throw new Error(`Expected keypair with ${sy} bytes, found ${e.length}`); + if (e.length !== iy) + throw new Error(`Expected keypair with ${iy} bytes, found ${e.length}`); return { - publicKey: e.slice(U3, sy), - secretKey: e.slice(0, U3) + publicKey: e.slice(B3, iy), + secretKey: e.slice(0, B3) }; } - function wG({ publicKey: t, secretKey: e }) { - return $t(e, t).slice(); + function xG({ publicKey: t, secretKey: e }) { + return Qt(e, t).slice(); } function JI(t) { return (e, r) => { if (!Et(r) || r.length !== 32) throw new Error("Invalid chainCode passed to derive"); - return ZI(t(wG(e), r)); + return ZI(t(xG(e), r)); }; } - var QI = /* @__PURE__ */ JI(JH); - var $I = /* @__PURE__ */ JI(QH); + var QI = /* @__PURE__ */ JI($H); + var $I = /* @__PURE__ */ JI(eq); function eO(t, { chainCode: e, isSoft: r }) { return r ? $I(t, e) : QI(t, e); } - var vG = { - ecdsa: B3, + var _G = { + ecdsa: L3, ed25519: YI, - ethereum: B3, + ethereum: L3, sr25519: eO }; - function L4(t, e, r) { - const n = vG[r]; + function D4(t, e, r) { + const n = _G[r]; let i = t; for (const s of e) i = n(i, s); return i; } - function xG(t, e) { + function EG(t, e) { const r = Xe(t), n = Xe(e); if (n.length !== 32) throw new Error(`Invalid publicKey, received ${n.length} bytes, expected 32`); if (r.length !== 64) throw new Error(`Invalid secretKey, received ${r.length} bytes, expected 64`); - return nq(n, r); + return sq(n, r); } function tO(t, e) { const r = Xe(t); @@ -11661,120 +11661,120 @@ ${gz(e, r)}`); throw new Error("Invalid chainCode passed to derive"); if (r.length !== 32) throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`); - return $H(r, e); + return tq(r, e); } - function B4(t) { + function L4(t) { const e = Xe(t); if (e.length !== 32) throw new Error(`Expected a seed matching 32 bytes, found ${e.length}`); - return ZI(eq(e)); + return ZI(rq(e)); } function rO(t, { publicKey: e, secretKey: r }) { if ((e == null ? void 0 : e.length) !== 32) throw new Error("Expected a valid publicKey, 32-bytes"); if ((r == null ? void 0 : r.length) !== 64) throw new Error("Expected a valid secretKey, 64-bytes"); - return tq(e, r, Xe(t)); + return nq(e, r, Xe(t)); } - function U4(t, e, r) { + function B4(t, e, r) { const n = Xe(r), i = Xe(e); if (n.length !== 32) throw new Error(`Invalid publicKey, received ${n.length} bytes, expected 32`); if (i.length !== 64) throw new Error(`Invalid signature, received ${i.length} bytes, expected 64`); - return rq(i, Xe(t), n); + return iq(i, Xe(t), n); } - var a6 = new Uint8Array(); - function nO(t, { secretKey: e }, r = a6, n = a6) { + var o6 = new Uint8Array(); + function nO(t, { secretKey: e }, r = o6, n = o6) { if ((e == null ? void 0 : e.length) !== 64) throw new Error("Invalid secretKey, expected 64-bytes"); - return iq(e, Xe(r), Xe(t), Xe(n)); + return oq(e, Xe(r), Xe(t), Xe(n)); } - var c6 = new Uint8Array(); - function iO(t, e, r, n = c6, i = c6) { + var a6 = new Uint8Array(); + function iO(t, e, r, n = a6, i = a6) { const s = Xe(r), o = Xe(e); if (s.length !== 32) throw new Error("Invalid publicKey, expected 32-bytes"); if (o.length !== 96) throw new Error("Invalid vrfSign output, expected 96 bytes"); - return sq(s, Xe(n), Xe(t), Xe(i), o); + return aq(s, Xe(n), Xe(t), Xe(i), o); } - function la(t, e = pf.prefix) { + function ca(t, e = pf.prefix) { const r = Mr(t); if (e < 0 || e > 16383 || [46, 47].includes(e)) throw new Error("Out of range ss58Format specified"); if (!pf.allowedDecodedLengths.includes(r.length)) throw new Error(`Expected a valid key to convert, with length ${pf.allowedDecodedLengths.join(", ")}`); - const n = $t(e < 64 ? [e] : [ + const n = Qt(e < 64 ? [e] : [ (e & 252) >> 2 | 64, e >> 8 | (e & 3) << 6 ], r); - return yI($t(n, II(n).subarray(0, [32, 33].includes(r.length) ? 2 : 1))); + return yI(Qt(n, II(n).subarray(0, [32, 33].includes(r.length) ? 2 : 1))); } - function _G({ isHard: t }) { + function SG({ isHard: t }) { return t; } - function EG(t, e, r) { + function MG(t, e, r) { const { path: n } = hg(e); - if (!n.length || n.every(_G)) + if (!n.length || n.every(SG)) throw new Error("Expected suri to contain a combination of non-hard paths"); let i = Mr(t); for (const { chainCode: s } of n) i = tO(i, s); - return la(i, r); + return ca(i, r); } - var SG = Dr("modlpy/utilisuba"); + var AG = Cr("modlpy/utilisuba"); function sO(t, e) { - return kn($t(SG, Mr(t), Hr(e, kI))); + return kn(Qt(AG, Mr(t), Fr(e, kI))); } - function MG(t, e, r) { - return la(sO(Mr(t), e), r); + function TG(t, e, r) { + return ca(sO(Mr(t), e), r); } function oO(t) { return Mr(t); } - var AG = Dr("modlpy/utilisuba"); + var NG = Cr("modlpy/utilisuba"); function aO(t, e) { - return kn($t(AG, qr(t.length), ...s4(t.map(oO)), Hr(e, kI))); + return kn(Qt(NG, Hr(t.length), ...i4(t.map(oO)), Fr(e, kI))); } - function TG(t, e, r) { - return la(aO(t, e), r); + function IG(t, e, r) { + return ca(aO(t, e), r); } - function NG(t, e) { + function OG(t, e) { return Pn(Mr(t), Mr(e)); } var cO = []; var uO = []; var lO = []; - var IG = /* @__PURE__ */ BigInt(0); - var hh = /* @__PURE__ */ BigInt(1); - var OG = /* @__PURE__ */ BigInt(2); - var PG = /* @__PURE__ */ BigInt(7); - var kG = /* @__PURE__ */ BigInt(256); - var RG = /* @__PURE__ */ BigInt(113); - for (let t = 0, e = hh, r = 1, n = 0; t < 24; t++) { + var PG = /* @__PURE__ */ BigInt(0); + var fh = /* @__PURE__ */ BigInt(1); + var kG = /* @__PURE__ */ BigInt(2); + var RG = /* @__PURE__ */ BigInt(7); + var CG = /* @__PURE__ */ BigInt(256); + var DG = /* @__PURE__ */ BigInt(113); + for (let t = 0, e = fh, r = 1, n = 0; t < 24; t++) { [r, n] = [n, (2 * r + 3 * n) % 5], cO.push(2 * (5 * n + r)), uO.push((t + 1) * (t + 2) / 2 % 64); - let i = IG; + let i = PG; for (let s = 0; s < 7; s++) - e = (e << hh ^ (e >> PG) * RG) % kG, e & OG && (i ^= hh << (hh << /* @__PURE__ */ BigInt(s)) - hh); + e = (e << fh ^ (e >> RG) * DG) % CG, e & kG && (i ^= fh << (fh << /* @__PURE__ */ BigInt(s)) - fh); lO.push(i); } - var [CG, DG] = /* @__PURE__ */ EI(lO, true); - var u6 = (t, e, r) => r > 32 ? AI(t, e, r) : SI(t, e, r); - var l6 = (t, e, r) => r > 32 ? TI(t, e, r) : MI(t, e, r); - function LG(t, e = 24) { + var [LG, BG] = /* @__PURE__ */ EI(lO, true); + var c6 = (t, e, r) => r > 32 ? AI(t, e, r) : SI(t, e, r); + var u6 = (t, e, r) => r > 32 ? TI(t, e, r) : MI(t, e, r); + function UG(t, e = 24) { const r = new Uint32Array(10); for (let n = 24 - e; n < 24; n++) { for (let o = 0; o < 10; o++) r[o] = t[o] ^ t[o + 10] ^ t[o + 20] ^ t[o + 30] ^ t[o + 40]; for (let o = 0; o < 10; o += 2) { - const a = (o + 8) % 10, c = (o + 2) % 10, u = r[c], f = r[c + 1], p = u6(u, f, 1) ^ r[a], b = l6(u, f, 1) ^ r[a + 1]; + const a = (o + 8) % 10, c = (o + 2) % 10, u = r[c], f = r[c + 1], p = c6(u, f, 1) ^ r[a], b = u6(u, f, 1) ^ r[a + 1]; for (let E = 0; E < 50; E += 10) t[o + E] ^= p, t[o + E + 1] ^= b; } let i = t[2], s = t[3]; for (let o = 0; o < 24; o++) { - const a = uO[o], c = u6(i, s, a), u = l6(i, s, a), f = cO[o]; + const a = uO[o], c = c6(i, s, a), u = u6(i, s, a), f = cO[o]; i = t[f], s = t[f + 1], t[f] = c, t[f + 1] = u; } for (let o = 0; o < 50; o += 10) { @@ -11783,23 +11783,23 @@ ${gz(e, r)}`); for (let a = 0; a < 10; a++) t[o + a] ^= ~r[(a + 2) % 10] & r[(a + 4) % 10]; } - t[0] ^= CG[n], t[1] ^= DG[n]; + t[0] ^= LG[n], t[1] ^= BG[n]; } r.fill(0); } - var j4 = class extends ug { + var U4 = class extends ug { constructor(e, r, n, i = false, s = 24) { if (super(), this.blockLen = e, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, this.pos = 0, this.posOut = 0, this.finished = false, this.destroyed = false, ui(n), 0 >= this.blockLen || this.blockLen >= 200) throw new Error("Sha3 supports only keccak-f1600 function"); - this.state = new Uint8Array(200), this.state32 = qc(this.state); + this.state = new Uint8Array(200), this.state32 = Fc(this.state); } keccak() { - ao || Vo(this.state32), LG(this.state32, this.rounds), ao || Vo(this.state32), this.posOut = 0, this.pos = 0; + oo || jo(this.state32), UG(this.state32, this.rounds), oo || jo(this.state32), this.posOut = 0, this.pos = 0; } update(e) { - Qc(this); + Zc(this); const { blockLen: r, state: n } = this; - e = ho(e); + e = fo(e); const i = e.length; for (let s = 0; s < i; ) { const o = Math.min(r - this.pos, i - s); @@ -11817,7 +11817,7 @@ ${gz(e, r)}`); e[n] ^= r, r & 128 && n === i - 1 && this.keccak(), e[i - 1] ^= 128, this.keccak(); } writeInto(e) { - Qc(this, false), s0(e), this.finish(); + Zc(this, false), o0(e), this.finish(); const r = this.state, { blockLen: n } = this; for (let i = 0, s = e.length; i < s; ) { this.posOut >= n && this.keccak(); @@ -11835,7 +11835,7 @@ ${gz(e, r)}`); return ui(e), this.xofInto(new Uint8Array(e)); } digestInto(e) { - if (M4(e, this), this.finished) + if (S4(e, this), this.finished) throw new Error("digest() was already called"); return this.writeInto(e), this.destroy(), e; } @@ -11847,49 +11847,49 @@ ${gz(e, r)}`); } _cloneInto(e) { const { blockLen: r, suffix: n, outputLen: i, rounds: s, enableXOF: o } = this; - return e || (e = new j4(r, n, i, o, s)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = n, e.outputLen = i, e.enableXOF = o, e.destroyed = this.destroyed, e; + return e || (e = new U4(r, n, i, o, s)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = n, e.outputLen = i, e.enableXOF = o, e.destroyed = this.destroyed, e; } }; - var fO = (t, e, r) => A4(() => new j4(e, t, r)); - var BG = /* @__PURE__ */ fO(1, 136, 256 / 8); - var UG = /* @__PURE__ */ fO(1, 72, 512 / 8); - var sc = /* @__PURE__ */ NI({ 256: uq, 512: lq }, { 256: BG, 512: UG }); - var jG = /* @__PURE__ */ fg(256, sc); - var VG = /* @__PURE__ */ fg(512, sc); - var zG = /* @__PURE__ */ lg(sc); - function C1(t, e, r) { - return t === "keccak" ? sc(e, void 0, r) : kn(e, void 0, void 0, r); + var fO = (t, e, r) => M4(() => new U4(e, t, r)); + var jG = /* @__PURE__ */ fO(1, 136, 256 / 8); + var VG = /* @__PURE__ */ fO(1, 72, 512 / 8); + var nc = /* @__PURE__ */ NI({ 256: fq, 512: hq }, { 256: jG, 512: VG }); + var zG = /* @__PURE__ */ fg(256, nc); + var FG = /* @__PURE__ */ fg(512, nc); + var HG = /* @__PURE__ */ lg(nc); + function D1(t, e, r) { + return t === "keccak" ? nc(e, void 0, r) : kn(e, void 0, void 0, r); } - function FG(t, e, r = "blake2") { - const n = $t("evm:", t); + function qG(t, e, r = "blake2") { + const n = Qt("evm:", t); if (n.length !== 24) throw new Error(`Converting ${t}: Invalid evm address length`); - return la(C1(r, n), e); + return ca(D1(r, n), e); } function hO(t, e, r) { return !!Mr(t, e, r); } - function HG(t, e, r) { + function WG(t, e, r) { try { return hO(t, e, r); } catch { return false; } } - function qG(t, e) { - const r = (n) => la(n, e); - return s4(t.map(oO)).map(r); + function GG(t, e) { + const r = (n) => ca(n, e); + return i4(t.map(oO)).map(r); } - var WG = mi("setSS58Format"); - function GG(t) { - WG.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"), pf.prefix = t; + var KG = mi("setSS58Format"); + function XG(t) { + KG.warn("Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function"), pf.prefix = t; } - var f6 = "abcdefghijklmnopqrstuvwxyz234567"; - var V4 = { - chars: f6, - coder: ty.chain( - ty.radix2(5), - ty.alphabet(f6), + var l6 = "abcdefghijklmnopqrstuvwxyz234567"; + var j4 = { + chars: l6, + coder: ey.chain( + ey.radix2(5), + ey.alphabet(l6), { decode: (t) => t.split(""), encode: (t) => t.join("") @@ -11898,32 +11898,32 @@ ${gz(e, r)}`); ipfs: "b", type: "base32" }; - var z4 = /* @__PURE__ */ x4(V4); - var KG = /* @__PURE__ */ v4(z4); - var XG = /* @__PURE__ */ b4(V4, z4); + var V4 = /* @__PURE__ */ v4(j4); var YG = /* @__PURE__ */ w4(V4); - var F4 = { + var ZG = /* @__PURE__ */ y4(j4, V4); + var JG = /* @__PURE__ */ b4(j4); + var z4 = { chars: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - coder: wq, + coder: xq, type: "base64", withPadding: true }; - var H4 = /* @__PURE__ */ x4(F4); - var ZG = /* @__PURE__ */ v4(H4); - var gg = /* @__PURE__ */ b4(F4, H4); - var q4 = /* @__PURE__ */ w4(F4); - function JG(t) { + var F4 = /* @__PURE__ */ v4(z4); + var QG = /* @__PURE__ */ w4(F4); + var gg = /* @__PURE__ */ y4(z4, F4); + var H4 = /* @__PURE__ */ b4(z4); + function $G(t) { return t.padEnd(t.length + t.length % 4, "="); } - function QG(t) { + function eK(t) { for (; t.length && t.endsWith("="); ) t = t.slice(0, -1); return t; } - function W4(t, e) { + function q4(t, e) { if (![33, 65].includes(t.length)) throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`); - return t.length === 33 ? t : !hn || !e && tn() ? KH(t) : Hf.ProjectivePoint.fromHex(t).toRawBytes(true); + return t.length === 33 ? t : !hn || !e && tn() ? YH(t) : Ff.ProjectivePoint.fromHex(t).toRawBytes(true); } function yg(t, e) { if (![33, 65].includes(t.length)) @@ -11931,60 +11931,60 @@ ${gz(e, r)}`); if (t.length === 65) return t.subarray(1); if (!hn || !e && tn()) - return XH(t).subarray(1); - const { px: r, py: n } = Hf.ProjectivePoint.fromHex(t); - return $t(Hr(r, If), Hr(n, If)); + return ZH(t).subarray(1); + const { px: r, py: n } = Ff.ProjectivePoint.fromHex(t); + return Qt(Fr(r, If), Fr(n, If)); } function dO(t, e, r, n = "blake2", i) { - const s = Xe(e).subarray(0, 64), o = Xe(t), a = !hn || !i && tn() ? YH(o, s, r) : Hf.Signature.fromCompact(s).addRecoveryBit(r).recoverPublicKey(o).toRawBytes(); + const s = Xe(e).subarray(0, 64), o = Xe(t), a = !hn || !i && tn() ? JH(o, s, r) : Ff.Signature.fromCompact(s).addRecoveryBit(r).recoverPublicKey(o).toRawBytes(); if (!a) throw new Error("Unable to recover publicKey from signature"); - return n === "keccak" ? yg(a, i) : W4(a, i); + return n === "keccak" ? yg(a, i) : q4(a, i); } - function j3(t, { secretKey: e }, r = "blake2", n) { + function U3(t, { secretKey: e }, r = "blake2", n) { if ((e == null ? void 0 : e.length) !== 32) throw new Error("Expected valid secp256k1 secretKey, 32-bytes"); - const i = C1(r, t, n); + const i = D1(r, t, n); if (!hn || !n && tn()) - return ZH(i, e); - const s = Hf.sign(i, e, { lowS: true }); - return $t(Hr(s.r, If), Hr(s.s, If), new Uint8Array([s.recovery || 0])); + return QH(i, e); + const s = Ff.sign(i, e, { lowS: true }); + return Qt(Fr(s.r, If), Fr(s.s, If), new Uint8Array([s.recovery || 0])); } var pO = "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g, ""); - var oy = vt(`0x${pO}`); - var ay = new ct(pO, "hex"); - function $G(t, e) { - let r = N1(e, Z9); - if (r >= oy) + var sy = bt(`0x${pO}`); + var oy = new ct(pO, "hex"); + function tK(t, e) { + let r = I1(e, Y9); + if (r >= sy) throw new Error("Tweak parameter is out of range"); - if (r += N1(t, Z9), r >= oy && (r -= oy), r === Yu) + if (r += I1(t, Y9), r >= sy && (r -= sy), r === Yu) throw new Error("Invalid resulting private key"); - return o4(r, If); + return s4(r, If); } - function eK(t, e) { + function rK(t, e) { const r = new ct(e); - if (r.cmp(ay) >= 0) + if (r.cmp(oy) >= 0) throw new Error("Tweak parameter is out of range"); - if (r.iadd(new ct(t)), r.cmp(ay) >= 0 && r.isub(ay), r.isZero()) + if (r.iadd(new ct(t)), r.cmp(oy) >= 0 && r.isub(oy), r.isZero()) throw new Error("Invalid resulting private key"); - return Hr(r, If); + return Fr(r, If); } function mO(t, e, r) { if (!Et(t) || t.length !== 32) throw new Error("Expected seckey to be an Uint8Array with length 32"); if (!Et(e) || e.length !== 32) throw new Error("Expected tweak to be an Uint8Array with length 32"); - return !hn || r ? eK(t, e) : $G(t, e); + return !hn || r ? rK(t, e) : tK(t, e); } function gO(t, e, r, n = "blake2", i) { const s = Xe(e); if (s.length !== 65) throw new Error(`Expected signature with 65 bytes, ${s.length} found instead`); - const o = dO(C1(n, t), s, s[64], n, i), a = C1(n, o, i), c = Xe(r); + const o = dO(D1(n, t), s, s[64], n, i), a = D1(n, o, i), c = Xe(r); return Pn(o, c) || (n === "keccak" ? Pn(a.slice(-20), c.slice(-20)) : Pn(a, c)); } - function tK(t) { - return [33, 65].includes(t.length) && (t = sc(yg(t))), t.slice(-20); + function nK(t) { + return [33, 65].includes(t.length) && (t = nc(yg(t))), t.slice(-20); } function bg(t) { if (!t) @@ -11992,55 +11992,55 @@ ${gz(e, r)}`); const e = Xe(t); if (![20, 32, 33, 65].includes(e.length)) throw new Error(`Invalid address or publicKey provided, received ${e.length} bytes input`); - const r = Bt(tK(e), -1, false), n = Bt(sc(r), -1, false); + const r = Bt(nK(e), -1, false), n = Bt(nc(r), -1, false); let i = ""; for (let s = 0; s < 40; s++) i = `${i}${parseInt(n[s], 16) > 7 ? r[s].toUpperCase() : r[s]}`; return `0x${i}`; } - function rK(t, e) { + function iK(t, e) { return t !== (e > 7 ? t.toUpperCase() : t.toLowerCase()); } function yO(t) { - const e = t.replace("0x", ""), r = Bt(sc(e.toLowerCase()), -1, false); + const e = t.replace("0x", ""), r = Bt(nc(e.toLowerCase()), -1, false); for (let n = 0; n < 40; n++) - if (rK(e[n], parseInt(r[n], 16))) + if (iK(e[n], parseInt(r[n], 16))) return false; return true; } function bO(t) { return !t || t.length !== 42 || !Ft(t) ? false : /^(0x)?[0-9a-f]{40}$/.test(t) || /^(0x)?[0-9A-F]{40}$/.test(t) ? true : yO(t); } - var nK = { - 256: o0, + var sK = { + 256: a0, 512: mg }; - var iK = { - 256: aq, - 512: cq + var oK = { + 256: uq, + 512: lq }; function wO(t) { - return (e, r, n) => $c(e, r, t, n); + return (e, r, n) => Jc(e, r, t, n); } - function $c(t, e, r = 256, n) { + function Jc(t, e, r = 256, n) { const i = Xe(t); - return !hn || !n && tn() ? iK[r](i, e) : dg(nK[r], i, e); + return !hn || !n && tn() ? oK[r](i, e) : dg(sK[r], i, e); } - var sK = /* @__PURE__ */ wO(256); - var oK = /* @__PURE__ */ wO(512); - var pd = 2147483648; - function G4(t) { + var aK = /* @__PURE__ */ wO(256); + var cK = /* @__PURE__ */ wO(512); + var dd = 2147483648; + function W4(t) { if (!t.startsWith("m/")) return false; const e = t.split("/").slice(1); for (const r of e) { const n = /^\d+'?$/.test(r) ? parseInt(r.replace(/'$/, ""), 10) : Number.NaN; - if (isNaN(n) || n >= pd || n < 0) + if (isNaN(n) || n >= dd || n < 0) return false; } return true; } - var aK = Dr("Bitcoin seed"); + var uK = Cr("Bitcoin seed"); function vO(t, e) { return { chainCode: e, @@ -12049,41 +12049,41 @@ ${gz(e, r)}`); }; } function xO(t, e) { - const r = Hr(e, aW), n = e >= pd ? $t(new Uint8Array(1), t.secretKey, r) : $t(t.publicKey, r); + const r = Fr(e, uW), n = e >= dd ? Qt(new Uint8Array(1), t.secretKey, r) : Qt(t.publicKey, r); try { - const i = $c(t.chainCode, n, 512); + const i = Jc(t.chainCode, n, 512); return vO(mO(t.secretKey, i.slice(0, 32)), i.slice(32)); } catch { return xO(t, e + 1); } } function _O(t, e = "") { - const r = $c(aK, t, 512); + const r = Jc(uK, t, 512); let n = vO(r.slice(0, 32), r.slice(32)); if (!e || e === "m" || e === "M" || e === "m'" || e === "M'") return n; - if (!G4(e)) + if (!W4(e)) throw new Error("Invalid derivation path"); const i = e.split("/").slice(1); for (const s of i) - n = xO(n, parseInt(s, 10) + (s.length > 1 && s.endsWith("'") ? pd : 0)); + n = xO(n, parseInt(s, 10) + (s.length > 1 && s.endsWith("'") ? dd : 0)); return n; } - function cK(t, e, r, n) { + function lK(t, e, r, n) { bI(t); const i = vI({ dkLen: 32, asyncTick: 10 }, n), { c: s, dkLen: o, asyncTick: a } = i; if (ui(s), ui(o), ui(a), s < 1) throw new Error("PBKDF2: iterations (c) should be >= 1"); - const c = ho(e), u = ho(r), f = new Uint8Array(o), p = dg.create(t, c), b = p._cloneInto().update(u); + const c = fo(e), u = fo(r), f = new Uint8Array(o), p = dg.create(t, c), b = p._cloneInto().update(u); return { c: s, dkLen: o, asyncTick: a, DK: f, PRF: p, PRFSalt: b }; } - function uK(t, e, r, n, i) { + function fK(t, e, r, n, i) { return t.destroy(), e.destroy(), n && n.destroy(), i.fill(0), r; } - function K4(t, e, r, n) { - const { c: i, dkLen: s, DK: o, PRF: a, PRFSalt: c } = cK(t, e, r, n); + function G4(t, e, r, n) { + const { c: i, dkLen: s, DK: o, PRF: a, PRFSalt: c } = lK(t, e, r, n); let u; - const f = new Uint8Array(4), p = Lp(f), b = new Uint8Array(a.outputLen); + const f = new Uint8Array(4), p = Bp(f), b = new Uint8Array(a.outputLen); for (let E = 1, _ = 0; _ < s; E++, _ += a.outputLen) { const N = o.subarray(_, _ + a.outputLen); p.setInt32(0, E, false), (u = c._cloneInto(u)).update(f).digestInto(b), N.set(b.subarray(0, N.length)); @@ -12093,24 +12093,24 @@ ${gz(e, r)}`); N[F] ^= b[F]; } } - return uK(a, c, o, u, b); + return fK(a, c, o, u, b); } - function X4(t, e = wl(), r = 2048, n) { + function K4(t, e = wl(), r = 2048, n) { const i = Xe(t), s = Xe(e); return { - password: !hn || !n && tn() ? fq(i, s, r) : K4(mg, i, s, { c: r, dkLen: 64 }), + password: !hn || !n && tn() ? dq(i, s, r) : G4(mg, i, s, { c: r, dkLen: 64 }), rounds: r, salt: e }; } - var Y4 = /* @__PURE__ */ NI({ 256: dq, 512: pq }, { 256: o0, 512: mg }); - var EO = /* @__PURE__ */ fg(256, Y4); - var lK = /* @__PURE__ */ fg(512, Y4); + var X4 = /* @__PURE__ */ NI({ 256: mq, 512: gq }, { 256: a0, 512: mg }); + var EO = /* @__PURE__ */ fg(256, X4); + var hK = /* @__PURE__ */ fg(512, X4); var SO = "abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|"); - var h6 = "Invalid mnemonic"; + var f6 = "Invalid mnemonic"; var MO = "Invalid entropy"; - var fK = "Invalid mnemonic checksum"; - function V3(t) { + var dK = "Invalid mnemonic checksum"; + function j3(t) { return (t || "").normalize("NFKD"); } function AO(t) { @@ -12122,27 +12122,27 @@ ${gz(e, r)}`); function NO(t) { return TO(Array.from(EO(t))).slice(0, t.length * 8 / 32); } - function z3(t, e) { - return X4(Dr(V3(t)), Dr(`mnemonic${V3(e)}`)).password; + function V3(t, e) { + return K4(Cr(j3(t)), Cr(`mnemonic${j3(e)}`)).password; } function IO(t, e = SO) { - const r = V3(t).split(" "); + const r = j3(t).split(" "); if (r.length % 3 !== 0) - throw new Error(h6); + throw new Error(f6); const n = r.map((f) => { const p = e.indexOf(f); if (p === -1) - throw new Error(h6); + throw new Error(f6); return p.toString(2).padStart(11, "0"); }).join(""), i = Math.floor(n.length / 33) * 32, s = n.slice(0, i), o = n.slice(i), a = s.match(/(.{1,8})/g), c = a == null ? void 0 : a.map(AO); if (!c || c.length % 4 !== 0 || c.length < 16 || c.length > 32) throw new Error(MO); const u = Xe(c); if (NO(u) !== o) - throw new Error(fK); + throw new Error(dK); return u; } - function hK(t, e = SO) { + function pK(t, e = SO) { if (t.length % 4 !== 0 || t.length < 16 || t.length > 32) throw new Error(MO); const r = `${TO(Array.from(t))}${NO(t)}`.match(/(.{1,11})/g), n = r == null ? void 0 : r.map((i) => e[AO(i)]); @@ -12150,10 +12150,10 @@ ${gz(e, r)}`); throw new Error("Unable to map entropy to mnemonic"); return n.join(" "); } - function dK(t, e) { - return hK(wl(t / 3 * 4), e); + function mK(t, e) { + return pK(wl(t / 3 * 4), e); } - function pK(t, e) { + function gK(t, e) { try { IO(t, e); } catch { @@ -12161,14 +12161,14 @@ ${gz(e, r)}`); } return true; } - function mK(t = 12, e, r) { - return !hn || !e && !r && tn() ? UH(t) : dK(t, e); + function yK(t = 12, e, r) { + return !hn || !e && !r && tn() ? VH(t) : mK(t, e); } function OO(t, e, r) { - return !hn || !e && !r && tn() ? jH(t) : IO(t, e); + return !hn || !e && !r && tn() ? zH(t) : IO(t, e); } function wg(t, e, r) { - return !hn || !e && !r && tn() ? FH(t) : pK(t, e); + return !hn || !e && !r && tn() ? qH(t) : gK(t, e); } function PO(t, e = "", r, n = 32) { if (wg(t)) { @@ -12176,44 +12176,44 @@ ${gz(e, r)}`); throw new Error(`Invalid seed length ${n}, expected 32 or 64`); } else throw new Error("Invalid bip39 mnemonic specified"); - return n === 32 ? !hn || !r && tn() ? zH(t, e) : z3(t, e).subarray(0, 32) : z3(t, e); + return n === 32 ? !hn || !r && tn() ? HH(t, e) : V3(t, e).subarray(0, 32) : V3(t, e); } function kO(t, e = "", r, n) { if (wg(t, r, n)) { if (!r && !n && tn()) - return VH(t, e); + return FH(t, e); } else throw new Error("Invalid bip39 mnemonic specified"); - const i = OO(t, r), s = Dr(`mnemonic${e}`); - return X4(i, s).password.slice(0, 32); + const i = OO(t, r), s = Cr(`mnemonic${e}`); + return K4(i, s).password.slice(0, 32); } - function gK(t, e) { - const r = t.subarray(0, 32), n = t.subarray(32, 64), i = t.subarray(64, 96), s = $t([0], r, n, Hr(e, Up)), o = $c(i, s, 512); - return s[0] = 1, $t(Hr(Zn(r, Ru).iadd(Zn(o.subarray(0, 28), Ru).imul(CN)), J9).subarray(0, 32), Hr(Zn(n, Ru).iadd(Zn(o.subarray(32, 64), Ru)), J9).subarray(0, 32), $c(i, s, 512).subarray(32, 64)); + function bK(t, e) { + const r = t.subarray(0, 32), n = t.subarray(32, 64), i = t.subarray(64, 96), s = Qt([0], r, n, Fr(e, jp)), o = Jc(i, s, 512); + return s[0] = 1, Qt(Fr(Yn(r, ku).iadd(Yn(o.subarray(0, 28), ku).imul(CN)), Z9).subarray(0, 32), Fr(Yn(n, ku).iadd(Yn(o.subarray(32, 64), ku)), Z9).subarray(0, 32), Jc(i, s, 512).subarray(32, 64)); } - var d6 = "ed25519 seed"; - function yK(t, e) { - const r = z3(t, e), n = $c(d6, new Uint8Array([1, ...r]), 256); + var h6 = "ed25519 seed"; + function wK(t, e) { + const r = V3(t, e), n = Jc(h6, new Uint8Array([1, ...r]), 256); let i; for (; !i || i[31] & 32; ) - i = $c(d6, i || r, 512); - return i[0] &= 248, i[31] &= 127, i[31] |= 64, $t(i, n); + i = Jc(h6, i || r, 512); + return i[0] &= 248, i[31] &= 127, i[31] |= 64, Qt(i, n); } - function bK(t, e) { + function vK(t, e) { const r = t.split(" ").map((a) => a.trim()).filter((a) => a); if (![12, 24, 25].includes(r.length)) throw new Error("Expected a mnemonic with 24 words (or 25 including a password)"); const [n, i] = r.length === 25 ? [r.slice(0, 24).join(" "), r[24]] : [r.join(" "), ""]; if (wg(n)) { - if (!G4(e)) + if (!W4(e)) throw new Error("Invalid derivation path"); } else throw new Error("Invalid mnemonic passed to ledger derivation"); const s = e.split("/").slice(1); - let o = yK(n, i); + let o = wK(n, i); for (const a of s) { const c = parseInt(a.replace(/'$/, ""), 10); - o = gK(o, c < pd ? c + pd : c); + o = bK(o, c < dd ? c + dd : c); } return vl(o.slice(0, 32)); } @@ -12224,17 +12224,17 @@ ${gz(e, r)}`); let r = t[e + 3] & 255; return r = r << 8 | t[e + 2] & 255, r = r << 8 | t[e + 1] & 255, r << 8 | t[e + 0] & 255; } - function cy(t, e, r) { + function ay(t, e, r) { for (let n = 0; n < 4; n++) t[e + n] = r & 255, r >>>= 8; } - function wK(t, e, r, n, i) { + function xK(t, e, r, n, i) { let s = 0; for (let o = 0; o < i; o++) s |= t[e + o] ^ r[n + o]; return (1 & s - 1 >>> 8) - 1; } - function F3(t, e, r, n, i) { + function z3(t, e, r, n, i) { const s = new Uint32Array(16), o = new Uint32Array(16), a = new Uint32Array(16), c = new Uint32Array(4); let u, f, p; for (u = 0; u < 4; u++) @@ -12257,13 +12257,13 @@ ${gz(e, r)}`); for (u = 0; u < 4; u++) o[5 * u] = o[5 * u] - Ll(n, 4 * u) | 0, o[6 + u] = o[6 + u] - Ll(e, 4 * u) | 0; for (u = 0; u < 4; u++) - cy(t, 4 * u, o[5 * u]), cy(t, 16 + 4 * u, o[6 + u]); + ay(t, 4 * u, o[5 * u]), ay(t, 16 + 4 * u, o[6 + u]); } else for (u = 0; u < 16; u++) - cy(t, 4 * u, o[u] + a[u] | 0); + ay(t, 4 * u, o[u] + a[u] | 0); } - var H3 = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]); - function vK(t, e, r, n, i, s, o) { + var F3 = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]); + function _K(t, e, r, n, i, s, o) { const a = new Uint8Array(16), c = new Uint8Array(64); let u, f; if (!i) @@ -12273,27 +12273,27 @@ ${gz(e, r)}`); for (f = 0; f < 8; f++) a[f] = s[f]; for (; i >= 64; ) { - for (F3(c, a, o, H3, false), f = 0; f < 64; f++) + for (z3(c, a, o, F3, false), f = 0; f < 64; f++) t[e + f] = (r ? r[n + f] : 0) ^ c[f]; for (u = 1, f = 8; f < 16; f++) u = u + (a[f] & 255) | 0, a[f] = u & 255, u >>>= 8; i -= 64, e += 64, r && (n += 64); } if (i > 0) - for (F3(c, a, o, H3, false), f = 0; f < i; f++) + for (z3(c, a, o, F3, false), f = 0; f < i; f++) t[e + f] = (r ? r[n + f] : 0) ^ c[f]; return 0; } - function q3(t, e, r, n, i, s, o) { + function H3(t, e, r, n, i, s, o) { const a = new Uint8Array(32); - return F3(a, s, o, H3, true), vK(t, e, r, n, i, s.subarray(16), a); + return z3(a, s, o, F3, true), _K(t, e, r, n, i, s.subarray(16), a); } - function uy(t, e) { + function cy(t, e) { let r = 0; for (let n = 0; n < 17; n++) r = r + (t[n] + e[n] | 0) | 0, t[n] = r & 255, r >>>= 8; } - var xK = new Uint32Array([5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252]); + var EK = new Uint32Array([5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252]); function RO(t, e, r, n, i, s) { let o, a, c; const u = new Uint32Array(17), f = new Uint32Array(17), p = new Uint32Array(17), b = new Uint32Array(17), E = new Uint32Array(17); @@ -12306,7 +12306,7 @@ ${gz(e, r)}`); b[a] = 0; for (a = 0; a < 16 && a < i; ++a) b[a] = r[n + a]; - for (b[a] = 1, n += a, i -= a, uy(p, b), o = 0; o < 17; o++) + for (b[a] = 1, n += a, i -= a, cy(p, b), o = 0; o < 17; o++) for (u[o] = 0, a = 0; a < 17; a++) u[o] = u[o] + p[a] * (a <= o ? f[o - a] : 320 * f[o + 17 - a] | 0) | 0 | 0; for (o = 0; o < 17; o++) @@ -12319,45 +12319,45 @@ ${gz(e, r)}`); } for (a = 0; a < 17; a++) E[a] = p[a]; - uy(p, xK); + cy(p, EK); const _ = -(p[16] >>> 7) | 0; for (a = 0; a < 17; a++) p[a] ^= _ & (E[a] ^ p[a]); for (a = 0; a < 16; a++) b[a] = s[a + 16]; - for (b[16] = 0, uy(p, b), a = 0; a < 16; a++) + for (b[16] = 0, cy(p, b), a = 0; a < 16; a++) t[e + a] = p[a]; return 0; } - function _K(t, e, r, n, i, s) { + function SK(t, e, r, n, i, s) { const o = new Uint8Array(16); - return RO(o, 0, r, n, i, s), wK(t, e, o, 0, 16); + return RO(o, 0, r, n, i, s), xK(t, e, o, 0, 16); } - function EK(t, e, r, n, i) { + function MK(t, e, r, n, i) { if (r < 32) return -1; - q3(t, 0, e, 0, r, n, i), RO(t, 16, t, 32, r - 32, t); + H3(t, 0, e, 0, r, n, i), RO(t, 16, t, 32, r - 32, t); for (let s = 0; s < 16; s++) t[s] = 0; return 0; } - function SK(t, e, r, n, i) { + function AK(t, e, r, n, i) { const s = new Uint8Array(32); - if (r < 32 || (q3(s, 0, null, 0, 32, n, i), _K(e, 16, e, 32, r - 32, s) !== 0)) + if (r < 32 || (H3(s, 0, null, 0, 32, n, i), SK(e, 16, e, 32, r - 32, s) !== 0)) return -1; - q3(t, 0, e, 0, r, n, i); + H3(t, 0, e, 0, r, n, i); for (let o = 0; o < 32; o++) t[o] = 0; return 0; } - var MK = 32; - var AK = 24; - var W3 = 32; - var G3 = 16; + var TK = 32; + var NK = 24; + var q3 = 32; + var W3 = 16; function CO(t, e) { - if (t.length !== MK) + if (t.length !== TK) throw new Error("bad key size"); - if (e.length !== AK) + if (e.length !== NK) throw new Error("bad nonce size"); } function DO(...t) { @@ -12365,43 +12365,43 @@ ${gz(e, r)}`); if (!(t[e] instanceof Uint8Array)) throw new TypeError("unexpected type, use Uint8Array"); } - function TK(t, e, r) { + function IK(t, e, r) { DO(t, e, r), CO(r, e); - const n = new Uint8Array(W3 + t.length), i = new Uint8Array(n.length); + const n = new Uint8Array(q3 + t.length), i = new Uint8Array(n.length); for (let s = 0; s < t.length; s++) - n[s + W3] = t[s]; - return EK(i, n, n.length, e, r), i.subarray(G3); + n[s + q3] = t[s]; + return MK(i, n, n.length, e, r), i.subarray(W3); } - function NK(t, e, r) { + function OK(t, e, r) { DO(t, e, r), CO(r, e); - const n = new Uint8Array(G3 + t.length), i = new Uint8Array(n.length); + const n = new Uint8Array(W3 + t.length), i = new Uint8Array(n.length); for (let s = 0; s < t.length; s++) - n[s + G3] = t[s]; - return n.length < 32 || SK(i, n, n.length, e, r) !== 0 ? null : i.subarray(W3); + n[s + W3] = t[s]; + return n.length < 32 || AK(i, n, n.length, e, r) !== 0 ? null : i.subarray(q3); } function LO(t, e, r) { - return NK(t, e, r); + return OK(t, e, r); } - function Z4(t, e, r = wl(24)) { + function Y4(t, e, r = wl(24)) { return { - encrypted: TK(t, r, e), + encrypted: IK(t, r, e), nonce: r }; } - function p6(t, e, r, n, i, s) { + function d6(t, e, r, n, i, s) { let o = t[e++] ^ r[n++], a = t[e++] ^ r[n++], c = t[e++] ^ r[n++], u = t[e++] ^ r[n++], f = t[e++] ^ r[n++], p = t[e++] ^ r[n++], b = t[e++] ^ r[n++], E = t[e++] ^ r[n++], _ = t[e++] ^ r[n++], N = t[e++] ^ r[n++], k = t[e++] ^ r[n++], F = t[e++] ^ r[n++], L = t[e++] ^ r[n++], D = t[e++] ^ r[n++], q = t[e++] ^ r[n++], W = t[e++] ^ r[n++], z = o, T = a, I = c, H = u, X = f, V = p, S = b, d = E, l = _, h = N, y = k, x = F, v = L, M = D, w = q, g = W; for (let m = 0; m < 8; m += 2) X ^= nr(z + v | 0, 7), l ^= nr(X + z | 0, 9), v ^= nr(l + X | 0, 13), z ^= nr(v + l | 0, 18), h ^= nr(V + T | 0, 7), M ^= nr(h + V | 0, 9), T ^= nr(M + h | 0, 13), V ^= nr(T + M | 0, 18), w ^= nr(y + S | 0, 7), I ^= nr(w + y | 0, 9), S ^= nr(I + w | 0, 13), y ^= nr(S + I | 0, 18), H ^= nr(g + x | 0, 7), d ^= nr(H + g | 0, 9), x ^= nr(d + H | 0, 13), g ^= nr(x + d | 0, 18), T ^= nr(z + H | 0, 7), I ^= nr(T + z | 0, 9), H ^= nr(I + T | 0, 13), z ^= nr(H + I | 0, 18), S ^= nr(V + X | 0, 7), d ^= nr(S + V | 0, 9), X ^= nr(d + S | 0, 13), V ^= nr(X + d | 0, 18), x ^= nr(y + h | 0, 7), l ^= nr(x + y | 0, 9), h ^= nr(l + x | 0, 13), y ^= nr(h + l | 0, 18), v ^= nr(g + w | 0, 7), M ^= nr(v + g | 0, 9), w ^= nr(M + v | 0, 13), g ^= nr(w + M | 0, 18); i[s++] = o + z | 0, i[s++] = a + T | 0, i[s++] = c + I | 0, i[s++] = u + H | 0, i[s++] = f + X | 0, i[s++] = p + V | 0, i[s++] = b + S | 0, i[s++] = E + d | 0, i[s++] = _ + l | 0, i[s++] = N + h | 0, i[s++] = k + y | 0, i[s++] = F + x | 0, i[s++] = L + v | 0, i[s++] = D + M | 0, i[s++] = q + w | 0, i[s++] = W + g | 0; } - function ly(t, e, r, n, i) { + function uy(t, e, r, n, i) { let s = n + 0, o = n + 16 * i; for (let a = 0; a < 16; a++) r[o + a] = t[e + (2 * i - 1) * 16 + a]; for (let a = 0; a < i; a++, s += 16, e += 16) - p6(r, o, t, e, r, s), a > 0 && (o += 16), p6(r, s, t, e += 16, r, o); + d6(r, o, t, e, r, s), a > 0 && (o += 16), d6(r, s, t, e += 16, r, o); } - function IK(t, e, r) { + function PK(t, e, r) { const n = vI({ dkLen: 32, asyncTick: 10, @@ -12419,7 +12419,7 @@ ${gz(e, r)}`); const E = p * (i + o); if (E > u) throw new Error(`Scrypt: parameters too large, ${E} (128 * r * (N + p)) > ${u} (maxmem)`); - const _ = K4(o0, t, e, { c: 1, dkLen: p * o }), N = qc(_), k = qc(new Uint8Array(p * i)), F = qc(new Uint8Array(p)); + const _ = G4(a0, t, e, { c: 1, dkLen: p * o }), N = Fc(_), k = Fc(new Uint8Array(p * i)), F = Fc(new Uint8Array(p)); let L = () => { }; if (f) { @@ -12431,57 +12431,57 @@ ${gz(e, r)}`); } return { N: i, r: s, p: o, dkLen: a, blockSize32: b, V: k, B32: N, B: _, tmp: F, blockMixCb: L, asyncTick: c }; } - function OK(t, e, r, n, i) { - const s = K4(o0, t, r, { c: 1, dkLen: e }); + function kK(t, e, r, n, i) { + const s = G4(a0, t, r, { c: 1, dkLen: e }); return r.fill(0), n.fill(0), i.fill(0), s; } - function PK(t, e, r) { - const { N: n, r: i, p: s, dkLen: o, blockSize32: a, V: c, B32: u, B: f, tmp: p, blockMixCb: b } = IK(t, e, r); - ao || Vo(u); + function RK(t, e, r) { + const { N: n, r: i, p: s, dkLen: o, blockSize32: a, V: c, B32: u, B: f, tmp: p, blockMixCb: b } = PK(t, e, r); + oo || jo(u); for (let E = 0; E < s; E++) { const _ = a * E; for (let N = 0; N < a; N++) c[N] = u[_ + N]; for (let N = 0, k = 0; N < n - 1; N++) - ly(c, k, c, k += a, i), b(); - ly(c, (n - 1) * a, u, _, i), b(); + uy(c, k, c, k += a, i), b(); + uy(c, (n - 1) * a, u, _, i), b(); for (let N = 0; N < n; N++) { const k = u[_ + a - 16] % n; for (let F = 0; F < a; F++) p[F] = u[_ + F] ^ c[k * a + F]; - ly(p, 0, u, _, i), b(); + uy(p, 0, u, _, i), b(); } } - return ao || Vo(u), OK(t, o, f, c, p); + return oo || jo(u), kK(t, o, f, c, p); } - var jp = { + var Vp = { N: 32768, p: 1, r: 8 }; - function vg(t, e = wl(), r = jp, n) { + function vg(t, e = wl(), r = Vp, n) { const i = Xe(t); return { params: r, - password: !hn || !n && tn() ? hq(i, e, Math.log2(r.N), r.r, r.p) : PK(i, e, st({ dkLen: 64 }, r)), + password: !hn || !n && tn() ? pq(i, e, Math.log2(r.N), r.r, r.p) : RK(i, e, st({ dkLen: 64 }, r)), salt: e }; } function BO(t) { - const e = t.subarray(0, 32), r = Zn(t.subarray(32 + 0, 32 + 4), Ru).toNumber(), n = Zn(t.subarray(32 + 4, 32 + 8), Ru).toNumber(), i = Zn(t.subarray(32 + 8, 32 + 12), Ru).toNumber(); - if (r !== jp.N || n !== jp.p || i !== jp.r) + const e = t.subarray(0, 32), r = Yn(t.subarray(32 + 0, 32 + 4), ku).toNumber(), n = Yn(t.subarray(32 + 4, 32 + 8), ku).toNumber(), i = Yn(t.subarray(32 + 8, 32 + 12), ku).toNumber(); + if (r !== Vp.N || n !== Vp.p || i !== Vp.r) throw new Error("Invalid injected scrypt params found"); return { params: { N: r, p: n, r: i }, salt: e }; } - function J4(t, { N: e, p: r, r: n }) { - return $t(t, Hr(e, Up), Hr(r, Up), Hr(n, Up)); + function Z4(t, { N: e, p: r, r: n }) { + return Qt(t, Fr(e, jp), Fr(r, jp), Fr(n, jp)); } var UO = ["scrypt", "xsalsa20-poly1305"]; - var kK = ["none"]; - var RK = "3"; - var m6 = 24; - var CK = 32 + 3 * 4; - function Q4(t, e, r = UO) { + var CK = ["none"]; + var DK = "3"; + var p6 = 24; + var LK = 32 + 3 * 4; + function J4(t, e, r = UO) { if (t) { if (r.includes("xsalsa20-poly1305") && !e) throw new Error("Password required to decode encrypted data"); @@ -12492,50 +12492,50 @@ ${gz(e, r)}`); let i; if (r.includes("scrypt")) { const { params: s, salt: o } = BO(t); - i = vg(e, o, s).password, t = t.subarray(CK); + i = vg(e, o, s).password, t = t.subarray(LK); } else - i = Dr(e); - n = LO(t.subarray(m6), t.subarray(0, m6), TN(i, 256, true)); + i = Cr(e); + n = LO(t.subarray(p6), t.subarray(0, p6), TN(i, 256, true)); } if (!n) throw new Error("Unable to decode using the supplied passphrase"); return n; } - function DK({ encoded: t, encoding: e }, r) { + function BK({ encoded: t, encoding: e }, r) { if (!t) throw new Error("No encrypted data available to decode"); - return Q4(Ft(t) ? On(t) : gg(t), r, Array.isArray(e.type) ? e.type : [e.type]); + return J4(Ft(t) ? On(t) : gg(t), r, Array.isArray(e.type) ? e.type : [e.type]); } - function $4(t, e, r) { + function Q4(t, e, r) { return { - encoded: q4(t), + encoded: H4(t), encoding: { content: e, - type: r ? UO : kK, - version: RK + type: r ? UO : CK, + version: DK } }; } - function LK(t, e, r) { + function UK(t, e, r) { let n = false, i = t; if (r) { - const { params: s, password: o, salt: a } = vg(r), { encrypted: c, nonce: u } = Z4(i, o.subarray(0, 32)); - n = true, i = $t(J4(a, s), u, c); + const { params: s, password: o, salt: a } = vg(r), { encrypted: c, nonce: u } = Y4(i, o.subarray(0, 32)); + n = true, i = Qt(Z4(a, s), u, c); } - return $4(i, e, n); + return Q4(i, e, n); } - var g6 = (t) => (e, r, n) => gO(e, r, n, t); + var m6 = (t) => (e, r, n) => gO(e, r, n, t); var jO = [ - ["ecdsa", g6("blake2")], - ["ethereum", g6("keccak")] + ["ecdsa", m6("blake2")], + ["ethereum", m6("keccak")] ]; - var BK = [ - ["ed25519", D4], - ["sr25519", U4], + var jK = [ + ["ed25519", C4], + ["sr25519", B4], ...jO ]; - var UK = ["ed25519", "sr25519", "ecdsa"]; - function VO(t, { message: e, publicKey: r, signature: n }, i = BK) { + var VK = ["ed25519", "sr25519", "ecdsa"]; + function VO(t, { message: e, publicKey: r, signature: n }, i = jK) { return t.isValid = i.some(([s, o]) => { try { if (o(e, n, r)) @@ -12545,74 +12545,74 @@ ${gz(e, r)}`); return false; }), t; } - function jK(t, { message: e, publicKey: r, signature: n }) { + function zK(t, { message: e, publicKey: r, signature: n }) { if (![0, 1, 2].includes(n[0])) throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${n[0]}`); - const i = UK[n[0]] || "none"; + const i = VK[n[0]] || "none"; t.crypto = i; try { t.isValid = { ecdsa: () => VO(t, { message: e, publicKey: r, signature: n.subarray(1) }, jO).isValid, - ed25519: () => D4(e, n.subarray(1), r), + ed25519: () => C4(e, n.subarray(1), r), none: () => { throw Error("no verify for `none` crypto type"); }, - sr25519: () => U4(e, n.subarray(1), r) + sr25519: () => B4(e, n.subarray(1), r) }[i](); } catch { } return t; } - function VK(t) { - return [0, 1, 2].includes(t[0]) && [65, 66].includes(t.length) ? jK : VO; + function FK(t) { + return [0, 1, 2].includes(t[0]) && [65, 66].includes(t.length) ? zK : VO; } - function K3(t, e, r) { + function G3(t, e, r) { const n = Xe(e); if (![64, 65, 66].includes(n.length)) throw new Error(`Invalid signature length, expected [64..66] bytes, found ${n.length}`); - const i = Mr(r), s = { message: Xe(t), publicKey: i, signature: n }, o = { crypto: "none", isValid: false, isWrapped: ld(s.message, true), publicKey: i }, a = ld(s.message, false), c = VK(n); + const i = Mr(r), s = { message: Xe(t), publicKey: i, signature: n }, o = { crypto: "none", isValid: false, isWrapped: ud(s.message, true), publicKey: i }, a = ud(s.message, false), c = FK(n); return c(o, s), o.crypto !== "none" || o.isWrapped && !a ? o : (s.message = a ? PN(s.message) : kN(s.message), c(o, s)); } - var bi = vt("11400714785074694791"); - var jo = vt("14029467366897019727"); - var y6 = vt("1609587929392839161"); - var dh = vt("9650029242287828579"); - var b6 = vt("2870177450012600261"); - var Ia = vt("0xffffffffffffffff"); - var zK = vt(7); - var FK = vt(11); - var HK = vt(12); - var qK = vt(16); - var WK = vt(18); - var GK = vt(23); - var KK = vt(27); - var XK = vt(29); - var Kl = vt(31); - var YK = vt(32); - var ZK = vt(33); - var JK = vt(64); - var w6 = vt(256); + var bi = bt("11400714785074694791"); + var Uo = bt("14029467366897019727"); + var g6 = bt("1609587929392839161"); + var hh = bt("9650029242287828579"); + var y6 = bt("2870177450012600261"); + var Ta = bt("0xffffffffffffffff"); + var HK = bt(7); + var qK = bt(11); + var WK = bt(12); + var GK = bt(16); + var KK = bt(18); + var XK = bt(23); + var YK = bt(27); + var ZK = bt(29); + var Kl = bt(31); + var JK = bt(32); + var QK = bt(33); + var $K = bt(64); + var b6 = bt(256); function rs(t, e) { - const r = t & Ia; - return (r << e | r >> JK - e) & Ia; + const r = t & Ta; + return (r << e | r >> $K - e) & Ta; } - function X3(t, e, r) { + function K3(t, e, r) { const n = new Array(r); let i = 0; for (let o = 0; o < r; o++, i += 2) - n[o] = vt(t[e + i] | t[e + 1 + i] << 8); + n[o] = bt(t[e + i] | t[e + 1 + i] << 8); let s = Yu; for (let o = r - 1; o >= 0; o--) - s = (s << qK) + n[o]; + s = (s << GK) + n[o]; return s; } - function QK(t, e) { + function eX(t, e) { const r = { seed: t, u8a: new Uint8Array(32), u8asize: 0, - v1: t + bi + jo, - v2: t + jo, + v1: t + bi + Uo, + v2: t + Uo, v3: t, v4: t - bi }; @@ -12621,156 +12621,156 @@ ${gz(e, r)}`); const n = e.length - 32; let i = 0; if (n >= 0) { - const s = (o) => bi * rs(o + jo * X3(e, i, 4), Kl); + const s = (o) => bi * rs(o + Uo * K3(e, i, 4), Kl); do r.v1 = s(r.v1), i += 8, r.v2 = s(r.v2), i += 8, r.v3 = s(r.v3), i += 8, r.v4 = s(r.v4), i += 8; while (i <= n); } return i < e.length && (r.u8a.set(e.subarray(i, e.length)), r.u8asize = e.length - i), r; } - function $K(t, e) { - const { seed: r, u8a: n, u8asize: i, v1: s, v2: o, v3: a, v4: c } = QK(vt(e), t); - let u = 0, f = Ia & vt(t.length) + (t.length >= 32 ? ((((rs(s, Yc) + rs(o, zK) + rs(a, HK) + rs(c, WK) ^ bi * rs(s * jo, Kl)) * bi + dh ^ bi * rs(o * jo, Kl)) * bi + dh ^ bi * rs(a * jo, Kl)) * bi + dh ^ bi * rs(c * jo, Kl)) * bi + dh : r + b6); + function tX(t, e) { + const { seed: r, u8a: n, u8asize: i, v1: s, v2: o, v3: a, v4: c } = eX(bt(e), t); + let u = 0, f = Ta & bt(t.length) + (t.length >= 32 ? ((((rs(s, Kc) + rs(o, HK) + rs(a, WK) + rs(c, KK) ^ bi * rs(s * Uo, Kl)) * bi + hh ^ bi * rs(o * Uo, Kl)) * bi + hh ^ bi * rs(a * Uo, Kl)) * bi + hh ^ bi * rs(c * Uo, Kl)) * bi + hh : r + y6); for (; u <= i - 8; ) - f = Ia & dh + bi * rs(f ^ bi * rs(jo * X3(n, u, 4), Kl), KK), u += 8; - for (u + 4 <= i && (f = Ia & y6 + jo * rs(f ^ bi * X3(n, u, 2), GK), u += 4); u < i; ) - f = Ia & bi * rs(f ^ b6 * vt(n[u++]), FK); - f = Ia & jo * (f ^ f >> ZK), f = Ia & y6 * (f ^ f >> XK), f = Ia & (f ^ f >> YK); + f = Ta & hh + bi * rs(f ^ bi * rs(Uo * K3(n, u, 4), Kl), YK), u += 8; + for (u + 4 <= i && (f = Ta & g6 + Uo * rs(f ^ bi * K3(n, u, 2), XK), u += 4); u < i; ) + f = Ta & bi * rs(f ^ y6 * bt(n[u++]), qK); + f = Ta & Uo * (f ^ f >> QK), f = Ta & g6 * (f ^ f >> ZK), f = Ta & (f ^ f >> JK); const p = new Uint8Array(8); for (let b = 7; b >= 0; b--) - p[b] = Number(f % w6), f = f / w6; + p[b] = Number(f % b6), f = f / b6; return p; } - function Wc(t, e = 64, r) { + function Hc(t, e = 64, r) { const n = Math.ceil(e / 64), i = Xe(t); if (!hn || !r && tn()) - return mq(i, n); + return yq(i, n); const s = new Uint8Array(n * 8); for (let o = 0; o < n; o++) - s.set($K(i, o).reverse(), o * 8); + s.set(tX(i, o).reverse(), o * 8); return s; } - var eX = /* @__PURE__ */ lg(Wc); - var tX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var rX = /* @__PURE__ */ lg(Hc); + var nX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - addressEq: NG, - addressToEvm: sW, + addressEq: OG, + addressToEvm: aW, allNetworks: OI, - availableNetworks: N4, - base32Decode: XG, - base32Encode: YG, - base32Validate: z4, - base58Decode: S4, + availableNetworks: T4, + base32Decode: ZG, + base32Encode: JG, + base32Validate: V4, + base58Decode: E4, base58Encode: yI, - base58Validate: E4, + base58Validate: _4, base64Decode: gg, - base64Encode: q4, - base64Pad: JG, - base64Trim: QG, - base64Validate: H4, - blake2AsHex: Bp, + base64Encode: H4, + base64Pad: $G, + base64Trim: eK, + base64Validate: F4, + blake2AsHex: Up, blake2AsU8a: kn, - checkAddress: oW, - checkAddressChecksum: T4, + checkAddress: cW, + checkAddressChecksum: A4, createKeyDerived: sO, createKeyMulti: aO, - cryptoIsReady: yq, + cryptoIsReady: wq, cryptoWaitReady: hI, decodeAddress: Mr, - deriveAddress: EG, + deriveAddress: MG, ed25519DeriveHard: GI, - ed25519PairFromRandom: mG, - ed25519PairFromSecret: gG, + ed25519PairFromRandom: yG, + ed25519PairFromSecret: bG, ed25519PairFromSeed: vl, - ed25519PairFromString: yG, + ed25519PairFromString: wG, ed25519Sign: XI, - ed25519Verify: D4, - encodeAddress: la, - encodeDerivedAddress: MG, - encodeMultiAddress: TG, + ed25519Verify: C4, + encodeAddress: ca, + encodeDerivedAddress: TG, + encodeMultiAddress: IG, ethereumEncode: bg, - evmToAddress: FG, + evmToAddress: qG, hdEthereum: _O, - hdLedger: bK, - hdValidatePath: G4, - hmacSha256AsU8a: sK, - hmacSha512AsU8a: oK, - hmacShaAsU8a: $c, - isAddress: HG, - isBase32: KG, - isBase58: _q, - isBase64: ZG, + hdLedger: vK, + hdValidatePath: W4, + hmacSha256AsU8a: aK, + hmacSha512AsU8a: cK, + hmacShaAsU8a: Jc, + isAddress: WG, + isBase32: YG, + isBase58: Sq, + isBase64: QG, isEthereumAddress: bO, isEthereumChecksum: yO, - jsonDecrypt: DK, - jsonDecryptData: Q4, - jsonEncrypt: LK, - jsonEncryptFormat: $4, - keccak256AsU8a: jG, - keccak512AsU8a: VG, - keccakAsHex: zG, - keccakAsU8a: sc, + jsonDecrypt: BK, + jsonDecryptData: J4, + jsonEncrypt: UK, + jsonEncryptFormat: Q4, + keccak256AsU8a: zG, + keccak512AsU8a: FG, + keccakAsHex: HG, + keccakAsU8a: nc, keyExtractPath: hg, keyExtractSuri: RI, - keyFromPath: L4, - keyHdkdEcdsa: B3, + keyFromPath: D4, + keyHdkdEcdsa: L3, keyHdkdEd25519: YI, keyHdkdSr25519: eO, - mnemonicGenerate: mK, + mnemonicGenerate: yK, mnemonicToEntropy: OO, mnemonicToLegacySeed: PO, mnemonicToMiniSecret: kO, mnemonicValidate: wg, naclDecrypt: LO, - naclEncrypt: Z4, + naclEncrypt: Y4, packageInfo: sI, - pbkdf2Encode: X4, + pbkdf2Encode: K4, randomAsHex: KI, - randomAsNumber: $W, + randomAsNumber: tG, randomAsU8a: wl, scryptEncode: vg, scryptFromU8a: BO, - scryptToU8a: J4, - secp256k1Compress: W4, + scryptToU8a: Z4, + secp256k1Compress: q4, secp256k1Expand: yg, secp256k1PairFromSeed: el, secp256k1PrivateKeyTweakAdd: mO, secp256k1Recover: dO, - secp256k1Sign: j3, + secp256k1Sign: U3, secp256k1Verify: gO, selectableNetworks: PI, - setSS58Format: GG, + setSS58Format: XG, sha256AsU8a: EO, - sha512AsU8a: lK, - shaAsU8a: Y4, - signatureVerify: K3, - sortAddresses: qG, - sr25519Agreement: xG, + sha512AsU8a: hK, + shaAsU8a: X4, + signatureVerify: G3, + sortAddresses: GG, + sr25519Agreement: EG, sr25519DeriveHard: QI, sr25519DerivePublic: tO, sr25519DeriveSoft: $I, - sr25519PairFromSeed: B4, + sr25519PairFromSeed: L4, sr25519Sign: rO, - sr25519Verify: U4, + sr25519Verify: B4, sr25519VrfSign: nO, sr25519VrfVerify: iO, validateAddress: hO, - xxhashAsHex: eX, - xxhashAsU8a: Wc + xxhashAsHex: rX, + xxhashAsU8a: Hc }, Symbol.toStringTag, { value: "Module" })); - var Ko = /* @__PURE__ */ ((t) => (t[t.NATIVE = 0] = "NATIVE", t[t.EVM = 1] = "EVM", t))(Ko || {}); - var ji = /* @__PURE__ */ ((t) => (t.CONNECTING = "connecting", t.NO_ACCOUNT_SELECTED = "no-account-selected", t.SELECTED_NO_VM_CONNECTION = "selected-no-vm-connection", t.OK = "OK", t))(ji || {}); - var Xo = "reef"; - var $h = "reef-snap"; + var Go = /* @__PURE__ */ ((t) => (t[t.NATIVE = 0] = "NATIVE", t[t.EVM = 1] = "EVM", t))(Go || {}); + var Ui = /* @__PURE__ */ ((t) => (t.CONNECTING = "connecting", t.NO_ACCOUNT_SELECTED = "no-account-selected", t.SELECTED_NO_VM_CONNECTION = "selected-no-vm-connection", t.OK = "OK", t))(Ui || {}); + var Ko = "reef"; + var Qh = "reef-snap"; var zO = "reef-easy-wallet"; var FO = "reef-wallet-connect"; - var rX = [ - Xo, - $h, + var iX = [ + Ko, + Qh, zO, FO ]; - var Y3 = "reef-injected"; + var X3 = "reef-injected"; function HO(t, { name: e, version: r }) { const n = window; n && (n.injectedWeb3 = n.injectedWeb3 || {}, n.injectedWeb3[e] = { @@ -12778,7 +12778,7 @@ ${gz(e, r)}`); version: r }); } - function e8(t) { + function $4(t) { const e = window; return !!(e != null && e.injectedWeb3) && !!(e != null && e.injectedWeb3[t]); } @@ -12786,15 +12786,15 @@ ${gz(e, r)}`); const e = window; return !!e._reefInjectionStart && !!e._reefInjectionStart[t]; } - function nX(t) { + function sX(t) { window._reefInjectionStart || (window._reefInjectionStart = {}), window._reefInjectionStart[t] = true; } - function iX(t) { + function oX(t) { return new Promise((e) => { document.readyState === "complete" ? e(t()) : window.addEventListener("load", () => e(t())); }); } - var c0 = "npm:@reef-chain/reef-snap"; + var u0 = "npm:@reef-chain/reef-snap"; var WO = async (t) => await (t ?? window.ethereum).request({ method: "wallet_getSnaps" }); @@ -12802,62 +12802,62 @@ ${gz(e, r)}`); await window.ethereum.request({ method: "wallet_requestSnaps", params: { - [c0]: {} + [u0]: {} } }); }; - var Z3 = async () => { + var Y3 = async () => { try { const t = await WO(); - return Object.values(t).find((e) => e.id === c0); + return Object.values(t).find((e) => e.id === u0); } catch (t) { console.log("Failed to obtain installed snap", t); return; } }; - var sX = async (t, e) => await window.ethereum.request({ + var aX = async (t, e) => await window.ethereum.request({ method: "wallet_invokeSnap", params: { - snapId: c0, + snapId: u0, request: { method: t, params: e || {} } } }); - var fy; - var oX = class { + var ly; + var cX = class { constructor(e) { - fy = e; + ly = e; } get() { - return fy("listAccounts"); + return ly("listAccounts"); } subscribe(e) { let r = false; - return fy("listAccounts").then((n) => { + return ly("listAccounts").then((n) => { r || e(n); }).catch((n) => console.error(n)), () => { r = true; }; } }; - var hy; - var aX = class { + var fy; + var uX = class { constructor(e) { - hy = e; + fy = e; } get() { - return hy("listMetadata"); + return fy("listMetadata"); } provide(e) { - return hy("provideMetadata", e); + return fy("provideMetadata", e); } }; - var v6; - var t8 = class { + var w6; + var e8 = class { constructor(e) { - this._isConnected = false, this._isClonable = false, v6 = e; + this._isConnected = false, this._isClonable = false, w6 = e; } get hasSubscriptions() { return false; @@ -12871,7 +12871,7 @@ ${gz(e, r)}`); clone() { if (!this.isClonable) throw new Error("Unclonable provider"); - return new t8(v6); + return new e8(w6); } async connect() { console.error("PostMessageProvider.disconnect() is not implemented."); @@ -12901,13 +12901,13 @@ ${gz(e, r)}`); }; var xl = {}; var xg = {}; - var cX = "logger/5.7.0"; + var lX = "logger/5.7.0"; + var v6 = false; var x6 = false; - var _6 = false; - var Vp = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; - var E6 = Vp.default; - var dy = null; - function uX() { + var zp = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; + var _6 = zp.default; + var hy = null; + function fX() { try { const t = []; if (["NFD", "NFC", "NFKD", "NFKC"].forEach((e) => { @@ -12926,16 +12926,16 @@ ${gz(e, r)}`); } return null; } - var S6 = uX(); - var D1; + var E6 = fX(); + var L1; (function(t) { t.DEBUG = "DEBUG", t.INFO = "INFO", t.WARNING = "WARNING", t.ERROR = "ERROR", t.OFF = "OFF"; - })(D1 || (D1 = {})); + })(L1 || (L1 = {})); var ks; (function(t) { t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", t.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", t.NETWORK_ERROR = "NETWORK_ERROR", t.SERVER_ERROR = "SERVER_ERROR", t.TIMEOUT = "TIMEOUT", t.BUFFER_OVERRUN = "BUFFER_OVERRUN", t.NUMERIC_FAULT = "NUMERIC_FAULT", t.MISSING_NEW = "MISSING_NEW", t.INVALID_ARGUMENT = "INVALID_ARGUMENT", t.MISSING_ARGUMENT = "MISSING_ARGUMENT", t.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", t.CALL_EXCEPTION = "CALL_EXCEPTION", t.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", t.NONCE_EXPIRED = "NONCE_EXPIRED", t.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", t.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", t.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", t.ACTION_REJECTED = "ACTION_REJECTED"; })(ks || (ks = {})); - var M6 = "0123456789abcdef"; + var S6 = "0123456789abcdef"; var ot = class mn { constructor(e) { Object.defineProperty(this, "version", { @@ -12946,7 +12946,7 @@ ${gz(e, r)}`); } _log(e, r) { const n = e.toLowerCase(); - Vp[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(E6 > Vp[n]) && console.log.apply(console, r); + zp[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(_6 > zp[n]) && console.log.apply(console, r); } debug(...e) { this._log(mn.levels.DEBUG, e); @@ -12958,7 +12958,7 @@ ${gz(e, r)}`); this._log(mn.levels.WARNING, e); } makeError(e, r, n) { - if (_6) + if (x6) return this.makeError("censored error", r, {}); r || (r = mn.errors.UNKNOWN_ERROR), n || (n = {}); const i = []; @@ -12968,7 +12968,7 @@ ${gz(e, r)}`); if (u instanceof Uint8Array) { let f = ""; for (let p = 0; p < u.length; p++) - f += M6[u[p] >> 4], f += M6[u[p] & 15]; + f += S6[u[p] >> 4], f += S6[u[p] & 15]; i.push(c + "=Uint8Array(0x" + f + ")"); } else i.push(c + "=" + JSON.stringify(u)); @@ -13030,9 +13030,9 @@ ${gz(e, r)}`); e || this.throwArgumentError(r, n, i); } checkNormalize(e) { - S6 && this.throwError("platform missing String.prototype.normalize", mn.errors.UNSUPPORTED_OPERATION, { + E6 && this.throwError("platform missing String.prototype.normalize", mn.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", - form: S6 + form: E6 }); } checkSafeUint53(e, r) { @@ -13062,46 +13062,46 @@ ${gz(e, r)}`); e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", mn.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", mn.errors.MISSING_NEW, { name: r.name }); } static globalLogger() { - return dy || (dy = new mn(cX)), dy; + return hy || (hy = new mn(lX)), hy; } static setCensorship(e, r) { if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", mn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" - }), x6) { + }), v6) { if (!e) return; this.globalLogger().throwError("error censorship permanent", mn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } - _6 = !!e, x6 = !!r; + x6 = !!e, v6 = !!r; } static setLogLevel(e) { - const r = Vp[e.toLowerCase()]; + const r = zp[e.toLowerCase()]; if (r == null) { mn.globalLogger().warn("invalid log level - " + e); return; } - E6 = r; + _6 = r; } static from(e) { return new mn(e); } }; ot.errors = ks; - ot.levels = D1; - var lX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + ot.levels = L1; + var hX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, get ErrorCode() { return ks; }, get LogLevel() { - return D1; + return L1; }, Logger: ot }, Symbol.toStringTag, { value: "Module" })); - var fX = "properties/5.7.0"; - var hX = globalThis && globalThis.__awaiter || function(t, e, r, n) { + var dX = "properties/5.7.0"; + var pX = globalThis && globalThis.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -13128,7 +13128,7 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var L1 = new ot(fX); + var B1 = new ot(dX); function pt(t, e, r) { Object.defineProperty(t, e, { enumerable: true, @@ -13136,7 +13136,7 @@ ${gz(e, r)}`); writable: false }); } - function Yo(t, e) { + function Xo(t, e) { for (let r = 0; r < 32; r++) { if (t[e]) return t[e]; @@ -13146,8 +13146,8 @@ ${gz(e, r)}`); } return null; } - function Fa(t) { - return hX(this, void 0, void 0, function* () { + function Va(t) { + return pX(this, void 0, void 0, function* () { const e = Object.keys(t).map((n) => { const i = t[n]; return Promise.resolve(i).then((s) => ({ key: n, value: s })); @@ -13155,9 +13155,9 @@ ${gz(e, r)}`); return (yield Promise.all(e)).reduce((n, i) => (n[i.key] = i.value, n), {}); }); } - function dX(t, e) { - (!t || typeof t != "object") && L1.throwArgumentError("invalid object", "object", t), Object.keys(t).forEach((r) => { - e[r] || L1.throwArgumentError("invalid object key - " + r, "transaction:" + r, t); + function mX(t, e) { + (!t || typeof t != "object") && B1.throwArgumentError("invalid object", "object", t), Object.keys(t).forEach((r) => { + e[r] || B1.throwArgumentError("invalid object key - " + r, "transaction:" + r, t); }); } function tl(t) { @@ -13166,9 +13166,9 @@ ${gz(e, r)}`); e[r] = t[r]; return e; } - var pX = { bigint: true, boolean: true, function: true, number: true, string: true }; + var gX = { bigint: true, boolean: true, function: true, number: true, string: true }; function KO(t) { - if (t == null || pX[typeof t]) + if (t == null || gX[typeof t]) return true; if (Array.isArray(t) || typeof t == "object") { if (!Object.isFrozen(t)) @@ -13186,9 +13186,9 @@ ${gz(e, r)}`); } return true; } - return L1.throwArgumentError(`Cannot deepCopy ${typeof t}`, "object", t); + return B1.throwArgumentError(`Cannot deepCopy ${typeof t}`, "object", t); } - function mX(t) { + function yX(t) { if (KO(t)) return t; if (Array.isArray(t)) @@ -13201,29 +13201,29 @@ ${gz(e, r)}`); } return e; } - return L1.throwArgumentError(`Cannot deepCopy ${typeof t}`, "object", t); + return B1.throwArgumentError(`Cannot deepCopy ${typeof t}`, "object", t); } function kf(t) { - return mX(t); + return yX(t); } - var oc = class { + var ic = class { constructor(e) { for (const r in e) this[r] = kf(e[r]); } }; - var gX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var bX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - Description: oc, - checkProperties: dX, + Description: ic, + checkProperties: mX, deepCopy: kf, defineReadOnly: pt, - getStatic: Yo, - resolveProperties: Fa, + getStatic: Xo, + resolveProperties: Va, shallowCopy: tl }, Symbol.toStringTag, { value: "Module" })); - var yX = "abstract-signer/5.7.0"; - var qs = globalThis && globalThis.__awaiter || function(t, e, r, n) { + var wX = "abstract-signer/5.7.0"; + var Hs = globalThis && globalThis.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -13250,8 +13250,8 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var Ss = new ot(yX); - var bX = [ + var Ss = new ot(wX); + var vX = [ "accessList", "ccipReadEnabled", "chainId", @@ -13267,69 +13267,69 @@ ${gz(e, r)}`); "type", "value" ]; - var wX = [ + var xX = [ ot.errors.INSUFFICIENT_FUNDS, ot.errors.NONCE_EXPIRED, ot.errors.REPLACEMENT_UNDERPRICED ]; - var r8 = class XO { + var t8 = class XO { constructor() { Ss.checkAbstract(new.target, XO), pt(this, "_isSigner", true); } getBalance(e) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("getBalance"), yield this.provider.getBalance(this.getAddress(), e); }); } getTransactionCount(e) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("getTransactionCount"), yield this.provider.getTransactionCount(this.getAddress(), e); }); } estimateGas(e) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { this._checkProvider("estimateGas"); - const r = yield Fa(this.checkTransaction(e)); + const r = yield Va(this.checkTransaction(e)); return yield this.provider.estimateGas(r); }); } call(e, r) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { this._checkProvider("call"); - const n = yield Fa(this.checkTransaction(e)); + const n = yield Va(this.checkTransaction(e)); return yield this.provider.call(n, r); }); } sendTransaction(e) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { this._checkProvider("sendTransaction"); const r = yield this.populateTransaction(e), n = yield this.signTransaction(r); return yield this.provider.sendTransaction(n); }); } getChainId() { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("getChainId"), (yield this.provider.getNetwork()).chainId; }); } getGasPrice() { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("getGasPrice"), yield this.provider.getGasPrice(); }); } getFeeData() { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("getFeeData"), yield this.provider.getFeeData(); }); } resolveName(e) { - return qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { return this._checkProvider("resolveName"), yield this.provider.resolveName(e); }); } checkTransaction(e) { for (const n in e) - bX.indexOf(n) === -1 && Ss.throwArgumentError("invalid transaction key: " + n, "transaction", e); + vX.indexOf(n) === -1 && Ss.throwArgumentError("invalid transaction key: " + n, "transaction", e); const r = tl(e); return r.from == null ? r.from = this.getAddress() : r.from = Promise.all([ Promise.resolve(r.from), @@ -13337,9 +13337,9 @@ ${gz(e, r)}`); ]).then((n) => (n[0].toLowerCase() !== n[1].toLowerCase() && Ss.throwArgumentError("from address mismatch", "transaction", e), n[0])), r; } populateTransaction(e) { - return qs(this, void 0, void 0, function* () { - const r = yield Fa(this.checkTransaction(e)); - r.to != null && (r.to = Promise.resolve(r.to).then((i) => qs(this, void 0, void 0, function* () { + return Hs(this, void 0, void 0, function* () { + const r = yield Va(this.checkTransaction(e)); + r.to != null && (r.to = Promise.resolve(r.to).then((i) => Hs(this, void 0, void 0, function* () { if (i == null) return null; const s = yield this.resolveName(i); @@ -13370,7 +13370,7 @@ ${gz(e, r)}`); r.type === 2 && (r.maxFeePerGas == null && (r.maxFeePerGas = i.maxFeePerGas), r.maxPriorityFeePerGas == null && (r.maxPriorityFeePerGas = i.maxPriorityFeePerGas)); } return r.nonce == null && (r.nonce = this.getTransactionCount("pending")), r.gasLimit == null && (r.gasLimit = this.estimateGas(r).catch((i) => { - if (wX.indexOf(i.code) >= 0) + if (xX.indexOf(i.code) >= 0) throw i; return Ss.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", ot.errors.UNPREDICTABLE_GAS_LIMIT, { error: i, @@ -13379,7 +13379,7 @@ ${gz(e, r)}`); })), r.chainId == null ? r.chainId = this.getChainId() : r.chainId = Promise.all([ Promise.resolve(r.chainId), this.getChainId() - ]).then((i) => (i[1] !== 0 && i[0] !== i[1] && Ss.throwArgumentError("chainId address mismatch", "transaction", e), i[0])), yield Fa(r); + ]).then((i) => (i[1] !== 0 && i[0] !== i[1] && Ss.throwArgumentError("chainId address mismatch", "transaction", e), i[0])), yield Va(r); }); } _checkProvider(e) { @@ -13391,7 +13391,7 @@ ${gz(e, r)}`); return !!(e && e._isSigner); } }; - var _g = class extends r8 { + var _g = class extends t8 { constructor(e, r) { super(), pt(this, "address", e), pt(this, "provider", r || null); } @@ -13416,14 +13416,14 @@ ${gz(e, r)}`); return new _g(this.address, e); } }; - var vX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var _X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - Signer: r8, + Signer: t8, VoidSigner: _g }, Symbol.toStringTag, { value: "Module" })); - var xX = /* @__PURE__ */ fn(vX); - var _X = "bytes/5.7.0"; - var Yr = new ot(_X); + var EX = /* @__PURE__ */ fn(_X); + var SX = "bytes/5.7.0"; + var Xr = new ot(SX); function YO(t) { return !!t.toHexString; } @@ -13433,10 +13433,10 @@ ${gz(e, r)}`); return gf(new Uint8Array(Array.prototype.slice.apply(t, e))); }), t; } - function n8(t) { + function r8(t) { return Rr(t) && !(t.length % 2) || _l(t); } - function A6(t) { + function M6(t) { return typeof t == "number" && t == t && t % 1 === 0; } function _l(t) { @@ -13444,18 +13444,18 @@ ${gz(e, r)}`); return false; if (t.constructor === Uint8Array) return true; - if (typeof t == "string" || !A6(t.length) || t.length < 0) + if (typeof t == "string" || !M6(t.length) || t.length < 0) return false; for (let e = 0; e < t.length; e++) { const r = t[e]; - if (!A6(r) || r < 0 || r >= 256) + if (!M6(r) || r < 0 || r >= 256) return false; } return true; } function er(t, e) { if (e || (e = {}), typeof t == "number") { - Yr.checkSafeUint53(t, "invalid arrayify value"); + Xr.checkSafeUint53(t, "invalid arrayify value"); const r = []; for (; t; ) r.unshift(t & 255), t = parseInt(String(t / 256)); @@ -13463,13 +13463,13 @@ ${gz(e, r)}`); } if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), YO(t) && (t = t.toHexString()), Rr(t)) { let r = t.substring(2); - r.length % 2 && (e.hexPad === "left" ? r = "0" + r : e.hexPad === "right" ? r += "0" : Yr.throwArgumentError("hex data is odd-length", "value", t)); + r.length % 2 && (e.hexPad === "left" ? r = "0" + r : e.hexPad === "right" ? r += "0" : Xr.throwArgumentError("hex data is odd-length", "value", t)); const n = []; for (let i = 0; i < r.length; i += 2) n.push(parseInt(r.substring(i, i + 2), 16)); return gf(new Uint8Array(n)); } - return _l(t) ? gf(new Uint8Array(t)) : Yr.throwArgumentError("invalid arrayify value", "value", t); + return _l(t) ? gf(new Uint8Array(t)) : Xr.throwArgumentError("invalid arrayify value", "value", t); } function li(t) { const e = t.map((i) => er(i)), r = e.reduce((i, s) => i + s.length, 0), n = new Uint8Array(r); @@ -13485,20 +13485,20 @@ ${gz(e, r)}`); return r && (e = e.slice(r)), e; } function JO(t, e) { - t = er(t), t.length > e && Yr.throwArgumentError("value out of range", "value", arguments[0]); + t = er(t), t.length > e && Xr.throwArgumentError("value out of range", "value", arguments[0]); const r = new Uint8Array(e); return r.set(t, e - t.length), gf(r); } function Rr(t, e) { return !(typeof t != "string" || !t.match(/^0x[0-9A-Fa-f]*$/) || e && t.length !== 2 + 2 * e); } - var py = "0123456789abcdef"; + var dy = "0123456789abcdef"; function It(t, e) { if (e || (e = {}), typeof t == "number") { - Yr.checkSafeUint53(t, "invalid hexlify value"); + Xr.checkSafeUint53(t, "invalid hexlify value"); let r = ""; for (; t; ) - r = py[t & 15] + r, t = Math.floor(t / 16); + r = dy[t & 15] + r, t = Math.floor(t / 16); return r.length ? (r.length % 2 && (r = "0" + r), "0x" + r) : "0x00"; } if (typeof t == "bigint") @@ -13506,46 +13506,46 @@ ${gz(e, r)}`); if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), YO(t)) return t.toHexString(); if (Rr(t)) - return t.length % 2 && (e.hexPad === "left" ? t = "0x0" + t.substring(2) : e.hexPad === "right" ? t += "0" : Yr.throwArgumentError("hex data is odd-length", "value", t)), t.toLowerCase(); + return t.length % 2 && (e.hexPad === "left" ? t = "0x0" + t.substring(2) : e.hexPad === "right" ? t += "0" : Xr.throwArgumentError("hex data is odd-length", "value", t)), t.toLowerCase(); if (_l(t)) { let r = "0x"; for (let n = 0; n < t.length; n++) { let i = t[n]; - r += py[(i & 240) >> 4] + py[i & 15]; + r += dy[(i & 240) >> 4] + dy[i & 15]; } return r; } - return Yr.throwArgumentError("invalid hexlify value", "value", t); + return Xr.throwArgumentError("invalid hexlify value", "value", t); } - function B1(t) { + function U1(t) { if (typeof t != "string") t = It(t); else if (!Rr(t) || t.length % 2) return null; return (t.length - 2) / 2; } - function u0(t, e, r) { - return typeof t != "string" ? t = It(t) : (!Rr(t) || t.length % 2) && Yr.throwArgumentError("invalid hexData", "value", t), e = 2 + 2 * e, r != null ? "0x" + t.substring(e, 2 + 2 * r) : "0x" + t.substring(e); + function l0(t, e, r) { + return typeof t != "string" ? t = It(t) : (!Rr(t) || t.length % 2) && Xr.throwArgumentError("invalid hexData", "value", t), e = 2 + 2 * e, r != null ? "0x" + t.substring(e, 2 + 2 * r) : "0x" + t.substring(e); } - function i8(t) { + function n8(t) { let e = "0x"; return t.forEach((r) => { e += It(r).substring(2); }), e; } - function EX(t) { + function MX(t) { const e = QO(It(t, { hexPad: "left" })); return e === "0x" ? "0x0" : e; } function QO(t) { - typeof t != "string" && (t = It(t)), Rr(t) || Yr.throwArgumentError("invalid hex string", "value", t), t = t.substring(2); + typeof t != "string" && (t = It(t)), Rr(t) || Xr.throwArgumentError("invalid hex string", "value", t), t = t.substring(2); let e = 0; for (; e < t.length && t[e] === "0"; ) e++; return "0x" + t.substring(e); } - function Qo(t, e) { - for (typeof t != "string" ? t = It(t) : Rr(t) || Yr.throwArgumentError("invalid hex string", "value", t), t.length > 2 * e + 2 && Yr.throwArgumentError("value out of range", "value", arguments[1]); t.length < 2 * e + 2; ) + function Jo(t, e) { + for (typeof t != "string" ? t = It(t) : Rr(t) || Xr.throwArgumentError("invalid hex string", "value", t), t.length > 2 * e + 2 && Xr.throwArgumentError("value out of range", "value", arguments[1]); t.length < 2 * e + 2; ) t = "0x0" + t.substring(2); return t; } @@ -13559,62 +13559,62 @@ ${gz(e, r)}`); yParityAndS: "0x", compact: "0x" }; - if (n8(t)) { + if (r8(t)) { let r = er(t); - r.length === 64 ? (e.v = 27 + (r[32] >> 7), r[32] &= 127, e.r = It(r.slice(0, 32)), e.s = It(r.slice(32, 64))) : r.length === 65 ? (e.r = It(r.slice(0, 32)), e.s = It(r.slice(32, 64)), e.v = r[64]) : Yr.throwArgumentError("invalid signature string", "signature", t), e.v < 27 && (e.v === 0 || e.v === 1 ? e.v += 27 : Yr.throwArgumentError("signature invalid v byte", "signature", t)), e.recoveryParam = 1 - e.v % 2, e.recoveryParam && (r[32] |= 128), e._vs = It(r.slice(32, 64)); + r.length === 64 ? (e.v = 27 + (r[32] >> 7), r[32] &= 127, e.r = It(r.slice(0, 32)), e.s = It(r.slice(32, 64))) : r.length === 65 ? (e.r = It(r.slice(0, 32)), e.s = It(r.slice(32, 64)), e.v = r[64]) : Xr.throwArgumentError("invalid signature string", "signature", t), e.v < 27 && (e.v === 0 || e.v === 1 ? e.v += 27 : Xr.throwArgumentError("signature invalid v byte", "signature", t)), e.recoveryParam = 1 - e.v % 2, e.recoveryParam && (r[32] |= 128), e._vs = It(r.slice(32, 64)); } else { if (e.r = t.r, e.s = t.s, e.v = t.v, e.recoveryParam = t.recoveryParam, e._vs = t._vs, e._vs != null) { const i = JO(er(e._vs), 32); e._vs = It(i); const s = i[0] >= 128 ? 1 : 0; - e.recoveryParam == null ? e.recoveryParam = s : e.recoveryParam !== s && Yr.throwArgumentError("signature recoveryParam mismatch _vs", "signature", t), i[0] &= 127; + e.recoveryParam == null ? e.recoveryParam = s : e.recoveryParam !== s && Xr.throwArgumentError("signature recoveryParam mismatch _vs", "signature", t), i[0] &= 127; const o = It(i); - e.s == null ? e.s = o : e.s !== o && Yr.throwArgumentError("signature v mismatch _vs", "signature", t); + e.s == null ? e.s = o : e.s !== o && Xr.throwArgumentError("signature v mismatch _vs", "signature", t); } if (e.recoveryParam == null) - e.v == null ? Yr.throwArgumentError("signature missing v and recoveryParam", "signature", t) : e.v === 0 || e.v === 1 ? e.recoveryParam = e.v : e.recoveryParam = 1 - e.v % 2; + e.v == null ? Xr.throwArgumentError("signature missing v and recoveryParam", "signature", t) : e.v === 0 || e.v === 1 ? e.recoveryParam = e.v : e.recoveryParam = 1 - e.v % 2; else if (e.v == null) e.v = 27 + e.recoveryParam; else { const i = e.v === 0 || e.v === 1 ? e.v : 1 - e.v % 2; - e.recoveryParam !== i && Yr.throwArgumentError("signature recoveryParam mismatch v", "signature", t); + e.recoveryParam !== i && Xr.throwArgumentError("signature recoveryParam mismatch v", "signature", t); } - e.r == null || !Rr(e.r) ? Yr.throwArgumentError("signature missing or invalid r", "signature", t) : e.r = Qo(e.r, 32), e.s == null || !Rr(e.s) ? Yr.throwArgumentError("signature missing or invalid s", "signature", t) : e.s = Qo(e.s, 32); + e.r == null || !Rr(e.r) ? Xr.throwArgumentError("signature missing or invalid r", "signature", t) : e.r = Jo(e.r, 32), e.s == null || !Rr(e.s) ? Xr.throwArgumentError("signature missing or invalid s", "signature", t) : e.s = Jo(e.s, 32); const r = er(e.s); - r[0] >= 128 && Yr.throwArgumentError("signature s out of range", "signature", t), e.recoveryParam && (r[0] |= 128); + r[0] >= 128 && Xr.throwArgumentError("signature s out of range", "signature", t), e.recoveryParam && (r[0] |= 128); const n = It(r); - e._vs && (Rr(e._vs) || Yr.throwArgumentError("signature invalid _vs", "signature", t), e._vs = Qo(e._vs, 32)), e._vs == null ? e._vs = n : e._vs !== n && Yr.throwArgumentError("signature _vs mismatch v and s", "signature", t); + e._vs && (Rr(e._vs) || Xr.throwArgumentError("signature invalid _vs", "signature", t), e._vs = Jo(e._vs, 32)), e._vs == null ? e._vs = n : e._vs !== n && Xr.throwArgumentError("signature _vs mismatch v and s", "signature", t); } return e.yParityAndS = e._vs, e.compact = e.r + e.yParityAndS.substring(2), e; } - function SX(t) { + function AX(t) { return t = $O(t), It(li([ t.r, t.s, t.recoveryParam ? "0x1c" : "0x1b" ])); } - var MX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var TX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, arrayify: er, concat: li, - hexConcat: i8, - hexDataLength: B1, - hexDataSlice: u0, + hexConcat: n8, + hexDataLength: U1, + hexDataSlice: l0, hexStripZeros: QO, - hexValue: EX, - hexZeroPad: Qo, + hexValue: MX, + hexZeroPad: Jo, hexlify: It, isBytes: _l, - isBytesLike: n8, + isBytesLike: r8, isHexString: Rr, - joinSignature: SX, + joinSignature: AX, splitSignature: $O, stripZeros: ZO, zeroPad: JO }, Symbol.toStringTag, { value: "Module" })); - var s8 = { exports: {} }; - s8.exports; + var i8 = { exports: {} }; + i8.exports; (function(t) { (function(e, r) { function n(d, l) { @@ -14080,7 +14080,7 @@ ${gz(e, r)}`); return g !== 0 ? h.words[m] = g | 0 : h.length--, h._strip(); } var L = function(l, h, y) { - var x = l.words, v = h.words, M = y.words, w = 0, g, m, P, Q = x[0] | 0, A = Q & 8191, K = Q >>> 13, U = x[1] | 0, j = U & 8191, G = U >>> 13, R = x[2] | 0, Y = R & 8191, ee = R >>> 13, ae = x[3] | 0, ie = ae & 8191, Z = ae >>> 13, ce = x[4] | 0, oe = ce & 8191, me = ce >>> 13, pe = x[5] | 0, se = pe & 8191, le = pe >>> 13, be = x[6] | 0, ye = be & 8191, Ee = be >>> 13, Te = x[7] | 0, C = Te & 8191, O = Te >>> 13, B = x[8] | 0, $ = B & 8191, te = B >>> 13, J = x[9] | 0, ne = J & 8191, fe = J >>> 13, ge = v[0] | 0, de = ge & 8191, ve = ge >>> 13, Ae = v[1] | 0, Ne = Ae & 8191, De = Ae >>> 13, ut = v[2] | 0, Ve = ut & 8191, Ze = ut >>> 13, Ge = v[3] | 0, ke = Ge & 8191, Re = Ge >>> 13, Je = v[4] | 0, Me = Je & 8191, Pe = Je >>> 13, et = v[5] | 0, Ce = et & 8191, ze = et >>> 13, nt = v[6] | 0, qe = nt & 8191, Ke = nt >>> 13, at = v[7] | 0, We = at & 8191, $e = at >>> 13, dt = v[8] | 0, ft = dt & 8191, ht = dt >>> 13, Mt = v[9] | 0, rt = Mt & 8191, _t = Mt >>> 13; + var x = l.words, v = h.words, M = y.words, w = 0, g, m, P, Q = x[0] | 0, A = Q & 8191, K = Q >>> 13, U = x[1] | 0, j = U & 8191, G = U >>> 13, R = x[2] | 0, Y = R & 8191, ee = R >>> 13, ae = x[3] | 0, ie = ae & 8191, Z = ae >>> 13, ce = x[4] | 0, oe = ce & 8191, me = ce >>> 13, pe = x[5] | 0, se = pe & 8191, le = pe >>> 13, be = x[6] | 0, ye = be & 8191, Ee = be >>> 13, Te = x[7] | 0, C = Te & 8191, O = Te >>> 13, B = x[8] | 0, $ = B & 8191, te = B >>> 13, J = x[9] | 0, ne = J & 8191, fe = J >>> 13, ge = v[0] | 0, de = ge & 8191, ve = ge >>> 13, Ae = v[1] | 0, Ne = Ae & 8191, De = Ae >>> 13, ut = v[2] | 0, Ve = ut & 8191, Ze = ut >>> 13, Ge = v[3] | 0, ke = Ge & 8191, Re = Ge >>> 13, Je = v[4] | 0, Me = Je & 8191, Oe = Je >>> 13, et = v[5] | 0, Ce = et & 8191, ze = et >>> 13, nt = v[6] | 0, qe = nt & 8191, Ke = nt >>> 13, at = v[7] | 0, We = at & 8191, Qe = at >>> 13, dt = v[8] | 0, ft = dt & 8191, ht = dt >>> 13, Mt = v[9] | 0, rt = Mt & 8191, _t = Mt >>> 13; y.negative = l.negative ^ h.negative, y.length = 19, g = Math.imul(A, de), m = Math.imul(A, ve), m = m + Math.imul(K, de) | 0, P = Math.imul(K, ve); var gr = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (gr >>> 26) | 0, gr &= 67108863, g = Math.imul(j, de), m = Math.imul(j, ve), m = m + Math.imul(G, de) | 0, P = Math.imul(G, ve), g = g + Math.imul(A, Ne) | 0, m = m + Math.imul(A, De) | 0, m = m + Math.imul(K, Ne) | 0, P = P + Math.imul(K, De) | 0; @@ -14089,37 +14089,37 @@ ${gz(e, r)}`); var br = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (br >>> 26) | 0, br &= 67108863, g = Math.imul(ie, de), m = Math.imul(ie, ve), m = m + Math.imul(Z, de) | 0, P = Math.imul(Z, ve), g = g + Math.imul(Y, Ne) | 0, m = m + Math.imul(Y, De) | 0, m = m + Math.imul(ee, Ne) | 0, P = P + Math.imul(ee, De) | 0, g = g + Math.imul(j, Ve) | 0, m = m + Math.imul(j, Ze) | 0, m = m + Math.imul(G, Ve) | 0, P = P + Math.imul(G, Ze) | 0, g = g + Math.imul(A, ke) | 0, m = m + Math.imul(A, Re) | 0, m = m + Math.imul(K, ke) | 0, P = P + Math.imul(K, Re) | 0; var wr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, g = Math.imul(oe, de), m = Math.imul(oe, ve), m = m + Math.imul(me, de) | 0, P = Math.imul(me, ve), g = g + Math.imul(ie, Ne) | 0, m = m + Math.imul(ie, De) | 0, m = m + Math.imul(Z, Ne) | 0, P = P + Math.imul(Z, De) | 0, g = g + Math.imul(Y, Ve) | 0, m = m + Math.imul(Y, Ze) | 0, m = m + Math.imul(ee, Ve) | 0, P = P + Math.imul(ee, Ze) | 0, g = g + Math.imul(j, ke) | 0, m = m + Math.imul(j, Re) | 0, m = m + Math.imul(G, ke) | 0, P = P + Math.imul(G, Re) | 0, g = g + Math.imul(A, Me) | 0, m = m + Math.imul(A, Pe) | 0, m = m + Math.imul(K, Me) | 0, P = P + Math.imul(K, Pe) | 0; + w = (P + (m >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, g = Math.imul(oe, de), m = Math.imul(oe, ve), m = m + Math.imul(me, de) | 0, P = Math.imul(me, ve), g = g + Math.imul(ie, Ne) | 0, m = m + Math.imul(ie, De) | 0, m = m + Math.imul(Z, Ne) | 0, P = P + Math.imul(Z, De) | 0, g = g + Math.imul(Y, Ve) | 0, m = m + Math.imul(Y, Ze) | 0, m = m + Math.imul(ee, Ve) | 0, P = P + Math.imul(ee, Ze) | 0, g = g + Math.imul(j, ke) | 0, m = m + Math.imul(j, Re) | 0, m = m + Math.imul(G, ke) | 0, P = P + Math.imul(G, Re) | 0, g = g + Math.imul(A, Me) | 0, m = m + Math.imul(A, Oe) | 0, m = m + Math.imul(K, Me) | 0, P = P + Math.imul(K, Oe) | 0; var tr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, g = Math.imul(se, de), m = Math.imul(se, ve), m = m + Math.imul(le, de) | 0, P = Math.imul(le, ve), g = g + Math.imul(oe, Ne) | 0, m = m + Math.imul(oe, De) | 0, m = m + Math.imul(me, Ne) | 0, P = P + Math.imul(me, De) | 0, g = g + Math.imul(ie, Ve) | 0, m = m + Math.imul(ie, Ze) | 0, m = m + Math.imul(Z, Ve) | 0, P = P + Math.imul(Z, Ze) | 0, g = g + Math.imul(Y, ke) | 0, m = m + Math.imul(Y, Re) | 0, m = m + Math.imul(ee, ke) | 0, P = P + Math.imul(ee, Re) | 0, g = g + Math.imul(j, Me) | 0, m = m + Math.imul(j, Pe) | 0, m = m + Math.imul(G, Me) | 0, P = P + Math.imul(G, Pe) | 0, g = g + Math.imul(A, Ce) | 0, m = m + Math.imul(A, ze) | 0, m = m + Math.imul(K, Ce) | 0, P = P + Math.imul(K, ze) | 0; + w = (P + (m >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, g = Math.imul(se, de), m = Math.imul(se, ve), m = m + Math.imul(le, de) | 0, P = Math.imul(le, ve), g = g + Math.imul(oe, Ne) | 0, m = m + Math.imul(oe, De) | 0, m = m + Math.imul(me, Ne) | 0, P = P + Math.imul(me, De) | 0, g = g + Math.imul(ie, Ve) | 0, m = m + Math.imul(ie, Ze) | 0, m = m + Math.imul(Z, Ve) | 0, P = P + Math.imul(Z, Ze) | 0, g = g + Math.imul(Y, ke) | 0, m = m + Math.imul(Y, Re) | 0, m = m + Math.imul(ee, ke) | 0, P = P + Math.imul(ee, Re) | 0, g = g + Math.imul(j, Me) | 0, m = m + Math.imul(j, Oe) | 0, m = m + Math.imul(G, Me) | 0, P = P + Math.imul(G, Oe) | 0, g = g + Math.imul(A, Ce) | 0, m = m + Math.imul(A, ze) | 0, m = m + Math.imul(K, Ce) | 0, P = P + Math.imul(K, ze) | 0; var Dn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, g = Math.imul(ye, de), m = Math.imul(ye, ve), m = m + Math.imul(Ee, de) | 0, P = Math.imul(Ee, ve), g = g + Math.imul(se, Ne) | 0, m = m + Math.imul(se, De) | 0, m = m + Math.imul(le, Ne) | 0, P = P + Math.imul(le, De) | 0, g = g + Math.imul(oe, Ve) | 0, m = m + Math.imul(oe, Ze) | 0, m = m + Math.imul(me, Ve) | 0, P = P + Math.imul(me, Ze) | 0, g = g + Math.imul(ie, ke) | 0, m = m + Math.imul(ie, Re) | 0, m = m + Math.imul(Z, ke) | 0, P = P + Math.imul(Z, Re) | 0, g = g + Math.imul(Y, Me) | 0, m = m + Math.imul(Y, Pe) | 0, m = m + Math.imul(ee, Me) | 0, P = P + Math.imul(ee, Pe) | 0, g = g + Math.imul(j, Ce) | 0, m = m + Math.imul(j, ze) | 0, m = m + Math.imul(G, Ce) | 0, P = P + Math.imul(G, ze) | 0, g = g + Math.imul(A, qe) | 0, m = m + Math.imul(A, Ke) | 0, m = m + Math.imul(K, qe) | 0, P = P + Math.imul(K, Ke) | 0; + w = (P + (m >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, g = Math.imul(ye, de), m = Math.imul(ye, ve), m = m + Math.imul(Ee, de) | 0, P = Math.imul(Ee, ve), g = g + Math.imul(se, Ne) | 0, m = m + Math.imul(se, De) | 0, m = m + Math.imul(le, Ne) | 0, P = P + Math.imul(le, De) | 0, g = g + Math.imul(oe, Ve) | 0, m = m + Math.imul(oe, Ze) | 0, m = m + Math.imul(me, Ve) | 0, P = P + Math.imul(me, Ze) | 0, g = g + Math.imul(ie, ke) | 0, m = m + Math.imul(ie, Re) | 0, m = m + Math.imul(Z, ke) | 0, P = P + Math.imul(Z, Re) | 0, g = g + Math.imul(Y, Me) | 0, m = m + Math.imul(Y, Oe) | 0, m = m + Math.imul(ee, Me) | 0, P = P + Math.imul(ee, Oe) | 0, g = g + Math.imul(j, Ce) | 0, m = m + Math.imul(j, ze) | 0, m = m + Math.imul(G, Ce) | 0, P = P + Math.imul(G, ze) | 0, g = g + Math.imul(A, qe) | 0, m = m + Math.imul(A, Ke) | 0, m = m + Math.imul(K, qe) | 0, P = P + Math.imul(K, Ke) | 0; var Ln = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, g = Math.imul(C, de), m = Math.imul(C, ve), m = m + Math.imul(O, de) | 0, P = Math.imul(O, ve), g = g + Math.imul(ye, Ne) | 0, m = m + Math.imul(ye, De) | 0, m = m + Math.imul(Ee, Ne) | 0, P = P + Math.imul(Ee, De) | 0, g = g + Math.imul(se, Ve) | 0, m = m + Math.imul(se, Ze) | 0, m = m + Math.imul(le, Ve) | 0, P = P + Math.imul(le, Ze) | 0, g = g + Math.imul(oe, ke) | 0, m = m + Math.imul(oe, Re) | 0, m = m + Math.imul(me, ke) | 0, P = P + Math.imul(me, Re) | 0, g = g + Math.imul(ie, Me) | 0, m = m + Math.imul(ie, Pe) | 0, m = m + Math.imul(Z, Me) | 0, P = P + Math.imul(Z, Pe) | 0, g = g + Math.imul(Y, Ce) | 0, m = m + Math.imul(Y, ze) | 0, m = m + Math.imul(ee, Ce) | 0, P = P + Math.imul(ee, ze) | 0, g = g + Math.imul(j, qe) | 0, m = m + Math.imul(j, Ke) | 0, m = m + Math.imul(G, qe) | 0, P = P + Math.imul(G, Ke) | 0, g = g + Math.imul(A, We) | 0, m = m + Math.imul(A, $e) | 0, m = m + Math.imul(K, We) | 0, P = P + Math.imul(K, $e) | 0; + w = (P + (m >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, g = Math.imul(C, de), m = Math.imul(C, ve), m = m + Math.imul(O, de) | 0, P = Math.imul(O, ve), g = g + Math.imul(ye, Ne) | 0, m = m + Math.imul(ye, De) | 0, m = m + Math.imul(Ee, Ne) | 0, P = P + Math.imul(Ee, De) | 0, g = g + Math.imul(se, Ve) | 0, m = m + Math.imul(se, Ze) | 0, m = m + Math.imul(le, Ve) | 0, P = P + Math.imul(le, Ze) | 0, g = g + Math.imul(oe, ke) | 0, m = m + Math.imul(oe, Re) | 0, m = m + Math.imul(me, ke) | 0, P = P + Math.imul(me, Re) | 0, g = g + Math.imul(ie, Me) | 0, m = m + Math.imul(ie, Oe) | 0, m = m + Math.imul(Z, Me) | 0, P = P + Math.imul(Z, Oe) | 0, g = g + Math.imul(Y, Ce) | 0, m = m + Math.imul(Y, ze) | 0, m = m + Math.imul(ee, Ce) | 0, P = P + Math.imul(ee, ze) | 0, g = g + Math.imul(j, qe) | 0, m = m + Math.imul(j, Ke) | 0, m = m + Math.imul(G, qe) | 0, P = P + Math.imul(G, Ke) | 0, g = g + Math.imul(A, We) | 0, m = m + Math.imul(A, Qe) | 0, m = m + Math.imul(K, We) | 0, P = P + Math.imul(K, Qe) | 0; var Bn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, g = Math.imul($, de), m = Math.imul($, ve), m = m + Math.imul(te, de) | 0, P = Math.imul(te, ve), g = g + Math.imul(C, Ne) | 0, m = m + Math.imul(C, De) | 0, m = m + Math.imul(O, Ne) | 0, P = P + Math.imul(O, De) | 0, g = g + Math.imul(ye, Ve) | 0, m = m + Math.imul(ye, Ze) | 0, m = m + Math.imul(Ee, Ve) | 0, P = P + Math.imul(Ee, Ze) | 0, g = g + Math.imul(se, ke) | 0, m = m + Math.imul(se, Re) | 0, m = m + Math.imul(le, ke) | 0, P = P + Math.imul(le, Re) | 0, g = g + Math.imul(oe, Me) | 0, m = m + Math.imul(oe, Pe) | 0, m = m + Math.imul(me, Me) | 0, P = P + Math.imul(me, Pe) | 0, g = g + Math.imul(ie, Ce) | 0, m = m + Math.imul(ie, ze) | 0, m = m + Math.imul(Z, Ce) | 0, P = P + Math.imul(Z, ze) | 0, g = g + Math.imul(Y, qe) | 0, m = m + Math.imul(Y, Ke) | 0, m = m + Math.imul(ee, qe) | 0, P = P + Math.imul(ee, Ke) | 0, g = g + Math.imul(j, We) | 0, m = m + Math.imul(j, $e) | 0, m = m + Math.imul(G, We) | 0, P = P + Math.imul(G, $e) | 0, g = g + Math.imul(A, ft) | 0, m = m + Math.imul(A, ht) | 0, m = m + Math.imul(K, ft) | 0, P = P + Math.imul(K, ht) | 0; + w = (P + (m >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, g = Math.imul($, de), m = Math.imul($, ve), m = m + Math.imul(te, de) | 0, P = Math.imul(te, ve), g = g + Math.imul(C, Ne) | 0, m = m + Math.imul(C, De) | 0, m = m + Math.imul(O, Ne) | 0, P = P + Math.imul(O, De) | 0, g = g + Math.imul(ye, Ve) | 0, m = m + Math.imul(ye, Ze) | 0, m = m + Math.imul(Ee, Ve) | 0, P = P + Math.imul(Ee, Ze) | 0, g = g + Math.imul(se, ke) | 0, m = m + Math.imul(se, Re) | 0, m = m + Math.imul(le, ke) | 0, P = P + Math.imul(le, Re) | 0, g = g + Math.imul(oe, Me) | 0, m = m + Math.imul(oe, Oe) | 0, m = m + Math.imul(me, Me) | 0, P = P + Math.imul(me, Oe) | 0, g = g + Math.imul(ie, Ce) | 0, m = m + Math.imul(ie, ze) | 0, m = m + Math.imul(Z, Ce) | 0, P = P + Math.imul(Z, ze) | 0, g = g + Math.imul(Y, qe) | 0, m = m + Math.imul(Y, Ke) | 0, m = m + Math.imul(ee, qe) | 0, P = P + Math.imul(ee, Ke) | 0, g = g + Math.imul(j, We) | 0, m = m + Math.imul(j, Qe) | 0, m = m + Math.imul(G, We) | 0, P = P + Math.imul(G, Qe) | 0, g = g + Math.imul(A, ft) | 0, m = m + Math.imul(A, ht) | 0, m = m + Math.imul(K, ft) | 0, P = P + Math.imul(K, ht) | 0; var Un = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, g = Math.imul(ne, de), m = Math.imul(ne, ve), m = m + Math.imul(fe, de) | 0, P = Math.imul(fe, ve), g = g + Math.imul($, Ne) | 0, m = m + Math.imul($, De) | 0, m = m + Math.imul(te, Ne) | 0, P = P + Math.imul(te, De) | 0, g = g + Math.imul(C, Ve) | 0, m = m + Math.imul(C, Ze) | 0, m = m + Math.imul(O, Ve) | 0, P = P + Math.imul(O, Ze) | 0, g = g + Math.imul(ye, ke) | 0, m = m + Math.imul(ye, Re) | 0, m = m + Math.imul(Ee, ke) | 0, P = P + Math.imul(Ee, Re) | 0, g = g + Math.imul(se, Me) | 0, m = m + Math.imul(se, Pe) | 0, m = m + Math.imul(le, Me) | 0, P = P + Math.imul(le, Pe) | 0, g = g + Math.imul(oe, Ce) | 0, m = m + Math.imul(oe, ze) | 0, m = m + Math.imul(me, Ce) | 0, P = P + Math.imul(me, ze) | 0, g = g + Math.imul(ie, qe) | 0, m = m + Math.imul(ie, Ke) | 0, m = m + Math.imul(Z, qe) | 0, P = P + Math.imul(Z, Ke) | 0, g = g + Math.imul(Y, We) | 0, m = m + Math.imul(Y, $e) | 0, m = m + Math.imul(ee, We) | 0, P = P + Math.imul(ee, $e) | 0, g = g + Math.imul(j, ft) | 0, m = m + Math.imul(j, ht) | 0, m = m + Math.imul(G, ft) | 0, P = P + Math.imul(G, ht) | 0, g = g + Math.imul(A, rt) | 0, m = m + Math.imul(A, _t) | 0, m = m + Math.imul(K, rt) | 0, P = P + Math.imul(K, _t) | 0; + w = (P + (m >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, g = Math.imul(ne, de), m = Math.imul(ne, ve), m = m + Math.imul(fe, de) | 0, P = Math.imul(fe, ve), g = g + Math.imul($, Ne) | 0, m = m + Math.imul($, De) | 0, m = m + Math.imul(te, Ne) | 0, P = P + Math.imul(te, De) | 0, g = g + Math.imul(C, Ve) | 0, m = m + Math.imul(C, Ze) | 0, m = m + Math.imul(O, Ve) | 0, P = P + Math.imul(O, Ze) | 0, g = g + Math.imul(ye, ke) | 0, m = m + Math.imul(ye, Re) | 0, m = m + Math.imul(Ee, ke) | 0, P = P + Math.imul(Ee, Re) | 0, g = g + Math.imul(se, Me) | 0, m = m + Math.imul(se, Oe) | 0, m = m + Math.imul(le, Me) | 0, P = P + Math.imul(le, Oe) | 0, g = g + Math.imul(oe, Ce) | 0, m = m + Math.imul(oe, ze) | 0, m = m + Math.imul(me, Ce) | 0, P = P + Math.imul(me, ze) | 0, g = g + Math.imul(ie, qe) | 0, m = m + Math.imul(ie, Ke) | 0, m = m + Math.imul(Z, qe) | 0, P = P + Math.imul(Z, Ke) | 0, g = g + Math.imul(Y, We) | 0, m = m + Math.imul(Y, Qe) | 0, m = m + Math.imul(ee, We) | 0, P = P + Math.imul(ee, Qe) | 0, g = g + Math.imul(j, ft) | 0, m = m + Math.imul(j, ht) | 0, m = m + Math.imul(G, ft) | 0, P = P + Math.imul(G, ht) | 0, g = g + Math.imul(A, rt) | 0, m = m + Math.imul(A, _t) | 0, m = m + Math.imul(K, rt) | 0, P = P + Math.imul(K, _t) | 0; var jn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, g = Math.imul(ne, Ne), m = Math.imul(ne, De), m = m + Math.imul(fe, Ne) | 0, P = Math.imul(fe, De), g = g + Math.imul($, Ve) | 0, m = m + Math.imul($, Ze) | 0, m = m + Math.imul(te, Ve) | 0, P = P + Math.imul(te, Ze) | 0, g = g + Math.imul(C, ke) | 0, m = m + Math.imul(C, Re) | 0, m = m + Math.imul(O, ke) | 0, P = P + Math.imul(O, Re) | 0, g = g + Math.imul(ye, Me) | 0, m = m + Math.imul(ye, Pe) | 0, m = m + Math.imul(Ee, Me) | 0, P = P + Math.imul(Ee, Pe) | 0, g = g + Math.imul(se, Ce) | 0, m = m + Math.imul(se, ze) | 0, m = m + Math.imul(le, Ce) | 0, P = P + Math.imul(le, ze) | 0, g = g + Math.imul(oe, qe) | 0, m = m + Math.imul(oe, Ke) | 0, m = m + Math.imul(me, qe) | 0, P = P + Math.imul(me, Ke) | 0, g = g + Math.imul(ie, We) | 0, m = m + Math.imul(ie, $e) | 0, m = m + Math.imul(Z, We) | 0, P = P + Math.imul(Z, $e) | 0, g = g + Math.imul(Y, ft) | 0, m = m + Math.imul(Y, ht) | 0, m = m + Math.imul(ee, ft) | 0, P = P + Math.imul(ee, ht) | 0, g = g + Math.imul(j, rt) | 0, m = m + Math.imul(j, _t) | 0, m = m + Math.imul(G, rt) | 0, P = P + Math.imul(G, _t) | 0; + w = (P + (m >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, g = Math.imul(ne, Ne), m = Math.imul(ne, De), m = m + Math.imul(fe, Ne) | 0, P = Math.imul(fe, De), g = g + Math.imul($, Ve) | 0, m = m + Math.imul($, Ze) | 0, m = m + Math.imul(te, Ve) | 0, P = P + Math.imul(te, Ze) | 0, g = g + Math.imul(C, ke) | 0, m = m + Math.imul(C, Re) | 0, m = m + Math.imul(O, ke) | 0, P = P + Math.imul(O, Re) | 0, g = g + Math.imul(ye, Me) | 0, m = m + Math.imul(ye, Oe) | 0, m = m + Math.imul(Ee, Me) | 0, P = P + Math.imul(Ee, Oe) | 0, g = g + Math.imul(se, Ce) | 0, m = m + Math.imul(se, ze) | 0, m = m + Math.imul(le, Ce) | 0, P = P + Math.imul(le, ze) | 0, g = g + Math.imul(oe, qe) | 0, m = m + Math.imul(oe, Ke) | 0, m = m + Math.imul(me, qe) | 0, P = P + Math.imul(me, Ke) | 0, g = g + Math.imul(ie, We) | 0, m = m + Math.imul(ie, Qe) | 0, m = m + Math.imul(Z, We) | 0, P = P + Math.imul(Z, Qe) | 0, g = g + Math.imul(Y, ft) | 0, m = m + Math.imul(Y, ht) | 0, m = m + Math.imul(ee, ft) | 0, P = P + Math.imul(ee, ht) | 0, g = g + Math.imul(j, rt) | 0, m = m + Math.imul(j, _t) | 0, m = m + Math.imul(G, rt) | 0, P = P + Math.imul(G, _t) | 0; var rn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, g = Math.imul(ne, Ve), m = Math.imul(ne, Ze), m = m + Math.imul(fe, Ve) | 0, P = Math.imul(fe, Ze), g = g + Math.imul($, ke) | 0, m = m + Math.imul($, Re) | 0, m = m + Math.imul(te, ke) | 0, P = P + Math.imul(te, Re) | 0, g = g + Math.imul(C, Me) | 0, m = m + Math.imul(C, Pe) | 0, m = m + Math.imul(O, Me) | 0, P = P + Math.imul(O, Pe) | 0, g = g + Math.imul(ye, Ce) | 0, m = m + Math.imul(ye, ze) | 0, m = m + Math.imul(Ee, Ce) | 0, P = P + Math.imul(Ee, ze) | 0, g = g + Math.imul(se, qe) | 0, m = m + Math.imul(se, Ke) | 0, m = m + Math.imul(le, qe) | 0, P = P + Math.imul(le, Ke) | 0, g = g + Math.imul(oe, We) | 0, m = m + Math.imul(oe, $e) | 0, m = m + Math.imul(me, We) | 0, P = P + Math.imul(me, $e) | 0, g = g + Math.imul(ie, ft) | 0, m = m + Math.imul(ie, ht) | 0, m = m + Math.imul(Z, ft) | 0, P = P + Math.imul(Z, ht) | 0, g = g + Math.imul(Y, rt) | 0, m = m + Math.imul(Y, _t) | 0, m = m + Math.imul(ee, rt) | 0, P = P + Math.imul(ee, _t) | 0; + w = (P + (m >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, g = Math.imul(ne, Ve), m = Math.imul(ne, Ze), m = m + Math.imul(fe, Ve) | 0, P = Math.imul(fe, Ze), g = g + Math.imul($, ke) | 0, m = m + Math.imul($, Re) | 0, m = m + Math.imul(te, ke) | 0, P = P + Math.imul(te, Re) | 0, g = g + Math.imul(C, Me) | 0, m = m + Math.imul(C, Oe) | 0, m = m + Math.imul(O, Me) | 0, P = P + Math.imul(O, Oe) | 0, g = g + Math.imul(ye, Ce) | 0, m = m + Math.imul(ye, ze) | 0, m = m + Math.imul(Ee, Ce) | 0, P = P + Math.imul(Ee, ze) | 0, g = g + Math.imul(se, qe) | 0, m = m + Math.imul(se, Ke) | 0, m = m + Math.imul(le, qe) | 0, P = P + Math.imul(le, Ke) | 0, g = g + Math.imul(oe, We) | 0, m = m + Math.imul(oe, Qe) | 0, m = m + Math.imul(me, We) | 0, P = P + Math.imul(me, Qe) | 0, g = g + Math.imul(ie, ft) | 0, m = m + Math.imul(ie, ht) | 0, m = m + Math.imul(Z, ft) | 0, P = P + Math.imul(Z, ht) | 0, g = g + Math.imul(Y, rt) | 0, m = m + Math.imul(Y, _t) | 0, m = m + Math.imul(ee, rt) | 0, P = P + Math.imul(ee, _t) | 0; var Vn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, g = Math.imul(ne, ke), m = Math.imul(ne, Re), m = m + Math.imul(fe, ke) | 0, P = Math.imul(fe, Re), g = g + Math.imul($, Me) | 0, m = m + Math.imul($, Pe) | 0, m = m + Math.imul(te, Me) | 0, P = P + Math.imul(te, Pe) | 0, g = g + Math.imul(C, Ce) | 0, m = m + Math.imul(C, ze) | 0, m = m + Math.imul(O, Ce) | 0, P = P + Math.imul(O, ze) | 0, g = g + Math.imul(ye, qe) | 0, m = m + Math.imul(ye, Ke) | 0, m = m + Math.imul(Ee, qe) | 0, P = P + Math.imul(Ee, Ke) | 0, g = g + Math.imul(se, We) | 0, m = m + Math.imul(se, $e) | 0, m = m + Math.imul(le, We) | 0, P = P + Math.imul(le, $e) | 0, g = g + Math.imul(oe, ft) | 0, m = m + Math.imul(oe, ht) | 0, m = m + Math.imul(me, ft) | 0, P = P + Math.imul(me, ht) | 0, g = g + Math.imul(ie, rt) | 0, m = m + Math.imul(ie, _t) | 0, m = m + Math.imul(Z, rt) | 0, P = P + Math.imul(Z, _t) | 0; + w = (P + (m >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, g = Math.imul(ne, ke), m = Math.imul(ne, Re), m = m + Math.imul(fe, ke) | 0, P = Math.imul(fe, Re), g = g + Math.imul($, Me) | 0, m = m + Math.imul($, Oe) | 0, m = m + Math.imul(te, Me) | 0, P = P + Math.imul(te, Oe) | 0, g = g + Math.imul(C, Ce) | 0, m = m + Math.imul(C, ze) | 0, m = m + Math.imul(O, Ce) | 0, P = P + Math.imul(O, ze) | 0, g = g + Math.imul(ye, qe) | 0, m = m + Math.imul(ye, Ke) | 0, m = m + Math.imul(Ee, qe) | 0, P = P + Math.imul(Ee, Ke) | 0, g = g + Math.imul(se, We) | 0, m = m + Math.imul(se, Qe) | 0, m = m + Math.imul(le, We) | 0, P = P + Math.imul(le, Qe) | 0, g = g + Math.imul(oe, ft) | 0, m = m + Math.imul(oe, ht) | 0, m = m + Math.imul(me, ft) | 0, P = P + Math.imul(me, ht) | 0, g = g + Math.imul(ie, rt) | 0, m = m + Math.imul(ie, _t) | 0, m = m + Math.imul(Z, rt) | 0, P = P + Math.imul(Z, _t) | 0; var zn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, g = Math.imul(ne, Me), m = Math.imul(ne, Pe), m = m + Math.imul(fe, Me) | 0, P = Math.imul(fe, Pe), g = g + Math.imul($, Ce) | 0, m = m + Math.imul($, ze) | 0, m = m + Math.imul(te, Ce) | 0, P = P + Math.imul(te, ze) | 0, g = g + Math.imul(C, qe) | 0, m = m + Math.imul(C, Ke) | 0, m = m + Math.imul(O, qe) | 0, P = P + Math.imul(O, Ke) | 0, g = g + Math.imul(ye, We) | 0, m = m + Math.imul(ye, $e) | 0, m = m + Math.imul(Ee, We) | 0, P = P + Math.imul(Ee, $e) | 0, g = g + Math.imul(se, ft) | 0, m = m + Math.imul(se, ht) | 0, m = m + Math.imul(le, ft) | 0, P = P + Math.imul(le, ht) | 0, g = g + Math.imul(oe, rt) | 0, m = m + Math.imul(oe, _t) | 0, m = m + Math.imul(me, rt) | 0, P = P + Math.imul(me, _t) | 0; + w = (P + (m >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, g = Math.imul(ne, Me), m = Math.imul(ne, Oe), m = m + Math.imul(fe, Me) | 0, P = Math.imul(fe, Oe), g = g + Math.imul($, Ce) | 0, m = m + Math.imul($, ze) | 0, m = m + Math.imul(te, Ce) | 0, P = P + Math.imul(te, ze) | 0, g = g + Math.imul(C, qe) | 0, m = m + Math.imul(C, Ke) | 0, m = m + Math.imul(O, qe) | 0, P = P + Math.imul(O, Ke) | 0, g = g + Math.imul(ye, We) | 0, m = m + Math.imul(ye, Qe) | 0, m = m + Math.imul(Ee, We) | 0, P = P + Math.imul(Ee, Qe) | 0, g = g + Math.imul(se, ft) | 0, m = m + Math.imul(se, ht) | 0, m = m + Math.imul(le, ft) | 0, P = P + Math.imul(le, ht) | 0, g = g + Math.imul(oe, rt) | 0, m = m + Math.imul(oe, _t) | 0, m = m + Math.imul(me, rt) | 0, P = P + Math.imul(me, _t) | 0; var Tr = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, g = Math.imul(ne, Ce), m = Math.imul(ne, ze), m = m + Math.imul(fe, Ce) | 0, P = Math.imul(fe, ze), g = g + Math.imul($, qe) | 0, m = m + Math.imul($, Ke) | 0, m = m + Math.imul(te, qe) | 0, P = P + Math.imul(te, Ke) | 0, g = g + Math.imul(C, We) | 0, m = m + Math.imul(C, $e) | 0, m = m + Math.imul(O, We) | 0, P = P + Math.imul(O, $e) | 0, g = g + Math.imul(ye, ft) | 0, m = m + Math.imul(ye, ht) | 0, m = m + Math.imul(Ee, ft) | 0, P = P + Math.imul(Ee, ht) | 0, g = g + Math.imul(se, rt) | 0, m = m + Math.imul(se, _t) | 0, m = m + Math.imul(le, rt) | 0, P = P + Math.imul(le, _t) | 0; + w = (P + (m >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, g = Math.imul(ne, Ce), m = Math.imul(ne, ze), m = m + Math.imul(fe, Ce) | 0, P = Math.imul(fe, ze), g = g + Math.imul($, qe) | 0, m = m + Math.imul($, Ke) | 0, m = m + Math.imul(te, qe) | 0, P = P + Math.imul(te, Ke) | 0, g = g + Math.imul(C, We) | 0, m = m + Math.imul(C, Qe) | 0, m = m + Math.imul(O, We) | 0, P = P + Math.imul(O, Qe) | 0, g = g + Math.imul(ye, ft) | 0, m = m + Math.imul(ye, ht) | 0, m = m + Math.imul(Ee, ft) | 0, P = P + Math.imul(Ee, ht) | 0, g = g + Math.imul(se, rt) | 0, m = m + Math.imul(se, _t) | 0, m = m + Math.imul(le, rt) | 0, P = P + Math.imul(le, _t) | 0; var Fn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, g = Math.imul(ne, qe), m = Math.imul(ne, Ke), m = m + Math.imul(fe, qe) | 0, P = Math.imul(fe, Ke), g = g + Math.imul($, We) | 0, m = m + Math.imul($, $e) | 0, m = m + Math.imul(te, We) | 0, P = P + Math.imul(te, $e) | 0, g = g + Math.imul(C, ft) | 0, m = m + Math.imul(C, ht) | 0, m = m + Math.imul(O, ft) | 0, P = P + Math.imul(O, ht) | 0, g = g + Math.imul(ye, rt) | 0, m = m + Math.imul(ye, _t) | 0, m = m + Math.imul(Ee, rt) | 0, P = P + Math.imul(Ee, _t) | 0; + w = (P + (m >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, g = Math.imul(ne, qe), m = Math.imul(ne, Ke), m = m + Math.imul(fe, qe) | 0, P = Math.imul(fe, Ke), g = g + Math.imul($, We) | 0, m = m + Math.imul($, Qe) | 0, m = m + Math.imul(te, We) | 0, P = P + Math.imul(te, Qe) | 0, g = g + Math.imul(C, ft) | 0, m = m + Math.imul(C, ht) | 0, m = m + Math.imul(O, ft) | 0, P = P + Math.imul(O, ht) | 0, g = g + Math.imul(ye, rt) | 0, m = m + Math.imul(ye, _t) | 0, m = m + Math.imul(Ee, rt) | 0, P = P + Math.imul(Ee, _t) | 0; var Hn = (w + g | 0) + ((m & 8191) << 13) | 0; - w = (P + (m >>> 13) | 0) + (Hn >>> 26) | 0, Hn &= 67108863, g = Math.imul(ne, We), m = Math.imul(ne, $e), m = m + Math.imul(fe, We) | 0, P = Math.imul(fe, $e), g = g + Math.imul($, ft) | 0, m = m + Math.imul($, ht) | 0, m = m + Math.imul(te, ft) | 0, P = P + Math.imul(te, ht) | 0, g = g + Math.imul(C, rt) | 0, m = m + Math.imul(C, _t) | 0, m = m + Math.imul(O, rt) | 0, P = P + Math.imul(O, _t) | 0; + w = (P + (m >>> 13) | 0) + (Hn >>> 26) | 0, Hn &= 67108863, g = Math.imul(ne, We), m = Math.imul(ne, Qe), m = m + Math.imul(fe, We) | 0, P = Math.imul(fe, Qe), g = g + Math.imul($, ft) | 0, m = m + Math.imul($, ht) | 0, m = m + Math.imul(te, ft) | 0, P = P + Math.imul(te, ht) | 0, g = g + Math.imul(C, rt) | 0, m = m + Math.imul(C, _t) | 0, m = m + Math.imul(O, rt) | 0, P = P + Math.imul(O, _t) | 0; var qn = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (qn >>> 26) | 0, qn &= 67108863, g = Math.imul(ne, ft), m = Math.imul(ne, ht), m = m + Math.imul(fe, ft) | 0, P = Math.imul(fe, ht), g = g + Math.imul($, rt) | 0, m = m + Math.imul($, _t) | 0, m = m + Math.imul(te, rt) | 0, P = P + Math.imul(te, _t) | 0; var Ji = (w + g | 0) + ((m & 8191) << 13) | 0; w = (P + (m >>> 13) | 0) + (Ji >>> 26) | 0, Ji &= 67108863, g = Math.imul(ne, rt), m = Math.imul(ne, _t), m = m + Math.imul(fe, rt) | 0, P = Math.imul(fe, _t); - var ga = (w + g | 0) + ((m & 8191) << 13) | 0; - return w = (P + (m >>> 13) | 0) + (ga >>> 26) | 0, ga &= 67108863, M[0] = gr, M[1] = yr, M[2] = br, M[3] = wr, M[4] = tr, M[5] = Dn, M[6] = Ln, M[7] = Bn, M[8] = Un, M[9] = jn, M[10] = rn, M[11] = Vn, M[12] = zn, M[13] = Tr, M[14] = Fn, M[15] = Hn, M[16] = qn, M[17] = Ji, M[18] = ga, w !== 0 && (M[19] = w, y.length++), y; + var pa = (w + g | 0) + ((m & 8191) << 13) | 0; + return w = (P + (m >>> 13) | 0) + (pa >>> 26) | 0, pa &= 67108863, M[0] = gr, M[1] = yr, M[2] = br, M[3] = wr, M[4] = tr, M[5] = Dn, M[6] = Ln, M[7] = Bn, M[8] = Un, M[9] = jn, M[10] = rn, M[11] = Vn, M[12] = zn, M[13] = Tr, M[14] = Fn, M[15] = Hn, M[16] = qn, M[17] = Ji, M[18] = pa, w !== 0 && (M[19] = w, y.length++), y; }; Math.imul || (L = F); function D(d, l, h) { @@ -14766,73 +14766,73 @@ ${gz(e, r)}`); return h._forceRed(this); }; })(t, Lt); - })(s8); - var AX = s8.exports; - var TX = /* @__PURE__ */ nc(AX); + })(i8); + var NX = i8.exports; + var IX = /* @__PURE__ */ tc(NX); var eP = "bignumber/5.7.0"; - var md = TX.BN; - var Oa = new ot(eP); - var my = {}; - var T6 = 9007199254740991; - function NX(t) { + var pd = IX.BN; + var Na = new ot(eP); + var py = {}; + var A6 = 9007199254740991; + function OX(t) { return t != null && (zt.isBigNumber(t) || typeof t == "number" && t % 1 === 0 || typeof t == "string" && !!t.match(/^-?[0-9]+$/) || Rr(t) || typeof t == "bigint" || _l(t)); } - var N6 = false; - var zt = class Zs { + var T6 = false; + var zt = class Ys { constructor(e, r) { - e !== my && Oa.throwError("cannot call constructor directly; use BigNumber.from", ot.errors.UNSUPPORTED_OPERATION, { + e !== py && Na.throwError("cannot call constructor directly; use BigNumber.from", ot.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }), this._hex = r, this._isBigNumber = true, Object.freeze(this); } fromTwos(e) { - return Ni(Gt(this).fromTwos(e)); + return Ti(Gt(this).fromTwos(e)); } toTwos(e) { - return Ni(Gt(this).toTwos(e)); + return Ti(Gt(this).toTwos(e)); } abs() { - return this._hex[0] === "-" ? Zs.from(this._hex.substring(1)) : this; + return this._hex[0] === "-" ? Ys.from(this._hex.substring(1)) : this; } add(e) { - return Ni(Gt(this).add(Gt(e))); + return Ti(Gt(this).add(Gt(e))); } sub(e) { - return Ni(Gt(this).sub(Gt(e))); + return Ti(Gt(this).sub(Gt(e))); } div(e) { - return Zs.from(e).isZero() && ms("division-by-zero", "div"), Ni(Gt(this).div(Gt(e))); + return Ys.from(e).isZero() && ms("division-by-zero", "div"), Ti(Gt(this).div(Gt(e))); } mul(e) { - return Ni(Gt(this).mul(Gt(e))); + return Ti(Gt(this).mul(Gt(e))); } mod(e) { const r = Gt(e); - return r.isNeg() && ms("division-by-zero", "mod"), Ni(Gt(this).umod(r)); + return r.isNeg() && ms("division-by-zero", "mod"), Ti(Gt(this).umod(r)); } pow(e) { const r = Gt(e); - return r.isNeg() && ms("negative-power", "pow"), Ni(Gt(this).pow(r)); + return r.isNeg() && ms("negative-power", "pow"), Ti(Gt(this).pow(r)); } and(e) { const r = Gt(e); - return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "and"), Ni(Gt(this).and(r)); + return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "and"), Ti(Gt(this).and(r)); } or(e) { const r = Gt(e); - return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "or"), Ni(Gt(this).or(r)); + return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "or"), Ti(Gt(this).or(r)); } xor(e) { const r = Gt(e); - return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "xor"), Ni(Gt(this).xor(r)); + return (this.isNegative() || r.isNeg()) && ms("unbound-bitwise-result", "xor"), Ti(Gt(this).xor(r)); } mask(e) { - return (this.isNegative() || e < 0) && ms("negative-width", "mask"), Ni(Gt(this).maskn(e)); + return (this.isNegative() || e < 0) && ms("negative-width", "mask"), Ti(Gt(this).maskn(e)); } shl(e) { - return (this.isNegative() || e < 0) && ms("negative-width", "shl"), Ni(Gt(this).shln(e)); + return (this.isNegative() || e < 0) && ms("negative-width", "shl"), Ti(Gt(this).shln(e)); } shr(e) { - return (this.isNegative() || e < 0) && ms("negative-width", "shr"), Ni(Gt(this).shrn(e)); + return (this.isNegative() || e < 0) && ms("negative-width", "shr"), Ti(Gt(this).shrn(e)); } eq(e) { return Gt(this).eq(Gt(e)); @@ -14868,12 +14868,12 @@ ${gz(e, r)}`); return BigInt(this.toString()); } catch { } - return Oa.throwError("this platform does not support BigInt", ot.errors.UNSUPPORTED_OPERATION, { + return Na.throwError("this platform does not support BigInt", ot.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); } toString() { - return arguments.length > 0 && (arguments[0] === 10 ? N6 || (N6 = true, Oa.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Oa.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", ot.errors.UNEXPECTED_ARGUMENT, {}) : Oa.throwError("BigNumber.toString does not accept parameters", ot.errors.UNEXPECTED_ARGUMENT, {})), Gt(this).toString(10); + return arguments.length > 0 && (arguments[0] === 10 ? T6 || (T6 = true, Na.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Na.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", ot.errors.UNEXPECTED_ARGUMENT, {}) : Na.throwError("BigNumber.toString does not accept parameters", ot.errors.UNEXPECTED_ARGUMENT, {})), Gt(this).toString(10); } toHexString() { return this._hex; @@ -14882,83 +14882,83 @@ ${gz(e, r)}`); return { type: "BigNumber", hex: this.toHexString() }; } static from(e) { - if (e instanceof Zs) + if (e instanceof Ys) return e; if (typeof e == "string") - return e.match(/^-?0x[0-9a-f]+$/i) ? new Zs(my, gd(e)) : e.match(/^-?[0-9]+$/) ? new Zs(my, gd(new md(e))) : Oa.throwArgumentError("invalid BigNumber string", "value", e); + return e.match(/^-?0x[0-9a-f]+$/i) ? new Ys(py, md(e)) : e.match(/^-?[0-9]+$/) ? new Ys(py, md(new pd(e))) : Na.throwArgumentError("invalid BigNumber string", "value", e); if (typeof e == "number") - return e % 1 && ms("underflow", "BigNumber.from", e), (e >= T6 || e <= -T6) && ms("overflow", "BigNumber.from", e), Zs.from(String(e)); + return e % 1 && ms("underflow", "BigNumber.from", e), (e >= A6 || e <= -A6) && ms("overflow", "BigNumber.from", e), Ys.from(String(e)); const r = e; if (typeof r == "bigint") - return Zs.from(r.toString()); + return Ys.from(r.toString()); if (_l(r)) - return Zs.from(It(r)); + return Ys.from(It(r)); if (r) if (r.toHexString) { const n = r.toHexString(); if (typeof n == "string") - return Zs.from(n); + return Ys.from(n); } else { let n = r._hex; if (n == null && r.type === "BigNumber" && (n = r.hex), typeof n == "string" && (Rr(n) || n[0] === "-" && Rr(n.substring(1)))) - return Zs.from(n); + return Ys.from(n); } - return Oa.throwArgumentError("invalid BigNumber value", "value", e); + return Na.throwArgumentError("invalid BigNumber value", "value", e); } static isBigNumber(e) { return !!(e && e._isBigNumber); } }; - function gd(t) { + function md(t) { if (typeof t != "string") - return gd(t.toString(16)); + return md(t.toString(16)); if (t[0] === "-") - return t = t.substring(1), t[0] === "-" && Oa.throwArgumentError("invalid hex", "value", t), t = gd(t), t === "0x00" ? t : "-" + t; + return t = t.substring(1), t[0] === "-" && Na.throwArgumentError("invalid hex", "value", t), t = md(t), t === "0x00" ? t : "-" + t; if (t.substring(0, 2) !== "0x" && (t = "0x" + t), t === "0x") return "0x00"; for (t.length % 2 && (t = "0x0" + t.substring(2)); t.length > 4 && t.substring(0, 4) === "0x00"; ) t = "0x" + t.substring(4); return t; } - function Ni(t) { - return zt.from(gd(t)); + function Ti(t) { + return zt.from(md(t)); } function Gt(t) { const e = zt.from(t).toHexString(); - return e[0] === "-" ? new md("-" + e.substring(3), 16) : new md(e.substring(2), 16); + return e[0] === "-" ? new pd("-" + e.substring(3), 16) : new pd(e.substring(2), 16); } function ms(t, e, r) { const n = { fault: t, operation: e }; - return r != null && (n.value = r), Oa.throwError(t, ot.errors.NUMERIC_FAULT, n); + return r != null && (n.value = r), Na.throwError(t, ot.errors.NUMERIC_FAULT, n); } function tP(t) { - return new md(t, 36).toString(16); + return new pd(t, 36).toString(16); } function rP(t) { - return new md(t, 16).toString(36); + return new pd(t, 16).toString(36); } var vi = new ot(eP); - var ed = {}; + var $h = {}; var nP = zt.from(0); var iP = zt.from(-1); function sP(t, e, r, n) { const i = { fault: e, operation: r }; return n !== void 0 && (i.value = n), vi.throwError(t, ot.errors.NUMERIC_FAULT, i); } - var td = "0"; - for (; td.length < 256; ) - td += td; - function o8(t) { + var ed = "0"; + for (; ed.length < 256; ) + ed += ed; + function s8(t) { if (typeof t != "number") try { t = zt.from(t).toNumber(); } catch { } - return typeof t == "number" && t >= 0 && t <= 256 && !(t % 1) ? "1" + td.substring(0, t) : vi.throwArgumentError("invalid decimal size", "decimals", t); + return typeof t == "number" && t >= 0 && t <= 256 && !(t % 1) ? "1" + ed.substring(0, t) : vi.throwArgumentError("invalid decimal size", "decimals", t); } - function rd(t, e) { + function td(t, e) { e == null && (e = 0); - const r = o8(e); + const r = s8(e); t = zt.from(t); const n = t.lt(nP); n && (t = t.mul(iP)); @@ -14969,9 +14969,9 @@ ${gz(e, r)}`); const s = t.div(r).toString(); return r.length === 1 ? t = s : t = s + "." + i, n && (t = "-" + t), t; } - function ko(t, e) { + function Po(t, e) { e == null && (e = 0); - const r = o8(e); + const r = s8(e); (typeof t != "string" || !t.match(/^-?[0-9.]+$/)) && vi.throwArgumentError("invalid decimal value", "value", t); const n = t.substring(0, 1) === "-"; n && (t = t.substring(1)), t === "." && vi.throwArgumentError("missing value", "value", t); @@ -14988,9 +14988,9 @@ ${gz(e, r)}`); } var Hu = class { constructor(e, r, n, i) { - e !== ed && vi.throwError("cannot use FixedFormat constructor; use FixedFormat.from", ot.errors.UNSUPPORTED_OPERATION, { + e !== $h && vi.throwError("cannot use FixedFormat constructor; use FixedFormat.from", ot.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" - }), this.signed = r, this.width = n, this.decimals = i, this.name = (r ? "" : "u") + "fixed" + String(n) + "x" + String(i), this._multiplier = o8(i), Object.freeze(this); + }), this.signed = r, this.width = n, this.decimals = i, this.name = (r ? "" : "u") + "fixed" + String(n) + "x" + String(i), this._multiplier = s8(i), Object.freeze(this); } static from(e) { if (e instanceof Hu) @@ -15009,12 +15009,12 @@ ${gz(e, r)}`); const s = (o, a, c) => e[o] == null ? c : (typeof e[o] !== a && vi.throwArgumentError("invalid fixed format (" + o + " not " + a + ")", "format." + o, e[o]), e[o]); r = s("signed", "boolean", r), n = s("width", "number", n), i = s("decimals", "number", i); } - return n % 8 && vi.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", n), i > 80 && vi.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", i), new Hu(ed, r, n, i); + return n % 8 && vi.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", n), i > 80 && vi.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", i), new Hu($h, r, n, i); } }; var Tn = class { constructor(e, r, n, i) { - e !== ed && vi.throwError("cannot use FixedNumber constructor; use FixedNumber.from", ot.errors.UNSUPPORTED_OPERATION, { + e !== $h && vi.throwError("cannot use FixedNumber constructor; use FixedNumber.from", ot.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.format = i, this._hex = r, this._value = n, this._isFixedNumber = true, Object.freeze(this); } @@ -15023,22 +15023,22 @@ ${gz(e, r)}`); } addUnsafe(e) { this._checkFormat(e); - const r = ko(this._value, this.format.decimals), n = ko(e._value, e.format.decimals); + const r = Po(this._value, this.format.decimals), n = Po(e._value, e.format.decimals); return Tn.fromValue(r.add(n), this.format.decimals, this.format); } subUnsafe(e) { this._checkFormat(e); - const r = ko(this._value, this.format.decimals), n = ko(e._value, e.format.decimals); + const r = Po(this._value, this.format.decimals), n = Po(e._value, e.format.decimals); return Tn.fromValue(r.sub(n), this.format.decimals, this.format); } mulUnsafe(e) { this._checkFormat(e); - const r = ko(this._value, this.format.decimals), n = ko(e._value, e.format.decimals); + const r = Po(this._value, this.format.decimals), n = Po(e._value, e.format.decimals); return Tn.fromValue(r.mul(n).div(this.format._multiplier), this.format.decimals, this.format); } divUnsafe(e) { this._checkFormat(e); - const r = ko(this._value, this.format.decimals), n = ko(e._value, e.format.decimals); + const r = Po(this._value, this.format.decimals), n = Po(e._value, e.format.decimals); return Tn.fromValue(r.mul(this.format._multiplier).div(n), this.format.decimals, this.format); } floor() { @@ -15046,21 +15046,21 @@ ${gz(e, r)}`); e.length === 1 && e.push("0"); let r = Tn.from(e[0], this.format); const n = !e[1].match(/^(0*)$/); - return this.isNegative() && n && (r = r.subUnsafe(I6.toFormat(r.format))), r; + return this.isNegative() && n && (r = r.subUnsafe(N6.toFormat(r.format))), r; } ceiling() { const e = this.toString().split("."); e.length === 1 && e.push("0"); let r = Tn.from(e[0], this.format); const n = !e[1].match(/^(0*)$/); - return !this.isNegative() && n && (r = r.addUnsafe(I6.toFormat(r.format))), r; + return !this.isNegative() && n && (r = r.addUnsafe(N6.toFormat(r.format))), r; } round(e) { e == null && (e = 0); const r = this.toString().split("."); if (r.length === 1 && r.push("0"), (e < 0 || e > 80 || e % 1) && vi.throwArgumentError("invalid decimal count", "decimals", e), r[1].length <= e) return this; - const n = Tn.from("1" + td.substring(0, e), this.format), i = IX.toFormat(this.format); + const n = Tn.from("1" + ed.substring(0, e), this.format), i = PX.toFormat(this.format); return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n); } isZero() { @@ -15077,7 +15077,7 @@ ${gz(e, r)}`); return this._hex; e % 8 && vi.throwArgumentError("invalid byte width", "width", e); const r = zt.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(); - return Qo(r, e / 8); + return Jo(r, e / 8); } toUnsafeFloat() { return parseFloat(this.toString()); @@ -15086,16 +15086,16 @@ ${gz(e, r)}`); return Tn.fromString(this._value, e); } static fromValue(e, r, n) { - return n == null && r != null && !NX(r) && (n = r, r = null), r == null && (r = 0), n == null && (n = "fixed"), Tn.fromString(rd(e, r), Hu.from(n)); + return n == null && r != null && !OX(r) && (n = r, r = null), r == null && (r = 0), n == null && (n = "fixed"), Tn.fromString(td(e, r), Hu.from(n)); } static fromString(e, r) { r == null && (r = "fixed"); - const n = Hu.from(r), i = ko(e, n.decimals); + const n = Hu.from(r), i = Po(e, n.decimals); !n.signed && i.lt(nP) && sP("unsigned value cannot be negative", "overflow", "value", e); let s = null; - n.signed ? s = i.toTwos(n.width).toHexString() : (s = i.toHexString(), s = Qo(s, n.width / 8)); - const o = rd(i, n.decimals); - return new Tn(ed, s, o, n); + n.signed ? s = i.toTwos(n.width).toHexString() : (s = i.toHexString(), s = Jo(s, n.width / 8)); + const o = td(i, n.decimals); + return new Tn($h, s, o, n); } static fromBytes(e, r) { r == null && (r = "fixed"); @@ -15104,8 +15104,8 @@ ${gz(e, r)}`); throw new Error("overflow"); let i = zt.from(e); n.signed && (i = i.fromTwos(n.width)); - const s = i.toTwos((n.signed ? 0 : 1) + n.width).toHexString(), o = rd(i, n.decimals); - return new Tn(ed, s, o, n); + const s = i.toTwos((n.signed ? 0 : 1) + n.width).toHexString(), o = td(i, n.decimals); + return new Tn($h, s, o, n); } static from(e, r) { if (typeof e == "string") @@ -15124,17 +15124,17 @@ ${gz(e, r)}`); return !!(e && e._isFixedNumber); } }; - var I6 = Tn.from(1); - var IX = Tn.from("0.5"); - var OX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var N6 = Tn.from(1); + var PX = Tn.from("0.5"); + var kX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BigNumber: zt, FixedFormat: Hu, FixedNumber: Tn, _base16To36: rP, _base36To16: tP, - formatFixed: rd, - parseFixed: ko + formatFixed: td, + parseFixed: Po }, Symbol.toStringTag, { value: "Module" })); var oP = { exports: {} }; (function(t) { @@ -15382,9 +15382,9 @@ ${gz(e, r)}`); return this.encode(this.outputBits, true), m.prototype.finalize.call(this); }; var Q = function(A) { - var K, U, j, G, R, Y, ee, ae, ie, Z, ce, oe, me, pe, se, le, be, ye, Ee, Te, C, O, B, $, te, J, ne, fe, ge, de, ve, Ae, Ne, De, ut, Ve, Ze, Ge, ke, Re, Je, Me, Pe, et, Ce, ze, nt, qe, Ke, at, We, $e, dt, ft, ht, Mt, rt, _t, gr, yr, br, wr, tr; + var K, U, j, G, R, Y, ee, ae, ie, Z, ce, oe, me, pe, se, le, be, ye, Ee, Te, C, O, B, $, te, J, ne, fe, ge, de, ve, Ae, Ne, De, ut, Ve, Ze, Ge, ke, Re, Je, Me, Oe, et, Ce, ze, nt, qe, Ke, at, We, Qe, dt, ft, ht, Mt, rt, _t, gr, yr, br, wr, tr; for (j = 0; j < 48; j += 2) - G = A[0] ^ A[10] ^ A[20] ^ A[30] ^ A[40], R = A[1] ^ A[11] ^ A[21] ^ A[31] ^ A[41], Y = A[2] ^ A[12] ^ A[22] ^ A[32] ^ A[42], ee = A[3] ^ A[13] ^ A[23] ^ A[33] ^ A[43], ae = A[4] ^ A[14] ^ A[24] ^ A[34] ^ A[44], ie = A[5] ^ A[15] ^ A[25] ^ A[35] ^ A[45], Z = A[6] ^ A[16] ^ A[26] ^ A[36] ^ A[46], ce = A[7] ^ A[17] ^ A[27] ^ A[37] ^ A[47], oe = A[8] ^ A[18] ^ A[28] ^ A[38] ^ A[48], me = A[9] ^ A[19] ^ A[29] ^ A[39] ^ A[49], K = oe ^ (Y << 1 | ee >>> 31), U = me ^ (ee << 1 | Y >>> 31), A[0] ^= K, A[1] ^= U, A[10] ^= K, A[11] ^= U, A[20] ^= K, A[21] ^= U, A[30] ^= K, A[31] ^= U, A[40] ^= K, A[41] ^= U, K = G ^ (ae << 1 | ie >>> 31), U = R ^ (ie << 1 | ae >>> 31), A[2] ^= K, A[3] ^= U, A[12] ^= K, A[13] ^= U, A[22] ^= K, A[23] ^= U, A[32] ^= K, A[33] ^= U, A[42] ^= K, A[43] ^= U, K = Y ^ (Z << 1 | ce >>> 31), U = ee ^ (ce << 1 | Z >>> 31), A[4] ^= K, A[5] ^= U, A[14] ^= K, A[15] ^= U, A[24] ^= K, A[25] ^= U, A[34] ^= K, A[35] ^= U, A[44] ^= K, A[45] ^= U, K = ae ^ (oe << 1 | me >>> 31), U = ie ^ (me << 1 | oe >>> 31), A[6] ^= K, A[7] ^= U, A[16] ^= K, A[17] ^= U, A[26] ^= K, A[27] ^= U, A[36] ^= K, A[37] ^= U, A[46] ^= K, A[47] ^= U, K = Z ^ (G << 1 | R >>> 31), U = ce ^ (R << 1 | G >>> 31), A[8] ^= K, A[9] ^= U, A[18] ^= K, A[19] ^= U, A[28] ^= K, A[29] ^= U, A[38] ^= K, A[39] ^= U, A[48] ^= K, A[49] ^= U, pe = A[0], se = A[1], ze = A[11] << 4 | A[10] >>> 28, nt = A[10] << 4 | A[11] >>> 28, fe = A[20] << 3 | A[21] >>> 29, ge = A[21] << 3 | A[20] >>> 29, yr = A[31] << 9 | A[30] >>> 23, br = A[30] << 9 | A[31] >>> 23, Me = A[40] << 18 | A[41] >>> 14, Pe = A[41] << 18 | A[40] >>> 14, De = A[2] << 1 | A[3] >>> 31, ut = A[3] << 1 | A[2] >>> 31, le = A[13] << 12 | A[12] >>> 20, be = A[12] << 12 | A[13] >>> 20, qe = A[22] << 10 | A[23] >>> 22, Ke = A[23] << 10 | A[22] >>> 22, de = A[33] << 13 | A[32] >>> 19, ve = A[32] << 13 | A[33] >>> 19, wr = A[42] << 2 | A[43] >>> 30, tr = A[43] << 2 | A[42] >>> 30, ft = A[5] << 30 | A[4] >>> 2, ht = A[4] << 30 | A[5] >>> 2, Ve = A[14] << 6 | A[15] >>> 26, Ze = A[15] << 6 | A[14] >>> 26, ye = A[25] << 11 | A[24] >>> 21, Ee = A[24] << 11 | A[25] >>> 21, at = A[34] << 15 | A[35] >>> 17, We = A[35] << 15 | A[34] >>> 17, Ae = A[45] << 29 | A[44] >>> 3, Ne = A[44] << 29 | A[45] >>> 3, $ = A[6] << 28 | A[7] >>> 4, te = A[7] << 28 | A[6] >>> 4, Mt = A[17] << 23 | A[16] >>> 9, rt = A[16] << 23 | A[17] >>> 9, Ge = A[26] << 25 | A[27] >>> 7, ke = A[27] << 25 | A[26] >>> 7, Te = A[36] << 21 | A[37] >>> 11, C = A[37] << 21 | A[36] >>> 11, $e = A[47] << 24 | A[46] >>> 8, dt = A[46] << 24 | A[47] >>> 8, et = A[8] << 27 | A[9] >>> 5, Ce = A[9] << 27 | A[8] >>> 5, J = A[18] << 20 | A[19] >>> 12, ne = A[19] << 20 | A[18] >>> 12, _t = A[29] << 7 | A[28] >>> 25, gr = A[28] << 7 | A[29] >>> 25, Re = A[38] << 8 | A[39] >>> 24, Je = A[39] << 8 | A[38] >>> 24, O = A[48] << 14 | A[49] >>> 18, B = A[49] << 14 | A[48] >>> 18, A[0] = pe ^ ~le & ye, A[1] = se ^ ~be & Ee, A[10] = $ ^ ~J & fe, A[11] = te ^ ~ne & ge, A[20] = De ^ ~Ve & Ge, A[21] = ut ^ ~Ze & ke, A[30] = et ^ ~ze & qe, A[31] = Ce ^ ~nt & Ke, A[40] = ft ^ ~Mt & _t, A[41] = ht ^ ~rt & gr, A[2] = le ^ ~ye & Te, A[3] = be ^ ~Ee & C, A[12] = J ^ ~fe & de, A[13] = ne ^ ~ge & ve, A[22] = Ve ^ ~Ge & Re, A[23] = Ze ^ ~ke & Je, A[32] = ze ^ ~qe & at, A[33] = nt ^ ~Ke & We, A[42] = Mt ^ ~_t & yr, A[43] = rt ^ ~gr & br, A[4] = ye ^ ~Te & O, A[5] = Ee ^ ~C & B, A[14] = fe ^ ~de & Ae, A[15] = ge ^ ~ve & Ne, A[24] = Ge ^ ~Re & Me, A[25] = ke ^ ~Je & Pe, A[34] = qe ^ ~at & $e, A[35] = Ke ^ ~We & dt, A[44] = _t ^ ~yr & wr, A[45] = gr ^ ~br & tr, A[6] = Te ^ ~O & pe, A[7] = C ^ ~B & se, A[16] = de ^ ~Ae & $, A[17] = ve ^ ~Ne & te, A[26] = Re ^ ~Me & De, A[27] = Je ^ ~Pe & ut, A[36] = at ^ ~$e & et, A[37] = We ^ ~dt & Ce, A[46] = yr ^ ~wr & ft, A[47] = br ^ ~tr & ht, A[8] = O ^ ~pe & le, A[9] = B ^ ~se & be, A[18] = Ae ^ ~$ & J, A[19] = Ne ^ ~te & ne, A[28] = Me ^ ~De & Ve, A[29] = Pe ^ ~ut & Ze, A[38] = $e ^ ~et & ze, A[39] = dt ^ ~Ce & nt, A[48] = wr ^ ~ft & Mt, A[49] = tr ^ ~ht & rt, A[0] ^= N[j], A[1] ^= N[j + 1]; + G = A[0] ^ A[10] ^ A[20] ^ A[30] ^ A[40], R = A[1] ^ A[11] ^ A[21] ^ A[31] ^ A[41], Y = A[2] ^ A[12] ^ A[22] ^ A[32] ^ A[42], ee = A[3] ^ A[13] ^ A[23] ^ A[33] ^ A[43], ae = A[4] ^ A[14] ^ A[24] ^ A[34] ^ A[44], ie = A[5] ^ A[15] ^ A[25] ^ A[35] ^ A[45], Z = A[6] ^ A[16] ^ A[26] ^ A[36] ^ A[46], ce = A[7] ^ A[17] ^ A[27] ^ A[37] ^ A[47], oe = A[8] ^ A[18] ^ A[28] ^ A[38] ^ A[48], me = A[9] ^ A[19] ^ A[29] ^ A[39] ^ A[49], K = oe ^ (Y << 1 | ee >>> 31), U = me ^ (ee << 1 | Y >>> 31), A[0] ^= K, A[1] ^= U, A[10] ^= K, A[11] ^= U, A[20] ^= K, A[21] ^= U, A[30] ^= K, A[31] ^= U, A[40] ^= K, A[41] ^= U, K = G ^ (ae << 1 | ie >>> 31), U = R ^ (ie << 1 | ae >>> 31), A[2] ^= K, A[3] ^= U, A[12] ^= K, A[13] ^= U, A[22] ^= K, A[23] ^= U, A[32] ^= K, A[33] ^= U, A[42] ^= K, A[43] ^= U, K = Y ^ (Z << 1 | ce >>> 31), U = ee ^ (ce << 1 | Z >>> 31), A[4] ^= K, A[5] ^= U, A[14] ^= K, A[15] ^= U, A[24] ^= K, A[25] ^= U, A[34] ^= K, A[35] ^= U, A[44] ^= K, A[45] ^= U, K = ae ^ (oe << 1 | me >>> 31), U = ie ^ (me << 1 | oe >>> 31), A[6] ^= K, A[7] ^= U, A[16] ^= K, A[17] ^= U, A[26] ^= K, A[27] ^= U, A[36] ^= K, A[37] ^= U, A[46] ^= K, A[47] ^= U, K = Z ^ (G << 1 | R >>> 31), U = ce ^ (R << 1 | G >>> 31), A[8] ^= K, A[9] ^= U, A[18] ^= K, A[19] ^= U, A[28] ^= K, A[29] ^= U, A[38] ^= K, A[39] ^= U, A[48] ^= K, A[49] ^= U, pe = A[0], se = A[1], ze = A[11] << 4 | A[10] >>> 28, nt = A[10] << 4 | A[11] >>> 28, fe = A[20] << 3 | A[21] >>> 29, ge = A[21] << 3 | A[20] >>> 29, yr = A[31] << 9 | A[30] >>> 23, br = A[30] << 9 | A[31] >>> 23, Me = A[40] << 18 | A[41] >>> 14, Oe = A[41] << 18 | A[40] >>> 14, De = A[2] << 1 | A[3] >>> 31, ut = A[3] << 1 | A[2] >>> 31, le = A[13] << 12 | A[12] >>> 20, be = A[12] << 12 | A[13] >>> 20, qe = A[22] << 10 | A[23] >>> 22, Ke = A[23] << 10 | A[22] >>> 22, de = A[33] << 13 | A[32] >>> 19, ve = A[32] << 13 | A[33] >>> 19, wr = A[42] << 2 | A[43] >>> 30, tr = A[43] << 2 | A[42] >>> 30, ft = A[5] << 30 | A[4] >>> 2, ht = A[4] << 30 | A[5] >>> 2, Ve = A[14] << 6 | A[15] >>> 26, Ze = A[15] << 6 | A[14] >>> 26, ye = A[25] << 11 | A[24] >>> 21, Ee = A[24] << 11 | A[25] >>> 21, at = A[34] << 15 | A[35] >>> 17, We = A[35] << 15 | A[34] >>> 17, Ae = A[45] << 29 | A[44] >>> 3, Ne = A[44] << 29 | A[45] >>> 3, $ = A[6] << 28 | A[7] >>> 4, te = A[7] << 28 | A[6] >>> 4, Mt = A[17] << 23 | A[16] >>> 9, rt = A[16] << 23 | A[17] >>> 9, Ge = A[26] << 25 | A[27] >>> 7, ke = A[27] << 25 | A[26] >>> 7, Te = A[36] << 21 | A[37] >>> 11, C = A[37] << 21 | A[36] >>> 11, Qe = A[47] << 24 | A[46] >>> 8, dt = A[46] << 24 | A[47] >>> 8, et = A[8] << 27 | A[9] >>> 5, Ce = A[9] << 27 | A[8] >>> 5, J = A[18] << 20 | A[19] >>> 12, ne = A[19] << 20 | A[18] >>> 12, _t = A[29] << 7 | A[28] >>> 25, gr = A[28] << 7 | A[29] >>> 25, Re = A[38] << 8 | A[39] >>> 24, Je = A[39] << 8 | A[38] >>> 24, O = A[48] << 14 | A[49] >>> 18, B = A[49] << 14 | A[48] >>> 18, A[0] = pe ^ ~le & ye, A[1] = se ^ ~be & Ee, A[10] = $ ^ ~J & fe, A[11] = te ^ ~ne & ge, A[20] = De ^ ~Ve & Ge, A[21] = ut ^ ~Ze & ke, A[30] = et ^ ~ze & qe, A[31] = Ce ^ ~nt & Ke, A[40] = ft ^ ~Mt & _t, A[41] = ht ^ ~rt & gr, A[2] = le ^ ~ye & Te, A[3] = be ^ ~Ee & C, A[12] = J ^ ~fe & de, A[13] = ne ^ ~ge & ve, A[22] = Ve ^ ~Ge & Re, A[23] = Ze ^ ~ke & Je, A[32] = ze ^ ~qe & at, A[33] = nt ^ ~Ke & We, A[42] = Mt ^ ~_t & yr, A[43] = rt ^ ~gr & br, A[4] = ye ^ ~Te & O, A[5] = Ee ^ ~C & B, A[14] = fe ^ ~de & Ae, A[15] = ge ^ ~ve & Ne, A[24] = Ge ^ ~Re & Me, A[25] = ke ^ ~Je & Oe, A[34] = qe ^ ~at & Qe, A[35] = Ke ^ ~We & dt, A[44] = _t ^ ~yr & wr, A[45] = gr ^ ~br & tr, A[6] = Te ^ ~O & pe, A[7] = C ^ ~B & se, A[16] = de ^ ~Ae & $, A[17] = ve ^ ~Ne & te, A[26] = Re ^ ~Me & De, A[27] = Je ^ ~Oe & ut, A[36] = at ^ ~Qe & et, A[37] = We ^ ~dt & Ce, A[46] = yr ^ ~wr & ft, A[47] = br ^ ~tr & ht, A[8] = O ^ ~pe & le, A[9] = B ^ ~se & be, A[18] = Ae ^ ~$ & J, A[19] = Ne ^ ~te & ne, A[28] = Me ^ ~De & Ve, A[29] = Oe ^ ~ut & Ze, A[38] = Qe ^ ~et & ze, A[39] = dt ^ ~Ce & nt, A[48] = wr ^ ~ft & Mt, A[49] = tr ^ ~ht & rt, A[0] ^= N[j], A[1] ^= N[j + 1]; }; if (a) t.exports = l; @@ -15393,14 +15393,14 @@ ${gz(e, r)}`); i[h[y]] = l[h[y]]; })(); })(oP); - var PX = oP.exports; - var aP = /* @__PURE__ */ nc(PX); - function eu(t) { + var RX = oP.exports; + var aP = /* @__PURE__ */ tc(RX); + function Qc(t) { return "0x" + aP.keccak_256(er(t)); } - var kX = "rlp/5.7.0"; - var RX = new ot(kX); - function O6(t) { + var CX = "rlp/5.7.0"; + var DX = new ot(CX); + function I6(t) { const e = []; for (; t; ) e.unshift(t & 255), t >>= 8; @@ -15413,48 +15413,48 @@ ${gz(e, r)}`); n = n.concat(cP(s)); }), n.length <= 55) return n.unshift(192 + n.length), n; - const i = O6(n.length); + const i = I6(n.length); return i.unshift(247 + i.length), i.concat(n); } - n8(t) || RX.throwArgumentError("RLP object must be BytesLike", "object", t); + r8(t) || DX.throwArgumentError("RLP object must be BytesLike", "object", t); const e = Array.prototype.slice.call(er(t)); if (e.length === 1 && e[0] <= 127) return e; if (e.length <= 55) return e.unshift(128 + e.length), e; - const r = O6(e.length); + const r = I6(e.length); return r.unshift(183 + r.length), r.concat(e); } - function CX(t) { + function LX(t) { return It(cP(t)); } - var DX = "address/5.7.0"; - var Vc = new ot(DX); - function P6(t) { - Rr(t, 20) || Vc.throwArgumentError("invalid address", "address", t), t = t.toLowerCase(); + var BX = "address/5.7.0"; + var Uc = new ot(BX); + function O6(t) { + Rr(t, 20) || Uc.throwArgumentError("invalid address", "address", t), t = t.toLowerCase(); const e = t.substring(2).split(""), r = new Uint8Array(40); for (let i = 0; i < 40; i++) r[i] = e[i].charCodeAt(0); - const n = er(eu(r)); + const n = er(Qc(r)); for (let i = 0; i < 40; i += 2) n[i >> 1] >> 4 >= 8 && (e[i] = e[i].toUpperCase()), (n[i >> 1] & 15) >= 8 && (e[i + 1] = e[i + 1].toUpperCase()); return "0x" + e.join(""); } - var LX = 9007199254740991; - function BX(t) { + var UX = 9007199254740991; + function jX(t) { return Math.log10 ? Math.log10(t) : Math.log(t) / Math.LN10; } - var a8 = {}; + var o8 = {}; for (let t = 0; t < 10; t++) - a8[String(t)] = String(t); + o8[String(t)] = String(t); for (let t = 0; t < 26; t++) - a8[String.fromCharCode(65 + t)] = String(10 + t); - var k6 = Math.floor(BX(LX)); + o8[String.fromCharCode(65 + t)] = String(10 + t); + var P6 = Math.floor(jX(UX)); function uP(t) { t = t.toUpperCase(), t = t.substring(4) + t.substring(0, 2) + "00"; - let e = t.split("").map((n) => a8[n]).join(""); - for (; e.length >= k6; ) { - let n = e.substring(0, k6); + let e = t.split("").map((n) => o8[n]).join(""); + for (; e.length >= P6; ) { + let n = e.substring(0, P6); e = parseInt(n, 10) % 97 + e.substring(n.length); } let r = String(98 - parseInt(e, 10) % 97); @@ -15464,24 +15464,24 @@ ${gz(e, r)}`); } function $n(t) { let e = null; - if (typeof t != "string" && Vc.throwArgumentError("invalid address", "address", t), t.match(/^(0x)?[0-9a-fA-F]{40}$/)) - t.substring(0, 2) !== "0x" && (t = "0x" + t), e = P6(t), t.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && e !== t && Vc.throwArgumentError("bad address checksum", "address", t); + if (typeof t != "string" && Uc.throwArgumentError("invalid address", "address", t), t.match(/^(0x)?[0-9a-fA-F]{40}$/)) + t.substring(0, 2) !== "0x" && (t = "0x" + t), e = O6(t), t.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && e !== t && Uc.throwArgumentError("bad address checksum", "address", t); else if (t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { - for (t.substring(2, 4) !== uP(t) && Vc.throwArgumentError("bad icap checksum", "address", t), e = tP(t.substring(4)); e.length < 40; ) + for (t.substring(2, 4) !== uP(t) && Uc.throwArgumentError("bad icap checksum", "address", t), e = tP(t.substring(4)); e.length < 40; ) e = "0" + e; - e = P6("0x" + e); + e = O6("0x" + e); } else - Vc.throwArgumentError("invalid address", "address", t); + Uc.throwArgumentError("invalid address", "address", t); return e; } - function UX(t) { + function VX(t) { try { return $n(t), true; } catch { } return false; } - function jX(t) { + function zX(t) { let e = rP($n(t).substring(2)).toUpperCase(); for (; e.length < 30; ) e = "0" + e; @@ -15492,63 +15492,63 @@ ${gz(e, r)}`); try { e = $n(t.from); } catch { - Vc.throwArgumentError("missing from address", "transaction", t); + Uc.throwArgumentError("missing from address", "transaction", t); } const r = ZO(er(zt.from(t.nonce).toHexString())); - return $n(u0(eu(CX([e, r])), 12)); + return $n(l0(Qc(LX([e, r])), 12)); } - function VX(t, e, r) { - return B1(e) !== 32 && Vc.throwArgumentError("salt must be 32 bytes", "salt", e), B1(r) !== 32 && Vc.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", r), $n(u0(eu(li(["0xff", $n(t), e, r])), 12)); + function FX(t, e, r) { + return U1(e) !== 32 && Uc.throwArgumentError("salt must be 32 bytes", "salt", e), U1(r) !== 32 && Uc.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", r), $n(l0(Qc(li(["0xff", $n(t), e, r])), 12)); } - var zX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var HX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, getAddress: $n, getContractAddress: lP, - getCreate2Address: VX, - getIcapAddress: jX, - isAddress: UX + getCreate2Address: FX, + getIcapAddress: zX, + isAddress: VX }, Symbol.toStringTag, { value: "Module" })); - var FX = /* @__PURE__ */ fn(zX); - var c8 = /* @__PURE__ */ fn(OX); - var fP = /* @__PURE__ */ fn(MX); - var hP = /* @__PURE__ */ fn(lX); - var dP = /* @__PURE__ */ fn(gX); + var qX = /* @__PURE__ */ fn(HX); + var a8 = /* @__PURE__ */ fn(kX); + var fP = /* @__PURE__ */ fn(TX); + var hP = /* @__PURE__ */ fn(hX); + var dP = /* @__PURE__ */ fn(bX); var pP = /* @__PURE__ */ zt.from(-1); var mP = /* @__PURE__ */ zt.from(0); var gP = /* @__PURE__ */ zt.from(1); var yP = /* @__PURE__ */ zt.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); - var HX = "0x0000000000000000000000000000000000000000000000000000000000000000"; - var qX = "strings/5.7.0"; - var bP = new ot(qX); + var WX = "0x0000000000000000000000000000000000000000000000000000000000000000"; + var GX = "strings/5.7.0"; + var bP = new ot(GX); var rl; (function(t) { t.current = "", t.NFC = "NFC", t.NFD = "NFD", t.NFKC = "NFKC", t.NFKD = "NFKD"; })(rl || (rl = {})); - var Ui; + var Bi; (function(t) { t.UNEXPECTED_CONTINUE = "unexpected continuation byte", t.BAD_PREFIX = "bad codepoint prefix", t.OVERRUN = "string overrun", t.MISSING_CONTINUE = "missing continuation byte", t.OUT_OF_RANGE = "out of UTF-8 range", t.UTF16_SURROGATE = "UTF-16 surrogate", t.OVERLONG = "overlong representation"; - })(Ui || (Ui = {})); - function WX(t, e, r, n, i) { + })(Bi || (Bi = {})); + function KX(t, e, r, n, i) { return bP.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`, "bytes", r); } function wP(t, e, r, n, i) { - if (t === Ui.BAD_PREFIX || t === Ui.UNEXPECTED_CONTINUE) { + if (t === Bi.BAD_PREFIX || t === Bi.UNEXPECTED_CONTINUE) { let s = 0; for (let o = e + 1; o < r.length && r[o] >> 6 === 2; o++) s++; return s; } - return t === Ui.OVERRUN ? r.length - e - 1 : 0; + return t === Bi.OVERRUN ? r.length - e - 1 : 0; } - function GX(t, e, r, n, i) { - return t === Ui.OVERLONG ? (n.push(i), 0) : (n.push(65533), wP(t, e, r)); + function XX(t, e, r, n, i) { + return t === Bi.OVERLONG ? (n.push(i), 0) : (n.push(65533), wP(t, e, r)); } var vP = Object.freeze({ - error: WX, + error: KX, ignore: wP, - replace: GX + replace: XX }); - function u8(t, e) { + function c8(t, e) { e == null && (e = vP.error), t = er(t); const r = []; let n = 0; @@ -15566,33 +15566,33 @@ ${gz(e, r)}`); else if ((i & 248) === 240) s = 3, o = 65535; else { - (i & 192) === 128 ? n += e(Ui.UNEXPECTED_CONTINUE, n - 1, t, r) : n += e(Ui.BAD_PREFIX, n - 1, t, r); + (i & 192) === 128 ? n += e(Bi.UNEXPECTED_CONTINUE, n - 1, t, r) : n += e(Bi.BAD_PREFIX, n - 1, t, r); continue; } if (n - 1 + s >= t.length) { - n += e(Ui.OVERRUN, n - 1, t, r); + n += e(Bi.OVERRUN, n - 1, t, r); continue; } let a = i & (1 << 8 - s - 1) - 1; for (let c = 0; c < s; c++) { let u = t[n]; if ((u & 192) != 128) { - n += e(Ui.MISSING_CONTINUE, n, t, r), a = null; + n += e(Bi.MISSING_CONTINUE, n, t, r), a = null; break; } a = a << 6 | u & 63, n++; } if (a !== null) { if (a > 1114111) { - n += e(Ui.OUT_OF_RANGE, n - 1 - s, t, r, a); + n += e(Bi.OUT_OF_RANGE, n - 1 - s, t, r, a); continue; } if (a >= 55296 && a <= 57343) { - n += e(Ui.UTF16_SURROGATE, n - 1 - s, t, r, a); + n += e(Bi.UTF16_SURROGATE, n - 1 - s, t, r, a); continue; } if (a <= o) { - n += e(Ui.OVERLONG, n - 1 - s, t, r, a); + n += e(Bi.OVERLONG, n - 1 - s, t, r, a); continue; } r.push(a); @@ -15600,7 +15600,7 @@ ${gz(e, r)}`); } return r; } - function qf(t, e = rl.current) { + function Hf(t, e = rl.current) { e != rl.current && (bP.checkNormalize(), t = t.normalize(e)); let r = []; for (let n = 0; n < t.length; n++) { @@ -15621,12 +15621,12 @@ ${gz(e, r)}`); } return er(r); } - function gy(t) { + function my(t) { const e = "0000" + t.toString(16); return "\\u" + e.substring(e.length - 4); } - function KX(t, e) { - return '"' + u8(t, e).map((r) => { + function YX(t, e) { + return '"' + c8(t, e).map((r) => { if (r < 256) { switch (r) { case 8: @@ -15645,25 +15645,25 @@ ${gz(e, r)}`); if (r >= 32 && r < 127) return String.fromCharCode(r); } - return r <= 65535 ? gy(r) : (r -= 65536, gy((r >> 10 & 1023) + 55296) + gy((r & 1023) + 56320)); + return r <= 65535 ? my(r) : (r -= 65536, my((r >> 10 & 1023) + 55296) + my((r & 1023) + 56320)); }).join("") + '"'; } - function J3(t) { + function Z3(t) { return t.map((e) => e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10 & 1023) + 55296, (e & 1023) + 56320))).join(""); } function Eg(t, e) { - return J3(u8(t, e)); + return Z3(c8(t, e)); } - function Q3(t, e = rl.current) { - return u8(qf(t, e)); + function J3(t, e = rl.current) { + return c8(Hf(t, e)); } - function XX(t) { - const e = qf(t); + function ZX(t) { + const e = Hf(t); if (e.length > 31) throw new Error("bytes32 string must be less than 32 bytes"); - return It(li([e, HX]).slice(0, 32)); + return It(li([e, WX]).slice(0, 32)); } - function YX(t) { + function JX(t) { const e = er(t); if (e.length !== 32) throw new Error("invalid bytes32 - not 32 bytes long"); @@ -15674,7 +15674,7 @@ ${gz(e, r)}`); r--; return Eg(e.slice(0, r)); } - function ZX(t) { + function QX(t) { if (t.length % 4 !== 0) throw new Error("bad data"); let e = []; @@ -15682,7 +15682,7 @@ ${gz(e, r)}`); e.push(parseInt(t.substring(r, r + 4), 16)); return e; } - function l8(t, e) { + function u8(t, e) { e || (e = function(i) { return [parseInt(i, 16)]; }); @@ -15701,7 +15701,7 @@ ${gz(e, r)}`); return e = parseInt(n[1], 16), { l: i, h: e }; }); } - function f8(t, e) { + function l8(t, e) { let r = 0; for (let n = 0; n < e.length; n++) { let i = e[n]; @@ -15713,9 +15713,9 @@ ${gz(e, r)}`); } return null; } - var JX = xP("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"); - var QX = "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t) => parseInt(t, 16)); - var $X = [ + var $X = xP("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"); + var eY = "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t) => parseInt(t, 16)); + var tY = [ { h: 25, s: 32, l: 65 }, { h: 30, s: 32, e: [23], l: 127 }, { h: 54, s: 1, e: [48], l: 64, d: 2 }, @@ -15759,80 +15759,80 @@ ${gz(e, r)}`); { h: 24, s: -119717, e: [17], l: 58 }, { h: 24, s: -119775, e: [17], l: 58 } ]; - var eY = l8("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"); - var tY = l8("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"); - var rY = l8("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", ZX); - var nY = xP("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001"); - function iY(t) { + var rY = u8("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"); + var nY = u8("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"); + var iY = u8("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", QX); + var sY = xP("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001"); + function oY(t) { return t.reduce((e, r) => (r.forEach((n) => { e.push(n); }), e), []); } - function sY(t) { - return !!f8(t, JX); + function aY(t) { + return !!l8(t, $X); } - function oY(t) { - let e = f8(t, $X); + function cY(t) { + let e = l8(t, tY); if (e) return [t + e.s]; - let r = eY[t]; + let r = rY[t]; if (r) return r; - let n = tY[t]; + let n = nY[t]; if (n) return [t + n[0]]; - let i = rY[t]; + let i = iY[t]; return i || null; } - function aY(t) { - return !!f8(t, nY); + function uY(t) { + return !!l8(t, sY); } - function cY(t) { + function lY(t) { if (t.match(/^[a-z0-9-]*$/i) && t.length <= 59) return t.toLowerCase(); - let e = Q3(t); - e = iY(e.map((n) => { - if (QX.indexOf(n) >= 0) + let e = J3(t); + e = oY(e.map((n) => { + if (eY.indexOf(n) >= 0) return []; if (n >= 65024 && n <= 65039) return []; - let i = oY(n); + let i = cY(n); return i || [n]; - })), e = Q3(J3(e), rl.NFKC), e.forEach((n) => { - if (aY(n)) + })), e = J3(Z3(e), rl.NFKC), e.forEach((n) => { + if (uY(n)) throw new Error("STRINGPREP_CONTAINS_PROHIBITED"); }), e.forEach((n) => { - if (sY(n)) + if (aY(n)) throw new Error("STRINGPREP_CONTAINS_UNASSIGNED"); }); - let r = J3(e); + let r = Z3(e); if (r.substring(0, 1) === "-" || r.substring(2, 4) === "--" || r.substring(r.length - 1) === "-") throw new Error("invalid hyphen"); return r; } - var uY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var fY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, get UnicodeNormalizationForm() { return rl; }, Utf8ErrorFuncs: vP, get Utf8ErrorReason() { - return Ui; - }, - _toEscapedUtf8String: KX, - formatBytes32String: XX, - nameprep: cY, - parseBytes32String: YX, - toUtf8Bytes: qf, - toUtf8CodePoints: Q3, + return Bi; + }, + _toEscapedUtf8String: YX, + formatBytes32String: ZX, + nameprep: lY, + parseBytes32String: JX, + toUtf8Bytes: Hf, + toUtf8CodePoints: J3, toUtf8String: Eg }, Symbol.toStringTag, { value: "Module" })); - var _P = /* @__PURE__ */ fn(uY); - var Sg = /* @__PURE__ */ fn(hH); - var h8 = /* @__PURE__ */ fn(tX); - var yd = {}; - var d8 = { exports: {} }; - d8.exports; + var _P = /* @__PURE__ */ fn(fY); + var Sg = /* @__PURE__ */ fn(pH); + var f8 = /* @__PURE__ */ fn(nX); + var gd = {}; + var h8 = { exports: {} }; + h8.exports; (function(t) { (function(e, r) { function n(V, S) { @@ -16268,7 +16268,7 @@ ${gz(e, r)}`); return M !== 0 ? d.words[w] = M | 0 : d.length--, d.strip(); } var N = function(S, d, l) { - var h = S.words, y = d.words, x = l.words, v = 0, M, w, g, m = h[0] | 0, P = m & 8191, Q = m >>> 13, A = h[1] | 0, K = A & 8191, U = A >>> 13, j = h[2] | 0, G = j & 8191, R = j >>> 13, Y = h[3] | 0, ee = Y & 8191, ae = Y >>> 13, ie = h[4] | 0, Z = ie & 8191, ce = ie >>> 13, oe = h[5] | 0, me = oe & 8191, pe = oe >>> 13, se = h[6] | 0, le = se & 8191, be = se >>> 13, ye = h[7] | 0, Ee = ye & 8191, Te = ye >>> 13, C = h[8] | 0, O = C & 8191, B = C >>> 13, $ = h[9] | 0, te = $ & 8191, J = $ >>> 13, ne = y[0] | 0, fe = ne & 8191, ge = ne >>> 13, de = y[1] | 0, ve = de & 8191, Ae = de >>> 13, Ne = y[2] | 0, De = Ne & 8191, ut = Ne >>> 13, Ve = y[3] | 0, Ze = Ve & 8191, Ge = Ve >>> 13, ke = y[4] | 0, Re = ke & 8191, Je = ke >>> 13, Me = y[5] | 0, Pe = Me & 8191, et = Me >>> 13, Ce = y[6] | 0, ze = Ce & 8191, nt = Ce >>> 13, qe = y[7] | 0, Ke = qe & 8191, at = qe >>> 13, We = y[8] | 0, $e = We & 8191, dt = We >>> 13, ft = y[9] | 0, ht = ft & 8191, Mt = ft >>> 13; + var h = S.words, y = d.words, x = l.words, v = 0, M, w, g, m = h[0] | 0, P = m & 8191, Q = m >>> 13, A = h[1] | 0, K = A & 8191, U = A >>> 13, j = h[2] | 0, G = j & 8191, R = j >>> 13, Y = h[3] | 0, ee = Y & 8191, ae = Y >>> 13, ie = h[4] | 0, Z = ie & 8191, ce = ie >>> 13, oe = h[5] | 0, me = oe & 8191, pe = oe >>> 13, se = h[6] | 0, le = se & 8191, be = se >>> 13, ye = h[7] | 0, Ee = ye & 8191, Te = ye >>> 13, C = h[8] | 0, O = C & 8191, B = C >>> 13, $ = h[9] | 0, te = $ & 8191, J = $ >>> 13, ne = y[0] | 0, fe = ne & 8191, ge = ne >>> 13, de = y[1] | 0, ve = de & 8191, Ae = de >>> 13, Ne = y[2] | 0, De = Ne & 8191, ut = Ne >>> 13, Ve = y[3] | 0, Ze = Ve & 8191, Ge = Ve >>> 13, ke = y[4] | 0, Re = ke & 8191, Je = ke >>> 13, Me = y[5] | 0, Oe = Me & 8191, et = Me >>> 13, Ce = y[6] | 0, ze = Ce & 8191, nt = Ce >>> 13, qe = y[7] | 0, Ke = qe & 8191, at = qe >>> 13, We = y[8] | 0, Qe = We & 8191, dt = We >>> 13, ft = y[9] | 0, ht = ft & 8191, Mt = ft >>> 13; l.negative = S.negative ^ d.negative, l.length = 19, M = Math.imul(P, fe), w = Math.imul(P, ge), w = w + Math.imul(Q, fe) | 0, g = Math.imul(Q, ge); var rt = (v + M | 0) + ((w & 8191) << 13) | 0; v = (g + (w >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, M = Math.imul(K, fe), w = Math.imul(K, ge), w = w + Math.imul(U, fe) | 0, g = Math.imul(U, ge), M = M + Math.imul(P, ve) | 0, w = w + Math.imul(P, Ae) | 0, w = w + Math.imul(Q, ve) | 0, g = g + Math.imul(Q, Ae) | 0; @@ -16279,31 +16279,31 @@ ${gz(e, r)}`); var yr = (v + M | 0) + ((w & 8191) << 13) | 0; v = (g + (w >>> 13) | 0) + (yr >>> 26) | 0, yr &= 67108863, M = Math.imul(Z, fe), w = Math.imul(Z, ge), w = w + Math.imul(ce, fe) | 0, g = Math.imul(ce, ge), M = M + Math.imul(ee, ve) | 0, w = w + Math.imul(ee, Ae) | 0, w = w + Math.imul(ae, ve) | 0, g = g + Math.imul(ae, Ae) | 0, M = M + Math.imul(G, De) | 0, w = w + Math.imul(G, ut) | 0, w = w + Math.imul(R, De) | 0, g = g + Math.imul(R, ut) | 0, M = M + Math.imul(K, Ze) | 0, w = w + Math.imul(K, Ge) | 0, w = w + Math.imul(U, Ze) | 0, g = g + Math.imul(U, Ge) | 0, M = M + Math.imul(P, Re) | 0, w = w + Math.imul(P, Je) | 0, w = w + Math.imul(Q, Re) | 0, g = g + Math.imul(Q, Je) | 0; var br = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (br >>> 26) | 0, br &= 67108863, M = Math.imul(me, fe), w = Math.imul(me, ge), w = w + Math.imul(pe, fe) | 0, g = Math.imul(pe, ge), M = M + Math.imul(Z, ve) | 0, w = w + Math.imul(Z, Ae) | 0, w = w + Math.imul(ce, ve) | 0, g = g + Math.imul(ce, Ae) | 0, M = M + Math.imul(ee, De) | 0, w = w + Math.imul(ee, ut) | 0, w = w + Math.imul(ae, De) | 0, g = g + Math.imul(ae, ut) | 0, M = M + Math.imul(G, Ze) | 0, w = w + Math.imul(G, Ge) | 0, w = w + Math.imul(R, Ze) | 0, g = g + Math.imul(R, Ge) | 0, M = M + Math.imul(K, Re) | 0, w = w + Math.imul(K, Je) | 0, w = w + Math.imul(U, Re) | 0, g = g + Math.imul(U, Je) | 0, M = M + Math.imul(P, Pe) | 0, w = w + Math.imul(P, et) | 0, w = w + Math.imul(Q, Pe) | 0, g = g + Math.imul(Q, et) | 0; + v = (g + (w >>> 13) | 0) + (br >>> 26) | 0, br &= 67108863, M = Math.imul(me, fe), w = Math.imul(me, ge), w = w + Math.imul(pe, fe) | 0, g = Math.imul(pe, ge), M = M + Math.imul(Z, ve) | 0, w = w + Math.imul(Z, Ae) | 0, w = w + Math.imul(ce, ve) | 0, g = g + Math.imul(ce, Ae) | 0, M = M + Math.imul(ee, De) | 0, w = w + Math.imul(ee, ut) | 0, w = w + Math.imul(ae, De) | 0, g = g + Math.imul(ae, ut) | 0, M = M + Math.imul(G, Ze) | 0, w = w + Math.imul(G, Ge) | 0, w = w + Math.imul(R, Ze) | 0, g = g + Math.imul(R, Ge) | 0, M = M + Math.imul(K, Re) | 0, w = w + Math.imul(K, Je) | 0, w = w + Math.imul(U, Re) | 0, g = g + Math.imul(U, Je) | 0, M = M + Math.imul(P, Oe) | 0, w = w + Math.imul(P, et) | 0, w = w + Math.imul(Q, Oe) | 0, g = g + Math.imul(Q, et) | 0; var wr = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, M = Math.imul(le, fe), w = Math.imul(le, ge), w = w + Math.imul(be, fe) | 0, g = Math.imul(be, ge), M = M + Math.imul(me, ve) | 0, w = w + Math.imul(me, Ae) | 0, w = w + Math.imul(pe, ve) | 0, g = g + Math.imul(pe, Ae) | 0, M = M + Math.imul(Z, De) | 0, w = w + Math.imul(Z, ut) | 0, w = w + Math.imul(ce, De) | 0, g = g + Math.imul(ce, ut) | 0, M = M + Math.imul(ee, Ze) | 0, w = w + Math.imul(ee, Ge) | 0, w = w + Math.imul(ae, Ze) | 0, g = g + Math.imul(ae, Ge) | 0, M = M + Math.imul(G, Re) | 0, w = w + Math.imul(G, Je) | 0, w = w + Math.imul(R, Re) | 0, g = g + Math.imul(R, Je) | 0, M = M + Math.imul(K, Pe) | 0, w = w + Math.imul(K, et) | 0, w = w + Math.imul(U, Pe) | 0, g = g + Math.imul(U, et) | 0, M = M + Math.imul(P, ze) | 0, w = w + Math.imul(P, nt) | 0, w = w + Math.imul(Q, ze) | 0, g = g + Math.imul(Q, nt) | 0; + v = (g + (w >>> 13) | 0) + (wr >>> 26) | 0, wr &= 67108863, M = Math.imul(le, fe), w = Math.imul(le, ge), w = w + Math.imul(be, fe) | 0, g = Math.imul(be, ge), M = M + Math.imul(me, ve) | 0, w = w + Math.imul(me, Ae) | 0, w = w + Math.imul(pe, ve) | 0, g = g + Math.imul(pe, Ae) | 0, M = M + Math.imul(Z, De) | 0, w = w + Math.imul(Z, ut) | 0, w = w + Math.imul(ce, De) | 0, g = g + Math.imul(ce, ut) | 0, M = M + Math.imul(ee, Ze) | 0, w = w + Math.imul(ee, Ge) | 0, w = w + Math.imul(ae, Ze) | 0, g = g + Math.imul(ae, Ge) | 0, M = M + Math.imul(G, Re) | 0, w = w + Math.imul(G, Je) | 0, w = w + Math.imul(R, Re) | 0, g = g + Math.imul(R, Je) | 0, M = M + Math.imul(K, Oe) | 0, w = w + Math.imul(K, et) | 0, w = w + Math.imul(U, Oe) | 0, g = g + Math.imul(U, et) | 0, M = M + Math.imul(P, ze) | 0, w = w + Math.imul(P, nt) | 0, w = w + Math.imul(Q, ze) | 0, g = g + Math.imul(Q, nt) | 0; var tr = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, M = Math.imul(Ee, fe), w = Math.imul(Ee, ge), w = w + Math.imul(Te, fe) | 0, g = Math.imul(Te, ge), M = M + Math.imul(le, ve) | 0, w = w + Math.imul(le, Ae) | 0, w = w + Math.imul(be, ve) | 0, g = g + Math.imul(be, Ae) | 0, M = M + Math.imul(me, De) | 0, w = w + Math.imul(me, ut) | 0, w = w + Math.imul(pe, De) | 0, g = g + Math.imul(pe, ut) | 0, M = M + Math.imul(Z, Ze) | 0, w = w + Math.imul(Z, Ge) | 0, w = w + Math.imul(ce, Ze) | 0, g = g + Math.imul(ce, Ge) | 0, M = M + Math.imul(ee, Re) | 0, w = w + Math.imul(ee, Je) | 0, w = w + Math.imul(ae, Re) | 0, g = g + Math.imul(ae, Je) | 0, M = M + Math.imul(G, Pe) | 0, w = w + Math.imul(G, et) | 0, w = w + Math.imul(R, Pe) | 0, g = g + Math.imul(R, et) | 0, M = M + Math.imul(K, ze) | 0, w = w + Math.imul(K, nt) | 0, w = w + Math.imul(U, ze) | 0, g = g + Math.imul(U, nt) | 0, M = M + Math.imul(P, Ke) | 0, w = w + Math.imul(P, at) | 0, w = w + Math.imul(Q, Ke) | 0, g = g + Math.imul(Q, at) | 0; + v = (g + (w >>> 13) | 0) + (tr >>> 26) | 0, tr &= 67108863, M = Math.imul(Ee, fe), w = Math.imul(Ee, ge), w = w + Math.imul(Te, fe) | 0, g = Math.imul(Te, ge), M = M + Math.imul(le, ve) | 0, w = w + Math.imul(le, Ae) | 0, w = w + Math.imul(be, ve) | 0, g = g + Math.imul(be, Ae) | 0, M = M + Math.imul(me, De) | 0, w = w + Math.imul(me, ut) | 0, w = w + Math.imul(pe, De) | 0, g = g + Math.imul(pe, ut) | 0, M = M + Math.imul(Z, Ze) | 0, w = w + Math.imul(Z, Ge) | 0, w = w + Math.imul(ce, Ze) | 0, g = g + Math.imul(ce, Ge) | 0, M = M + Math.imul(ee, Re) | 0, w = w + Math.imul(ee, Je) | 0, w = w + Math.imul(ae, Re) | 0, g = g + Math.imul(ae, Je) | 0, M = M + Math.imul(G, Oe) | 0, w = w + Math.imul(G, et) | 0, w = w + Math.imul(R, Oe) | 0, g = g + Math.imul(R, et) | 0, M = M + Math.imul(K, ze) | 0, w = w + Math.imul(K, nt) | 0, w = w + Math.imul(U, ze) | 0, g = g + Math.imul(U, nt) | 0, M = M + Math.imul(P, Ke) | 0, w = w + Math.imul(P, at) | 0, w = w + Math.imul(Q, Ke) | 0, g = g + Math.imul(Q, at) | 0; var Dn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, M = Math.imul(O, fe), w = Math.imul(O, ge), w = w + Math.imul(B, fe) | 0, g = Math.imul(B, ge), M = M + Math.imul(Ee, ve) | 0, w = w + Math.imul(Ee, Ae) | 0, w = w + Math.imul(Te, ve) | 0, g = g + Math.imul(Te, Ae) | 0, M = M + Math.imul(le, De) | 0, w = w + Math.imul(le, ut) | 0, w = w + Math.imul(be, De) | 0, g = g + Math.imul(be, ut) | 0, M = M + Math.imul(me, Ze) | 0, w = w + Math.imul(me, Ge) | 0, w = w + Math.imul(pe, Ze) | 0, g = g + Math.imul(pe, Ge) | 0, M = M + Math.imul(Z, Re) | 0, w = w + Math.imul(Z, Je) | 0, w = w + Math.imul(ce, Re) | 0, g = g + Math.imul(ce, Je) | 0, M = M + Math.imul(ee, Pe) | 0, w = w + Math.imul(ee, et) | 0, w = w + Math.imul(ae, Pe) | 0, g = g + Math.imul(ae, et) | 0, M = M + Math.imul(G, ze) | 0, w = w + Math.imul(G, nt) | 0, w = w + Math.imul(R, ze) | 0, g = g + Math.imul(R, nt) | 0, M = M + Math.imul(K, Ke) | 0, w = w + Math.imul(K, at) | 0, w = w + Math.imul(U, Ke) | 0, g = g + Math.imul(U, at) | 0, M = M + Math.imul(P, $e) | 0, w = w + Math.imul(P, dt) | 0, w = w + Math.imul(Q, $e) | 0, g = g + Math.imul(Q, dt) | 0; + v = (g + (w >>> 13) | 0) + (Dn >>> 26) | 0, Dn &= 67108863, M = Math.imul(O, fe), w = Math.imul(O, ge), w = w + Math.imul(B, fe) | 0, g = Math.imul(B, ge), M = M + Math.imul(Ee, ve) | 0, w = w + Math.imul(Ee, Ae) | 0, w = w + Math.imul(Te, ve) | 0, g = g + Math.imul(Te, Ae) | 0, M = M + Math.imul(le, De) | 0, w = w + Math.imul(le, ut) | 0, w = w + Math.imul(be, De) | 0, g = g + Math.imul(be, ut) | 0, M = M + Math.imul(me, Ze) | 0, w = w + Math.imul(me, Ge) | 0, w = w + Math.imul(pe, Ze) | 0, g = g + Math.imul(pe, Ge) | 0, M = M + Math.imul(Z, Re) | 0, w = w + Math.imul(Z, Je) | 0, w = w + Math.imul(ce, Re) | 0, g = g + Math.imul(ce, Je) | 0, M = M + Math.imul(ee, Oe) | 0, w = w + Math.imul(ee, et) | 0, w = w + Math.imul(ae, Oe) | 0, g = g + Math.imul(ae, et) | 0, M = M + Math.imul(G, ze) | 0, w = w + Math.imul(G, nt) | 0, w = w + Math.imul(R, ze) | 0, g = g + Math.imul(R, nt) | 0, M = M + Math.imul(K, Ke) | 0, w = w + Math.imul(K, at) | 0, w = w + Math.imul(U, Ke) | 0, g = g + Math.imul(U, at) | 0, M = M + Math.imul(P, Qe) | 0, w = w + Math.imul(P, dt) | 0, w = w + Math.imul(Q, Qe) | 0, g = g + Math.imul(Q, dt) | 0; var Ln = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, M = Math.imul(te, fe), w = Math.imul(te, ge), w = w + Math.imul(J, fe) | 0, g = Math.imul(J, ge), M = M + Math.imul(O, ve) | 0, w = w + Math.imul(O, Ae) | 0, w = w + Math.imul(B, ve) | 0, g = g + Math.imul(B, Ae) | 0, M = M + Math.imul(Ee, De) | 0, w = w + Math.imul(Ee, ut) | 0, w = w + Math.imul(Te, De) | 0, g = g + Math.imul(Te, ut) | 0, M = M + Math.imul(le, Ze) | 0, w = w + Math.imul(le, Ge) | 0, w = w + Math.imul(be, Ze) | 0, g = g + Math.imul(be, Ge) | 0, M = M + Math.imul(me, Re) | 0, w = w + Math.imul(me, Je) | 0, w = w + Math.imul(pe, Re) | 0, g = g + Math.imul(pe, Je) | 0, M = M + Math.imul(Z, Pe) | 0, w = w + Math.imul(Z, et) | 0, w = w + Math.imul(ce, Pe) | 0, g = g + Math.imul(ce, et) | 0, M = M + Math.imul(ee, ze) | 0, w = w + Math.imul(ee, nt) | 0, w = w + Math.imul(ae, ze) | 0, g = g + Math.imul(ae, nt) | 0, M = M + Math.imul(G, Ke) | 0, w = w + Math.imul(G, at) | 0, w = w + Math.imul(R, Ke) | 0, g = g + Math.imul(R, at) | 0, M = M + Math.imul(K, $e) | 0, w = w + Math.imul(K, dt) | 0, w = w + Math.imul(U, $e) | 0, g = g + Math.imul(U, dt) | 0, M = M + Math.imul(P, ht) | 0, w = w + Math.imul(P, Mt) | 0, w = w + Math.imul(Q, ht) | 0, g = g + Math.imul(Q, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Ln >>> 26) | 0, Ln &= 67108863, M = Math.imul(te, fe), w = Math.imul(te, ge), w = w + Math.imul(J, fe) | 0, g = Math.imul(J, ge), M = M + Math.imul(O, ve) | 0, w = w + Math.imul(O, Ae) | 0, w = w + Math.imul(B, ve) | 0, g = g + Math.imul(B, Ae) | 0, M = M + Math.imul(Ee, De) | 0, w = w + Math.imul(Ee, ut) | 0, w = w + Math.imul(Te, De) | 0, g = g + Math.imul(Te, ut) | 0, M = M + Math.imul(le, Ze) | 0, w = w + Math.imul(le, Ge) | 0, w = w + Math.imul(be, Ze) | 0, g = g + Math.imul(be, Ge) | 0, M = M + Math.imul(me, Re) | 0, w = w + Math.imul(me, Je) | 0, w = w + Math.imul(pe, Re) | 0, g = g + Math.imul(pe, Je) | 0, M = M + Math.imul(Z, Oe) | 0, w = w + Math.imul(Z, et) | 0, w = w + Math.imul(ce, Oe) | 0, g = g + Math.imul(ce, et) | 0, M = M + Math.imul(ee, ze) | 0, w = w + Math.imul(ee, nt) | 0, w = w + Math.imul(ae, ze) | 0, g = g + Math.imul(ae, nt) | 0, M = M + Math.imul(G, Ke) | 0, w = w + Math.imul(G, at) | 0, w = w + Math.imul(R, Ke) | 0, g = g + Math.imul(R, at) | 0, M = M + Math.imul(K, Qe) | 0, w = w + Math.imul(K, dt) | 0, w = w + Math.imul(U, Qe) | 0, g = g + Math.imul(U, dt) | 0, M = M + Math.imul(P, ht) | 0, w = w + Math.imul(P, Mt) | 0, w = w + Math.imul(Q, ht) | 0, g = g + Math.imul(Q, Mt) | 0; var Bn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, M = Math.imul(te, ve), w = Math.imul(te, Ae), w = w + Math.imul(J, ve) | 0, g = Math.imul(J, Ae), M = M + Math.imul(O, De) | 0, w = w + Math.imul(O, ut) | 0, w = w + Math.imul(B, De) | 0, g = g + Math.imul(B, ut) | 0, M = M + Math.imul(Ee, Ze) | 0, w = w + Math.imul(Ee, Ge) | 0, w = w + Math.imul(Te, Ze) | 0, g = g + Math.imul(Te, Ge) | 0, M = M + Math.imul(le, Re) | 0, w = w + Math.imul(le, Je) | 0, w = w + Math.imul(be, Re) | 0, g = g + Math.imul(be, Je) | 0, M = M + Math.imul(me, Pe) | 0, w = w + Math.imul(me, et) | 0, w = w + Math.imul(pe, Pe) | 0, g = g + Math.imul(pe, et) | 0, M = M + Math.imul(Z, ze) | 0, w = w + Math.imul(Z, nt) | 0, w = w + Math.imul(ce, ze) | 0, g = g + Math.imul(ce, nt) | 0, M = M + Math.imul(ee, Ke) | 0, w = w + Math.imul(ee, at) | 0, w = w + Math.imul(ae, Ke) | 0, g = g + Math.imul(ae, at) | 0, M = M + Math.imul(G, $e) | 0, w = w + Math.imul(G, dt) | 0, w = w + Math.imul(R, $e) | 0, g = g + Math.imul(R, dt) | 0, M = M + Math.imul(K, ht) | 0, w = w + Math.imul(K, Mt) | 0, w = w + Math.imul(U, ht) | 0, g = g + Math.imul(U, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Bn >>> 26) | 0, Bn &= 67108863, M = Math.imul(te, ve), w = Math.imul(te, Ae), w = w + Math.imul(J, ve) | 0, g = Math.imul(J, Ae), M = M + Math.imul(O, De) | 0, w = w + Math.imul(O, ut) | 0, w = w + Math.imul(B, De) | 0, g = g + Math.imul(B, ut) | 0, M = M + Math.imul(Ee, Ze) | 0, w = w + Math.imul(Ee, Ge) | 0, w = w + Math.imul(Te, Ze) | 0, g = g + Math.imul(Te, Ge) | 0, M = M + Math.imul(le, Re) | 0, w = w + Math.imul(le, Je) | 0, w = w + Math.imul(be, Re) | 0, g = g + Math.imul(be, Je) | 0, M = M + Math.imul(me, Oe) | 0, w = w + Math.imul(me, et) | 0, w = w + Math.imul(pe, Oe) | 0, g = g + Math.imul(pe, et) | 0, M = M + Math.imul(Z, ze) | 0, w = w + Math.imul(Z, nt) | 0, w = w + Math.imul(ce, ze) | 0, g = g + Math.imul(ce, nt) | 0, M = M + Math.imul(ee, Ke) | 0, w = w + Math.imul(ee, at) | 0, w = w + Math.imul(ae, Ke) | 0, g = g + Math.imul(ae, at) | 0, M = M + Math.imul(G, Qe) | 0, w = w + Math.imul(G, dt) | 0, w = w + Math.imul(R, Qe) | 0, g = g + Math.imul(R, dt) | 0, M = M + Math.imul(K, ht) | 0, w = w + Math.imul(K, Mt) | 0, w = w + Math.imul(U, ht) | 0, g = g + Math.imul(U, Mt) | 0; var Un = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, M = Math.imul(te, De), w = Math.imul(te, ut), w = w + Math.imul(J, De) | 0, g = Math.imul(J, ut), M = M + Math.imul(O, Ze) | 0, w = w + Math.imul(O, Ge) | 0, w = w + Math.imul(B, Ze) | 0, g = g + Math.imul(B, Ge) | 0, M = M + Math.imul(Ee, Re) | 0, w = w + Math.imul(Ee, Je) | 0, w = w + Math.imul(Te, Re) | 0, g = g + Math.imul(Te, Je) | 0, M = M + Math.imul(le, Pe) | 0, w = w + Math.imul(le, et) | 0, w = w + Math.imul(be, Pe) | 0, g = g + Math.imul(be, et) | 0, M = M + Math.imul(me, ze) | 0, w = w + Math.imul(me, nt) | 0, w = w + Math.imul(pe, ze) | 0, g = g + Math.imul(pe, nt) | 0, M = M + Math.imul(Z, Ke) | 0, w = w + Math.imul(Z, at) | 0, w = w + Math.imul(ce, Ke) | 0, g = g + Math.imul(ce, at) | 0, M = M + Math.imul(ee, $e) | 0, w = w + Math.imul(ee, dt) | 0, w = w + Math.imul(ae, $e) | 0, g = g + Math.imul(ae, dt) | 0, M = M + Math.imul(G, ht) | 0, w = w + Math.imul(G, Mt) | 0, w = w + Math.imul(R, ht) | 0, g = g + Math.imul(R, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Un >>> 26) | 0, Un &= 67108863, M = Math.imul(te, De), w = Math.imul(te, ut), w = w + Math.imul(J, De) | 0, g = Math.imul(J, ut), M = M + Math.imul(O, Ze) | 0, w = w + Math.imul(O, Ge) | 0, w = w + Math.imul(B, Ze) | 0, g = g + Math.imul(B, Ge) | 0, M = M + Math.imul(Ee, Re) | 0, w = w + Math.imul(Ee, Je) | 0, w = w + Math.imul(Te, Re) | 0, g = g + Math.imul(Te, Je) | 0, M = M + Math.imul(le, Oe) | 0, w = w + Math.imul(le, et) | 0, w = w + Math.imul(be, Oe) | 0, g = g + Math.imul(be, et) | 0, M = M + Math.imul(me, ze) | 0, w = w + Math.imul(me, nt) | 0, w = w + Math.imul(pe, ze) | 0, g = g + Math.imul(pe, nt) | 0, M = M + Math.imul(Z, Ke) | 0, w = w + Math.imul(Z, at) | 0, w = w + Math.imul(ce, Ke) | 0, g = g + Math.imul(ce, at) | 0, M = M + Math.imul(ee, Qe) | 0, w = w + Math.imul(ee, dt) | 0, w = w + Math.imul(ae, Qe) | 0, g = g + Math.imul(ae, dt) | 0, M = M + Math.imul(G, ht) | 0, w = w + Math.imul(G, Mt) | 0, w = w + Math.imul(R, ht) | 0, g = g + Math.imul(R, Mt) | 0; var jn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, M = Math.imul(te, Ze), w = Math.imul(te, Ge), w = w + Math.imul(J, Ze) | 0, g = Math.imul(J, Ge), M = M + Math.imul(O, Re) | 0, w = w + Math.imul(O, Je) | 0, w = w + Math.imul(B, Re) | 0, g = g + Math.imul(B, Je) | 0, M = M + Math.imul(Ee, Pe) | 0, w = w + Math.imul(Ee, et) | 0, w = w + Math.imul(Te, Pe) | 0, g = g + Math.imul(Te, et) | 0, M = M + Math.imul(le, ze) | 0, w = w + Math.imul(le, nt) | 0, w = w + Math.imul(be, ze) | 0, g = g + Math.imul(be, nt) | 0, M = M + Math.imul(me, Ke) | 0, w = w + Math.imul(me, at) | 0, w = w + Math.imul(pe, Ke) | 0, g = g + Math.imul(pe, at) | 0, M = M + Math.imul(Z, $e) | 0, w = w + Math.imul(Z, dt) | 0, w = w + Math.imul(ce, $e) | 0, g = g + Math.imul(ce, dt) | 0, M = M + Math.imul(ee, ht) | 0, w = w + Math.imul(ee, Mt) | 0, w = w + Math.imul(ae, ht) | 0, g = g + Math.imul(ae, Mt) | 0; + v = (g + (w >>> 13) | 0) + (jn >>> 26) | 0, jn &= 67108863, M = Math.imul(te, Ze), w = Math.imul(te, Ge), w = w + Math.imul(J, Ze) | 0, g = Math.imul(J, Ge), M = M + Math.imul(O, Re) | 0, w = w + Math.imul(O, Je) | 0, w = w + Math.imul(B, Re) | 0, g = g + Math.imul(B, Je) | 0, M = M + Math.imul(Ee, Oe) | 0, w = w + Math.imul(Ee, et) | 0, w = w + Math.imul(Te, Oe) | 0, g = g + Math.imul(Te, et) | 0, M = M + Math.imul(le, ze) | 0, w = w + Math.imul(le, nt) | 0, w = w + Math.imul(be, ze) | 0, g = g + Math.imul(be, nt) | 0, M = M + Math.imul(me, Ke) | 0, w = w + Math.imul(me, at) | 0, w = w + Math.imul(pe, Ke) | 0, g = g + Math.imul(pe, at) | 0, M = M + Math.imul(Z, Qe) | 0, w = w + Math.imul(Z, dt) | 0, w = w + Math.imul(ce, Qe) | 0, g = g + Math.imul(ce, dt) | 0, M = M + Math.imul(ee, ht) | 0, w = w + Math.imul(ee, Mt) | 0, w = w + Math.imul(ae, ht) | 0, g = g + Math.imul(ae, Mt) | 0; var rn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, M = Math.imul(te, Re), w = Math.imul(te, Je), w = w + Math.imul(J, Re) | 0, g = Math.imul(J, Je), M = M + Math.imul(O, Pe) | 0, w = w + Math.imul(O, et) | 0, w = w + Math.imul(B, Pe) | 0, g = g + Math.imul(B, et) | 0, M = M + Math.imul(Ee, ze) | 0, w = w + Math.imul(Ee, nt) | 0, w = w + Math.imul(Te, ze) | 0, g = g + Math.imul(Te, nt) | 0, M = M + Math.imul(le, Ke) | 0, w = w + Math.imul(le, at) | 0, w = w + Math.imul(be, Ke) | 0, g = g + Math.imul(be, at) | 0, M = M + Math.imul(me, $e) | 0, w = w + Math.imul(me, dt) | 0, w = w + Math.imul(pe, $e) | 0, g = g + Math.imul(pe, dt) | 0, M = M + Math.imul(Z, ht) | 0, w = w + Math.imul(Z, Mt) | 0, w = w + Math.imul(ce, ht) | 0, g = g + Math.imul(ce, Mt) | 0; + v = (g + (w >>> 13) | 0) + (rn >>> 26) | 0, rn &= 67108863, M = Math.imul(te, Re), w = Math.imul(te, Je), w = w + Math.imul(J, Re) | 0, g = Math.imul(J, Je), M = M + Math.imul(O, Oe) | 0, w = w + Math.imul(O, et) | 0, w = w + Math.imul(B, Oe) | 0, g = g + Math.imul(B, et) | 0, M = M + Math.imul(Ee, ze) | 0, w = w + Math.imul(Ee, nt) | 0, w = w + Math.imul(Te, ze) | 0, g = g + Math.imul(Te, nt) | 0, M = M + Math.imul(le, Ke) | 0, w = w + Math.imul(le, at) | 0, w = w + Math.imul(be, Ke) | 0, g = g + Math.imul(be, at) | 0, M = M + Math.imul(me, Qe) | 0, w = w + Math.imul(me, dt) | 0, w = w + Math.imul(pe, Qe) | 0, g = g + Math.imul(pe, dt) | 0, M = M + Math.imul(Z, ht) | 0, w = w + Math.imul(Z, Mt) | 0, w = w + Math.imul(ce, ht) | 0, g = g + Math.imul(ce, Mt) | 0; var Vn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, M = Math.imul(te, Pe), w = Math.imul(te, et), w = w + Math.imul(J, Pe) | 0, g = Math.imul(J, et), M = M + Math.imul(O, ze) | 0, w = w + Math.imul(O, nt) | 0, w = w + Math.imul(B, ze) | 0, g = g + Math.imul(B, nt) | 0, M = M + Math.imul(Ee, Ke) | 0, w = w + Math.imul(Ee, at) | 0, w = w + Math.imul(Te, Ke) | 0, g = g + Math.imul(Te, at) | 0, M = M + Math.imul(le, $e) | 0, w = w + Math.imul(le, dt) | 0, w = w + Math.imul(be, $e) | 0, g = g + Math.imul(be, dt) | 0, M = M + Math.imul(me, ht) | 0, w = w + Math.imul(me, Mt) | 0, w = w + Math.imul(pe, ht) | 0, g = g + Math.imul(pe, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, M = Math.imul(te, Oe), w = Math.imul(te, et), w = w + Math.imul(J, Oe) | 0, g = Math.imul(J, et), M = M + Math.imul(O, ze) | 0, w = w + Math.imul(O, nt) | 0, w = w + Math.imul(B, ze) | 0, g = g + Math.imul(B, nt) | 0, M = M + Math.imul(Ee, Ke) | 0, w = w + Math.imul(Ee, at) | 0, w = w + Math.imul(Te, Ke) | 0, g = g + Math.imul(Te, at) | 0, M = M + Math.imul(le, Qe) | 0, w = w + Math.imul(le, dt) | 0, w = w + Math.imul(be, Qe) | 0, g = g + Math.imul(be, dt) | 0, M = M + Math.imul(me, ht) | 0, w = w + Math.imul(me, Mt) | 0, w = w + Math.imul(pe, ht) | 0, g = g + Math.imul(pe, Mt) | 0; var zn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, M = Math.imul(te, ze), w = Math.imul(te, nt), w = w + Math.imul(J, ze) | 0, g = Math.imul(J, nt), M = M + Math.imul(O, Ke) | 0, w = w + Math.imul(O, at) | 0, w = w + Math.imul(B, Ke) | 0, g = g + Math.imul(B, at) | 0, M = M + Math.imul(Ee, $e) | 0, w = w + Math.imul(Ee, dt) | 0, w = w + Math.imul(Te, $e) | 0, g = g + Math.imul(Te, dt) | 0, M = M + Math.imul(le, ht) | 0, w = w + Math.imul(le, Mt) | 0, w = w + Math.imul(be, ht) | 0, g = g + Math.imul(be, Mt) | 0; + v = (g + (w >>> 13) | 0) + (zn >>> 26) | 0, zn &= 67108863, M = Math.imul(te, ze), w = Math.imul(te, nt), w = w + Math.imul(J, ze) | 0, g = Math.imul(J, nt), M = M + Math.imul(O, Ke) | 0, w = w + Math.imul(O, at) | 0, w = w + Math.imul(B, Ke) | 0, g = g + Math.imul(B, at) | 0, M = M + Math.imul(Ee, Qe) | 0, w = w + Math.imul(Ee, dt) | 0, w = w + Math.imul(Te, Qe) | 0, g = g + Math.imul(Te, dt) | 0, M = M + Math.imul(le, ht) | 0, w = w + Math.imul(le, Mt) | 0, w = w + Math.imul(be, ht) | 0, g = g + Math.imul(be, Mt) | 0; var Tr = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, M = Math.imul(te, Ke), w = Math.imul(te, at), w = w + Math.imul(J, Ke) | 0, g = Math.imul(J, at), M = M + Math.imul(O, $e) | 0, w = w + Math.imul(O, dt) | 0, w = w + Math.imul(B, $e) | 0, g = g + Math.imul(B, dt) | 0, M = M + Math.imul(Ee, ht) | 0, w = w + Math.imul(Ee, Mt) | 0, w = w + Math.imul(Te, ht) | 0, g = g + Math.imul(Te, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Tr >>> 26) | 0, Tr &= 67108863, M = Math.imul(te, Ke), w = Math.imul(te, at), w = w + Math.imul(J, Ke) | 0, g = Math.imul(J, at), M = M + Math.imul(O, Qe) | 0, w = w + Math.imul(O, dt) | 0, w = w + Math.imul(B, Qe) | 0, g = g + Math.imul(B, dt) | 0, M = M + Math.imul(Ee, ht) | 0, w = w + Math.imul(Ee, Mt) | 0, w = w + Math.imul(Te, ht) | 0, g = g + Math.imul(Te, Mt) | 0; var Fn = (v + M | 0) + ((w & 8191) << 13) | 0; - v = (g + (w >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, M = Math.imul(te, $e), w = Math.imul(te, dt), w = w + Math.imul(J, $e) | 0, g = Math.imul(J, dt), M = M + Math.imul(O, ht) | 0, w = w + Math.imul(O, Mt) | 0, w = w + Math.imul(B, ht) | 0, g = g + Math.imul(B, Mt) | 0; + v = (g + (w >>> 13) | 0) + (Fn >>> 26) | 0, Fn &= 67108863, M = Math.imul(te, Qe), w = Math.imul(te, dt), w = w + Math.imul(J, Qe) | 0, g = Math.imul(J, dt), M = M + Math.imul(O, ht) | 0, w = w + Math.imul(O, Mt) | 0, w = w + Math.imul(B, ht) | 0, g = g + Math.imul(B, Mt) | 0; var Hn = (v + M | 0) + ((w & 8191) << 13) | 0; v = (g + (w >>> 13) | 0) + (Hn >>> 26) | 0, Hn &= 67108863, M = Math.imul(te, ht), w = Math.imul(te, Mt), w = w + Math.imul(J, ht) | 0, g = Math.imul(J, Mt); var qn = (v + M | 0) + ((w & 8191) << 13) | 0; @@ -17010,9 +17010,9 @@ ${gz(e, r)}`); return d._forceRed(this); }; })(t, Lt); - })(d8); - var EP = d8.exports; - var lY = /* @__PURE__ */ nc(EP); + })(h8); + var EP = h8.exports; + var hY = /* @__PURE__ */ tc(EP); (function(t) { var e = Lt && Lt.__awaiter || function(D, q, W, z) { function T(I) { @@ -17044,7 +17044,7 @@ ${gz(e, r)}`); return D && D.__esModule ? D : { default: D }; }; Object.defineProperty(t, "__esModule", { value: true }), t.sendSignedTransaction = t.buildPayload = t.resolveAddress = t.resolveEvmAddress = t.isMainnet = t.isSubstrateAddress = t.dataToString = t.toBN = t.handleTxResponse = t.decodeMessage = t.createClaimEvmSignature = t.MAINNET_GENESIS_HASH = t.U64MAX = t.U32MAX = void 0; - const n = c8, i = Sg, s = r(EP), o = h8, a = _P; + const n = a8, i = Sg, s = r(EP), o = f8, a = _P; t.U32MAX = n.BigNumber.from("0xffffffff"), t.U64MAX = n.BigNumber.from("0xffffffffffffffff"), t.MAINNET_GENESIS_HASH = "0x7834781d38e4798d548e34ec947d19deea29df148a7bf32484b7b24dacf8d4b7"; function c(D) { const q = (0, o.decodeAddress)(D); @@ -17201,8 +17201,8 @@ ${gz(e, r)}`); }); } t.sendSignedTransaction = L; - })(yd); - var Eo = Lt && Lt.__awaiter || function(t, e, r, n) { + })(gd); + var _o = Lt && Lt.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -17231,68 +17231,68 @@ ${gz(e, r)}`); }; Object.defineProperty(xg, "__esModule", { value: true }); xg.Signer = void 0; - var fY = xX; - var yy = FX; - var Y0 = c8; - var R6 = fP; - var zp = hP; - var by = dP; - var wy = _P; + var dY = EX; + var gy = qX; + var Y0 = a8; + var k6 = fP; + var Fp = hP; + var yy = dP; + var by = _P; var Bl = Sg; - var ph = h8; - var Ws = yd; - var So = new zp.Logger("evm-provider"); - var hY = class extends fY.Signer { + var dh = f8; + var qs = gd; + var Eo = new Fp.Logger("evm-provider"); + var pY = class extends dY.Signer { constructor(e, r, n) { - if (super(), (0, by.defineReadOnly)(this, "provider", e), (0, by.defineReadOnly)(this, "signingKey", n), this.provider.api.setSigner(n), typeof r == "string" && (0, ph.isEthereumAddress)(r)) - So.throwError("expect substrate address"); + if (super(), (0, yy.defineReadOnly)(this, "provider", e), (0, yy.defineReadOnly)(this, "signingKey", n), this.provider.api.setSigner(n), typeof r == "string" && (0, dh.isEthereumAddress)(r)) + Eo.throwError("expect substrate address"); else try { - (0, ph.decodeAddress)(r), (0, by.defineReadOnly)(this, "_substrateAddress", r); + (0, dh.decodeAddress)(r), (0, yy.defineReadOnly)(this, "_substrateAddress", r); } catch { - So.throwArgumentError("invalid address", "address", r); + Eo.throwArgumentError("invalid address", "address", r); } } connect(e) { - return So.throwError("cannot alter JSON-RPC Signer connection", zp.Logger.errors.UNSUPPORTED_OPERATION, { + return Eo.throwError("cannot alter JSON-RPC Signer connection", Fp.Logger.errors.UNSUPPORTED_OPERATION, { operation: "connect" }); } isClaimed(e) { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { const r = yield this.queryEvmAddress(); - return r ? !e || r === e ? true : So.throwError("An evm account already exists to bind to this account") : false; + return r ? !e || r === e ? true : Eo.throwError("An evm account already exists to bind to this account") : false; }); } getAddress() { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { const e = yield this.queryEvmAddress(); return e || this.computeDefaultEvmAddress(); }); } queryEvmAddress() { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { const e = yield this.provider.api.query.evmAccounts.evmAddresses(this._substrateAddress); - return e.isEmpty ? "" : (0, yy.getAddress)(e.toString()); + return e.isEmpty ? "" : (0, gy.getAddress)(e.toString()); }); } computeDefaultEvmAddress() { - const e = this._substrateAddress, r = (0, ph.decodeAddress)(e); - return (0, Bl.u8aEq)("evm:", r.slice(0, 4)) ? (0, yy.getAddress)((0, Bl.u8aToHex)(r.slice(4, 24))) : (0, yy.getAddress)((0, Bl.u8aToHex)((0, ph.blake2AsU8a)((0, Bl.u8aConcat)("evm:", r), 256).slice(0, 20))); + const e = this._substrateAddress, r = (0, dh.decodeAddress)(e); + return (0, Bl.u8aEq)("evm:", r.slice(0, 4)) ? (0, gy.getAddress)((0, Bl.u8aToHex)(r.slice(4, 24))) : (0, gy.getAddress)((0, Bl.u8aToHex)((0, dh.blake2AsU8a)((0, Bl.u8aConcat)("evm:", r), 256).slice(0, 20))); } getSubstrateAddress() { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { return this._substrateAddress; }); } claimEvmAccount(e) { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { if (yield this.isClaimed(e)) return; - const n = (0, ph.decodeAddress)(this._substrateAddress), i = "Reef evm:" + Buffer.from(n).toString("hex"), s = yield this._signMessage(e, i), o = this.provider.api.tx.evmAccounts.claimAccount(e, s); + const n = (0, dh.decodeAddress)(this._substrateAddress), i = "Reef evm:" + Buffer.from(n).toString("hex"), s = yield this._signMessage(e, i), o = this.provider.api.tx.evmAccounts.claimAccount(e, s); yield o.signAsync(this._substrateAddress), yield new Promise((a, c) => { o.send((u) => { - (0, Ws.handleTxResponse)(u, this.provider.api).then(() => { + (0, qs.handleTxResponse)(u, this.provider.api).then(() => { a(); }).catch(({ message: f, result: p }) => { f === "evmAccounts.AccountIdHasMapped" && a(), c(f); @@ -17304,11 +17304,11 @@ ${gz(e, r)}`); }); } claimDefaultAccount() { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { const e = this.provider.api.tx.evmAccounts.claimDefaultAccount(); yield e.signAsync(this._substrateAddress), yield new Promise((r, n) => { e.send((i) => { - (0, Ws.handleTxResponse)(i, this.provider.api).then(() => { + (0, qs.handleTxResponse)(i, this.provider.api).then(() => { r(); }).catch(({ message: s, result: o }) => { s === "evmAccounts.AccountIdHasMapped" && r(), n(s); @@ -17323,12 +17323,12 @@ ${gz(e, r)}`); return this.provider.getBalance(this._substrateAddress, e); } signTransaction(e) { - return So.throwError("signing transactions is unsupported", zp.Logger.errors.UNSUPPORTED_OPERATION, { + return Eo.throwError("signing transactions is unsupported", Fp.Logger.errors.UNSUPPORTED_OPERATION, { operation: "signTransaction" }); } sendTransaction(e) { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { this._checkProvider("sendTransaction"); const r = yield this.getSubstrateAddress(), n = yield this.getAddress(), i = Object.assign({ from: n }, e), s = yield this.provider.estimateResources(i), o = s.gas.mul(31).div(10); let a; @@ -17337,21 +17337,21 @@ ${gz(e, r)}`); c == null && (c = o.add(a)), i.gasLimit = c; const u = yield this.populateTransaction(i), f = u.data, p = u.from; if (!f) - return So.throwError("Request data not found"); + return Eo.throwError("Request data not found"); if (!p) - return So.throwError("Request from not found"); + return Eo.throwError("Request from not found"); let b; - return u.to ? b = this.provider.api.tx.evm.call(u.to, u.data, (0, Ws.toBN)(u.value), (0, Ws.toBN)(o), (0, Ws.toBN)(a.isNegative() ? 0 : a)) : b = this.provider.api.tx.evm.create(u.data, (0, Ws.toBN)(u.value), (0, Ws.toBN)(o), (0, Ws.toBN)(a.isNegative() ? 0 : a)), yield b.signAsync(r), new Promise((E, _) => { + return u.to ? b = this.provider.api.tx.evm.call(u.to, u.data, (0, qs.toBN)(u.value), (0, qs.toBN)(o), (0, qs.toBN)(a.isNegative() ? 0 : a)) : b = this.provider.api.tx.evm.create(u.data, (0, qs.toBN)(u.value), (0, qs.toBN)(o), (0, qs.toBN)(a.isNegative() ? 0 : a)), yield b.signAsync(r), new Promise((E, _) => { b.send((N) => { - (0, Ws.handleTxResponse)(N, this.provider.api).then(() => { + (0, qs.handleTxResponse)(N, this.provider.api).then(() => { E({ hash: b.hash.toHex(), from: p || "", confirmations: 0, - nonce: (0, Ws.toBN)(u.nonce).toNumber(), + nonce: (0, qs.toBN)(u.nonce).toNumber(), gasLimit: Y0.BigNumber.from(u.gasLimit || "0"), gasPrice: Y0.BigNumber.from(0), - data: (0, Ws.dataToString)(f), + data: (0, qs.dataToString)(f), value: Y0.BigNumber.from(u.value || "0"), chainId: 13939, wait: (k) => this.provider._resolveTransactionReceipt(b.hash.toHex(), N.status.asInBlock.toHex(), p) @@ -17366,42 +17366,42 @@ ${gz(e, r)}`); }); } signMessage(e) { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { const r = yield this.queryEvmAddress(); return this._signMessage(r, e); }); } _signMessage(e, r) { - return Eo(this, void 0, void 0, function* () { + return _o(this, void 0, void 0, function* () { if (!e) - return So.throwError("No binding evm address"); + return Eo.throwError("No binding evm address"); const n = `Ethereum Signed Message: `; - typeof r == "string" && (r = (0, wy.toUtf8Bytes)(r)); - const i = (0, Bl.u8aToHex)((0, R6.concat)([ - (0, wy.toUtf8Bytes)(n), - (0, wy.toUtf8Bytes)(String(r.length)), + typeof r == "string" && (r = (0, by.toUtf8Bytes)(r)); + const i = (0, Bl.u8aToHex)((0, k6.concat)([ + (0, by.toUtf8Bytes)(n), + (0, by.toUtf8Bytes)(String(r.length)), r ])); if (!this.signingKey.signRaw) - return So.throwError("Need to implement signRaw method"); + return Eo.throwError("Need to implement signRaw method"); const s = yield this.signingKey.signRaw({ address: e, data: i, type: "bytes" }); - return (0, R6.joinSignature)(s.signature); + return (0, k6.joinSignature)(s.signature); }); } _signTypedData(e, r, n) { - return Eo(this, void 0, void 0, function* () { - return So.throwError("_signTypedData is unsupported", zp.Logger.errors.UNSUPPORTED_OPERATION, { + return _o(this, void 0, void 0, function* () { + return Eo.throwError("_signTypedData is unsupported", Fp.Logger.errors.UNSUPPORTED_OPERATION, { operation: "_signTypedData" }); }); } }; - xg.Signer = hY; + xg.Signer = pY; var Mg = {}; var Ag = {}; var SP = { exports: {} }; @@ -17414,13 +17414,13 @@ ${gz(e, r)}`); t.exports = e, t.exports.__esModule = true, t.exports.default = t.exports; })(SP); var MP = SP.exports; - var mh = {}; + var ph = {}; + var wy = { exports: {} }; var vy = { exports: {} }; var xy = { exports: {} }; - var _y = { exports: {} }; - var C6; + var R6; function AP() { - return C6 || (C6 = 1, function(t) { + return R6 || (R6 = 1, function(t) { function e(r) { "@babel/helpers - typeof"; return t.exports = e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) { @@ -17430,12 +17430,12 @@ ${gz(e, r)}`); }, t.exports.__esModule = true, t.exports.default = t.exports, e(r); } t.exports = e, t.exports.__esModule = true, t.exports.default = t.exports; - }(_y)), _y.exports; + }(xy)), xy.exports; } - var Ey = { exports: {} }; - var D6; - function dY() { - return D6 || (D6 = 1, function(t) { + var _y = { exports: {} }; + var C6; + function mY() { + return C6 || (C6 = 1, function(t) { var e = AP().default; function r(n, i) { if (e(n) != "object" || !n) @@ -17450,23 +17450,23 @@ ${gz(e, r)}`); return (i === "string" ? String : Number)(n); } t.exports = r, t.exports.__esModule = true, t.exports.default = t.exports; - }(Ey)), Ey.exports; + }(_y)), _y.exports; } - var L6; - function pY() { - return L6 || (L6 = 1, function(t) { - var e = AP().default, r = dY(); + var D6; + function gY() { + return D6 || (D6 = 1, function(t) { + var e = AP().default, r = mY(); function n(i) { var s = r(i, "string"); return e(s) == "symbol" ? s : s + ""; } t.exports = n, t.exports.__esModule = true, t.exports.default = t.exports; - }(xy)), xy.exports; + }(vy)), vy.exports; } - var B6; - function mY() { - return B6 || (B6 = 1, function(t) { - var e = pY(); + var L6; + function yY() { + return L6 || (L6 = 1, function(t) { + var e = gY(); function r(n, i, s) { return (i = e(i)) in n ? Object.defineProperty(n, i, { value: s, @@ -17476,17 +17476,17 @@ ${gz(e, r)}`); }) : n[i] = s, n; } t.exports = r, t.exports.__esModule = true, t.exports.default = t.exports; - }(vy)), vy.exports; + }(wy)), wy.exports; } var TP = { name: "@polkadot/api-derive", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; yl(TP, null, []); - var gY = { name: "@polkadot/rpc-provider", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + var bY = { name: "@polkadot/rpc-provider", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; var Tg = { name: "@polkadot/types", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - var yY = { name: "@polkadot/rpc-core", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - var bY = { name: "@polkadot/types-codec", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - var wY = { name: "@polkadot/types-create", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - yl(Tg, null, [bY, wY]); - var vY = { + var wY = { name: "@polkadot/rpc-core", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + var vY = { name: "@polkadot/types-codec", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + var xY = { name: "@polkadot/types-create", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + yl(Tg, null, [vY, xY]); + var _Y = { Blake2_128: null, Blake2_256: null, Blake2_128Concat: null, @@ -17495,14 +17495,14 @@ ${gz(e, r)}`); Twox64Concat: null, Identity: null }; - var U6 = { + var B6 = { metadata: { description: "Returns the metadata of a runtime", params: [], type: "OpaqueMetadata" } }; - var xY = { + var EY = { Metadata: [ { methods: { @@ -17521,19 +17521,19 @@ ${gz(e, r)}`); params: [], type: "Vec" }, - ...U6 + ...B6 }, version: 2 }, { methods: { - ...U6 + ...B6 }, version: 1 } ] }; - var _Y = { + var SY = { ErrorMetadataV9: { name: "Text", docs: "Vec" @@ -17611,7 +17611,7 @@ ${gz(e, r)}`); items: "Vec" } }; - var EY = { + var MY = { ErrorMetadataV10: "ErrorMetadataV9", EventMetadataV10: "EventMetadataV9", FunctionArgumentMetadataV10: "FunctionArgumentMetadataV9", @@ -17669,7 +17669,7 @@ ${gz(e, r)}`); } } }; - var SY = { + var AY = { ErrorMetadataV11: "ErrorMetadataV10", EventMetadataV11: "EventMetadataV10", ExtrinsicMetadataV11: { @@ -17722,10 +17722,10 @@ ${gz(e, r)}`); items: "Vec" }, StorageHasherV11: { - _enum: vY + _enum: _Y } }; - var MY = { + var TY = { ErrorMetadataV12: "ErrorMetadataV11", EventMetadataV12: "EventMetadataV11", ExtrinsicMetadataV12: "ExtrinsicMetadataV11", @@ -17751,7 +17751,7 @@ ${gz(e, r)}`); StorageMetadataV12: "StorageMetadataV11", StorageHasherV12: "StorageHasherV11" }; - var AY = { + var NY = { ErrorMetadataV13: "ErrorMetadataV12", EventMetadataV13: "EventMetadataV12", ExtrinsicMetadataV13: "ExtrinsicMetadataV12", @@ -17808,13 +17808,13 @@ ${gz(e, r)}`); }, StorageHasherV13: "StorageHasherV12" }; - var Fp = { + var Hp = { name: "Text", fields: "Vec", index: "u8", docs: "Vec" }; - var TY = { + var IY = { Si1Field: { name: "Option", type: "Si1LookupTypeId", @@ -17868,19 +17868,19 @@ ${gz(e, r)}`); Si1TypeDefVariant: { variants: "Vec" }, - Si1Variant: Fp + Si1Variant: Hp }; - var NY = { + var OY = { PortableTypeV14: { id: "Si1LookupTypeId", type: "Si1Type" }, ErrorMetadataV14: { - ...Fp, + ...Hp, args: "Vec" }, EventMetadataV14: { - ...Fp, + ...Hp, args: "Vec" }, FunctionArgumentMetadataV14: { @@ -17889,7 +17889,7 @@ ${gz(e, r)}`); typeName: "Option" }, FunctionMetadataV14: { - ...Fp, + ...Hp, args: "Vec" }, ExtrinsicMetadataV14: { @@ -17956,7 +17956,7 @@ ${gz(e, r)}`); }, StorageHasherV14: "StorageHasherV13" }; - var IY = { + var PY = { CustomMetadata15: { map: "BTreeMap" }, @@ -18012,17 +18012,17 @@ ${gz(e, r)}`); custom: "CustomMetadata15" } }; - var OY = { + var kY = { rpc: {}, - runtime: xY, + runtime: EY, types: { - ..._Y, - ...EY, ...SY, ...MY, ...AY, + ...TY, ...NY, - ...IY, + ...OY, + ...PY, ErrorMetadataLatest: "ErrorMetadataV14", EventMetadataLatest: "EventMetadataV14", ExtrinsicMetadataLatest: "ExtrinsicMetadataV15", @@ -18065,7 +18065,7 @@ ${gz(e, r)}`); } } }; - var Fh = { + var zh = { execute_block: { description: "Execute the given block.", params: [ @@ -18077,14 +18077,14 @@ ${gz(e, r)}`); type: "Null" } }; - var j6 = { + var U6 = { version: { description: "Returns the version of the runtime.", params: [], type: "RuntimeVersionPre3" } }; - var Sy = { + var Ey = { initialize_block: { description: "Initialize a block with the given header.", params: [ @@ -18096,15 +18096,15 @@ ${gz(e, r)}`); type: "Null" } }; - var V6 = { + var j6 = { version: { description: "Returns the version of the runtime.", params: [], type: "RuntimeVersion" } }; - var PY = { - ...Fh, + var RY = { + ...zh, initialize_block: { description: "Initialize a block with the given header.", params: [ @@ -18116,20 +18116,20 @@ ${gz(e, r)}`); type: "ExtrinsicInclusionMode" } }; - var kY = { + var CY = { Core: [ { methods: { - ...V6, - ...PY + ...j6, + ...RY }, version: 5 }, { methods: { - ...V6, - ...Fh, - ...Sy + ...j6, + ...zh, + ...Ey }, version: 4 }, @@ -18140,16 +18140,16 @@ ${gz(e, r)}`); params: [], type: "RuntimeVersionPre4" }, - ...Fh, - ...Sy + ...zh, + ...Ey }, version: 3 }, { methods: { - ...j6, - ...Fh, - ...Sy + ...U6, + ...zh, + ...Ey }, version: 2 }, @@ -18165,14 +18165,14 @@ ${gz(e, r)}`); ], type: "Null" }, - ...j6, - ...Fh + ...U6, + ...zh }, version: 1 } ] }; - var RY = { + var DY = { Fixed64: "Int<64, Fixed64>", FixedI64: "Int<64, FixedI64>", FixedU64: "UInt<64, FixedU64>", @@ -18187,7 +18187,7 @@ ${gz(e, r)}`); Permill: "UInt<32, Permill>", Perquintill: "UInt<64, Perquintill>" }; - var CY = { + var LY = { Council: "CollectiveOrigin", System: "SystemOrigin", TechnicalCommittee: "CollectiveOrigin", @@ -18196,11 +18196,11 @@ ${gz(e, r)}`); Authority: "AuthorityOrigin", GeneralCouncil: "CollectiveOrigin" }; - var DY = { + var BY = { rpc: {}, - runtime: kY, + runtime: CY, types: { - ...RY, + ...DY, AccountId: "AccountId32", AccountId20: "GenericEthereumAccountId", AccountId32: "GenericAccountId32", @@ -18379,7 +18379,7 @@ ${gz(e, r)}`); } } }; - var LY = { + var UY = { Si0Field: { name: "Option", type: "Si0LookupTypeId", @@ -18443,11 +18443,11 @@ ${gz(e, r)}`); docs: "Vec" } }; - var BY = { + var jY = { rpc: {}, types: { - ...LY, - ...TY, + ...UY, + ...IY, SiField: "Si1Field", SiLookupTypeId: "Si1LookupTypeId", SiPath: "Si1Path", @@ -18465,7 +18465,7 @@ ${gz(e, r)}`); SiVariant: "Si1Variant" } }; - var UY = { + var VY = { AssetConversionApi: [ { methods: { @@ -18532,14 +18532,14 @@ ${gz(e, r)}`); } ] }; - var jY = { + var zY = { rpc: {}, - runtime: UY, + runtime: VY, types: { TAssetConversion: "Option" } }; - var VY = { + var FY = { AssetsApi: [ { methods: { @@ -18558,9 +18558,9 @@ ${gz(e, r)}`); } ] }; - var zY = { + var HY = { rpc: {}, - runtime: VY, + runtime: FY, types: { AssetApprovalKey: { owner: "AccountId", @@ -18605,7 +18605,7 @@ ${gz(e, r)}`); TAssetDepositBalance: "BalanceOf" } }; - var FY = { + var qY = { AuraApi: [ { methods: { @@ -18624,16 +18624,16 @@ ${gz(e, r)}`); } ] }; - var HY = { + var WY = { rpc: {}, - runtime: FY, + runtime: qY, types: { RawAuraPreDigest: { slotNumber: "u64" } } }; - var qY = { + var GY = { rpc: {}, types: { UncleEntryItem: { @@ -18644,7 +18644,7 @@ ${gz(e, r)}`); } } }; - var WY = { + var KY = { epochAuthorship: { description: "Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore", isUnsafe: true, @@ -18652,7 +18652,7 @@ ${gz(e, r)}`); type: "HashMap" } }; - var z6 = { + var V6 = { current_epoch: { description: "Returns information regarding the current epoch.", params: [], @@ -18697,7 +18697,7 @@ ${gz(e, r)}`); type: "Option" } }; - var GY = { + var XY = { BabeApi: [ { methods: { @@ -18706,7 +18706,7 @@ ${gz(e, r)}`); params: [], type: "BabeGenesisConfiguration" }, - ...z6 + ...V6 }, version: 2 }, @@ -18717,15 +18717,15 @@ ${gz(e, r)}`); params: [], type: "BabeGenesisConfigurationV1" }, - ...z6 + ...V6 }, version: 1 } ] }; - var KY = { - rpc: WY, - runtime: GY, + var YY = { + rpc: KY, + runtime: XY, types: { AllowedSlots: { _enum: ["PrimarySlots", "PrimaryAndSecondaryPlainSlots", "PrimaryAndSecondaryVRFSlots"] @@ -18842,7 +18842,7 @@ ${gz(e, r)}`); VrfProof: "[u8; 64]" } }; - var XY = { + var ZY = { rpc: {}, types: { AccountData: { @@ -18889,7 +18889,7 @@ ${gz(e, r)}`); } } }; - var YY = { + var JY = { getFinalizedHead: { description: "Returns hash of the latest BEEFY finalized block as seen by this client.", params: [], @@ -18906,7 +18906,7 @@ ${gz(e, r)}`); type: "BeefyVersionedFinalityProof" } }; - var My = { + var Sy = { beefy_genesis: { description: "Return the block number where BEEFY consensus is enabled/started", params: [], @@ -18946,7 +18946,7 @@ ${gz(e, r)}`); type: "Option" } }; - var ZY = { + var QY = { authority_set_proof: { description: "Return the currently active BEEFY authority set proof.", params: [], @@ -18958,31 +18958,31 @@ ${gz(e, r)}`); type: "BeefyNextAuthoritySet" } }; - var JY = { + var $Y = { BeefyApi: [ { - methods: My, + methods: Sy, version: 3 }, { - methods: My, + methods: Sy, version: 2 }, { - methods: My, + methods: Sy, version: 1 } ], BeefyMmrApi: [ { - methods: ZY, + methods: QY, version: 1 } ] }; - var QY = { - rpc: YY, - runtime: JY, + var eZ = { + rpc: JY, + runtime: $Y, types: { BeefyAuthoritySet: { id: "u64", @@ -19035,7 +19035,7 @@ ${gz(e, r)}`); } } }; - var $Y = { + var tZ = { Benchmark: [ { methods: { @@ -19064,9 +19064,9 @@ ${gz(e, r)}`); } ] }; - var eZ = { + var rZ = { rpc: {}, - runtime: $Y, + runtime: tZ, types: { BenchmarkBatch: { pallet: "Text", @@ -19106,14 +19106,14 @@ ${gz(e, r)}`); } } }; - var Ay = { + var My = { random_seed: { description: "Generate a random seed.", params: [], type: "Hash" } }; - var F6 = { + var z6 = { apply_extrinsic: { description: "Apply the given extrinsic.", params: [ @@ -19125,7 +19125,7 @@ ${gz(e, r)}`); type: "ApplyExtrinsicResultPre6" } }; - var gh = { + var mh = { check_inherents: { description: "Check that the inherents are valid.", params: [ @@ -19158,7 +19158,7 @@ ${gz(e, r)}`); type: "Header" } }; - var tZ = { + var nZ = { BlockBuilder: [ { methods: { @@ -19172,32 +19172,32 @@ ${gz(e, r)}`); ], type: "ApplyExtrinsicResult" }, - ...gh, + ...mh, ...Z0 }, version: 6 }, { methods: { - ...F6, - ...gh, + ...z6, + ...mh, ...Z0 }, version: 5 }, { methods: { - ...Ay, - ...F6, - ...gh, + ...My, + ...z6, + ...mh, ...Z0 }, version: 4 }, { methods: { - ...Ay, - ...gh, + ...My, + ...mh, ...Z0 }, version: 3 @@ -19209,16 +19209,16 @@ ${gz(e, r)}`); params: [], type: "Header" }, - ...Ay, - ...gh + ...My, + ...mh }, version: 2 } ] }; - var rZ = { + var iZ = { rpc: {}, - runtime: tZ, + runtime: nZ, types: { CheckInherentsResult: { okay: "bool", @@ -19231,7 +19231,7 @@ ${gz(e, r)}`); InherentIdentifier: "[u8; 8]" } }; - var nZ = { + var sZ = { rpc: {}, types: { CollectiveOrigin: { @@ -19257,14 +19257,14 @@ ${gz(e, r)}`); } } }; - var iZ = { + var oZ = { rpc: {}, types: { AuthorityId: "AccountId", RawVRFOutput: "[u8; 32]" } }; - var sZ = { + var aZ = { call: { deprecated: "Use the runtime interface `api.call.contractsApi.call` instead", description: "Executes a call to a contract", @@ -19356,7 +19356,7 @@ ${gz(e, r)}`); type: "CodeUploadResult" } }; - var H6 = { + var F6 = { get_storage: { description: "Query a given storage key in a given contract.", params: [ @@ -19390,7 +19390,7 @@ ${gz(e, r)}`); type: "CodeUploadResult" } }; - var oZ = { + var cZ = { ContractsApi: [ { methods: { @@ -19458,7 +19458,7 @@ ${gz(e, r)}`); ], type: "ContractInstantiateResult" }, - ...H6 + ...F6 }, version: 2 }, @@ -19528,15 +19528,15 @@ ${gz(e, r)}`); ], type: "ContractInstantiateResultU64" }, - ...H6 + ...F6 }, version: 1 } ] }; - var aZ = { - rpc: sZ, - runtime: oZ, + var uZ = { + rpc: aZ, + runtime: cZ, types: { AliveContractInfo: { trieId: "TrieId", @@ -19955,7 +19955,7 @@ ${gz(e, r)}`); TrieId: "Bytes" } }; - var cZ = [ + var lZ = [ "None", "Locked1x", "Locked2x", @@ -19964,7 +19964,7 @@ ${gz(e, r)}`); "Locked5x", "Locked6x" ]; - var uZ = { + var fZ = { rpc: {}, types: { AccountVote: { @@ -19982,7 +19982,7 @@ ${gz(e, r)}`); balance: "Balance" }, Conviction: { - _enum: cZ + _enum: lZ }, Delegations: { votes: "Balance", @@ -20060,7 +20060,7 @@ ${gz(e, r)}`); } } }; - var lZ = { + var hZ = { getBlockStats: { description: "Reexecute the specified `block_hash` and gather statistics while doing so", isUnsafe: true, @@ -20074,8 +20074,8 @@ ${gz(e, r)}`); type: "Option" } }; - var fZ = { - rpc: lZ, + var dZ = { + rpc: hZ, types: { BlockStats: { witnessLen: "u64", @@ -20085,7 +20085,7 @@ ${gz(e, r)}`); } } }; - var hZ = { + var pZ = { AuthorityDiscoveryApi: [ { methods: { @@ -20099,12 +20099,12 @@ ${gz(e, r)}`); } ] }; - var dZ = { + var mZ = { rpc: {}, - runtime: hZ, + runtime: pZ, types: {} }; - var pZ = { + var gZ = { rpc: {}, types: { ApprovalFlag: "u32", @@ -20138,7 +20138,7 @@ ${gz(e, r)}`); } } }; - var mZ = { + var yZ = { createBlock: { description: "Instructs the manual-seal authorship task to create a new block", params: [ @@ -20174,8 +20174,8 @@ ${gz(e, r)}`); type: "bool" } }; - var gZ = { - rpc: mZ, + var bZ = { + rpc: yZ, types: { CreatedBlock: { _alias: { @@ -20194,7 +20194,7 @@ ${gz(e, r)}`); } } }; - var yZ = { + var wZ = { rpc: {}, types: { EvmAccount: { @@ -20284,7 +20284,7 @@ ${gz(e, r)}`); } } }; - var bZ = { + var vZ = { rpc: {}, types: { Extrinsic: "GenericExtrinsic", @@ -20314,7 +20314,7 @@ ${gz(e, r)}`); Sr25519Signature: "H512" } }; - var wZ = { + var xZ = { FungiblesApi: [ { methods: { @@ -20348,16 +20348,16 @@ ${gz(e, r)}`); } ] }; - var vZ = { + var _Z = { rpc: {}, - runtime: wZ, + runtime: xZ, types: { FungiblesAccessError: { _enum: ["AssetIdConversionFailed", "AmountToBalanceConversionFailed"] } } }; - var xZ = { + var EZ = { rpc: {}, types: { AssetOptions: { @@ -20383,7 +20383,7 @@ ${gz(e, r)}`); PermissionLatest: "PermissionsV1" } }; - var _Z = { + var SZ = { GenesisBuilder: [ { methods: { @@ -20407,14 +20407,14 @@ ${gz(e, r)}`); } ] }; - var EZ = { + var MZ = { rpc: {}, - runtime: _Z, + runtime: SZ, types: { GenesisBuildErr: "Text" } }; - var SZ = { + var AZ = { rpc: {}, types: { ActiveGilt: { @@ -20436,7 +20436,7 @@ ${gz(e, r)}`); } } }; - var MZ = { + var TZ = { proveFinality: { description: "Prove finality for the given block number, returning the Justification for the last block in the set.", params: [ @@ -20463,7 +20463,7 @@ ${gz(e, r)}`); type: "JustificationNotification" } }; - var q6 = { + var H6 = { generate_key_ownership_proof: { description: "Generates a proof of key ownership for the given authority in the given set.", params: [ @@ -20498,7 +20498,7 @@ ${gz(e, r)}`); type: "Option" } }; - var AZ = { + var NZ = { GrandpaApi: [ { methods: { @@ -20507,19 +20507,19 @@ ${gz(e, r)}`); params: [], type: "SetId" }, - ...q6 + ...H6 }, version: 3 }, { - methods: q6, + methods: H6, version: 2 } ] }; - var TZ = { - rpc: MZ, - runtime: AZ, + var IZ = { + rpc: TZ, + runtime: NZ, types: { AuthorityIndex: "u64", AuthorityList: "Vec", @@ -20646,7 +20646,7 @@ ${gz(e, r)}`); } } }; - var NZ = { + var OZ = { rpc: {}, types: { IdentityFields: { @@ -20716,7 +20716,7 @@ ${gz(e, r)}`); } } }; - var IZ = { + var PZ = { rpc: {}, types: { AuthIndex: "u32", @@ -20742,7 +20742,7 @@ ${gz(e, r)}`); } } }; - var OZ = { + var kZ = { rpc: {}, types: { CallIndex: "(u8, u8)", @@ -20755,7 +20755,7 @@ ${gz(e, r)}`); } } }; - var PZ = { + var RZ = { MixnetApi: [ { methods: { @@ -20793,9 +20793,9 @@ ${gz(e, r)}`); } ] }; - var kZ = { + var CZ = { rpc: {}, - runtime: PZ, + runtime: RZ, types: { Mixnode: { externalAddresses: "Vec", @@ -20819,7 +20819,7 @@ ${gz(e, r)}`); } } }; - var RZ = { + var DZ = { generateProof: { description: "Generate MMR proof for the given block numbers.", params: [ @@ -20878,7 +20878,7 @@ ${gz(e, r)}`); type: "bool" } }; - var CZ = { + var LZ = { generate_proof: { description: "Generate MMR proof for the given block numbers.", params: [ @@ -20936,7 +20936,7 @@ ${gz(e, r)}`); type: "Result<(), MmrError>" } }; - var DZ = { + var BZ = { generate_batch_proof: { description: "Generate MMR proof for a series of leaves under given indices.", params: [ @@ -21027,21 +21027,21 @@ ${gz(e, r)}`); type: "Result<(), MmrError>" } }; - var LZ = { + var UZ = { MmrApi: [ { - methods: CZ, + methods: LZ, version: 2 }, { - methods: DZ, + methods: BZ, version: 1 } ] }; - var BZ = { - rpc: RZ, - runtime: LZ, + var jZ = { + rpc: DZ, + runtime: UZ, types: { MmrBatchProof: { leafIndices: "Vec", @@ -21072,7 +21072,7 @@ ${gz(e, r)}`); } } }; - var UZ = { + var VZ = { NftsApi: [ { methods: { @@ -21177,15 +21177,15 @@ ${gz(e, r)}`); } ] }; - var jZ = { + var zZ = { rpc: {}, - runtime: UZ, + runtime: VZ, types: { NftCollectionId: "u32", NftItemId: "u32" } }; - var VZ = { + var FZ = { NominationPoolsApi: [ { methods: { @@ -21232,9 +21232,9 @@ ${gz(e, r)}`); } ] }; - var zZ = { + var HZ = { rpc: {}, - runtime: VZ, + runtime: FZ, types: { NpApiError: { _enum: ["MemberNotFound", "OverflowInPendingRewards"] @@ -21242,7 +21242,7 @@ ${gz(e, r)}`); NpPoolId: "u32" } }; - var FZ = { + var qZ = { rpc: {}, types: { DeferredOffenceOf: "(Vec, Vec, SessionIndex)", @@ -21257,7 +21257,7 @@ ${gz(e, r)}`); Reporter: "AccountId" } }; - var HZ = { + var WZ = { DifficultyApi: [ { methods: { @@ -21283,12 +21283,12 @@ ${gz(e, r)}`); } ] }; - var qZ = { + var GZ = { rpc: {}, - runtime: HZ, + runtime: WZ, types: {} }; - var WZ = { + var KZ = { rpc: {}, types: { ProxyDefinition: { @@ -21306,7 +21306,7 @@ ${gz(e, r)}`); } } }; - var GZ = { + var XZ = { rpc: {}, types: { ActiveRecovery: { @@ -21322,7 +21322,7 @@ ${gz(e, r)}`); } } }; - var KZ = { + var YZ = { rpc: {}, types: { Period: "(BlockNumber, u32)", @@ -21345,7 +21345,7 @@ ${gz(e, r)}`); TaskAddress: "(BlockNumber, u32)" } }; - var XZ = { + var ZZ = { SessionKeys: [ { methods: { @@ -21374,7 +21374,7 @@ ${gz(e, r)}`); } ] }; - var YZ = { + var JZ = { BeefyKey: "[u8; 33]", Keys: "SessionKeys4", SessionKeys1: "(AccountId)", @@ -21393,11 +21393,11 @@ ${gz(e, r)}`); SessionKeys10: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", SessionKeys10B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)" }; - var ZZ = { + var QZ = { rpc: {}, - runtime: XZ, + runtime: ZZ, types: { - ...YZ, + ...JZ, FullIdentification: "Exposure", IdentificationTuple: "(ValidatorId, FullIdentification)", MembershipProof: { @@ -21409,7 +21409,7 @@ ${gz(e, r)}`); ValidatorCount: "u32" } }; - var JZ = { + var $Z = { rpc: {}, types: { Bid: { @@ -21435,7 +21435,7 @@ ${gz(e, r)}`); } } }; - var QZ = { + var eJ = { StakingApi: [ { methods: { @@ -21454,14 +21454,14 @@ ${gz(e, r)}`); } ] }; - var $Z = { + var tJ = { Points: "u32", EraPoints: { total: "Points", individual: "Vec" } }; - var eJ = { + var rJ = { CompactAssignments: "CompactAssignmentsWith16", CompactAssignmentsWith16: { votes1: "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>", @@ -21614,12 +21614,12 @@ ${gz(e, r)}`); }, VoteWeight: "u64" }; - var tJ = { + var nJ = { rpc: {}, - runtime: QZ, + runtime: eJ, types: { - ...$Z, - ...eJ, + ...tJ, + ...rJ, ActiveEraInfo: { index: "EraIndex", start: "Option" @@ -21746,7 +21746,7 @@ ${gz(e, r)}`); } } }; - var rJ = { + var iJ = { ValidateStatement: [ { methods: { @@ -21769,9 +21769,9 @@ ${gz(e, r)}`); } ] }; - var nJ = { + var sJ = { rpc: {}, - runtime: rJ, + runtime: iJ, types: { StatementStoreStatementSource: { _enum: ["Chain", "Network", "Local"] @@ -21785,7 +21785,7 @@ ${gz(e, r)}`); } } }; - var iJ = { + var oJ = { rpc: {}, types: { WeightToFeeCoefficient: { @@ -21796,7 +21796,7 @@ ${gz(e, r)}`); } } }; - var sJ = { + var aJ = { genSyncSpec: { description: "Returns the json-serialized chainspec running the node, with a sync state.", endpoint: "sync_state_genSyncSpec", @@ -21809,11 +21809,11 @@ ${gz(e, r)}`); type: "Json" } }; - var oJ = { - rpc: sJ, + var cJ = { + rpc: aJ, types: {} }; - var aJ = { + var uJ = { accountNextIndex: { alias: ["account_nextIndex"], description: "Retrieves the next accountIndex as available on the node", @@ -21952,7 +21952,7 @@ ${gz(e, r)}`); type: "Text" } }; - var cJ = { + var lJ = { AccountNonceApi: [ { methods: { @@ -21971,9 +21971,9 @@ ${gz(e, r)}`); } ] }; - var uJ = { - rpc: aJ, - runtime: cJ, + var fJ = { + rpc: uJ, + runtime: lJ, types: { AccountInfo: "AccountInfoWithTripleRefCount", AccountInfoWithRefCountU8: { @@ -22282,7 +22282,7 @@ ${gz(e, r)}`); } } }; - var lJ = { + var hJ = { rpc: {}, types: { Bounty: { @@ -22342,13 +22342,13 @@ ${gz(e, r)}`); } } }; - var fJ = { + var dJ = { rpc: {}, types: { Multiplier: "Fixed128" } }; - var hJ = { + var pJ = { TaggedTransactionQueue: [ { methods: { @@ -22409,9 +22409,9 @@ ${gz(e, r)}`); } ] }; - var dJ = { + var mJ = { rpc: {}, - runtime: hJ, + runtime: pJ, types: { TransactionSource: { _enum: ["InBlock", "Local", "External"] @@ -22426,7 +22426,7 @@ ${gz(e, r)}`); } } }; - var pJ = { + var gJ = { rpc: {}, types: { ClassId: "u32", @@ -22468,7 +22468,7 @@ ${gz(e, r)}`); } } }; - var mJ = { + var yJ = { rpc: {}, types: { Multisig: { @@ -22483,7 +22483,7 @@ ${gz(e, r)}`); } } }; - var gJ = { + var bJ = { rpc: {}, types: { VestingInfo: { @@ -22493,7 +22493,7 @@ ${gz(e, r)}`); } } }; - var yJ = { + var wJ = { rpc: {}, types: { BlockAttestations: { @@ -22511,7 +22511,7 @@ ${gz(e, r)}`); MoreAttestations: {} } }; - var bJ = { + var vJ = { rpc: {}, types: { BridgedBlockHash: "H256", @@ -22596,7 +22596,7 @@ ${gz(e, r)}`); } } }; - var wJ = { + var xJ = { rpc: {}, types: { StatementKind: { @@ -22604,7 +22604,7 @@ ${gz(e, r)}`); } } }; - var vJ = { + var _J = { rpc: {}, types: { FundIndex: "u32", @@ -22630,7 +22630,7 @@ ${gz(e, r)}`); TrieIndex: "u32" } }; - var xJ = { + var EJ = { CollectCollationInfo: [ { methods: { @@ -22659,7 +22659,7 @@ ${gz(e, r)}`); } ] }; - var _J = { + var SJ = { CollationInfo: { upwardMessages: "Vec", horizontalMessages: "Vec", @@ -22687,10 +22687,10 @@ ${gz(e, r)}`); overweightCount: "OverweightIndex" } }; - var EJ = { + var MJ = { rpc: {}, - runtime: xJ, - types: _J + runtime: EJ, + types: SJ }; var J0 = { methods: { @@ -22702,18 +22702,18 @@ ${gz(e, r)}`); }, version: 1 }; - var SJ = { + var AJ = { KusamaFinalityApi: [J0], PolkadotFinalityApi: [J0], RococoFinalityApi: [J0], WestendFinalityApi: [J0] }; - var MJ = { + var TJ = { rpc: {}, - runtime: SJ, + runtime: AJ, types: {} }; - var AJ = { + var NJ = { HrmpChannel: { maxCapacity: "u32", maxTotalSize: "u32", @@ -22737,7 +22737,7 @@ ${gz(e, r)}`); maxTotalSize: "u32" } }; - var Mo = { + var So = { assumed_validation_data: { description: "Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.", params: [ @@ -22865,7 +22865,7 @@ ${gz(e, r)}`); type: "Vec" } }; - var wa = { + var ya = { pvfs_require_precheck: { description: "Returns code hashes of PVFs that require pre-checking by validators in the active set.", params: [], @@ -22910,14 +22910,14 @@ ${gz(e, r)}`); type: "Option" } }; - var _c = { + var vc = { disputes: { description: "Returns all onchain disputes.", params: [], type: "Vec<(SessionIndex, CandidateHash, DisputeState)>" } }; - var pu = { + var du = { session_executor_params: { description: "Returns execution parameters for the session.", params: [ @@ -22960,7 +22960,7 @@ ${gz(e, r)}`); type: "Vec<(SessionIndex, CandidateHash, PendingSlashes)>" } }; - var yh = { + var gh = { minimum_backing_votes: { description: "Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!", params: [], @@ -22984,125 +22984,125 @@ ${gz(e, r)}`); type: "Option" } }; - var Ty = { + var Ay = { disabled_validators: { description: "Returns a list of all disabled validators at the given block", params: [], type: "ValidatorIndex" } }; - var W6 = { + var q6 = { node_features: { description: "Get node features. This is a staging method! Do not use on production runtimes!", params: [], type: "NodeFeatures" } }; - var TJ = { + var IJ = { approval_voting_params: { description: "Approval voting configuration parameters", params: [], type: "ApprovalVotingParams" } }; - var NJ = { + var OJ = { ParachainHost: [ { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul, - ...yh, + ...gh, ...Q0, - ...Ty, - ...W6, - ...TJ + ...Ay, + ...q6, + ...IJ }, version: 10 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul, - ...yh, + ...gh, ...Q0, - ...Ty, - ...W6 + ...Ay, + ...q6 }, version: 9 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul, - ...yh, + ...gh, ...Q0, - ...Ty + ...Ay }, version: 8 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul, - ...yh, + ...gh, ...Q0 }, version: 7 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul, - ...yh + ...gh }, version: 6 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu, + ...So, + ...ya, + ...vc, + ...du, ...Ul }, version: 5 }, { methods: { - ...Mo, - ...wa, - ..._c, - ...pu + ...So, + ...ya, + ...vc, + ...du }, version: 4 }, { methods: { - ...Mo, - ...wa, - ..._c + ...So, + ...ya, + ...vc }, version: 3 }, { methods: { - ...Mo, - ...wa + ...So, + ...ya }, version: 2 }, @@ -23118,19 +23118,19 @@ ${gz(e, r)}`); ], type: "Option" }, - ...Mo + ...So }, version: 1 } ] }; - var G6 = { + var W6 = { _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "OneOne", "OneTwo", "OneThree", "TwoTwo", "TwoThree", "ThreeThree"] }; - var K6 = { + var G6 = { _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "ZeroFour", "ZeroFive", "ZeroSix", "ZeroSeven", "OneOne", "OneTwo", "OneThree", "OneFour", "OneFive", "OneSix", "OneSeven", "TwoTwo", "TwoThree", "TwoFour", "TwoFive", "TwoSix", "TwoSeven", "ThreeThree", "ThreeFour", "ThreeFive", "ThreeSix", "ThreeSeven", "FourFour", "FourFive", "FourSix", "FourSeven", "FiveFive", "FiveSix", "FiveSeven", "SixSix", "SixSeven", "SevenSeven"] }; - var IJ = { + var PJ = { Bidder: { _enum: { New: "NewBidder", @@ -23159,22 +23159,22 @@ ${gz(e, r)}`); }, SubId: "u32" }; - var OJ = { - ...IJ, + var kJ = { + ...PJ, AuctionIndex: "u32", LeasePeriod: "BlockNumber", LeasePeriodOf: "BlockNumber", - SlotRange10: G6, - SlotRange: K6, - WinningData10: `[WinningDataEntry; ${G6._enum.length}]`, - WinningData: `[WinningDataEntry; ${K6._enum.length}]`, + SlotRange10: W6, + SlotRange: G6, + WinningData10: `[WinningDataEntry; ${W6._enum.length}]`, + WinningData: `[WinningDataEntry; ${G6._enum.length}]`, WinningDataEntry: "Option<(AccountId, ParaId, BalanceOf)>", WinnersData10: "Vec", WinnersData: "Vec", WinnersDataTuple10: "(AccountId, ParaId, BalanceOf, SlotRange10)", WinnersDataTuple: "(AccountId, ParaId, BalanceOf, SlotRange)" }; - var PJ = { + var RJ = { ParachainProposal: { proposer: "AccountId", genesisHead: "HeadData", @@ -23187,12 +23187,12 @@ ${gz(e, r)}`); proposer: "AccountId" } }; - var kJ = { + var CJ = { ServiceQuality: { _enum: ["Ordered", "Fast"] } }; - var RJ = { + var DJ = { DisputeLocation: { _enum: ["Local", "Remote"] }, @@ -23253,15 +23253,15 @@ ${gz(e, r)}`); } } }; - var CJ = { + var LJ = { rpc: {}, - runtime: NJ, + runtime: OJ, types: { - ...kJ, + ...CJ, + ...DJ, + ...NJ, ...RJ, - ...AJ, - ...PJ, - ...OJ, + ...kJ, AbridgedCandidateReceipt: { parachainIndex: "ParaId", relayParent: "Hash", @@ -23729,13 +23729,13 @@ ${gz(e, r)}`); VecInboundHrmpMessage: "Vec" } }; - var DJ = { + var BJ = { rpc: {}, types: { Approvals: "[bool; 4]" } }; - var LJ = { + var UJ = { rpc: {}, types: { AccountStatus: { @@ -23774,7 +23774,7 @@ ${gz(e, r)}`); } get encodedLength() { const r = this.length; - let n = qr(r).length; + let n = Hr(r).length; for (let i = 0; i < r; i++) n += this[i].encodedLength; return n; @@ -23794,7 +23794,7 @@ ${gz(e, r)}`); inspect() { return { inner: this.inspectInner(), - outer: [qr(this.length)] + outer: [Hr(this.length)] }; } inspectInner() { @@ -23835,7 +23835,7 @@ ${gz(e, r)}`); } toU8a(r) { const n = this.toU8aInner(); - return pi(r ? n : [qr(this.length), ...n]); + return pi(r ? n : [Hr(this.length), ...n]); } toU8aInner(r) { const n = this.length, i = new Array(n); @@ -23896,20 +23896,20 @@ ${gz(e, r)}`); return this.__internal__raw; } }; - var BJ = 64; - var X6 = 52; - var UJ = new ct(1e4); - var jJ = [ + var jJ = 64; + var K6 = 52; + var VJ = new ct(1e4); + var zJ = [ ["Perquintill", BN], - ["Perbill", fd], + ["Perbill", ld], ["Permill", LN], ["Percent", DN] ]; - function VJ(t) { + function FJ(t) { return St(t.toBn); } - function zJ(t, e) { - return `${(t.mul(UJ).div(e).toNumber() / 100).toFixed(2)}%`; + function HJ(t, e) { + return `${(t.mul(VJ).div(e).toNumber() / 100).toFixed(2)}%`; } function OP(t, e) { if (rr(t)) { @@ -23923,10 +23923,10 @@ ${gz(e, r)}`); throw new Error("String should not contain decimal points or scientific notation"); return t; } else { - if (Ki(t) || ic(t)) + if (Ki(t) || rc(t)) return t.toString(); if (di(t)) { - if (VJ(t)) + if (FJ(t)) return t.toBn().toString(); const r = Object.keys(t); if (r.length !== 1) @@ -23938,9 +23938,9 @@ ${gz(e, r)}`); throw new Error(`Unable to create BN from unknown type ${typeof t}`); } var PP = class extends ct { - constructor(r, n = 0, i = BJ, s = false) { + constructor(r, n = 0, i = jJ, s = false) { super( - Et(n) ? i <= 48 ? ON(n.subarray(0, i / 8), { isNegative: s }) : Zn(n.subarray(0, i / 8), { isLe: true, isNegative: s }).toString() : OP(n, s) + Et(n) ? i <= 48 ? ON(n.subarray(0, i / 8), { isNegative: s }) : Yn(n.subarray(0, i / 8), { isLe: true, isNegative: s }).toString() : OP(n, s) ); re(this, "registry"); re(this, "encodedLength"); @@ -23992,15 +23992,15 @@ ${gz(e, r)}`); toHuman(r) { const n = this.toRawType(); if (n === "Balance") - return this.isMax() ? "everything" : au(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainTokens[0] }); - const [, i] = jJ.find(([s]) => s === n) || []; - return i ? zJ(this, i) : P1(this); + return this.isMax() ? "everything" : ou(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainTokens[0] }); + const [, i] = zJ.find(([s]) => s === n) || []; + return i ? HJ(this, i) : k1(this); } toJSON(r = false) { - return r || this.__internal__bitLength > 128 || super.bitLength() > X6 ? this.toHex() : this.toNumber(); + return r || this.__internal__bitLength > 128 || super.bitLength() > K6 ? this.toHex() : this.toNumber(); } toPrimitive() { - return super.bitLength() > X6 ? this.toString() : this.toNumber(); + return super.bitLength() > K6 ? this.toString() : this.toNumber(); } toRawType() { return this instanceof this.registry.createClassUnsafe("Balance") ? "Balance" : `${this.isUnsigned ? "u" : "i"}${this.bitLength()}`; @@ -24009,32 +24009,32 @@ ${gz(e, r)}`); return super.toString(r); } toU8a(r) { - return Hr(this, { + return Fr(this, { bitLength: this.bitLength(), isLe: true, isNegative: !this.isUnsigned }); } }; - function FJ(t, e) { + function qJ(t, e) { return Ar(t) || (NP(t) ? !t.eq(e) : t !== e); } - function HJ(t) { + function WJ(t) { return !Array.isArray(t) || t.length !== 2; } - function Ny(t, e) { - return t.size === e.length && !e.some((r) => HJ(r) || FJ(t.get(r[0]), r[1])); + function Ty(t, e) { + return t.size === e.length && !e.some((r) => WJ(r) || qJ(t.get(r[0]), r[1])); } - function p8(t, e) { - return Array.isArray(e) ? Ny(t, e) : e instanceof Map ? Ny(t, [...e.entries()]) : di(e) ? Ny(t, Object.entries(e)) : false; + function d8(t, e) { + return Array.isArray(e) ? Ty(t, e) : e instanceof Map ? Ty(t, [...e.entries()]) : di(e) ? Ty(t, Object.entries(e)) : false; } - function Iy(t, e) { + function Ny(t, e) { return t.size === e.length && !e.some((r) => !t.has(r)); } - function qJ(t, e) { - return Array.isArray(e) ? Iy(t, e) : e instanceof Set ? Iy(t, [...e.values()]) : di(e) ? Iy(t, Object.values(e)) : false; + function GJ(t, e) { + return Array.isArray(e) ? Ny(t, e) : e instanceof Set ? Ny(t, [...e.values()]) : di(e) ? Ny(t, Object.values(e)) : false; } - function m8(t, e, r, { message: n }, i, s, o, a, c) { + function p8(t, e, r, { message: n }, i, s, o, a, c) { let u = ""; try { u = `: ${new a(t).toRawType()}`; @@ -24042,7 +24042,7 @@ ${gz(e, r)}`); } return `${e}: failed at ${Bt(i.subarray(0, 16))}\u2026${c ? ` on ${c}` : ""} (index ${s + 1}/${o})${u}:: ${n}`; } - function g8(t, e, r, [n, i]) { + function m8(t, e, r, [n, i]) { const s = e.length; let o = 0, a = 0; try { @@ -24051,11 +24051,11 @@ ${gz(e, r)}`); o += c.initialU8aLength || c.encodedLength, e[a] = c, a++; } } catch (c) { - throw new Error(m8(t, "decodeU8a", e, c, r.subarray(o), a, s, n[a], i[a])); + throw new Error(p8(t, "decodeU8a", e, c, r.subarray(o), a, s, n[a], i[a])); } return [e, o]; } - function WJ(t, e, r, [n, i]) { + function KJ(t, e, r, [n, i]) { const s = e.length; let o = 0, a = 0; try { @@ -24064,7 +24064,7 @@ ${gz(e, r)}`); o += c.initialU8aLength || c.encodedLength, e[a] = [i[a], c], a++; } } catch (c) { - throw new Error(m8(t, "decodeU8aStruct", e, c, r.subarray(o), a, s, n[a], i[a])); + throw new Error(p8(t, "decodeU8aStruct", e, c, r.subarray(o), a, s, n[a], i[a])); } return [e, o]; } @@ -24077,39 +24077,39 @@ ${gz(e, r)}`); o += c.initialU8aLength || c.encodedLength, e[a] = c, a++; } } catch (c) { - throw new Error(m8(t, "decodeU8aVec", e, c, r.subarray(o), a, s, i)); + throw new Error(p8(t, "decodeU8aVec", e, c, r.subarray(o), a, s, i)); } return [o, o - n]; } - var $3 = ["BTreeMap", "BTreeSet", "HashMap", "Vec"]; - var GJ = $3.concat(["Compact", "DoNotConstruct", "Int", "Linkage", "Range", "RangeInclusive", "Result", "Opaque", "Option", "UInt", "WrapperKeepOpaque", "WrapperOpaque"]); - var U1 = ["<", "(", "[", '"', ",", " "]; - var Y6 = [ - Ao("::Inherent", "InherentOfflineReport", false), - Ao("VecDeque<", "Vec<", false), - XJ(), - Z6("Bounded", true), - Z6("Weak", false), + var Q3 = ["BTreeMap", "BTreeSet", "HashMap", "Vec"]; + var XJ = Q3.concat(["Compact", "DoNotConstruct", "Int", "Linkage", "Range", "RangeInclusive", "Result", "Opaque", "Option", "UInt", "WrapperKeepOpaque", "WrapperOpaque"]); + var j1 = ["<", "(", "[", '"', ",", " "]; + var X6 = [ + Mo("::Inherent", "InherentOfflineReport", false), + Mo("VecDeque<", "Vec<", false), + ZJ(), + Y6("Bounded", true), + Y6("Weak", false), + tQ(), + eQ(), + rQ("Box<"), $J(), - QJ(), - eQ("Box<"), + Mo("String", "Text"), + Mo("Vec", "Bytes"), + Mo("&\\[u8\\]", "Bytes"), + Mo("&'static\\[u8\\]", "Bytes"), + Mo("RawAddress", "Address"), + Mo("Lookup::Source", "LookupSource"), + Mo("Lookup::Target", "LookupTarget"), + Mo("exec::StorageKey", "ContractStorageKey"), JJ(), - Ao("String", "Text"), - Ao("Vec", "Bytes"), - Ao("&\\[u8\\]", "Bytes"), - Ao("&'static\\[u8\\]", "Bytes"), - Ao("RawAddress", "Address"), - Ao("Lookup::Source", "LookupSource"), - Ao("Lookup::Target", "LookupTarget"), - Ao("exec::StorageKey", "ContractStorageKey"), - YJ(), - ZJ(), - KJ() + QJ(), + YJ() ]; - function KJ() { + function YJ() { return (t) => t.trim(); } - function y8(t, e) { + function g8(t, e) { let r = 0; for (let n = e, i = t.length; n < i; n++) if (t[n] === ">") { @@ -24120,40 +24120,40 @@ ${gz(e, r)}`); t[n] === "<" && r++; throw new Error(`Unable to find closing matching <> on '${t}' (start ${e})`); } - function Ao(t, e, r = true) { - const n = new RegExp(`(^${t}|${U1.map((s) => `\\${s}${t}`).join("|")})`, "g"), i = (s) => (n.lastIndex = 0, r && U1.includes(s[0]) ? `${s[0]}${e}` : e); + function Mo(t, e, r = true) { + const n = new RegExp(`(^${t}|${j1.map((s) => `\\${s}${t}`).join("|")})`, "g"), i = (s) => (n.lastIndex = 0, r && j1.includes(s[0]) ? `${s[0]}${e}` : e); return (s) => s.replace(n, i); } - function XJ() { + function ZJ() { return (t) => { if (t.includes(" as HasCompact")) { for (let e = 0, r = t.length; e < r; e++) if (t[e] === "<") { - const n = y8(t, e + 1) - 14; + const n = g8(t, e + 1) - 14; t.substring(n, n + 14) === " as HasCompact" && (t = `Compact<${t.substring(e + 1, n)}>`); } } return t; }; } - function YJ() { + function JJ() { const t = /,\)/g, e = /\(([^,]+)\)/; return (r) => (t.lastIndex = 0, r.replace(t, ")").replace(e, "$1")); } - function b8(t, e, r) { + function y8(t, e, r) { let n = -1; for (; ; ) { if (n = t.indexOf(e, n + 1), n === -1) return t; - const i = n + e.length, s = y8(t, i); + const i = n + e.length, s = g8(t, i); t = `${t.substring(0, n)}${r(t.substring(i, s))}${t.substring(s + 1)}`; } } - function Z6(t, e) { + function Y6(t, e) { return (r) => { - for (let n = 0, i = $3.length; n < i; n++) { - const s = $3[n]; - r = b8(r, `${t}${s}<`, (o) => { + for (let n = 0, i = Q3.length; n < i; n++) { + const s = Q3[n]; + r = y8(r, `${t}${s}<`, (o) => { const a = o.split(",").map((c) => c.trim()).filter((c) => c); return e && a.pop(), `${s}<${a.join(",")}>`; }); @@ -24161,7 +24161,7 @@ ${gz(e, r)}`); return r; }; } - function ZJ() { + function QJ() { return (t) => { let e = 0; for (; e !== -1; ) @@ -24169,65 +24169,65 @@ ${gz(e, r)}`); t = t.substring(2); else if (e !== -1) { let r = e; - for (; r !== -1 && !U1.includes(t[r]); ) + for (; r !== -1 && !j1.includes(t[r]); ) r--; t = `${t.substring(0, r + 1)}${t.substring(e + 2)}`; } return t; }; } - function JJ() { + function $J() { return (t) => { for (let e = 0, r = t.length; e < r; e++) - if (t[e] === "<" && !GJ.find((i) => { + if (t[e] === "<" && !XJ.find((i) => { const s = e - i.length; - return s >= 0 && t.substring(s, e) === i && (s === 0 || U1.includes(t[s - 1])); + return s >= 0 && t.substring(s, e) === i && (s === 0 || j1.includes(t[s - 1])); })) { - const i = y8(t, e + 1); + const i = g8(t, e + 1); t = `${t.substring(0, e)}${t.substring(i + 1)}`; } return t; }; } - function QJ() { + function eQ() { const t = (e) => `(${e},${e})`; - return (e) => b8(e, "PairOf<", t); + return (e) => y8(e, "PairOf<", t); } - function $J() { + function tQ() { const t = /\s/g, e = /(T|Self)::/g, r = /<(T|Self)asTrait>::/g, n = /::/g, i = //g, s = /::Type/g; return (o) => (t.lastIndex = 0, e.lastIndex = 0, r.lastIndex = 0, n.lastIndex = 0, i.lastIndex = 0, s.lastIndex = 0, o.replace(t, "").replace(e, "").replace(r, "").replace(n, "").replace(i, "Lookup").replace(s, "")); } - function eQ(t) { + function rQ(t) { const e = (r) => r; - return (r) => b8(r, t, e); + return (r) => y8(r, t, e); } - var J6 = /* @__PURE__ */ new Map(); - function j1(t) { - const e = t.toString(), r = J6.get(e); + var Z6 = /* @__PURE__ */ new Map(); + function V1(t) { + const e = t.toString(), r = Z6.get(e); if (r) return r; let n = e; - for (let i = 0, s = Y6.length; i < s; i++) - n = Y6[i](n); - return J6.set(e, n), n; + for (let i = 0, s = X6.length; i < s; i++) + n = X6[i](n); + return Z6.set(e, n), n; } - function Q6(t) { + function J6(t) { return t instanceof Uint8Array || Array.isArray(t); } - function $6(t) { + function Q6(t) { return ss(t) && rr(t.index) && ss(t.value); } - function e7(t) { + function $6(t) { return ss(t) && Af(t.isSome) && ss(t.value); } - function t7(t) { - return rr(t) || Ki(t) || ic(t); + function e7(t) { + return rr(t) || Ki(t) || rc(t); } - function tQ(t, e) { + function nQ(t, e) { let r = 0; const n = Math.min(t.length, e.length); for (let i = 0; i < n; ++i) - if (r = Ca(t[i], e[i]), r !== 0) + if (r = ka(t[i], e[i]), r !== 0) return r; return t.length - e.length; } @@ -24240,42 +24240,42 @@ ${gz(e, r)}`); } return true; } - function Ca(t, e) { - if (t7(t) && t7(e)) + function ka(t, e) { + if (e7(t) && e7(e)) return on(t).cmp(on(e)); if (t instanceof Map && e instanceof Map) - return Ca(Array.from(t.values()), Array.from(e.values())); - if ($6(t) && $6(e)) - return Ca(t.index, e.index) || Ca(t.value, e.value); - if (e7(t) && e7(e)) - return Ca(t.isNone ? 0 : 1, e.isNone ? 0 : 1) || Ca(t.value, e.value); + return ka(Array.from(t.values()), Array.from(e.values())); if (Q6(t) && Q6(e)) - return tQ(t, e); + return ka(t.index, e.index) || ka(t.value, e.value); + if ($6(t) && $6(e)) + return ka(t.isNone ? 0 : 1, e.isNone ? 0 : 1) || ka(t.value, e.value); + if (J6(t) && J6(e)) + return nQ(t, e); if (ss(t) && ss(e)) - return Ca(t.toU8a(true), e.toU8a(true)); + return ka(t.toU8a(true), e.toU8a(true)); throw new Error(`Attempting to sort unrecognized values: ${Ct(t)} (typeof ${typeof t}) <-> ${Ct(e)} (typeof ${typeof e})`); } - function rQ(t) { + function iQ(t) { const e = /* @__PURE__ */ new Set(); - return new Set(Array.from(t).filter((r) => kP("BTreeSet", e, r)).sort(Ca)); + return new Set(Array.from(t).filter((r) => kP("BTreeSet", e, r)).sort(ka)); } - function nQ(t) { + function sQ(t) { const e = /* @__PURE__ */ new Set(); - return new Map(Array.from(t.entries()).filter(([r]) => kP("BTreeMap", e, r)).sort(([r], [n]) => Ca(r, n))); + return new Map(Array.from(t.entries()).filter(([r]) => kP("BTreeMap", e, r)).sort(([r], [n]) => ka(r, n))); } - function yo(t, e) { + function go(t, e) { return typeof e == "function" ? e : t.createClassUnsafe(e); } - function iQ(t, e) { + function oQ(t, e) { const r = e.length, n = new Array(r); for (let i = 0; i < r; i++) - n[i] = yo(t, e[i]); + n[i] = go(t, e[i]); return n; } - function w8(t, e) { + function b8(t, e) { const r = Object.entries(e), n = r.length, i = [new Array(n), new Array(n)]; for (let s = 0; s < n; s++) - i[1][s] = r[s][0], i[0][s] = yo(t, r[s][1]); + i[1][s] = r[s][0], i[0][s] = go(t, r[s][1]); return i; } function RP(t, [e, r]) { @@ -24284,9 +24284,9 @@ ${gz(e, r)}`); n[r[i]] = t.getClassName(e[i]) || new e[i](t).toRawType(); return n; } - function sQ(t, e, r) { + function aQ(t, e, r) { if (Et(r)) { - const [n, i] = (r[0] & 3) < 3 ? ou(r) : sg(r); + const [n, i] = (r[0] & 3) < 3 ? su(r) : sg(r); return [new e(t, i), n]; } else if (r instanceof Rf) { const n = r.unwrap(); @@ -24296,15 +24296,15 @@ ${gz(e, r)}`); return [new e(t, r), 0]; } var Rf = class { - constructor(e, r, n = 0, { definition: i, setDefinition: s = cu } = {}) { + constructor(e, r, n = 0, { definition: i, setDefinition: s = au } = {}) { re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); re(this, "isStorageFallback"); re(this, "__internal__Type"); re(this, "__internal__raw"); - this.registry = e, this.__internal__Type = i || s(yo(e, r)); - const [o, a] = sQ(e, this.__internal__Type, n); + this.registry = e, this.__internal__Type = i || s(go(e, r)); + const [o, a] = aQ(e, this.__internal__Type, n); this.initialU8aLength = a, this.__internal__raw = o; } static with(e) { @@ -24364,13 +24364,13 @@ ${gz(e, r)}`); return this.__internal__raw.toString(); } toU8a(e) { - return qr(this.__internal__raw.toBn()); + return Hr(this.__internal__raw.toBn()); } unwrap() { return this.__internal__raw; } }; - var l0 = class { + var f0 = class { constructor(e, r = "DoNotConstruct") { re(this, "registry"); re(this, "createdAtHash"); @@ -24379,7 +24379,7 @@ ${gz(e, r)}`); throw this.registry = e, this.__internal__neverError = new Error(`DoNotConstruct: Cannot construct unknown type ${r}`), this.__internal__neverError; } static with(e) { - return class extends l0 { + return class extends f0 { constructor(r) { super(r, e); } @@ -24422,7 +24422,7 @@ ${gz(e, r)}`); throw this.__internal__neverError; } }; - var po = class { + var ho = class { constructor(e) { re(this, "encodedLength", 0); re(this, "isEmpty", true); @@ -24436,7 +24436,7 @@ ${gz(e, r)}`); throw new Error(".hash is not implemented on Null"); } eq(e) { - return e instanceof po || Fc(e); + return e instanceof ho || Vc(e); } inspect() { return {}; @@ -24463,7 +24463,7 @@ ${gz(e, r)}`); return new Uint8Array(); } }; - function oQ(t) { + function cQ(t) { const e = Object.values(t); if (e.some((r) => rr(r))) { if (!e.every((r) => rr(r) && r >= 0 && r <= 255)) @@ -24472,23 +24472,23 @@ ${gz(e, r)}`); } return true; } - function aQ(t, e) { + function uQ(t, e) { const r = {}; let n, i; if (Array.isArray(e)) { for (let s = 0, o = e.length; s < o; s++) - r[e[s]] = { Type: po, index: s }; + r[e[s]] = { Type: ho, index: s }; n = true, i = false; - } else if (oQ(e)) { - const [s, o] = w8(t, e); + } else if (cQ(e)) { + const [s, o] = b8(t, e); for (let a = 0, c = o.length; a < c; a++) r[o[a]] = { Type: s[a], index: a }; - n = !Object.values(r).some(({ Type: a }) => a !== po), i = false; + n = !Object.values(r).some(({ Type: a }) => a !== ho), i = false; } else { const s = Object.entries(e); for (let o = 0, a = s.length; o < a; o++) { const [c, u] = s[o]; - r[c] = { Type: po, index: u }; + r[c] = { Type: ho, index: u }; } n = true, i = true; } @@ -24514,46 +24514,46 @@ ${gz(e, r)}`); value: new i(t, n) }; } - function Hh(t, e, r = 0, n) { + function Fh(t, e, r = 0, n) { const i = CP(e, r); return { index: r, value: n instanceof i ? n : new i(t, n) }; } - function r7(t, e, r, n) { + function t7(t, e, r, n) { const i = Object.keys(e).map((a) => a.toLowerCase()), s = r.toLowerCase(), o = i.indexOf(s); if (o === -1) throw new Error(`Cannot map Enum JSON, unable to find '${r}' in ${i.join(", ")}`); try { - return Hh(t, e, Object.values(e)[o].index, n); + return Fh(t, e, Object.values(e)[o].index, n); } catch (a) { throw new Error(`Enum(${r}):: ${a.message}`); } } - function cQ(t, e, r, n) { + function lQ(t, e, r, n) { if (rr(n)) - return Hh(t, e, n, r); + return Fh(t, e, n, r); if (Et(r) || Ft(r)) { const i = Xe(r); if (i.length) return DP(t, e, i[0], i.subarray(1)); } else { if (r instanceof us) - return Hh(t, e, r.index, r.value); + return Fh(t, e, r.index, r.value); if (rr(r)) - return Hh(t, e, r); + return Fh(t, e, r); if (pr(r)) - return r7(t, e, r.toString()); + return t7(t, e, r.toString()); if (di(r)) { const i = Object.keys(r)[0]; - return r7(t, e, i, r[i]); + return t7(t, e, i, r[i]); } } - return Hh(t, e, Object.values(e)[0].index); + return Fh(t, e, Object.values(e)[0].index); } var us = class { - constructor(e, r, n, i, { definition: s, setDefinition: o = cu } = {}) { + constructor(e, r, n, i, { definition: s, setDefinition: o = au } = {}) { re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); @@ -24564,7 +24564,7 @@ ${gz(e, r)}`); re(this, "__internal__isBasic"); re(this, "__internal__isIndexed"); re(this, "__internal__raw"); - const { def: a, isBasic: c, isIndexed: u } = s || o(aQ(e, r)), f = Et(n) && n.length && !rr(i) ? DP(e, a, n[0], n.subarray(1)) : cQ(e, a, n, i); + const { def: a, isBasic: c, isIndexed: u } = s || o(uQ(e, r)), f = Et(n) && n.length && !rr(i) ? DP(e, a, n[0], n.subarray(1)) : lQ(e, a, n, i); this.registry = e, this.__internal__def = a, this.__internal__isBasic = c, this.__internal__isIndexed = u, this.__internal__indexes = Object.values(a).map(({ index: p }) => p), this.__internal__entryIndex = this.__internal__indexes.indexOf(f.index), this.__internal__raw = f.value, this.__internal__raw.initialU8aLength && (this.initialU8aLength = 1 + this.__internal__raw.initialU8aLength); } static with(e) { @@ -24581,7 +24581,7 @@ ${gz(e, r)}`); const p = cg(o[f]); c[f] = `as${p}`, u[f] = `is${p}`; } - Jc(i.prototype, u, (f, p, b) => b.type === o[p]), Jc(i.prototype, c, (f, p, b) => { + Yc(i.prototype, u, (f, p, b) => b.type === o[p]), Yc(i.prototype, c, (f, p, b) => { if (b.type !== o[p]) throw new Error(`Cannot convert '${b.type}' via ${f}`); return b.value; @@ -24607,7 +24607,7 @@ ${gz(e, r)}`); return this.__internal__raw.isEmpty; } get isNone() { - return this.__internal__raw instanceof po; + return this.__internal__raw instanceof ho; } get defIndexes() { return this.__internal__indexes; @@ -24667,12 +24667,12 @@ ${gz(e, r)}`); ]); } }; - var fa = class extends PP { + var ua = class extends PP { constructor(e, r = 0, n) { super(e, r, n, true); } static with(e, r) { - return class extends fa { + return class extends ua { constructor(n, i) { super(n, i, e); } @@ -24682,29 +24682,29 @@ ${gz(e, r)}`); }; } }; - var cf = class extends po { + var cf = class extends ho { toRawType() { return "None"; } }; - function uQ(t, e, r) { - return r instanceof e ? r : r instanceof bo ? r.value instanceof e ? r.value : r.isNone ? new cf(t) : new e(t, r.value) : Fc(r) || Ar(r) || r === "0x" || r instanceof cf ? new cf(t) : Et(r) ? !r.length || r[0] === 0 ? new cf(t) : new e(t, r.subarray(1)) : new e(t, r); + function fQ(t, e, r) { + return r instanceof e ? r : r instanceof yo ? r.value instanceof e ? r.value : r.isNone ? new cf(t) : new e(t, r.value) : Vc(r) || Ar(r) || r === "0x" || r instanceof cf ? new cf(t) : Et(r) ? !r.length || r[0] === 0 ? new cf(t) : new e(t, r.subarray(1)) : new e(t, r); } - var bo = class { - constructor(e, r, n, { definition: i, setDefinition: s = cu } = {}) { + var yo = class { + constructor(e, r, n, { definition: i, setDefinition: s = au } = {}) { re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); re(this, "isStorageFallback"); re(this, "__internal__Type"); re(this, "__internal__raw"); - const o = i || s(yo(e, r)), a = Et(n) && n.length && !ss(n) ? n[0] === 0 ? new cf(e) : new o(e, n.subarray(1)) : uQ(e, o, n); + const o = i || s(go(e, r)), a = Et(n) && n.length && !ss(n) ? n[0] === 0 ? new cf(e) : new o(e, n.subarray(1)) : fQ(e, o, n); this.registry = e, this.__internal__Type = o, this.__internal__raw = a, a != null && a.initialU8aLength && (this.initialU8aLength = 1 + a.initialU8aLength); } static with(e) { let r; const n = (i) => (r = i, i); - return class extends bo { + return class extends yo { constructor(i, s) { super(i, e, s, { definition: r, setDefinition: n }); } @@ -24729,7 +24729,7 @@ ${gz(e, r)}`); return this.__internal__raw; } eq(e) { - return e instanceof bo ? this.isSome === e.isSome && this.value.eq(e.value) : this.value.eq(e); + return e instanceof yo ? this.isSome === e.isSome && this.value.eq(e.value) : this.value.eq(e); } inspect() { if (this.isNone) @@ -24812,7 +24812,7 @@ ${gz(e, r)}`); return `Result<${e.Ok},${e.Err}>`; } }; - function lQ(t, e, r, n) { + function hQ(t, e, r, n) { if (Array.isArray(r)) { const i = n[0]; for (let s = 0, o = i.length; s < o; s++) @@ -24825,7 +24825,7 @@ ${gz(e, r)}`); return [e, 0]; } else { if (Ft(r)) - return g8(t, e, Xe(r), n); + return m8(t, e, Xe(r), n); if (!r || !e.length) { const i = n[0]; for (let s = 0, o = i.length; s < o; s++) @@ -24836,11 +24836,11 @@ ${gz(e, r)}`); throw new Error(`Expected array input to Tuple decoding, found ${typeof r}: ${Ct(r)}`); } var El = class extends Ng { - constructor(r, n, i, { definition: s, setDefinition: o = cu } = {}) { - const a = s || o(Array.isArray(n) ? [iQ(r, n), []] : St(n) || pr(n) ? [[yo(r, n)], []] : w8(r, n)); + constructor(r, n, i, { definition: s, setDefinition: o = au } = {}) { + const a = s || o(Array.isArray(n) ? [oQ(r, n), []] : St(n) || pr(n) ? [[go(r, n)], []] : b8(r, n)); super(r, a[0].length); re(this, "__internal__Types"); - this.initialU8aLength = (Et(i) ? g8(r, this, i, a) : lQ(r, this, i, a))[1], this.__internal__Types = a; + this.initialU8aLength = (Et(i) ? m8(r, this, i, a) : hQ(r, this, i, a))[1], this.__internal__Types = a; } static with(r) { let n; @@ -24875,9 +24875,9 @@ ${gz(e, r)}`); return pi(this.toU8aInner(r)); } }; - var ha = class extends PP { + var la = class extends PP { static with(e, r) { - return class extends ha { + return class extends la { constructor(n, i) { super(n, i, e); } @@ -24887,15 +24887,15 @@ ${gz(e, r)}`); }; } }; - var n7 = 64 * 1024; - var fQ = mi("Vec"); - function hQ(t) { + var r7 = 64 * 1024; + var dQ = mi("Vec"); + function pQ(t) { if (Array.isArray(t)) return [t, t.length, 0]; if (Et(t) || Ft(t)) { - const e = Xe(t), [r, n] = ou(e); - if (n > n7) - throw new Error(`Vec length ${n.toString()} exceeds ${n7}`); + const e = Xe(t), [r, n] = su(e); + if (n > r7) + throw new Error(`Vec length ${n.toString()} exceeds ${r7}`); return [e, n, r]; } else if (!t) return [null, 0, 0]; @@ -24909,7 +24909,7 @@ ${gz(e, r)}`); try { e[o] = a instanceof i ? a : new i(t, a); } catch (c) { - throw fQ.error(`Unable to decode on index ${o}`, c.message), c; + throw dQ.error(`Unable to decode on index ${o}`, c.message), c; } } return [0, 0]; @@ -24918,11 +24918,11 @@ ${gz(e, r)}`); return Og(t, e, Xe(r), n, i); } var kg = class extends Ng { - constructor(r, n, i = [], { definition: s, setDefinition: o = cu } = {}) { - const [a, c, u] = hQ(i); + constructor(r, n, i = [], { definition: s, setDefinition: o = au } = {}) { + const [a, c, u] = pQ(i); super(r, c); re(this, "__internal__Type"); - this.__internal__Type = s || o(yo(r, n)), this.initialU8aLength = (Et(a) ? Og(r, this, a, u, this.__internal__Type) : LP(r, this, a, u, this.__internal__Type))[0]; + this.__internal__Type = s || o(go(r, n)), this.initialU8aLength = (Et(a) ? Og(r, this, a, u, this.__internal__Type) : LP(r, this, a, u, this.__internal__Type))[0]; } static with(r) { let n; @@ -24948,10 +24948,10 @@ ${gz(e, r)}`); } }; var Rg = class extends Ng { - constructor(r, n, i, s = [], { definition: o, setDefinition: a = cu } = {}) { + constructor(r, n, i, s = [], { definition: o, setDefinition: a = au } = {}) { super(r, i); re(this, "__internal__Type"); - this.__internal__Type = o || a(yo(r, n)), this.initialU8aLength = (Et(s) ? Og(r, this, s, 0, this.__internal__Type) : LP(r, this, s, 0, this.__internal__Type))[1]; + this.__internal__Type = o || a(go(r, n)), this.initialU8aLength = (Et(s) ? Og(r, this, s, 0, this.__internal__Type) : LP(r, this, s, 0, this.__internal__Type))[1]; } static with(r, n) { let i; @@ -25003,7 +25003,7 @@ ${gz(e, r)}`); return this.registry.hash(this.toU8a()); } get isAscii() { - return A3(this); + return M3(this); } get isEmpty() { return !this.length || Ar(this.find((r) => !!r)); @@ -25034,7 +25034,7 @@ ${gz(e, r)}`); toPrimitive(r) { if (!r && this.isAscii) { const n = this.toUtf8(); - if (A3(n)) + if (M3(n)) return n; } return this.toJSON(); @@ -25051,38 +25051,38 @@ ${gz(e, r)}`); toUtf8() { if (!this.isUtf8) throw new Error("The character sequence is not a valid Utf8 string"); - return fo(this); + return lo(this); } }; - function dQ(t) { + function mQ(t) { if (!(t != null && t.length)) return [0, new Uint8Array()]; - const [e, r] = ou(t), n = e + Math.ceil(r / 8); + const [e, r] = su(t), n = e + Math.ceil(r / 8); if (n > t.length) throw new Error(`BitVec: required length less than remainder, expected at least ${n}, found ${t.length}`); return [r, t.subarray(e, n)]; } - function pQ(t) { + function gQ(t) { if (Array.isArray(t) || pr(t)) { const e = Xe(t); return [e.length / 8, e]; } - return dQ(t); + return mQ(t); } var BP = class extends ls { constructor(r, n, i = false) { - const [s, o] = pQ(n); + const [s, o] = gQ(n); super(r, o); re(this, "__internal__decodedLength"); re(this, "__internal__isMsb"); this.__internal__decodedLength = s, this.__internal__isMsb = i; } get encodedLength() { - return this.length + qr(this.__internal__decodedLength).length; + return this.length + Hr(this.__internal__decodedLength).length; } inspect() { return { - outer: [qr(this.__internal__decodedLength), super.toU8a()] + outer: [Hr(this.__internal__decodedLength), super.toU8a()] }; } toBoolArray() { @@ -25111,13 +25111,13 @@ ${gz(e, r)}`); } toU8a(r) { const n = super.toU8a(r); - return r ? n : pi([qr(this.__internal__decodedLength), n]); + return r ? n : pi([Hr(this.__internal__decodedLength), n]); } }; - function mQ(t) { + function yQ(t) { return t; } - function gQ(t, [e, r], n, i) { + function bQ(t, [e, r], n, i) { let s; const o = Array.isArray(n), a = n instanceof Map, c = r.length; if (!o && !a && !di(n)) @@ -25158,8 +25158,8 @@ ${gz(e, r)}`); return [u, 0]; } var cn = class extends Map { - constructor(r, n, i, s = /* @__PURE__ */ new Map(), { definition: o, setDefinition: a = mQ } = {}) { - const c = o || a(w8(r, n)), [u, f] = Et(i) || Ft(i) ? WJ(r, new Array(c[0].length), Xe(i), c) : i instanceof cn ? [i, 0] : gQ(r, c, i || {}, s); + constructor(r, n, i, s = /* @__PURE__ */ new Map(), { definition: o, setDefinition: a = yQ } = {}) { + const c = o || a(b8(r, n)), [u, f] = Et(i) || Ft(i) ? KJ(r, new Array(c[0].length), Xe(i), c) : i instanceof cn ? [i, 0] : bQ(r, c, i || {}, s); super(u); re(this, "registry"); re(this, "createdAtHash"); @@ -25179,7 +25179,7 @@ ${gz(e, r)}`); } }, (() => { const c = Object.keys(r); - Jc(o.prototype, c, (u, f, p) => p.get(u)); + Yc(o.prototype, c, (u, f, p) => p.get(u)); })(), o; } get defKeys() { @@ -25207,7 +25207,7 @@ ${gz(e, r)}`); return r; } eq(r) { - return p8(this, r); + return d8(this, r); } get(r) { return super.get(r); @@ -25266,45 +25266,45 @@ ${gz(e, r)}`); return pi(n); } }; - var yQ = mi("Map"); - function bQ(t, e, r, n) { - const i = /* @__PURE__ */ new Map(), [s, o] = ou(n), a = []; + var wQ = mi("Map"); + function vQ(t, e, r, n) { + const i = /* @__PURE__ */ new Map(), [s, o] = su(n), a = []; for (let f = 0; f < o; f++) a.push(e, r); - const [c, u] = g8(t, new Array(a.length), n.subarray(s), [a, []]); + const [c, u] = m8(t, new Array(a.length), n.subarray(s), [a, []]); for (let f = 0, p = c.length; f < p; f += 2) i.set(c[f], c[f + 1]); return [e, r, i, s + u]; } - function i7(t, e, r, n) { + function n7(t, e, r, n) { const i = /* @__PURE__ */ new Map(); for (const [s, o] of n.entries()) { const a = e.prototype instanceof Ng || e.prototype instanceof cn || e.prototype instanceof us; try { i.set(s instanceof e ? s : new e(t, a && typeof s == "string" ? JSON.parse(s) : s), o instanceof r ? o : new r(t, o)); } catch (c) { - throw yQ.error("Failed to decode key or value:", c.message), c; + throw wQ.error("Failed to decode key or value:", c.message), c; } } return [e, r, i, 0]; } - function wQ(t, e, r, n) { - const i = yo(t, e), s = yo(t, r); + function xQ(t, e, r, n) { + const i = go(t, e), s = go(t, r); if (n) { if (Et(n) || Ft(n)) - return bQ(t, i, s, Xe(n)); + return vQ(t, i, s, Xe(n)); if (n instanceof Map) - return i7(t, i, s, n); + return n7(t, i, s, n); if (di(n)) - return i7(t, i, s, new Map(Object.entries(n))); + return n7(t, i, s, new Map(Object.entries(n))); } else return [i, s, /* @__PURE__ */ new Map(), 0]; throw new Error("Map: cannot decode type"); } - var V1 = class extends Map { + var z1 = class extends Map { constructor(r, n, i, s, o = "HashMap") { - const [a, c, u, f] = wQ(r, n, i, s); - super(o === "BTreeMap" ? nQ(u) : u); + const [a, c, u, f] = xQ(r, n, i, s); + super(o === "BTreeMap" ? sQ(u) : u); re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); @@ -25315,7 +25315,7 @@ ${gz(e, r)}`); this.registry = r, this.initialU8aLength = f, this.__internal__KeyClass = a, this.__internal__ValClass = c, this.__internal__type = o; } get encodedLength() { - let r = qr(this.size).length; + let r = Hr(this.size).length; for (const [n, i] of this.entries()) r += n.encodedLength + i.encodedLength; return r; @@ -25327,7 +25327,7 @@ ${gz(e, r)}`); return this.size === 0; } eq(r) { - return p8(this, r); + return d8(this, r); } inspect() { const r = []; @@ -25335,7 +25335,7 @@ ${gz(e, r)}`); r.push(n.inspect()), r.push(i.inspect()); return { inner: r, - outer: [qr(this.size)] + outer: [Hr(this.size)] }; } toHex() { @@ -25367,13 +25367,13 @@ ${gz(e, r)}`); } toU8a(r) { const n = []; - r || n.push(qr(this.size)); + r || n.push(Hr(this.size)); for (const [i, s] of this.entries()) n.push(i.toU8a(r), s.toU8a(r)); return pi(n); } }; - var Cg = class extends V1 { + var Cg = class extends z1 { static with(e, r) { return class extends Cg { constructor(n, i) { @@ -25382,38 +25382,38 @@ ${gz(e, r)}`); }; } }; - var vQ = mi("BTreeSet"); - function xQ(t, e, r) { - const n = /* @__PURE__ */ new Set(), [i, s] = ou(r), o = new Array(s), [a] = Og(t, o, r, i, e); + var _Q = mi("BTreeSet"); + function EQ(t, e, r) { + const n = /* @__PURE__ */ new Set(), [i, s] = su(r), o = new Array(s), [a] = Og(t, o, r, i, e); for (let c = 0; c < s; c++) n.add(o[c]); return [e, n, a]; } - function _Q(t, e, r) { + function SQ(t, e, r) { const n = /* @__PURE__ */ new Set(); return r.forEach((i) => { try { n.add(i instanceof e ? i : new e(t, i)); } catch (s) { - throw vQ.error("Failed to decode key or value:", s.message), s; + throw _Q.error("Failed to decode key or value:", s.message), s; } }), [e, n, 0]; } - function EQ(t, e, r) { - const n = yo(t, e); + function MQ(t, e, r) { + const n = go(t, e); if (r) { if (Et(r) || Ft(r)) - return xQ(t, n, Xe(r)); + return EQ(t, n, Xe(r)); if (Array.isArray(r) || r instanceof Set) - return _Q(t, n, r); + return SQ(t, n, r); } else return [n, /* @__PURE__ */ new Set(), 0]; throw new Error("BTreeSet: cannot decode type"); } var Dg = class extends Set { constructor(r, n, i) { - const [s, o, a] = EQ(r, n, i); - super(rQ(o)); + const [s, o, a] = MQ(r, n, i); + super(iQ(o)); re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); @@ -25429,7 +25429,7 @@ ${gz(e, r)}`); }; } get encodedLength() { - let r = qr(this.size).length; + let r = Hr(this.size).length; for (const n of this.values()) r += n.encodedLength; return r; @@ -25444,7 +25444,7 @@ ${gz(e, r)}`); return [...super.values()].map((r) => r.toString()); } eq(r) { - return qJ(this, r); + return GJ(this, r); } inspect() { const r = []; @@ -25452,7 +25452,7 @@ ${gz(e, r)}`); r.push(n.inspect()); return { inner: r, - outer: [qr(this.size)] + outer: [Hr(this.size)] }; } toHex() { @@ -25484,33 +25484,33 @@ ${gz(e, r)}`); } toU8a(r) { const n = []; - r || n.push(qr(this.size)); + r || n.push(Hr(this.size)); for (const i of this.values()) n.push(i.toU8a(r)); return pi(n); } }; - var s7 = 10 * 1024 * 1024; - function SQ(t) { + var i7 = 10 * 1024 * 1024; + function AQ(t) { if (!t.length) return [new Uint8Array(), 0]; - const [e, r] = ou(t), n = e + r; - if (r > s7) - throw new Error(`Bytes length ${r.toString()} exceeds ${s7}`); + const [e, r] = su(t), n = e + r; + if (r > i7) + throw new Error(`Bytes length ${r.toString()} exceeds ${i7}`); if (n > t.length) throw new Error(`Bytes: required length less than remainder, expected at least ${n}, found ${t.length}`); return [t.subarray(e, n), n]; } - var f0 = class extends ls { + var h0 = class extends ls { constructor(e, r) { - const [n, i] = Et(r) && !(r instanceof ls) ? SQ(r) : Array.isArray(r) || pr(r) ? [Xe(r), 0] : [r, 0]; + const [n, i] = Et(r) && !(r instanceof ls) ? AQ(r) : Array.isArray(r) || pr(r) ? [Xe(r), 0] : [r, 0]; super(e, n, i); } get encodedLength() { - return this.length + qr(this.length).length; + return this.length + Hr(this.length).length; } inspect(e) { - const r = qr(this.length); + const r = Hr(this.length); return { outer: e ? [super.toU8a()] : this.length ? [r, super.toU8a()] : [r] }; @@ -25519,10 +25519,10 @@ ${gz(e, r)}`); return "Bytes"; } toU8a(e) { - return e ? super.toU8a(e) : ua(this); + return e ? super.toU8a(e) : aa(this); } }; - var Lg = class extends V1 { + var Lg = class extends z1 { static with(e, r) { return class extends Lg { constructor(n, i) { @@ -25531,16 +25531,16 @@ ${gz(e, r)}`); }; } }; - var MQ = new Uint8Array(); - var v8 = class extends cn { + var TQ = new Uint8Array(); + var w8 = class extends cn { constructor(e, r, n) { super(e, { - previous: bo.with(r), - next: bo.with(r) + previous: yo.with(r), + next: yo.with(r) }, n); } static withKey(e) { - return class extends v8 { + return class extends w8 { constructor(r, n) { super(r, e, n); } @@ -25556,10 +25556,10 @@ ${gz(e, r)}`); return `Linkage<${this.next.toRawType(true)}>`; } toU8a(e) { - return this.isEmpty ? MQ : super.toU8a(e); + return this.isEmpty ? TQ : super.toU8a(e); } }; - var tu = class extends Boolean { + var $c = class extends Boolean { constructor(r, n = false) { super(Et(n) ? n[0] === 1 : n instanceof Boolean ? n.valueOf() : !!n); re(this, "registry"); @@ -25613,12 +25613,12 @@ ${gz(e, r)}`); return new Uint8Array([this.valueOf() ? 1 : 0]); } }; - function AQ(t, e) { - return e[0] === 0 ? null : new tu(t, e[0] === 1); + function NQ(t, e) { + return e[0] === 0 ? null : new $c(t, e[0] === 1); } - var UP = class extends bo { + var UP = class extends yo { constructor(e, r) { - super(e, tu, Et(r) || Ft(r) ? AQ(e, Xe(r)) : r), this.initialU8aLength = 1; + super(e, $c, Et(r) || Ft(r) ? NQ(e, Xe(r)) : r), this.initialU8aLength = 1; } get encodedLength() { return 1; @@ -25639,14 +25639,14 @@ ${gz(e, r)}`); return e ? super.toU8a(true) : this.isSome ? new Uint8Array([this.isTrue ? 1 : 2]) : new Uint8Array([0]); } }; - var h0 = class extends El { + var d0 = class extends El { constructor(r, n, i, { rangeName: s = "Range" } = {}) { super(r, [n, n], i); re(this, "__internal__rangeName"); this.__internal__rangeName = s; } static with(r) { - return class extends h0 { + return class extends d0 { constructor(n, i) { super(n, r, i); } @@ -25662,7 +25662,7 @@ ${gz(e, r)}`); return `${this.__internal__rangeName}<${this.start.toRawType()}>`; } }; - var Bg = class extends h0 { + var Bg = class extends d0 { constructor(e, r, n) { super(e, r, n, { rangeName: "RangeInclusive" }); } @@ -25674,26 +25674,26 @@ ${gz(e, r)}`); }; } }; - var o7 = 128 * 1024; - function TQ(t) { + var s7 = 128 * 1024; + function IQ(t) { if (Et(t)) { if (!t.length) return ["", 0]; if (t instanceof ls) - return [fo(t), 0]; - const [e, r] = ou(t), n = e + r; - if (r > o7) - throw new Error(`Text: length ${r.toString()} exceeds ${o7}`); + return [lo(t), 0]; + const [e, r] = su(t), n = e + r; + if (r > s7) + throw new Error(`Text: length ${r.toString()} exceeds ${s7}`); if (n > t.length) throw new Error(`Text: required length less than remainder, expected at least ${n}, found ${t.length}`); - return [fo(t.subarray(e, n)), n]; + return [lo(t.subarray(e, n)), n]; } else if (Ft(t)) - return [fo(On(t)), 0]; + return [lo(On(t)), 0]; return [t ? t.toString() : "", 0]; } - var x8 = class extends String { + var v8 = class extends String { constructor(r, n) { - const [i, s] = TQ(n); + const [i, s] = IQ(n); super(i); re(this, "registry"); re(this, "createdAtHash"); @@ -25718,9 +25718,9 @@ ${gz(e, r)}`); return pr(r) ? this.toString() === r.toString() : false; } inspect() { - const r = Dr(super.toString()); + const r = Cr(super.toString()); return { - outer: r.length ? [qr(r.length), r] : [qr(r.length)] + outer: r.length ? [Hr(r.length), r] : [Hr(r.length)] }; } setOverride(r) { @@ -25745,19 +25745,19 @@ ${gz(e, r)}`); return this.__internal__override || super.toString(); } toU8a(r) { - const n = Dr(super.toString()); - return r ? n : ua(n); + const n = Cr(super.toString()); + return r ? n : aa(n); } }; - var jP = class extends x8 { + var jP = class extends v8 { constructor(e, r = "") { - super(e, r), this.setOverride(j1(this.toString())); + super(e, r), this.setOverride(V1(this.toString())); } toRawType() { return "Type"; } }; - function NQ(t, e) { + function OQ(t, e) { const r = Xe(t), n = e / 8; if (!r.length) return [new Uint8Array(n), 0]; @@ -25765,13 +25765,13 @@ ${gz(e, r)}`); throw new Error(`Expected input with ${n} bytes (${e} bits), found ${r.length} bytes`); return [r.subarray(0, n), n]; } - var ac = class extends ls { + var sc = class extends ls { constructor(e, r = new Uint8Array(), n = 256) { - const [i, s] = NQ(r, n); + const [i, s] = OQ(r, n); super(e, i, s); } static with(e, r) { - return class extends ac { + return class extends sc { constructor(n, i) { super(n, i, e); } @@ -25784,21 +25784,21 @@ ${gz(e, r)}`); return `[u8;${this.length}]`; } }; - function IQ(t, e, r) { - const n = yo(t, e); + function PQ(t, e, r) { + const n = go(t, e); if (Et(r) || Ft(r)) try { - const [, s] = Ft(r) ? [0, Xe(r)] : r instanceof ls ? [0, r.subarray()] : hd(r); + const [, s] = Ft(r) ? [0, Xe(r)] : r instanceof ls ? [0, r.subarray()] : fd(r); return [n, new n(t, s), r]; } catch { return [n, null, r]; } const i = new n(t, r); - return [n, i, ua(i.toU8a())]; + return [n, i, aa(i.toU8a())]; } - var d0 = class extends f0 { + var p0 = class extends h0 { constructor(r, n, i, { opaqueName: s = "WrapperKeepOpaque" } = {}) { - const [o, a, c] = IQ(r, n, i); + const [o, a, c] = PQ(r, n, i); super(r, c); re(this, "__internal__Type"); re(this, "__internal__decoded"); @@ -25806,7 +25806,7 @@ ${gz(e, r)}`); this.__internal__Type = o, this.__internal__decoded = a, this.__internal__opaqueName = s; } static with(r) { - return class extends d0 { + return class extends p0 { constructor(n, i) { super(n, r, i); } @@ -25818,9 +25818,9 @@ ${gz(e, r)}`); inspect() { return this.__internal__decoded ? { inner: [this.__internal__decoded.inspect()], - outer: [qr(this.length)] + outer: [Hr(this.length)] } : { - outer: [qr(this.length), this.toU8a(true)] + outer: [Hr(this.length), this.toU8a(true)] }; } toHuman(r, n) { @@ -25841,7 +25841,7 @@ ${gz(e, r)}`); return this.__internal__decoded; } }; - var Ug = class extends d0 { + var Ug = class extends p0 { constructor(e, r, n) { super(e, r, n, { opaqueName: "WrapperOpaque" }); } @@ -25912,18 +25912,18 @@ ${gz(e, r)}`); }); } }; - function OQ(t) { + function kQ(t) { return Object.entries(t || {}); } - var _8 = class extends Map { + var x8 = class extends Map { constructor(r, n) { - const i = OQ(n); + const i = kQ(n); super(i); re(this, "registry"); re(this, "createdAtHash"); re(this, "initialU8aLength"); re(this, "isStorageFallback"); - this.registry = r, Jc(this, i.map(([s]) => s), (s) => this.get(s)); + this.registry = r, Yc(this, i.map(([s]) => s), (s) => this.get(s)); } get encodedLength() { return 0; @@ -25935,7 +25935,7 @@ ${gz(e, r)}`); return [...this.keys()].length === 0; } eq(r) { - return p8(this, r); + return d8(this, r); } getT(r) { return this.get(r); @@ -25971,7 +25971,7 @@ ${gz(e, r)}`); r.ior(on(t[e[n]] || 0)); return r; } - function PQ(t, e) { + function RQ(t, e) { const r = e.length, n = new Array(r); for (let i = 0; i < r; i++) { const s = e[i]; @@ -25981,7 +25981,7 @@ ${gz(e, r)}`); } return n; } - function a7(t, e) { + function o7(t, e) { const r = on(e), n = Object.keys(t), i = []; for (let o = 0, a = n.length; o < a; o++) { const c = n[o]; @@ -25997,16 +25997,16 @@ ${gz(e, r)}`); throw new Error(`Expected valid bitLength, power of 8, found ${r}`); const n = r / 8; if (Et(e)) - return e.length === 0 ? [] : a7(t, Zn(e.subarray(0, n), { isLe: true })); + return e.length === 0 ? [] : o7(t, Yn(e.subarray(0, n), { isLe: true })); if (pr(e)) return zP(t, Xe(e), n); if (e instanceof Set || Array.isArray(e)) { const i = Array.isArray(e) ? e : [...e.values()]; - return PQ(t, i); + return RQ(t, i); } - return a7(t, e); + return o7(t, e); } - var bd = class extends Set { + var yd = class extends Set { constructor(r, n, i, s = 8) { super(zP(n, i, s)); re(this, "registry"); @@ -26024,7 +26024,7 @@ ${gz(e, r)}`); } static with(r, n) { var i; - return i = class extends bd { + return i = class extends yd { constructor(o, a) { super(o, r, a, n); } @@ -26032,7 +26032,7 @@ ${gz(e, r)}`); const o = Object.keys(r), a = o.length, c = new Array(a); for (let u = 0; u < a; u++) c[u] = `is${cg(o[u])}`; - Jc(i.prototype, c, (u, f, p) => p.strings.includes(o[f])); + Yc(i.prototype, c, (u, f, p) => p.strings.includes(o[f])); })(), i; } get encodedLength() { @@ -26080,102 +26080,102 @@ ${gz(e, r)}`); return `[${this.strings.join(", ")}]`; } toU8a(r) { - return Hr(this.valueEncoded, { + return Fr(this.valueEncoded, { bitLength: this.__internal__byteLength * 8, isLe: true }); } }; - var z1 = class extends jg.with(32) { + var F1 = class extends jg.with(32) { constructor() { super(...arguments); re(this, "__FloatType", "f32"); } }; - var F1 = class extends jg.with(64) { + var H1 = class extends jg.with(64) { constructor() { super(...arguments); re(this, "__FloatType", "f64"); } }; - var H1 = class extends fa.with(8) { + var q1 = class extends ua.with(8) { constructor() { super(...arguments); re(this, "__IntType", "i8"); } }; - var q1 = class extends fa.with(16) { + var W1 = class extends ua.with(16) { constructor() { super(...arguments); re(this, "__IntType", "i16"); } }; - var wd = class extends fa.with(32) { + var bd = class extends ua.with(32) { constructor() { super(...arguments); re(this, "__IntType", "i32"); } }; - var W1 = class extends fa.with(64) { + var G1 = class extends ua.with(64) { constructor() { super(...arguments); re(this, "__IntType", "i64"); } }; - var G1 = class extends fa.with(128) { + var K1 = class extends ua.with(128) { constructor() { super(...arguments); re(this, "__IntType", "i128"); } }; - var K1 = class extends fa.with(256) { + var X1 = class extends ua.with(256) { constructor() { super(...arguments); re(this, "__IntType", "i256"); } }; - var X1 = class extends wd { + var Y1 = class extends bd { constructor(e, r) { throw super(e, r), new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly."); } }; - var Y1 = class extends ha.with(8) { + var Z1 = class extends la.with(8) { constructor() { super(...arguments); re(this, "__UIntType", "u8"); } }; - var Z1 = class extends ha.with(16) { + var J1 = class extends la.with(16) { constructor() { super(...arguments); re(this, "__UIntType", "u16"); } }; - var nl = class extends ha.with(32) { + var nl = class extends la.with(32) { constructor() { super(...arguments); re(this, "__UIntType", "u32"); } }; - var zi = class extends ha.with(64) { + var Vi = class extends la.with(64) { constructor() { super(...arguments); re(this, "__UIntType", "u64"); } }; - var J1 = class extends ha.with(128) { + var Q1 = class extends la.with(128) { constructor() { super(...arguments); re(this, "__UIntType", "u128"); } }; - var Q1 = class extends ha.with(256) { + var $1 = class extends la.with(256) { constructor() { super(...arguments); re(this, "__UIntType", "u256"); } }; - var $1 = class extends nl { + var em = class extends nl { constructor(e, r) { throw super(e, r), new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly."); } @@ -26218,11 +26218,11 @@ ${gz(e, r)}`); throw new Error(`Invalid definition (missing terminators) found in ${t}`); return e.push(t.substring(o, t.length).trim()), e; } - var kQ = ["_alias", "_fallback"]; + var CQ = ["_alias", "_fallback"]; function HP(t) { return pr(t) ? t.toString() : Ct(t); } - function RQ(t) { + function DQ(t) { const e = Object.values(t); if (e.some((r) => rr(r))) { if (!e.every((r) => rr(r) && r >= 0 && r <= 255)) @@ -26231,20 +26231,20 @@ ${gz(e, r)}`); } return true; } - function CQ(t, e, r, n) { + function LQ(t, e, r, n) { return t.info = Se.Enum, t.fallbackType = n, Array.isArray(e) ? t.sub = e.map((i, s) => ({ index: s, info: Se.Plain, name: i, type: "Null" - })) : RQ(e) ? t.sub = Object.entries(e).map(([i, s], o) => st({}, da(HP(s || "Null"), { name: i }, r), { index: o })) : t.sub = Object.entries(e).map(([i, s]) => ({ + })) : DQ(e) ? t.sub = Object.entries(e).map(([i, s], o) => st({}, fa(HP(s || "Null"), { name: i }, r), { index: o })) : t.sub = Object.entries(e).map(([i, s]) => ({ index: s, info: Se.Plain, name: i, type: "Null" })), t; } - function DQ(t, e, r) { + function BQ(t, e, r) { return t.info = Se.Set, t.fallbackType = r, t.length = e._bitLength, t.sub = Object.entries(e).filter(([n]) => !n.startsWith("_")).map(([n, i]) => ({ index: i, info: Se.Plain, @@ -26252,11 +26252,11 @@ ${gz(e, r)}`); type: "Null" })), t; } - function LQ(t, e, r, n) { + function UQ(t, e, r, n) { const i = JSON.parse(e), s = Object.keys(i); - return i._enum ? CQ(t, i._enum, n, i._fallback) : i._set ? DQ(t, i._set, i._fallback) : (t.alias = i._alias ? new Map(Object.entries(i._alias)) : void 0, t.fallbackType = i._fallback, t.sub = s.filter((o) => !kQ.includes(o)).map((o) => da(HP(i[o]), { name: o }, n)), t); + return i._enum ? LQ(t, i._enum, n, i._fallback) : i._set ? BQ(t, i._set, i._fallback) : (t.alias = i._alias ? new Map(Object.entries(i._alias)) : void 0, t.fallbackType = i._fallback, t.sub = s.filter((o) => !CQ.includes(o)).map((o) => fa(HP(i[o]), { name: o }, n)), t); } - function BQ(t, e, r, n) { + function jQ(t, e, r, n) { const i = e.length - 1; let s = -1, o = 0; for (let p = 1; p < i && s === -1; p++) @@ -26281,10 +26281,10 @@ ${gz(e, r)}`); const a = e.substring(1, s), [c, u] = e.substring(s + 1, i).split(";"), f = parseInt(c.trim(), 10); if (f > 2048) throw new Error(`${e}: Only support for [Type; ], where length <= 2048`); - return t.displayName = u, t.length = f, t.sub = da(a, {}, n), t; + return t.displayName = u, t.length = f, t.sub = fa(a, {}, n), t; } function $0(t, e, r, n) { - return t.sub = r.length === 0 ? [] : FP(r).map((i) => da(i, {}, n)), t; + return t.sub = r.length === 0 ? [] : FP(r).map((i) => fa(i, {}, n)), t; } function qP(t, e, r, n) { const [i, s] = e.substring(n.length + 1, e.length - 1).split(","), o = parseInt(i.trim(), 10); @@ -26292,30 +26292,30 @@ ${gz(e, r)}`); throw new Error(`${e}: Only support for ${n}, where length <= 8192 and a power of 8, found ${o}`); return t.displayName = s, t.length = o, t; } - function UQ(t, e, r) { + function VQ(t, e, r) { return qP(t, e, r, "Int"); } - function jQ(t, e, r) { + function zQ(t, e, r) { return qP(t, e, r, "UInt"); } - function VQ(t, e, r) { + function FQ(t, e, r) { return t.displayName = e.substring(14 + 1, e.length - 1), t; } - function c7(t, [e, r]) { + function a7(t, [e, r]) { return t.startsWith(e) && t.slice(-1 * r.length) === r; } - var zQ = [ - ["[", "]", Se.VecFixed, BQ], - ["{", "}", Se.Struct, LQ], + var HQ = [ + ["[", "]", Se.VecFixed, jQ], + ["{", "}", Se.Struct, UQ], ["(", ")", Se.Tuple, $0], ["BTreeMap<", ">", Se.BTreeMap, $0], ["HashMap<", ">", Se.HashMap, $0], - ["Int<", ">", Se.Int, UQ], + ["Int<", ">", Se.Int, VQ], ["Result<", ">", Se.Result, $0], - ["UInt<", ">", Se.UInt, jQ], - ["DoNotConstruct<", ">", Se.DoNotConstruct, VQ] + ["UInt<", ">", Se.UInt, zQ], + ["DoNotConstruct<", ">", Se.DoNotConstruct, FQ] ]; - var FQ = [ + var qQ = [ ["BTreeSet<", ">", Se.BTreeSet], ["Compact<", ">", Se.Compact], ["Linkage<", ">", Se.Linkage], @@ -26327,119 +26327,119 @@ ${gz(e, r)}`); ["WrapperKeepOpaque<", ">", Se.WrapperKeepOpaque], ["WrapperOpaque<", ">", Se.WrapperOpaque] ]; - function u7(t, [e, r]) { + function c7(t, [e, r]) { return t.substring(e.length, t.length - r.length); } - function da(t, { displayName: e, name: r } = {}, n = 0) { - const i = j1(t), s = { displayName: e, info: Se.Plain, name: r, type: i }; + function fa(t, { displayName: e, name: r } = {}, n = 0) { + const i = V1(t), s = { displayName: e, info: Se.Plain, name: r, type: i }; if (++n > 64) throw new Error("getTypeDef: Maximum nested limit reached"); - const o = zQ.find((c) => c7(i, c)); + const o = HQ.find((c) => a7(i, c)); if (o) - return s.info = o[2], o[3](s, i, u7(i, o), n); - const a = FQ.find((c) => c7(i, c)); - return a && (s.info = a[2], s.sub = da(u7(i, a), {}, n)), s; + return s.info = o[2], o[3](s, i, c7(i, o), n); + const a = qQ.find((c) => a7(i, c)); + return a && (s.info = a[2], s.sub = fa(c7(i, a), {}, n)), s; } - function vd({ lookupName: t, type: e }) { + function wd({ lookupName: t, type: e }) { return t || e; } - function em(t) { + function tm(t) { if (!Array.isArray(t.sub)) throw new Error(`Expected subtype as TypeDef[] in ${Ct(t)}`); return t.sub; } - function HQ(t) { + function WQ(t) { if (!t.sub || Array.isArray(t.sub)) throw new Error(`Expected subtype as TypeDef in ${Ct(t)}`); return t.sub; } function WP(t) { - return vd(HQ(t)); + return wd(WQ(t)); } - function l7(t) { - const e = em(t), r = {}; + function u7(t) { + const e = tm(t), r = {}; for (let n = 0, i = e.length; n < i; n++) { const s = e[n]; if (!s.name) throw new Error(`No name found in definition ${Ct(s)}`); - r[s.name] = vd(s); + r[s.name] = wd(s); } return r; } - function ew(t) { - return em(t).map(vd); + function $3(t) { + return tm(t).map(wd); } - function f7(t, { displayName: e, length: r }) { + function l7(t, { displayName: e, length: r }) { if (!rr(r)) throw new Error(`Expected bitLength information for ${e || t.constructor.name}`); return t.with(r, e); } - function h7(t, e) { - const [r, n] = ew(e); + function f7(t, e) { + const [r, n] = $3(e); return t.with(r, n); } - function mu(t, e) { + function pu(t, e) { return t.with(WP(e)); } - var qQ = { - [Se.BTreeMap]: (t, e) => h7(Cg, e), - [Se.BTreeSet]: (t, e) => mu(Dg, e), - [Se.Compact]: (t, e) => mu(Rf, e), - [Se.DoNotConstruct]: (t, e) => l0.with(e.displayName || e.type), + var GQ = { + [Se.BTreeMap]: (t, e) => f7(Cg, e), + [Se.BTreeSet]: (t, e) => pu(Dg, e), + [Se.Compact]: (t, e) => pu(Rf, e), + [Se.DoNotConstruct]: (t, e) => f0.with(e.displayName || e.type), [Se.Enum]: (t, e) => { - const r = em(e); + const r = tm(e); return us.with(r.every(({ type: n }) => n === "Null") ? r.reduce((n, { index: i, name: s }, o) => { if (!s) throw new Error("No name found in sub definition"); return n[s] = i || o, n; - }, {}) : l7(e)); + }, {}) : u7(e)); }, - [Se.HashMap]: (t, e) => h7(Lg, e), - [Se.Int]: (t, e) => f7(fa, e), + [Se.HashMap]: (t, e) => f7(Lg, e), + [Se.Int]: (t, e) => l7(ua, e), [Se.Linkage]: (t, e) => { const r = `Option<${WP(e)}>`, n = cn.with({ previous: r, next: r }); return n.prototype.toRawType = function() { return `Linkage<${this.next.toRawType(true)}>`; }, n; }, - [Se.Null]: (t, e) => po, + [Se.Null]: (t, e) => ho, [Se.Option]: (t, e) => { if (!e.sub || Array.isArray(e.sub)) throw new Error("Expected type information for Option"); - return mu(bo, e); + return pu(yo, e); }, [Se.Plain]: (t, e) => t.getOrUnknown(e.type), - [Se.Range]: (t, e) => mu(h0, e), - [Se.RangeInclusive]: (t, e) => mu(Bg, e), + [Se.Range]: (t, e) => pu(d0, e), + [Se.RangeInclusive]: (t, e) => pu(Bg, e), [Se.Result]: (t, e) => { - const [r, n] = ew(e); + const [r, n] = $3(e); return Pg.with({ Err: n, Ok: r }); }, - [Se.Set]: (t, e) => bd.with(em(e).reduce((r, { index: n, name: i }) => { + [Se.Set]: (t, e) => yd.with(tm(e).reduce((r, { index: n, name: i }) => { if (!i || !rr(n)) throw new Error("No name found in sub definition"); return r[i] = n, r; }, {}), e.length), - [Se.Si]: (t, e) => E8(t, t.lookup.getTypeDef(e.type)), - [Se.Struct]: (t, e) => cn.with(l7(e), e.alias), - [Se.Tuple]: (t, e) => El.with(ew(e)), - [Se.UInt]: (t, e) => f7(ha, e), + [Se.Si]: (t, e) => _8(t, t.lookup.getTypeDef(e.type)), + [Se.Struct]: (t, e) => cn.with(u7(e), e.alias), + [Se.Tuple]: (t, e) => El.with($3(e)), + [Se.UInt]: (t, e) => l7(la, e), [Se.Vec]: (t, { sub: e }) => { if (!e || Array.isArray(e)) throw new Error("Expected type information for vector"); - return e.type === "u8" ? f0 : kg.with(vd(e)); + return e.type === "u8" ? h0 : kg.with(wd(e)); }, [Se.VecFixed]: (t, { displayName: e, length: r, sub: n }) => { if (!rr(r) || !n || Array.isArray(n)) throw new Error("Expected length & type information for fixed vector"); - return n.type === "u8" ? ac.with(r * 8, e) : Rg.with(vd(n), r); + return n.type === "u8" ? sc.with(r * 8, e) : Rg.with(wd(n), r); }, - [Se.WrapperKeepOpaque]: (t, e) => mu(d0, e), - [Se.WrapperOpaque]: (t, e) => mu(Ug, e) + [Se.WrapperKeepOpaque]: (t, e) => pu(p0, e), + [Se.WrapperOpaque]: (t, e) => pu(Ug, e) }; function GP(t, e) { try { - const r = qQ[e.info](t, e); + const r = GQ[e.info](t, e); if (!r) throw new Error("No class created"); return !r.__fallbackType && e.fallbackType && (r.__fallbackType = e.fallbackType), r; @@ -26447,41 +26447,41 @@ ${gz(e, r)}`); throw new Error(`Unable to construct class from ${Ct(e)}: ${r.message}`); } } - function E8(t, e) { + function _8(t, e) { return t.getUnsafe(e.type, false, e); } function qu(t, e) { - return t.getUnsafe(e) || E8(t, t.isLookupType(e) ? t.lookup.getTypeDef(e) : da(e)); + return t.getUnsafe(e) || _8(t, t.isLookupType(e) ? t.lookup.getTypeDef(e) : fa(e)); } - function d7(t, e) { + function h7(t, e) { const r = t.toU8a(), n = t.toRawType(); if (!(Pn(r, e) || ["Bytes", "Text", "Type"].includes(n) && e.length === t.length || t.isEmpty && e.every((s) => !s))) throw new Error(`${n}:: Decoded input doesn't match input, received ${Bt(e, 512)} (${e.length} bytes), created ${Bt(r, 512)} (${r.length} bytes)`); } - function WQ(t, [e]) { - Et(e) ? d7(t, e) : Ft(e) && d7(t, Xe(e)); + function KQ(t, [e]) { + Et(e) ? h7(t, e) : Ft(e) && h7(t, Xe(e)); } - function p7(t, e, r = [], { blockHash: n, isFallback: i, isOptional: s, isPedantic: o } = {}) { - const a = new (s ? bo.with(e) : e)(t, ...r); - return o && WQ(a, r), n && (a.createdAtHash = xd(t, "BlockHash", [n])), i && (a.isStorageFallback = true), a; + function d7(t, e, r = [], { blockHash: n, isFallback: i, isOptional: s, isPedantic: o } = {}) { + const a = new (s ? yo.with(e) : e)(t, ...r); + return o && KQ(a, r), n && (a.createdAtHash = vd(t, "BlockHash", [n])), i && (a.isStorageFallback = true), a; } - function xd(t, e, r = [], n = {}) { + function vd(t, e, r = [], n = {}) { let i = null, s = null; try { - return i = qu(t, e), p7(t, i, r, n); + return i = qu(t, e), d7(t, i, r, n); } catch (o) { s = new Error(`createType(${e}):: ${o.message}`); } if (i != null && i.__fallbackType) try { - return i = qu(t, i.__fallbackType), p7(t, i, r, n); + return i = qu(t, i.__fallbackType), d7(t, i, r, n); } catch { } throw s; } - var GQ = (t) => t.toString(); - var KQ = ["BTreeMap", "BTreeSet", "Compact", "HashMap", "Option", "Result", "Vec"]; - function KP(t, e, r = GQ) { + var XQ = (t) => t.toString(); + var YQ = ["BTreeMap", "BTreeSet", "Compact", "HashMap", "Option", "Result", "Vec"]; + function KP(t, e, r = XQ) { return `${t}${e ? `<${(Array.isArray(e) ? e : [e]).map(r).join(", ")}>` : ""}`; } function gs(t, e, r) { @@ -26503,7 +26503,7 @@ ${gz(e, r)}`); } throw new Error(`Unable to encode ${Ct(e)} with params`); } - function m7(t, e, r, n) { + function p7(t, e, r, n) { const i = e.map(({ name: o }) => o); if (!i.every((o) => !!o)) throw new Error(`Subtypes does not have consistent names, ${i.join(", ")}`); @@ -26516,7 +26516,7 @@ ${gz(e, r)}`); } return Ct(r ? { _enum: s } : s); } - var XQ = { + var ZQ = { [Se.BTreeMap]: (t, e) => gs(t, e, "BTreeMap"), [Se.BTreeSet]: (t, e) => gs(t, e, "BTreeSet"), [Se.Compact]: (t, e) => gs(t, e, "Compact"), @@ -26524,7 +26524,7 @@ ${gz(e, r)}`); [Se.Enum]: (t, { sub: e }) => { if (!Array.isArray(e)) throw new Error("Unable to encode Enum type"); - return e.every(({ type: r }) => r === "Null") ? Ct({ _enum: e.map(({ name: r }, n) => `${r || `Empty${n}`}`) }) : m7(t, e, true); + return e.every(({ type: r }) => r === "Null") ? Ct({ _enum: e.map(({ name: r }, n) => `${r || `Empty${n}`}`) }) : p7(t, e, true); }, [Se.HashMap]: (t, e) => gs(t, e, "HashMap"), [Se.Int]: (t, { length: e = 32 }) => `Int<${e}>`, @@ -26546,7 +26546,7 @@ ${gz(e, r)}`); [Se.Struct]: (t, { alias: e, sub: r }) => { if (!Array.isArray(r)) throw new Error("Unable to encode Struct type"); - return m7(t, r, false, e ? { + return p7(t, r, false, e ? { _alias: [...e.entries()].reduce((n, [i, s]) => st(n, { [i]: s }), {}) } : {}); }, @@ -26566,12 +26566,12 @@ ${gz(e, r)}`); [Se.WrapperOpaque]: (t, e) => gs(t, e, "WrapperOpaque") }; function XP(t, e, r = true) { - return r && e.lookupName ? e.lookupName : XQ[e.info](t, e); + return r && e.lookupName ? e.lookupName : ZQ[e.info](t, e); } function Vg(t, e) { - return e.displayName && !KQ.some((r) => e.displayName === r) ? e.displayName : XP(t, e); + return e.displayName && !YQ.some((r) => e.displayName === r) ? e.displayName : XP(t, e); } - function Ci(t, e) { + function Ri(t, e) { return st({}, e, { type: XP(t, e, false) }); @@ -26580,7 +26580,7 @@ ${gz(e, r)}`); function Mi(t) { return YP.reduce((e, r) => st(e, { [r]: `${r}${t}` }), {}); } - var YQ = { + var JQ = { FungibilityV0: "FungibilityV1", WildFungibilityV0: "WildFungibilityV1", AssetInstanceV0: { @@ -26797,7 +26797,7 @@ ${gz(e, r)}`); } } }; - var ZQ = { + var QQ = { AssetInstanceV1: { _enum: { Undefined: "Null", @@ -27013,7 +27013,7 @@ ${gz(e, r)}`); } } }; - var JQ = { + var $Q = { AssetInstanceV2: "AssetInstanceV1", FungibilityV2: "FungibilityV1", JunctionV2: "JunctionV1", @@ -27171,8 +27171,8 @@ ${gz(e, r)}`); }, XcmOrderV2: "XcmOrderV1" }; - var QQ = "V2"; - var $Q = { + var e$ = "V2"; + var t$ = { XcmOrigin: { _enum: { Xcm: "MultiLocation" @@ -27195,7 +27195,7 @@ ${gz(e, r)}`); }, MultiAssets: "Vec" }; - var e$ = { + var r$ = { BodyId: { _enum: { Unit: "Null", @@ -27235,15 +27235,15 @@ ${gz(e, r)}`); } } }; - var t$ = { + var n$ = { rpc: {}, types: { - ...e$, - ...$Q, - ...YQ, - ...ZQ, + ...r$, + ...t$, ...JQ, - ...Mi(QQ), + ...QQ, + ...$Q, + ...Mi(e$), DoubleEncodedCall: { encoded: "Vec" }, @@ -27322,7 +27322,7 @@ ${gz(e, r)}`); XcmVersion: "u32" } }; - var r$ = { + var i$ = { ContractCryptoHasher: { _enum: ["Blake2x256", "Sha2x256", "Keccak256"] }, @@ -27369,7 +27369,7 @@ ${gz(e, r)}`); } } }; - var n$ = { + var s$ = { ContractConstructorSpecV0: { name: "Text", selector: "ContractSelector", @@ -27528,7 +27528,7 @@ ${gz(e, r)}`); displayName: "ContractDisplayName" } }; - var i$ = { + var o$ = { ContractConstructorSpecLatest: "ContractConstructorSpecV4", ContractEventSpecLatest: "ContractEventSpecV3", ContractEventParamSpecLatest: "ContractEventParamSpecV2", @@ -27536,12 +27536,12 @@ ${gz(e, r)}`); ContractMessageSpecLatest: "ContractMessageSpecV3", ContractMetadataLatest: "ContractMetadataV5" }; - var s$ = { + var a$ = { rpc: {}, types: { - ...r$, - ...n$, ...i$, + ...s$, + ...o$, ContractProjectInfo: { source: "ContractProjectSource", contract: "ContractProjectContract" @@ -27626,7 +27626,7 @@ ${gz(e, r)}`); } } }; - var o$ = { + var c$ = { listening: { aliasSection: "net", description: "Returns true if client is actively listening for network connections. Otherwise false.", @@ -27646,7 +27646,7 @@ ${gz(e, r)}`); type: "Text" } }; - var a$ = { + var u$ = { clientVersion: { aliasSection: "web3", description: "Returns current client version.", @@ -27660,9 +27660,9 @@ ${gz(e, r)}`); type: "H256" } }; - var c$ = { - ...o$, - ...a$, + var l$ = { + ...c$, + ...u$, accounts: { description: "Returns accounts list.", params: [], @@ -28125,7 +28125,7 @@ ${gz(e, r)}`); type: "bool" } }; - var g7 = { + var m7 = { account_basic: { description: "Returns pallet_evm::Accounts by address.", params: [ @@ -28299,7 +28299,7 @@ ${gz(e, r)}`); type: "H256" } }; - var u$ = { + var f$ = { call: { description: "Returns a frame_ethereum::call response. If `estimate` is true,", params: [ @@ -28389,7 +28389,7 @@ ${gz(e, r)}`); type: "Result" } }; - var l$ = { + var h$ = { ConvertTransactionRuntimeApi: [ { methods: { @@ -28445,20 +28445,20 @@ ${gz(e, r)}`); EthereumRuntimeRPCApi: [ { methods: { - ...g7 + ...m7 }, version: 4 }, { methods: { - ...g7, - ...u$ + ...m7, + ...f$ }, version: 5 } ] }; - var f$ = { + var d$ = { BlockV0: { header: "EthHeader", transactions: "Vec", @@ -28475,7 +28475,7 @@ ${gz(e, r)}`); }, TransactionV0: "LegacyTransaction" }; - var h$ = { + var p$ = { BlockV1: { header: "EthHeader", transactions: "Vec", @@ -28501,7 +28501,7 @@ ${gz(e, r)}`); } } }; - var d$ = { + var m$ = { BlockV2: { header: "EthHeader", transactions: "Vec", @@ -28529,10 +28529,10 @@ ${gz(e, r)}`); } } }; - var p$ = { - ...f$, - ...h$, + var g$ = { ...d$, + ...p$, + ...m$, EthereumAccountId: "GenericEthereumAccountId", EthereumAddress: "GenericEthereumAccountId", EthereumLookupSource: "GenericEthereumLookupSource", @@ -28806,8 +28806,8 @@ ${gz(e, r)}`); number: "Option" } }; - var m$ = { rpc: c$, runtime: l$, types: p$ }; - var g$ = { + var y$ = { rpc: l$, runtime: h$, types: g$ }; + var b$ = { AuthorFilterAPI: [ { methods: { @@ -28878,12 +28878,12 @@ ${gz(e, r)}`); } ] }; - var y$ = { + var w$ = { rpc: {}, - runtime: g$, + runtime: b$, types: {} }; - var b$ = { + var v$ = { OracleApi: [ { methods: { @@ -28916,12 +28916,12 @@ ${gz(e, r)}`); } ] }; - var w$ = { + var x$ = { rpc: {}, - runtime: b$, + runtime: v$, types: {} }; - var v$ = { + var _$ = { TokensApi: [ { methods: { @@ -28940,20 +28940,20 @@ ${gz(e, r)}`); } ] }; - var x$ = { + var E$ = { rpc: {}, - runtime: v$, + runtime: _$, types: {} }; - var _$ = { + var S$ = { methods: { description: "Retrieves the list of RPC methods that are exposed by the node", params: [], type: "RpcMethods" } }; - var E$ = { - rpc: _$, + var M$ = { + rpc: S$, types: { RpcMethods: { version: "u32", @@ -28961,7 +28961,7 @@ ${gz(e, r)}`); } } }; - var S$ = { + var A$ = { hasKey: { description: "Returns true if the keystore has private keys for the given public key and key type.", isUnsafe: true, @@ -29057,8 +29057,8 @@ ${gz(e, r)}`); type: "Hash" } }; - var M$ = { - rpc: S$, + var T$ = { + rpc: A$, types: { ExtrinsicOrHash: { _enum: { @@ -29082,7 +29082,7 @@ ${gz(e, r)}`); } } }; - var A$ = { + var N$ = { getBlock: { description: "Get header and body of a relay chain block", params: [ @@ -29158,13 +29158,13 @@ ${gz(e, r)}`); type: "Header" } }; - var T$ = { - rpc: A$, + var I$ = { + rpc: N$, types: { BlockHash: "Hash" } }; - var N$ = { + var O$ = { getKeys: { description: "Returns the keys with prefix from a child storage, leave empty to get all the keys", params: [ @@ -29296,13 +29296,13 @@ ${gz(e, r)}`); type: "Option" } }; - var I$ = { - rpc: N$, + var P$ = { + rpc: O$, types: { PrefixedStorageKey: "StorageKey" } }; - var O$ = { + var k$ = { localStorageGet: { description: "Get offchain local storage under given key and prefix", isUnsafe: true, @@ -29338,7 +29338,7 @@ ${gz(e, r)}`); type: "Null" } }; - var P$ = { + var R$ = { OffchainWorkerApi: [ { methods: { @@ -29372,9 +29372,9 @@ ${gz(e, r)}`); } ] }; - var k$ = { - rpc: O$, - runtime: P$, + var C$ = { + rpc: k$, + runtime: R$, types: { StorageKind: { _enum: { @@ -29384,7 +29384,7 @@ ${gz(e, r)}`); } } }; - var R$ = { + var D$ = { queryFeeDetails: { deprecated: "Use `api.call.transactionPaymentApi.queryFeeDetails` instead", description: "Query the detailed fee of a given encoded extrinsic", @@ -29436,7 +29436,7 @@ ${gz(e, r)}`); type: "FeeDetails" } }; - var Oy = { + var Iy = { query_call_fee_details: { description: "The call fee details", params: [ @@ -29452,7 +29452,7 @@ ${gz(e, r)}`); type: "FeeDetails" } }; - var Py = { + var Oy = { query_info: { description: "The transaction info", params: [ @@ -29468,7 +29468,7 @@ ${gz(e, r)}`); type: "RuntimeDispatchInfo" } }; - var y7 = { + var g7 = { query_call_info: { description: "The call info", params: [ @@ -29484,7 +29484,7 @@ ${gz(e, r)}`); type: "RuntimeDispatchInfo" } }; - var ky = { + var Py = { query_length_to_fee: { description: "Query the output of the current LengthToFee given some input", params: [ @@ -29506,27 +29506,27 @@ ${gz(e, r)}`); type: "Balance" } }; - var C$ = { + var L$ = { TransactionPaymentApi: [ { methods: { - ...ky, ...Py, + ...Oy, ...ep }, version: 4 }, { methods: { - ...ky, ...Py, + ...Oy, ...ep }, version: 3 }, { methods: { - ...Py, + ...Oy, ...ep }, version: 2 @@ -29555,16 +29555,16 @@ ${gz(e, r)}`); TransactionPaymentCallApi: [ { methods: { - ...ky, - ...y7, - ...Oy + ...Py, + ...g7, + ...Iy }, version: 3 }, { methods: { - ...y7, - ...Oy + ...g7, + ...Iy }, version: 2 }, @@ -29584,15 +29584,15 @@ ${gz(e, r)}`); ], type: "RuntimeDispatchInfo" }, - ...Oy + ...Iy }, version: 1 } ] }; - var D$ = { - rpc: R$, - runtime: C$, + var B$ = { + rpc: D$, + runtime: L$, types: { FeeDetails: { inclusionFee: "Option" @@ -29619,7 +29619,7 @@ ${gz(e, r)}`); } } }; - var L$ = { + var U$ = { call: { alias: ["state_callAt"], description: "Perform a call to a builtin on the chain", @@ -30026,8 +30026,8 @@ ${gz(e, r)}`); type: "MigrationStatusResult" } }; - var B$ = { - rpc: L$, + var j$ = { + rpc: U$, types: { ApiId: "[u8; 8]", BlockTrace: { @@ -30111,101 +30111,101 @@ ${gz(e, r)}`); } } }; - var _d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - assetConversion: jY, - assets: zY, - attestations: yJ, - aura: HY, - author: M$, - authorship: qY, - babe: KY, - balances: XY, - beefy: QY, - benchmark: eZ, - blockbuilder: rZ, - bridges: bJ, - chain: T$, - childstate: I$, - claims: wJ, - collective: nZ, - consensus: iZ, - contracts: aZ, - contractsAbi: s$, - crowdloan: vJ, - cumulus: EJ, - democracy: uZ, - dev: fZ, - discovery: dZ, - elections: pZ, - engine: gZ, - eth: m$, - evm: yZ, - extrinsics: bZ, - finality: MJ, - fungibles: vZ, - genericAsset: xZ, - genesisBuilder: EZ, - gilt: SZ, - grandpa: TZ, - identity: NZ, - imOnline: IZ, - lottery: OZ, - metadata: OY, - mixnet: kZ, - mmr: BZ, - nfts: jZ, - nimbus: y$, - nompools: zZ, - offchain: k$, - offences: FZ, - ormlOracle: w$, - ormlTokens: x$, - parachains: CJ, - payment: D$, - poll: DJ, - pow: qZ, - proxy: WZ, - purchase: LJ, - recovery: GZ, - rpc: E$, - runtime: DY, - scaleInfo: BY, - scheduler: KZ, - session: ZZ, - society: JZ, - staking: tJ, - state: B$, - statement: nJ, - support: iJ, - syncstate: oJ, - system: uJ, - treasury: lJ, - txpayment: fJ, - txqueue: dJ, - uniques: pJ, - utility: mJ, - vesting: gJ, - xcm: t$ + assetConversion: zY, + assets: HY, + attestations: wJ, + aura: WY, + author: T$, + authorship: GY, + babe: YY, + balances: ZY, + beefy: eZ, + benchmark: rZ, + blockbuilder: iZ, + bridges: vJ, + chain: I$, + childstate: P$, + claims: xJ, + collective: sZ, + consensus: oZ, + contracts: uZ, + contractsAbi: a$, + crowdloan: _J, + cumulus: MJ, + democracy: fZ, + dev: dZ, + discovery: mZ, + elections: gZ, + engine: bZ, + eth: y$, + evm: wZ, + extrinsics: vZ, + finality: TJ, + fungibles: _Z, + genericAsset: EZ, + genesisBuilder: MZ, + gilt: AZ, + grandpa: IZ, + identity: OZ, + imOnline: PZ, + lottery: kZ, + metadata: kY, + mixnet: CZ, + mmr: jZ, + nfts: zZ, + nimbus: w$, + nompools: HZ, + offchain: C$, + offences: qZ, + ormlOracle: x$, + ormlTokens: E$, + parachains: LJ, + payment: B$, + poll: BJ, + pow: GZ, + proxy: KZ, + purchase: UJ, + recovery: XZ, + rpc: M$, + runtime: BY, + scaleInfo: jY, + scheduler: YZ, + session: QZ, + society: $Z, + staking: nJ, + state: j$, + statement: sJ, + support: oJ, + syncstate: cJ, + system: fJ, + treasury: hJ, + txpayment: dJ, + txqueue: mJ, + uniques: gJ, + utility: yJ, + vesting: bJ, + xcm: n$ }, Symbol.toStringTag, { value: "Module" })); - var Hp = {}; - Object.keys(_d).forEach((t) => Object.entries(_d[t].rpc || {}).forEach(([e, r]) => { + var qp = {}; + Object.keys(xd).forEach((t) => Object.entries(xd[t].rpc || {}).forEach(([e, r]) => { const n = r.aliasSection || t; - Hp[n] || (Hp[n] = {}), Hp[n][e] = st({}, r, { + qp[n] || (qp[n] = {}), qp[n][e] = st({}, r, { isSubscription: !!r.pubsub, jsonrpc: `${n}_${e}`, method: e, section: n }); })); - var tw = Hp; - var b7 = mi("PortableRegistry"); - var w7 = { toNumber: () => -1 }; - var U$ = { + var ew = qp; + var y7 = mi("PortableRegistry"); + var b7 = { toNumber: () => -1 }; + var V$ = { Char: "u32", Str: "Text" }; - var j$ = JP([ + var z$ = JP([ "sp_core::crypto::AccountId32", "sp_runtime::generic::era::Era", "sp_runtime::multiaddress::MultiAddress", @@ -30231,14 +30231,14 @@ ${gz(e, r)}`); "np_runtime::accountname::AccountName", "np_runtime::universaladdress::UniversalAddress" ]); - var V$ = JP([ + var F$ = JP([ "pallet_identity::types::BitFlags" ]); var ZP = ["bitvec::order::Lsb0", "BitOrderLsb0"]; - var z$ = ["bitvec::order::Msb0", "BitOrderMsb0"]; - var v7 = [...ZP, ...z$]; - var F$ = ["BoundedBTreeMap", "BoundedBTreeSet", "BoundedVec", "Box", "BTreeMap", "BTreeSet", "Cow", "Option", "Range", "RangeInclusive", "Result", "WeakBoundedVec", "WrapperKeepOpaque", "WrapperOpaque"]; - var H$ = [ + var H$ = ["bitvec::order::Msb0", "BitOrderMsb0"]; + var w7 = [...ZP, ...H$]; + var q$ = ["BoundedBTreeMap", "BoundedBTreeSet", "BoundedVec", "Box", "BTreeMap", "BTreeSet", "Cow", "Option", "Range", "RangeInclusive", "Result", "WeakBoundedVec", "WrapperKeepOpaque", "WrapperOpaque"]; + var W$ = [ "entries", "keys", "new", @@ -30246,8 +30246,8 @@ ${gz(e, r)}`); "hash", "registry" ]; - var q$ = ["generic", "misc", "pallet", "traits", "types"]; - function x7(t) { + var G$ = ["generic", "misc", "pallet", "traits", "types"]; + function v7(t) { const e = t.length, r = new Array(e); for (let n = 0; n < e; n++) r[n] = t[n].toString(); @@ -30259,7 +30259,7 @@ ${gz(e, r)}`); r[n] = t[n].split("::"); return r; } - function S8(t, e) { + function E8(t, e) { return t.length === e.length && t.every((r, n) => { const i = e[n].toString(); if (r === "*" || r === i) @@ -30270,17 +30270,17 @@ ${gz(e, r)}`); const a = o.indexOf(s[1]); a !== -1 && (s = s.slice(1), o = o.slice(a)); } - return s.length === 2 && s[1] === "*" && s[0] === o[0] ? true : S8(s, o); + return s.length === 2 && s[1] === "*" && s[0] === o[0] ? true : E8(s, o); } return false; }); } - function W$({ def: t, path: e }) { - return ["frame_support::weights::weight_v2::Weight", "sp_weights::weight_v2::Weight"].includes(e.join("::")) ? !t.isComposite || t.asComposite.fields.length === 1 ? "WeightV1" : null : e.length && j$.some((r) => S8(r, e)) ? e[e.length - 1].toString() : null; + function K$({ def: t, path: e }) { + return ["frame_support::weights::weight_v2::Weight", "sp_weights::weight_v2::Weight"].includes(e.join("::")) ? !t.isComposite || t.asComposite.fields.length === 1 ? "WeightV1" : null : e.length && z$.some((r) => E8(r, e)) ? e[e.length - 1].toString() : null; } function QP(t, e, r, n, i = false) { const s = n.length; - if (s === 0 || F$.includes(n[s - 1].toString())) + if (s === 0 || q$.includes(n[s - 1].toString())) return null; const o = new Array(s), a = new Array(s); for (let u = 0; u < s; u++) { @@ -30290,7 +30290,7 @@ ${gz(e, r)}`); let c = ""; for (let u = 0; u < s; u++) { const f = a[u]; - (u !== 1 || !q$.includes(f)) && f !== a[u + 1] && (c += o[u]); + (u !== 1 || !G$.includes(f)) && f !== a[u + 1] && (c += o[u]); } if (o[1] === "RawOrigin" && s === 2 && r.length === 2 && r[1].type.isSome) { const u = t[r[1].type.unwrap().toNumber()]; @@ -30298,10 +30298,10 @@ ${gz(e, r)}`); } return { lookupIndex: e, name: c, params: r }; } - function G$(t, e, { type: { params: r, path: n } }) { + function X$(t, e, { type: { params: r, path: n } }) { return QP(t, e, r, n); } - function K$(t, e, r) { + function Y$(t, e, r) { const n = [r[e]]; for (let i = e + 1, s = r.length; i < s; i++) { const o = r[i]; @@ -30309,7 +30309,7 @@ ${gz(e, r)}`); } return n; } - function _7(t, e) { + function x7(t, e) { const r = t.length; for (let n = 0; n < r; n++) { const i = t[n]; @@ -30325,7 +30325,7 @@ ${gz(e, r)}`); } return true; } - function X$(t, e, r) { + function Z$(t, e, r) { const n = {}; return r.map((i, s) => { const { lookupIndex: o, name: a, params: c } = i; @@ -30334,8 +30334,8 @@ ${gz(e, r)}`); return i; } else return null; - const u = K$(a, s, r); - if (u.length === 1 || !u.some((_) => c.length !== _.params.length || c.some((N, k) => !N.name.eq(_.params[k].name) || N.type.unwrapOr(w7).toNumber() !== _.params[k].type.unwrapOr(w7).toNumber()))) + const u = Y$(a, s, r); + if (u.length === 1 || !u.some((_) => c.length !== _.params.length || c.some((N, k) => !N.name.eq(_.params[k].name) || N.type.unwrapOr(b7).toNumber() !== _.params[k].type.unwrapOr(b7).toNumber()))) return i; const p = c.findIndex(({ type: _ }, N) => u.every(({ params: k }, F) => k[N].type.isSome && (F === 0 || !k[N].type.eq(_)))); if (p === -1) @@ -30350,7 +30350,7 @@ ${gz(e, r)}`); name: L.isPrimitive ? `${k}${L.asPrimitive.toString()}` : `${k}${D[D.length - 1].toString()}` }; } - if (_7(E, n)) + if (x7(E, n)) return i; for (let _ = 0; _ < b; _++) { const { lookupIndex: N, name: k, params: F } = u[_], { def: L, path: D } = t.getSiType(F[p].type.unwrap()), q = QP(e, N, F, D, true); @@ -30361,14 +30361,14 @@ ${gz(e, r)}`); name: `${k}${q.name}` }; } - return _7(E, n) ? i : null; + return x7(E, n) ? i : null; }).filter((i) => !!i).map(({ lookupIndex: i, name: s, params: o }) => ({ lookupIndex: i, name: n[i] || s, params: o })); } - function Y$(t, e, r, n) { + function J$(t, e, r, n) { if (t.registry.register(e), n.SpRuntimeUncheckedExtrinsic) { const [i, , s] = n.SpRuntimeUncheckedExtrinsic, o = t.getSiType(i.type.unwrap()), c = t.getSiType(s.type.unwrap()).path.join("::"); let u = o.path.join("::"); @@ -30384,27 +30384,27 @@ ${gz(e, r)}`); }); } } - function Z$(t, e) { + function Q$(t, e) { const r = Object.keys(t).some((i) => !i.startsWith("Pallet")), n = {}; if (t.SpRuntimeUncheckedExtrinsic) { const [, { type: i }] = t.SpRuntimeUncheckedExtrinsic; n[i.unwrap().toNumber()] = "Call"; } else - r && !e && b7.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic"); + r && !e && y7.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic"); if (t.FrameSystemEventRecord) { const [{ type: i }] = t.FrameSystemEventRecord; n[i.unwrap().toNumber()] = "Event"; } else - r && !e && b7.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord"); + r && !e && y7.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord"); return n; } - function J$(t, e) { + function $$(t, e) { const r = [], n = {}; for (let c = 0, u = e.length; c < u; c++) { - const f = e[c], p = f.id.toNumber(), b = G$(e, p, e[c]); + const f = e[c], p = f.id.toNumber(), b = X$(e, p, e[c]); b && r.push(b), n[p] = f; } - const i = {}, s = {}, o = {}, a = X$(t, e, r); + const i = {}, s = {}, o = {}, a = Z$(t, e, r); for (let c = 0, u = a.length; c < u; c++) { const { lookupIndex: f, name: p, params: b } = a[c]; s[f] = p, i[p] = t.registry.createLookupType(f), o[p] = b; @@ -30422,8 +30422,8 @@ ${gz(e, r)}`); re(this, "__internal__params"); re(this, "__internal__typeDefs", {}); re(this, "__internal__types"); - const { lookups: s, names: o, params: a, types: c } = J$(this, this.types); - this.__internal__alias = Z$(a, i), this.__internal__lookups = s, this.__internal__names = o, this.__internal__params = a, this.__internal__types = c; + const { lookups: s, names: o, params: a, types: c } = $$(this, this.types); + this.__internal__alias = Q$(a, i), this.__internal__lookups = s, this.__internal__names = o, this.__internal__params = a, this.__internal__types = c; } get names() { return Object.values(this.__internal__names).sort(); @@ -30435,7 +30435,7 @@ ${gz(e, r)}`); return this.getT("types"); } register() { - Y$(this, this.__internal__lookups, this.__internal__names, this.__internal__params); + J$(this, this.__internal__lookups, this.__internal__names, this.__internal__params); } getName(r) { return this.__internal__names[this.__internal__getLookupId(r)]; @@ -30465,7 +30465,7 @@ ${gz(e, r)}`); } sanitizeField(r) { let n = null, i = null; - return r.isSome && (n = dr(r.unwrap()), n.includes("#") ? (i = n, n = i.replace(/#/g, "_")) : H$.includes(n) && (i = n, n = `${n}_`)), [n, i]; + return r.isSome && (n = dr(r.unwrap()), n.includes("#") ? (i = n, n = i.replace(/#/g, "_")) : W$.includes(n) && (i = n, n = `${n}_`)), [n, i]; } __internal__createSiDef(r) { const n = this.getTypeDef(r), i = r.toNumber(); @@ -30489,7 +30489,7 @@ ${gz(e, r)}`); __internal__extract(r, n) { const i = r.path.join("::"); let s; - const o = this.__internal__alias[n] || W$(r); + const o = this.__internal__alias[n] || K$(r); try { if (o) s = this.__internal__extractAliasPath(n, o); @@ -30523,13 +30523,13 @@ ${gz(e, r)}`); s = this.__internal__extractVariant(n, r, r.def.asVariant); break; default: - Zv(r.def.type); + Yv(r.def.type); } } catch (a) { throw new Error(`PortableRegistry: ${n}${i ? ` (${i})` : ""}: Error extracting ${Ct(r)}: ${a.message}`); } return st({ - docs: x7(r.docs), + docs: v7(r.docs), namespace: i }, s); } @@ -30537,15 +30537,15 @@ ${gz(e, r)}`); const s = n.toNumber(); if (s > 2048) throw new Error("Only support for [Type; ], where length <= 2048"); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.VecFixed, length: s, sub: this.__internal__createSiDef(i) }); } __internal__extractBitSequence(r, { bitOrderType: n, bitStoreType: i }) { - const s = this.__internal__createSiDef(n), o = this.__internal__createSiDef(i), [a, c] = v7.includes(s.namespace || "") ? [s, o] : [o, s]; - if (!a.namespace || !v7.includes(a.namespace)) + const s = this.__internal__createSiDef(n), o = this.__internal__createSiDef(i), [a, c] = w7.includes(s.namespace || "") ? [s, o] : [o, s]; + if (!a.namespace || !w7.includes(a.namespace)) throw new Error(`Unexpected bitOrder found as ${a.namespace || ""}`); if (c.info !== Se.Plain || c.type !== "u8") throw new Error(`Only u8 bitStore is currently supported, found ${c.type}`); @@ -30555,7 +30555,7 @@ ${gz(e, r)}`); }; } __internal__extractCompact(r, { type: n }) { - return Ci(this.registry, { + return Ri(this.registry, { info: Se.Compact, sub: this.__internal__createSiDef(n) }); @@ -30566,21 +30566,21 @@ ${gz(e, r)}`); if (i.length === 1 && o === "BTreeMap") { if (n.length !== 2) throw new Error(`BTreeMap requires 2 parameters, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.BTreeMap, sub: n.map(({ type: c }) => this.__internal__createSiDef(c.unwrap())) }); } else if (i.length === 1 && o === "BTreeSet") { if (n.length !== 1) throw new Error(`BTreeSet requires 1 parameter, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.BTreeSet, sub: this.__internal__createSiDef(n[0].type.unwrap()) }); } else if (["Range", "RangeInclusive"].includes(o)) { if (n.length !== 1) throw new Error(`Range requires 1 parameter, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: o === "Range" ? Se.Range : Se.RangeInclusive, sub: this.__internal__createSiDef(n[0].type.unwrap()), type: o @@ -30588,19 +30588,19 @@ ${gz(e, r)}`); } else if (["WrapperKeepOpaque", "WrapperOpaque"].includes(a)) { if (n.length !== 1) throw new Error(`WrapperOpaque requires 1 parameter, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: a === "WrapperKeepOpaque" ? Se.WrapperKeepOpaque : Se.WrapperOpaque, sub: this.__internal__createSiDef(n[0].type.unwrap()), type: a }); } } - return V$.some((o) => S8(o, i)) ? this.__internal__extractCompositeSet(r, n, s) : this.__internal__extractFields(r, s); + return F$.some((o) => E8(o, i)) ? this.__internal__extractCompositeSet(r, n, s) : this.__internal__extractFields(r, s); } __internal__extractCompositeSet(r, n, i) { if (n.length !== 1 || i.length !== 1) throw new Error("Set handling expects param/field as single entries"); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.Set, length: this.registry.createTypeUnsafe(this.registry.createLookupType(i[0].type), []).bitLength(), sub: this.getSiType(n[0].type.unwrap()).def.asVariant.variants.map(({ index: s, name: o }) => ({ @@ -30631,10 +30631,10 @@ ${gz(e, r)}`); lookupIndex: r, lookupName: this.__internal__names[r], lookupNameRoot: u.lookupName - }, n[0].typeName.isSome ? { typeName: j1(n[0].typeName.unwrap()) } : null); + }, n[0].typeName.isSome ? { typeName: V1(n[0].typeName.unwrap()) } : null); } const [a, c] = this.__internal__extractFieldsAlias(n); - return Ci(this.registry, st({ + return Ri(this.registry, st({ info: s ? Se.Tuple : Se.Struct, sub: a }, c.size ? { alias: c } : null, r === -1 ? null : { @@ -30651,9 +30651,9 @@ ${gz(e, r)}`); else { const [b, E] = this.sanitizeField(c); b && E && n.set(b, E), s[o] = st({ - docs: x7(a), + docs: v7(a), name: b - }, p, f.isSome ? { typeName: j1(f.unwrap()) } : null); + }, p, f.isSome ? { typeName: V1(f.unwrap()) } : null); } } return [s, n]; @@ -30662,13 +30662,13 @@ ${gz(e, r)}`); return st({ displayName: n.toString(), isFromSi: true - }, da(n)); + }, fa(n)); } __internal__extractPrimitive(r, n) { const i = n.def.asPrimitive.type.toString(); return { info: Se.Plain, - type: U$[i] || i.toLowerCase() + type: V$[i] || i.toLowerCase() }; } __internal__extractAliasPath(r, n) { @@ -30682,7 +30682,7 @@ ${gz(e, r)}`); return i.type === "u8" ? { info: Se.Plain, type: "Bytes" - } : Ci(this.registry, { + } : Ri(this.registry, { info: Se.Vec, lookupIndex: r, lookupName: this.__internal__names[r], @@ -30698,7 +30698,7 @@ ${gz(e, r)}`); if (n.length === 1) return this.getTypeDef(n[0]); const i = n.map((s) => this.__internal__createSiDef(s)); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.Tuple, lookupIndex: r, lookupName: this.__internal__names[r], @@ -30711,14 +30711,14 @@ ${gz(e, r)}`); if (o === "Option") { if (n.length !== 1) throw new Error(`Option requires 1 parameter, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.Option, sub: this.__internal__createSiDef(n[0].type.unwrap()) }); } else if (o === "Result") { if (n.length !== 2) throw new Error(`Result requires 2 parameters, found ${n.length}`); - return Ci(this.registry, { + return Ri(this.registry, { info: Se.Result, sub: n.map(({ type: a }, c) => st({ name: ["Ok", "Error"][c] @@ -30746,7 +30746,7 @@ ${gz(e, r)}`); index: c, name: a.toString() })); - }), Ci(this.registry, { + }), Ri(this.registry, { info: Se.Enum, lookupIndex: r, lookupName: this.__internal__names[r], @@ -30761,7 +30761,7 @@ ${gz(e, r)}`); } }); } - function Q$(t, { len: e, type: r }) { + function eee(t, { len: e, type: r }) { return t.createType("Si1TypeDef", { Array: { len: e, @@ -30769,7 +30769,7 @@ ${gz(e, r)}`); } }); } - function $$(t, { bitOrderType: e, bitStoreType: r }) { + function tee(t, { bitOrderType: e, bitStoreType: r }) { return t.createType("Si1TypeDef", { BitSequence: { bitOrderType: e.toNumber(), @@ -30777,8 +30777,8 @@ ${gz(e, r)}`); } }); } - var eee = ek("Compact"); - function tee(t, { fields: e }) { + var ree = ek("Compact"); + function nee(t, { fields: e }) { return t.createType("Si1TypeDef", { Composite: { fields: tk(t, e) @@ -30793,23 +30793,23 @@ ${gz(e, r)}`); typeName: s })); } - function ree(t, e) { + function iee(t, e) { return console.warn(`Converting phantom type ${e.map((r) => r.toString()).join("::")} to empty tuple`), t.createType("Si1TypeDef", { Tuple: [] }); } - function nee(t, e) { + function see(t, e) { return t.createType("Si1TypeDef", { Primitive: e.toString() }); } - var iee = ek("Sequence"); - function see(t, e) { + var oee = ek("Sequence"); + function aee(t, e) { return t.createType("Si1TypeDef", { Tuple: e.map((r) => r.toNumber()) }); } - function oee(t, { variants: e }) { + function cee(t, { variants: e }) { return t.createType("Si1TypeDef", { Variant: { variants: e.map(({ discriminant: r, docs: n, fields: i, name: s }, o) => t.createType("Si1Variant", { @@ -30821,46 +30821,46 @@ ${gz(e, r)}`); } }); } - function aee(t, { def: e, path: r }) { + function uee(t, { def: e, path: r }) { let n; switch (e.type) { case "Array": - n = Q$(t, e.asArray); + n = eee(t, e.asArray); break; case "BitSequence": - n = $$(t, e.asBitSequence); + n = tee(t, e.asBitSequence); break; case "Compact": - n = eee(t, e.asCompact); + n = ree(t, e.asCompact); break; case "Composite": - n = tee(t, e.asComposite); + n = nee(t, e.asComposite); break; case "Phantom": - n = ree(t, r); + n = iee(t, r); break; case "Primitive": - n = nee(t, e.asPrimitive); + n = see(t, e.asPrimitive); break; case "Sequence": - n = iee(t, e.asSequence); + n = oee(t, e.asSequence); break; case "Tuple": - n = see(t, e.asTuple); + n = aee(t, e.asTuple); break; case "Variant": - n = oee(t, e.asVariant); + n = cee(t, e.asVariant); break; default: - Zv(e.type); + Yv(e.type); } return n; } - function cee(t, e) { + function lee(t, e) { return e.map((r, n) => t.createType("PortableType", { id: n + 1, type: { - def: aee(t, r), + def: uee(t, r), docs: [], params: r.params.map((i) => t.createType("Si1TypeParameter", { type: i.toNumber() @@ -30869,79 +30869,79 @@ ${gz(e, r)}`); } })); } - function M8(t, e = []) { + function S8(t, e = []) { for (let r = 0, n = t.length; r < n; r++) { const i = t[r]; - Array.isArray(i) ? M8(i, e) : e.push(i); + Array.isArray(i) ? S8(i, e) : e.push(i); } return [...new Set(e)]; } - function Ed(t, e) { + function _d(t, e) { const r = t.getTypeDef(e); return r.lookupName || r.type; } - function To(t, { sub: e }) { + function Ao(t, { sub: e }) { const { lookupName: r, type: n } = e; - return A8([r || n]); + return M8([r || n]); } - function gu(t, { sub: e }) { - return A8(e.map(({ lookupName: r, type: n }) => r || n)); + function mu(t, { sub: e }) { + return M8(e.map(({ lookupName: r, type: n }) => r || n)); } - function bh(t, { info: e }) { + function yh(t, { info: e }) { throw new Error(`Unhandled: Unable to create and validate type from ${t} (info=${Se[e]})`); } - var uee = { - [Se.BTreeMap]: gu, - [Se.BTreeSet]: To, - [Se.Compact]: To, - [Se.DoNotConstruct]: bh, - [Se.Enum]: gu, - [Se.HashMap]: gu, - [Se.Int]: bh, - [Se.Linkage]: To, - [Se.Null]: bh, - [Se.Option]: To, + var fee = { + [Se.BTreeMap]: mu, + [Se.BTreeSet]: Ao, + [Se.Compact]: Ao, + [Se.DoNotConstruct]: yh, + [Se.Enum]: mu, + [Se.HashMap]: mu, + [Se.Int]: yh, + [Se.Linkage]: Ao, + [Se.Null]: yh, + [Se.Option]: Ao, [Se.Plain]: (t, e) => e.lookupName || e.type, - [Se.Range]: To, - [Se.RangeInclusive]: To, - [Se.Result]: gu, - [Se.Set]: gu, - [Se.Si]: bh, - [Se.Struct]: gu, - [Se.Tuple]: gu, - [Se.UInt]: bh, - [Se.Vec]: To, - [Se.VecFixed]: To, - [Se.WrapperKeepOpaque]: To, - [Se.WrapperOpaque]: To - }; - function A8(t) { + [Se.Range]: Ao, + [Se.RangeInclusive]: Ao, + [Se.Result]: mu, + [Se.Set]: mu, + [Se.Si]: yh, + [Se.Struct]: mu, + [Se.Tuple]: mu, + [Se.UInt]: yh, + [Se.Vec]: Ao, + [Se.VecFixed]: Ao, + [Se.WrapperKeepOpaque]: Ao, + [Se.WrapperOpaque]: Ao + }; + function M8(t) { const e = t.length, r = new Array(e); for (let n = 0; n < e; n++) { - const i = t[n], s = da(i); - r[n] = uee[s.info](i, s); + const i = t[n], s = fa(i); + r[n] = fee[s.info](i, s); } return r; } - var lee = mi("metadata"); - function fee(t, e, r) { - const n = M8(A8(r)).filter((i) => !t.hasType(i) && !t.isLookupType(i)).sort(); + var hee = mi("metadata"); + function dee(t, e, r) { + const n = S8(M8(r)).filter((i) => !t.hasType(i) && !t.isLookupType(i)).sort(); if (n.length !== 0) { const i = `Unknown types found, no types for ${n.join(", ")}`; if (e) throw new Error(i); - lee.warn(i); + hee.warn(i); } return r; } function rk(t, e) { return e.map(({ type: r }) => t.getTypeDef(r).type); } - function E7(t, e) { + function _7(t, e) { return t.getSiType(e).def.asVariant.variants.map(({ fields: r }) => rk(t, r)); } - function hee({ lookup: t, pallets: e }) { - return e.reduce((r, { calls: n, constants: i, events: s, storage: o }) => (r.push([rk(t, i)]), n.isSome && r.push(E7(t, n.unwrap().type)), s.isSome && r.push(E7(t, s.unwrap().type)), o.isSome && r.push(o.unwrap().items.map(({ type: a }) => { + function pee({ lookup: t, pallets: e }) { + return e.reduce((r, { calls: n, constants: i, events: s, storage: o }) => (r.push([rk(t, i)]), n.isSome && r.push(_7(t, n.unwrap().type)), s.isSome && r.push(_7(t, s.unwrap().type)), o.isSome && r.push(o.unwrap().items.map(({ type: a }) => { if (a.isPlain) return [t.getTypeDef(a.asPlain).type]; const { hashers: c, key: u, value: f } = a.asMap; @@ -30954,20 +30954,20 @@ ${gz(e, r)}`); ]; })), r), []); } - function dee(t, e, r) { - return fee(t, r, M8(hee(e))); + function mee(t, e, r) { + return dee(t, r, S8(pee(e))); } - function pee(t) { + function gee(t) { const e = t.map((n) => n.toString().trim()), r = e.findIndex((n) => !n.length); return r === -1 ? e : e.slice(0, r); } - function mee(t, { extrinsic: e, lookup: r, pallets: n }) { + function yee(t, { extrinsic: e, lookup: r, pallets: n }) { return t.createTypeUnsafe("MetadataLatest", [{ extrinsic: e, lookup: { types: r.types.map(({ id: i, type: s }) => t.createTypeUnsafe("PortableType", [{ id: i, - type: st({}, s, { docs: pee(s.docs) }) + type: st({}, s, { docs: gee(s.docs) }) }])) }, pallets: n.map(({ calls: i, index: s, name: o }) => ({ @@ -30977,30 +30977,30 @@ ${gz(e, r)}`); })) }]).toJSON(); } - function gee(t) { + function bee(t) { return t.isPlain ? t.asPlain : t.asMap.value; } - function tm(t, e, r) { - const n = Ed(t.lookup, gee(e)); + function rm(t, e, r) { + const n = _d(t.lookup, bee(e)); return r ? `Option<${n}>` : n; } - function yee(t, e) { + function wee(t, e) { return qu(t, e); } - function bee(t, e, ...r) { - return xd(t, e, r); + function vee(t, e, ...r) { + return vd(t, e, r); } function Sl(t, { type: e }, r, n) { const i = {}, s = t.getSiType(e).def.asVariant.variants; for (let o = 0, a = s.length; o < a; o++) - Jn(i, s[o], n, r, o); + Zn(i, s[o], n, r, o); return i; } var Ds = { extrinsic: {}, payload: {} }; - var wee = { + var xee = { LimitParathreadCommits: Ds, OnlyStakingAndClaims: Ds, PrevalidateAttests: Ds, @@ -31008,10 +31008,10 @@ ${gz(e, r)}`); TransactionCallFilter: Ds, ValidateDoubleVoteReports: Ds }; - var vee = { + var _ee = { DisallowSigned: Ds }; - var xee = { + var Eee = { ChargeAssetTxPayment: { extrinsic: { tip: "Compact", @@ -31020,7 +31020,7 @@ ${gz(e, r)}`); payload: {} } }; - var S7 = { + var E7 = { extrinsic: { era: "ExtrinsicEra" }, @@ -31028,23 +31028,23 @@ ${gz(e, r)}`); blockHash: "Hash" } }; - var M7 = { + var S7 = { extrinsic: { tip: "Compact" }, payload: {} }; - var _ee = { - ChargeTransactionPayment: M7, + var See = { + ChargeTransactionPayment: S7, CheckBlockGasLimit: Ds, - CheckEra: S7, + CheckEra: E7, CheckGenesis: { extrinsic: {}, payload: { genesisHash: "Hash" } }, - CheckMortality: S7, + CheckMortality: E7, CheckNonZeroSender: Ds, CheckNonce: { extrinsic: { @@ -31072,11 +31072,11 @@ ${gz(e, r)}`); }, CheckWeight: Ds, LockStakingStatus: Ds, - SkipCheckIfFeeless: M7, + SkipCheckIfFeeless: S7, ValidateEquivocationReport: Ds }; - var nk = st({}, _ee, wee, vee, xee); - var Ry = [ + var nk = st({}, See, xee, _ee, Eee); + var ky = [ "CheckVersion", "CheckGenesis", "CheckEra", @@ -31085,16 +31085,16 @@ ${gz(e, r)}`); "ChargeTransactionPayment", "CheckBlockGasLimit" ]; - function Eee(t, e = {}) { + function Mee(t, e = {}) { const r = [...Object.keys(nk), ...Object.keys(e)]; return t.filter((n) => !r.includes(n)); } - function A7(t, e, r = {}) { + function M7(t, e, r = {}) { return t.map((n) => r[n] || nk[n]).filter((n) => !!n).reduce((n, i) => st(n, i[e]), {}); } - function See(t, e) { + function Aee(t, e) { if (!(e != null && e.length)) - return { DataType: po }; + return { DataType: ho }; const r = e.subarray(0, 2); return { DataType: t.findMetaEvent(r), @@ -31104,7 +31104,7 @@ ${gz(e, r)}`); } }; } - var T8 = class extends El { + var A8 = class extends El { constructor(r, n, i, s = "", o = "") { const a = (i == null ? void 0 : i.fields) || []; super(r, a.map(({ type: u }) => r.createLookupType(u)), n); @@ -31115,7 +31115,7 @@ ${gz(e, r)}`); re(this, "__internal__typeDef"); this.__internal__meta = i, this.__internal__method = o, this.__internal__section = s, this.__internal__typeDef = a.map(({ type: u }) => r.lookup.getTypeDef(u)); const c = a.map(({ name: u }) => r.lookup.sanitizeField(u)[0]).filter((u) => !!u); - c.length === a.length && (this.__internal__names = c, Jc(this, c, (u, f) => this[f])); + c.length === a.length && (this.__internal__names = c, Yc(this, c, (u, f) => this[f])); } get meta() { return this.__internal__meta; @@ -31144,7 +31144,7 @@ ${gz(e, r)}`); }; var ik = class extends cn { constructor(e, r) { - const { DataType: n, value: i } = See(e, r); + const { DataType: n, value: i } = Aee(e, r); super(e, { index: "EventId", data: n @@ -31176,15 +31176,15 @@ ${gz(e, r)}`); } }; var sk = 4; - var Sd = class extends cn { + var Ed = class extends cn { constructor(e, r, { isSigned: n } = {}) { super(e, { signature: "ExtrinsicSignatureV4", method: "Call" - }, Sd.decodeExtrinsic(e, r, n)); + }, Ed.decodeExtrinsic(e, r, n)); } static decodeExtrinsic(e, r, n = false) { - if (r instanceof Sd) + if (r instanceof Ed) return r; if (r instanceof e.createClassUnsafe("Call")) return { method: r }; @@ -31219,38 +31219,38 @@ ${gz(e, r)}`); return this.signature.signFake(this.method, e, r), this; } }; - var rw = 128; - var Mee = 0; - var Cy = new Uint8Array(); + var tw = 128; + var Tee = 0; + var Ry = new Uint8Array(); var ok = 4; var ak = new Uint8Array([0]); var ck = 127; - var T7 = [ + var A7 = [ "ExtrinsicUnknown", "ExtrinsicUnknown", "ExtrinsicUnknown", "ExtrinsicUnknown", "ExtrinsicV4" ]; - function rm(t, e, r) { - if (e instanceof p0) + function nm(t, e, r) { + if (e instanceof m0) return e.unwrap(); - const n = (r & rw) === rw, i = T7[r & ck] || T7[0]; + const n = (r & tw) === tw, i = A7[r & ck] || A7[0]; return t.createTypeUnsafe(i, [e, { isSigned: n, version: r }]); } - function Aee(t, e, r = ok) { - return Et(e) || Array.isArray(e) || Ft(e) ? Tee(t, Xe(e), r) : e instanceof t.createClassUnsafe("Call") ? rm(t, { method: e }, r) : rm(t, e, r); + function Nee(t, e, r = ok) { + return Et(e) || Array.isArray(e) || Ft(e) ? Iee(t, Xe(e), r) : e instanceof t.createClassUnsafe("Call") ? nm(t, { method: e }, r) : nm(t, e, r); } - function Tee(t, e, r) { + function Iee(t, e, r) { if (!e.length) - return rm(t, new Uint8Array(), r); + return nm(t, new Uint8Array(), r); const [n, i] = sg(e), s = n + i.toNumber(); if (s > e.length) throw new Error(`Extrinsic: length less than remainder, expected at least ${s}, found ${e.length}`); const o = e.subarray(n, s); - return rm(t, o.subarray(1), o[0]); + return nm(t, o.subarray(1), o[0]); } - var Nee = class extends Ig { + var Oee = class extends Ig { constructor(e, r, n) { super(e, r, n); const i = Object.keys(e.getSignedExtensionTypes()), s = (o) => this.inner.signature[o]; @@ -31309,7 +31309,7 @@ ${gz(e, r)}`); return this.unwrap(); } get version() { - return this.type | (this.isSigned ? rw : Mee); + return this.type | (this.isSigned ? tw : Tee); } is(e) { return this.method.is(e); @@ -31318,9 +31318,9 @@ ${gz(e, r)}`); return super.unwrap(); } }; - var p0 = class extends Nee { + var m0 = class extends Oee { constructor(r, n, { version: i } = {}) { - super(r, Aee(r, n, i)); + super(r, Nee(r, n, i)); re(this, "__internal__hashCache"); } get hash() { @@ -31330,10 +31330,10 @@ ${gz(e, r)}`); return this.inner.addSignature(r, n, i), this.__internal__hashCache = void 0, this; } inspect() { - const r = $t(...this.toU8aInner()); + const r = Qt(...this.toU8aInner()); return { inner: this.isSigned ? this.inner.inspect().inner : this.inner.method.inspect().inner, - outer: [qr(r.length), new Uint8Array([this.version])] + outer: [Hr(r.length), new Uint8Array([this.version])] }; } sign(r, n) { @@ -31365,8 +31365,8 @@ ${gz(e, r)}`); return "Extrinsic"; } toU8a(r) { - const n = $t(...this.toU8aInner()); - return r ? n : ua(n); + const n = Qt(...this.toU8aInner()); + return r ? n : aa(n); } toU8aInner() { return [ @@ -31375,47 +31375,47 @@ ${gz(e, r)}`); ]; } }; - re(p0, "LATEST_EXTRINSIC_VERSION", sk); - function Iee(t) { + re(m0, "LATEST_EXTRINSIC_VERSION", sk); + function Pee(t) { const e = t.toString(2); let r = 0; for (; e[e.length - 1 - r] === "0"; ) r++; return r; } - function Oee(t, e) { + function kee(t, e) { if (Et(e) || Ft(e) || Array.isArray(e)) - return kee(t, Xe(e)); + return Cee(t, Xe(e)); if (e) { if (di(e)) - return Pee(t, e); + return Ree(t, e); } else - return [new zi(t), new zi(t)]; + return [new Vi(t), new Vi(t)]; throw new Error("Invalid data passed to Mortal era"); } - function Pee(t, e) { + function Ree(t, e) { const { current: r, period: n } = e; let i = Math.pow(2, Math.ceil(Math.log2(n))); i = Math.min(Math.max(i, 4), 65536); const s = r % i, o = Math.max(i >> 12, 1), a = s / o * o; - return [new zi(t, i), new zi(t, a)]; + return [new Vi(t, i), new Vi(t, a)]; } - function kee(t, e) { + function Cee(t, e) { if (e.length === 0) - return [new zi(t), new zi(t)]; - const r = Zn(e.subarray(0, 1)).toNumber(), n = Zn(e.subarray(1, 2)).toNumber(), i = r + (n << 8), s = 2 << i % 16, o = Math.max(s >> 12, 1), a = (i >> 4) * o; + return [new Vi(t), new Vi(t)]; + const r = Yn(e.subarray(0, 1)).toNumber(), n = Yn(e.subarray(1, 2)).toNumber(), i = r + (n << 8), s = 2 << i % 16, o = Math.max(s >> 12, 1), a = (i >> 4) * o; if (s < 4 || a >= s) throw new Error("Invalid data passed to Mortal era"); - return [new zi(t, s), new zi(t, a)]; + return [new Vi(t, s), new Vi(t, a)]; } - function nw(t = new Uint8Array()) { + function rw(t = new Uint8Array()) { if (Et(t)) return !t.length || t[0] === 0 ? new Uint8Array([0]) : new Uint8Array([1, t[0], t[1]]); if (t) { - if (t instanceof O8) - return nw(t.toU8a()); + if (t instanceof I8) + return rw(t.toU8a()); if (Ft(t)) - return nw(On(t)); + return rw(On(t)); if (di(t)) { const e = Object.entries(t).map(([i, s]) => [i.toLowerCase(), s]), r = e.find(([i]) => i.toLowerCase() === "mortalera"), n = e.find(([i]) => i.toLowerCase() === "immortalera"); return r ? { MortalEra: r[1] } : n ? { ImmortalEra: n[1] } : { MortalEra: t }; @@ -31424,17 +31424,17 @@ ${gz(e, r)}`); return new Uint8Array([0]); throw new Error("Invalid data passed to Era"); } - var N8 = class extends ls { + var T8 = class extends ls { constructor(e, r) { super(e, ak); } }; - var I8 = class extends El { + var N8 = class extends El { constructor(e, r) { super(e, { - period: zi, - phase: zi - }, Oee(e, r)); + period: Vi, + phase: Vi + }, kee(e, r)); } get encodedLength() { return 2; @@ -31447,15 +31447,15 @@ ${gz(e, r)}`); } toHuman() { return { - period: P1(this.period), - phase: P1(this.phase) + period: k1(this.period), + phase: k1(this.phase) }; } toJSON() { return this.toHex(); } toU8a(e) { - const r = this.period.toNumber(), n = Math.min(15, Math.max(1, Iee(r) - 1)) + (this.phase.toNumber() / Math.max(r >> 12, 1) << 4); + const r = this.period.toNumber(), n = Math.min(15, Math.max(1, Pee(r) - 1)) + (this.phase.toNumber() / Math.max(r >> 12, 1) << 4); return new Uint8Array([ n & 255, n >> 8 @@ -31469,12 +31469,12 @@ ${gz(e, r)}`); return this.birth(e) + this.period.toNumber(); } }; - var O8 = class extends us { + var I8 = class extends us { constructor(e, r) { super(e, { - ImmortalEra: N8, - MortalEra: I8 - }, nw(r)); + ImmortalEra: T8, + MortalEra: N8 + }, rw(r)); } get encodedLength() { return this.isImmortalEra ? this.asImmortalEra.encodedLength : this.asMortalEra.encodedLength; @@ -31499,19 +31499,19 @@ ${gz(e, r)}`); return this.isMortalEra ? this.asMortalEra.toU8a(e) : this.asImmortalEra.toU8a(e); } }; - var N7 = [ + var T7 = [ "ExtrinsicPayloadUnknown", "ExtrinsicPayloadUnknown", "ExtrinsicPayloadUnknown", "ExtrinsicPayloadUnknown", "ExtrinsicPayloadV4" ]; - function Ree(t, e, r = ok) { - return e instanceof P8 ? e.unwrap() : t.createTypeUnsafe(N7[r] || N7[0], [e, { version: r }]); + function Dee(t, e, r = ok) { + return e instanceof O8 ? e.unwrap() : t.createTypeUnsafe(T7[r] || T7[0], [e, { version: r }]); } - var P8 = class extends Ig { + var O8 = class extends Ig { constructor(e, r, { version: n } = {}) { - super(e, Ree(e, r, n)); + super(e, Dee(e, r, n)); } get blockHash() { return this.inner.blockHash; @@ -31575,7 +31575,7 @@ ${gz(e, r)}`); throw super(e, {}), new Error(`Unsupported ${n ? "" : "un"}signed extrinsic version ${i & ck}`); } }; - var I7 = { + var N7 = { address: "Address", blockHash: "Hash", blockNumber: "BlockNumber", @@ -31591,12 +31591,12 @@ ${gz(e, r)}`); var fk = class extends cn { constructor(r, n) { const i = st({}, r.getSignedExtensionTypes(), r.getSignedExtensionExtra()); - super(r, st({}, i, I7), n); + super(r, st({}, i, N7), n); re(this, "__internal__extraTypes"); this.__internal__extraTypes = {}; const s = (o) => this.get(o); for (const [o, a] of Object.entries(i)) - I7[o] || (this.__internal__extraTypes[o] = a), ag(this, o, s); + N7[o] || (this.__internal__extraTypes[o] = a), ag(this, o, s); } get address() { return this.getT("address"); @@ -31638,7 +31638,7 @@ ${gz(e, r)}`); const r = {}, n = Object.keys(this.__internal__extraTypes); for (let i = 0, s = n.length; i < s; i++) { const o = n[i], a = this.getT(o); - (!(a instanceof bo) || a.isSome) && (r[o] = a.toJSON()); + (!(a instanceof yo) || a.isSome) && (r[o] = a.toJSON()); } return st(r, { address: this.address.toString(), @@ -31664,11 +31664,11 @@ ${gz(e, r)}`); }; } }; - function Cee(t, e, r, n) { + function Lee(t, e, r, n) { const i = r.length > 256 ? t.hash(r) : r; return e.sign(i, n); } - var nm = class extends cn { + var im = class extends cn { constructor(r, n) { super(r, st({ method: "Bytes" }, r.getSignedExtensionTypes(), r.getSignedExtensionExtra()), n); re(this, "__internal__signOptions"); @@ -31707,30 +31707,30 @@ ${gz(e, r)}`); return this.getT("assetId"); } sign(r) { - return Cee(this.registry, r, this.toU8a({ method: true }), this.__internal__signOptions); + return Lee(this.registry, r, this.toU8a({ method: true }), this.__internal__signOptions); } }; - var Dee = new Uint8Array(256).fill(1); - function Dy(t, e) { + var Bee = new Uint8Array(256).fill(1); + function Cy(t, e) { return t.createTypeUnsafe("Address", [Et(e) ? Bt(e) : e]); } - var Md = class extends cn { + var Sd = class extends cn { constructor(r, n, { isSigned: i } = {}) { const s = r.getSignedExtensionTypes(); super(r, st( { signer: "Address", signature: "ExtrinsicSignature" }, s - ), Md.decodeExtrinsicSignature(n, i)); + ), Sd.decodeExtrinsicSignature(n, i)); re(this, "__internal__signKeys"); - this.__internal__signKeys = Object.keys(s), Jc(this, this.__internal__signKeys, (o) => this.get(o)); + this.__internal__signKeys = Object.keys(s), Yc(this, this.__internal__signKeys, (o) => this.get(o)); } static decodeExtrinsicSignature(r, n = false) { if (r) { - if (r instanceof Md) + if (r instanceof Sd) return r; } else - return Cy; - return n ? r : Cy; + return Ry; + return n ? r : Ry; } get encodedLength() { return this.isSigned ? super.encodedLength : 0; @@ -31767,11 +31767,11 @@ ${gz(e, r)}`); return this.set("signer", r), this.set("signature", n), this; } addSignature(r, n, i) { - return this._injectSignature(Dy(this.registry, r), this.registry.createTypeUnsafe("ExtrinsicSignature", [n]), new nm(this.registry, i)); + return this._injectSignature(Cy(this.registry, r), this.registry.createTypeUnsafe("ExtrinsicSignature", [n]), new im(this.registry, i)); } createPayload(r, n) { const { era: i, runtimeVersion: { specVersion: s, transactionVersion: o } } = n; - return new nm(this.registry, st({}, n, { + return new im(this.registry, st({}, n, { era: i || ak, method: r.toHex(), specVersion: s, @@ -31782,19 +31782,19 @@ ${gz(e, r)}`); if (!(n != null && n.addressRaw)) throw new Error(`Expected a valid keypair for signing, found ${Ct(n)}`); const s = this.createPayload(r, i); - return this._injectSignature(Dy(this.registry, n.addressRaw), this.registry.createTypeUnsafe("ExtrinsicSignature", [s.sign(n)]), s); + return this._injectSignature(Cy(this.registry, n.addressRaw), this.registry.createTypeUnsafe("ExtrinsicSignature", [s.sign(n)]), s); } signFake(r, n, i) { if (!n) throw new Error(`Expected a valid address for signing, found ${Ct(n)}`); const s = this.createPayload(r, i); - return this._injectSignature(Dy(this.registry, n), this.registry.createTypeUnsafe("ExtrinsicSignature", [Dee]), s); + return this._injectSignature(Cy(this.registry, n), this.registry.createTypeUnsafe("ExtrinsicSignature", [Bee]), s); } toU8a(r) { - return this.isSigned ? super.toU8a(r) : Cy; + return this.isSigned ? super.toU8a(r) : Ry; } }; - function O7(t) { + function I7(t) { if (Et(t) || Array.isArray(t)) return Xe(t); if (t) { @@ -31806,15 +31806,15 @@ ${gz(e, r)}`); return new Uint8Array(); throw new Error(`Unknown type passed to AccountId constructor, found typeof ${typeof t}`); } - var hk = class extends ac { + var hk = class extends sc { constructor(e, r = 264, n) { - const i = O7(n); + const i = I7(n); if (i.length * 8 < r && i.some((o) => o)) throw new Error(`Invalid AccountId provided, expected ${r >> 3} bytes, found ${i.length}`); super(e, i, r); } eq(e) { - return super.eq(O7(e)); + return super.eq(I7(e)); } toHuman() { return this.toJSON(); @@ -31826,7 +31826,7 @@ ${gz(e, r)}`); return this.toJSON(); } toString() { - return la(this, this.registry.chainSS58); + return ca(this, this.registry.chainSS58); } toRawType() { return "AccountId"; @@ -31842,15 +31842,15 @@ ${gz(e, r)}`); super(e, 264, r); } }; - var Lee = 239; - var P7 = 252; - var k7 = 253; - var R7 = 254; - var Bee = new ct(Lee); - var Uee = new ct(1).shln(16); - var jee = new ct(1).shln(32); + var Uee = 239; + var O7 = 252; + var P7 = 253; + var k7 = 254; + var jee = new ct(Uee); + var Vee = new ct(1).shln(16); + var zee = new ct(1).shln(32); function pk(t) { - return t instanceof sn ? t.toBn() : Ki(t) || rr(t) || Ft(t) || Et(t) || ic(t) ? t : pk(Mr(t)); + return t instanceof sn ? t.toBn() : Ki(t) || rr(t) || Ft(t) || Et(t) || rc(t) ? t : pk(Mr(t)); } var sn = class extends nl { constructor(e, r = new ct(0)) { @@ -31858,20 +31858,20 @@ ${gz(e, r)}`); } static calcLength(e) { const r = on(e); - return r.lte(Bee) ? 1 : r.lt(Uee) ? 2 : r.lt(jee) ? 4 : 8; + return r.lte(jee) ? 1 : r.lt(Vee) ? 2 : r.lt(zee) ? 4 : 8; } static readLength(e) { const r = e[0]; - return r === P7 ? [1, 2] : r === k7 ? [1, 4] : r === R7 ? [1, 8] : [0, 1]; + return r === O7 ? [1, 2] : r === P7 ? [1, 4] : r === k7 ? [1, 8] : [0, 1]; } static writeLength(e) { switch (e.length) { case 2: - return new Uint8Array([P7]); + return new Uint8Array([O7]); case 4: - return new Uint8Array([k7]); + return new Uint8Array([P7]); case 8: - return new Uint8Array([R7]); + return new Uint8Array([k7]); default: return new Uint8Array([]); } @@ -31890,7 +31890,7 @@ ${gz(e, r)}`); } toString() { const e = sn.calcLength(this); - return la(this.toU8a().subarray(0, e), this.registry.chainSS58); + return ca(this.toU8a().subarray(0, e), this.registry.chainSS58); } toRawType() { return "AccountIndex"; @@ -31916,37 +31916,37 @@ ${gz(e, r)}`); return this.getT("header"); } }; - function k8(t, e) { + function P8(t, e) { return e.fields.reduce((r, { name: n, type: i }, s) => (r[n.unwrapOr(`param${s}`).toString()] = t.createLookupType(i), r), {}); } - function Vee(t, e, r) { + function Fee(t, e, r) { const { args: n, callIndex: i } = e, s = i instanceof gk ? i.toU8a() : i, o = r || t.findMetaCall(s).meta; return { args: n, - argsDef: k8(t, o), + argsDef: P8(t, o), callIndex: i, meta: o }; } - function zee(t, e, r) { + function Hee(t, e, r) { const n = t.firstCallIndex.slice(); n.set(e.subarray(0, 2), 0); const i = r || t.findMetaCall(n).meta; return { args: e.subarray(2), - argsDef: k8(t, i), + argsDef: P8(t, i), callIndex: n, meta: i }; } - function Fee(t, e = new Uint8Array(), r) { + function qee(t, e = new Uint8Array(), r) { if (Et(e) || Ft(e)) - return zee(t, Xe(e), r); + return Hee(t, Xe(e), r); if (di(e) && e.callIndex && e.args) - return Vee(t, e, r); + return Fee(t, e, r); throw new Error(`Call: Cannot decode value '${e}' of type ${typeof e}`); } - var gk = class extends ac { + var gk = class extends sc { constructor(e, r) { super(e, r, 16); } @@ -31960,7 +31960,7 @@ ${gz(e, r)}`); super(...args); re(this, "_meta"); }; - const s = Fee(r, n, i); + const s = qee(r, n, i); try { e(r, { callIndex: gk, @@ -31981,7 +31981,7 @@ ${gz(e, r)}`); return [...this.getT("args").values()]; } get argsDef() { - return k8(this.registry, this.meta); + return P8(this.registry, this.meta); } get argsEntries() { return [...this.getT("args").entries()]; @@ -32022,23 +32022,23 @@ ${gz(e, r)}`); }; function tp(t, e, r, n = true) { return r && St(r.unwrapOrDefault) ? r : t.createTypeUnsafe(e, [ - n ? Fc(r) || Ar(r) ? null : Array.isArray(r) ? r : [r] : r + n ? Vc(r) || Ar(r) ? null : Array.isArray(r) ? r : [r] : r ]); } - function Hee(t, e, r) { + function Wee(t, e, r) { return e === "ss58Format" ? tp(t, "Option", r, false) : e === "tokenDecimals" ? tp(t, "Option>", r) : e === "tokenSymbol" ? tp(t, "Option>", r) : e === "isEthereum" ? tp(t, "Bool", r, false) : r; } - function qee(t, e) { - return (e && St(e.entries) ? [...e.entries()] : Object.entries(e || {})).reduce((r, [n, i]) => (r[n] = Hee(t, n, i), r), { + function Gee(t, e) { + return (e && St(e.entries) ? [...e.entries()] : Object.entries(e || {})).reduce((r, [n, i]) => (r[n] = Wee(t, n, i), r), { isEthereum: t.createTypeUnsafe("Bool", []), ss58Format: t.createTypeUnsafe("Option", []), tokenDecimals: t.createTypeUnsafe("Option>", []), tokenSymbol: t.createTypeUnsafe("Option>", []) }); } - var bk = class extends _8 { + var bk = class extends x8 { constructor(e, r) { - super(e, qee(e, r)); + super(e, Gee(e, r)); } get isEthereum() { return this.getT("isEthereum"); @@ -32053,49 +32053,49 @@ ${gz(e, r)}`); return this.getT("tokenSymbol"); } }; - var Wee = /* @__PURE__ */ Dr("aura"); - var Gee = /* @__PURE__ */ Dr("BABE"); - var Kee = /* @__PURE__ */ Dr("FRNK"); - var Xee = /* @__PURE__ */ Dr("pow_"); - var Yee = /* @__PURE__ */ Dr("nmbs"); - function Zee(t, e, r) { + var Kee = /* @__PURE__ */ Cr("aura"); + var Xee = /* @__PURE__ */ Cr("BABE"); + var Yee = /* @__PURE__ */ Cr("FRNK"); + var Zee = /* @__PURE__ */ Cr("pow_"); + var Jee = /* @__PURE__ */ Cr("nmbs"); + function Qee(t, e, r) { return r[t.createTypeUnsafe("RawAuraPreDigest", [e.toU8a(true)]).slotNumber.mod(new ct(r.length)).toNumber()]; } - function Jee(t, e, r) { + function $ee(t, e, r) { const n = t.createTypeUnsafe("RawBabePreDigestCompat", [e.toU8a(true)]); return r[n.value.toNumber()]; } - function Qee(t, e) { + function ete(t, e) { return t.createTypeUnsafe("AccountId", [e]); } - var wk = class extends ac { + var wk = class extends sc { constructor(e, r) { - super(e, rr(r) ? Hr(r, { isLe: false }) : r, 32); + super(e, rr(r) ? Fr(r, { isLe: false }) : r, 32); } get isAura() { - return this.eq(Wee); + return this.eq(Kee); } get isBabe() { - return this.eq(Gee); + return this.eq(Xee); } get isGrandpa() { - return this.eq(Kee); + return this.eq(Yee); } get isPow() { - return this.eq(Xee); + return this.eq(Zee); } get isNimbus() { - return this.eq(Yee); + return this.eq(Jee); } extractAuthor(e, r) { if (r != null && r.length) { if (this.isAura) - return Zee(this.registry, e, r); + return Qee(this.registry, e, r); if (this.isBabe) - return Jee(this.registry, e, r); + return $ee(this.registry, e, r); } if (this.isPow || this.isNimbus) - return Qee(this.registry, e); + return ete(this.registry, e); } toHuman() { return this.toString(); @@ -32104,28 +32104,28 @@ ${gz(e, r)}`); return "ConsensusEngineId"; } toString() { - return this.isAscii ? fo(this) : Bt(this); + return this.isAscii ? lo(this) : Bt(this); } }; - var C7 = new Uint8Array([255]); - function $ee(t, e) { + var R7 = new Uint8Array([255]); + function tte(t, e) { const r = Mr(e); - return r.length === 32 ? t.createTypeUnsafe("AccountId", [r]) : t.createTypeUnsafe("AccountIndex", [Zn(r)]); + return r.length === 32 ? t.createTypeUnsafe("AccountId", [r]) : t.createTypeUnsafe("AccountIndex", [Yn(r)]); } - function ete(t, e) { + function rte(t, e) { if (e.length === 32) return t.createTypeUnsafe("AccountId", [e]); if (e[0] === 255) return t.createTypeUnsafe("AccountId", [e.subarray(1)]); const [r, n] = sn.readLength(e); - return t.createTypeUnsafe("AccountIndex", [Zn(e.subarray(r, r + n))]); + return t.createTypeUnsafe("AccountIndex", [Yn(e.subarray(r, r + n))]); } - function tte(t, e) { - return e instanceof R8 ? e.inner : e instanceof Cf || e instanceof sn ? e : Ki(e) || rr(e) || ic(e) ? t.createTypeUnsafe("AccountIndex", [e]) : Array.isArray(e) || Ft(e) || Et(e) ? ete(t, Xe(e)) : $ee(t, e); + function nte(t, e) { + return e instanceof k8 ? e.inner : e instanceof Cf || e instanceof sn ? e : Ki(e) || rr(e) || rc(e) ? t.createTypeUnsafe("AccountIndex", [e]) : Array.isArray(e) || Ft(e) || Et(e) ? rte(t, Xe(e)) : tte(t, e); } - var R8 = class extends Ig { + var k8 = class extends Ig { constructor(e, r = new Uint8Array()) { - super(e, tte(e, r)); + super(e, nte(e, r)); } get encodedLength() { const e = this._rawLength; @@ -32138,7 +32138,7 @@ ${gz(e, r)}`); const e = this.inner.toU8a().subarray(0, this._rawLength); return { outer: [ - new Uint8Array(this.inner instanceof sn ? sn.writeLength(e) : C7), + new Uint8Array(this.inner instanceof sn ? sn.writeLength(e) : R7), e ] }; @@ -32151,16 +32151,16 @@ ${gz(e, r)}`); } toU8a(e) { const r = this.inner.toU8a().subarray(0, this._rawLength); - return e ? r : $t(this.inner instanceof sn ? sn.writeLength(r) : C7, r); + return e ? r : Qt(this.inner instanceof sn ? sn.writeLength(r) : R7, r); } }; - function D7(t, e) { + function C7(t, e) { return [0, 32].includes(e.length) ? { Id: e } : e.length === 20 ? { Address20: e } : e.length <= 8 ? { Index: t.createTypeUnsafe("AccountIndex", [e]).toNumber() } : e; } - function rte(t, e) { - return e instanceof Cf ? { Id: e } : Et(e) ? D7(t, e) : e instanceof Ad ? e : e instanceof sn || Ki(e) || rr(e) ? { Index: rr(e) ? e : e.toNumber() } : pr(e) ? D7(t, Mr(e.toString())) : e; + function ite(t, e) { + return e instanceof Cf ? { Id: e } : Et(e) ? C7(t, e) : e instanceof Md ? e : e instanceof sn || Ki(e) || rr(e) ? { Index: rr(e) ? e : e.toNumber() } : pr(e) ? C7(t, Mr(e.toString())) : e; } - var Ad = class extends us { + var Md = class extends us { constructor(e, r) { super(e, { Id: "AccountId", @@ -32168,7 +32168,7 @@ ${gz(e, r)}`); Raw: "Bytes", Address32: "H256", Address20: "H160" - }, rte(e, r)); + }, ite(e, r)); } inspect() { const { inner: e, outer: r = [] } = this.inner.inspect(); @@ -32181,31 +32181,31 @@ ${gz(e, r)}`); return this.value.toString(); } }; - var im = 128; - var C8 = 0; - var nte = 127; + var sm = 128; + var R8 = 0; + var ste = 127; var vk = 0; - function L7(t) { - return t ? new Uint8Array([im | vk]) : new Uint8Array([C8]); + function D7(t) { + return t ? new Uint8Array([sm | vk]) : new Uint8Array([R8]); } - function ite(t) { - return t.length ? t.subarray(0, 1) : new Uint8Array([C8]); + function ote(t) { + return t.length ? t.subarray(0, 1) : new Uint8Array([R8]); } - function ste(t, e) { + function ate(t, e) { return new Uint8Array([ - (new tu(t, e.aye).isTrue ? im : C8) | t.createTypeUnsafe("Conviction", [e.conviction || vk]).index + (new $c(t, e.aye).isTrue ? sm : R8) | t.createTypeUnsafe("Conviction", [e.conviction || vk]).index ]); } - function ote(t, e) { - return Et(e) ? ite(e) : Ar(e) || e instanceof Boolean || Af(e) ? L7(new tu(t, e).isTrue) : rr(e) ? L7(e < 0) : ste(t, e); + function cte(t, e) { + return Et(e) ? ote(e) : Ar(e) || e instanceof Boolean || Af(e) ? D7(new $c(t, e).isTrue) : rr(e) ? D7(e < 0) : ate(t, e); } - var xk = class extends ac { + var xk = class extends sc { constructor(r, n) { - const i = ote(r, n); + const i = cte(r, n); super(r, i, 8); re(this, "__internal__aye"); re(this, "__internal__conviction"); - this.__internal__aye = (i[0] & im) === im, this.__internal__conviction = this.registry.createTypeUnsafe("Conviction", [i[0] & nte]); + this.__internal__aye = (i[0] & sm) === sm, this.__internal__conviction = this.registry.createTypeUnsafe("Conviction", [i[0] & ste]); } get conviction() { return this.__internal__conviction; @@ -32232,15 +32232,15 @@ ${gz(e, r)}`); return "Vote"; } }; - function B7(t) { + function L7(t) { return Et(t) || Array.isArray(t) ? Xe(t) : Ft(t) || bO(t.toString()) ? On(t.toString()) : pr(t) ? Xe(t) : t; } - var D8 = class extends ac { + var C8 = class extends sc { constructor(e, r = new Uint8Array()) { - super(e, B7(r), 160); + super(e, L7(r), 160); } eq(e) { - return !!e && super.eq(B7(e)); + return !!e && super.eq(L7(e)); } toHuman() { return this.toJSON(); @@ -32258,25 +32258,25 @@ ${gz(e, r)}`); return "AccountId"; } }; - var ate = new Uint8Array([255]); - function cte(t, e) { + var ute = new Uint8Array([255]); + function lte(t, e) { const r = Mr(e); - return r.length === 20 ? t.createTypeUnsafe("EthereumAccountId", [r]) : t.createTypeUnsafe("AccountIndex", [Zn(r)]); + return r.length === 20 ? t.createTypeUnsafe("EthereumAccountId", [r]) : t.createTypeUnsafe("AccountIndex", [Yn(r)]); } - function ute(t, e) { + function fte(t, e) { if (e.length === 20) return t.createTypeUnsafe("EthereumAccountId", [e]); if (e[0] === 255) return t.createTypeUnsafe("EthereumAccountId", [e.subarray(1)]); const [r, n] = sn.readLength(e); - return t.createTypeUnsafe("AccountIndex", [Zn(e.subarray(r, r + n))]); + return t.createTypeUnsafe("AccountIndex", [Yn(e.subarray(r, r + n))]); } - function lte(t, e) { - return e instanceof L8 ? e.inner : e instanceof D8 || e instanceof sn ? e : Et(e) || Array.isArray(e) || Ft(e) ? ute(t, Xe(e)) : Ki(e) || rr(e) || ic(e) ? t.createTypeUnsafe("AccountIndex", [e]) : cte(t, e); + function hte(t, e) { + return e instanceof D8 ? e.inner : e instanceof C8 || e instanceof sn ? e : Et(e) || Array.isArray(e) || Ft(e) ? fte(t, Xe(e)) : Ki(e) || rr(e) || rc(e) ? t.createTypeUnsafe("AccountIndex", [e]) : lte(t, e); } - var L8 = class extends Ig { + var D8 = class extends Ig { constructor(e, r = new Uint8Array()) { - super(e, lte(e, r)); + super(e, hte(e, r)); } get encodedLength() { const e = this._rawLength; @@ -32293,10 +32293,10 @@ ${gz(e, r)}`); } toU8a(e) { const r = this.inner.toU8a().subarray(0, this._rawLength); - return e ? r : $t(this.inner instanceof sn ? sn.writeLength(r) : ate, r); + return e ? r : Qt(this.inner instanceof sn ? sn.writeLength(r) : ute, r); } }; - function fte(t, e) { + function dte(t, e) { const r = e[0]; if (r) { if (r >= 1 && r <= 33) { @@ -32308,8 +32308,8 @@ ${gz(e, r)}`); return [void 0, void 0]; throw new Error(`Unable to decode Data, invalid indicator byte ${r}`); } - function hte(t, e) { - return Et(e) || pr(e) ? fte(t, Xe(e)) : e ? [e, void 0] : [void 0, void 0]; + function pte(t, e) { + return Et(e) || pr(e) ? dte(t, Xe(e)) : e ? [e, void 0] : [void 0, void 0]; } var _k = class extends us { constructor(e, r) { @@ -32320,7 +32320,7 @@ ${gz(e, r)}`); Sha256: "H256", Keccak256: "H256", ShaThree256: "H256" - }, ...hte(e, r)), this.isRaw && this.asRaw.length > 32) + }, ...pte(e, r)), this.isRaw && this.asRaw.length > 32) throw new Error("Data.Raw values are limited to a maximum length of 32 bytes"); } get asBlakeTwo256() { @@ -32370,7 +32370,7 @@ ${gz(e, r)}`); return e.set([this.index + 32], 0), e.set(this.value.toU8a(), 1), e; } }; - var dte = { + var mte = { Blake2_128: [16, false], Blake2_128Concat: [16, true], Blake2_256: [32, false], @@ -32379,10 +32379,10 @@ ${gz(e, r)}`); Twox256: [32, false], Twox64Concat: [8, true] }; - function pte(t) { + function gte(t) { if (Et(t) || !t || pr(t)) return { key: t }; - if (t instanceof m0) + if (t instanceof g0) return { key: t, method: t.method, @@ -32411,23 +32411,23 @@ ${gz(e, r)}`); } throw new Error(`Unable to convert input ${t} to StorageKey`); } - function mte(t, e, r) { + function yte(t, e, r) { let n = 32; const i = r.length, s = new Array(i); for (let o = 0; o < i; o++) { - const [a, c] = r[o], [u, f] = dte[a.type], p = f ? t.createTypeUnsafe(Ed(t.lookup, c), [e.subarray(n + u)]) : t.createTypeUnsafe("Raw", [e.subarray(n, n + u)]); + const [a, c] = r[o], [u, f] = mte[a.type], p = f ? t.createTypeUnsafe(_d(t.lookup, c), [e.subarray(n + u)]) : t.createTypeUnsafe("Raw", [e.subarray(n, n + u)]); n += u + (f ? p.encodedLength : 0), s[o] = p; } return s; } - function gte(t, e, r) { + function bte(t, e, r) { if (!r || !r.type.isMap) return []; const { hashers: n, key: i } = r.type.asMap, s = n.length === 1 ? [i] : t.lookup.getSiType(i).def.asTuple; - return mte(t, e, n.map((o, a) => [o, s[a]])); + return yte(t, e, n.map((o, a) => [o, s[a]])); } - function yte(t) { - if (t instanceof m0) + function wte(t) { + if (t instanceof g0) return t.meta; if (St(t)) return t.meta; @@ -32436,28 +32436,28 @@ ${gz(e, r)}`); return e.meta; } } - function bte(t, e) { - if (e instanceof m0) + function vte(t, e) { + if (e instanceof g0) return e.outputType; if (St(e)) - return tm(t, e.meta.type); + return rm(t, e.meta.type); if (Array.isArray(e)) { const [r] = e; if (r.meta) - return tm(t, r.meta.type); + return rm(t, r.meta.type); } return "Raw"; } - var m0 = class extends f0 { + var g0 = class extends h0 { constructor(r, n, i = {}) { - const { key: s, method: o, section: a } = pte(n); + const { key: s, method: o, section: a } = gte(n); super(r, s); re(this, "__internal__args"); re(this, "__internal__meta"); re(this, "__internal__outputType"); re(this, "__internal__method"); re(this, "__internal__section"); - this.__internal__outputType = bte(r, n), this.setMeta(yte(n), i.section || a, i.method || o); + this.__internal__outputType = vte(r, n), this.setMeta(wte(n), i.section || a, i.method || o); } get args() { return this.__internal__args; @@ -32478,9 +32478,9 @@ ${gz(e, r)}`); return r.section === this.section && r.method === this.method; } setMeta(r, n, i) { - this.__internal__meta = r, this.__internal__method = i || this.__internal__method, this.__internal__section = n || this.__internal__section, r && (this.__internal__outputType = tm(this.registry, r.type)); + this.__internal__meta = r, this.__internal__method = i || this.__internal__method, this.__internal__section = n || this.__internal__section, r && (this.__internal__outputType = rm(this.registry, r.type)); try { - this.__internal__args = gte(this.registry, this.toU8a(true), r); + this.__internal__args = bte(this.registry, this.toU8a(true), r); } catch { } return this; @@ -32492,93 +32492,93 @@ ${gz(e, r)}`); return "StorageKey"; } }; - var wte = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var xte = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BitVec: BP, - Bool: tu, - Bytes: f0, + Bool: $c, + Bytes: h0, Data: _k, - F32: z1, - F64: F1, + F32: F1, + F64: H1, GenericAccountId: Cf, GenericAccountId32: Cf, GenericAccountId33: dk, GenericAccountIndex: sn, - GenericAddress: Ad, + GenericAddress: Md, GenericBlock: mk, GenericCall: yk, GenericChainProperties: bk, GenericConsensusEngineId: wk, - GenericEthereumAccountId: D8, - GenericEthereumLookupSource: L8, + GenericEthereumAccountId: C8, + GenericEthereumLookupSource: D8, GenericEvent: ik, - GenericEventData: T8, - GenericExtrinsic: p0, - GenericExtrinsicEra: O8, - GenericExtrinsicPayload: P8, + GenericEventData: A8, + GenericExtrinsic: m0, + GenericExtrinsicEra: I8, + GenericExtrinsicPayload: O8, GenericExtrinsicPayloadUnknown: uk, - GenericExtrinsicPayloadV4: nm, - GenericExtrinsicSignatureV4: Md, + GenericExtrinsicPayloadV4: im, + GenericExtrinsicSignatureV4: Sd, GenericExtrinsicUnknown: lk, - GenericExtrinsicV4: Sd, - GenericImmortalEra: N8, - GenericLookupSource: R8, - GenericMortalEra: I8, - GenericMultiAddress: Ad, + GenericExtrinsicV4: Ed, + GenericImmortalEra: T8, + GenericLookupSource: k8, + GenericMortalEra: N8, + GenericMultiAddress: Md, GenericSignerPayload: fk, GenericVote: xk, - I128: G1, - I16: q1, - I256: K1, - I32: wd, - I64: W1, - I8: H1, - ISize: X1, - Null: po, + I128: K1, + I16: W1, + I256: X1, + I32: bd, + I64: G1, + I8: q1, + ISize: Y1, + Null: ho, OptionBool: UP, - StorageKey: m0, - Text: x8, + StorageKey: g0, + Text: v8, Type: jP, - U128: J1, - U16: Z1, - U256: Q1, + U128: Q1, + U16: J1, + U256: $1, U32: nl, - U64: zi, - U8: Y1, - USize: $1, - bool: tu, - f32: z1, - f64: F1, - i128: G1, - i16: q1, - i256: K1, - i32: wd, - i64: W1, - i8: H1, - isize: X1, - u128: J1, - u16: Z1, - u256: Q1, + U64: Vi, + U8: Z1, + USize: em, + bool: $c, + f32: F1, + f64: H1, + i128: K1, + i16: W1, + i256: X1, + i32: bd, + i64: G1, + i8: q1, + isize: Y1, + u128: Q1, + u16: J1, + u256: $1, u32: nl, - u64: zi, - u8: Y1, - usize: $1 + u64: Vi, + u8: Z1, + usize: em }, Symbol.toStringTag, { value: "Module" })); function Ek(t) { return ({ name: e }) => t(e); } - var B8 = /* @__PURE__ */ Ek(dr); + var L8 = /* @__PURE__ */ Ek(dr); var Sk = /* @__PURE__ */ Ek((t) => t.toString()); - function vte(t, e) { + function _te(t, e) { return t.callIndex[0] === e[0] && t.callIndex[1] === e[1]; } - function xte(t, e, r, n) { + function Ete(t, e, r, n) { const i = n.fields, s = dr(n.name), o = (...a) => { if (i.length !== a.length) throw new Error(`Extrinsic ${e}.${s} expects ${i.length} arguments, got ${a.length}.`); return t.createTypeUnsafe("Call", [{ args: a, callIndex: r }, n]); }; - return o.is = (a) => vte(a, r), o.callIndex = r, o.meta = n, o.method = s, o.section = e, o.toJSON = () => n.toJSON(), o; + return o.is = (a) => _te(a, r), o.callIndex = r, o.meta = n, o.method = s, o.section = e, o.toJSON = () => n.toJSON(), o; } function Mk({ calls: t }) { return t.isSome; @@ -32589,46 +32589,46 @@ ${gz(e, r)}`); const { name: f, type: p, typeName: b } = s[u]; c[u] = st({ name: dr(f.unwrapOr(`param${u}`)), - type: Ed(e, p) + type: _d(e, p) }, b.isSome ? { typeName: b.unwrap() } : null); } - return xte(t, n, new Uint8Array([i, o.toNumber()]), t.createTypeUnsafe("FunctionMetadataLatest", [st({ args: c }, r)])); + return Ete(t, n, new Uint8Array([i, o.toNumber()]), t.createTypeUnsafe("FunctionMetadataLatest", [st({ args: c }, r)])); } function Tk(t, { lookup: e, pallets: r }, n) { const i = {}, s = r.filter(Mk); for (let o = 0, a = s.length; o < a; o++) { const { calls: c, index: u, name: f } = s[o], p = dr(f), b = n >= 12 ? u.toNumber() : o; - Jn(i, p, () => Sl(e, c.unwrap(), B8, (E) => Ak(t, e, E, p, b))); + Zn(i, p, () => Sl(e, c.unwrap(), L8, (E) => Ak(t, e, E, p, b))); } return i; } - function Ly(t, e) { + function Dy(t, e) { return e.toNumber() >= 2 ? t.createTypeUnsafe("StorageHasherV10", [e.toNumber() + 1]) : t.createTypeUnsafe("StorageHasherV10", [e]); } - function _te(t, e) { + function Ste(t, e) { return e.isMap ? [st({}, e.asMap, { - hasher: Ly(t, e.asMap.hasher) + hasher: Dy(t, e.asMap.hasher) }), 1] : e.isDoubleMap ? [st({}, e.asDoubleMap, { - hasher: Ly(t, e.asDoubleMap.hasher), - key2Hasher: Ly(t, e.asDoubleMap.key2Hasher) + hasher: Dy(t, e.asDoubleMap.hasher), + key2Hasher: Dy(t, e.asDoubleMap.key2Hasher) }), 2] : [e.asPlain, 0]; } - function Ete(t, e) { + function Mte(t, e) { const r = e.storage.unwrapOr(null); return t.createTypeUnsafe("ModuleMetadataV10", [st({}, e, { storage: r ? st({}, r, { items: r.items.map((n) => st({}, n, { - type: t.createTypeUnsafe("StorageEntryTypeV10", _te(t, n.type)) + type: t.createTypeUnsafe("StorageEntryTypeV10", Ste(t, n.type)) })) }) : null })]); } - function Ste(t, { modules: e }) { + function Ate(t, { modules: e }) { return t.createTypeUnsafe("MetadataV10", [{ - modules: e.map((r) => Ete(t, r)) + modules: e.map((r) => Mte(t, r)) }]); } - function Mte(t, { modules: e }) { + function Tte(t, { modules: e }) { return t.createTypeUnsafe("MetadataV11", [{ extrinsic: { signedExtensions: [], @@ -32637,16 +32637,16 @@ ${gz(e, r)}`); modules: e }]); } - function Ate(t, { extrinsic: e, modules: r }) { + function Nte(t, { extrinsic: e, modules: r }) { return t.createTypeUnsafe("MetadataV12", [{ extrinsic: e, modules: r.map((n) => t.createTypeUnsafe("ModuleMetadataV12", [st({}, n, { index: 255 })])) }]); } - function Tte(t, e) { + function Ite(t, e) { return t.createTypeUnsafe("MetadataV13", [e]); } - var Nte = { + var Ote = { assets: { Approval: "AssetApproval", ApprovalKey: "AssetApprovalKey", @@ -32746,15 +32746,15 @@ ${gz(e, r)}`); AssetId: "XcmAssetId" } }; - function Ite({ knownTypes: t }, e) { + function Pte({ knownTypes: t }, e) { var r; return { - ...Nte[e] ?? {}, + ...Ote[e] ?? {}, ...((r = t.typesAlias) == null ? void 0 : r[e]) ?? {} }; } - var Ote = [["<", ">"], ["<", ","], [",", ">"], ["(", ")"], ["(", ","], [",", ","], [",", ")"]]; - function Ha(t, e) { + var kte = [["<", ">"], ["<", ","], [",", ">"], ["(", ")"], ["(", ","], [",", ","], [",", ")"]]; + function za(t, e) { const r = e.toString(), n = t.findIndex(({ def: i }) => i.HistoricMetaCompat === r); return n !== -1 ? n : t.push({ def: { @@ -32762,18 +32762,18 @@ ${gz(e, r)}`); } }) - 1; } - function Pte(t, ...e) { + function Rte(t, ...e) { for (let r = 0, n = e.length; r < n; r++) - Ha(t, e[r]); + za(t, e[r]); } - function kte(t, e) { + function Cte(t, e) { return t.push({ def: { Tuple: e } }) - 1; } - function U8(t, e, r, n) { + function B8(t, e, r, n) { return r.push({ def: { Variant: { variants: n } @@ -32781,7 +32781,7 @@ ${gz(e, r)}`); path: [`pallet_${t.toString()}`, "pallet", e] }) - 1; } - function Rte(t, e, r) { + function Dte(t, e, r) { t.register({ OriginCaller: { _enum: e.map((n, i) => [ @@ -32790,42 +32790,42 @@ ${gz(e, r)}`); ]).sort((n, i) => n[1] - i[1]).reduce((n, [i, s]) => { for (let o = Object.keys(n).length; o < s; o++) n[`Empty${o}`] = "Null"; - return n[i] = CY[i] || "Null", n; + return n[i] = LY[i] || "Null", n; }, {}) } }); } - function g0(t, e) { + function y0(t, e) { e.forEach((r) => { const n = Object.keys(t).find((i) => r.eq(i)); if (n) r.setOverride(t[n]); else { - const i = r.toString(), s = Object.entries(t).reduce((o, [a, c]) => Ote.reduce((u, [f, p]) => u.replace(`${f}${a}${p}`, `${f}${c}${p}`), o), i); + const i = r.toString(), s = Object.entries(t).reduce((o, [a, c]) => kte.reduce((u, [f, p]) => u.replace(`${f}${a}${p}`, `${f}${c}${p}`), o), i); i !== s && r.setOverride(s); } }); } - function Cte(t, e, r, n, i) { - const s = n.map(({ args: o, docs: a, name: c }, u) => (g0(i, o.map(({ type: f }) => f)), e.createTypeUnsafe("SiVariant", [{ + function Lte(t, e, r, n, i) { + const s = n.map(({ args: o, docs: a, name: c }, u) => (y0(i, o.map(({ type: f }) => f)), e.createTypeUnsafe("SiVariant", [{ docs: a, - fields: o.map(({ name: f, type: p }) => e.createTypeUnsafe("SiField", [{ name: f, type: Ha(t, p) }])), + fields: o.map(({ name: f, type: p }) => e.createTypeUnsafe("SiField", [{ name: f, type: za(t, p) }])), index: u, name: c }]))); return e.createTypeUnsafe("PalletCallMetadataV14", [{ - type: U8(r, "Call", t, s) + type: B8(r, "Call", t, s) }]); } - function Dte(t, e, r, n) { - return r.map(({ docs: i, name: s, type: o, value: a }) => (g0(n, [o]), e.createTypeUnsafe("PalletConstantMetadataV14", [{ + function Bte(t, e, r, n) { + return r.map(({ docs: i, name: s, type: o, value: a }) => (y0(n, [o]), e.createTypeUnsafe("PalletConstantMetadataV14", [{ docs: i, name: s, - type: Ha(t, o), + type: za(t, o), value: a }]))); } - function Lte(t, e, r, n, i) { + function Ute(t, e, r, n, i) { const s = n.map(({ docs: o, name: a }, c) => e.createTypeUnsafe("SiVariant", [{ docs: o, fields: [], @@ -32833,41 +32833,41 @@ ${gz(e, r)}`); name: a }])); return e.createTypeUnsafe("PalletErrorMetadataV14", [{ - type: U8(r, "Error", t, s) + type: B8(r, "Error", t, s) }]); } - function Bte(t, e, r, n, i) { - const s = n.map(({ args: o, docs: a, name: c }, u) => (g0(i, o), e.createTypeUnsafe("SiVariant", [{ + function jte(t, e, r, n, i) { + const s = n.map(({ args: o, docs: a, name: c }, u) => (y0(i, o), e.createTypeUnsafe("SiVariant", [{ docs: a, - fields: o.map((f) => e.createTypeUnsafe("SiField", [{ type: Ha(t, f) }])), + fields: o.map((f) => e.createTypeUnsafe("SiField", [{ type: za(t, f) }])), index: u, name: c }]))); return e.createTypeUnsafe("PalletEventMetadataV14", [{ - type: U8(r, "Event", t, s) + type: B8(r, "Event", t, s) }]); } - function By(t, e, r, { hashers: n, isLinked: i, isOptional: s, keys: o, value: a }) { - return g0(r, [a, ...Array.isArray(o) ? o : [o]]), e.createTypeUnsafe("StorageEntryTypeV14", [{ + function Ly(t, e, r, { hashers: n, isLinked: i, isOptional: s, keys: o, value: a }) { + return y0(r, [a, ...Array.isArray(o) ? o : [o]]), e.createTypeUnsafe("StorageEntryTypeV14", [{ Map: { hashers: n, - key: n.length === 1 ? Ha(t, o[0]) : kte(t, o.map((c) => Ha(t, c))), - value: i ? Ha(t, `(${s ? `Option<${a.toString()}>` : a.toString()}, Linkage<${o[0].toString()}>)`) : Ha(t, a) + key: n.length === 1 ? za(t, o[0]) : Cte(t, o.map((c) => za(t, c))), + value: i ? za(t, `(${s ? `Option<${a.toString()}>` : a.toString()}, Linkage<${o[0].toString()}>)`) : za(t, a) } }]); } - function Ute(t, e, { items: r, prefix: n }, i) { + function Vte(t, e, { items: r, prefix: n }, i) { return e.createTypeUnsafe("PalletStorageMetadataV14", [{ items: r.map(({ docs: s, fallback: o, modifier: a, name: c, type: u }) => { let f; if (u.isPlain) { const p = u.asPlain; - g0(i, [p]), f = e.createTypeUnsafe("StorageEntryTypeV14", [{ - Plain: Ha(t, p) + y0(i, [p]), f = e.createTypeUnsafe("StorageEntryTypeV14", [{ + Plain: za(t, p) }]); } else if (u.isMap) { const p = u.asMap; - f = By(t, e, i, { + f = Ly(t, e, i, { hashers: [p.hasher], isLinked: p.linked.isTrue, isOptional: a.isOptional, @@ -32876,7 +32876,7 @@ ${gz(e, r)}`); }); } else if (u.isDoubleMap) { const p = u.asDoubleMap; - f = By(t, e, i, { + f = Ly(t, e, i, { hashers: [p.hasher, p.key2Hasher], isLinked: false, isOptional: a.isOptional, @@ -32885,7 +32885,7 @@ ${gz(e, r)}`); }); } else { const p = u.asNMap; - f = By(t, e, i, { + f = Ly(t, e, i, { hashers: p.hashers, isLinked: false, isOptional: a.isOptional, @@ -32904,7 +32904,7 @@ ${gz(e, r)}`); prefix: n }]); } - function jte(t, { signedExtensions: e, version: r }) { + function zte(t, { signedExtensions: e, version: r }) { return t.createTypeUnsafe("ExtrinsicMetadataV14", [{ signedExtensions: e.map((n) => ({ identifier: n, @@ -32914,22 +32914,22 @@ ${gz(e, r)}`); version: r }]); } - function Vte(t, e, r, { calls: n, constants: i, errors: s, events: o, storage: a }) { - const c = Ite(e, dr(r.name)); + function Fte(t, e, r, { calls: n, constants: i, errors: s, events: o, storage: a }) { + const c = Pte(e, dr(r.name)); return e.createTypeUnsafe("PalletMetadataV14", [{ - calls: n && Cte(t, e, r.name, n, c), - constants: Dte(t, e, i, c), - errors: s && Lte(t, e, r.name, s), - events: o && Bte(t, e, r.name, o, c), + calls: n && Lte(t, e, r.name, n, c), + constants: Bte(t, e, i, c), + errors: s && Ute(t, e, r.name, s), + events: o && jte(t, e, r.name, o, c), index: r.index, name: r.name, - storage: a && Ute(t, e, a, c) + storage: a && Vte(t, e, a, c) }]); } - function zte(t, e, r) { + function Hte(t, e, r) { const n = []; - Pte(n, "Null", "u8", "u16", "u32", "u64"), Rte(t, e.modules, r); - const i = jte(t, e.extrinsic), s = e.modules.map((o) => Vte(n, t, o, { + Rte(n, "Null", "u8", "u16", "u32", "u64"), Dte(t, e.modules, r); + const i = zte(t, e.extrinsic), s = e.modules.map((o) => Fte(n, t, o, { calls: o.calls.unwrapOr(null), constants: o.constants, errors: o.errors.length ? o.errors : null, @@ -32944,7 +32944,7 @@ ${gz(e, r)}`); pallets: s }]); } - function Fte(t, e, r) { + function qte(t, e, r) { var i; const n = e.lookup.paramTypes.SpRuntimeUncheckedExtrinsic; return t.createTypeUnsafe("MetadataV15", [ @@ -32964,23 +32964,23 @@ ${gz(e, r)}`); }) ]); } - function Hte(t, e, r) { + function Wte(t, e, r) { return e; } - var U7 = 1635018093; - var qte = class extends nl { + var B7 = 1635018093; + var Gte = class extends nl { constructor(e, r) { - if (super(e, r), !this.isEmpty && !this.eq(U7)) - throw new Error(`MagicNumber mismatch: expected ${e.createTypeUnsafe("u32", [U7]).toHex()}, found ${this.toHex()}`); + if (super(e, r), !this.isEmpty && !this.eq(B7)) + throw new Error(`MagicNumber mismatch: expected ${e.createTypeUnsafe("u32", [B7]).toHex()}, found ${this.toHex()}`); } }; - var Wte = [15, 14, 13, 12, 11, 10, 9]; - var Gte = Wte[0]; - var Kte = 14; + var Kte = [15, 14, 13, 12, 11, 10, 9]; + var Xte = Kte[0]; + var Yte = 14; var zg = class extends cn { constructor(r, n) { super(r, { - magicNumber: qte, + magicNumber: Gte, metadata: "MetadataAll" }, n); re(this, "__internal__converted", /* @__PURE__ */ new Map()); @@ -32995,7 +32995,7 @@ ${gz(e, r)}`); return this.__internal__metadata()[i]; } if (!this.__internal__converted.has(r10)) { - const i = r10 === "latest" ? `asV${Gte}` : `asV${r10 - 1}`; + const i = r10 === "latest" ? `asV${Xte}` : `asV${r10 - 1}`; this.__internal__converted.set(r10, n10(this.registry, this[i], this.version)); } return this.__internal__converted.get(r10); @@ -33005,32 +33005,32 @@ ${gz(e, r)}`); get asCallsOnly() { return new zg(this.registry, { magicNumber: this.magicNumber, - metadata: this.registry.createTypeUnsafe("MetadataAll", [mee(this.registry, this.asLatest), Kte]) + metadata: this.registry.createTypeUnsafe("MetadataAll", [yee(this.registry, this.asLatest), Yte]) }); } get asV9() { return this.__internal__assertVersion(9), this.__internal__metadata().asV9; } get asV10() { - return this.__internal__getVersion(10, Ste); + return this.__internal__getVersion(10, Ate); } get asV11() { - return this.__internal__getVersion(11, Mte); + return this.__internal__getVersion(11, Tte); } get asV12() { - return this.__internal__getVersion(12, Ate); + return this.__internal__getVersion(12, Nte); } get asV13() { - return this.__internal__getVersion(13, Tte); + return this.__internal__getVersion(13, Ite); } get asV14() { - return this.__internal__getVersion(14, zte); + return this.__internal__getVersion(14, Hte); } get asV15() { - return this.__internal__getVersion(15, Fte); + return this.__internal__getVersion(15, qte); } get asLatest() { - return this.__internal__getVersion("latest", Hte); + return this.__internal__getVersion("latest", Wte); } get magicNumber() { return this.getT("magicNumber"); @@ -33039,51 +33039,51 @@ ${gz(e, r)}`); return this.__internal__metadata().index; } getUniqTypes(r) { - return dee(this.registry, this.asLatest, r); + return mee(this.registry, this.asLatest, r); } toJSON() { return this.asLatest, super.toJSON(); } }; var Nk = new Uint8Array([109, 101, 116, 97, 9]); - var j7 = Nk.length - 1; - function Xte(t, e) { + var U7 = Nk.length - 1; + function Zte(t, e) { if (e.length === 0) return Nk; - if (e[j7] === 9) + if (e[U7] === 9) try { return new zg(t, e); } catch { - e[j7] = 10; + e[U7] = 10; } return e; } var Df = class extends zg { constructor(e, r) { - super(e, Et(r) || pr(r) ? Xte(e, Xe(r)) : r); + super(e, Et(r) || pr(r) ? Zte(e, Xe(r)) : r); } }; - function j8(t, { pallets: e }, r) { + function U8(t, { pallets: e }, r) { const n = {}; for (let i = 0, s = e.length; i < s; i++) { const { constants: o, name: a } = e[i]; - o.isEmpty || Jn(n, dr(a), () => Hc({}, o, (c) => { + o.isEmpty || Zn(n, dr(a), () => zc({}, o, (c) => { const u = t.createTypeUnsafe(t.createLookupType(c.type), [On(c.value.toHex())]); return u.meta = c, u; - }, B8)); + }, L8)); } return n; } function Ik(t, e) { return st({ args: e.fields.map(({ type: r }) => t.getTypeDef(r).type) }, e); } - function Yte(t, { lookup: e, pallets: r }, n) { + function Jte(t, { lookup: e, pallets: r }, n) { const i = {}; for (let s = 0, o = r.length; s < o; s++) { const { errors: a, index: c, name: u } = r[s]; if (a.isSome) { const f = n >= 12 ? c.toNumber() : s; - Jn(i, dr(u), () => Sl(e, a.unwrap(), Sk, (p) => ({ + Zn(i, dr(u), () => Sl(e, a.unwrap(), Sk, (p) => ({ is: (b) => ss(b) && ss(b.index) && b.index.eq(f) && (Et(b.error) ? b.error[0] === p.index.toNumber() : ss(b.error) && b.error.eq(p.index)), meta: t.createTypeUnsafe("ErrorMetadataLatest", [Ik(e, p)]) }))); @@ -33094,41 +33094,41 @@ ${gz(e, r)}`); function Ok({ events: t }) { return t.isSome; } - function Zte(t, { lookup: e, pallets: r }, n) { + function Qte(t, { lookup: e, pallets: r }, n) { const i = {}, s = r.filter(Ok); for (let o = 0, a = s.length; o < a; o++) { const { events: c, index: u, name: f } = s[o], p = n >= 12 ? u.toNumber() : o; - Jn(i, dr(f), () => Sl(e, c.unwrap(), Sk, (b) => ({ + Zn(i, dr(f), () => Sl(e, c.unwrap(), Sk, (b) => ({ is: (E) => ss(E) && Et(E.index) && p === E.index[0] && b.index.eq(E.index[1]), meta: t.createTypeUnsafe("EventMetadataLatest", [Ik(e, b)]) }))); } return i; } - var Jte = (t) => Wc(t, 128); - var Qte = { + var $te = (t) => Hc(t, 128); + var ere = { Blake2_128: (t) => kn(t, 128), - Blake2_128Concat: (t) => $t(kn(t, 128), Xe(t)), + Blake2_128Concat: (t) => Qt(kn(t, 128), Xe(t)), Blake2_256: (t) => kn(t, 256), Identity: (t) => Xe(t), - Twox128: (t) => Wc(t, 128), - Twox256: (t) => Wc(t, 256), - Twox64Concat: (t) => $t(Wc(t, 64), Xe(t)) + Twox128: (t) => Hc(t, 128), + Twox256: (t) => Hc(t, 256), + Twox64Concat: (t) => Qt(Hc(t, 64), Xe(t)) }; - function $te(t) { - return Qte[t.type] || Jte; + function tre(t) { + return ere[t.type] || $te; } var Fg = { args: [], hashers: [], keys: [] }; - function ere(t) { + function rre(t) { return !Ar(t); } function Pk({ method: t, section: e }, { args: r, keys: n }) { if (Array.isArray(r)) { - if (r.filter(ere).length !== n.length) + if (r.filter(rre).length !== n.length) throw new Error(`Call to ${dr(e || "unknown")}.${dr(t || "unknown")} needs ${n.length} arguments, found [${r.join(", ")}]`); } else throw new Error(`Call to ${dr(e || "unknown")}.${dr(t || "unknown")} needs ${n.length} arguments`); @@ -33136,59 +33136,59 @@ ${gz(e, r)}`); function kk(t, e, { args: r, hashers: n, keys: i }) { const s = i.length, o = new Array(s); for (let a = 0; a < s; a++) - o[a] = $te(n[a])(t.createTypeUnsafe(t.createLookupType(i[a]), [r[a]]).toU8a()); + o[a] = tre(n[a])(t.createTypeUnsafe(t.createLookupType(i[a]), [r[a]]).toU8a()); return [ [ - Wc(e.prefix, 128), - Wc(e.method, 128) + Hc(e.prefix, 128), + Hc(e.method, 128) ], o ]; } - function Uy(t, e, r) { + function By(t, e, r) { Pk(e, r); const { meta: n } = e, [i, s] = kk(t, e, r); let o = []; if (n.type.isMap) { const { hashers: c, key: u } = n.type.asMap; - o = c.length === 1 ? [`${c[0].type}(${Ed(t.lookup, u)})`] : t.lookup.getSiType(u).def.asTuple.map((f, p) => `${c[p].type}(${Ed(t.lookup, f)})`); + o = c.length === 1 ? [`${c[0].type}(${_d(t.lookup, u)})`] : t.lookup.getSiType(u).def.asTuple.map((f, p) => `${c[p].type}(${_d(t.lookup, f)})`); } const a = ["module", "method"].concat(...r.args.map((c, u) => o[u])); return { inner: i.concat(...s).map((c, u) => ({ name: a[u], outer: [c] })) }; } - function sm(t, e, r) { + function om(t, e, r) { const [n, i] = kk(t, e, r); - return $t(...n, ...i); + return Qt(...n, ...i); } - function jy(t, e, r) { - return Pk(e, r), ua(sm(t, e, r)); + function Uy(t, e, r) { + return Pk(e, r), aa(om(t, e, r)); } - function tre(t, e, r) { + function nre(t, e, r) { const { meta: { type: n } } = e; return (...i) => { if (n.isPlain) - return r.skipHashing ? { inner: [], name: "wellKnown", outer: [Xe(r.key)] } : Uy(t, e, Fg); + return r.skipHashing ? { inner: [], name: "wellKnown", outer: [Xe(r.key)] } : By(t, e, Fg); const { hashers: s, key: o } = n.asMap; - return s.length === 1 ? Uy(t, e, { args: i, hashers: s, keys: [o] }) : Uy(t, e, { args: i, hashers: s, keys: t.lookup.getSiType(o).def.asTuple }); + return s.length === 1 ? By(t, e, { args: i, hashers: s, keys: [o] }) : By(t, e, { args: i, hashers: s, keys: t.lookup.getSiType(o).def.asTuple }); }; } - function rre(t, e, r) { + function ire(t, e, r) { const { meta: { type: n } } = e; let i = null; return (...s) => { if (n.isPlain) - return i || (i = r.skipHashing ? ua(Xe(r.key)) : jy(t, e, Fg)), i; + return i || (i = r.skipHashing ? aa(Xe(r.key)) : Uy(t, e, Fg)), i; const { hashers: o, key: a } = n.asMap; - return o.length === 1 ? jy(t, e, { args: s, hashers: o, keys: [a] }) : jy(t, e, { args: s, hashers: o, keys: t.lookup.getSiType(a).def.asTuple }); + return o.length === 1 ? Uy(t, e, { args: s, hashers: o, keys: [a] }) : Uy(t, e, { args: s, hashers: o, keys: t.lookup.getSiType(a).def.asTuple }); }; } - function nre(t, e, r) { - const { meta: n, method: i, prefix: s, section: o } = e, a = rre(t, e, r); - return a.inspect = tre(t, e, r), a.meta = n, a.method = dr(i), a.prefix = s, a.section = o, a.toJSON = () => st({ storage: { method: i, prefix: s, section: o } }, n.toJSON()), a; + function sre(t, e, r) { + const { meta: n, method: i, prefix: s, section: o } = e, a = ire(t, e, r); + return a.inspect = nre(t, e, r), a.meta = n, a.method = dr(i), a.prefix = s, a.section = o, a.toJSON = () => st({ storage: { method: i, prefix: s, section: o } }, n.toJSON()), a; } - function ire(t, { meta: { docs: e, name: r, type: n }, section: i }, { method: s }, o) { + function ore(t, { meta: { docs: e, name: r, type: n }, section: i }, { method: s }, o) { const a = t.createTypeUnsafe("StorageEntryMetadataLatest", [{ docs: e, fallback: t.createTypeUnsafe("Bytes", []), @@ -33200,35 +33200,35 @@ ${gz(e, r)}`); const c = (...u) => t.createTypeUnsafe("StorageKey", [o(...u), { method: s, section: i }]); return c.meta = a, c; } - function sre(t, e, r) { + function are(t, e, r) { const { meta: { type: n }, method: i, section: s } = e; - return r.iterKey = ire(t, e, r, (...o) => { + return r.iterKey = ore(t, e, r, (...o) => { if (o.length && (n.isPlain || o.length >= n.asMap.hashers.length)) throw new Error(`Iteration of ${dr(s || "unknown")}.${dr(i || "unknown")} needs arguments to be at least one less than the full arguments, found [${o.join(", ")}]`); if (o.length && n.isMap) { const { hashers: a, key: c } = n.asMap, u = a.length === 1 ? [c] : t.lookup.getSiType(c).def.asTuple; - return new ls(t, sm(t, e, { args: o, hashers: a.slice(0, o.length), keys: u.slice(0, o.length) })); + return new ls(t, om(t, e, { args: o, hashers: a.slice(0, o.length), keys: u.slice(0, o.length) })); } - return new ls(t, sm(t, e, Fg)); + return new ls(t, om(t, e, Fg)); }), r; } function Rk(t, e, r) { - const { meta: { type: n } } = e, i = nre(t, e, r); - return n.isMap && sre(t, e, i), i.keyPrefix = (...s) => i.iterKey && i.iterKey(...s) || hd(i())[1], i; + const { meta: { type: n } } = e, i = sre(t, e, r); + return n.isMap && are(t, e, i), i.keyPrefix = (...s) => i.iterKey && i.iterKey(...s) || fd(i())[1], i; } - function V7(t, e) { + function j7(t, e) { const r = e.toLowerCase(); return t.lookup.types.find((n) => n.type.def.isPrimitive && n.type.def.asPrimitive.toString().toLowerCase() === r || n.type.def.isHistoricMetaCompat && n.type.def.asHistoricMetaCompat.toString().toLowerCase() === r); } - function ore(t, e) { - let r = V7(t, e); + function cre(t, e) { + let r = j7(t, e); if (!r && (e === "Bytes" || e.startsWith("[u8;"))) { - const n = V7(t, "u8"); + const n = j7(t, "u8"); if (n) if (e === "Bytes") r = t.lookup.types.find((i) => i.type.def.isSequence && i.type.def.asSequence.type.eq(n.id) || i.type.def.isHistoricMetaCompat && i.type.def.asHistoricMetaCompat.eq(e)); else { - const i = da(e); + const i = fa(e); r = t.lookup.types.find((s) => s.type.def.isArray && s.type.def.asArray.eq({ len: i.length, type: n.id @@ -33246,7 +33246,7 @@ ${gz(e, r)}`); modifier: o.createTypeUnsafe("StorageEntryModifierLatest", ["Required"]), name: o.createTypeUnsafe("Text", [t]), toJSON: () => n, - type: o.createTypeUnsafe("StorageEntryTypeLatest", [{ Plain: ((a = ore(o, s)) == null ? void 0 : a.id) || 0 }]) + type: o.createTypeUnsafe("StorageEntryTypeLatest", [{ Plain: ((a = cre(o, s)) == null ? void 0 : a.id) || 0 }]) }]), method: t, prefix: e, @@ -33254,12 +33254,12 @@ ${gz(e, r)}`); }, { key: n, skipHashing: true }); }; } - var are = "Substrate"; - var cre = "substrate"; + var ure = "Substrate"; + var lre = "substrate"; function jl(t, e, r) { - return Ck({ method: t, prefix: are, section: cre }, e, r); + return Ck({ method: t, prefix: ure, section: lre }, e, r); } - var ure = { + var fre = { changesTrieConfig: jl("changesTrieConfig", ":changes_trie", { docs: "Changes trie configuration is stored under this key.", type: "u32" @@ -33285,24 +33285,24 @@ ${gz(e, r)}`); type: "[u8; 32]" }) }; - function lre(t) { - const e = {}, r = Object.entries(ure); + function hre(t) { + const e = {}, r = Object.entries(fre); for (let n = 0, i = r.length; n < i; n++) e[r[n][0]] = r[n][1](t); return { substrate: e }; } - var fre = "palletVersion"; - var hre = ":__STORAGE_VERSION__:"; - var dre = { docs: "Returns the current pallet version from storage", type: "u16" }; + var dre = "palletVersion"; + var pre = ":__STORAGE_VERSION__:"; + var mre = { docs: "Returns the current pallet version from storage", type: "u16" }; function Dk(t, { pallets: e }, r) { - const n = lre(t); + const n = hre(t); for (let i = 0, s = e.length; i < s; i++) { const { name: o, storage: a } = e[i]; if (a.isSome) { const c = dr(o), { items: u, prefix: f } = a.unwrap(), p = f.toString(); - Jn(n, c, () => Hc({ - palletVersion: Ck({ method: fre, prefix: p, section: c }, sm(t, { method: hre, prefix: o.toString() }, Fg), dre)(t) - }, u, (b) => Rk(t, { meta: b, method: b.name.toString(), prefix: p, section: c }, {}), B8)); + Zn(n, c, () => zc({ + palletVersion: Ck({ method: dre, prefix: p, section: c }, om(t, { method: pre, prefix: o.toString() }, Fg), mre)(t) + }, u, (b) => Rk(t, { meta: b, method: b.name.toString(), prefix: p, section: c }, {}), L8)); } } return n; @@ -33312,17 +33312,17 @@ ${gz(e, r)}`); throw new Error("You need to pass a valid Metadata instance to Decorated"); const r = e.asLatest, n = e.version; return { - consts: j8(t, r), - errors: Yte(t, r, n), - events: Zte(t, r, n), + consts: U8(t, r), + errors: Jte(t, r, n), + events: Qte(t, r, n), query: Dk(t, r), registry: t, tx: Tk(t, r, n) }; } - var pre = new Uint8Array(2); - var z7 = mi("registry"); - function F7(t, e) { + var gre = new Uint8Array(2); + var V7 = mi("registry"); + function z7(t, e) { return parseInt(t, 10) - parseInt(e, 10); } function Bk(t) { @@ -33334,21 +33334,21 @@ ${gz(e, r)}`); n[i] = t.getTypeDef(e[i].type).type; return n; } - function om(t) { + function am(t) { const e = Object.keys(t); for (let r = 0, n = e.length; r < n; r++) delete t[e[r]]; } - function V8({ index: t }) { + function j8({ index: t }) { return t.toString(); } - function mre(t, { lookup: e, pallets: r }, n, i) { - om(i); + function yre(t, { lookup: e, pallets: r }, n, i) { + am(i); for (let s = 0, o = r.length; s < o; s++) { const { errors: a, index: c, name: u } = r[s]; if (a.isSome) { const f = dr(u); - Jn(i, n >= 12 ? c.toNumber() : s, () => Sl(e, a.unwrap(), V8, ({ docs: p, fields: b, index: E, name: _ }) => ({ + Zn(i, n >= 12 ? c.toNumber() : s, () => Sl(e, a.unwrap(), j8, ({ docs: p, fields: b, index: E, name: _ }) => ({ args: Uk(e, b), docs: p.map(Bk), fields: b, @@ -33360,14 +33360,14 @@ ${gz(e, r)}`); } } } - function gre(t, { lookup: e, pallets: r }, n, i) { + function bre(t, { lookup: e, pallets: r }, n, i) { const s = r.filter(Ok); - om(i); + am(i); for (let o = 0, a = s.length; o < a; o++) { const { events: c, index: u, name: f } = s[o]; - Jn(i, n >= 12 ? u.toNumber() : o, () => Sl(e, c.unwrap(), V8, (p) => { + Zn(i, n >= 12 ? u.toNumber() : o, () => Sl(e, c.unwrap(), j8, (p) => { const b = t.createType("EventMetadataLatest", st({}, p, { args: Uk(e, p.fields) })); - return class extends T8 { + return class extends A8 { constructor(E, _) { super(E, _, b, dr(f), p.name.toString()); } @@ -33375,12 +33375,12 @@ ${gz(e, r)}`); })); } } - function yre(t, { lookup: e, pallets: r }, n, i, s) { + function wre(t, { lookup: e, pallets: r }, n, i, s) { const o = r.filter(Mk); - om(i), om(s); + am(i), am(s); for (let a = 0, c = o.length; a < c; a++) { const { calls: u, index: f, name: p } = o[a], b = n >= 12 ? f.toNumber() : a, E = dr(p), _ = u.unwrap(); - Jn(i, b, () => Sl(e, _, V8, (F) => Ak(t, e, F, E, b))); + Zn(i, b, () => Sl(e, _, j8, (F) => Ak(t, e, F, E, b))); const { path: N } = t.lookup.getSiType(_.type), k = N.findIndex((F) => F.eq("pallet")); if (k !== -1) { const F = dr(N.slice(0, k).map((L, D) => D === 0 ? L.replace(/^(frame|pallet)_/, "") : L).join(" ")); @@ -33388,8 +33388,8 @@ ${gz(e, r)}`); } } } - function bre(t, e) { - const r = t.getChainProperties(), n = j8(t, e.asLatest, e.version), i = n.system && (n.system.sS58Prefix || n.system.ss58Prefix); + function vre(t, e) { + const r = t.getChainProperties(), n = U8(t, e.asLatest, e.version), i = n.system && (n.system.sS58Prefix || n.system.ss58Prefix); if (!i) return r; const { isEthereum: s, tokenDecimals: o, tokenSymbol: a } = r || {}; @@ -33406,7 +33406,7 @@ ${gz(e, r)}`); re(this, "__internal__lookup"); re(this, "__internal__metadata"); re(this, "__internal__metadataVersion", 0); - re(this, "__internal__signedExtensions", Ry); + re(this, "__internal__signedExtensions", ky); re(this, "__internal__unknownTypes", /* @__PURE__ */ new Map()); re(this, "__internal__userExtensions"); re(this, "__internal__knownDefaults"); @@ -33441,7 +33441,7 @@ ${gz(e, r)}`); Ki(this.createType("Weight")) || (r10 = "WeightV1"); r10 && this.register({ Weight: r10 }); }); - this.__internal__knownDefaults = st({ Json: _8, Metadata: Df, PortableRegistry: $P, Raw: ls }, wte), this.__internal__knownDefaultsEntries = Object.entries(this.__internal__knownDefaults), this.__internal__knownDefinitions = _d; + this.__internal__knownDefaults = st({ Json: x8, Metadata: Df, PortableRegistry: $P, Raw: ls }, xte), this.__internal__knownDefaultsEntries = Object.entries(this.__internal__knownDefaults), this.__internal__knownDefinitions = xd; const r = Object.values(this.__internal__knownDefinitions); for (let n = 0, i = r.length; n < i; n++) this.register(r[n].types); @@ -33471,10 +33471,10 @@ ${gz(e, r)}`); if (r.length) return r.map(Bk); } - return [au.getDefaults().unit]; + return [ou.getDefaults().unit]; } get firstCallIndex() { - return this.__internal__firstCallIndex || pre; + return this.__internal__firstCallIndex || gre; } isLookupType(e) { return /Lookup\d+$/.test(e); @@ -33486,10 +33486,10 @@ ${gz(e, r)}`); return this.__internal__knownTypes; } get lookup() { - return La(this.__internal__lookup, "PortableRegistry has not been set on this registry"); + return Ca(this.__internal__lookup, "PortableRegistry has not been set on this registry"); } get metadata() { - return La(this.__internal__metadata, "Metadata has not been set on this registry"); + return Ca(this.__internal__metadata, "Metadata has not been set on this registry"); } get unknownTypes() { return [...this.__internal__unknownTypes.keys()]; @@ -33507,25 +33507,25 @@ ${gz(e, r)}`); return qu(this, e); } createType(e, ...r) { - return xd(this, e, r); + return vd(this, e, r); } createTypeUnsafe(e, r, n) { - return xd(this, e, r, n); + return vd(this, e, r, n); } findMetaCall(e) { const [r, n] = [e[0], e[1]]; - return La(this.__internal__metadataCalls[`${r}`] && this.__internal__metadataCalls[`${r}`][`${n}`], () => `findMetaCall: Unable to find Call with index [${r}, ${n}]/[${e.toString()}]`); + return Ca(this.__internal__metadataCalls[`${r}`] && this.__internal__metadataCalls[`${r}`][`${n}`], () => `findMetaCall: Unable to find Call with index [${r}, ${n}]/[${e.toString()}]`); } findMetaError(e) { const [r, n] = Et(e) ? [e[0], e[1]] : [ e.index.toNumber(), Et(e.error) ? e.error[0] : e.error.toNumber() ]; - return La(this.__internal__metadataErrors[`${r}`] && this.__internal__metadataErrors[`${r}`][`${n}`], () => `findMetaError: Unable to find Error with index [${r}, ${n}]/[${e.toString()}]`); + return Ca(this.__internal__metadataErrors[`${r}`] && this.__internal__metadataErrors[`${r}`][`${n}`], () => `findMetaError: Unable to find Error with index [${r}, ${n}]/[${e.toString()}]`); } findMetaEvent(e) { const [r, n] = [e[0], e[1]]; - return La(this.__internal__metadataEvents[`${r}`] && this.__internal__metadataEvents[`${r}`][`${n}`], () => `findMetaEvent: Unable to find Event with index [${r}, ${n}]/[${e.toString()}]`); + return Ca(this.__internal__metadataEvents[`${r}`] && this.__internal__metadataEvents[`${r}`][`${n}`], () => `findMetaEvent: Unable to find Event with index [${r}, ${n}]/[${e.toString()}]`); } get(e, r, n) { return this.getUnsafe(e, r, n); @@ -33535,7 +33535,7 @@ ${gz(e, r)}`); if (!i) { const s = this.__internal__definitions.get(e); let o; - s ? o = qu(this, s) : n ? o = GP(this, n) : r && (z7.warn(`Unable to resolve type ${e}, it will fail on construction`), this.__internal__unknownTypes.set(e, true), o = l0.with(e)), o && (i = class extends o { + s ? o = qu(this, s) : n ? o = GP(this, n) : r && (V7.warn(`Unable to resolve type ${e}, it will fail on construction`), this.__internal__unknownTypes.set(e, true), o = f0.with(e)), o && (i = class extends o { }, this.__internal__classes.set(e, i), n && rr(n.lookupIndex) && this.__internal__classes.set(this.createLookupType(n.lookupIndex), i)); } return i; @@ -33568,10 +33568,10 @@ ${gz(e, r)}`); return this.get(e, true); } getSignedExtensionExtra() { - return A7(this.__internal__signedExtensions, "payload", this.__internal__userExtensions); + return M7(this.__internal__signedExtensions, "payload", this.__internal__userExtensions); } getSignedExtensionTypes() { - return A7(this.__internal__signedExtensions, "extrinsic", this.__internal__userExtensions); + return M7(this.__internal__signedExtensions, "extrinsic", this.__internal__userExtensions); } hasClass(e) { return this.__internal__classes.has(e) || !!this.__internal__knownDefaults[e]; @@ -33611,170 +33611,170 @@ ${gz(e, r)}`); this.__internal__lookup = e, e.register(); } setMetadata(e, r, n, i) { - this.__internal__metadata = e.asLatest, this.__internal__metadataVersion = e.version, this.__internal__firstCallIndex = null, this.__internal__registerLookup(this.__internal__metadata.lookup), yre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataCalls, this.__internal__moduleMap), mre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataErrors), gre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataEvents); - const [s] = Object.keys(this.__internal__metadataCalls).sort(F7); + this.__internal__metadata = e.asLatest, this.__internal__metadataVersion = e.version, this.__internal__firstCallIndex = null, this.__internal__registerLookup(this.__internal__metadata.lookup), wre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataCalls, this.__internal__moduleMap), yre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataErrors), bre(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataEvents); + const [s] = Object.keys(this.__internal__metadataCalls).sort(z7); if (s) { - const [o] = Object.keys(this.__internal__metadataCalls[s]).sort(F7); + const [o] = Object.keys(this.__internal__metadataCalls[s]).sort(z7); o && (this.__internal__firstCallIndex = new Uint8Array([parseInt(s, 10), parseInt(o, 10)])); } - this.setSignedExtensions(r || (this.__internal__metadata.extrinsic.version.gt(Jr) ? this.__internal__metadata.extrinsic.signedExtensions.map(({ identifier: o }) => o.toString()) : Ry), n, i), this.setChainProperties(bre(this, e)); + this.setSignedExtensions(r || (this.__internal__metadata.extrinsic.version.gt(Zr) ? this.__internal__metadata.extrinsic.signedExtensions.map(({ identifier: o }) => o.toString()) : ky), n, i), this.setChainProperties(vre(this, e)); } - setSignedExtensions(e = Ry, r, n) { + setSignedExtensions(e = ky, r, n) { if (this.__internal__signedExtensions = e, this.__internal__userExtensions = r, !n) { - const i = Eee(this.__internal__signedExtensions, this.__internal__userExtensions); - i.length && z7.warn(`Unknown signed extensions ${i.join(", ")} found, treating them as no-effect`); + const i = Mee(this.__internal__signedExtensions, this.__internal__userExtensions); + i.length && V7.warn(`Unknown signed extensions ${i.join(", ")} found, treating them as no-effect`); } } }; - var wre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var xre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BTreeMap: Cg, BTreeSet: Dg, BitVec: BP, - Bool: tu, - Bytes: f0, - CodecMap: V1, - CodecSet: bd, + Bool: $c, + Bytes: h0, + CodecMap: z1, + CodecSet: yd, Compact: Rf, Data: _k, - DoNotConstruct: l0, + DoNotConstruct: f0, Enum: us, - F32: z1, - F64: F1, + F32: F1, + F64: H1, GenericAccountId: Cf, GenericAccountId32: Cf, GenericAccountId33: dk, GenericAccountIndex: sn, - GenericAddress: Ad, + GenericAddress: Md, GenericBlock: mk, GenericCall: yk, GenericChainProperties: bk, GenericConsensusEngineId: wk, - GenericEthereumAccountId: D8, - GenericEthereumLookupSource: L8, + GenericEthereumAccountId: C8, + GenericEthereumLookupSource: D8, GenericEvent: ik, - GenericEventData: T8, - GenericExtrinsic: p0, - GenericExtrinsicEra: O8, - GenericExtrinsicPayload: P8, + GenericEventData: A8, + GenericExtrinsic: m0, + GenericExtrinsicEra: I8, + GenericExtrinsicPayload: O8, GenericExtrinsicPayloadUnknown: uk, - GenericExtrinsicPayloadV4: nm, - GenericExtrinsicSignatureV4: Md, + GenericExtrinsicPayloadV4: im, + GenericExtrinsicSignatureV4: Sd, GenericExtrinsicUnknown: lk, - GenericExtrinsicV4: Sd, - GenericImmortalEra: N8, - GenericLookupSource: R8, - GenericMortalEra: I8, - GenericMultiAddress: Ad, + GenericExtrinsicV4: Ed, + GenericImmortalEra: T8, + GenericLookupSource: k8, + GenericMortalEra: N8, + GenericMultiAddress: Md, GenericSignerPayload: fk, GenericVote: xk, HashMap: Lg, - I128: G1, - I16: q1, - I256: K1, - I32: wd, - I64: W1, - I8: H1, - ISize: X1, - Int: fa, - Json: _8, - Linkage: v8, - Map: V1, + I128: K1, + I16: W1, + I256: X1, + I32: bd, + I64: G1, + I8: q1, + ISize: Y1, + Int: ua, + Json: x8, + Linkage: w8, + Map: z1, Metadata: Df, - Null: po, - Option: bo, + Null: ho, + Option: yo, OptionBool: UP, PortableRegistry: $P, - Range: h0, + Range: d0, RangeInclusive: Bg, Raw: ls, Result: Pg, - Set: bd, - StorageKey: m0, + Set: yd, + StorageKey: g0, Struct: cn, - Text: x8, + Text: v8, Tuple: El, Type: jP, get TypeDefInfo() { return Se; }, TypeRegistry: Hg, - U128: J1, - U16: Z1, - U256: Q1, + U128: Q1, + U16: J1, + U256: $1, U32: nl, - U64: zi, - U8: Y1, - U8aFixed: ac, - UInt: ha, - USize: $1, + U64: Vi, + U8: Z1, + U8aFixed: sc, + UInt: la, + USize: em, Vec: kg, VecFixed: Rg, - WrapperKeepOpaque: d0, + WrapperKeepOpaque: p0, WrapperOpaque: Ug, XCM_MAPPINGS: YP, - bool: tu, + bool: $c, constructTypeClass: GP, - convertSiV0toV1: cee, - createClass: yee, + convertSiV0toV1: lee, + createClass: wee, createClassUnsafe: qu, - createType: bee, - createTypeUnsafe: xd, - decorateConstants: j8, + createType: vee, + createTypeUnsafe: vd, + decorateConstants: U8, decorateExtrinsics: Tk, decorateStorage: Dk, encodeTypeDef: Vg, expandMetadata: Lk, - f32: z1, - f64: F1, - getTypeClass: E8, - getTypeDef: da, - i128: G1, - i16: q1, - i256: K1, - i32: wd, - i64: W1, - i8: H1, - isize: X1, + f32: F1, + f64: H1, + getTypeClass: _8, + getTypeDef: fa, + i128: K1, + i16: W1, + i256: X1, + i32: bd, + i64: G1, + i8: q1, + isize: Y1, lazyVariants: Sl, mapXcmTypes: Mi, packageInfo: Tg, paramsNotation: KP, - rpcDefinitions: tw, - typeDefinitions: _d, + rpcDefinitions: ew, + typeDefinitions: xd, typeSplit: FP, - u128: J1, - u16: Z1, - u256: Q1, + u128: Q1, + u16: J1, + u256: $1, u32: nl, - u64: zi, - u8: Y1, - unwrapStorageType: tm, - usize: $1, - withTypeString: Ci + u64: Vi, + u8: Z1, + unwrapStorageType: rm, + usize: em, + withTypeString: Ri }, Symbol.toStringTag, { value: "Module" })); function jk(t = 1750) { return (e) => { let [r, n, i, s] = [0, 0, fi.EMPTY, fi.EMPTY]; return new Ht((o) => (e.subscribe(o), n++ === 0 && (r === 1 ? s.unsubscribe() : i = e.connect(), r = 3), () => { - --n === 0 && (r === 2 ? (r = 0, s.unsubscribe()) : (r = 1, s = Sv.schedule(() => { + --n === 0 && (r === 2 ? (r = 0, s.unsubscribe()) : (r = 1, s = Ev.schedule(() => { r = 0, i.unsubscribe(); }, t))); })); }; } - function vre(t, e) { + function _re(t, e) { return Ct({ t }) === Ct({ t: e }); } - function xre(t) { + function Ere(t) { throw t; } - function _re() { + function Sre() { } function qg({ delay: t, skipChange: e = false, skipTimeout: r = false } = {}) { return (n) => n.pipe( - Yt(xre), - e ? Us(_re) : ca(vre), + $t(Ere), + e ? Bs(Sre) : ec(_re), tg(1), r ? Wd() : jk(t) ); @@ -33788,8 +33788,8 @@ ${gz(e, r)}`); }).pipe(qg()), { getInstanceId: () => t }); return n; } - var Ere = mi("rpc-core"); - var Sre = { + var Mre = mi("rpc-core"); + var Are = { fallback: void 0, modifier: { isOptional: true }, type: { @@ -33798,12 +33798,12 @@ ${gz(e, r)}`); } }; function rp(t, { noErrorLog: e, params: r, type: n }, i) { - e || Ere.error(`${t}(${r.map(({ isOptional: s, name: o, type: a }) => `${o}${s ? "?" : ""}: ${a}`).join(", ")}): ${n}:: ${i.message}`); + e || Mre.error(`${t}(${r.map(({ isOptional: s, name: o, type: a }) => `${o}${s ? "?" : ""}: ${a}`).join(", ")}): ${n}:: ${i.message}`); } - function H7(t) { + function F7(t) { return ["0x3a636f6465"].includes(t.toHex()); } - var Mre = class { + var Tre = class { constructor(e, r, { isPedantic: n = true, provider: i, userRpc: s = {} }) { re(this, "__internal__instanceId"); re(this, "__internal__isPedantic"); @@ -33819,7 +33819,7 @@ ${gz(e, r)}`); if (!i || !St(i.send)) throw new Error("Expected Provider to API create"); this.__internal__instanceId = e, this.__internal__isPedantic = n, this.__internal__registryDefault = r, this.provider = i; - const o = Object.keys(tw); + const o = Object.keys(ew); this.sections.push(...o), this.addUserInterfaces(s); } get isConnected() { @@ -33854,12 +33854,12 @@ ${gz(e, r)}`); addUserInterfaces(e) { this.sections.push(...Object.keys(e).filter((r) => !this.sections.includes(r))); for (let r = 0, n = this.sections.length; r < n; r++) { - const i = this.sections[r], s = st({}, tw[i], e[i]), o = Object.keys(s); + const i = this.sections[r], s = st({}, ew[i], e[i]), o = Object.keys(s); for (let a = 0, c = o.length; a < c; a++) { const u = o[a], f = s[u], p = f.endpoint || `${i}_${u}`; if (!this.mapping.has(p)) { const b = !!f.pubsub; - this[i] || (this[i] = {}), this.mapping.set(p, st({}, f, { isSubscription: b, jsonrpc: p, method: u, section: i })), Jn(this[i], u, () => b ? this._createMethodSubscribe(i, u, f) : this._createMethodSend(i, u, f)); + this[i] || (this[i] = {}), this.mapping.set(p, st({}, f, { isSubscription: b, jsonrpc: p, method: u, section: i })), Zn(this[i], u, () => b ? this._createMethodSubscribe(i, u, f) : this._createMethodSend(i, u, f)); } } } @@ -33925,7 +33925,7 @@ ${gz(e, r)}`); F(L); } return () => { - b ? f == null || f.unmemoize(...E) : f == null || f.raw.unmemoize(...E), N.then((L) => Fc(L) ? Promise.resolve(false) : this.provider.unsubscribe(u, c, L)).catch((L) => rp(r, n, L)); + b ? f == null || f.unmemoize(...E) : f == null || f.raw.unmemoize(...E), N.then((L) => Vc(L) ? Promise.resolve(false) : this.provider.unsubscribe(u, c, L)).catch((L) => rp(r, n, L)); }; }).pipe(qg()); return f = this._memomize(p, n), f; @@ -33960,7 +33960,7 @@ ${gz(e, r)}`); return e.createTypeUnsafe(i.type, [o], { blockHash: r }); } _formatStorageData(e, r, n, i) { - const s = Fc(i), o = s ? null : H7(n) ? i : Xe(i); + const s = Vc(i), o = s ? null : F7(n) ? i : Xe(i); return this._newType(e, r, n, o, s); } _formatStorageSet(e, r, n, i) { @@ -33976,21 +33976,21 @@ ${gz(e, r)}`); if (_) return this.__internal__storageCacheHits++, _; } - const f = u ? null : c[1], p = Fc(f), b = p || H7(n) ? f : Xe(f), E = this._newType(e, r, n, b, p, o); + const f = u ? null : c[1], p = Vc(f), b = p || F7(n) ? f : Xe(f), E = this._newType(e, r, n, b, p, o); return this.__internal__storageCache.set(a, E), this.__internal__storageCacheSize++, E; } _newType(e, r, n, i, s, o = -1) { - const a = n.outputType || "Raw", c = n.meta || Sre, u = o === -1 ? "" : ` entry ${o}:`; + const a = n.outputType || "Raw", c = n.meta || Are, u = o === -1 ? "" : ` entry ${o}:`; try { return e.createTypeUnsafe(a, [ - s ? c.fallback ? a.includes("Linkage<") ? $t(On(c.fallback.toHex()), new Uint8Array(2)) : On(c.fallback.toHex()) : void 0 : c.modifier.isOptional ? e.createTypeUnsafe(a, [i], { blockHash: r, isPedantic: this.__internal__isPedantic }) : i + s ? c.fallback ? a.includes("Linkage<") ? Qt(On(c.fallback.toHex()), new Uint8Array(2)) : On(c.fallback.toHex()) : void 0 : c.modifier.isOptional ? e.createTypeUnsafe(a, [i], { blockHash: r, isPedantic: this.__internal__isPedantic }) : i ], { blockHash: r, isFallback: s && !!c.fallback, isOptional: c.modifier.isOptional, isPedantic: this.__internal__isPedantic && !c.modifier.isOptional }); } catch (f) { throw new Error(`Unable to decode storage ${n.section || "unknown"}.${n.method || "unknown"}:${u}: ${f.message}`); } } }; - function Are(t) { + function Nre(t) { const e = []; for (let n = 0, i = t.length; n < i; n++) { const s = t[n].toString(2); @@ -34000,11 +34000,11 @@ ${gz(e, r)}`); const r = e.lastIndexOf(true); return r >= 0 ? e.slice(0, r + 1) : []; } - function am(t) { - return h4(t.number) ? t.number.unwrap() : t.number; + function cm(t) { + return f4(t.number) ? t.number.unwrap() : t.number; } var np = /* @__PURE__ */ new Map(); - var Tre = { + var Ire = { del: (t) => { np.delete(t); }, @@ -34026,9 +34026,9 @@ ${gz(e, r)}`); }, set: (t, e) => e }; - var Nre = 7 * (24 * 60) * (60 * 1e3); - var Wf; - function Ire(t, e) { + var Ore = 7 * (24 * 60) * (60 * 1e3); + var qf; + function Pre(t, e) { return { del: (r) => e.del(`${t}${r}`), forEach: e.forEach, @@ -34042,51 +34042,51 @@ ${gz(e, r)}`); } }; } - function Ore(t) { + function kre(t) { const e = Date.now(), r = []; t.forEach((n, { x: i }) => { - e - i > Nre && r.push(n); + e - i > Ore && r.push(n); }), r.forEach((n) => t.del(n)); } function zk(t = "", e) { - Wf = e ? Ire(`derive:${t}:`, e) : Vk, e && Ore(e); + qf = e ? Pre(`derive:${t}:`, e) : Vk, e && kre(e); } zk(); - function z8(t) { + function V8(t) { return t.pipe(we(([e]) => e)); } - function pa(t) { - return (e, r) => Le(e, (...n) => z8(t(r, ...n))); + function ha(t) { + return (e, r) => Le(e, (...n) => V8(t(r, ...n))); } function Wg(t, e, r, n) { - Jn(t, e, () => Hc({}, r(e), (i) => n(e, i))); + Zn(t, e, () => zc({}, r(e), (i) => n(e, i))); } - var Pre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Rre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - approvalFlagsToBools: Are, + approvalFlagsToBools: Nre, get deriveCache() { - return Wf; + return qf; }, - deriveMapCache: Tre, + deriveMapCache: Ire, deriveNoopCache: Vk, drr: qg, - firstMemo: pa, - firstObservable: z8, + firstMemo: ha, + firstObservable: V8, lazyDeriveSection: Wg, memo: Le, setDeriveCache: zk, - unwrapBlockNumber: am + unwrapBlockNumber: cm }, Symbol.toStringTag, { value: "Module" })); - function kre(t, e) { + function Cre(t, e) { return Le(t, (r) => { const n = Et(r) ? r : Mr((r || "").toString()); if (n.length > 8) - return xe(e.registry.createType("AccountId", n)); + return _e(e.registry.createType("AccountId", n)); const i = e.registry.createType("AccountIndex", n); - return e.derive.accounts.indexToId(i.toString()).pipe(we((s) => La(s, "Unable to retrieve accountId"))); + return e.derive.accounts.indexToId(i.toString()).pipe(we((s) => Ca(s, "Unable to retrieve accountId"))); }); } - function Rre(t, [e, r, n, i, s]) { + function Dre(t, [e, r, n, i, s]) { const o = t == null ? void 0 : t.toString(), a = (c) => c.toString() === o; return { isCouncil: ((e == null ? void 0 : e.map((c) => Array.isArray(c) ? c[0] : c.who)) || r || []).some(a), @@ -34095,7 +34095,7 @@ ${gz(e, r)}`); isTechCommittee: (n || []).some(a) }; } - function Cre(t, e) { + function Lre(t, e) { return Le(t, () => { var s, o, a, c, u; const r = [void 0, [], [], [], void 0], n = [ @@ -34110,13 +34110,13 @@ ${gz(e, r)}`); for (let b = 0, E = n.length; b < E; b++) St(n[b]) && (r[b] = f[++p]); return r; - })) : xe(r); + })) : _e(r); }); } - function Dre(t, e) { - return Le(t, (r) => e.derive.accounts._flags().pipe(we((n) => Rre(r, n)))); + function Bre(t, e) { + return Le(t, (r) => e.derive.accounts._flags().pipe(we((n) => Dre(r, n)))); } - function Lre(t, e) { + function Ure(t, e) { return Le(t, (r) => { try { const n = Et(r) ? r : Mr((r || "").toString()); @@ -34127,18 +34127,18 @@ ${gz(e, r)}`); const i = e.registry.createType("AccountIndex", n); return e.derive.accounts.indexToId(i.toString()).pipe(we((s) => [s, i])); } catch { - return xe([void 0, void 0]); + return _e([void 0, void 0]); } }); } - var Bre = { toHex: () => { + var jre = { toHex: () => { } }; - function eo(t) { - return t.isRaw ? fo(t.asRaw.toU8a(true)) : t.isNone ? void 0 : t.toHex(); + function $s(t) { + return t.isRaw ? lo(t.asRaw.toU8a(true)) : t.isNone ? void 0 : t.toHex(); } - function Ure(t) { + function Vre(t) { return t.reduce((e, [r, n]) => { - const i = eo(r), s = eo(n); + const i = $s(r), s = $s(n); return i && s && (e[i] = s), e; }, {}); } @@ -34146,89 +34146,89 @@ ${gz(e, r)}`); const e = t.unwrap(); return Array.isArray(e) ? e[0] : e; } - function jre(t, e) { + function zre(t, e) { if (!(t != null && t.isSome)) return { judgements: [] }; - const { info: r, judgements: n } = Fk(t), i = eo(r.display); + const { info: r, judgements: n } = Fk(t), i = $s(r.display); return { - display: e && eo(e[1]) || i, + display: e && $s(e[1]) || i, displayParent: e && i, - email: eo(r.email), - image: eo(r.image), + email: $s(r.email), + image: $s(r.image), judgements: n, - legal: eo(r.legal), - other: Ure(r.additional), + legal: $s(r.legal), + other: Vre(r.additional), parent: e == null ? void 0 : e[0], - pgp: r.pgpFingerprint.unwrapOr(Bre).toHex(), - riot: eo(r.riot), - twitter: eo(r.twitter), - web: eo(r.web) + pgp: r.pgpFingerprint.unwrapOr(jre).toHex(), + riot: $s(r.riot), + twitter: $s(r.twitter), + web: $s(r.web) }; } - function Vre(t, e, r) { + function Fre(t, e, r) { if (e != null && e.isSome) - return xe([e, void 0]); + return _e([e, void 0]); if (r != null && r.isSome) { const n = r.unwrap(); - return Qe([ + return $e([ t.derive.accounts._identity(n[0]).pipe(we(([i]) => i)), - xe(n) + _e(n) ]); } - return xe([void 0, void 0]); + return _e([void 0, void 0]); } - function zre(t, e) { + function Hre(t, e) { return Le(t, (r) => { var n; - return r && ((n = e.query.identity) != null && n.identityOf) ? Qe([ + return r && ((n = e.query.identity) != null && n.identityOf) ? $e([ e.query.identity.identityOf(r), e.query.identity.superOf(r) - ]) : xe([void 0, void 0]); + ]) : _e([void 0, void 0]); }); } - function Fre(t, e) { - return Le(t, (r) => e.derive.accounts._identity(r).pipe(Oe(([n, i]) => Vre(e, n, i)), we(([n, i]) => jre(n, i)))); - } - var Hre = /* @__PURE__ */ pa((t, e) => t.derive.accounts.hasIdentityMulti([e])); function qre(t, e) { + return Le(t, (r) => e.derive.accounts._identity(r).pipe(Pe(([n, i]) => Fre(e, n, i)), we(([n, i]) => zre(n, i)))); + } + var Wre = /* @__PURE__ */ ha((t, e) => t.derive.accounts.hasIdentityMulti([e])); + function Gre(t, e) { return Le(t, (r) => { var n; - return (n = e.query.identity) != null && n.identityOf ? Qe([ + return (n = e.query.identity) != null && n.identityOf ? $e([ e.query.identity.identityOf.multi(r), e.query.identity.superOf.multi(r) ]).pipe(we(([i, s]) => i.map((o, a) => { const c = s[a], u = c && c.isSome ? c.unwrap()[0].toString() : void 0; let f; if (o && o.isSome) { - const p = eo(Fk(o).info.display); + const p = $s(Fk(o).info.display); p && !Ft(p) && (f = p); } return { display: f, hasIdentity: !!(f || u), parentId: u }; - }))) : xe(r.map(() => ({ hasIdentity: false }))); + }))) : _e(r.map(() => ({ hasIdentity: false }))); }); } - function Wre(t, e) { + function Kre(t, e) { return Le(t, (r) => e.derive.accounts.indexes().pipe(we((n) => n[r.toString()]))); } - var Vy = null; - function Gre(t) { + var jy = null; + function Xre(t) { return t.query.indices.accounts.entries().pipe(we((e) => e.reduce((r, [n, i]) => (i.isSome && (r[i.unwrap()[0].toString()] = t.registry.createType("AccountIndex", n.args[0])), r), {}))); } - function Kre(t, e) { - return Le(t, () => Vy ? xe(Vy) : (e.query.indices ? Gre(e).pipe(Cr({})) : xe({})).pipe(we((r) => (Vy = r, r)))); + function Yre(t, e) { + return Le(t, () => jy ? _e(jy) : (e.query.indices ? Xre(e).pipe(Qr({})) : _e({})).pipe(we((r) => (jy = r, r)))); } - function Xre(t, e) { - return Le(t, (r) => e.query.indices ? e.query.indices.accounts(r).pipe(we((n) => n.unwrapOr([])[0])) : xe(void 0)); + function Zre(t, e) { + return Le(t, (r) => e.query.indices ? e.query.indices.accounts(r).pipe(we((n) => n.unwrapOr([])[0])) : _e(void 0)); } - function Yre(t, e) { + function Jre(t, e) { var r; - return (e && ((r = t.query.nicks) != null && r.nameOf) ? t.query.nicks.nameOf(e) : xe(void 0)).pipe(we((n) => n != null && n.isSome ? fo(n.unwrap()[0]).substring(0, t.consts.nicks.maxLength.toNumber()) : void 0)); + return (e && ((r = t.query.nicks) != null && r.nameOf) ? t.query.nicks.nameOf(e) : _e(void 0)).pipe(we((n) => n != null && n.isSome ? lo(n.unwrap()[0]).substring(0, t.consts.nicks.maxLength.toNumber()) : void 0)); } - function Zre(t, e) { - return Le(t, (r) => e.derive.accounts.idAndIndex(r).pipe(Oe(([n, i]) => Qe([ - xe({ accountId: n, accountIndex: i }), + function Qre(t, e) { + return Le(t, (r) => e.derive.accounts.idAndIndex(r).pipe(Pe(([n, i]) => $e([ + _e({ accountId: n, accountIndex: i }), e.derive.accounts.identity(n), - Yre(e, n) + Jre(e, n) ])), we(([{ accountId: n, accountIndex: i }, s, o]) => ({ accountId: n, accountIndex: i, @@ -34236,36 +34236,36 @@ ${gz(e, r)}`); nickname: o })))); } - var Jre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var $re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _flags: Cre, - _identity: zre, - accountId: kre, - flags: Dre, - hasIdentity: Hre, - hasIdentityMulti: qre, - idAndIndex: Lre, - idToIndex: Wre, - identity: Fre, - indexToId: Xre, - indexes: Kre, - info: Zre + _flags: Lre, + _identity: Hre, + accountId: Cre, + flags: Bre, + hasIdentity: Wre, + hasIdentityMulti: Gre, + idAndIndex: Ure, + idToIndex: Kre, + identity: qre, + indexToId: Zre, + indexes: Yre, + info: Qre }, Symbol.toStringTag, { value: "Module" })); - function Qre(t, e) { + function ene(t, e) { const r = t.registry.getModuleInstances(t.runtimeVersion.specName, e), n = r != null && r.length ? r[0] : e; return t.query[n]; } - function y0(t, e) { - return (r, n) => Le(r, e(Qre(n, t), n, r)); + function b0(t, e) { + return (r, n) => Le(r, e(ene(n, t), n, r)); } - function F8(t, e) { - return (r) => y0(r, (n) => () => St(n == null ? void 0 : n[t]) ? n[t]() : xe(e)); + function z8(t, e) { + return (r) => b0(r, (n) => () => St(n == null ? void 0 : n[t]) ? n[t]() : _e(e)); } - var Gg = /* @__PURE__ */ F8("members", []); + var Gg = /* @__PURE__ */ z8("members", []); function Kg(t) { - return y0(t, (e) => () => St(e == null ? void 0 : e.prime) ? e.prime().pipe(we((r) => r.unwrapOr(null))) : xe(null)); + return b0(t, (e) => () => St(e == null ? void 0 : e.prime) ? e.prime().pipe(we((r) => r.unwrapOr(null))) : _e(null)); } - function $re(t, [e, r, n]) { + function tne(t, [e, r, n]) { return r.map((i, s) => ({ hash: t.registry.createType("Hash", e[s]), proposal: i && i.isSome ? i.unwrap() : null, @@ -34273,81 +34273,81 @@ ${gz(e, r)}`); })); } function Hk(t, e, r) { - return (St(e == null ? void 0 : e.proposals) && r.length ? Qe([ - xe(r), - e.proposalOf.multi(r).pipe(Yt(() => xe(r.map(() => null)))), + return (St(e == null ? void 0 : e.proposals) && r.length ? $e([ + _e(r), + e.proposalOf.multi(r).pipe($t(() => _e(r.map(() => null)))), e.voting.multi(r) - ]) : xe([[], [], []])).pipe(we((n) => $re(t, n))); + ]) : _e([[], [], []])).pipe(we((n) => tne(t, n))); } function Xg(t) { - return y0(t, (e) => () => xe(St(e == null ? void 0 : e.proposals))); + return b0(t, (e) => () => _e(St(e == null ? void 0 : e.proposals))); } function Yg(t) { - return y0(t, (e, r) => () => r.derive[t].proposalHashes().pipe(Oe((n) => Hk(r, e, n)))); + return b0(t, (e, r) => () => r.derive[t].proposalHashes().pipe(Pe((n) => Hk(r, e, n)))); } function Zg(t) { - return y0(t, (e, r) => (n) => St(e == null ? void 0 : e.proposals) ? z8(Hk(r, e, [n])) : xe(null)); - } - var Jg = /* @__PURE__ */ F8("proposalCount", null); - var Qg = /* @__PURE__ */ F8("proposals", []); - var ene = /* @__PURE__ */ Gg("allianceMotion"); - var tne = /* @__PURE__ */ Xg("allianceMotion"); - var rne = /* @__PURE__ */ Zg("allianceMotion"); - var nne = /* @__PURE__ */ Jg("allianceMotion"); - var ine = /* @__PURE__ */ Qg("allianceMotion"); - var sne = /* @__PURE__ */ Yg("allianceMotion"); - var one = /* @__PURE__ */ Kg("allianceMotion"); - var ane = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + return b0(t, (e, r) => (n) => St(e == null ? void 0 : e.proposals) ? V8(Hk(r, e, [n])) : _e(null)); + } + var Jg = /* @__PURE__ */ z8("proposalCount", null); + var Qg = /* @__PURE__ */ z8("proposals", []); + var rne = /* @__PURE__ */ Gg("allianceMotion"); + var nne = /* @__PURE__ */ Xg("allianceMotion"); + var ine = /* @__PURE__ */ Zg("allianceMotion"); + var sne = /* @__PURE__ */ Jg("allianceMotion"); + var one = /* @__PURE__ */ Qg("allianceMotion"); + var ane = /* @__PURE__ */ Yg("allianceMotion"); + var cne = /* @__PURE__ */ Kg("allianceMotion"); + var une = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasProposals: tne, - members: ene, - prime: one, - proposal: rne, - proposalCount: nne, - proposalHashes: ine, - proposals: sne + hasProposals: nne, + members: rne, + prime: cne, + proposal: ine, + proposalCount: sne, + proposalHashes: one, + proposals: ane }, Symbol.toStringTag, { value: "Module" })); - function H8(t) { + function F8(t) { return t.query.voterList || t.query.voterBagsList || t.query.bagsList; } - function cne(t, e) { + function lne(t, e) { const r = t.map((i, s) => ({ bag: e[s].unwrapOr(null), id: i, key: i.toString() })).sort((i, s) => s.id.cmp(i.id)), n = r.length - 1; return r.map((i, s) => st(i, { - bagLower: s === n ? Jr : r[s + 1].id, + bagLower: s === n ? Zr : r[s + 1].id, bagUpper: i.id, index: s })); } - function une(t, e) { - const r = H8(e); + function fne(t, e) { + const r = F8(e); return Le(t, (n) => { const i = n.map((s) => on(s)); - return i.length ? r.listBags.multi(i).pipe(we((s) => cne(i, s))) : xe([]); + return i.length ? r.listBags.multi(i).pipe(we((s) => lne(i, s))) : _e([]); }); } - function lne(t, e) { - const r = H8(e); - return Le(t, () => r.listBags.keys().pipe(Oe((n) => e.derive.bagsList._getIds(n.map(({ args: [i] }) => i))), we((n) => n.filter(({ bag: i }) => i)))); + function hne(t, e) { + const r = F8(e); + return Le(t, () => r.listBags.keys().pipe(Pe((n) => e.derive.bagsList._getIds(n.map(({ args: [i] }) => i))), we((n) => n.filter(({ bag: i }) => i)))); } - function fne(t, e) { + function dne(t, e) { return Le(t, (r) => e.derive.bagsList._getIds([on(r)]).pipe(we((n) => n[0]))); } - function hne(t, e) { + function pne(t, e) { return Le(t, (r) => e.derive.bagsList.listNodes(r.bag).pipe(we((n) => st({ nodes: n }, r)))); } - function dne(t, e) { - return Le(t, (r) => e.derive.bagsList.get(r).pipe(Oe((n) => e.derive.bagsList.expand(n)))); + function mne(t, e) { + return Le(t, (r) => e.derive.bagsList.get(r).pipe(Pe((n) => e.derive.bagsList.expand(n)))); } - function pne(t, e) { - const r = new Xc(e), n = H8(t); + function gne(t, e) { + const r = new Gc(e), n = F8(t); return r.pipe( - Oe((i) => n.listNodes(i)), - Us((i) => { - Zc(() => { + Pe((i) => n.listNodes(i)), + Bs((i) => { + Xc(() => { i.isSome && i.value.next.isSome ? r.next(i.unwrap().next.unwrap()) : r.complete(); }); }), @@ -34355,43 +34355,43 @@ ${gz(e, r)}`); we((i) => i.map((s) => s.unwrap())) ); } - function mne(t, e) { - return Le(t, (r) => r && r.head.isSome ? pne(e, r.head.unwrap()) : xe([])); + function yne(t, e) { + return Le(t, (r) => r && r.head.isSome ? gne(e, r.head.unwrap()) : _e([])); } - var gne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var bne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _getIds: une, - all: lne, - expand: hne, - get: fne, - getExpanded: dne, - listNodes: mne + _getIds: fne, + all: hne, + expand: pne, + get: dne, + getExpanded: mne, + listNodes: yne }, Symbol.toStringTag, { value: "Module" })); - var yne = "0x76657374696e6720"; - function bne(t, e, r) { + var wne = "0x76657374696e6720"; + function vne(t, e, r) { let n = t.registry.createType("Balance"), i = [], s = t.registry.createType("Balance"), o = false; if (Array.isArray(r)) { - i = r.filter(({ until: c }) => !c || e && c.gt(e)), o = i.some(({ amount: c }) => c && c.isMax()), s = t.registry.createType("Balance", i.filter(({ id: c }) => c.eq(yne)).reduce((c, { amount: u }) => c.iadd(u), new ct(0))); + i = r.filter(({ until: c }) => !c || e && c.gt(e)), o = i.some(({ amount: c }) => c && c.isMax()), s = t.registry.createType("Balance", i.filter(({ id: c }) => c.eq(wne)).reduce((c, { amount: u }) => c.iadd(u), new ct(0))); const a = i.filter(({ amount: c }) => c && !c.isMax()); - a.length && (n = t.registry.createType("Balance", a4(...a.map(({ amount: c }) => c)))); + a.length && (n = t.registry.createType("Balance", o4(...a.map(({ amount: c }) => c)))); } return { allLocked: o, lockedBalance: n, lockedBreakdown: i, vestingLocked: s }; } - function q7(t, e, r, n) { - const { allLocked: i, lockedBalance: s, lockedBreakdown: o, vestingLocked: a } = bne(t, e, n); + function H7(t, e, r, n) { + const { allLocked: i, lockedBalance: s, lockedBreakdown: o, vestingLocked: a } = vne(t, e, n); return st({}, r, { - availableBalance: t.registry.createType("Balance", i ? 0 : a4(new ct(0), r != null && r.freeBalance ? r.freeBalance.sub(s) : new ct(0))), + availableBalance: t.registry.createType("Balance", i ? 0 : o4(new ct(0), r != null && r.freeBalance ? r.freeBalance.sub(s) : new ct(0))), lockedBalance: s, lockedBreakdown: o, vestingLocked: a }); } - function wne(t, e, r) { - const n = r || [], i = !e.vestingLocked.isZero(), s = n.map(({ locked: c, perBlock: u, startingBlock: f }) => t.gt(f) ? RN(c, u.mul(t.sub(f))) : Jr), o = s.reduce((c, u) => c.iadd(u), new ct(0)), a = n.reduce((c, { locked: u }) => c.iadd(u), new ct(0)); + function xne(t, e, r) { + const n = r || [], i = !e.vestingLocked.isZero(), s = n.map(({ locked: c, perBlock: u, startingBlock: f }) => t.gt(f) ? RN(c, u.mul(t.sub(f))) : Zr), o = s.reduce((c, u) => c.iadd(u), new ct(0)), a = n.reduce((c, { locked: u }) => c.iadd(u), new ct(0)); return { isVesting: i, vestedBalance: o, - vestedClaimable: i ? e.vestingLocked.sub(a.sub(o)) : Jr, + vestedClaimable: i ? e.vestingLocked.sub(a.sub(o)) : Zr, vesting: n.map(({ locked: c, perBlock: u, startingBlock: f }, p) => ({ endBlock: c.div(u).iadd(f), locked: c, @@ -34402,17 +34402,17 @@ ${gz(e, r)}`); vestingTotal: a }; } - function vne(t, e) { - const [r, [n, i, s], o] = e, a = q7(t, o, r, i[0]); - return st(a, wne(o, a, n), { + function _ne(t, e) { + const [r, [n, i, s], o] = e, a = H7(t, o, r, i[0]); + return st(a, xne(o, a, n), { accountId: r.accountId, accountNonce: r.accountNonce, - additional: i.slice(1).map((c, u) => q7(t, o, r.additional[u], c)), + additional: i.slice(1).map((c, u) => H7(t, o, r.additional[u], c)), namedReserves: s }); } - function xne(t, e) { - return Qe([ + function Ene(t, e) { + return $e([ t.query.balances.locks(e), t.query.balances.vesting(e) ]).pipe(we(([r, n]) => { @@ -34428,26 +34428,26 @@ ${gz(e, r)}`); ]; })); } - var _ne = (t) => !!t; - function W7(t) { + var Sne = (t) => !!t; + function q7(t) { return [ t.map((e) => !e), - t.filter(_ne) + t.filter(Sne) ]; } - function Ene(t, e, r = ["balances"]) { + function Mne(t, e, r = ["balances"]) { var a; - const [n, i] = W7(r.map((c) => { + const [n, i] = q7(r.map((c) => { var u, f; return ((u = t.derive[c]) == null ? void 0 : u.customLocks) || ((f = t.query[c]) == null ? void 0 : f.locks); - })), [s, o] = W7(r.map((c) => { + })), [s, o] = q7(r.map((c) => { var u; return (u = t.query[c]) == null ? void 0 : u.reserves; })); - return Qe([ - (a = t.query.vesting) != null && a.vesting ? t.query.vesting.vesting(e) : xe(t.registry.createType("Option")), - i.length ? Qe(i.map((c) => c(e))) : xe([]), - o.length ? Qe(o.map((c) => c(e))) : xe([]) + return $e([ + (a = t.query.vesting) != null && a.vesting ? t.query.vesting.vesting(e) : _e(t.registry.createType("Option")), + i.length ? $e(i.map((c) => c(e))) : _e([]), + o.length ? $e(o.map((c) => c(e))) : _e([]) ]).pipe(we(([c, u, f]) => { let p = -1, b = -1; const E = c.unwrapOr(null); @@ -34462,20 +34462,20 @@ ${gz(e, r)}`); const r = e.registry.getModuleInstances(e.runtimeVersion.specName, "balances"); return Le(t, (n) => { var i, s; - return Qe([ + return $e([ e.derive.balances.account(n), - St((i = e.query.system) == null ? void 0 : i.account) || St((s = e.query.balances) == null ? void 0 : s.account) ? Ene(e, n, r) : xne(e, n) - ]).pipe(Oe(([o, a]) => Qe([ - xe(o), - xe(a), + St((i = e.query.system) == null ? void 0 : i.account) || St((s = e.query.balances) == null ? void 0 : s.account) ? Mne(e, n, r) : Ene(e, n) + ]).pipe(Pe(([o, a]) => $e([ + _e(o), + _e(a), e.derive.chain.bestNumber() - ])), we((o) => vne(e, o))); + ])), we((o) => _ne(e, o))); }); } - function Fi(t) { + function zi(t) { return t.registry.createType("Balance"); } - function G7(t, [e, r, n, i]) { + function W7(t, [e, r, n, i]) { const s = t.registry.createType("Balance", e.toBn()); return { freeBalance: e, @@ -34485,31 +34485,31 @@ ${gz(e, r)}`); votingBalance: s }; } - function Sne(t, [e, [r, [n, ...i]]]) { + function Ane(t, [e, [r, [n, ...i]]]) { return st({ accountId: e, accountNonce: r, - additional: i.map((s) => G7(t, s)) - }, G7(t, n)); + additional: i.map((s) => W7(t, s)) + }, W7(t, n)); } - function Mne(t, e) { - return Qe([ + function Tne(t, e) { + return $e([ t.query.balances.freeBalance(e), t.query.balances.reservedBalance(e), t.query.system.accountNonce(e) ]).pipe(we(([r, n, i]) => [ i, - [[r, n, Fi(t), Fi(t)]] + [[r, n, zi(t), zi(t)]] ])); } function Wk(t, e) { const r = (n) => [ n, - [[Fi(t), Fi(t), Fi(t), Fi(t)]] + [[zi(t), zi(t), zi(t), zi(t)]] ]; - return St(t.query.system.account) ? t.query.system.account(e).pipe(we(({ nonce: n }) => r(n))) : St(t.query.system.accountNonce) ? t.query.system.accountNonce(e).pipe(we((n) => r(n))) : xe(r(t.registry.createType("Index"))); + return St(t.query.system.account) ? t.query.system.account(e).pipe(we(({ nonce: n }) => r(n))) : St(t.query.system.accountNonce) ? t.query.system.accountNonce(e).pipe(we((n) => r(n))) : _e(r(t.registry.createType("Index"))); } - function K7(t, e, r = ["balances"]) { + function G7(t, e, r = ["balances"]) { const n = r.map((s) => { var o, a; return ((o = t.derive[s]) == null ? void 0 : o.customAccount) || ((a = t.query[s]) == null ? void 0 : a.account); @@ -34517,21 +34517,21 @@ ${gz(e, r)}`); s, o.map(({ feeFrozen: a, free: c, miscFrozen: u, reserved: f }) => [c, f, a, u]) ]; - return n.length ? St(t.query.system.account) ? Qe([ + return n.length ? St(t.query.system.account) ? $e([ t.query.system.account(e), ...n.map((s) => s(e)) - ]).pipe(we(([{ nonce: s }, ...o]) => i(s, o))) : Qe([ + ]).pipe(we(([{ nonce: s }, ...o]) => i(s, o))) : $e([ t.query.system.accountNonce(e), ...n.map((s) => s(e)) ]).pipe(we(([s, ...o]) => i(s, o))) : Wk(t, e); } - function Ane(t, e) { + function Nne(t, e) { return t.query.system.account(e).pipe(we((r) => { const n = r.nonce ? r.data : r[1], i = r.nonce || r[0]; if (!n || n.isEmpty) return [ i, - [[Fi(t), Fi(t), Fi(t), Fi(t)]] + [[zi(t), zi(t), zi(t), zi(t)]] ]; const { feeFrozen: s, free: o, miscFrozen: a, reserved: c } = n; return [ @@ -34540,35 +34540,35 @@ ${gz(e, r)}`); ]; })); } - function Tne(t, e) { + function Ine(t, e) { const r = e.registry.getModuleInstances(e.runtimeVersion.specName, "balances"), n = r && r[0] !== "balances"; - return Le(t, (i) => e.derive.accounts.accountId(i).pipe(Oe((s) => { + return Le(t, (i) => e.derive.accounts.accountId(i).pipe(Pe((s) => { var o, a, c; - return s ? Qe([ - xe(s), - n ? K7(e, s, r) : St((o = e.query.system) == null ? void 0 : o.account) ? Ane(e, s) : St((a = e.query.balances) == null ? void 0 : a.account) ? K7(e, s) : St((c = e.query.balances) == null ? void 0 : c.freeBalance) ? Mne(e, s) : Wk(e, s) - ]) : xe([e.registry.createType("AccountId"), [ + return s ? $e([ + _e(s), + n ? G7(e, s, r) : St((o = e.query.system) == null ? void 0 : o.account) ? Nne(e, s) : St((a = e.query.balances) == null ? void 0 : a.account) ? G7(e, s) : St((c = e.query.balances) == null ? void 0 : c.freeBalance) ? Tne(e, s) : Wk(e, s) + ]) : _e([e.registry.createType("AccountId"), [ e.registry.createType("Index"), - [[Fi(e), Fi(e), Fi(e), Fi(e)]] + [[zi(e), zi(e), zi(e), zi(e)]] ]]); - }), we((s) => Sne(e, s)))); + }), we((s) => Ane(e, s)))); } - function Nne(t, e) { - return Le(t, (r) => r != null && r.length ? Qe(r.map((n) => e.derive.balances.account(n))) : xe([])); + function One(t, e) { + return Le(t, (r) => r != null && r.length ? $e(r.map((n) => e.derive.balances.account(n))) : _e([])); } - var Ine = qk; - var One = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Pne = qk; + var kne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - account: Tne, + account: Ine, all: qk, - votingBalance: Ine, - votingBalances: Nne + votingBalance: Pne, + votingBalances: One }, Symbol.toStringTag, { value: "Module" })); - function Pne(t, e) { + function Rne(t, e) { const r = t.tx.bounties ? t.tx.bounties : t.tx.treasury, n = [r.approveBounty, r.closeBounty, r.proposeCurator, r.unassignCurator]; return e.filter((i) => n.find((s) => i.proposal && s.is(i.proposal))); } - function X7([t, e, r, n]) { + function K7([t, e, r, n]) { const i = []; return t.forEach((s, o) => { s.isSome && i.push({ @@ -34579,66 +34579,66 @@ ${gz(e, r)}`); }); }), i; } - function kne(t, e) { + function Cne(t, e) { const r = e.query.bounties || e.query.treasury; - return Le(t, () => r.bounties ? Qe([ + return Le(t, () => r.bounties ? $e([ r.bountyCount(), - e.query.council ? e.query.council.proposalCount() : xe(0) - ]).pipe(Oe(() => Qe([ + e.query.council ? e.query.council.proposalCount() : _e(0) + ]).pipe(Pe(() => $e([ r.bounties.keys(), - e.derive.council ? e.derive.council.proposals() : xe([]) - ])), Oe(([n, i]) => { + e.derive.council ? e.derive.council.proposals() : _e([]) + ])), Pe(([n, i]) => { const s = n.map(({ args: [o] }) => o); - return Qe([ + return $e([ r.bounties.multi(s), r.bountyDescriptions.multi(s), - xe(s), - xe(Pne(e, i)) + _e(s), + _e(Rne(e, i)) ]); - }), we(X7)) : xe(X7([[], [], [], []]))); + }), we(K7)) : _e(K7([[], [], [], []]))); } - var Rne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Dne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - bounties: kne + bounties: Cne }, Symbol.toStringTag, { value: "Module" })); function Gk(t) { - return (e, r) => Le(e, () => t(r).pipe(we(am))); + return (e, r) => Le(e, () => t(r).pipe(we(cm))); } - function Cne(t, e) { + function Lne(t, e) { var s, o, a, c; - const r = (s = e.session) != null && s.validators ? e.session.validators() : xe(null), { logs: [n] } = t.digest, i = n && (n.isConsensus && n.asConsensus[0].isNimbus && n.asConsensus[1] || n.isPreRuntime && n.asPreRuntime[0].isNimbus && n.asPreRuntime[1]); + const r = (s = e.session) != null && s.validators ? e.session.validators() : _e(null), { logs: [n] } = t.digest, i = n && (n.isConsensus && n.asConsensus[0].isNimbus && n.asConsensus[1] || n.isPreRuntime && n.asPreRuntime[0].isNimbus && n.asPreRuntime[1]); if (i) { if ((o = e.authorMapping) != null && o.mappingWithDeposit) - return Qe([ - xe(t), + return $e([ + _e(t), r, e.authorMapping.mappingWithDeposit(i).pipe(we((u) => u.unwrapOr({ account: null }).account)) ]); if ((a = e.parachainStaking) != null && a.selectedCandidates && ((c = e.session) != null && c.nextKeys)) { const u = i.toHex(); - return Qe([ - xe(t), + return $e([ + _e(t), r, - e.parachainStaking.selectedCandidates().pipe(Cn((f) => Qe([ - xe(f), + e.parachainStaking.selectedCandidates().pipe(Cn((f) => $e([ + _e(f), e.session.nextKeys.multi(f).pipe(we((p) => p.findIndex((b) => b.unwrapOrDefault().nimbus.toHex() === u))) ])), we(([f, p]) => p === -1 ? null : f[p])) ]); } } - return Qe([ - xe(t), + return $e([ + _e(t), r, - xe(null) + _e(null) ]); } - function q8(t, e, r) { - return t.queryAt(e.parentHash.isEmpty ? r || e.hash : e.parentHash).pipe(Oe((n) => Cne(e, n))); + function H8(t, e, r) { + return t.queryAt(e.parentHash.isEmpty ? r || e.hash : e.parentHash).pipe(Pe((n) => Lne(e, n))); } - var Dne = /* @__PURE__ */ Gk((t) => t.rpc.chain.subscribeNewHeads()); - var Lne = /* @__PURE__ */ Gk((t) => t.rpc.chain.subscribeFinalizedHeads()); - function Bne(t, e) { - return Le(t, () => Qe([ + var Bne = /* @__PURE__ */ Gk((t) => t.rpc.chain.subscribeNewHeads()); + var Une = /* @__PURE__ */ Gk((t) => t.rpc.chain.subscribeFinalizedHeads()); + function jne(t, e) { + return Le(t, () => $e([ e.derive.chain.bestNumber(), e.derive.chain.bestNumberFinalized() ]).pipe(we(([r, n]) => e.registry.createType("BlockNumber", r.sub(n))))); @@ -34663,7 +34663,7 @@ ${gz(e, r)}`); } return s; } - function W8(t, e, r, n) { + function q8(t, e, r, n) { const i = t.createClass("Header"); class s extends i { constructor(c, u, f, p) { @@ -34677,7 +34677,7 @@ ${gz(e, r)}`); } return new s(t, e, r, n); } - function Une(t, e) { + function Vne(t, e) { return t.map((r, n) => { let i, s; const o = e.filter(({ phase: a }) => a.isApplyExtrinsic && a.asApplyExtrinsic.eq(n)).map(({ event: a }) => (a.section === "system" && (a.method === "ExtrinsicSuccess" ? s = a.data[0] : a.method === "ExtrinsicFailed" && (i = a.data[0], s = a.data[1])), a)); @@ -34692,7 +34692,7 @@ ${gz(e, r)}`); re(this, "__internal__author"); re(this, "__internal__events"); re(this, "__internal__extrinsics"); - this.__internal__author = E || Kk(this.block.header.digest, b || []), this.__internal__events = p || [], this.__internal__extrinsics = Une(this.block.extrinsics, this.__internal__events), this.createdAtHash = f == null ? void 0 : f.createdAtHash; + this.__internal__author = E || Kk(this.block.header.digest, b || []), this.__internal__events = p || [], this.__internal__extrinsics = Vne(this.block.extrinsics, this.__internal__events), this.createdAtHash = f == null ? void 0 : f.createdAtHash; } get author() { return this.__internal__author; @@ -34706,59 +34706,59 @@ ${gz(e, r)}`); } return new o(t, e, r, n, i); } - function jne(t, e) { - return Le(t, (r) => Qe([ + function zne(t, e) { + return Le(t, (r) => $e([ e.rpc.chain.getBlock(r), e.queryAt(r) - ]).pipe(Oe(([n, i]) => Qe([ - xe(n), + ]).pipe(Pe(([n, i]) => $e([ + _e(n), i.system.events(), - q8(e, n.block.header, r) + H8(e, n.block.header, r) ])), we(([n, i, [, s, o]]) => Xk(i.registry, n, i, s, o)))); } - function Vne(t, e) { - return Le(t, (r) => e.rpc.chain.getBlockHash(r).pipe(Oe((n) => e.derive.chain.getBlock(n)))); - } - function zne(t, e) { - return Le(t, (r) => e.rpc.chain.getHeader(r).pipe(Oe((n) => q8(e, n, r)), we(([n, i, s]) => W8((i || n).registry, n, i, s)))); - } function Fne(t, e) { - return Le(t, () => e.derive.chain.subscribeFinalizedHeads().pipe(Oe((r) => e.derive.chain.getBlock(r.createdAtHash || r.hash)))); + return Le(t, (r) => e.rpc.chain.getBlockHash(r).pipe(Pe((n) => e.derive.chain.getBlock(n)))); } function Hne(t, e) { - return Le(t, (r, n, i = []) => e.rpc.chain.getHeader(r).pipe(Oe((s) => s.parentHash.eq(n) ? xe([s, ...i]) : e.derive.chain._getHeaderRange(s.parentHash, n, [s, ...i])))); + return Le(t, (r) => e.rpc.chain.getHeader(r).pipe(Pe((n) => H8(e, n, r)), we(([n, i, s]) => q8((i || n).registry, n, i, s)))); } function qne(t, e) { + return Le(t, () => e.derive.chain.subscribeFinalizedHeads().pipe(Pe((r) => e.derive.chain.getBlock(r.createdAtHash || r.hash)))); + } + function Wne(t, e) { + return Le(t, (r, n, i = []) => e.rpc.chain.getHeader(r).pipe(Pe((s) => s.parentHash.eq(n) ? _e([s, ...i]) : e.derive.chain._getHeaderRange(s.parentHash, n, [s, ...i])))); + } + function Gne(t, e) { return Le(t, () => { let r = null; - return e.rpc.chain.subscribeFinalizedHeads().pipe(Oe((n) => { + return e.rpc.chain.subscribeFinalizedHeads().pipe(Pe((n) => { const i = r, s = n.parentHash; - return r = n.createdAtHash = n.hash, i === null || s.eq(i) ? xe(n) : e.derive.chain._getHeaderRange(s, i, [n]).pipe(Oe((o) => Fr(o))); + return r = n.createdAtHash = n.hash, i === null || s.eq(i) ? _e(n) : e.derive.chain._getHeaderRange(s, i, [n]).pipe(Pe((o) => zr(o))); })); }); } - function Wne(t, e) { - return Le(t, () => e.derive.chain.subscribeNewHeads().pipe(Oe((r) => e.derive.chain.getBlock(r.createdAtHash || r.hash)))); + function Kne(t, e) { + return Le(t, () => e.derive.chain.subscribeNewHeads().pipe(Pe((r) => e.derive.chain.getBlock(r.createdAtHash || r.hash)))); } - function Gne(t, e) { - return Le(t, () => e.rpc.chain.subscribeNewHeads().pipe(Oe((r) => q8(e, r)), we(([r, n, i]) => (r.createdAtHash = r.hash, W8(r.registry, r, n, i))))); + function Xne(t, e) { + return Le(t, () => e.rpc.chain.subscribeNewHeads().pipe(Pe((r) => H8(e, r)), we(([r, n, i]) => (r.createdAtHash = r.hash, q8(r.registry, r, n, i))))); } - var Kne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Yne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _getHeaderRange: Hne, - bestNumber: Dne, - bestNumberFinalized: Lne, - bestNumberLag: Bne, - getBlock: jne, - getBlockByNumber: Vne, - getHeader: zne, - subscribeFinalizedBlocks: Fne, - subscribeFinalizedHeads: qne, - subscribeNewBlocks: Wne, - subscribeNewHeads: Gne + _getHeaderRange: Wne, + bestNumber: Bne, + bestNumberFinalized: Une, + bestNumberLag: jne, + getBlock: zne, + getBlockByNumber: Fne, + getHeader: Hne, + subscribeFinalizedBlocks: qne, + subscribeFinalizedHeads: Gne, + subscribeNewBlocks: Kne, + subscribeNewHeads: Xne }, Symbol.toStringTag, { value: "Module" })); - function Xne(t) { - return xe([ + function Zne(t) { + return _e([ t.consts.contracts.callBaseFee || t.registry.createType("Balance"), t.consts.contracts.contractFee || t.registry.createType("Balance"), t.consts.contracts.creationFee || t.registry.createType("Balance"), @@ -34771,8 +34771,8 @@ ${gz(e, r)}`); t.consts.contracts.tombstoneDeposit || t.registry.createType("Balance") ]); } - function Yne(t, e) { - return Le(t, () => Xne(e).pipe(we(([r, n, i, s, o, a, c, u, f, p]) => ({ + function Jne(t, e) { + return Le(t, () => Zne(e).pipe(we(([r, n, i, s, o, a, c, u, f, p]) => ({ callBaseFee: r, contractFee: n, creationFee: i, @@ -34785,23 +34785,23 @@ ${gz(e, r)}`); transferFee: a })))); } - var Zne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Qne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - fees: Yne + fees: Jne }, Symbol.toStringTag, { value: "Module" })); - function Jne(t) { + function $ne(t) { return !Array.isArray(t); } - function Qne(t) { + function eie(t) { return t.stakeOf.entries().pipe(we((e) => e.map(([{ args: [r] }, n]) => [r, n]))); } - function $ne(t) { + function tie(t) { return t.votesOf.entries().pipe(we((e) => e.map(([{ args: [r] }, n]) => [r, n]))); } - function eie(t, e) { - return Qe([ - Qne(e), - $ne(e) + function rie(t, e) { + return $e([ + eie(e), + tie(e) ]).pipe(we(([r, n]) => { const i = []; return n.forEach(([s, o]) => { @@ -34812,84 +34812,84 @@ ${gz(e, r)}`); }), i; })); } - function tie(t) { + function nie(t) { return t.voting.entries().pipe(we((e) => e.map(([{ args: [r] }, n]) => [ r, - Jne(n) ? { stake: n.stake, votes: n.votes } : { stake: n[0], votes: n[1] } + $ne(n) ? { stake: n.stake, votes: n.votes } : { stake: n[0], votes: n[1] } ]))); } - function rie(t, e) { + function iie(t, e) { const r = e.query.elections || e.query.phragmenElection || e.query.electionsPhragmen; - return Le(t, () => r ? r.stakeOf ? eie(e, r) : tie(r) : xe([])); + return Le(t, () => r ? r.stakeOf ? rie(e, r) : nie(r) : _e([])); } - function nie(t, e) { + function sie(t, e) { return Le(t, (r) => e.derive.council.votes().pipe(we((n) => (n.find(([i]) => i.eq(r)) || [null, { stake: e.registry.createType("Balance"), votes: [] }])[1]))); } - var iie = /* @__PURE__ */ Gg("council"); - var sie = /* @__PURE__ */ Xg("council"); - var oie = /* @__PURE__ */ Zg("council"); - var aie = /* @__PURE__ */ Jg("council"); - var cie = /* @__PURE__ */ Qg("council"); - var uie = /* @__PURE__ */ Yg("council"); - var lie = /* @__PURE__ */ Kg("council"); - var fie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var oie = /* @__PURE__ */ Gg("council"); + var aie = /* @__PURE__ */ Xg("council"); + var cie = /* @__PURE__ */ Zg("council"); + var uie = /* @__PURE__ */ Jg("council"); + var lie = /* @__PURE__ */ Qg("council"); + var fie = /* @__PURE__ */ Yg("council"); + var hie = /* @__PURE__ */ Kg("council"); + var die = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasProposals: sie, - members: iie, - prime: lie, - proposal: oie, - proposalCount: aie, - proposalHashes: cie, - proposals: uie, - votes: rie, - votesOf: nie + hasProposals: aie, + members: oie, + prime: hie, + proposal: cie, + proposalCount: uie, + proposalHashes: lie, + proposals: fie, + votes: iie, + votesOf: sie }, Symbol.toStringTag, { value: "Module" })); - function hie(t) { - return Bt($t(":child_storage:default:", kn($t("crowdloan", (t.fundIndex || t.trieIndex).toU8a())))); + function pie(t) { + return Bt(Qt(":child_storage:default:", kn(Qt("crowdloan", (t.fundIndex || t.trieIndex).toU8a())))); } - function die(t, e) { - return Le(t, (r) => e.query.crowdloan.funds(r).pipe(we((n) => n.isSome ? hie(n.unwrap()) : null))); + function mie(t, e) { + return Le(t, (r) => e.query.crowdloan.funds(r).pipe(we((n) => n.isSome ? pie(n.unwrap()) : null))); } function Yk(t, e) { var i; const r = [], n = []; return e.filter(({ event: { data: [, s], method: o, section: a } }) => a === "crowdloan" && ["Contributed", "Withdrew"].includes(o) && s.eq(t)).reduce((s, { event: { data: [o], method: a } }) => (a === "Contributed" ? s.added.push(o.toHex()) : s.removed.push(o.toHex()), s), { added: r, blockHash: ((i = e.createdAtHash) == null ? void 0 : i.toHex()) || "-", removed: n }); } - var zy = 1e3; - function pie(t, e) { + var Vy = 1e3; + function gie(t, e) { let r = [], n = []; - return t.query.system.events().pipe(Oe((i) => { + return t.query.system.events().pipe(Pe((i) => { var o; const s = Yk(e, i); - return s.added.length || s.removed.length ? (r = r.concat(...s.added), n = n.concat(...s.removed), xe({ added: r, addedDelta: s.added, blockHash: ((o = i.createdAtHash) == null ? void 0 : o.toHex()) || "-", removed: n, removedDelta: s.removed })) : Gi; - }), Cr({ added: r, addedDelta: [], blockHash: "-", removed: n, removedDelta: [] })); + return s.added.length || s.removed.length ? (r = r.concat(...s.added), n = n.concat(...s.removed), _e({ added: r, addedDelta: s.added, blockHash: ((o = i.createdAtHash) == null ? void 0 : o.toHex()) || "-", removed: n, removedDelta: s.removed })) : Gi; + }), Qr({ added: r, addedDelta: [], blockHash: "-", removed: n, removedDelta: [] })); } - function mie(t, e) { - return t.query.system.events().pipe(Oe((r) => { + function yie(t, e) { + return t.query.system.events().pipe(Pe((r) => { var i; - return r.filter(({ event: { data: [s], method: o, section: a } }) => a === "crowdloan" && ["AllRefunded", "Dissolved", "PartiallyRefunded"].includes(o) && s.eq(e)).length ? xe(((i = r.createdAtHash) == null ? void 0 : i.toHex()) || "-") : Gi; - }), Cr("-")); + return r.filter(({ event: { data: [s], method: o, section: a } }) => a === "crowdloan" && ["AllRefunded", "Dissolved", "PartiallyRefunded"].includes(o) && s.eq(e)).length ? _e(((i = r.createdAtHash) == null ? void 0 : i.toHex()) || "-") : Gi; + }), Qr("-")); } - function gie(t, e) { - const r = new Xc(void 0); + function bie(t, e) { + const r = new Gc(void 0); return r.pipe( - Oe((n) => t.rpc.childstate.getKeysPaged(e, "0x", zy, n)), - Us((n) => { - Zc(() => { - n.length === zy ? r.next(n[zy - 1].toHex()) : r.complete(); + Pe((n) => t.rpc.childstate.getKeysPaged(e, "0x", Vy, n)), + Bs((n) => { + Xc(() => { + n.length === Vy ? r.next(n[Vy - 1].toHex()) : r.complete(); }); }), ml(), we((n) => zu(n)) ); } - function yie(t, e, r) { - return mie(t, e).pipe(Oe(() => St(t.rpc.childstate.getKeysPaged) ? gie(t, r) : t.rpc.childstate.getKeys(r, "0x")), we((n) => n.map((i) => i.toHex()))); + function wie(t, e, r) { + return yie(t, e).pipe(Pe(() => St(t.rpc.childstate.getKeysPaged) ? bie(t, r) : t.rpc.childstate.getKeys(r, "0x")), we((n) => n.map((i) => i.toHex()))); } - function bie(t, e, r) { - return Qe([ - yie(t, e, r), - pie(t, e) + function vie(t, e, r) { + return $e([ + wie(t, e, r), + gie(t, e) ]).pipe(we(([n, { added: i, blockHash: s, removed: o }]) => { const a = {}; return n.forEach((c) => { @@ -34904,40 +34904,40 @@ ${gz(e, r)}`); }; })); } - function wie(t, e) { - return Le(t, (r) => e.derive.crowdloan.childKey(r).pipe(Oe((n) => n ? bie(e, r, n) : xe({ blockHash: "-", contributorsHex: [] })))); + function xie(t, e) { + return Le(t, (r) => e.derive.crowdloan.childKey(r).pipe(Pe((n) => n ? vie(e, r, n) : _e({ blockHash: "-", contributorsHex: [] })))); } function Zk(t, e, r) { - return Qe(r.map((n) => t.rpc.childstate.getStorage(e, n))).pipe(we((n) => n.map((i) => t.registry.createType("Option", i)).map((i) => i.isSome ? t.registry.createType("Balance", i.unwrap()) : t.registry.createType("Balance")).reduce((i, s, o) => st(i, { [r[o]]: s }), {}))); + return $e(r.map((n) => t.rpc.childstate.getStorage(e, n))).pipe(we((n) => n.map((i) => t.registry.createType("Option", i)).map((i) => i.isSome ? t.registry.createType("Balance", i.unwrap()) : t.registry.createType("Balance")).reduce((i, s, o) => st(i, { [r[o]]: s }), {}))); } - function vie(t, e, r, n) { - return t.query.system.events().pipe(Oe((i) => { + function _ie(t, e, r, n) { + return t.query.system.events().pipe(Pe((i) => { const s = Yk(e, i), o = n.filter((a) => s.added.includes(a) || s.removed.includes(a)); return o.length ? Zk(t, r, o) : Gi; - }), Cr({})); + }), Qr({})); } - function xie(t, e, r, n) { - return Qe([ + function Eie(t, e, r, n) { + return $e([ Zk(t, r, n), - vie(t, e, r, n) + _ie(t, e, r, n) ]).pipe(we(([i, s]) => st({}, i, s))); } - function _ie(t, e) { - return Le(t, (r, n) => e.derive.crowdloan.childKey(r).pipe(Oe((i) => i && n.length ? xie(e, r, i, n) : xe({})))); + function Sie(t, e) { + return Le(t, (r, n) => e.derive.crowdloan.childKey(r).pipe(Pe((i) => i && n.length ? Eie(e, r, i, n) : _e({})))); } - var Eie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Mie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - childKey: die, - contributions: wie, - ownContributions: _ie + childKey: mie, + contributions: xie, + ownContributions: Sie }, Symbol.toStringTag, { value: "Module" })); - function Sie(t) { + function Aie(t) { return !!t.proposalHash; } - function Mie(t) { + function Tie(t) { return !!t.tally; } - function Y7(t, e, r, n) { + function X7(t, e, r, n) { for (; ; ) { const i = t.div(e), s = r.div(n); if (i.lt(s)) @@ -34952,20 +34952,20 @@ ${gz(e, r)}`); t = n, r = e, e = a, n = o; } } - function Aie(t, e, { votedAye: r, votedNay: n, votedTotal: i }) { - const s = c4(i); - return s.isZero() ? false : t.isSuperMajorityApprove ? Y7(n, s, r, e) : Y7(n, e, r, s); + function Nie(t, e, { votedAye: r, votedNay: n, votedTotal: i }) { + const s = a4(i); + return s.isZero() ? false : t.isSuperMajorityApprove ? X7(n, s, r, e) : X7(n, e, r, s); } - function Tie(t, e, r) { - return t.isSimpleMajority ? r.votedAye.gt(r.votedNay) : Aie(t, e, r); + function Iie(t, e, r) { + return t.isSimpleMajority ? r.votedAye.gt(r.votedNay) : Nie(t, e, r); } - function Nie(t) { + function Oie(t) { return t.reduce((e, r) => { const { balance: n, vote: i } = r, s = i.conviction.index === 0, o = n.muln(s ? 1 : i.conviction.index).divn(s ? 10 : 1); return i.isAye ? (e.allAye.push(r), e.voteCountAye++, e.votedAye.iadd(o)) : (e.allNay.push(r), e.voteCountNay++, e.votedNay.iadd(o)), e.voteCount++, e.votedTotal.iadd(o), e; }, { allAye: [], allNay: [], voteCount: 0, voteCountAye: 0, voteCountNay: 0, votedAye: new ct(0), votedNay: new ct(0), votedTotal: new ct(0) }); } - function Iie(t, e) { + function Pie(t, e) { const r = [], n = []; return e.forEach((i) => { i.vote.isAye ? r.push(i) : n.push(i); @@ -34980,35 +34980,35 @@ ${gz(e, r)}`); votedTotal: t.turnout }; } - function Oie(t, e, r) { - const n = Mie(e.status) ? Iie(e.status.tally, r) : Nie(r); + function kie(t, e, r) { + const n = Tie(e.status) ? Pie(e.status.tally, r) : Oie(r); return st({}, n, { - isPassing: Tie(e.status.threshold, t, n), + isPassing: Iie(e.status.threshold, t, n), votes: r }); } - function Pie(t) { + function Rie(t) { if (t.isNone) return null; const e = t.unwrap(); - return Sie(e) ? e : e.isOngoing ? e.asOngoing : null; + return Aie(e) ? e : e.isOngoing ? e.asOngoing : null; } function Ml(t) { - return t.isLegacy ? t.asLegacy.hash_.toHex() : t.isLookup ? t.asLookup.hash_.toHex() : t.isInline ? t.asInline.hash.toHex() : pr(t) ? Ft(t) ? t : p4(t) : Et(t) ? Bt(t) : t.toHex(); + return t.isLegacy ? t.asLegacy.hash_.toHex() : t.isLookup ? t.asLookup.hash_.toHex() : t.isInline ? t.asInline.hash.toHex() : pr(t) ? Ft(t) ? t : d4(t) : Et(t) ? Bt(t) : t.toHex(); } - function kie(t) { + function Cie(t) { return Ml(t.proposal || t.proposalHash); } - var Rie = p4("democrac"); - function Cie(t) { + var Die = d4("democrac"); + function Lie(t) { return t instanceof us; } - function Die(t) { + function Bie(t) { return t.isInline || t.isLegacy || t.isLookup; } - function Lie(t) { - return t.query.democracy.dispatchQueue().pipe(Oe((e) => Qe([ - xe(e), + function Uie(t) { + return t.query.democracy.dispatchQueue().pipe(Pe((e) => $e([ + _e(e), t.derive.democracy.preimages(e.map(([, r]) => r)) ])), we(([e, r]) => e.map(([n, i, s], o) => ({ at: n, @@ -35017,53 +35017,53 @@ ${gz(e, r)}`); index: s })))); } - function Bie(t) { - return t.derive.democracy.referendumsFinished().pipe(Oe(() => t.query.scheduler.agenda.keys()), Oe((e) => { + function jie(t) { + return t.derive.democracy.referendumsFinished().pipe(Pe(() => t.query.scheduler.agenda.keys()), Pe((e) => { const r = e.map(({ args: [n] }) => n); - return r.length ? Qe([ - xe(r), - t.query.scheduler.agenda.multi(r).pipe(Yt(() => xe(r.map(() => [])))) - ]) : xe([[], []]); + return r.length ? $e([ + _e(r), + t.query.scheduler.agenda.multi(r).pipe($t(() => _e(r.map(() => [])))) + ]) : _e([[], []]); })); } - function Uie(t) { - return Bie(t).pipe(Oe(([e, r]) => { + function Vie(t) { + return jie(t).pipe(Pe(([e, r]) => { const n = []; return e.forEach((i, s) => { (r[s] || []).filter((o) => o.isSome).forEach((o) => { const a = o.unwrap(); if (a.maybeId.isSome) { const c = a.maybeId.unwrap().toHex(); - if (c.startsWith(Rie)) { - const u = Cie(a.call) ? Die(a.call) ? Ml(a.call) : a.call.isHash ? a.call.asHash.toHex() : a.call.asValue.args[0].toHex() : a.call.args[0].toHex(); + if (c.startsWith(Die)) { + const u = Lie(a.call) ? Bie(a.call) ? Ml(a.call) : a.call.isHash ? a.call.asHash.toHex() : a.call.asValue.args[0].toHex() : a.call.args[0].toHex(); n.push({ at: i, imageHash: u, index: t.registry.createType("(u64, ReferendumIndex)", c)[1] }); } } }); - }), Qe([ - xe(n), - n.length ? t.derive.democracy.preimages(n.map(({ imageHash: i }) => i)) : xe([]) + }), $e([ + _e(n), + n.length ? t.derive.democracy.preimages(n.map(({ imageHash: i }) => i)) : _e([]) ]); }), we(([e, r]) => e.map((n, i) => st({ image: r[i] }, n)))); } - function jie(t, e) { + function zie(t, e) { return Le(t, () => { var r; - return St((r = e.query.scheduler) == null ? void 0 : r.agenda) ? Uie(e) : e.query.democracy.dispatchQueue ? Lie(e) : xe([]); + return St((r = e.query.scheduler) == null ? void 0 : r.agenda) ? Vie(e) : e.query.democracy.dispatchQueue ? Uie(e) : _e([]); }); } var Jk = [0, 1, 2, 4, 8, 16, 32]; - function Vie(t, e, { approved: r, end: n }) { + function Fie(t, e, { approved: r, end: n }) { return [ n, - r.isTrue && e.isAye || r.isFalse && e.isNay ? n.add((t.consts.democracy.voteLockingPeriod || t.consts.democracy.enactmentPeriod).muln(Jk[e.conviction.index])) : Jr + r.isTrue && e.isAye || r.isFalse && e.isNay ? n.add((t.consts.democracy.voteLockingPeriod || t.consts.democracy.enactmentPeriod).muln(Jk[e.conviction.index])) : Zr ]; } - function zie(t, [e, r], n) { - const { balance: i, vote: s } = r.asStandard, [o, a] = n.isFinished ? Vie(t, s, n.asFinished) : [Jr, Jr]; + function Hie(t, [e, r], n) { + const { balance: i, vote: s } = r.asStandard, [o, a] = n.isFinished ? Fie(t, s, n.asFinished) : [Zr, Zr]; return { balance: i, isDelegated: false, isFinished: n.isFinished, referendumEnd: o, referendumId: e, unlockAt: a, vote: s }; } - function Fie(t, { balance: e, conviction: r, target: n }) { + function qie(t, { balance: e, conviction: r, target: n }) { return t.derive.democracy.locks(n).pipe(we((i) => i.map(({ isFinished: s, referendumEnd: o, referendumId: a, unlockAt: c, vote: u }) => ({ balance: e, isDelegated: true, @@ -35074,15 +35074,15 @@ ${gz(e, r)}`); vote: t.registry.createType("Vote", { aye: u.isAye, conviction: r }) })))); } - function Hie(t, { votes: e }) { - return e.length ? t.query.democracy.referendumInfoOf.multi(e.map(([r]) => r)).pipe(we((r) => e.map((n, i) => [n, r[i].unwrapOr(null)]).filter((n) => !!n[1] && Ar(n[1].end) && n[0][1].isStandard).map(([n, i]) => zie(t, n, i)))) : xe([]); + function Wie(t, { votes: e }) { + return e.length ? t.query.democracy.referendumInfoOf.multi(e.map(([r]) => r)).pipe(we((r) => e.map((n, i) => [n, r[i].unwrapOr(null)]).filter((n) => !!n[1] && Ar(n[1].end) && n[0][1].isStandard).map(([n, i]) => Hie(t, n, i)))) : _e([]); } - function qie(t, e) { - return Le(t, (r) => e.query.democracy.votingOf ? e.query.democracy.votingOf(r).pipe(Oe((n) => n.isDirect ? Hie(e, n.asDirect) : n.isDelegating ? Fie(e, n.asDelegating) : xe([]))) : xe([])); + function Gie(t, e) { + return Le(t, (r) => e.query.democracy.votingOf ? e.query.democracy.votingOf(r).pipe(Pe((n) => n.isDirect ? Wie(e, n.asDirect) : n.isDelegating ? qie(e, n.asDelegating) : _e([]))) : _e([])); } - function Wie(t, e) { + function Kie(t, e) { if (e.isNone) - return xe(null); + return _e(null); const [r, n] = e.unwrap(); return t.derive.democracy.preimage(r).pipe(we((i) => ({ image: i, @@ -35090,22 +35090,22 @@ ${gz(e, r)}`); threshold: n }))); } - function Gie(t, e) { + function Xie(t, e) { return Le(t, () => { var r; - return (r = e.query.democracy) != null && r.nextExternal ? e.query.democracy.nextExternal().pipe(Oe((n) => Wie(e, n))) : xe(null); + return (r = e.query.democracy) != null && r.nextExternal ? e.query.democracy.nextExternal().pipe(Pe((n) => Kie(e, n))) : _e(null); }); } - function Kie(t) { + function Yie(t) { return t.ticket || t.deposit; } - function Xie(t) { + function Zie(t) { return (t.maybeTicket || t.deposit).unwrapOrDefault(); } - function Yie(t, e) { + function Jie(t, e) { return !!e && !t.query.democracy.dispatchQueue; } - function Z7(t, [e, r, n, i]) { + function Y7(t, [e, r, n, i]) { let s; try { s = t.registry.createType("Call", e.toU8a(true)); @@ -35114,22 +35114,22 @@ ${gz(e, r)}`); } return { at: i, balance: n, proposal: s, proposer: r }; } - function Zie(t, e) { + function Qie(t, e) { if (!e.isNone) { - if (Yie(t, e)) { + if (Jie(t, e)) { const r = e.unwrap(); if (r.isMissing) return; const { data: n, deposit: i, provider: s, since: o } = r.asAvailable; - return Z7(t, [n, s, i, o]); + return Y7(t, [n, s, i, o]); } - return Z7(t, e.unwrap()); + return Y7(t, e.unwrap()); } } - function Jie(t, [e, r, n]) { + function $ie(t, [e, r, n]) { if (!r) return; - const [i, s] = r.isUnrequested ? Kie(r.asUnrequested) : Xie(r.asRequested); + const [i, s] = r.isUnrequested ? Yie(r.asUnrequested) : Zie(r.asRequested); let o; if (n) try { @@ -35137,30 +35137,30 @@ ${gz(e, r)}`); } catch (a) { console.error(a); } - return { at: Jr, balance: s, proposal: o, proposalHash: e, proposer: i }; + return { at: Zr, balance: s, proposal: o, proposalHash: e, proposer: i }; } - function Qie(t, e) { + function ese(t, e) { const r = e.map((n) => Ml(n)); - return t.query.democracy.preimages.multi(r).pipe(we((n) => n.map((i) => Zie(t, i)))); + return t.query.democracy.preimages.multi(r).pipe(we((n) => n.map((i) => Qie(t, i)))); } - function $ie(t, e) { + function tse(t, e) { const r = e.map((i) => Ml(i)), n = t.registry.lookup.getTypeDef(t.query.preimage.preimageFor.creator.meta.type.asMap.key).type; - return t.query.preimage.statusFor.multi(r).pipe(Oe((i) => { + return t.query.preimage.statusFor.multi(r).pipe(Pe((i) => { const s = i.map((a) => a.unwrapOr(null)), o = s.map((a, c) => a ? n === "H256" ? r[c] : a.isRequested ? [r[c], a.asRequested.len.unwrapOr(0)] : [r[c], a.asUnrequested.len] : null).filter((a) => !!a); return t.query.preimage.preimageFor.multi(o).pipe(we((a) => { let c = -1; - return s.map((u, f) => u ? [r[f], u, a[++c].unwrapOr(null)] : [r[f], null, null]).map((u) => Jie(t, u)); + return s.map((u, f) => u ? [r[f], u, a[++c].unwrapOr(null)] : [r[f], null, null]).map((u) => $ie(t, u)); })); })); } - function ese(t, e) { - return Le(t, (r) => r.length ? St(e.query.democracy.preimages) ? Qie(e, r) : St(e.query.preimage.preimageFor) ? $ie(e, r) : xe([]) : xe([])); + function rse(t, e) { + return Le(t, (r) => r.length ? St(e.query.democracy.preimages) ? ese(e, r) : St(e.query.preimage.preimageFor) ? tse(e, r) : _e([]) : _e([])); } - var tse = /* @__PURE__ */ pa((t, e) => t.derive.democracy.preimages([e])); - function rse(t) { + var nse = /* @__PURE__ */ ha((t, e) => t.derive.democracy.preimages([e])); + function ise(t) { return St(t[1].mul); } - function nse([t, e, r]) { + function sse([t, e, r]) { return t.filter(([, , n], i) => { var s; return !!((s = r[i]) != null && s.isSome) && !n.isEmpty; @@ -35171,44 +35171,44 @@ ${gz(e, r)}`); imageHash: Ml(i), index: n, proposer: s - }, rse(a) ? { balance: a[1], seconds: a[0] } : { balance: a[0], seconds: a[1] }); + }, ise(a) ? { balance: a[1], seconds: a[0] } : { balance: a[0], seconds: a[1] }); }); } - function ise(t, e) { + function ose(t, e) { return Le(t, () => { var r; - return St((r = e.query.democracy) == null ? void 0 : r.publicProps) ? e.query.democracy.publicProps().pipe(Oe((n) => n.length ? Qe([ - xe(n), + return St((r = e.query.democracy) == null ? void 0 : r.publicProps) ? e.query.democracy.publicProps().pipe(Pe((n) => n.length ? $e([ + _e(n), e.derive.democracy.preimages(n.map(([, i]) => i)), e.query.democracy.depositOf.multi(n.map(([i]) => i)) - ]) : xe([[], [], []])), we(nse)) : xe([]); + ]) : _e([[], [], []])), we(sse)) : _e([]); }); } - function sse(t, e) { + function ase(t, e) { return Le(t, () => { var r; return (r = e.query.democracy) != null && r.lowestUnbaked ? e.queryMulti([ e.query.democracy.lowestUnbaked, e.query.democracy.referendumCount - ]).pipe(we(([n, i]) => i.gt(n) ? [...Array(i.sub(n).toNumber())].map((s, o) => n.addn(o)) : [])) : xe([]); + ]).pipe(we(([n, i]) => i.gt(n) ? [...Array(i.sub(n).toNumber())].map((s, o) => n.addn(o)) : [])) : _e([]); }); } - function ose(t, e) { - return Le(t, () => e.derive.democracy.referendumsActive().pipe(Oe((r) => r.length ? Qe([ - xe(r), + function cse(t, e) { + return Le(t, () => e.derive.democracy.referendumsActive().pipe(Pe((r) => r.length ? $e([ + _e(r), e.derive.democracy._referendumsVotes(r) - ]) : xe([[], []])), we(([r, n]) => r.map((i, s) => st({}, i, n[s]))))); + ]) : _e([[], []])), we(([r, n]) => r.map((i, s) => st({}, i, n[s]))))); } - function ase(t, e) { - return Le(t, () => e.derive.democracy.referendumIds().pipe(Oe((r) => r.length ? e.derive.democracy.referendumsInfo(r) : xe([])))); + function use(t, e) { + return Le(t, () => e.derive.democracy.referendumIds().pipe(Pe((r) => r.length ? e.derive.democracy.referendumsInfo(r) : _e([])))); } - function cse(t, e) { - return Le(t, () => e.derive.democracy.referendumIds().pipe(Oe((r) => e.query.democracy.referendumInfoOf.multi(r)), we((r) => r.map((n) => n.unwrapOr(null)).filter((n) => !!n && n.isFinished).map((n) => n.asFinished)))); + function lse(t, e) { + return Le(t, () => e.derive.democracy.referendumIds().pipe(Pe((r) => e.query.democracy.referendumInfoOf.multi(r)), we((r) => r.map((n) => n.unwrapOr(null)).filter((n) => !!n && n.isFinished).map((n) => n.asFinished)))); } - function use(t, e) { - return t.query.democracy.votersFor(e).pipe(Oe((r) => Qe([ - xe(r), - r.length ? t.query.democracy.voteOf.multi(r.map((n) => [e, n])) : xe([]), + function fse(t, e) { + return t.query.democracy.votersFor(e).pipe(Pe((r) => $e([ + _e(r), + r.length ? t.query.democracy.voteOf.multi(r.map((n) => [e, n])) : _e([]), t.derive.balances.votingBalances(r) ])), we(([r, n, i]) => r.map((s, o) => ({ accountId: s, @@ -35217,7 +35217,7 @@ ${gz(e, r)}`); vote: n[o] || t.registry.createType("Vote") })))); } - function lse(t, e) { + function hse(t, e) { return t.filter(([, r]) => r.isDirect).map(([r, n]) => [ r, n.asDirect.votes.filter(([i]) => i.eq(e)) @@ -35226,9 +35226,9 @@ ${gz(e, r)}`); isDelegating: false }, o.asStandard)), s), r), []); } - function fse(t, e) { + function dse(t, e) { return t.query.democracy.votingOf.entries().pipe(we((r) => { - const n = r.map(([{ args: [o] }, a]) => [o, a]), i = lse(n, e), s = n.filter(([, o]) => o.isDelegating).map(([o, a]) => [o, a.asDelegating]); + const n = r.map(([{ args: [o] }, a]) => [o, a]), i = hse(n, e), s = n.filter(([, o]) => o.isDelegating).map(([o, a]) => [o, a.asDelegating]); return s.forEach(([o, { balance: a, conviction: c, target: u }]) => { const f = s.find(([b]) => b.eq(u)), p = i.find(({ accountId: b }) => b.eq(f ? f[0] : u)); p && i.push({ @@ -35240,66 +35240,66 @@ ${gz(e, r)}`); }), i; })); } - function hse(t, e) { - return Le(t, (r) => Qe([ + function pse(t, e) { + return Le(t, (r) => $e([ e.derive.democracy.sqrtElectorate(), - St(e.query.democracy.votingOf) ? fse(e, r.index) : use(e, r.index) - ]).pipe(we(([n, i]) => Oie(n, r, i)))); + St(e.query.democracy.votingOf) ? dse(e, r.index) : fse(e, r.index) + ]).pipe(we(([n, i]) => kie(n, r, i)))); } - function dse(t, e) { - return Le(t, (r) => r.length ? Qe(r.map((n) => e.derive.democracy._referendumVotes(n))) : xe([])); + function mse(t, e) { + return Le(t, (r) => r.length ? $e(r.map((n) => e.derive.democracy._referendumVotes(n))) : _e([])); } - function pse(t, e) { + function gse(t, e) { return Le(t, (r, n) => { - const i = Pie(n); + const i = Rie(n); return i ? e.derive.democracy.preimage(i.proposal || i.proposalHash).pipe(we((s) => ({ image: s, - imageHash: kie(i), + imageHash: Cie(i), index: e.registry.createType("ReferendumIndex", r), status: i - }))) : xe(null); + }))) : _e(null); }); } - function mse(t, e) { - return Le(t, (r) => r.length ? e.query.democracy.referendumInfoOf.multi(r).pipe(Oe((n) => Qe(r.map((i, s) => e.derive.democracy._referendumInfo(i, n[s])))), we((n) => n.filter((i) => !!i))) : xe([])); + function yse(t, e) { + return Le(t, (r) => r.length ? e.query.democracy.referendumInfoOf.multi(r).pipe(Pe((n) => $e(r.map((i, s) => e.derive.democracy._referendumInfo(i, n[s])))), we((n) => n.filter((i) => !!i))) : _e([])); } - function gse(t, e) { - return Le(t, () => e.query.balances.totalIssuance().pipe(we(c4))); + function bse(t, e) { + return Le(t, () => e.query.balances.totalIssuance().pipe(we(a4))); } - var yse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var wse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _referendumInfo: pse, - _referendumVotes: hse, - _referendumsVotes: dse, - dispatchQueue: jie, - locks: qie, - nextExternal: Gie, - preimage: tse, - preimages: ese, - proposals: ise, - referendumIds: sse, - referendums: ose, - referendumsActive: ase, - referendumsFinished: cse, - referendumsInfo: mse, - sqrtElectorate: gse + _referendumInfo: gse, + _referendumVotes: pse, + _referendumsVotes: mse, + dispatchQueue: zie, + locks: Gie, + nextExternal: Xie, + preimage: nse, + preimages: rse, + proposals: ose, + referendumIds: ase, + referendums: cse, + referendumsActive: use, + referendumsFinished: lse, + referendumsInfo: yse, + sqrtElectorate: bse }, Symbol.toStringTag, { value: "Module" })); - function bse(t) { + function vse(t) { return !Array.isArray(t); } - function wse(t) { + function xse(t) { return Array.isArray(t); } - function J7(t) { - return bse(t) ? [t.who, t.stake] : t; + function Z7(t) { + return vse(t) ? [t.who, t.stake] : t; } - function vse(t) { - return wse(t) ? t[0] : t; + function _se(t) { + return xse(t) ? t[0] : t; } - function Q7([, t], [, e]) { + function J7([, t], [, e]) { return e.cmp(t); } - function xse(t, e) { + function Ese(t, e) { return e ? { candidacyBond: t.consts[e].candidacyBond, desiredRunnersUp: t.consts[e].desiredRunnersUp, @@ -35310,11 +35310,11 @@ ${gz(e, r)}`); votingBondFactor: t.consts[e].votingBondFactor } : {}; } - function _se(t) { + function Sse(t) { const [e] = t.registry.getModuleInstances(t.runtimeVersion.specName, "council") || ["council"], r = t.query.phragmenElection ? "phragmenElection" : t.query.electionsPhragmen ? "electionsPhragmen" : t.query.elections ? "elections" : null; return [t.query[e] ? e : "council", r]; } - function Ese(t, e, r) { + function Mse(t, e, r) { return t.queryMulti([ t.query[e].members, t.query[r].candidates, @@ -35322,75 +35322,75 @@ ${gz(e, r)}`); t.query[r].runnersUp ]); } - function Sse(t, e) { - return Qe([ + function Ase(t, e) { + return $e([ t.query[e].members(), - xe([]), - xe([]), - xe([]) + _e([]), + _e([]), + _e([]) ]); } - function Mse(t, e) { + function Tse(t, e) { return Le(t, () => { - const [r, n] = _se(e); - return (n ? Ese(e, r, n) : Sse(e, r)).pipe(we(([i, s, o, a]) => st({}, xse(e, n), { + const [r, n] = Sse(e); + return (n ? Mse(e, r, n) : Ase(e, r)).pipe(we(([i, s, o, a]) => st({}, Ese(e, n), { candidateCount: e.registry.createType("u32", s.length), - candidates: s.map(vse), - members: o.length ? o.map(J7).sort(Q7) : i.map((c) => [c, e.registry.createType("Balance")]), - runnersUp: a.map(J7).sort(Q7) + candidates: s.map(_se), + members: o.length ? o.map(Z7).sort(J7) : i.map((c) => [c, e.registry.createType("Balance")]), + runnersUp: a.map(Z7).sort(J7) }))); }); } - var Ase = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Nse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - info: Mse + info: Tse }, Symbol.toStringTag, { value: "Module" })); - function Tse([t, e, r, n]) { + function Ise([t, e, r, n]) { return e.forEach((i, s) => { const o = i.toString(), a = n[s], c = !r[s].isEmpty, u = t[o]; (!u || u.hasMessage !== c || !u.blockCount.eq(a)) && (t[o] = { blockCount: a, hasMessage: c, - isOnline: c || a.gt(Jr) + isOnline: c || a.gt(Zr) }); }), t; } - function Nse(t, e) { + function Ose(t, e) { return Le(t, () => { var r; - return (r = e.query.imOnline) != null && r.receivedHeartbeats ? e.derive.staking.overview().pipe(Oe(({ currentIndex: n, validators: i }) => Qe([ - xe({}), - xe(i), + return (r = e.query.imOnline) != null && r.receivedHeartbeats ? e.derive.staking.overview().pipe(Pe(({ currentIndex: n, validators: i }) => $e([ + _e({}), + _e(i), e.query.imOnline.receivedHeartbeats.multi(i.map((s, o) => [n, o])), e.query.imOnline.authoredBlocks.multi(i.map((s) => [n, s])) - ])), we(Tse)) : xe({}); + ])), we(Ise)) : _e({}); }); } - var Ise = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Pse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - receivedHeartbeats: Nse + receivedHeartbeats: Ose }, Symbol.toStringTag, { value: "Module" })); - var Ose = /* @__PURE__ */ Gg("membership"); - var Pse = /* @__PURE__ */ Xg("membership"); - var kse = /* @__PURE__ */ Zg("membership"); - var Rse = /* @__PURE__ */ Jg("membership"); - var Cse = /* @__PURE__ */ Qg("membership"); - var Dse = /* @__PURE__ */ Yg("membership"); - var Lse = /* @__PURE__ */ Kg("membership"); - var Bse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var kse = /* @__PURE__ */ Gg("membership"); + var Rse = /* @__PURE__ */ Xg("membership"); + var Cse = /* @__PURE__ */ Zg("membership"); + var Dse = /* @__PURE__ */ Jg("membership"); + var Lse = /* @__PURE__ */ Qg("membership"); + var Bse = /* @__PURE__ */ Yg("membership"); + var Use = /* @__PURE__ */ Kg("membership"); + var jse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasProposals: Pse, - members: Ose, - prime: Lse, - proposal: kse, - proposalCount: Rse, - proposalHashes: Cse, - proposals: Dse + hasProposals: Rse, + members: kse, + prime: Use, + proposal: Cse, + proposalCount: Dse, + proposalHashes: Lse, + proposals: Bse }, Symbol.toStringTag, { value: "Module" })); function Qk(t, e) { return t.isSome ? t.unwrap().some((r) => r.eq(e)) : false; } - function Use(t, e) { + function Vse(t, e) { const r = e.find(([n]) => n === t); if (r && r[1].isSome) { const [n, i] = r[1].unwrap(); @@ -35404,26 +35404,26 @@ ${gz(e, r)}`); } return null; } - function $7(t, e) { + function Q7(t, e) { return e.map((r) => { const n = r.find(([i]) => i === t); return n ? n[1] : null; }); } - function jse(t, [e, r, n, i, s, o, a, c]) { + function zse(t, [e, r, n, i, s, o, a, c]) { return s.isNone ? null : { - active: Use(t, e), + active: Vse(t, e), didUpdate: Qk(i, t), heads: a, id: t, info: st({ id: t }, s.unwrap()), pendingSwapId: o.unwrapOr(null), relayDispatchQueue: c, - retryCollators: $7(t, r), - selectedCollators: $7(t, n) + retryCollators: Q7(t, r), + selectedCollators: Q7(t, n) }; } - function Vse(t, e) { + function Fse(t, e) { return Le(t, (r) => e.query.registrar && e.query.parachains ? e.queryMulti([ e.query.registrar.active, e.query.registrar.retryQueue, @@ -35433,9 +35433,9 @@ ${gz(e, r)}`); [e.query.registrar.pendingSwap, r], [e.query.parachains.heads, r], [e.query.parachains.relayDispatchQueue, r] - ]).pipe(we((n) => jse(e.registry.createType("ParaId", r), n))) : xe(null)); + ]).pipe(we((n) => zse(e.registry.createType("ParaId", r), n))) : _e(null)); } - function zse([t, e, r, n, i]) { + function Hse([t, e, r, n, i]) { return t.map((s, o) => ({ didUpdate: Qk(e, s), id: s, @@ -35444,24 +35444,24 @@ ${gz(e, r)}`); relayDispatchQueueSize: r[o][0].toNumber() })); } - function Fse(t, e) { + function qse(t, e) { return Le(t, () => { var r; - return (r = e.query.registrar) != null && r.parachains && e.query.parachains ? e.query.registrar.parachains().pipe(Oe((n) => Qe([ - xe(n), + return (r = e.query.registrar) != null && r.parachains && e.query.parachains ? e.query.registrar.parachains().pipe(Pe((n) => $e([ + _e(n), e.query.parachains.didUpdate(), e.query.parachains.relayDispatchQueueSize.multi(n), e.query.registrar.paras.multi(n), e.query.registrar.pendingSwap.multi(n) - ])), we(zse)) : xe([]); + ])), we(Hse)) : _e([]); }); } - var Hse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Wse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - info: Vse, - overview: Fse + info: Fse, + overview: qse }, Symbol.toStringTag, { value: "Module" })); - function G8([t, e, r, n, i]) { + function W8([t, e, r, n, i]) { return { activeEra: e, activeEraStart: r, @@ -35470,7 +35470,7 @@ ${gz(e, r)}`); validatorCount: i }; } - function qse(t) { + function Gse(t) { return t.queryMulti([ t.query.session.currentIndex, t.query.staking.activeEra, @@ -35478,7 +35478,7 @@ ${gz(e, r)}`); t.query.staking.validatorCount ]).pipe(we(([e, r, n, i]) => { const { index: s, start: o } = r.unwrapOrDefault(); - return G8([ + return W8([ e, s, o, @@ -35487,8 +35487,8 @@ ${gz(e, r)}`); ]); })); } - function Wse(t) { - return t.query.session.currentIndex().pipe(we((e) => G8([ + function Kse(t) { + return t.query.session.currentIndex().pipe(we((e) => W8([ e, t.registry.createType("EraIndex"), t.registry.createType("Option"), @@ -35496,8 +35496,8 @@ ${gz(e, r)}`); t.registry.createType("u32") ]))); } - function Gse(t) { - return xe(G8([ + function Xse(t) { + return _e(W8([ t.registry.createType("SessionIndex", 1), t.registry.createType("EraIndex"), t.registry.createType("Option"), @@ -35505,10 +35505,10 @@ ${gz(e, r)}`); t.registry.createType("u32") ])); } - function Kse(t, e) { - return Le(t, () => e.query.session ? e.query.staking ? qse(e) : Wse(e) : Gse(e)); + function Yse(t, e) { + return Le(t, () => e.query.session ? e.query.staking ? Gse(e) : Kse(e) : Xse(e)); } - function Xse(t, e) { + function Zse(t, e) { return Le(t, () => e.derive.session.indexes().pipe(we((r) => { var s, o, a, c; const n = ((o = (s = e.consts) == null ? void 0 : s.babe) == null ? void 0 : o.epochDuration) || e.registry.createType("u64", 1), i = ((c = (a = e.consts) == null ? void 0 : a.staking) == null ? void 0 : c.sessionsPerEra) || e.registry.createType("SessionIndex", 1); @@ -35520,27 +35520,27 @@ ${gz(e, r)}`); }, r); }))); } - function K8(t) { + function G8(t) { return (e, r) => Le(e, () => r.derive.session.progress().pipe(we((n) => n[t]))); } - function Yse(t, e, [r, n, i, s]) { + function Jse(t, e, [r, n, i, s]) { const o = n.mul(e.sessionLength).iadd(i), a = r.sub(o), c = e.currentIndex.sub(s).imul(e.sessionLength).iadd(a); return st({ eraProgress: t.registry.createType("BlockNumber", c), sessionProgress: t.registry.createType("BlockNumber", a) }, e); } - function Zse(t) { + function Qse(t) { return t.derive.session.info().pipe(we((e) => st({ eraProgress: t.registry.createType("BlockNumber"), sessionProgress: t.registry.createType("BlockNumber") }, e))); } - function Jse(t) { - return t.derive.session.info().pipe(Oe((e) => { + function $se(t) { + return t.derive.session.info().pipe(Pe((e) => { var r; - return Qe([ - xe(e), + return $e([ + _e(e), (r = t.query.staking) != null && r.erasStartSessionIndex ? t.queryMulti([ t.query.babe.currentSlot, t.query.babe.epochIndex, @@ -35557,24 +35557,24 @@ ${gz(e, r)}`); [r, n, i, s && s.isSome ? s.unwrap() : t.registry.createType("SessionIndex", 1)] ])); } - function Qse(t, e) { - return Le(t, () => e.query.babe ? Jse(e).pipe(we(([r, n]) => Yse(e, r, n))) : Zse(e)); + function eoe(t, e) { + return Le(t, () => e.query.babe ? $se(e).pipe(we(([r, n]) => Jse(e, r, n))) : Qse(e)); } - var $se = /* @__PURE__ */ K8("eraLength"); - var eoe = /* @__PURE__ */ K8("eraProgress"); - var toe = /* @__PURE__ */ K8("sessionProgress"); - var roe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var toe = /* @__PURE__ */ G8("eraLength"); + var roe = /* @__PURE__ */ G8("eraProgress"); + var noe = /* @__PURE__ */ G8("sessionProgress"); + var ioe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - eraLength: $se, - eraProgress: eoe, - indexes: Kse, - info: Xse, - progress: Qse, - sessionProgress: toe + eraLength: toe, + eraProgress: roe, + indexes: Yse, + info: Zse, + progress: eoe, + sessionProgress: noe }, Symbol.toStringTag, { value: "Module" })); - function noe(t) { - return t.query.society.candidates().pipe(Oe((e) => Qe([ - xe(e), + function soe(t) { + return t.query.society.candidates().pipe(Pe((e) => $e([ + _e(e), t.query.society.suspendedCandidates.multi(e.map(({ who: r }) => r)) ])), we(([e, r]) => e.map(({ kind: n, value: i, who: s }, o) => ({ accountId: s, @@ -35583,7 +35583,7 @@ ${gz(e, r)}`); value: i })))); } - function ioe(t) { + function ooe(t) { return t.query.society.candidates.entries().pipe(we((e) => e.filter(([, r]) => r.isSome).map(([{ args: [r] }, n]) => [r, n.unwrap()]).map(([r, { bid: n, kind: i }]) => ({ accountId: r, isSuspended: false, @@ -35591,16 +35591,16 @@ ${gz(e, r)}`); value: n })))); } - function soe(t, e) { - return Le(t, () => e.query.society.suspendedCandidates && e.query.society.candidates.creator.meta.type.isPlain ? noe(e) : ioe(e)); + function aoe(t, e) { + return Le(t, () => e.query.society.suspendedCandidates && e.query.society.candidates.creator.meta.type.isPlain ? soe(e) : ooe(e)); } - function ooe(t, e) { - return Le(t, () => Qe([ + function coe(t, e) { + return Le(t, () => $e([ e.query.society.bids(), - e.query.society.defender ? e.query.society.defender() : xe(void 0), + e.query.society.defender ? e.query.society.defender() : _e(void 0), e.query.society.founder(), e.query.society.head(), - e.query.society.maxMembers ? e.query.society.maxMembers() : xe(void 0), + e.query.society.maxMembers ? e.query.society.maxMembers() : _e(void 0), e.query.society.pot() ]).pipe(we(([r, n, i, s, o, a]) => ({ bids: r, @@ -35612,12 +35612,12 @@ ${gz(e, r)}`); pot: a })))); } - function aoe(t, e) { + function uoe(t, e) { return Le(t, (r) => e.derive.society._members([r]).pipe(we(([n]) => n))); } - function coe(t, e) { - return Qe([ - xe(e), + function loe(t, e) { + return $e([ + _e(e), t.query.society.payouts.multi(e), t.query.society.strikes.multi(e), t.query.society.defenderVotes.multi(e), @@ -35633,12 +35633,12 @@ ${gz(e, r)}`); vouching: a[u].unwrapOr(void 0) })))); } - function uoe(t, e) { - return Qe([ - xe(e), + function foe(t, e) { + return $e([ + _e(e), t.query.society.members.multi(e), t.query.society.payouts.multi(e), - t.query.society.challengeRoundCount().pipe(Oe((r) => t.query.society.defenderVotes.multi(e.map((n) => [r, n])))), + t.query.society.challengeRoundCount().pipe(Pe((r) => t.query.society.defenderVotes.multi(e.map((n) => [r, n])))), t.query.society.suspendedMembers.multi(e) ]).pipe(we(([r, n, i, s, o]) => r.map((a, c) => n[c].isSome ? { accountId: a, @@ -35655,95 +35655,95 @@ ${gz(e, r)}`); vouching: f.vouching.unwrapOr(void 0) })))); } - function loe(t, e) { - return Le(t, (r) => e.query.society.members.creator.meta.type.isMap ? uoe(e, r) : coe(e, r)); + function hoe(t, e) { + return Le(t, (r) => e.query.society.members.creator.meta.type.isMap ? foe(e, r) : loe(e, r)); } - function foe(t, e) { - return Le(t, () => e.query.society.members.creator.meta.type.isMap ? e.query.society.members.keys().pipe(Oe((r) => e.derive.society._members(r.map(({ args: [n] }) => n)))) : e.query.society.members().pipe(Oe((r) => e.derive.society._members(r)))); + function doe(t, e) { + return Le(t, () => e.query.society.members.creator.meta.type.isMap ? e.query.society.members.keys().pipe(Pe((r) => e.derive.society._members(r.map(({ args: [n] }) => n)))) : e.query.society.members().pipe(Pe((r) => e.derive.society._members(r)))); } - var hoe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var poe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _members: loe, - candidates: soe, - info: ooe, - member: aoe, - members: foe + _members: hoe, + candidates: aoe, + info: coe, + member: uoe, + members: doe }, Symbol.toStringTag, { value: "Module" })); - var doe = { + var moe = { withDestination: true, withLedger: true, withNominations: true, withPrefs: true }; - function poe(t) { + function goe(t) { return t.reduce((e, { era: r, value: n }) => { const i = r.toString(); - return e[i] = (e[i] || Jr).add(n.unwrap()), e; + return e[i] = (e[i] || Zr).add(n.unwrap()), e; }, {}); } - function moe(t, e, r) { - const n = Object.entries(poe(((e == null ? void 0 : e.unlocking) || []).filter(({ era: i }) => i.unwrap().gt(r.activeEra)))).map(([i, s]) => ({ + function yoe(t, e, r) { + const n = Object.entries(goe(((e == null ? void 0 : e.unlocking) || []).filter(({ era: i }) => i.unwrap().gt(r.activeEra)))).map(([i, s]) => ({ remainingEras: new ct(i).isub(r.activeEra), value: t.registry.createType("Balance", s) })); return n.length ? n : void 0; } - function goe(t, e, r) { + function boe(t, e, r) { return t.registry.createType("Balance", ((e == null ? void 0 : e.unlocking) || []).reduce((n, { era: i, value: s }) => i.unwrap().gt(r.currentEra) ? n : n.iadd(s.unwrap()), new ct(0))); } - function yoe(t, e, r, n) { + function woe(t, e, r, n) { return st({}, r, n, { - redeemable: goe(t, n.stakingLedger, e), - unlocking: moe(t, n.stakingLedger, e) + redeemable: boe(t, n.stakingLedger, e), + unlocking: yoe(t, n.stakingLedger, e) }); } - function boe(t, e) { - return Le(t, (r, n = doe) => e.derive.session.info().pipe(Oe((i) => Qe([ + function voe(t, e) { + return Le(t, (r, n = moe) => e.derive.session.info().pipe(Pe((i) => $e([ e.derive.staking.keysMulti(r), e.derive.staking.queryMulti(r, n) - ]).pipe(we(([s, o]) => o.map((a, c) => yoe(e, i, s[c], a))))))); + ]).pipe(we(([s, o]) => o.map((a, c) => woe(e, i, s[c], a))))))); } - var woe = /* @__PURE__ */ pa((t, e, r) => t.derive.staking.accounts([e], r)); - function voe(t, e) { - return Le(t, () => e.derive.session.indexes().pipe(Oe(({ activeEra: r }) => e.query.staking.erasRewardPoints(r)))); - } - var xoe = { withController: true, withExposure: true, withPrefs: true }; + var xoe = /* @__PURE__ */ ha((t, e, r) => t.derive.staking.accounts([e], r)); function _oe(t, e) { + return Le(t, () => e.derive.session.indexes().pipe(Pe(({ activeEra: r }) => e.query.staking.erasRewardPoints(r)))); + } + var Eoe = { withController: true, withExposure: true, withPrefs: true }; + function Soe(t, e) { return zu([t, e.filter((r) => !t.find((n) => n.eq(r)))]); } - function Eoe(t, e) { - return Le(t, (r = xoe) => e.derive.staking.validators().pipe(Oe(({ nextElected: n, validators: i }) => e.derive.staking.queryMulti(_oe(n, i), r).pipe(we((s) => ({ + function Moe(t, e) { + return Le(t, (r = Eoe) => e.derive.staking.validators().pipe(Pe(({ nextElected: n, validators: i }) => e.derive.staking.queryMulti(Soe(n, i), r).pipe(we((s) => ({ info: s, nextElected: n, validators: i })))))); } - function X8(t, e, r) { + function K8(t, e, r) { const n = `${t}-${e.toString()}`; return [ n, - r ? void 0 : Wf.get(n) + r ? void 0 : qf.get(n) ]; } function $k(t, e, r) { - return r ? [] : e.map((i) => Wf.get(`${t}-${i.toString()}`)).filter((i) => !!i); + return r ? [] : e.map((i) => qf.get(`${t}-${i.toString()}`)).filter((i) => !!i); } - function cm(t, e, r) { - return !e && Wf.set(t, r), r; + function um(t, e, r) { + return !e && qf.set(t, r), r; } function eR(t, e, r) { - return !e && r.forEach((n) => Wf.set(`${t}-${n.era.toString()}`, n)), r; + return !e && r.forEach((n) => qf.set(`${t}-${n.era.toString()}`, n)), r; } function tR(t, e, r) { return t.map((n) => e.find(({ era: i }) => n.eq(i)) || r.find(({ era: i }) => n.eq(i))).filter((n) => !!n); } - var Soe = 14; - function Moe(t, e) { - const r = T1(t, Soe); + var Aoe = 14; + function Toe(t, e) { + const r = N1(t, Aoe); let n = 0; - const i = new Xc(r[n]); - return i.pipe(Oe(e), Us(() => { - Zc(() => { + const i = new Gc(r[n]); + return i.pipe(Pe(e), Bs(() => { + Xc(() => { n++, n === r.length ? i.complete() : i.next(r[n]); }); }), ml(), we(zu)); @@ -35751,20 +35751,20 @@ ${gz(e, r)}`); function rR(t, e) { return t.filter((r) => !e.some(({ era: n }) => r.eq(n))); } - function b0(t) { - return (e, r) => Le(e, (n = false) => r.derive.staking.erasHistoric(n).pipe(Oe((i) => r.derive.staking[t](i, n)))); - } function w0(t) { - return (e, r) => Le(e, (n, i = false) => r.derive.staking.erasHistoric(i).pipe(Oe((s) => r.derive.staking[t](n, s, i)))); + return (e, r) => Le(e, (n = false) => r.derive.staking.erasHistoric(n).pipe(Pe((i) => r.derive.staking[t](i, n)))); } - function Y8(t) { + function v0(t) { + return (e, r) => Le(e, (n, i = false) => r.derive.staking.erasHistoric(i).pipe(Pe((s) => r.derive.staking[t](n, s, i)))); + } + function X8(t) { return (e, r) => Le(e, (n) => r.derive.staking[t](n, true)); } - function Z8(t) { - return (e, r) => Le(e, (n, i) => n.length ? Moe(n, (s) => Qe(s.map((o) => r.derive.staking[t](o, i)))) : xe([])); + function Y8(t) { + return (e, r) => Le(e, (n, i) => n.length ? Toe(n, (s) => $e(s.map((o) => r.derive.staking[t](o, i)))) : _e([])); } - var Aoe = "eraExposure"; - function Toe(t, e) { + var Noe = "eraExposure"; + function Ioe(t, e) { const r = {}, n = {}; return e.forEach(([i, s]) => { const o = i.args[1].toString(); @@ -35774,7 +35774,7 @@ ${gz(e, r)}`); }); }), { era: t, nominators: r, validators: n }; } - function Noe(t, e) { + function Ooe(t, e) { const r = {}, n = {}; return e.forEach(([i, s]) => { if (s.isSome) { @@ -35786,81 +35786,81 @@ ${gz(e, r)}`); } }), { era: t, nominators: r, validators: n }; } - function Ioe(t, e) { + function Poe(t, e) { return Le(t, (r, n = false) => { - const [i, s] = X8(Aoe, r, n); - return s ? xe(s) : e.query.staking.erasStakersPaged ? e.query.staking.erasStakersPaged.entries(r).pipe(we((o) => cm(i, n, Noe(r, o)))) : e.query.staking.erasStakersClipped.entries(r).pipe(we((o) => cm(i, n, Toe(r, o)))); + const [i, s] = K8(Noe, r, n); + return s ? _e(s) : e.query.staking.erasStakersPaged ? e.query.staking.erasStakersPaged.entries(r).pipe(we((o) => um(i, n, Ooe(r, o)))) : e.query.staking.erasStakersClipped.entries(r).pipe(we((o) => um(i, n, Ioe(r, o)))); }); } - var Ooe = /* @__PURE__ */ Y8("_eraExposure"); - var Poe = /* @__PURE__ */ Z8("_eraExposure"); - var koe = /* @__PURE__ */ b0("_erasExposure"); - function Roe(t, e) { - return Le(t, (r) => Qe([ + var koe = /* @__PURE__ */ X8("_eraExposure"); + var Roe = /* @__PURE__ */ Y8("_eraExposure"); + var Coe = /* @__PURE__ */ w0("_erasExposure"); + function Doe(t, e) { + return Le(t, (r) => $e([ e.query.staking.activeEra(), - e.consts.staking.historyDepth ? xe(e.consts.staking.historyDepth) : e.query.staking.historyDepth() + e.consts.staking.historyDepth ? _e(e.consts.staking.historyDepth) : e.query.staking.historyDepth() ]).pipe(we(([n, i]) => { const s = [], o = i.toNumber(), a = n.unwrapOrDefault().index; let c = a; - for (; c.gte(Jr) && s.length < o; ) + for (; c.gte(Zr) && s.length < o; ) (c !== a || r === true) && s.push(e.registry.createType("EraIndex", c)), c = c.sub(bl); return s.reverse(); }))); } - var e_ = "eraPoints"; - function Coe({ individual: t }) { - return [...t.entries()].filter(([, e]) => e.gt(Jr)).reduce((e, [r, n]) => (e[r.toString()] = n, e), {}); + var $7 = "eraPoints"; + function Loe({ individual: t }) { + return [...t.entries()].filter(([, e]) => e.gt(Zr)).reduce((e, [r, n]) => (e[r.toString()] = n, e), {}); } - function Doe(t, e) { + function Boe(t, e) { return t.map((r, n) => ({ era: r, eraPoints: e[n].total, - validators: Coe(e[n]) + validators: Loe(e[n]) })); } - function Loe(t, e) { + function Uoe(t, e) { return Le(t, (r, n) => { if (!r.length) - return xe([]); - const i = $k(e_, r, n), s = rR(r, i); - return s.length ? e.query.staking.erasRewardPoints.multi(s).pipe(we((o) => tR(r, i, eR(e_, n, Doe(s, o))))) : xe(i); + return _e([]); + const i = $k($7, r, n), s = rR(r, i); + return s.length ? e.query.staking.erasRewardPoints.multi(s).pipe(we((o) => tR(r, i, eR($7, n, Boe(s, o))))) : _e(i); }); } - var Boe = /* @__PURE__ */ b0("_erasPoints"); - var Uoe = "eraPrefs"; - function joe(t, e) { + var joe = /* @__PURE__ */ w0("_erasPoints"); + var Voe = "eraPrefs"; + function zoe(t, e) { const r = {}; return e.forEach(([n, i]) => { r[n.args[1].toString()] = i; }), { era: t, validators: r }; } - function Voe(t, e) { + function Foe(t, e) { return Le(t, (r, n) => { - const [i, s] = X8(Uoe, r, n); - return s ? xe(s) : e.query.staking.erasValidatorPrefs.entries(r).pipe(we((o) => cm(i, n, joe(r, o)))); + const [i, s] = K8(Voe, r, n); + return s ? _e(s) : e.query.staking.erasValidatorPrefs.entries(r).pipe(we((o) => um(i, n, zoe(r, o)))); }); } - var zoe = /* @__PURE__ */ Y8("_eraPrefs"); - var Foe = /* @__PURE__ */ Z8("_eraPrefs"); - var Hoe = /* @__PURE__ */ b0("_erasPrefs"); - var t_ = "eraRewards"; - function qoe(t, e) { + var Hoe = /* @__PURE__ */ X8("_eraPrefs"); + var qoe = /* @__PURE__ */ Y8("_eraPrefs"); + var Woe = /* @__PURE__ */ w0("_erasPrefs"); + var e_ = "eraRewards"; + function Goe(t, e) { return t.map((r, n) => ({ era: r, eraReward: e[n].unwrapOrDefault() })); } - function Woe(t, e) { + function Koe(t, e) { return Le(t, (r, n) => { if (!r.length) - return xe([]); - const i = $k(t_, r, n), s = rR(r, i); - return s.length ? e.query.staking.erasValidatorReward.multi(s).pipe(we((o) => tR(r, i, eR(t_, n, qoe(s, o))))) : xe(i); + return _e([]); + const i = $k(e_, r, n), s = rR(r, i); + return s.length ? e.query.staking.erasValidatorReward.multi(s).pipe(we((o) => tR(r, i, eR(e_, n, Goe(s, o))))) : _e(i); }); } - var Goe = /* @__PURE__ */ b0("_erasRewards"); - var Koe = "eraSlashes"; - function Xoe(t, e, r) { + var Xoe = /* @__PURE__ */ w0("_erasRewards"); + var Yoe = "eraSlashes"; + function Zoe(t, e, r) { const n = {}, i = {}; return e.forEach(([s, o]) => { n[s.args[1].toString()] = o.unwrap(); @@ -35868,37 +35868,37 @@ ${gz(e, r)}`); i[s.args[1].toString()] = o.unwrapOrDefault()[1]; }), { era: t, nominators: n, validators: i }; } - function Yoe(t, e) { + function Joe(t, e) { return Le(t, (r, n) => { - const [i, s] = X8(Koe, r, n); - return s ? xe(s) : Qe([ + const [i, s] = K8(Yoe, r, n); + return s ? _e(s) : $e([ e.query.staking.nominatorSlashInEra.entries(r), e.query.staking.validatorSlashInEra.entries(r) - ]).pipe(we(([o, a]) => cm(i, n, Xoe(r, o, a)))); + ]).pipe(we(([o, a]) => um(i, n, Zoe(r, o, a)))); }); } - var Zoe = /* @__PURE__ */ Y8("_eraSlashes"); - var Joe = /* @__PURE__ */ Z8("_eraSlashes"); - var Qoe = /* @__PURE__ */ b0("_erasSlashes"); - function $oe(t, e, r) { + var Qoe = /* @__PURE__ */ X8("_eraSlashes"); + var $oe = /* @__PURE__ */ Y8("_eraSlashes"); + var eae = /* @__PURE__ */ w0("_erasSlashes"); + function tae(t, e, r) { const n = (e.find(([s]) => s.eq(t)) || [void 0, []])[1], i = r.unwrapOr([]); return { nextSessionIds: Array.isArray(i) ? i : [...i.values()], sessionIds: Array.isArray(n) ? n : [...n.values()] }; } - var eae = /* @__PURE__ */ pa((t, e) => t.derive.staking.keysMulti([e])); - function tae(t, e) { - return Le(t, (r) => r.length ? e.query.session.queuedKeys().pipe(Oe((n) => { + var rae = /* @__PURE__ */ ha((t, e) => t.derive.staking.keysMulti([e])); + function nae(t, e) { + return Le(t, (r) => r.length ? e.query.session.queuedKeys().pipe(Pe((n) => { var i; - return Qe([ - xe(n), - (i = e.consts.session) != null && i.dedupKeyPrefix ? e.query.session.nextKeys.multi(r.map((s) => [e.consts.session.dedupKeyPrefix, s])) : Qe(r.map((s) => e.query.session.nextKeys(s))) + return $e([ + _e(n), + (i = e.consts.session) != null && i.dedupKeyPrefix ? e.query.session.nextKeys.multi(r.map((s) => [e.consts.session.dedupKeyPrefix, s])) : $e(r.map((s) => e.query.session.nextKeys(s))) ]); - }), we(([n, i]) => r.map((s, o) => $oe(s, n, i[o])))) : xe([])); + }), we(([n, i]) => r.map((s, o) => tae(s, n, i[o])))) : _e([])); } - function rae(t, e) { - return Le(t, () => Qe([ + function iae(t, e) { + return Le(t, () => $e([ e.derive.session.indexes(), e.derive.staking.validators() ]).pipe(we(([r, { nextElected: n, validators: i }]) => st({}, r, { @@ -35906,68 +35906,68 @@ ${gz(e, r)}`); validators: i })))); } - function nae(t, e) { - return Le(t, (r, n, i) => n.length ? Qe([ - Qe(n.map((s) => e.query.staking.erasStakersClipped(s, r))), - Qe(n.map((s) => e.query.staking.erasStakers(s, r))) - ]).pipe(we(([s, o]) => n.map((a, c) => ({ clipped: s[c], era: a, exposure: o[c] })))) : xe([])); - } - var iae = /* @__PURE__ */ pa((t, e, r) => t.derive.staking._ownExposures(e, [r], true)); - var sae = /* @__PURE__ */ w0("_ownExposures"); - function oae(t, e) { - return Le(t, (r, n, i) => n.length ? Qe([ - Qe(n.map((s) => e.query.staking.validatorSlashInEra(s, r))), - Qe(n.map((s) => e.query.staking.nominatorSlashInEra(s, r))) + function sae(t, e) { + return Le(t, (r, n, i) => n.length ? $e([ + $e(n.map((s) => e.query.staking.erasStakersClipped(s, r))), + $e(n.map((s) => e.query.staking.erasStakers(s, r))) + ]).pipe(we(([s, o]) => n.map((a, c) => ({ clipped: s[c], era: a, exposure: o[c] })))) : _e([])); + } + var oae = /* @__PURE__ */ ha((t, e, r) => t.derive.staking._ownExposures(e, [r], true)); + var aae = /* @__PURE__ */ v0("_ownExposures"); + function cae(t, e) { + return Le(t, (r, n, i) => n.length ? $e([ + $e(n.map((s) => e.query.staking.validatorSlashInEra(s, r))), + $e(n.map((s) => e.query.staking.nominatorSlashInEra(s, r))) ]).pipe(we(([s, o]) => n.map((a, c) => ({ era: a, total: s[c].isSome ? s[c].unwrap()[1] : o[c].unwrapOrDefault() - })))) : xe([])); + })))) : _e([])); } - var aae = /* @__PURE__ */ pa((t, e, r) => t.derive.staking._ownSlashes(e, [r], true)); - var cae = /* @__PURE__ */ w0("_ownSlashes"); - function uae(t) { + var uae = /* @__PURE__ */ ha((t, e, r) => t.derive.staking._ownSlashes(e, [r], true)); + var lae = /* @__PURE__ */ v0("_ownSlashes"); + function fae(t) { return typeof t.isSome == "boolean" ? t.unwrapOr(null) : t; } - function lae(t, e, r, n, i, s, o) { + function hae(t, e, r, n, i, s, o) { return { accountId: t, controllerId: (e == null ? void 0 : e.unwrapOr(null)) || null, exposure: s, nominators: r.isSome ? r.unwrap().targets : [], - rewardDestination: uae(n), + rewardDestination: fae(n), stakingLedger: o.unwrapOrDefault(), stashId: t, validatorPrefs: i }; } - function fae(t, e, { withLedger: r = false }) { + function dae(t, e, { withLedger: r = false }) { const n = e.filter((s) => r && !!s && s.isSome).map((s) => s.unwrap()), i = t.registry.createType("Option"); - return (n.length ? Qe(n.map((s) => t.query.staking.ledger(s))) : xe([])).pipe(we((s) => { + return (n.length ? $e(n.map((s) => t.query.staking.ledger(s))) : _e([])).pipe(we((s) => { let o = -1; return e.map((a) => a && a.isSome && s[++o] || i); })); } - function hae(t, e, r, { withController: n, withDestination: i, withExposure: s, withLedger: o, withNominations: a, withPrefs: c }) { + function pae(t, e, r, { withController: n, withDestination: i, withExposure: s, withLedger: o, withNominations: a, withPrefs: c }) { const u = t.registry.createType("Option"), f = t.registry.createType("RewardDestination"), p = t.registry.createType("Exposure"), b = t.registry.createType("ValidatorPrefs"); - return Qe([ - n || o ? Qe(e.map((E) => t.query.staking.bonded(E))) : xe(e.map(() => null)), - a ? Qe(e.map((E) => t.query.staking.nominators(E))) : xe(e.map(() => u)), - i ? Qe(e.map((E) => t.query.staking.payee(E))) : xe(e.map(() => f)), - c ? Qe(e.map((E) => t.query.staking.validators(E))) : xe(e.map(() => b)), - s ? Qe(e.map((E) => t.query.staking.erasStakers(r, E))) : xe(e.map(() => p)) + return $e([ + n || o ? $e(e.map((E) => t.query.staking.bonded(E))) : _e(e.map(() => null)), + a ? $e(e.map((E) => t.query.staking.nominators(E))) : _e(e.map(() => u)), + i ? $e(e.map((E) => t.query.staking.payee(E))) : _e(e.map(() => f)), + c ? $e(e.map((E) => t.query.staking.validators(E))) : _e(e.map(() => b)), + s ? $e(e.map((E) => t.query.staking.erasStakers(r, E))) : _e(e.map(() => p)) ]); } - function dae(t, e, r, n) { - return hae(t, r, e, n).pipe(Oe(([i, s, o, a, c]) => fae(t, i, n).pipe(we((u) => r.map((f, p) => lae(f, i[p], s[p], o[p], a[p], c[p], u[p])))))); + function mae(t, e, r, n) { + return pae(t, r, e, n).pipe(Pe(([i, s, o, a, c]) => dae(t, i, n).pipe(we((u) => r.map((f, p) => hae(f, i[p], s[p], o[p], a[p], c[p], u[p])))))); } - var pae = /* @__PURE__ */ pa((t, e, r) => t.derive.staking.queryMulti([e], r)); - function mae(t, e) { - return Le(t, (r, n) => e.derive.session.indexes().pipe(Oe(({ activeEra: i }) => { + var gae = /* @__PURE__ */ ha((t, e, r) => t.derive.staking.queryMulti([e], r)); + function yae(t, e) { + return Le(t, (r, n) => e.derive.session.indexes().pipe(Pe(({ activeEra: i }) => { const s = r.map((o) => e.registry.createType("AccountId", o)); - return s.length ? dae(e, i, s, n) : xe([]); + return s.length ? mae(e, i, s, n) : _e([]); }))); } - function gae(t, e) { + function bae(t, e) { return Le(t, (r, n, i = false) => { const s = r.map((o) => e.registry.createType("AccountId", o).toString()); return e.derive.staking._erasExposure(n, i).pipe(we((o) => s.map((a) => o.map(({ era: c, nominators: u, validators: f }) => { @@ -35978,11 +35978,11 @@ ${gz(e, r)}`); })))); }); } - function yae(t, e) { - return Le(t, (r, n = false) => e.derive.staking.erasHistoric(n).pipe(Oe((i) => e.derive.staking._stakerExposures(r, i, n)))); - } - var bae = /* @__PURE__ */ pa((t, e, r) => t.derive.staking.stakerExposures([e], r)); function wae(t, e) { + return Le(t, (r, n = false) => e.derive.staking.erasHistoric(n).pipe(Pe((i) => e.derive.staking._stakerExposures(r, i, n)))); + } + var vae = /* @__PURE__ */ ha((t, e, r) => t.derive.staking.stakerExposures([e], r)); + function xae(t, e) { return Le(t, (r, n, i) => { const s = e.registry.createType("AccountId", r).toString(); return e.derive.staking._erasPoints(n, i).pipe(we((o) => o.map(({ era: a, eraPoints: c, validators: u }) => ({ @@ -35992,40 +35992,40 @@ ${gz(e, r)}`); })))); }); } - var vae = /* @__PURE__ */ w0("_stakerPoints"); - function xae(t, e) { + var _ae = /* @__PURE__ */ v0("_stakerPoints"); + function Eae(t, e) { return Le(t, (r, n, i) => e.query.staking.erasValidatorPrefs.multi(n.map((s) => [s, r])).pipe(we((s) => s.map((o, a) => ({ era: n[a], validatorPrefs: o }))))); } - var _ae = /* @__PURE__ */ w0("_stakerPrefs"); + var Sae = /* @__PURE__ */ v0("_stakerPrefs"); function nR(t) { return t ? t.legacyClaimedRewards || t.claimedRewards : []; } - function Eae(t, e, [r, n, i], s) { + function Mae(t, e, [r, n, i], s) { return s.map(({ era: o, isEmpty: a, isValidator: c, nominating: u, validators: f }) => { - const { eraPoints: p, validators: b } = r.find((F) => F.era.eq(o)) || { eraPoints: Jr, validators: {} }, { eraReward: E } = i.find((F) => F.era.eq(o)) || { eraReward: t.registry.createType("Balance") }, { validators: _ } = n.find((F) => F.era.eq(o)) || { validators: {} }, N = {}, k = e.toString(); + const { eraPoints: p, validators: b } = r.find((F) => F.era.eq(o)) || { eraPoints: Zr, validators: {} }, { eraReward: E } = i.find((F) => F.era.eq(o)) || { eraReward: t.registry.createType("Balance") }, { validators: _ } = n.find((F) => F.era.eq(o)) || { validators: {} }, N = {}, k = e.toString(); return Object.entries(f).forEach(([F, L]) => { var I, H, X; - const D = b[F] || Jr, q = ((I = _[F]) == null ? void 0 : I.commission.unwrap()) || Jr, W = L.total ? (H = L.total) == null ? void 0 : H.unwrap() : L.pageTotal ? (X = L.pageTotal) == null ? void 0 : X.unwrap() : Jr; - let z = Jr, T; + const D = b[F] || Zr, q = ((I = _[F]) == null ? void 0 : I.commission.unwrap()) || Zr, W = L.total ? (H = L.total) == null ? void 0 : H.unwrap() : L.pageTotal ? (X = L.pageTotal) == null ? void 0 : X.unwrap() : Zr; + let z = Zr, T; if (!(W.isZero() || D.isZero() || p.isZero())) { z = E.mul(D).div(p); - const V = q.mul(z).div(fd); + const V = q.mul(z).div(ld); let S; if (F === k) if (L.own) S = L.own.unwrap(); else { const d = L.others.find(({ who: l }) => l.eq(F)); - S = d ? d.value.unwrap() : Jr; + S = d ? d.value.unwrap() : Zr; } else { const d = L.others.find(({ who: l }) => l.eq(k)); - S = d ? d.value.unwrap() : Jr; + S = d ? d.value.unwrap() : Zr; } - T = z.sub(V).imul(S).div(W).iadd(F === k ? V : Jr); + T = z.sub(V).imul(S).div(W).iadd(F === k ? V : Zr); } N[F] = { total: t.registry.createType("Balance", z), @@ -36041,7 +36041,7 @@ ${gz(e, r)}`); }; }); } - function Sae(t) { + function Aae(t) { return t.reduce(([e, r], n) => { const i = []; return r.push(i), n.forEach(({ validators: s }) => Object.keys(s).forEach((o) => { @@ -36049,7 +36049,7 @@ ${gz(e, r)}`); })), [e, r]; }, [[], []]); } - function Mae(t, e, r) { + function Tae(t, e, r) { const n = []; Object.keys(r.validators).forEach((i) => { const s = t.indexOf(i); @@ -36061,30 +36061,30 @@ ${gz(e, r)}`); delete r.validators[i]; }); } - function Aae(t, e, { rewards: r, stakingLedger: n }) { + function Nae(t, e, { rewards: r, stakingLedger: n }) { const i = t.filter((a) => !nR(n).some((c) => c.eq(a))), s = e.map(([a]) => a), o = e.map(([, a]) => a); - return r.filter(({ isEmpty: a }) => !a).filter((a) => i.some((c) => a.era.eq(c)) ? (Mae(s, o, a), true) : false).filter(({ validators: a }) => Object.keys(a).length !== 0).map((a) => st({}, a, { + return r.filter(({ isEmpty: a }) => !a).filter((a) => i.some((c) => a.era.eq(c)) ? (Tae(s, o, a), true) : false).filter(({ validators: a }) => Object.keys(a).length !== 0).map((a) => st({}, a, { nominators: a.nominating.filter((c) => a.validators[c.validatorId]) })); } - function Tae(t, e) { - return Le(t, (r, n = false) => Qe([ + function Iae(t, e) { + return Le(t, (r, n = false) => $e([ e.derive.staking._erasPoints(r, n), e.derive.staking._erasPrefs(r, n), e.derive.staking._erasRewards(r, n) ])); } - function Nae(t, e) { - return Le(t, (r, n, i = false) => Qe([ + function Oae(t, e) { + return Le(t, (r, n, i = false) => $e([ e.derive.staking.queryMulti(r, { withLedger: true }), e.derive.staking._stakerExposures(r, n, i), e.derive.staking._stakerRewardsEras(n, i) - ]).pipe(Oe(([s, o, a]) => { - const c = s.map(({ stakingLedger: p, stashId: b }, E) => !b || !p ? [] : Eae(e, b, a, o[E])); + ]).pipe(Pe(([s, o, a]) => { + const c = s.map(({ stakingLedger: p, stashId: b }, E) => !b || !p ? [] : Mae(e, b, a, o[E])); if (i) - return xe(c); - const [u, f] = Sae(c); - return e.derive.staking.queryMulti(u, { withLedger: true }).pipe(we((p) => s.map(({ stakingLedger: b }, E) => Aae(n, f[E].map((_) => [ + return _e(c); + const [u, f] = Aae(c); + return e.derive.staking.queryMulti(u, { withLedger: true }).pipe(we((p) => s.map(({ stakingLedger: b }, E) => Nae(n, f[E].map((_) => [ _, p.find((N) => N.accountId.eq(_)) ]).filter((_) => !!_[1]), { @@ -36093,14 +36093,14 @@ ${gz(e, r)}`); })))); }))); } - var Iae = /* @__PURE__ */ pa((t, e, r) => t.derive.staking.erasHistoric(r).pipe(Oe((n) => t.derive.staking._stakerRewards([e], n, r)))); - function Oae(t, e) { - return Le(t, (r, n) => r.length && n.length ? e.derive.staking._stakerRewards(r, n, false) : xe([])); + var Pae = /* @__PURE__ */ ha((t, e, r) => t.derive.staking.erasHistoric(r).pipe(Pe((n) => t.derive.staking._stakerRewards([e], n, r)))); + function kae(t, e) { + return Le(t, (r, n) => r.length && n.length ? e.derive.staking._stakerRewards(r, n, false) : _e([])); } - function Pae(t, e) { - return Le(t, (r, n = false) => e.derive.staking.erasHistoric(n).pipe(Oe((i) => e.derive.staking.stakerRewardsMultiEras(r, i)))); + function Rae(t, e) { + return Le(t, (r, n = false) => e.derive.staking.erasHistoric(n).pipe(Pe((i) => e.derive.staking.stakerRewardsMultiEras(r, i)))); } - function kae(t, e) { + function Cae(t, e) { return Le(t, (r, n, i) => { const s = e.registry.createType("AccountId", r).toString(); return e.derive.staking._erasSlashes(n, i).pipe(we((o) => o.map(({ era: a, nominators: c, validators: u }) => ({ @@ -36109,8 +36109,8 @@ ${gz(e, r)}`); })))); }); } - var Rae = /* @__PURE__ */ w0("_stakerSlashes"); - function Cae(t) { + var Dae = /* @__PURE__ */ v0("_stakerSlashes"); + function Lae(t) { let e = Date.now(); return t.query.system.events().pipe(we((r) => (e = r.filter(({ event: n, phase: i }) => { try { @@ -36118,32 +36118,32 @@ ${gz(e, r)}`); } catch { return false; } - }) ? Date.now() : e, e)), Cr(e), qg({ skipTimeout: true })); + }) ? Date.now() : e, e)), Qr(e), qg({ skipTimeout: true })); } - function Dae(t, e) { - return Le(t, () => Cae(e).pipe(Oe(() => e.query.staking.validators.keys()), we((r) => r.map(({ args: [n] }) => n).filter((n) => n)))); + function Bae(t, e) { + return Le(t, () => Lae(e).pipe(Pe(() => e.query.staking.validators.keys()), we((r) => r.map(({ args: [n] }) => n).filter((n) => n)))); } - function Lae(t, e) { + function Uae(t, e) { return Le(t, () => e.query.staking.erasStakers ? e.derive.session.indexes().pipe( - Oe(({ currentEra: r }) => e.query.staking.erasStakers.keys(r)), + Pe(({ currentEra: r }) => e.query.staking.erasStakers.keys(r)), we((r) => r.map(({ args: [, n] }) => n)) ) : e.query.staking.currentElected()); } - function Bae(t, e) { - return Le(t, () => Qe([ - e.query.session ? e.query.session.validators() : xe([]), - e.query.staking ? e.derive.staking.nextElected() : xe([]) + function jae(t, e) { + return Le(t, () => $e([ + e.query.session ? e.query.session.validators() : _e([]), + e.query.staking ? e.derive.staking.nextElected() : _e([]) ]).pipe(we(([r, n]) => ({ nextElected: n.length ? n : r, validators: r })))); } - var Uae = { withController: true, withPrefs: true }; - function jae(t, e) { - return Le(t, (r = Uae) => Qe([ + var Vae = { withController: true, withPrefs: true }; + function zae(t, e) { + return Le(t, (r = Vae) => $e([ e.derive.staking.validators(), e.derive.staking.stashes() - ]).pipe(Oe(([{ nextElected: n }, i]) => { + ]).pipe(Pe(([{ nextElected: n }, i]) => { const s = n.map((a) => a.toString()), o = i.filter((a) => !s.includes(a.toString())); return e.derive.staking.queryMulti(o, r).pipe(we((a) => ({ info: a, @@ -36151,77 +36151,77 @@ ${gz(e, r)}`); }))); }))); } - var Vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - _eraExposure: Ioe, - _eraPrefs: Voe, - _eraSlashes: Yoe, - _erasExposure: Poe, - _erasPoints: Loe, - _erasPrefs: Foe, - _erasRewards: Woe, - _erasSlashes: Joe, - _ownExposures: nae, - _ownSlashes: oae, - _stakerExposures: gae, - _stakerPoints: wae, - _stakerPrefs: xae, - _stakerRewards: Nae, - _stakerRewardsEras: Tae, - _stakerSlashes: kae, - account: woe, - accounts: boe, - currentPoints: voe, - electedInfo: Eoe, - eraExposure: Ooe, - eraPrefs: zoe, - eraSlashes: Zoe, - erasExposure: koe, - erasHistoric: Roe, - erasPoints: Boe, - erasPrefs: Hoe, - erasRewards: Goe, - erasSlashes: Qoe, - keys: eae, - keysMulti: tae, - nextElected: Lae, - overview: rae, - ownExposure: iae, - ownExposures: sae, - ownSlash: aae, - ownSlashes: cae, - query: pae, - queryMulti: mae, - stakerExposure: bae, - stakerExposures: yae, - stakerPoints: vae, - stakerPrefs: _ae, - stakerRewards: Iae, - stakerRewardsMulti: Pae, - stakerRewardsMultiEras: Oae, - stakerSlashes: Rae, - stashes: Dae, - validators: Bae, - waitingInfo: jae + _eraExposure: Poe, + _eraPrefs: Foe, + _eraSlashes: Joe, + _erasExposure: Roe, + _erasPoints: Uoe, + _erasPrefs: qoe, + _erasRewards: Koe, + _erasSlashes: $oe, + _ownExposures: sae, + _ownSlashes: cae, + _stakerExposures: bae, + _stakerPoints: xae, + _stakerPrefs: Eae, + _stakerRewards: Oae, + _stakerRewardsEras: Iae, + _stakerSlashes: Cae, + account: xoe, + accounts: voe, + currentPoints: _oe, + electedInfo: Moe, + eraExposure: koe, + eraPrefs: Hoe, + eraSlashes: Qoe, + erasExposure: Coe, + erasHistoric: Doe, + erasPoints: joe, + erasPrefs: Woe, + erasRewards: Xoe, + erasSlashes: eae, + keys: rae, + keysMulti: nae, + nextElected: Uae, + overview: iae, + ownExposure: oae, + ownExposures: aae, + ownSlash: uae, + ownSlashes: lae, + query: gae, + queryMulti: yae, + stakerExposure: vae, + stakerExposures: wae, + stakerPoints: _ae, + stakerPrefs: Sae, + stakerRewards: Pae, + stakerRewardsMulti: Rae, + stakerRewardsMultiEras: kae, + stakerSlashes: Dae, + stashes: Bae, + validators: jae, + waitingInfo: zae }, Symbol.toStringTag, { value: "Module" })); - var zae = /* @__PURE__ */ Gg("technicalCommittee"); - var Fae = /* @__PURE__ */ Xg("technicalCommittee"); - var Hae = /* @__PURE__ */ Zg("technicalCommittee"); - var qae = /* @__PURE__ */ Jg("technicalCommittee"); - var Wae = /* @__PURE__ */ Qg("technicalCommittee"); - var Gae = /* @__PURE__ */ Yg("technicalCommittee"); - var Kae = /* @__PURE__ */ Kg("technicalCommittee"); - var Xae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Hae = /* @__PURE__ */ Gg("technicalCommittee"); + var qae = /* @__PURE__ */ Xg("technicalCommittee"); + var Wae = /* @__PURE__ */ Zg("technicalCommittee"); + var Gae = /* @__PURE__ */ Jg("technicalCommittee"); + var Kae = /* @__PURE__ */ Qg("technicalCommittee"); + var Xae = /* @__PURE__ */ Yg("technicalCommittee"); + var Yae = /* @__PURE__ */ Kg("technicalCommittee"); + var Zae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasProposals: Fae, - members: zae, - prime: Kae, - proposal: Hae, - proposalCount: qae, - proposalHashes: Wae, - proposals: Gae + hasProposals: qae, + members: Hae, + prime: Yae, + proposal: Wae, + proposalCount: Gae, + proposalHashes: Kae, + proposals: Xae }, Symbol.toStringTag, { value: "Module" })); - function Yae(t, { allIds: e, allProposals: r, approvalIds: n, councilProposals: i, proposalCount: s }) { + function Jae(t, { allIds: e, allProposals: r, approvalIds: n, councilProposals: i, proposalCount: s }) { const o = [], a = [], c = i.filter(({ proposal: u }) => u && (t.tx.treasury.approveProposal.is(u) || t.tx.treasury.rejectProposal.is(u))); return e.forEach((u, f) => { if (r[f].isSome) { @@ -36230,78 +36230,78 @@ ${gz(e, r)}`); } }), { approvals: o, proposalCount: s, proposals: a }; } - function Zae(t, e, r) { + function Qae(t, e, r) { const n = [], i = e.toNumber(); for (let o = 0; o < i; o++) r.some((a) => a.eqn(o)) || n.push(t.registry.createType("ProposalIndex", o)); const s = [...n, ...r]; - return Qe([ + return $e([ t.query.treasury.proposals.multi(s), - t.derive.council ? t.derive.council.proposals() : xe([]) - ]).pipe(we(([o, a]) => Yae(t, { allIds: s, allProposals: o, approvalIds: r, councilProposals: a, proposalCount: e }))); + t.derive.council ? t.derive.council.proposals() : _e([]) + ]).pipe(we(([o, a]) => Jae(t, { allIds: s, allProposals: o, approvalIds: r, councilProposals: a, proposalCount: e }))); } - function Jae(t, e) { - return Le(t, () => e.query.treasury ? Qe([ + function $ae(t, e) { + return Le(t, () => e.query.treasury ? $e([ e.query.treasury.proposalCount(), e.query.treasury.approvals() - ]).pipe(Oe(([r, n]) => Zae(e, r, n))) : xe({ + ]).pipe(Pe(([r, n]) => Qae(e, r, n))) : _e({ approvals: [], proposalCount: e.registry.createType("ProposalIndex"), proposals: [] })); } - var Qae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var ece = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - proposals: Jae + proposals: $ae }, Symbol.toStringTag, { value: "Module" })); - function $ae(t, e) { - return Le(t, (r) => Qe([ + function tce(t, e) { + return Le(t, (r) => $e([ e.rpc.chain.getBlock(r), - e.queryAt(r).pipe(Oe((n) => n.system.events())) + e.queryAt(r).pipe(Pe((n) => n.system.events())) ]).pipe(we(([n, i]) => ({ block: n, events: i })))); } - var ece = 250; - var tce = new ct(6 * 1e3); + var rce = 250; + var nce = new ct(6 * 1e3); var iR = new ct(5); - var rce = new ct(5 * 60 * 1e3); + var ice = new ct(5 * 60 * 1e3); function sR(t, e) { return t.derive.balances.account(e).pipe(we(({ accountNonce: r }) => r)); } - function nce(t, e) { + function sce(t, e) { var r; return (r = t.rpc.system) != null && r.accountNextIndex ? t.rpc.system.accountNextIndex(e) : sR(t, e); } - function ice(t) { - return Qe([ - t.rpc.chain.getHeader().pipe(Oe((e) => e.parentHash.isEmpty ? xe(e) : t.rpc.chain.getHeader(e.parentHash).pipe(Yt(() => xe(e))))), - t.rpc.chain.getFinalizedHead().pipe(Oe((e) => t.rpc.chain.getHeader(e).pipe(Yt(() => xe(null))))) - ]).pipe(we(([e, r]) => !r || am(e).sub(am(r)).gt(iR) ? e : r)); + function oce(t) { + return $e([ + t.rpc.chain.getHeader().pipe(Pe((e) => e.parentHash.isEmpty ? _e(e) : t.rpc.chain.getHeader(e.parentHash).pipe($t(() => _e(e))))), + t.rpc.chain.getFinalizedHead().pipe(Pe((e) => t.rpc.chain.getHeader(e).pipe($t(() => _e(null))))) + ]).pipe(we(([e, r]) => !r || cm(e).sub(cm(r)).gt(iR) ? e : r)); } - function sce(t) { + function ace(t) { var r, n, i; const e = ((r = t.consts.babe) == null ? void 0 : r.expectedBlockTime) || ((n = t.consts.aura) == null ? void 0 : n.slotDuration) || ((i = t.consts.timestamp) == null ? void 0 : i.minimumPeriod.muln(2)); return e.isZero() ? void 0 : e; } - function oce(t, e) { - return (r, n, i) => Qe([ - Ar(n) ? sR(e, r) : n === -1 ? nce(e, r) : xe(e.registry.createType("Index", n)), - Ar(i) || rr(i) && i > 0 ? ice(e) : xe(null) + function cce(t, e) { + return (r, n, i) => $e([ + Ar(n) ? sR(e, r) : n === -1 ? sce(e, r) : _e(e.registry.createType("Index", n)), + Ar(i) || rr(i) && i > 0 ? oce(e) : _e(null) ]).pipe(we(([s, o]) => { var a, c; return { header: o, - mortalLength: Math.min(((c = (a = e.consts.system) == null ? void 0 : a.blockHashCount) == null ? void 0 : c.toNumber()) || ece, rce.div(sce(e) || tce).iadd(iR).toNumber()), + mortalLength: Math.min(((c = (a = e.consts.system) == null ? void 0 : a.blockHashCount) == null ? void 0 : c.toNumber()) || rce, ice.div(ace(e) || nce).iadd(iR).toNumber()), nonce: s }; })); } - var ace = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var uce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - events: $ae, - signingInfo: oce + events: tce, + signingInfo: cce }, Symbol.toStringTag, { value: "Module" })); - var oR = { accounts: Jre, alliance: ane, bagsList: gne, balances: One, bounties: Rne, chain: Kne, contracts: Zne, council: fie, crowdloan: Eie, democracy: yse, elections: Ase, imOnline: Ise, membership: Bse, parachains: Hse, session: roe, society: hoe, staking: Vae, technicalCommittee: Xae, treasury: Qae, tx: ace }; - var yu = { + var oR = { accounts: $re, alliance: une, bagsList: bne, balances: kne, bounties: Dne, chain: Yne, contracts: Qne, council: die, crowdloan: Mie, democracy: wse, elections: Nse, imOnline: Pse, membership: jse, parachains: Wse, session: ioe, society: poe, staking: Fae, technicalCommittee: Zae, treasury: ece, tx: uce }; + var gu = { allianceMotion: { instances: ["allianceMotion"], methods: [] @@ -36367,11 +36367,11 @@ ${gz(e, r)}`); methods: [] } }; - function cce(t, e, r) { + function lce(t, e, r) { return t.registry.getModuleInstances(e, r) || []; } - function r_(t, e, r) { - const n = {}, i = Object.keys(r), s = Object.keys(e.query), o = e.runtimeVersion.specName, a = (E) => s.includes(E), c = (E) => cce(e, o, E).some(a), u = (E) => (_) => E.some((N) => s.includes(N) && e.query[N][_]), f = (E) => Object.keys(r[E]), p = (E, _) => r[E][_](t, e), b = (E) => !yu[E] || yu[E].instances.some(a) && (!yu[E].methods.length || yu[E].methods.every(u(yu[E].instances))) || yu[E].withDetect && yu[E].instances.some(c); + function t_(t, e, r) { + const n = {}, i = Object.keys(r), s = Object.keys(e.query), o = e.runtimeVersion.specName, a = (E) => s.includes(E), c = (E) => lce(e, o, E).some(a), u = (E) => (_) => E.some((N) => s.includes(N) && e.query[N][_]), f = (E) => Object.keys(r[E]), p = (E, _) => r[E][_](t, e), b = (E) => !gu[E] || gu[E].instances.some(a) && (!gu[E].methods.length || gu[E].methods.every(u(gu[E].instances))) || gu[E].withDetect && gu[E].instances.some(c); for (let E = 0, _ = i.length; E < _; E++) { const N = i[E]; b(N) && Wg(n, N, f, p); @@ -36380,23 +36380,23 @@ ${gz(e, r)}`); } function aR(t, e, r = {}) { return { - ...r_(t, e, oR), - ...r_(t, e, r) + ...t_(t, e, oR), + ...t_(t, e, r) }; } - var uce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var fce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - createHeaderExtended: W8, + createHeaderExtended: q8, createSignedBlockExtended: Xk, derive: oR, getAvailableDerives: aR, lazyDeriveSection: Wg }, Symbol.toStringTag, { value: "Module" })); - var lce = /* @__PURE__ */ fn(uce); - var cR = /* @__PURE__ */ fn(wre); - var J8 = { name: "@polkadot/types-known", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - yl(J8, null, [Tg]); - var fce = {}; + var hce = /* @__PURE__ */ fn(fce); + var cR = /* @__PURE__ */ fn(xre); + var Z8 = { name: "@polkadot/types-known", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + yl(Z8, null, [Tg]); + var dce = {}; var uR = { AnchorData: { anchoredBlock: "u64", @@ -36461,7 +36461,7 @@ ${gz(e, r)}`); ] } }; - var n_ = { + var r_ = { ...uR, AccountInfo: "AccountInfoWithRefCount", Address: "LookupSource", @@ -36469,11 +36469,11 @@ ${gz(e, r)}`); Multiplier: "Fixed64", RefCount: "RefCountTo259" }; - var hce = [ + var pce = [ { minmax: [240, 243], types: { - ...n_, + ...r_, ProxyType: { _enum: [ "Any", @@ -36487,7 +36487,7 @@ ${gz(e, r)}`); }, { minmax: [244, 999], - types: { ...n_ } + types: { ...r_ } }, { minmax: [1e3, void 0], @@ -36504,7 +36504,7 @@ ${gz(e, r)}`); }, Weight: "WeightV1" }; - var Fy = { + var zy = { AccountInfo: "AccountInfoWithRefCount", Address: "LookupSource", CompactAssignments: "CompactAssignmentsWith16", @@ -36514,7 +36514,7 @@ ${gz(e, r)}`); LookupSource: "IndicesLookupSource", ValidatorPrefs: "ValidatorPrefsWithCommission" }; - var Ec = { + var xc = { AccountInfo: "AccountInfoWithRefCount", Address: "AccountId", CompactAssignments: "CompactAssignmentsWith16", @@ -36524,11 +36524,11 @@ ${gz(e, r)}`); LookupSource: "AccountId", ValidatorPrefs: "ValidatorPrefsWithCommission" }; - var dce = [ + var mce = [ { minmax: [1019, 1031], types: { - ...Fy, + ...zy, BalanceLock: "BalanceLockTo212", CompactAssignments: "CompactAssignmentsTo257", DispatchError: "DispatchErrorTo198", @@ -36550,7 +36550,7 @@ ${gz(e, r)}`); { minmax: [1032, 1042], types: { - ...Fy, + ...zy, BalanceLock: "BalanceLockTo212", CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", @@ -36570,7 +36570,7 @@ ${gz(e, r)}`); { minmax: [1043, 1045], types: { - ...Fy, + ...zy, BalanceLock: "BalanceLockTo212", CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", @@ -36590,7 +36590,7 @@ ${gz(e, r)}`); minmax: [1046, 1049], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -36607,7 +36607,7 @@ ${gz(e, r)}`); minmax: [1050, 1054], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -36624,7 +36624,7 @@ ${gz(e, r)}`); minmax: [1055, 1056], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -36640,7 +36640,7 @@ ${gz(e, r)}`); minmax: [1057, 1061], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -36653,7 +36653,7 @@ ${gz(e, r)}`); minmax: [1062, 2012], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", OpenTip: "OpenTipTo225", RefCount: "RefCountTo259" @@ -36663,7 +36663,7 @@ ${gz(e, r)}`); minmax: [2013, 2022], types: { ...ys, - ...Ec, + ...xc, CompactAssignments: "CompactAssignmentsTo257", RefCount: "RefCountTo259" } @@ -36672,7 +36672,7 @@ ${gz(e, r)}`); minmax: [2023, 2024], types: { ...ys, - ...Ec, + ...xc, RefCount: "RefCountTo259" } }, @@ -36680,7 +36680,7 @@ ${gz(e, r)}`); minmax: [2025, 2027], types: { ...ys, - ...Ec + ...xc } }, { @@ -36721,7 +36721,7 @@ ${gz(e, r)}`); } } ]; - var pce = [ + var gce = [ { minmax: [0, void 0], types: { @@ -36729,7 +36729,7 @@ ${gz(e, r)}`); } } ]; - var mce = [ + var yce = [ { minmax: [0, void 0], types: { @@ -36764,7 +36764,7 @@ ${gz(e, r)}`); LookupSource: "AccountId", ValidatorPrefs: "ValidatorPrefsWithCommission" }; - var gce = [ + var bce = [ { minmax: [0, 12], types: { @@ -36819,17 +36819,17 @@ ${gz(e, r)}`); } } ]; - var wh = { + var bh = { DispatchErrorModule: "DispatchErrorModuleU8", FullIdentification: "()", Keys: "SessionKeys7B", Weight: "WeightV1" }; - var yce = [ + var wce = [ { minmax: [0, 200], types: { - ...wh, + ...bh, AccountInfo: "AccountInfoWithDualRefCount", Address: "AccountId", LookupSource: "AccountId" @@ -36838,28 +36838,28 @@ ${gz(e, r)}`); { minmax: [201, 214], types: { - ...wh, + ...bh, AccountInfo: "AccountInfoWithDualRefCount" } }, { minmax: [215, 228], types: { - ...wh, + ...bh, Keys: "SessionKeys6" } }, { minmax: [229, 9099], types: { - ...wh, + ...bh, ...Mi("V0") } }, { minmax: [9100, 9105], types: { - ...wh, + ...bh, ...Mi("V1") } }, @@ -36870,13 +36870,13 @@ ${gz(e, r)}`); } } ]; - var bce = [ + var vce = [ { minmax: [0, void 0], types: {} } ]; - var i_ = { + var n_ = { DispatchErrorModule: "DispatchErrorModuleU8", TAssetBalance: "u128", ProxyType: { @@ -36892,12 +36892,12 @@ ${gz(e, r)}`); }, Weight: "WeightV1" }; - var wce = [ + var xce = [ { minmax: [0, 3], types: { DispatchError: "DispatchErrorPre6First", - ...i_, + ...n_, ...Mi("V0") } }, @@ -36905,7 +36905,7 @@ ${gz(e, r)}`); minmax: [4, 5], types: { DispatchError: "DispatchErrorPre6First", - ...i_, + ...n_, ...Mi("V1") } }, @@ -36923,7 +36923,7 @@ ${gz(e, r)}`); } } ]; - var s_ = { + var i_ = { DispatchErrorModule: "DispatchErrorModuleU8", TAssetBalance: "u128", ProxyType: { @@ -36939,12 +36939,12 @@ ${gz(e, r)}`); }, Weight: "WeightV1" }; - var vce = [ + var _ce = [ { minmax: [0, 3], types: { DispatchError: "DispatchErrorPre6First", - ...s_, + ...i_, ...Mi("V0") } }, @@ -36952,7 +36952,7 @@ ${gz(e, r)}`); minmax: [4, 5], types: { DispatchError: "DispatchErrorPre6First", - ...s_, + ...i_, ...Mi("V1") } }, @@ -36964,7 +36964,7 @@ ${gz(e, r)}`); } } ]; - var Sc = { + var _c = { CompactAssignments: "CompactAssignmentsWith16", DispatchErrorModule: "DispatchErrorModuleU8", RawSolution: "RawSolutionWith16", @@ -36974,7 +36974,7 @@ ${gz(e, r)}`); }, Weight: "WeightV1" }; - var vh = { + var wh = { AccountInfo: "AccountInfoWithRefCount", Address: "AccountId", CompactAssignments: "CompactAssignmentsWith16", @@ -36984,12 +36984,12 @@ ${gz(e, r)}`); RawSolution: "RawSolutionWith16", ValidatorPrefs: "ValidatorPrefsWithCommission" }; - var xce = [ + var Ece = [ { minmax: [1, 2], types: { - ...Sc, - ...vh, + ..._c, + ...wh, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -37002,8 +37002,8 @@ ${gz(e, r)}`); { minmax: [3, 22], types: { - ...Sc, - ...vh, + ..._c, + ...wh, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -37014,8 +37014,8 @@ ${gz(e, r)}`); { minmax: [23, 42], types: { - ...Sc, - ...vh, + ..._c, + ...wh, CompactAssignments: "CompactAssignmentsTo257", DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", @@ -37025,8 +37025,8 @@ ${gz(e, r)}`); { minmax: [43, 44], types: { - ...Sc, - ...vh, + ..._c, + ...wh, DispatchInfo: "DispatchInfoTo244", Heartbeat: "HeartbeatTo244", RefCount: "RefCountTo259" @@ -37035,28 +37035,28 @@ ${gz(e, r)}`); { minmax: [45, 47], types: { - ...Sc, - ...vh + ..._c, + ...wh } }, { minmax: [48, 49], types: { - ...Sc, + ..._c, AccountInfo: "AccountInfoWithDualRefCount" } }, { minmax: [50, 9099], types: { - ...Sc, + ..._c, ...Mi("V0") } }, { minmax: [9100, 9105], types: { - ...Sc, + ..._c, ...Mi("V1") } }, @@ -37067,7 +37067,7 @@ ${gz(e, r)}`); } } ]; - var o_ = { + var s_ = { DispatchErrorModule: "DispatchErrorModuleU8", TAssetBalance: "u128", ProxyType: { @@ -37083,12 +37083,12 @@ ${gz(e, r)}`); }, Weight: "WeightV1" }; - var _ce = [ + var Sce = [ { minmax: [0, 3], types: { DispatchError: "DispatchErrorPre6First", - ...o_, + ...s_, ...Mi("V0") } }, @@ -37096,7 +37096,7 @@ ${gz(e, r)}`); minmax: [4, 5], types: { DispatchError: "DispatchErrorPre6First", - ...o_, + ...s_, ...Mi("V1") } }, @@ -37114,20 +37114,20 @@ ${gz(e, r)}`); } } ]; - var Ece = { - "centrifuge-chain": hce, - kusama: dce, - node: pce, - "node-template": mce, - polkadot: gce, - rococo: yce, - shell: bce, - statemine: wce, - statemint: vce, - westend: xce, - westmint: _ce + var Mce = { + "centrifuge-chain": pce, + kusama: mce, + node: gce, + "node-template": yce, + polkadot: bce, + rococo: wce, + shell: vce, + statemine: xce, + statemint: _ce, + westend: Ece, + westmint: Sce }; - var Sce = [ + var Ace = [ [ 0, 1020, @@ -41983,7 +41983,7 @@ ${gz(e, r)}`); ] ] ]; - var Mce = [ + var Tce = [ [ 0, 0, @@ -45195,7 +45195,7 @@ ${gz(e, r)}`); ] ] ]; - var Ace = [ + var Nce = [ [ 214356, 4, @@ -50693,19 +50693,19 @@ ${gz(e, r)}`); ] ] ]; - var Tce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Ice = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - kusama: Sce, - polkadot: Mce, - westend: Ace + kusama: Ace, + polkadot: Tce, + westend: Nce }, Symbol.toStringTag, { value: "Module" })); - var Nce = { + var Oce = { westend: { genesisHash: ["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"] } }; - function Ice([t, e]) { - const r = PI.find((n) => n.network === t) || Nce[t]; + function Pce([t, e]) { + const r = PI.find((n) => n.network === t) || Oce[t]; if (!r) throw new Error(`Unable to find info for chain ${t}`); return { @@ -50718,15 +50718,15 @@ ${gz(e, r)}`); })) }; } - var Oce = Object.entries(Tce).map(Ice); - function Gf(t, e, r) { + var kce = Object.entries(Ice).map(Pce); + function Wf(t, e, r) { return r(t.toString(), e.toString()); } function sp(t = [], e) { return t.filter(({ minmax: [r, n] }) => (r == null || e >= r) && (n == null || e <= n)).reduce((r, { types: n }) => ({ ...r, ...n }), {}); } function lR({ knownTypes: t }, e, r) { - return Gf(e, r, (n, i) => { + return Wf(e, r, (n, i) => { var s, o, a, c, u, f; return { ...((a = (o = (s = t.typesBundle) == null ? void 0 : s.spec) == null ? void 0 : o[i]) == null ? void 0 : a.signedExtensions) ?? {}, @@ -50734,13 +50734,13 @@ ${gz(e, r)}`); }; }); } - function Q8({ knownTypes: t }, e, r, n) { + function J8({ knownTypes: t }, e, r, n) { const i = on(n).toNumber(); - return Gf(e, r, (s, o) => { + return Wf(e, r, (s, o) => { var a, c, u, f, p, b, E, _; return { - ...sp(Ece[o], i), - ...sp(fce[s], i), + ...sp(Mce[o], i), + ...sp(dce[s], i), ...sp((u = (c = (a = t.typesBundle) == null ? void 0 : a.spec) == null ? void 0 : c[o]) == null ? void 0 : u.types, i), ...sp((b = (p = (f = t.typesBundle) == null ? void 0 : f.chain) == null ? void 0 : p[s]) == null ? void 0 : b.types, i), ...((E = t.typesSpec) == null ? void 0 : E[o]) ?? {}, @@ -50750,13 +50750,13 @@ ${gz(e, r)}`); }); } function fR({ knownTypes: t }, e, r) { - return Gf(e, r, (n, i) => { + return Wf(e, r, (n, i) => { var s, o, a, c, u, f; return t.hasher || ((a = (o = (s = t.typesBundle) == null ? void 0 : s.chain) == null ? void 0 : o[n]) == null ? void 0 : a.hasher) || ((f = (u = (c = t.typesBundle) == null ? void 0 : c.spec) == null ? void 0 : u[i]) == null ? void 0 : f.hasher) || null; }); } - function iw({ knownTypes: t }, e, r) { - return Gf(e, r, (n, i) => { + function nw({ knownTypes: t }, e, r) { + return Wf(e, r, (n, i) => { var s, o, a, c, u, f; return { ...((a = (o = (s = t.typesBundle) == null ? void 0 : s.spec) == null ? void 0 : o[i]) == null ? void 0 : a.rpc) ?? {}, @@ -50765,7 +50765,7 @@ ${gz(e, r)}`); }); } function hR({ knownTypes: t }, e, r) { - return Gf(e, r, (n, i) => { + return Wf(e, r, (n, i) => { var s, o, a, c, u, f; return { ...((a = (o = (s = t.typesBundle) == null ? void 0 : s.spec) == null ? void 0 : o[i]) == null ? void 0 : a.runtime) ?? {}, @@ -50774,7 +50774,7 @@ ${gz(e, r)}`); }); } function dR({ knownTypes: t }, e, r) { - return Gf(e, r, (n, i) => { + return Wf(e, r, (n, i) => { var s, o, a, c, u, f; return { ...((a = (o = (s = t.typesBundle) == null ? void 0 : s.spec) == null ? void 0 : o[i]) == null ? void 0 : a.alias) ?? {}, @@ -50784,53 +50784,53 @@ ${gz(e, r)}`); }); } function pR(t, e) { - const r = Oce.find((n) => t.eq(n.genesisHash)); + const r = kce.find((n) => t.eq(n.genesisHash)); return r ? [ r.versions.reduce((n, i) => e.gt(i.blockNumber) ? i : n, void 0), r.versions.find((n) => e.lte(n.blockNumber)) ] : [void 0, void 0]; } - var Pce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Rce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, getSpecAlias: dR, getSpecExtensions: lR, getSpecHasher: fR, - getSpecRpc: iw, + getSpecRpc: nw, getSpecRuntime: hR, - getSpecTypes: Q8, + getSpecTypes: J8, getUpgradeVersion: pR, mapXcmTypes: Mi, - packageInfo: J8 + packageInfo: Z8 }, Symbol.toStringTag, { value: "Module" })); - var kce = /* @__PURE__ */ fn(Pce); - var mR = /* @__PURE__ */ fn(nz); - function Rce(t, e) { + var Cce = /* @__PURE__ */ fn(Rce); + var mR = /* @__PURE__ */ fn(sz); + function Dce(t, e) { return function(r) { - return [Wr(t, e)(r), Wr(eT(t, e))(r)]; + return [qr(t, e)(r), qr(eT(t, e))(r)]; }; } - function Cce() { + function Lce() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - return Hv.apply(void 0, lr([], ur(pl(t)))); + return Fv.apply(void 0, lr([], ur(pl(t)))); } - var Dce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Bce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - audit: Rv, + audit: kv, auditTime: rT, buffer: nT, bufferCount: iT, bufferTime: sT, bufferToggle: oT, bufferWhen: aT, - catchError: Yt, + catchError: $t, combineAll: lT, - combineLatest: Dv, - combineLatestAll: Cv, - combineLatestWith: Lv, + combineLatest: Cv, + combineLatestAll: Rv, + combineLatestWith: Dv, concat: hT, - concatAll: Ym, - concatMap: M1, + concatAll: Zm, + concatMap: A1, concatMapTo: fT, concatWith: dT, connect: Jm, @@ -50842,81 +50842,81 @@ ${gz(e, r)}`); delayWhen: Qm, dematerialize: bT, distinct: wT, - distinctUntilChanged: ca, + distinctUntilChanged: ec, distinctUntilKeyChanged: vT, elementAt: xT, endWith: _T, every: ET, exhaust: ST, - exhaustAll: jv, + exhaustAll: Uv, exhaustMap: $m, expand: MT, - filter: Wr, - finalize: Vv, + filter: qr, + finalize: jv, find: AT, findIndex: NT, - first: A1, + first: T1, flatMap: CT, groupBy: IT, - ignoreElements: Bv, + ignoreElements: Lv, isEmpty: OT, last: PT, map: we, - mapTo: Uv, + mapTo: Bv, materialize: kT, max: RT, - merge: Fv, + merge: zv, mergeAll: Jd, mergeMap: Cn, mergeMapTo: DT, - mergeScan: zf, - mergeWith: iu, + mergeScan: t0, + mergeWith: nu, min: LT, multicast: eg, observeOn: Yd, - onErrorResumeNext: tz, + onErrorResumeNext: nz, pairwise: UT, - partition: Rce, + partition: Dce, pluck: jT, publish: VT, publishBehavior: zT, publishLast: FT, publishReplay: tg, - race: Cce, - raceWith: Hv, + race: Lce, + raceWith: Fv, reduce: Vf, refCount: Wd, repeat: HT, repeatWhen: qT, retry: WT, retryWhen: GT, - sample: qv, + sample: Hv, sampleTime: KT, - scan: t0, + scan: r0, sequenceEqual: XT, share: gl, - shareReplay: qt, + shareReplay: Wt, single: YT, skip: ZT, skipLast: JT, skipUntil: QT, - skipWhile: Wv, - startWith: Cr, + skipWhile: qv, + startWith: Qr, subscribeOn: Zd, switchAll: $T, - switchMap: Oe, + switchMap: Pe, switchMapTo: eN, switchScan: tN, - take: sa, - takeLast: zv, + take: ia, + takeLast: Vv, takeUntil: rN, takeWhile: nN, - tap: Us, - throttle: Gv, + tap: Bs, + throttle: Wv, throttleTime: iN, throwIfEmpty: e0, timeInterval: sN, - timeout: Iv, + timeout: Nv, timeoutWith: oN, timestamp: aN, toArray: ml, @@ -50925,18 +50925,18 @@ ${gz(e, r)}`); windowTime: lN, windowToggle: fN, windowWhen: hN, - withLatestFrom: Kv, + withLatestFrom: Gv, zip: pN, zipAll: dN, zipWith: mN }, Symbol.toStringTag, { value: "Module" })); - var $8 = /* @__PURE__ */ fn(Dce); - var xh = {}; - var a_; - function Lce() { - if (a_) - return xh; - a_ = 1, xh.__esModule = true, xh.default = void 0; + var Q8 = /* @__PURE__ */ fn(Bce); + var vh = {}; + var o_; + function Uce() { + if (o_) + return vh; + o_ = 1, vh.__esModule = true, vh.default = void 0; var t = cR; const e = (n) => n.replace(/_(\w)/g, (i, s) => s.toUpperCase()); let r = class extends t.GenericEvent { @@ -50957,16 +50957,16 @@ ${gz(e, r)}`); } } }; - return xh.default = r, xh; + return vh.default = r, vh; } - var c_; - function Bce() { - if (c_) - return mh; - c_ = 1; + var a_; + function jce() { + if (a_) + return ph; + a_ = 1; var t = MP; - mh.__esModule = true, mh.default = void 0; - var e = t(mY()), r = lce, n = cR, i = kce, s = Sg, o = mR, a = $8, c = t(Lce()); + ph.__esModule = true, ph.default = void 0; + var e = t(yY()), r = hce, n = cR, i = Cce, s = Sg, o = mR, a = Q8, c = t(Uce()); function u(E, _) { var N = Object.keys(E); if (Object.getOwnPropertySymbols) { @@ -51233,91 +51233,91 @@ ${gz(e, r)}`); return D.pipe((0, a.mergeMap)((W) => q(W), F)); } }; - return mh.default = b, mh; + return ph.default = b, ph; } - var Uce = MP; + var Vce = MP; Ag.__esModule = true; Ag.default = void 0; - var jce = Uce(Bce()); - var Vce = jce.default; - Ag.default = Vce; - var um = { name: "@polkadot/api", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; - yl(um, null, [yY, TP, J8, gY, Tg]); + var zce = Vce(jce()); + var Fce = zce.default; + Ag.default = Fce; + var lm = { name: "@polkadot/api", path: import_meta && import_meta.url ? new URL(import_meta.url).pathname.substring(0, new URL(import_meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "10.13.1" }; + yl(lm, null, [wY, TP, Z8, bY, Tg]); var Xl = new Uint8Array([161, 35, 3, 33, 0]); - var lm = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]); - var zce = 32; - var u_ = 64; - var Fce = 32; - var _h = lm.length; - function Hce(t, e, r) { - const n = Array.isArray(r) || r === void 0 ? r : [r], i = Q4(e, t, n), s = i.subarray(0, lm.length); - if (!Pn(s, lm)) + var fm = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]); + var Hce = 32; + var c_ = 64; + var qce = 32; + var xh = fm.length; + function Wce(t, e, r) { + const n = Array.isArray(r) || r === void 0 ? r : [r], i = J4(e, t, n), s = i.subarray(0, fm.length); + if (!Pn(s, fm)) throw new Error("Invalid Pkcs8 header found in body"); - let o = i.subarray(_h, _h + u_), a = _h + u_, c = i.subarray(a, a + Xl.length); - if (!Pn(c, Xl) && (a = _h + Fce, o = i.subarray(_h, a), c = i.subarray(a, a + Xl.length), !Pn(c, Xl))) + let o = i.subarray(xh, xh + c_), a = xh + c_, c = i.subarray(a, a + Xl.length); + if (!Pn(c, Xl) && (a = xh + qce, o = i.subarray(xh, a), c = i.subarray(a, a + Xl.length), !Pn(c, Xl))) throw new Error("Invalid Pkcs8 divider found in body"); const u = a + Xl.length; return { - publicKey: i.subarray(u, u + zce), + publicKey: i.subarray(u, u + Hce), secretKey: o }; } - function qce({ publicKey: t, secretKey: e }, r) { + function Gce({ publicKey: t, secretKey: e }, r) { if (!e) throw new Error("Expected a valid secretKey to be passed to encode"); - const n = $t(lm, e, Xl, t); + const n = Qt(fm, e, Xl, t); if (!r) return n; - const { params: i, password: s, salt: o } = vg(r), { encrypted: a, nonce: c } = Z4(n, s.subarray(0, 32)); - return $t(J4(o, i), c, a); + const { params: i, password: s, salt: o } = vg(r), { encrypted: a, nonce: c } = Y4(n, s.subarray(0, 32)); + return Qt(Z4(o, i), c, a); } - function Wce(t, { address: e, meta: r }, n, i) { - return st($4(n, ["pkcs8", t], i), { + function Kce(t, { address: e, meta: r }, n, i) { + return st(Q4(n, ["pkcs8", t], i), { address: e, meta: r }); } - var Gce = new Uint8Array(); - var Kce = { + var Xce = new Uint8Array(); + var Yce = { ecdsa: el, ed25519: vl, ethereum: el, - sr25519: B4 + sr25519: L4 }; - var l_ = { + var u_ = { ecdsa: new Uint8Array([2]), ed25519: new Uint8Array([0]), ethereum: new Uint8Array([2]), sr25519: new Uint8Array([1]) }; - var f_ = { - ecdsa: (t, e) => j3(t, e, "blake2"), + var l_ = { + ecdsa: (t, e) => U3(t, e, "blake2"), ed25519: XI, - ethereum: (t, e) => j3(t, e, "keccak"), + ethereum: (t, e) => U3(t, e, "keccak"), sr25519: rO }; var op = { ecdsa: (t) => t.length > 32 ? kn(t) : t, ed25519: (t) => t, - ethereum: (t) => t.length === 20 ? t : sc(yg(t)), + ethereum: (t) => t.length === 20 ? t : nc(yg(t)), sr25519: (t) => t }; - function Eh(t) { - return !t || i4(t); + function _h(t) { + return !t || n4(t); } - function h_(t, e, r) { - return kn($t(e || "", r || "", t)); + function f_(t, e, r) { + return kn(Qt(e || "", r || "", t)); } function Yl({ toSS58: t, type: e }, { publicKey: r, secretKey: n }, i = {}, s = null, o) { const a = (f, p) => { - const b = Hce(f, p || s, o); + const b = Wce(f, p || s, o); if (b.secretKey.length === 64) r = b.publicKey, n = b.secretKey; else { - const E = Kce[e](b.secretKey); + const E = Yce[e](b.secretKey); r = E.publicKey, n = E.secretKey; } - }, c = (f) => (Eh(n) && s && a(f, s), s = qce({ publicKey: r, secretKey: n }, f), o = void 0, s), u = () => { + }, c = (f) => (_h(n) && s && a(f, s), s = Gce({ publicKey: r, secretKey: n }, f), o = void 0, s), u = () => { const f = op[e](r); return e === "ethereum" ? bg(f) : t(f); }; @@ -51330,7 +51330,7 @@ ${gz(e, r)}`); return e === "ethereum" ? f.slice(-20) : f; }, get isLocked() { - return Eh(n); + return _h(n); }, get meta() { return i; @@ -51345,9 +51345,9 @@ ${gz(e, r)}`); derive: (f, p) => { if (e === "ethereum") throw new Error("Unable to derive on this keypair"); - if (Eh(n)) + if (_h(n)) throw new Error("Cannot derive on a locked keypair"); - const { path: b } = hg(f), E = L4({ publicKey: r, secretKey: n }, b, e); + const { path: b } = hg(f), E = D4({ publicKey: r, secretKey: n }, b, e); return Yl({ toSS58: t, type: e }, E, p, null); }, encodePkcs8: (f) => c(f), @@ -51358,29 +51358,29 @@ ${gz(e, r)}`); i = st({}, i, f); }, sign: (f, p = {}) => { - if (Eh(n)) + if (_h(n)) throw new Error("Cannot sign with a locked key pair"); - return $t(p.withType ? l_[e] : Gce, f_[e](Xe(f), { publicKey: r, secretKey: n })); + return Qt(p.withType ? u_[e] : Xce, l_[e](Xe(f), { publicKey: r, secretKey: n })); }, toJson: (f) => { - const p = ["ecdsa", "ethereum"].includes(e) ? r.length === 20 ? Bt(r) : Bt(W4(r)) : u(); - return Wce(e, { address: p, meta: i }, c(f), !!f); + const p = ["ecdsa", "ethereum"].includes(e) ? r.length === 20 ? Bt(r) : Bt(q4(r)) : u(); + return Kce(e, { address: p, meta: i }, c(f), !!f); }, unlock: (f) => a(f), - verify: (f, p, b) => K3(f, p, op[e](Xe(b))).isValid, + verify: (f, p, b) => G3(f, p, op[e](Xe(b))).isValid, vrfSign: (f, p, b) => { - if (Eh(n)) + if (_h(n)) throw new Error("Cannot sign with a locked key pair"); if (e === "sr25519") return nO(f, { secretKey: n }, p, b); - const E = f_[e](Xe(f), { publicKey: r, secretKey: n }); - return $t(h_(E, p, b), E); + const E = l_[e](Xe(f), { publicKey: r, secretKey: n }); + return Qt(f_(E, p, b), E); }, - vrfVerify: (f, p, b, E, _) => e === "sr25519" ? iO(f, p, r, E, _) : K3(f, $t(l_[e], p.subarray(32)), op[e](Xe(b))).isValid && Pn(p.subarray(0, 32), h_(p.subarray(32), E, _)) + vrfVerify: (f, p, b, E, _) => e === "sr25519" ? iO(f, p, r, E, _) : G3(f, Qt(u_[e], p.subarray(32)), op[e](Xe(b))).isValid && Pn(p.subarray(0, 32), f_(p.subarray(32), E, _)) }; } - var Xce = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"; - var Yce = class { + var Zce = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"; + var Jce = class { constructor() { re(this, "__internal__map", {}); } @@ -51400,25 +51400,25 @@ ${gz(e, r)}`); delete this.__internal__map[Mr(e).toString()]; } }; - var Hy = { + var Fy = { ecdsa: (t) => el(t), ed25519: (t) => vl(t), ethereum: (t) => el(t), - sr25519: (t) => B4(t) + sr25519: (t) => L4(t) }; - function Zce({ publicKey: t }) { + function Qce({ publicKey: t }) { return t; } - var Jce = class { + var $ce = class { constructor(e = {}) { re(this, "__internal__pairs"); re(this, "__internal__type"); re(this, "__internal__ss58"); re(this, "decodeAddress", Mr); - re(this, "encodeAddress", (e10, r) => this.type === "ethereum" ? bg(e10) : la(e10, r ?? this.__internal__ss58)); + re(this, "encodeAddress", (e10, r) => this.type === "ethereum" ? bg(e10) : ca(e10, r ?? this.__internal__ss58)); if (e.type = e.type || "ed25519", !["ecdsa", "ethereum", "ed25519", "sr25519"].includes(e.type || "undefined")) throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${e.type || "unknown"}`); - this.__internal__pairs = new Yce(), this.__internal__ss58 = e.ss58Format, this.__internal__type = e.type; + this.__internal__pairs = new Jce(), this.__internal__ss58 = e.ss58Format, this.__internal__type = e.type; } get pairs() { return this.getPairs(); @@ -51446,7 +51446,7 @@ ${gz(e, r)}`); return this.addPair(this.createFromPair(e, r, n)); } addFromSeed(e, r = {}, n = this.type) { - return this.addPair(Yl({ toSS58: this.encodeAddress, type: n }, Hy[n](e), r, null)); + return this.addPair(Yl({ toSS58: this.encodeAddress, type: n }, Fy[n](e), r, null)); } addFromUri(e, r = {}, n = this.type) { return this.addPair(this.createFromUri(e, r, n)); @@ -51464,7 +51464,7 @@ ${gz(e, r)}`); return Yl({ toSS58: this.encodeAddress, type: n }, e, r, null); } createFromUri(e, r = {}, n = this.type) { - const i = e.startsWith("//") ? `${Xce}${e}` : e, { derivePath: s, password: o, path: a, phrase: c } = RI(i); + const i = e.startsWith("//") ? `${Zce}${e}` : e, { derivePath: s, password: o, path: a, phrase: c } = RI(i); let u; const f = Ft(c, 256); if (f) @@ -51476,10 +51476,10 @@ ${gz(e, r)}`); else { if (c.length > 32) throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes"); - u = Dr(c.padEnd(32)); + u = Cr(c.padEnd(32)); } } - const p = n === "ethereum" ? f ? Hy[n](u) : _O(u, s.substring(1)) : L4(Hy[n](u), a, n); + const p = n === "ethereum" ? f ? Fy[n](u) : _O(u, s.substring(1)) : D4(Fy[n](u), a, n); return Yl({ toSS58: this.encodeAddress, type: n }, p, r, null); } getPair(e) { @@ -51489,7 +51489,7 @@ ${gz(e, r)}`); return this.__internal__pairs.all(); } getPublicKeys() { - return this.__internal__pairs.all().map(Zce); + return this.__internal__pairs.all().map(Qce); } removePair(e) { this.__internal__pairs.remove(e); @@ -51501,9 +51501,9 @@ ${gz(e, r)}`); return this.__internal__pairs.get(e).toJson(r); } }; - var Qce = hi.fetch; - var d_ = -99999; - function Sh(t, e, r) { + var eue = hi.fetch; + var h_ = -99999; + function Eh(t, e, r) { Object.defineProperty(t, e, { configurable: true, enumerable: false, @@ -51511,18 +51511,18 @@ ${gz(e, r)}`); }); } var gR = class extends Error { - constructor(r = "", n = d_, i) { + constructor(r = "", n = h_, i) { super(); re(this, "code"); re(this, "data"); re(this, "message"); re(this, "name"); re(this, "stack"); - if (Sh(this, "message", String(r)), Sh(this, "name", this.constructor.name), Sh(this, "data", i), Sh(this, "code", n), St(Error.captureStackTrace)) + if (Eh(this, "message", String(r)), Eh(this, "name", this.constructor.name), Eh(this, "data", i), Eh(this, "code", n), St(Error.captureStackTrace)) Error.captureStackTrace(this, this.constructor); else { const { stack: s } = new Error(r); - s && Sh(this, "stack", s); + s && Eh(this, "stack", s); } } }; @@ -51530,21 +51530,21 @@ ${gz(e, r)}`); ASSERT: -90009, INVALID_JSONRPC: -99998, METHOD_NOT_FOUND: -32601, - UNKNOWN: d_ + UNKNOWN: h_ }); - function $ce(t) { + function tue(t) { if (Ar(t)) return ""; const e = `: ${pr(t) ? t.replace(/Error\("/g, "").replace(/\("/g, "(").replace(/"\)/g, ")").replace(/\(/g, ", ").replace(/\)/g, "") : Ct(t)}`; return e.length <= 256 ? e : `${e.substring(0, 255)}\u2026`; } - function p_(t) { + function d_(t) { if (t) { const { code: e, data: r, message: n } = t; - throw new gR(`${e}: ${n}${$ce(r)}`, e, r); + throw new gR(`${e}: ${n}${tue(r)}`, e, r); } } - var ex = class { + var $8 = class { constructor() { re(this, "__internal__id", 0); } @@ -51554,9 +51554,9 @@ ${gz(e, r)}`); const r = !Ar(e.params) && !Ar(e.method); if (!rr(e.id) && (!r || !rr(e.params.subscription) && !pr(e.params.subscription))) throw new Error("Invalid id field in decoded object"); - if (p_(e.error), e.result === void 0 && !r) + if (d_(e.error), e.result === void 0 && !r) throw new Error("No result found in jsonrpc response"); - return r ? (p_(e.params.error), e.params.result) : e.result; + return r ? (d_(e.params.error), e.params.result) : e.result; } encodeJson(e, r) { const [n, i] = this.encodeObject(e, r); @@ -51572,14 +51572,14 @@ ${gz(e, r)}`); }]; } }; - var eue = "http://127.0.0.1:9933"; - var tue = "ws://127.0.0.1:9944"; + var rue = "http://127.0.0.1:9933"; + var nue = "ws://127.0.0.1:9944"; var yR = { - HTTP_URL: eue, - WS_URL: tue + HTTP_URL: rue, + WS_URL: nue }; var bR = 128; - var m_ = class { + var p_ = class { constructor(e) { re(this, "key"); re(this, "next"); @@ -51595,7 +51595,7 @@ ${gz(e, r)}`); re(this, "__internal__length", 0); re(this, "__internal__head"); re(this, "__internal__tail"); - this.capacity = e, this.__internal__head = this.__internal__tail = new m_(""); + this.capacity = e, this.__internal__head = this.__internal__tail = new p_(""); } get length() { return this.__internal__length; @@ -51632,7 +51632,7 @@ ${gz(e, r)}`); if (this.__internal__data.has(e)) this.__internal__toHead(e); else { - const n = new m_(e); + const n = new p_(e); this.__internal__refs.set(n.key, n), this.length === 0 ? this.__internal__head = this.__internal__tail = n : (this.__internal__head.prev = n, n.next = this.__internal__head, this.__internal__head = n), this.__internal__length === this.capacity ? (this.__internal__data.delete(this.__internal__tail.key), this.__internal__refs.delete(this.__internal__tail.key), this.__internal__tail = this.__internal__tail.prev, this.__internal__tail.next = this.__internal__head) : this.__internal__length += 1; } this.__internal__data.set(e, r); @@ -51643,8 +51643,8 @@ ${gz(e, r)}`); } }; var ap = "HTTP Provider does not have subscriptions, use WebSockets instead"; - var qy = mi("api-http"); - var tx = class { + var Hy = mi("api-http"); + var ex = class { constructor(e = yR.HTTP_URL, r = {}) { re(this, "__internal__callCache", new wR()); re(this, "__internal__coder"); @@ -51653,7 +51653,7 @@ ${gz(e, r)}`); re(this, "__internal__stats"); if (!/^(https|http):\/\//.test(e)) throw new Error(`Endpoint should start with 'http://' or 'https://', received '${e}'`); - this.__internal__coder = new ex(), this.__internal__endpoint = e, this.__internal__headers = r, this.__internal__stats = { + this.__internal__coder = new $8(), this.__internal__endpoint = e, this.__internal__headers = r, this.__internal__stats = { active: { requests: 0, subscriptions: 0 }, total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 } }; @@ -51662,7 +51662,7 @@ ${gz(e, r)}`); return false; } clone() { - return new tx(this.__internal__endpoint, this.__internal__headers); + return new ex(this.__internal__endpoint, this.__internal__headers); } async connect() { } @@ -51678,7 +51678,7 @@ ${gz(e, r)}`); return true; } on(e, r) { - return qy.error("HTTP Provider does not have 'on' emitters, use WebSockets instead"), os; + return Hy.error("HTTP Provider does not have 'on' emitters, use WebSockets instead"), os; } async send(e, r, n) { this.__internal__stats.total.requests++; @@ -51689,7 +51689,7 @@ ${gz(e, r)}`); async __internal__send(e) { this.__internal__stats.active.requests++, this.__internal__stats.total.bytesSent += e.length; try { - const r = await Qce(this.__internal__endpoint, { + const r = await eue(this.__internal__endpoint, { body: e, headers: { Accept: "application/json", @@ -51710,10 +51710,10 @@ ${gz(e, r)}`); } } async subscribe(e, r, n, i) { - throw qy.error(ap), new Error(ap); + throw Hy.error(ap), new Error(ap); } async unsubscribe(e, r, n) { - throw qy.error(ap), new Error(ap); + throw Hy.error(ap), new Error(ap); } }; var vR = { exports: {} }; @@ -51827,9 +51827,9 @@ ${gz(e, r)}`); return u ? (f = r ? r + u : u, this._events[f] && o(this, f)) : (this._events = new n(), this._eventsCount = 0), this; }, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = r, a.EventEmitter = a, t.exports = a; })(vR); - var rue = vR.exports; - var rx = /* @__PURE__ */ nc(rue); - function nue() { + var iue = vR.exports; + var tx = /* @__PURE__ */ tc(iue); + function sue() { let t = null, e = null; return { responsePassThrough: (r) => t === null ? r : t.responsePassThrough(r), @@ -51846,14 +51846,14 @@ ${gz(e, r)}`); throw new Error("Can't start the health checker multiple times in parallel"); if (!e) throw new Error("setSendJsonRpc must be called before starting the health checks"); - t = new iue(r, e), t.update(true); + t = new oue(r, e), t.update(true); }, stop: () => { t !== null && (t.destroy(), t = null); } }; } - var iue = class { + var oue = class { constructor(e, r) { re(this, "__internal__healthCallback"); re(this, "__internal__currentHealthCheckId", null); @@ -51938,8 +51938,8 @@ ${gz(e, r)}`); this.__internal__healthCallback = e, this.__internal__requestToSmoldot = (n) => r(Ct(n)); } }; - var g_ = mi("api-substrate-connect"); - var y_ = /* @__PURE__ */ new Map([ + var m_ = mi("api-substrate-connect"); + var g_ = /* @__PURE__ */ new Map([ ["author_submitAndWatchExtrinsic", "author_unwatchExtrinsic"], ["chain_subscribeAllHeads", "chain_unsubscribeAllHeads"], ["chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads"], @@ -51951,18 +51951,18 @@ ${gz(e, r)}`); ["state_subscribeRuntimeVersion", "state_unsubscribeRuntimeVersion"], ["state_subscribeStorage", "state_unsubscribeStorage"] ]); - var b_ = /* @__PURE__ */ new WeakMap(); - var sue = class { + var y_ = /* @__PURE__ */ new WeakMap(); + var aue = class { constructor(e, r, n) { re(this, "__internal__Sc"); - re(this, "__internal__coder", new ex()); + re(this, "__internal__coder", new $8()); re(this, "__internal__spec"); re(this, "__internal__sharedSandbox"); re(this, "__internal__subscriptions", /* @__PURE__ */ new Map()); re(this, "__internal__resubscribeMethods", /* @__PURE__ */ new Map()); re(this, "__internal__requests", /* @__PURE__ */ new Map()); re(this, "__internal__wellKnownChains"); - re(this, "__internal__eventemitter", new rx()); + re(this, "__internal__eventemitter", new tx()); re(this, "__internal__chain", null); re(this, "__internal__isChainReady", false); re(this, "__internal__resubscribe", () => { @@ -51975,9 +51975,9 @@ ${gz(e, r)}`); }); e10.push(n10); } catch (n10) { - g_.error(n10); + m_.error(n10); } - }), Promise.all(e10).catch((r10) => g_.log(r10)); + }), Promise.all(e10).catch((r10) => m_.log(r10)); }); if (!di(e) || !di(e.WellKnownChain) || !St(e.createScClient)) throw new Error("Expected an @substrate/connect interface as first parameter to ScProvider"); @@ -51995,7 +51995,7 @@ ${gz(e, r)}`); clone() { throw new Error("clone() is not supported."); } - async connect(e, r = nue) { + async connect(e, r = sue) { if (this.isConnected) throw new Error("Already connected!"); if (this.__internal__chain) { @@ -52003,10 +52003,10 @@ ${gz(e, r)}`); return; } this.__internal__sharedSandbox && !this.__internal__sharedSandbox.isConnected && await this.__internal__sharedSandbox.connect(); - const n = this.__internal__sharedSandbox ? b_.get(this.__internal__sharedSandbox) : this.__internal__Sc.createScClient(e); + const n = this.__internal__sharedSandbox ? y_.get(this.__internal__sharedSandbox) : this.__internal__Sc.createScClient(e); if (!n) throw new Error("Unknown ScProvider!"); - b_.set(this, n); + y_.set(this, n); const i = r(), s = (a) => { var E, _, N; const c = i.responsePassThrough(a); @@ -52100,11 +52100,11 @@ ${gz(e, r)}`); } } async subscribe(e, r, n, i) { - if (!y_.has(r)) + if (!g_.has(r)) throw new Error(`Unsupported subscribe method: ${r}`); const s = await this.send(r, n), o = `${e}::${s}`, a = (u) => { u instanceof Error ? i(u, void 0) : i(null, u); - }, c = y_.get(r); + }, c = g_.get(r); if (!c) throw new Error("Invalid unsubscribe method found"); return this.__internal__resubscribeMethods.set(o, { callback: i, method: r, params: n, type: e }), this.__internal__subscriptions.set(o, [a, { id: s, unsubscribeMethod: c }]), s; @@ -52116,8 +52116,8 @@ ${gz(e, r)}`); return this.__internal__subscriptions.has(i) ? (this.__internal__resubscribeMethods.delete(i), this.__internal__subscriptions.delete(i), this.send(r, [n])) : Promise.reject(new Error(`Unable to find active subscription=${i}`)); } }; - var qp = hi.WebSocket; - var oue = { + var Wp = hi.WebSocket; + var cue = { 1e3: "Normal Closure", 1001: "Going Away", 1002: "Protocol Error", @@ -52135,7 +52135,7 @@ ${gz(e, r)}`); 1014: "Bad Gateway", 1015: "TLS Handshake" }; - function aue(t) { + function uue(t) { if (t >= 0 && t <= 999) return "(Unused)"; if (t >= 1016) { @@ -52148,27 +52148,27 @@ ${gz(e, r)}`); if (t <= 4999) return "(For applications)"; } - return oue[t] || "(Unknown)"; + return cue[t] || "(Unknown)"; } - var cue = { + var lue = { chain_finalisedHead: "chain_finalizedHead", chain_subscribeFinalisedHeads: "chain_subscribeFinalizedHeads", chain_unsubscribeFinalisedHeads: "chain_unsubscribeFinalizedHeads" }; - var uue = 2500; - var lue = 60 * 1e3; - var fue = 5e3; + var fue = 2500; + var hue = 60 * 1e3; + var due = 5e3; var es = mi("api-ws"); - function w_(t, e) { + function b_(t, e) { Object.keys(t).forEach((r) => { e && e(t[r]), delete t[r]; }); } - function Wy() { + function qy() { return { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }; } - var uu = class { - constructor(e = yR.WS_URL, r = uue, n = {}, i, s) { + var cu = class { + constructor(e = yR.WS_URL, r = fue, n = {}, i, s) { re(this, "__internal__callCache"); re(this, "__internal__coder"); re(this, "__internal__endpoints"); @@ -52190,14 +52190,14 @@ ${gz(e, r)}`); this.__internal__eventemitter.emit(e10, ...r10); }); re(this, "__internal__onSocketClose", (e10) => { - const r10 = new Error(`disconnected from ${this.endpoint}: ${e10.code}:: ${e10.reason || aue(e10.code)}`); - this.__internal__autoConnectMs > 0 && es.error(r10.message), this.__internal__isConnected = false, this.__internal__websocket && (this.__internal__websocket.onclose = null, this.__internal__websocket.onerror = null, this.__internal__websocket.onmessage = null, this.__internal__websocket.onopen = null, this.__internal__websocket = null), this.__internal__timeoutId && (clearInterval(this.__internal__timeoutId), this.__internal__timeoutId = null), w_(this.__internal__handlers, (n10) => { + const r10 = new Error(`disconnected from ${this.endpoint}: ${e10.code}:: ${e10.reason || uue(e10.code)}`); + this.__internal__autoConnectMs > 0 && es.error(r10.message), this.__internal__isConnected = false, this.__internal__websocket && (this.__internal__websocket.onclose = null, this.__internal__websocket.onerror = null, this.__internal__websocket.onmessage = null, this.__internal__websocket.onopen = null, this.__internal__websocket = null), this.__internal__timeoutId && (clearInterval(this.__internal__timeoutId), this.__internal__timeoutId = null), b_(this.__internal__handlers, (n10) => { try { n10.callback(r10, void 0); } catch (i10) { es.error(i10); } - }), w_(this.__internal__waitingForId), this.__internal__endpointStats = Wy(), this.__internal__emit("disconnected"), this.__internal__autoConnectMs > 0 && setTimeout(() => { + }), b_(this.__internal__waitingForId), this.__internal__endpointStats = qy(), this.__internal__emit("disconnected"), this.__internal__autoConnectMs > 0 && setTimeout(() => { this.connectWithRetry().catch(os); }, this.__internal__autoConnectMs); }); @@ -52234,7 +52234,7 @@ ${gz(e, r)}`); re(this, "__internal__onSocketMessageSubscribe", (e10) => { if (!e10.method) throw new Error("No method found in JSONRPC response"); - const n10 = `${cue[e10.method] || e10.method}::${e10.params.subscription}`, i10 = this.__internal__subscriptions[n10]; + const n10 = `${lue[e10.method] || e10.method}::${e10.params.subscription}`, i10 = this.__internal__subscriptions[n10]; if (!i10) { this.__internal__waitingForId[n10] = e10, es.debug(() => `Unable to find handler for subscription=${n10}`); return; @@ -52283,10 +52283,10 @@ ${gz(e, r)}`); o.forEach((a) => { if (!/^(wss|ws):\/\//.test(a)) throw new Error(`Endpoint should start with 'ws://', received '${a}'`); - }), this.__internal__callCache = new wR(s || bR), this.__internal__eventemitter = new rx(), this.__internal__autoConnectMs = r || 0, this.__internal__coder = new ex(), this.__internal__endpointIndex = -1, this.__internal__endpoints = o, this.__internal__headers = n, this.__internal__websocket = null, this.__internal__stats = { + }), this.__internal__callCache = new wR(s || bR), this.__internal__eventemitter = new tx(), this.__internal__autoConnectMs = r || 0, this.__internal__coder = new $8(), this.__internal__endpointIndex = -1, this.__internal__endpoints = o, this.__internal__headers = n, this.__internal__websocket = null, this.__internal__stats = { active: { requests: 0, subscriptions: 0 }, - total: Wy() - }, this.__internal__endpointStats = Wy(), this.__internal__timeout = i || lue, r && r > 0 && this.connectWithRetry().catch(os), this.__internal__isReadyPromise = new Promise((a) => { + total: qy() + }, this.__internal__endpointStats = qy(), this.__internal__timeout = i || hue, r && r > 0 && this.connectWithRetry().catch(os), this.__internal__isReadyPromise = new Promise((a) => { this.__internal__eventemitter.once("connected", () => { a(this); }); @@ -52308,7 +52308,7 @@ ${gz(e, r)}`); return this.__internal__endpoints[this.__internal__endpointIndex]; } clone() { - return new uu(this.__internal__endpoints); + return new cu(this.__internal__endpoints); } selectEndpointIndex(e) { return (this.__internal__endpointIndex + 1) % e.length; @@ -52317,9 +52317,9 @@ ${gz(e, r)}`); if (this.__internal__websocket) throw new Error("WebSocket is already connected"); try { - this.__internal__endpointIndex = this.selectEndpointIndex(this.__internal__endpoints), this.__internal__websocket = typeof hi.WebSocket < "u" && YN(hi.WebSocket, qp) ? new qp(this.endpoint) : new qp(this.endpoint, void 0, { + this.__internal__endpointIndex = this.selectEndpointIndex(this.__internal__endpoints), this.__internal__websocket = typeof hi.WebSocket < "u" && YN(hi.WebSocket, Wp) ? new Wp(this.endpoint) : new Wp(this.endpoint, void 0, { headers: this.__internal__headers - }), this.__internal__websocket && (this.__internal__websocket.onclose = this.__internal__onSocketClose, this.__internal__websocket.onerror = this.__internal__onSocketError, this.__internal__websocket.onmessage = this.__internal__onSocketMessage, this.__internal__websocket.onopen = this.__internal__onSocketOpen), this.__internal__timeoutId = setInterval(() => this.__internal__timeoutHandlers(), fue); + }), this.__internal__websocket && (this.__internal__websocket.onclose = this.__internal__onSocketClose, this.__internal__websocket.onerror = this.__internal__onSocketError, this.__internal__websocket.onmessage = this.__internal__onSocketMessage, this.__internal__websocket.onopen = this.__internal__onSocketOpen), this.__internal__timeoutId = setInterval(() => this.__internal__timeoutHandlers(), due); } catch (e) { throw es.error(e), this.__internal__emit("error", e), e; } @@ -52396,53 +52396,53 @@ ${gz(e, r)}`); return es.debug(() => `Unable to find active subscription=${i}`), false; delete this.__internal__subscriptions[i]; try { - return this.isConnected && !Fc(this.__internal__websocket) ? this.send(r, [n]) : true; + return this.isConnected && !Vc(this.__internal__websocket) ? this.send(r, [n]) : true; } catch { return false; } } }; - var hue = /* @__PURE__ */ mi("api/util"); - function due(t, { block: { extrinsics: e, header: r } }, n, i) { + var pue = /* @__PURE__ */ mi("api/util"); + function mue(t, { block: { extrinsics: e, header: r } }, n, i) { for (const [s, o] of e.entries()) if (o.hash.eq(t)) return { - blockNumber: h4(r.number) ? r.number.unwrap() : r.number, + blockNumber: f4(r.number) ? r.number.unwrap() : r.number, events: n.filter(({ phase: a }) => a.isApplyExtrinsic && a.asApplyExtrinsic.eqn(s)), txIndex: s }; if (i.isInBlock) { const s = e.map((o) => o.hash.toHex()); - hue.warn(`block ${r.hash.toHex()}: Unable to find extrinsic ${t.toHex()} inside ${s.join(", ")}`); + pue.warn(`block ${r.hash.toHex()}: Unable to find extrinsic ${t.toHex()} inside ${s.join(", ")}`); } return {}; } - function Gy(t) { + function Wy(t) { return St(t.sign); } - function v_(t, e) { + function w_(t, e) { const r = (o) => Object.keys(e[o]), n = (o, a) => t(e[o][a]), i = {}, s = Object.keys(e); for (let o = 0, a = s.length; o < a; o++) Wg(i, s[o], r, n); return i; } - var pue = (t) => t; - function nx(t, e, r, n) { + var gue = (t) => t; + function rx(t, e, r, n) { return t.filter(({ event: i }) => e === i.section && r.includes(i.method)).map((i) => n(i)); } - function mue({ event: { data: [t] } }) { + function yue({ event: { data: [t] } }) { return t; } - function gue({ event: { data: t, method: e } }) { + function bue({ event: { data: t, method: e } }) { return e === "ExtrinsicSuccess" ? t[0] : t[1]; } - function yue(t = []) { - return nx(t, "system", ["ExtrinsicFailed"], mue)[0]; + function wue(t = []) { + return rx(t, "system", ["ExtrinsicFailed"], yue)[0]; } - function bue(t = []) { - return nx(t, "system", ["ExtrinsicFailed", "ExtrinsicSuccess"], gue)[0]; + function vue(t = []) { + return rx(t, "system", ["ExtrinsicFailed", "ExtrinsicSuccess"], bue)[0]; } - var Wp = class { + var Gp = class { constructor({ blockNumber: e, dispatchError: r, dispatchInfo: n, events: i, internalError: s, status: o, txHash: a, txIndex: c }) { re(this, "dispatchError"); re(this, "dispatchInfo"); @@ -52452,7 +52452,7 @@ ${gz(e, r)}`); re(this, "txHash"); re(this, "txIndex"); re(this, "blockNumber"); - this.dispatchError = r || yue(i), this.dispatchInfo = n || bue(i), this.events = i || [], this.internalError = s, this.status = o, this.txHash = a, this.txIndex = c, this.blockNumber = e; + this.dispatchError = r || wue(i), this.dispatchInfo = n || vue(i), this.events = i || [], this.internalError = s, this.status = o, this.txHash = a, this.txIndex = c, this.blockNumber = e; } get isCompleted() { return this.isError || this.status.isInBlock || this.status.isFinalized; @@ -52470,7 +52470,7 @@ ${gz(e, r)}`); return this.status.isRetracted; } filterRecords(e, r) { - return nx(this.events, e, Array.isArray(r) ? r : [r], pue); + return rx(this.events, e, Array.isArray(r) ? r : [r], gue); } findRecord(e, r) { return this.filterRecords(e, r)[0]; @@ -52486,13 +52486,13 @@ ${gz(e, r)}`); }; } }; - function x_(t, e, r, { header: n, mortalLength: i, nonce: s }) { + function v_(t, e, r, { header: n, mortalLength: i, nonce: s }) { if (!n) { if (r.era && !r.blockHash) throw new Error("Expected blockHash to be passed alongside non-immortal era options"); - return rr(r.era) && (delete r.era, delete r.blockHash), sw(t, r, { nonce: s }); + return rr(r.era) && (delete r.era, delete r.blockHash), iw(t, r, { nonce: s }); } - return sw(t, r, { + return iw(t, r, { blockHash: n.hash, era: e.createTypeUnsafe("ExtrinsicEra", [{ current: n.number, @@ -52501,54 +52501,54 @@ ${gz(e, r)}`); nonce: s }); } - function __(t, e) { + function x_(t, e) { let r = {}; return St(t) ? e = t : r = st({}, t), [r, e]; } - function sw(t, e, r) { + function iw(t, e, r) { return st({ blockHash: t.genesisHash, genesisHash: t.genesisHash }, e, r, { runtimeVersion: t.runtimeVersion, signedExtensions: t.registry.signedExtensions, version: t.extrinsicType }); } - function wue(t = {}) { + function xue(t = {}) { return Ki(t) || rr(t) ? { nonce: t } : t; } - function vue({ api: t, apiType: e, blockHash: r, decorateMethod: n }) { + function _ue({ api: t, apiType: e, blockHash: r, decorateMethod: n }) { const i = t.registry.createClass("Extrinsic"); class s extends i { constructor(c, u) { super(c, u, { version: t.extrinsicType }); re(this, "__internal__ignoreStatusCb"); - re(this, "__internal__transformResult", cu); + re(this, "__internal__transformResult", au); re(this, "__internal__observeSign", (c10, u10) => { - const f = Gy(c10) ? c10.address : c10.toString(), p = wue(u10); - return t.derive.tx.signingInfo(f, p.nonce, p.era).pipe(A1(), Cn(async (b) => { - const E = x_(t, this.registry, p, b); + const f = Wy(c10) ? c10.address : c10.toString(), p = xue(u10); + return t.derive.tx.signingInfo(f, p.nonce, p.era).pipe(T1(), Cn(async (b) => { + const E = v_(t, this.registry, p, b); let _ = -1; - return Gy(c10) ? this.sign(c10, E) : _ = await this.__internal__signViaSigner(f, E, b.header), { options: E, updateId: _ }; + return Wy(c10) ? this.sign(c10, E) : _ = await this.__internal__signViaSigner(f, E, b.header), { options: E, updateId: _ }; })); }); re(this, "__internal__observeStatus", (c10, u10) => { if (!u10.isFinalized && !u10.isInBlock) - return xe(this.__internal__transformResult(new Wp({ + return _e(this.__internal__transformResult(new Gp({ status: u10, txHash: c10 }))); const f = u10.isInBlock ? u10.asInBlock : u10.asFinalized; - return t.derive.tx.events(f).pipe(we(({ block: p, events: b }) => this.__internal__transformResult(new Wp({ - ...due(c10, p, b, u10), + return t.derive.tx.events(f).pipe(we(({ block: p, events: b }) => this.__internal__transformResult(new Gp({ + ...mue(c10, p, b, u10), status: u10, txHash: c10 - }))), Yt((p) => xe(this.__internal__transformResult(new Wp({ + }))), $t((p) => _e(this.__internal__transformResult(new Gp({ internalError: p, status: u10, txHash: c10 }))))); }); - re(this, "__internal__observeSend", (c10) => t.rpc.author.submitExtrinsic(this).pipe(Us((u10) => { + re(this, "__internal__observeSend", (c10) => t.rpc.author.submitExtrinsic(this).pipe(Bs((u10) => { this.__internal__updateSigner(u10, c10); }))); re(this, "__internal__observeSubscribe", (c10) => { const u10 = this.hash; - return t.rpc.author.submitAndWatchExtrinsic(this).pipe(Oe((f) => this.__internal__observeStatus(u10, f)), Us((f) => { + return t.rpc.author.submitAndWatchExtrinsic(this).pipe(Pe((f) => this.__internal__observeStatus(u10, f)), Bs((f) => { this.__internal__updateSigner(f, c10); })); }); @@ -52589,19 +52589,19 @@ ${gz(e, r)}`); dryRun(c, u) { if (!this.hasDryRun) throw new Error("The system.dryRun RPC call is not available in your environment"); - return r || pr(u) || Et(u) ? n(() => t.rpc.system.dryRun(this.toHex(), r || u)) : n(() => this.__internal__observeSign(c, u).pipe(Oe(() => t.rpc.system.dryRun(this.toHex()))))(); + return r || pr(u) || Et(u) ? n(() => t.rpc.system.dryRun(this.toHex(), r || u)) : n(() => this.__internal__observeSign(c, u).pipe(Pe(() => t.rpc.system.dryRun(this.toHex()))))(); } paymentInfo(c, u) { if (!this.hasPaymentInfo) throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment"); if (r || pr(u) || Et(u)) - return n(() => t.callAt(r || u).pipe(Oe((b) => { + return n(() => t.callAt(r || u).pipe(Pe((b) => { const E = this.toU8a(); return b.transactionPaymentApi.queryInfo(E, E.length); }))); - const [f] = __(u), p = Gy(c) ? c.address : c.toString(); - return n(() => t.derive.tx.signingInfo(p, f.nonce, f.era).pipe(A1(), Oe((b) => { - const E = x_(t, this.registry, f, b), _ = sw(t, E, {}), N = t.tx(this.toU8a()).signFake(p, _).toU8a(); + const [f] = x_(u), p = Wy(c) ? c.address : c.toString(); + return n(() => t.derive.tx.signingInfo(p, f.nonce, f.era).pipe(T1(), Pe((b) => { + const E = v_(t, this.registry, f, b), _ = iw(t, E, {}), N = t.tx(this.toU8a()).signFake(p, _).toU8a(); return t.call.transactionPaymentApi.queryInfo(N, N.length); })))(); } @@ -52613,9 +52613,9 @@ ${gz(e, r)}`); return n(() => this.__internal__observeSign(c, u).pipe(we(() => this)))(); } signAndSend(c, u, f) { - const [p, b] = __(u, f), E = t.hasSubscriptions && (this.__internal__ignoreStatusCb || !!b); + const [p, b] = x_(u, f), E = t.hasSubscriptions && (this.__internal__ignoreStatusCb || !!b); return n( - () => this.__internal__observeSign(c, p).pipe(Oe((_) => E ? this.__internal__observeSubscribe(_) : this.__internal__observeSend(_))) + () => this.__internal__observeSign(c, p).pipe(Pe((_) => E ? this.__internal__observeSubscribe(_) : this.__internal__observeSend(_))) )(b); } withResultTransform(c) { @@ -52624,8 +52624,8 @@ ${gz(e, r)}`); } return s; } - function E_(t, e, r, n, i) { - const s = vue({ api: e, apiType: t, blockHash: i, decorateMethod: r }); + function __(t, e, r, n, i) { + const s = _ue({ api: e, apiType: t, blockHash: i, decorateMethod: r }); return (o) => new s(n || e.registry, o); } function xR(t, e) { @@ -52634,32 +52634,32 @@ ${gz(e, r)}`); function _R(t, e) { return t.findMetaError(Xe(e)); } - var xue = mi("api/augment"); - function S_(t, e, r = []) { + var Eue = mi("api/augment"); + function E_(t, e, r = []) { return e.length ? ` ${e.length} ${t}${r.length ? " and" : ""}` : ""; } - function M_(t, e) { + function S_(t, e) { return e.length ? ` ${t.padStart(7)}: ${e.sort().join(", ")}` : ""; } - function A_(t, e, [r, n]) { - (r.length || n.length) && xue.warn(`api.${t}: Found${S_("added", r, n)}${S_("removed", n)} ${e}:${M_("added", r)}${M_("removed", n)}`); + function M_(t, e, [r, n]) { + (r.length || n.length) && Eue.warn(`api.${t}: Found${E_("added", r, n)}${E_("removed", n)} ${e}:${S_("added", r)}${S_("removed", n)}`); } - function T_(t, e) { + function A_(t, e) { return t.filter((r) => !e.includes(r)); } - function _ue(t, e) { + function Sue(t, e) { return t.filter((r) => e.includes(r)); } - function Eue(t, e) { + function Mue(t, e) { const r = Object.keys(t), n = Object.keys(e); return [ - T_(r, n), - T_(n, r) + A_(r, n), + A_(n, r) ]; } - function N_(t, e) { - const r = Object.keys(t), n = _ue(Object.keys(e), r), i = []; + function T_(t, e) { + const r = Object.keys(t), n = Sue(Object.keys(e), r), i = []; for (let s = 0, o = n.length; s < o; s++) { const a = n[s], c = Object.keys(t[a]), u = Object.keys(e[a]); for (let f = 0, p = u.length; f < p; f++) { @@ -52669,39 +52669,39 @@ ${gz(e, r)}`); } return i; } - function Sue(t, e) { + function Aue(t, e) { return [ - N_(e, t), - N_(t, e) + T_(e, t), + T_(t, e) ]; } - function No(t, e, r, n = false) { - n && eI(r), t && Object.keys(r).length && (A_(t, "modules", Eue(e, r)), A_(t, "calls", Sue(e, r))); + function To(t, e, r, n = false) { + n && eI(r), t && Object.keys(r).length && (M_(t, "modules", Mue(e, r)), M_(t, "calls", Aue(e, r))); const i = Object.keys(e); for (let s = 0, o = i.length; s < o; s++) { const a = i[s], c = e[a]; - r[a] || (r[a] = {}), Hc(r[a], Object.keys(c), (u) => c[u]); + r[a] || (r[a] = {}), zc(r[a], Object.keys(c), (u) => c[u]); } return r; } - function I_({ lookup: t }, { method: e, section: r }, n) { + function N_({ lookup: t }, { method: e, section: r }, n) { return `${r}.${e}(${n.map((i) => t.getTypeDef(i).type).join(", ")})`; } function cp(t, e, r) { const n = r.filter((i) => !Ar(i)); if (e.meta.type.isPlain) { if (n.length !== 0) - throw new Error(`${I_(t, e, [])} does not take any arguments, ${n.length} found`); + throw new Error(`${N_(t, e, [])} does not take any arguments, ${n.length} found`); } else { const { hashers: i, key: s } = e.meta.type.asMap, o = i.length === 1 ? [s] : t.lookup.getSiType(s).def.asTuple.map((a) => a); if (n.length !== o.length) - throw new Error(`${I_(t, e, o)} is a map, requiring ${o.length} arguments, ${n.length} found`); + throw new Error(`${N_(t, e, o)} is a map, requiring ${o.length} arguments, ${n.length} found`); } return [e, n]; } - var Mue = class { + var Tue = class { constructor() { - re(this, "__internal__eventemitter", new rx()); + re(this, "__internal__eventemitter", new tx()); } emit(e, ...r) { return this.__internal__eventemitter.emit(e, ...r); @@ -52717,14 +52717,14 @@ ${gz(e, r)}`); } }; var up = 1e3; - var Ky = 250; - var Aue = 50; - var Xy = mi("api/init"); - var Tue = 0; - function Yy(t, { method: e, section: r }) { - return La(t.rx.query[r] && t.rx.query[r][e], () => `query.${r}.${e} is not available in this version of the metadata`); - } - var Nue = class extends Mue { + var Gy = 250; + var Nue = 50; + var Ky = mi("api/init"); + var Iue = 0; + function Xy(t, { method: e, section: r }) { + return Ca(t.rx.query[r] && t.rx.query[r][e], () => `query.${r}.${e} is not available in this version of the metadata`); + } + var Oue = class extends Tue { constructor(r, n, i) { var o; super(); @@ -52741,7 +52741,7 @@ ${gz(e, r)}`); re(this, "_errors", {}); re(this, "_events", {}); re(this, "_extrinsics"); - re(this, "_extrinsicType", p0.LATEST_EXTRINSIC_VERSION); + re(this, "_extrinsicType", m0.LATEST_EXTRINSIC_VERSION); re(this, "_genesisHash"); re(this, "_isConnected"); re(this, "_isReady", false); @@ -52757,13 +52757,13 @@ ${gz(e, r)}`); re(this, "_options"); re(this, "_decorateMethod"); re(this, "_rxDecorateMethod", (r10) => r10); - this.__internal__instanceId = `${++Tue}`, this.__internal__registry = ((o = r.source) == null ? void 0 : o.registry) || r.registry || new Hg(), this._rx.callAt = (a, c) => Fr(this.at(a, c)).pipe(we((u) => u.rx.call)), this._rx.queryAt = (a, c) => Fr(this.at(a, c)).pipe(we((u) => u.rx.query)), this._rx.registry = this.__internal__registry, this._decorateMethod = i, this._options = r, this._type = n; - const s = r.source ? r.source._rpcCore.provider.isClonable ? r.source._rpcCore.provider.clone() : r.source._rpcCore.provider : r.provider || new uu(); - this._rpcCore = new Mre(this.__internal__instanceId, this.__internal__registry, { + this.__internal__instanceId = `${++Iue}`, this.__internal__registry = ((o = r.source) == null ? void 0 : o.registry) || r.registry || new Hg(), this._rx.callAt = (a, c) => zr(this.at(a, c)).pipe(we((u) => u.rx.call)), this._rx.queryAt = (a, c) => zr(this.at(a, c)).pipe(we((u) => u.rx.query)), this._rx.registry = this.__internal__registry, this._decorateMethod = i, this._options = r, this._type = n; + const s = r.source ? r.source._rpcCore.provider.isClonable ? r.source._rpcCore.provider.clone() : r.source._rpcCore.provider : r.provider || new cu(); + this._rpcCore = new Tre(this.__internal__instanceId, this.__internal__registry, { isPedantic: this._options.isPedantic, provider: s, userRpc: this._options.rpc - }), this._isConnected = new Xc(this._rpcCore.provider.isConnected), this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions; + }), this._isConnected = new Gc(this._rpcCore.provider.isConnected), this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions; } get registry() { return this.__internal__registry; @@ -52792,13 +52792,13 @@ ${gz(e, r)}`); call: {}, query: {} }, - tx: E_(this._type, this._rx, this._decorateMethod, r, n) + tx: __(this._type, this._rx, this._decorateMethod, r, n) }; } _createDecorated(r, n, i, s) { i || (i = this._emptyDecorated(r.registry, s)), (n || !r.decoratedMeta) && (r.decoratedMeta = Lk(r.registry, r.metadata)); const o = this._decorateCalls(r, this._decorateMethod, s), a = this._decorateCalls(r, this._rxDecorateMethod, s), c = this._decorateStorage(r.decoratedMeta, this._decorateMethod, s), u = this._decorateStorage(r.decoratedMeta, this._rxDecorateMethod, s); - return No("consts", r.decoratedMeta.consts, i.consts, n), No("errors", r.decoratedMeta.errors, i.errors, n), No("events", r.decoratedMeta.events, i.events, n), No("query", c, i.query, n), No("query", u, i.rx.query, n), No("call", o, i.call, n), No("call", a, i.rx.call, n), i.findCall = (f) => xR(r.registry, f), i.findError = (f) => _R(r.registry, f), i.queryMulti = s ? this._decorateMultiAt(i, this._decorateMethod, s) : this._decorateMulti(this._decorateMethod), i.runtimeVersion = r.runtimeVersion, { + return To("consts", r.decoratedMeta.consts, i.consts, n), To("errors", r.decoratedMeta.errors, i.errors, n), To("events", r.decoratedMeta.events, i.events, n), To("query", c, i.query, n), To("query", u, i.rx.query, n), To("call", o, i.call, n), To("call", a, i.rx.call, n), i.findCall = (f) => xR(r.registry, f), i.findError = (f) => _R(r.registry, f), i.queryMulti = s ? this._decorateMultiAt(i, this._decorateMethod, s) : this._decorateMulti(this._decorateMethod), i.runtimeVersion = r.runtimeVersion, { createdAt: s, decoratedApi: i, decoratedMeta: r.decoratedMeta @@ -52809,7 +52809,7 @@ ${gz(e, r)}`); const { decoratedApi: i, decoratedMeta: s } = this._createDecorated(r, n, r.decoratedApi); this._call = i.call, this._consts = i.consts, this._errors = i.errors, this._events = i.events, this._query = i.query, this._rx.call = i.rx.call, this._rx.query = i.rx.query; const o = this._decorateExtrinsics(s, this._decorateMethod), a = this._decorateExtrinsics(s, this._rxDecorateMethod); - n || !this._extrinsics ? (this._extrinsics = o, this._rx.tx = a) : (No("tx", o, this._extrinsics, false), No(null, a, this._rx.tx, false)), No(null, s.consts, this._rx.consts, n), this.emit("decorated"); + n || !this._extrinsics ? (this._extrinsics = o, this._rx.tx = a) : (To("tx", o, this._extrinsics, false), To(null, a, this._rx.tx, false)), To(null, s.consts, this._rx.consts, n), this.emit("decorated"); } injectMetadata(r, n, i) { this._injectMetadata({ counter: 0, metadata: r, registry: i || this.__internal__registry, runtimeVersion: this.__internal__registry.createType("RuntimeVersionPartial") }, n); @@ -52827,7 +52827,7 @@ ${gz(e, r)}`); const s = Object.keys(i); for (let o = 0, a = s.length; o < a; o++) { const c = nI(s[o]), u = `${c}Api`; - this._runtimeMap[Bp(c, 64)] = c, this._runtimeMap[Bp(u, 64)] = u; + this._runtimeMap[Up(c, 64)] = c, this._runtimeMap[Up(u, 64)] = u; } this._filterRpcMethods(r); } @@ -52838,14 +52838,14 @@ ${gz(e, r)}`); s.push(`${E}_${p}`), b && (s.push(`${E}_${b[1]}`), s.push(`${E}_${b[2]}`)), u && s.push(...u), f && s.push(f); } const a = r.filter((c) => !s.includes(c) && !c.includes("_unstable_")); - a.length && !this._options.noInitWarn && Xy.warn(`RPC methods not decorated: ${a.join(", ")}`); + a.length && !this._options.noInitWarn && Ky.warn(`RPC methods not decorated: ${a.join(", ")}`); for (let c = 0; c < o; c++) { const [u, { method: f, section: p }] = i[c]; n && !r.includes(u) && u !== "rpc_methods" && this._rpc[p] && (delete this._rpc[p][f], delete this._rx.rpc[p][f]); } } _rpcSubmitter(r) { - return r((i, ...s) => Fr(this._rpcCore.provider.send(i, s))); + return r((i, ...s) => zr(this._rpcCore.provider.send(i, s))); } _decorateRpc(r, n, i = this._rpcSubmitter(n)) { const s = i, o = (a, c) => { @@ -52858,7 +52858,7 @@ ${gz(e, r)}`); const f = Object.keys(r[u]), p = (b) => o(u, b); for (let b = 0, E = f.length; b < E; b++) { const _ = f[b]; - (this.hasSubscriptions || !(_.startsWith("subscribe") || _.startsWith("unsubscribe"))) && (Object.prototype.hasOwnProperty.call(s, u) || (s[u] = {}), Jn(s[u], _, p)); + (this.hasSubscriptions || !(_.startsWith("subscribe") || _.startsWith("unsubscribe"))) && (Object.prototype.hasOwnProperty.call(s, u) || (s[u] = {}), Zn(s[u], _, p)); } } } @@ -52880,7 +52880,7 @@ ${gz(e, r)}`); } } _getRuntimeDefs(r, n, i = "") { - const s = {}, o = Object.values(_d); + const s = {}, o = Object.values(xd); for (let a = 0, c = o.length; a < c; a++) this._addRuntimeDef(s, o[a].runtime); return this._addRuntimeDef(s, hR(r, i, n)), this._addRuntimeDef(s, this._options.runtime), Object.entries(s); @@ -52889,7 +52889,7 @@ ${gz(e, r)}`); const c = {}, u = {}, f = {}, p = this._getRuntimeDefs(r, i, this._runtimeChain), b = [], E = `${i.toString()}/${s.toString()}`, _ = this.__internal__runtimeLog[E] || false; this.__internal__runtimeLog[E] = true; for (let D = 0, q = p.length; D < q; D++) { - const [W, z] = p[D], T = Bp(W, 64), I = n.find(([H]) => H.eq(T)); + const [W, z] = p[D], T = Up(W, 64), I = n.find(([H]) => H.eq(T)); if (f[T] = true, I) { const H = z.map(({ version: V }) => V).sort(), X = z.find(({ version: V }) => I[1].eq(V)); if (X) { @@ -52906,10 +52906,10 @@ ${gz(e, r)}`); } } const N = n.map(([D, q]) => [D.toHex(), q.toString()]).filter(([D]) => !f[D]).map(([D, q]) => `${this._runtimeMap[D] || D}/${q}`); - !this._options.noInitWarn && !_ && (b.length && Xy.warn(`${E}: Not decorating runtime apis without matching versions: ${b.join(", ")}`), N.length && Xy.warn(`${E}: Not decorating unknown runtime apis: ${N.join(", ")}`)); - const k = a ? (D, q) => this._rpcCore.state.call(D, q, a) : (D, q) => this._rpcCore.state.call(D, q), F = (D) => Hc({}, Object.keys(u[D]), (q) => this._decorateCall(r, u[D][q], k, o)), L = Object.keys(u); + !this._options.noInitWarn && !_ && (b.length && Ky.warn(`${E}: Not decorating runtime apis without matching versions: ${b.join(", ")}`), N.length && Ky.warn(`${E}: Not decorating unknown runtime apis: ${N.join(", ")}`)); + const k = a ? (D, q) => this._rpcCore.state.call(D, q, a) : (D, q) => this._rpcCore.state.call(D, q), F = (D) => zc({}, Object.keys(u[D]), (q) => this._decorateCall(r, u[D][q], k, o)), L = Object.keys(u); for (let D = 0, q = L.length; D < q; D++) - Jn(c, L[D], F); + Zn(c, L[D], F); return c; } _decorateCall(r, n, i, s) { @@ -52922,21 +52922,21 @@ ${gz(e, r)}`); return o.meta = n, o; } _decorateMulti(r) { - return r((n) => n.length ? (this.hasSubscriptions ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt)(n.map((i) => Array.isArray(i) ? i[0].creator.meta.type.isPlain ? [i[0].creator] : i[0].creator.meta.type.asMap.hashers.length === 1 ? [i[0].creator, i.slice(1)] : [i[0].creator, ...i.slice(1)] : [i.creator])) : xe([])); + return r((n) => n.length ? (this.hasSubscriptions ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt)(n.map((i) => Array.isArray(i) ? i[0].creator.meta.type.isPlain ? [i[0].creator] : i[0].creator.meta.type.asMap.hashers.length === 1 ? [i[0].creator, i.slice(1)] : [i[0].creator, ...i.slice(1)] : [i.creator])) : _e([])); } _decorateMultiAt(r, n, i) { return n((s) => s.length ? this._rpcCore.state.queryStorageAt(s.map((o) => { if (Array.isArray(o)) { - const { creator: a } = Yy(r, o[0].creator); + const { creator: a } = Xy(r, o[0].creator); return a.meta.type.isPlain ? [a] : a.meta.type.asMap.hashers.length === 1 ? [a, o.slice(1)] : [a, ...o.slice(1)]; } - return [Yy(r, o.creator).creator]; - }), i) : xe([])); + return [Xy(r, o.creator).creator]; + }), i) : _e([])); } _decorateExtrinsics({ tx: r }, n) { - const i = E_(this._type, this._rx, n), s = (a) => Hc({}, Object.keys(r[a]), (c) => c.startsWith("$") ? r[a][c] : this._decorateExtrinsicEntry(r[a][c], i)), o = Object.keys(r); + const i = __(this._type, this._rx, n), s = (a) => zc({}, Object.keys(r[a]), (c) => c.startsWith("$") ? r[a][c] : this._decorateExtrinsicEntry(r[a][c], i)), o = Object.keys(r); for (let a = 0, c = o.length; a < c; a++) - Jn(i, o[a], s); + Zn(i, o[a], s); return i; } _decorateExtrinsicEntry(r, n) { @@ -52944,30 +52944,30 @@ ${gz(e, r)}`); return i.is = (s) => r.is(s), this._decorateFunctionMeta(r, i); } _decorateStorage({ query: r, registry: n }, i, s) { - const o = {}, a = (u) => Hc({}, Object.keys(r[u]), (f) => s ? this._decorateStorageEntryAt(n, r[u][f], i, s) : this._decorateStorageEntry(r[u][f], i)), c = Object.keys(r); + const o = {}, a = (u) => zc({}, Object.keys(r[u]), (f) => s ? this._decorateStorageEntryAt(n, r[u][f], i, s) : this._decorateStorageEntry(r[u][f], i)), c = Object.keys(r); for (let u = 0, f = c.length; u < f; u++) - Jn(o, c[u], a); + Zn(o, c[u], a); return o; } _decorateStorageEntry(r, n) { - const i = (a, c) => cp(c || this.__internal__registry, r, a), s = (a) => Fr(this.at(a)).pipe(we((c) => Yy(c, r))), o = this._decorateStorageCall(r, n); - return o.creator = r, o.at = n((a, ...c) => s(a).pipe(Oe((u) => u(...c)))), o.hash = n((...a) => this._rpcCore.state.getStorageHash(i(a))), o.is = (a) => a.section === r.section && a.method === r.method, o.key = (...a) => Bt(hd(r(...a))[1]), o.keyPrefix = (...a) => Bt(r.keyPrefix(...a)), o.size = n((...a) => this._rpcCore.state.getStorageSize(i(a))), o.sizeAt = n((a, ...c) => s(a).pipe(Oe((u) => this._rpcCore.state.getStorageSize(i(c, u.creator.meta.registry), a)))), r.iterKey && r.meta.type.isMap && (o.entries = n(Le(this.__internal__instanceId, (...a) => this._retrieveMapEntries(r, null, a))), o.entriesAt = n(Le(this.__internal__instanceId, (a, ...c) => s(a).pipe(Oe((u) => this._retrieveMapEntries(u.creator, a, c))))), o.entriesPaged = n(Le(this.__internal__instanceId, (a) => this._retrieveMapEntriesPaged(r, void 0, a))), o.keys = n(Le(this.__internal__instanceId, (...a) => this._retrieveMapKeys(r, null, a))), o.keysAt = n(Le(this.__internal__instanceId, (a, ...c) => s(a).pipe(Oe((u) => this._retrieveMapKeys(u.creator, a, c))))), o.keysPaged = n(Le(this.__internal__instanceId, (a) => this._retrieveMapKeysPaged(r, void 0, a)))), this.supportMulti && r.meta.type.isMap && (o.multi = n((a) => r.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(a.map((c) => [r, [c]])) : this._retrieveMulti(a.map((c) => [r, c])))), this._decorateFunctionMeta(r, o); + const i = (a, c) => cp(c || this.__internal__registry, r, a), s = (a) => zr(this.at(a)).pipe(we((c) => Xy(c, r))), o = this._decorateStorageCall(r, n); + return o.creator = r, o.at = n((a, ...c) => s(a).pipe(Pe((u) => u(...c)))), o.hash = n((...a) => this._rpcCore.state.getStorageHash(i(a))), o.is = (a) => a.section === r.section && a.method === r.method, o.key = (...a) => Bt(fd(r(...a))[1]), o.keyPrefix = (...a) => Bt(r.keyPrefix(...a)), o.size = n((...a) => this._rpcCore.state.getStorageSize(i(a))), o.sizeAt = n((a, ...c) => s(a).pipe(Pe((u) => this._rpcCore.state.getStorageSize(i(c, u.creator.meta.registry), a)))), r.iterKey && r.meta.type.isMap && (o.entries = n(Le(this.__internal__instanceId, (...a) => this._retrieveMapEntries(r, null, a))), o.entriesAt = n(Le(this.__internal__instanceId, (a, ...c) => s(a).pipe(Pe((u) => this._retrieveMapEntries(u.creator, a, c))))), o.entriesPaged = n(Le(this.__internal__instanceId, (a) => this._retrieveMapEntriesPaged(r, void 0, a))), o.keys = n(Le(this.__internal__instanceId, (...a) => this._retrieveMapKeys(r, null, a))), o.keysAt = n(Le(this.__internal__instanceId, (a, ...c) => s(a).pipe(Pe((u) => this._retrieveMapKeys(u.creator, a, c))))), o.keysPaged = n(Le(this.__internal__instanceId, (a) => this._retrieveMapKeysPaged(r, void 0, a)))), this.supportMulti && r.meta.type.isMap && (o.multi = n((a) => r.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(a.map((c) => [r, [c]])) : this._retrieveMulti(a.map((c) => [r, c])))), this._decorateFunctionMeta(r, o); } _decorateStorageEntryAt(r, n, i, s) { const o = (c) => cp(r, n, c), a = i((...c) => this._rpcCore.state.getStorage(o(c), s)); - return a.creator = n, a.hash = i((...c) => this._rpcCore.state.getStorageHash(o(c), s)), a.is = (c) => c.section === n.section && c.method === n.method, a.key = (...c) => Bt(hd(n(...c))[1]), a.keyPrefix = (...c) => Bt(n.keyPrefix(...c)), a.size = i((...c) => this._rpcCore.state.getStorageSize(o(c), s)), n.iterKey && n.meta.type.isMap && (a.entries = i(Le(this.__internal__instanceId, (...c) => this._retrieveMapEntries(n, s, c))), a.entriesPaged = i(Le(this.__internal__instanceId, (c) => this._retrieveMapEntriesPaged(n, s, c))), a.keys = i(Le(this.__internal__instanceId, (...c) => this._retrieveMapKeys(n, s, c))), a.keysPaged = i(Le(this.__internal__instanceId, (c) => this._retrieveMapKeysPaged(n, s, c)))), this.supportMulti && n.meta.type.isMap && (a.multi = i((c) => n.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(c.map((u) => [n, [u]]), s) : this._retrieveMulti(c.map((u) => [n, u]), s))), this._decorateFunctionMeta(n, a); + return a.creator = n, a.hash = i((...c) => this._rpcCore.state.getStorageHash(o(c), s)), a.is = (c) => c.section === n.section && c.method === n.method, a.key = (...c) => Bt(fd(n(...c))[1]), a.keyPrefix = (...c) => Bt(n.keyPrefix(...c)), a.size = i((...c) => this._rpcCore.state.getStorageSize(o(c), s)), n.iterKey && n.meta.type.isMap && (a.entries = i(Le(this.__internal__instanceId, (...c) => this._retrieveMapEntries(n, s, c))), a.entriesPaged = i(Le(this.__internal__instanceId, (c) => this._retrieveMapEntriesPaged(n, s, c))), a.keys = i(Le(this.__internal__instanceId, (...c) => this._retrieveMapKeys(n, s, c))), a.keysPaged = i(Le(this.__internal__instanceId, (c) => this._retrieveMapKeysPaged(n, s, c)))), this.supportMulti && n.meta.type.isMap && (a.multi = i((c) => n.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(c.map((u) => [n, [u]]), s) : this._retrieveMulti(c.map((u) => [n, u]), s))), this._decorateFunctionMeta(n, a); } _queueStorage(r, n) { const i = n === this.__internal__storageSubQ ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; let s = n.length - 1, o = 0, a; - return s === -1 || !n[s] || n[s][1].length === Aue ? (s++, a = Fr( + return s === -1 || !n[s] || n[s][1].length === Nue ? (s++, a = zr( new Promise((c) => { - Zc(() => { + Xc(() => { const u = n[s][1]; delete n[s], c(u); }); }) - ).pipe(Oe((c) => i(c))), n.push([a, [r]])) : (a = n[s][0], o = n[s][1].length, n[s][1].push(r)), a.pipe( + ).pipe(Pe((c) => i(c))), n.push([a, [r]])) : (a = n[s][0], o = n[s][1].length, n[s][1].push(r)), a.pipe( we((c) => c[o]) ); } @@ -52983,18 +52983,18 @@ ${gz(e, r)}`); } _retrieveMulti(r, n) { if (!r.length) - return xe([]); + return _e([]); const i = this.hasSubscriptions && !n ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; - return r.length <= Ky ? n ? i(r, n) : i(r) : Qe(T1(r, Ky).map((s) => n ? i(s, n) : i(s))).pipe(we(zu)); + return r.length <= Gy ? n ? i(r, n) : i(r) : $e(N1(r, Gy).map((s) => n ? i(s, n) : i(s))).pipe(we(zu)); } _retrieveMapKeys({ iterKey: r, meta: n, method: i, section: s }, o, a) { if (!r || !n.type.isMap) throw new Error("keys can only be retrieved on maps"); - const c = r(...a).toHex(), u = new Xc(c), f = o ? (b) => this._rpcCore.state.getKeysPaged(c, up, b, o) : (b) => this._rpcCore.state.getKeysPaged(c, up, b), p = (b) => b.setMeta(n, s, i); + const c = r(...a).toHex(), u = new Gc(c), f = o ? (b) => this._rpcCore.state.getKeysPaged(c, up, b, o) : (b) => this._rpcCore.state.getKeysPaged(c, up, b), p = (b) => b.setMeta(n, s, i); return u.pipe( - Oe(f), + Pe(f), we((b) => b.map(p)), - Us((b) => Zc(() => { + Bs((b) => Xc(() => { b.length === up ? u.next(b[up - 1].toHex()) : u.complete(); })), ml(), @@ -53009,27 +53009,27 @@ ${gz(e, r)}`); } _retrieveMapEntries(r, n, i) { const s = n ? (o) => this._rpcCore.state.queryStorageAt(o, n) : (o) => this._rpcCore.state.queryStorageAt(o); - return this._retrieveMapKeys(r, n, i).pipe(Oe((o) => o.length ? Qe(T1(o, Ky).map(s)).pipe(we((a) => zu(a).map((c, u) => [o[u], c]))) : xe([]))); + return this._retrieveMapKeys(r, n, i).pipe(Pe((o) => o.length ? $e(N1(o, Gy).map(s)).pipe(we((a) => zu(a).map((c, u) => [o[u], c]))) : _e([]))); } _retrieveMapEntriesPaged(r, n, i) { const s = n ? (o) => this._rpcCore.state.queryStorageAt(o, n) : (o) => this._rpcCore.state.queryStorageAt(o); - return this._retrieveMapKeysPaged(r, n, i).pipe(Oe((o) => o.length ? s(o).pipe(we((a) => a.map((c, u) => [o[u], c]))) : xe([]))); + return this._retrieveMapKeysPaged(r, n, i).pipe(Pe((o) => o.length ? s(o).pipe(we((a) => a.map((c, u) => [o[u], c]))) : _e([]))); } _decorateDeriveRx(r) { var s, o, a, c; const n = (s = this._runtimeVersion) == null ? void 0 : s.specName.toString(), i = aR(this.__internal__instanceId, this._rx, st({}, this._options.derives, (c = (a = (o = this._options.typesBundle) == null ? void 0 : o.spec) == null ? void 0 : a[n || ""]) == null ? void 0 : c.derives)); - return v_(r, i); + return w_(r, i); } _decorateDerive(r) { - return v_(r, this._rx.derive); + return w_(r, this._rx.derive); } }; - var Iue = 1e4; - var Zy = mi("api/init"); - function Oue(t) { + var Pue = 1e4; + var Yy = mi("api/init"); + function kue(t) { return t.toString(); } - var Pue = class extends Nue { + var Rue = class extends Oue { constructor(r, n, i) { super(r, n, i); re(this, "__internal__atLast", null); @@ -53037,13 +53037,13 @@ ${gz(e, r)}`); re(this, "__internal__registries", []); re(this, "__internal__updateSub", null); re(this, "__internal__waitingRegistries", {}); - this.registry.setKnownTypes(r), r.source ? this.__internal__registries = r.source.__internal__registries : this.registerTypes(r.types), this._rpc = this._decorateRpc(this._rpcCore, this._decorateMethod), this._rx.rpc = this._decorateRpc(this._rpcCore, this._rxDecorateMethod), this.supportMulti && (this._queryMulti = this._decorateMulti(this._decorateMethod), this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod)), this._rx.signer = r.signer, this._rpcCore.setRegistrySwap((s) => this.getBlockRegistry(s)), this._rpcCore.setResolveBlockHash((s) => wn(this._rpcCore.chain.getBlockHash(s))), this.hasSubscriptions ? (this._rpcCore.provider.on("disconnected", () => this.__internal__onProviderDisconnect()), this._rpcCore.provider.on("error", (s) => this.__internal__onProviderError(s)), this._rpcCore.provider.on("connected", () => this.__internal__onProviderConnect())) : this._options.noInitWarn || Zy.warn("Api will be available in a limited mode since the provider does not support subscriptions"), this._rpcCore.provider.isConnected && this.__internal__onProviderConnect().catch(os); + this.registry.setKnownTypes(r), r.source ? this.__internal__registries = r.source.__internal__registries : this.registerTypes(r.types), this._rpc = this._decorateRpc(this._rpcCore, this._decorateMethod), this._rx.rpc = this._decorateRpc(this._rpcCore, this._rxDecorateMethod), this.supportMulti && (this._queryMulti = this._decorateMulti(this._decorateMethod), this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod)), this._rx.signer = r.signer, this._rpcCore.setRegistrySwap((s) => this.getBlockRegistry(s)), this._rpcCore.setResolveBlockHash((s) => wn(this._rpcCore.chain.getBlockHash(s))), this.hasSubscriptions ? (this._rpcCore.provider.on("disconnected", () => this.__internal__onProviderDisconnect()), this._rpcCore.provider.on("error", (s) => this.__internal__onProviderError(s)), this._rpcCore.provider.on("connected", () => this.__internal__onProviderConnect())) : this._options.noInitWarn || Yy.warn("Api will be available in a limited mode since the provider does not support subscriptions"), this._rpcCore.provider.isConnected && this.__internal__onProviderConnect().catch(os); } _initRegistry(r, n, i, s, o) { - r.clearCache(), r.setChainProperties(o || this.registry.getChainProperties()), r.setKnownTypes(this._options), r.register(Q8(r, n, i.specName, i.specVersion)), r.setHasher(fR(r, n, i.specName)), r.knownTypes.typesBundle && (r.knownTypes.typesAlias = dR(r, n, i.specName)), r.setMetadata(s, void 0, st({}, lR(r, n, i.specName), this._options.signedExtensions), this._options.noInitWarn); + r.clearCache(), r.setChainProperties(o || this.registry.getChainProperties()), r.setKnownTypes(this._options), r.register(J8(r, n, i.specName, i.specVersion)), r.setHasher(fR(r, n, i.specName)), r.knownTypes.typesBundle && (r.knownTypes.typesAlias = dR(r, n, i.specName)), r.setMetadata(s, void 0, st({}, lR(r, n, i.specName), this._options.signedExtensions), this._options.noInitWarn); } _getDefaultRegistry() { - return La(this.__internal__registries.find(({ isDefault: r }) => r), "Initialization error, cannot find the default registry"); + return Ca(this.__internal__registries.find(({ isDefault: r }) => r), "Initialization error, cannot find the default registry"); } async at(r, n) { const i = Xe(r), s = Bt(i), o = await this.getBlockRegistry(i, n); @@ -53078,7 +53078,7 @@ ${gz(e, r)}`); async _getBlockRegistryViaHash(r) { if (!this._genesisHash || !this._runtimeVersion) throw new Error("Cannot retrieve data on an uninitialized chain"); - const n = this.registry.createType("HeaderPartial", this._genesisHash.eq(r) ? { number: Jr, parentHash: this._genesisHash } : await wn(this._rpcCore.chain.getHeader.raw(r))); + const n = this.registry.createType("HeaderPartial", this._genesisHash.eq(r) ? { number: Zr, parentHash: this._genesisHash } : await wn(this._rpcCore.chain.getHeader.raw(r))); if (n.parentHash.isEmpty) throw new Error("Unable to retrieve header and parent from supplied hash"); pR(this._genesisHash, n.number); @@ -53100,13 +53100,13 @@ ${gz(e, r)}`); for (let u = 0, f = c.length; u < f; u++) i.push(`${a}_${c[u]}`); } - return this._filterRpc(i, iw(this.registry, r.runtimeChain, r.runtimeVersion.specName)), [r.genesisHash, r.runtimeMetadata]; + return this._filterRpc(i, nw(this.registry, r.runtimeChain, r.runtimeVersion.specName)), [r.genesisHash, r.runtimeMetadata]; } _subscribeUpdates() { - this.__internal__updateSub || !this.hasSubscriptions || (this.__internal__updateSub = this._rpcCore.state.subscribeRuntimeVersion().pipe(Oe((r) => { + this.__internal__updateSub || !this.hasSubscriptions || (this.__internal__updateSub = this._rpcCore.state.subscribeRuntimeVersion().pipe(Pe((r) => { var n; - return (n = this._runtimeVersion) != null && n.specVersion.eq(r.specVersion) ? xe(false) : this._rpcCore.state.getMetadata().pipe(we((i) => { - Zy.log(`Runtime version updated to spec=${r.specVersion.toString()}, tx=${r.transactionVersion.toString()}`), this._runtimeMetadata = i, this._runtimeVersion = r, this._rx.runtimeVersion = r; + return (n = this._runtimeVersion) != null && n.specVersion.eq(r.specVersion) ? _e(false) : this._rpcCore.state.getMetadata().pipe(we((i) => { + Yy.log(`Runtime version updated to spec=${r.specVersion.toString()}, tx=${r.transactionVersion.toString()}`), this._runtimeMetadata = i, this._runtimeVersion = r, this._rx.runtimeVersion = r; const s = this._getDefaultRegistry(), o = this._runtimeChain; if (!o) throw new Error("Invalid initializion order, runtimeChain is not available"); @@ -53125,7 +53125,7 @@ ${gz(e, r)}`); ]); this._runtimeChain = s, this._runtimeVersion = i, this._rx.runtimeVersion = i; const u = `${n.toHex() || "0x"}-${i.specVersion.toString()}`, f = c || (r != null && r[u] ? new Df(this.registry, r[u]) : await wn(this._rpcCore.state.getMetadata())); - return this._initRegistry(this.registry, s, i, f, o), this._filterRpc(a.methods.map(Oue), iw(this.registry, s, i.specName)), this._subscribeUpdates(), this.__internal__registries.length || this.__internal__registries.push({ counter: 0, isDefault: true, metadata: f, registry: this.registry, runtimeVersion: i }), f.getUniqTypes(this._options.throwOnUnknown || false), [n, f]; + return this._initRegistry(this.registry, s, i, f, o), this._filterRpc(a.methods.map(kue), nw(this.registry, s, i.specName)), this._subscribeUpdates(), this.__internal__registries.length || this.__internal__registries.push({ counter: 0, isDefault: true, metadata: f, registry: this.registry, runtimeVersion: i }), f.getUniqTypes(this._options.throwOnUnknown || false), [n, f]; } _initFromMeta(r) { const n = this._runtimeVersion; @@ -53136,7 +53136,7 @@ ${gz(e, r)}`); _subscribeHealth() { this._unsubscribeHealth(), this.__internal__healthTimer = this.hasSubscriptions ? setInterval(() => { wn(this._rpcCore.system.health.raw()).catch(os); - }, Iue) : null; + }, Pue) : null; } _unsubscribeHealth() { this.__internal__healthTimer && (clearInterval(this.__internal__healthTimer), this.__internal__healthTimer = null); @@ -53154,7 +53154,7 @@ ${gz(e, r)}`); this._subscribeHealth(), n && !this._isReady && r && (this._isReady = true, this.emit("ready", this)); } catch (r) { const n = new Error(`FATAL: Unable to initialize the API: ${r.message}`); - Zy.error(n), this.emit("error", n); + Yy.error(n), this.emit("error", n); } } __internal__onProviderDisconnect() { @@ -53164,59 +53164,59 @@ ${gz(e, r)}`); this.emit("error", r); } }; - function Ii(t) { + function Ni(t) { if (t === void 0) throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'"); return t; } - var kue = class extends Pue { + var Cue = class extends Rue { get call() { - return Ii(this._call); + return Ni(this._call); } get consts() { - return Ii(this._consts); + return Ni(this._consts); } get derive() { - return Ii(this._derive); + return Ni(this._derive); } get errors() { - return Ii(this._errors); + return Ni(this._errors); } get events() { - return Ii(this._events); + return Ni(this._events); } get extrinsicVersion() { return this._extrinsicType; } get genesisHash() { - return Ii(this._genesisHash); + return Ni(this._genesisHash); } get isConnected() { return this._isConnected.getValue(); } get libraryInfo() { - return `${um.name} v${um.version}`; + return `${lm.name} v${lm.version}`; } get query() { - return Ii(this._query); + return Ni(this._query); } get queryMulti() { - return Ii(this._queryMulti); + return Ni(this._queryMulti); } get rpc() { - return Ii(this._rpc); + return Ni(this._rpc); } get runtimeChain() { - return Ii(this._runtimeChain); + return Ni(this._runtimeChain); } get runtimeMetadata() { - return Ii(this._runtimeMetadata); + return Ni(this._runtimeMetadata); } get runtimeVersion() { - return Ii(this._runtimeVersion); + return Ni(this._runtimeVersion); } get rx() { - return Ii(this._rx); + return Ni(this._rx); } get stats() { return this._rpcCore.stats; @@ -53225,7 +53225,7 @@ ${gz(e, r)}`); return this._type; } get tx() { - return Ii(this._extrinsics); + return Ni(this._extrinsics); } findCall(e) { return xR(this.registry, e); @@ -53234,7 +53234,7 @@ ${gz(e, r)}`); return _R(this.registry, e); } }; - var ER = class extends kue { + var ER = class extends Cue { constructor(e = {}, r, n) { super(e, r, n); } @@ -53257,7 +53257,7 @@ ${gz(e, r)}`); return Bt(e.sign(Xe(r.data))); } }; - var Rue = class { + var Due = class { constructor(e, r) { re(this, "__internal__allHasFired", false); re(this, "__internal__callback"); @@ -53297,7 +53297,7 @@ ${gz(e, r)}`); })); } }; - function ix(t, e) { + function nx(t, e) { let r = false; return { reject: (n) => (r || (r = true, e(n)), Gi), @@ -53306,34 +53306,34 @@ ${gz(e, r)}`); } }; } - function Cue(t, e) { + function Lue(t, e) { const r = t.slice(), n = t.length && St(t[t.length - 1]) ? r.pop() : void 0; if (e && !St(n)) throw new Error("Expected a callback to be passed with subscriptions"); return [r, n]; } - function Due(t, e) { + function Bue(t, e) { return new Promise((r, n) => { - const i = ix(r, n), s = t(...e).pipe(Yt((o) => i.reject(o))).subscribe((o) => { - i.resolve(o), Zc(() => s.unsubscribe()); + const i = nx(r, n), s = t(...e).pipe($t((o) => i.reject(o))).subscribe((o) => { + i.resolve(o), Xc(() => s.unsubscribe()); }); }); } - function Lue(t, e, r) { + function Uue(t, e, r) { return new Promise((n, i) => { - const s = ix(n, i), o = t(...e).pipe(Yt((a) => s.reject(a)), Us(() => s.resolve(() => o.unsubscribe()))).subscribe((a) => { - Zc(() => r(a)); + const s = nx(n, i), o = t(...e).pipe($t((a) => s.reject(a)), Bs(() => s.resolve(() => o.unsubscribe()))).subscribe((a) => { + Xc(() => r(a)); }); }); } function SR(t, e) { const r = !!(e != null && e.methodName && e.methodName.includes("subscribe")); return function(...n) { - const [i, s] = Cue(n, r); - return s ? Lue(t, i, s) : Due((e == null ? void 0 : e.overrideNoSub) || t, i); + const [i, s] = Lue(n, r); + return s ? Uue(t, i, s) : Bue((e == null ? void 0 : e.overrideNoSub) || t, i); }; } - var fm = class extends ER { + var hm = class extends ER { constructor(r) { super(r, "promise", SR); re(this, "__internal__isReadyPromise"); @@ -53341,12 +53341,12 @@ ${gz(e, r)}`); this.__internal__isReadyPromise = new Promise((n) => { super.once("ready", () => n(this)); }), this.__internal__isReadyOrErrorPromise = new Promise((n, i) => { - const s = ix(n, i); + const s = nx(n, i); super.once("ready", () => s.resolve(this)), super.once("error", (o) => s.reject(o)); }); } static create(r) { - const n = new fm(r); + const n = new hm(r); return r && r.throwOnConnect ? n.isReadyOrError : (n.isReadyOrError.catch(os), n.isReady); } get isReady() { @@ -53356,10 +53356,10 @@ ${gz(e, r)}`); return this.__internal__isReadyOrErrorPromise; } clone() { - return new fm(st({}, this._options, { source: this })); + return new hm(st({}, this._options, { source: this })); } async combineLatest(r, n) { - const i = new Rue(r, n); + const i = new Due(r, n); return () => { i.unsubscribe(); }; @@ -53368,59 +53368,59 @@ ${gz(e, r)}`); function MR(t) { return t; } - var hm = class extends ER { + var dm = class extends ER { constructor(r) { super(r, "rxjs", MR); re(this, "__internal__isReadyRx"); - this.__internal__isReadyRx = Fr( + this.__internal__isReadyRx = zr( new Promise((n) => { super.on("ready", () => n(this)); }) ); } static create(r) { - return new hm(r).isReady; + return new dm(r).isReady; } get isReady() { return this.__internal__isReadyRx; } clone() { - return new hm(st({}, this._options, { source: this })); + return new dm(st({}, this._options, { source: this })); } }; - var Bue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var jue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ApiPromise: fm, - ApiRx: hm, - HttpProvider: tx, - Keyring: Jce, - ScProvider: sue, - SubmittableResult: Wp, - WsProvider: uu, - packageInfo: um, + ApiPromise: hm, + ApiRx: dm, + HttpProvider: ex, + Keyring: $ce, + ScProvider: aue, + SubmittableResult: Gp, + WsProvider: cu, + packageInfo: lm, toPromiseMethod: SR, toRxMethod: MR }, Symbol.toStringTag, { value: "Module" })); - var Uue = /* @__PURE__ */ fn(Bue); + var Vue = /* @__PURE__ */ fn(jue); var $g = {}; var e2 = {}; var AR = {}; var t2 = {}; - var TR = /* @__PURE__ */ fn(Pre); + var TR = /* @__PURE__ */ fn(Rre); t2.__esModule = true; t2.balance = void 0; - var jue = TR; - var Jy = $8; - var Vue = (t, e) => (0, jue.memo)(t, (r, n) => e.rpc.system.properties().pipe((0, Jy.mergeMap)((i) => { + var zue = TR; + var Zy = Q8; + var Fue = (t, e) => (0, zue.memo)(t, (r, n) => e.rpc.system.properties().pipe((0, Zy.mergeMap)((i) => { const s = e.registry.createType("CurrencyId", n), o = i.tokenSymbol.unwrapOrDefault()[0].toString(), a = e.registry.createType("CurrencyId", (e.registry.getDefinition("CurrencyId") || "").includes('"Token":"TokenSymbol"') ? { Token: o } : o); if (s.eq(a)) - return e.query.system.account(r).pipe((0, Jy.map)((b) => b.data.free)); + return e.query.system.account(r).pipe((0, Zy.map)((b) => b.data.free)); const c = e.query.tokens.accounts.creator.meta.type.asMap.key, [u] = e.registry.lookup.getSiType(c).def.asTuple, p = e.registry.lookup.getTypeDef(u).type === "CurrencyId" ? [n, r] : [r, n]; - return e.query.tokens.accounts(...p).pipe((0, Jy.map)((b) => b.free)); + return e.query.tokens.accounts(...p).pipe((0, Zy.map)((b) => b.free)); }))); - t2.balance = Vue; + t2.balance = Fue; (function(t) { t.__esModule = true; var e = t2; @@ -53430,43 +53430,43 @@ ${gz(e, r)}`); })(AR); e2.__esModule = true; e2.derive = void 0; - var zue = AR; - var Fue = { + var Hue = AR; + var que = { currencies: { - balance: zue.balance + balance: Hue.balance } }; - e2.derive = Fue; - var Gc = {}; - Object.defineProperty(Gc, "__esModule", { value: true }); - Gc.allCurrencyIds = Gc.allNonNativeCurrencyIds = Gc.nativeCurrencyId = void 0; - var sx = TR; - var ox = mR; - var NR = $8; + e2.derive = que; + var qc = {}; + Object.defineProperty(qc, "__esModule", { value: true }); + qc.allCurrencyIds = qc.allNonNativeCurrencyIds = qc.nativeCurrencyId = void 0; + var ix = TR; + var sx = mR; + var NR = Q8; function IR(t) { return t.rpc.system.properties().pipe((0, NR.switchMap)((e) => { const r = e.tokenSymbol.unwrapOrDefault()[0].toString(); - return (0, ox.of)(t.registry.createType("CurrencyId", t.registry.createType("TokenSymbol", r))); + return (0, sx.of)(t.registry.createType("CurrencyId", t.registry.createType("TokenSymbol", r))); })); } - function Hue(t, e) { - return (0, sx.memo)(t, () => IR(e)); + function Wue(t, e) { + return (0, ix.memo)(t, () => IR(e)); } - Gc.nativeCurrencyId = Hue; + qc.nativeCurrencyId = Wue; function OR(t) { return t.consts.transactionPayment.allNonNativeCurrencyIds; } - function que(t, e) { - return (0, sx.memo)(t, () => (0, ox.of)(OR(e))); + function Gue(t, e) { + return (0, ix.memo)(t, () => (0, sx.of)(OR(e))); } - Gc.allNonNativeCurrencyIds = que; - function Wue(t, e) { - return (0, sx.memo)(t, () => IR(e).pipe((0, NR.switchMap)((r) => (0, ox.of)([ + qc.allNonNativeCurrencyIds = Gue; + function Kue(t, e) { + return (0, ix.memo)(t, () => IR(e).pipe((0, NR.switchMap)((r) => (0, sx.of)([ r, ...OR(e).slice() ])))); } - Gc.allCurrencyIds = Wue; + qc.allCurrencyIds = Kue; var r2 = {}; Object.defineProperty(r2, "__esModule", { value: true }); r2.defaultOptions = void 0; @@ -53776,7 +53776,7 @@ ${gz(e, r)}`); }, signedExtensions: { SetEvmOrigin: { extrinsic: {}, payload: {} } } }; - var Gue = Lt && Lt.__createBinding || (Object.create ? function(t, e, r, n) { + var Xue = Lt && Lt.__createBinding || (Object.create ? function(t, e, r, n) { n === void 0 && (n = r); var i = Object.getOwnPropertyDescriptor(e, r); (!i || ("get" in i ? !e.__esModule : i.writable || i.configurable)) && (i = { enumerable: true, get: function() { @@ -53785,21 +53785,21 @@ ${gz(e, r)}`); } : function(t, e, r, n) { n === void 0 && (n = r), t[n] = e[r]; }); - var Kue = Lt && Lt.__setModuleDefault || (Object.create ? function(t, e) { + var Yue = Lt && Lt.__setModuleDefault || (Object.create ? function(t, e) { Object.defineProperty(t, "default", { enumerable: true, value: e }); } : function(t, e) { t.default = e; }); - var Xue = Lt && Lt.__importStar || function(t) { + var Zue = Lt && Lt.__importStar || function(t) { if (t && t.__esModule) return t; var e = {}; if (t != null) for (var r in t) - r !== "default" && Object.prototype.hasOwnProperty.call(t, r) && Gue(e, t, r); - return Kue(e, t), e; + r !== "default" && Object.prototype.hasOwnProperty.call(t, r) && Xue(e, t, r); + return Yue(e, t), e; }; - var Yue = Lt && Lt.__rest || function(t, e) { + var Jue = Lt && Lt.__rest || function(t, e) { var r = {}; for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]); @@ -53810,22 +53810,22 @@ ${gz(e, r)}`); }; Object.defineProperty($g, "__esModule", { value: true }); $g.options = void 0; - var Zue = e2; - var Jue = Xue(Gc); - var v0 = r2; - var Que = { - constants: Jue - }; - var $ue = v0.defaultOptions.rpc; - var ele = v0.defaultOptions.types; - var tle = v0.defaultOptions.typesAlias; - var zl = v0.defaultOptions.typesBundle; - var rle = v0.defaultOptions.signedExtensions; - var nle = (t = {}) => { - var e, r, n, i, { types: s = {}, rpc: o = {}, typesAlias: a = {}, typesBundle: c = {}, signedExtensions: u } = t, f = Yue(t, ["types", "rpc", "typesAlias", "typesBundle", "signedExtensions"]); - return Object.assign({ types: Object.assign(Object.assign({}, ele), s), rpc: Object.assign(Object.assign({}, $ue), o), typesAlias: Object.assign(Object.assign({}, tle), a), derives: Object.assign(Object.assign({}, Zue.derive), Que), typesBundle: Object.assign(Object.assign({}, c), { spec: Object.assign(Object.assign({}, c.spec), { acala: Object.assign(Object.assign({}, (e = zl == null ? void 0 : zl.spec) === null || e === void 0 ? void 0 : e.acala), (r = c == null ? void 0 : c.spec) === null || r === void 0 ? void 0 : r.acala), mandala: Object.assign(Object.assign({}, (n = zl == null ? void 0 : zl.spec) === null || n === void 0 ? void 0 : n.mandala), (i = c == null ? void 0 : c.spec) === null || i === void 0 ? void 0 : i.mandala) }) }), signedExtensions: Object.assign(Object.assign({}, rle), u) }, f); - }; - $g.options = nle; + var Que = e2; + var $ue = Zue(qc); + var x0 = r2; + var ele = { + constants: $ue + }; + var tle = x0.defaultOptions.rpc; + var rle = x0.defaultOptions.types; + var nle = x0.defaultOptions.typesAlias; + var zl = x0.defaultOptions.typesBundle; + var ile = x0.defaultOptions.signedExtensions; + var sle = (t = {}) => { + var e, r, n, i, { types: s = {}, rpc: o = {}, typesAlias: a = {}, typesBundle: c = {}, signedExtensions: u } = t, f = Jue(t, ["types", "rpc", "typesAlias", "typesBundle", "signedExtensions"]); + return Object.assign({ types: Object.assign(Object.assign({}, rle), s), rpc: Object.assign(Object.assign({}, tle), o), typesAlias: Object.assign(Object.assign({}, nle), a), derives: Object.assign(Object.assign({}, Que.derive), ele), typesBundle: Object.assign(Object.assign({}, c), { spec: Object.assign(Object.assign({}, c.spec), { acala: Object.assign(Object.assign({}, (e = zl == null ? void 0 : zl.spec) === null || e === void 0 ? void 0 : e.acala), (r = c == null ? void 0 : c.spec) === null || r === void 0 ? void 0 : r.acala), mandala: Object.assign(Object.assign({}, (n = zl == null ? void 0 : zl.spec) === null || n === void 0 ? void 0 : n.mandala), (i = c == null ? void 0 : c.spec) === null || i === void 0 ? void 0 : i.mandala) }) }), signedExtensions: Object.assign(Object.assign({}, ile), u) }, f); + }; + $g.options = sle; var ar = Lt && Lt.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { @@ -53853,26 +53853,26 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var ile = Lt && Lt.__importDefault || function(t) { + var ole = Lt && Lt.__importDefault || function(t) { return t && t.__esModule ? t : { default: t }; }; Object.defineProperty(Mg, "__esModule", { value: true }); Mg.Provider = void 0; - var O_ = fP; - var P_ = dP; - var gi = c8; + var I_ = fP; + var O_ = dP; + var gi = a8; var PR = hP; - var sle = ile(Ag); - var ole = Uue; - var Mc = Sg; - var ale = h8; - var bs = yd; - var cle = $g; - var Oi = new PR.Logger("evm-provider"); - var ule = class { + var ale = ole(Ag); + var cle = Vue; + var Ec = Sg; + var ule = f8; + var bs = gd; + var lle = $g; + var Ii = new PR.Logger("evm-provider"); + var fle = class { constructor(e, r) { - const n = (0, cle.options)(e); - this.api = new ole.ApiPromise(n), this.resolveApi = this.api.isReady, this._isProvider = true, this.dataProvider = r, this.scanner = new sle.default({ + const n = (0, lle.options)(e); + this.api = new cle.ApiPromise(n), this.resolveApi = this.api.isReady, this._isProvider = true, this.dataProvider = r, this.scanner = new ale.default({ wsProvider: n.provider, types: n.types, typesAlias: n.typesAlias, @@ -53942,7 +53942,7 @@ ${gz(e, r)}`); getCode(e, r) { return ar(this, void 0, void 0, function* () { yield this.resolveApi; - const { address: n, blockHash: i } = yield (0, P_.resolveProperties)({ + const { address: n, blockHash: i } = yield (0, O_.resolveProperties)({ address: (0, bs.resolveEvmAddress)(this, e), blockHash: this._getBlockTag(r) }), s = yield this.queryContractInfo(n, i); @@ -53956,15 +53956,15 @@ ${gz(e, r)}`); return ar(this, void 0, void 0, function* () { switch (e = yield e, e === void 0 && (e = "latest"), e) { case "pending": - return Oi.throwError("pending tag not implemented", PR.Logger.errors.UNSUPPORTED_OPERATION); + return Ii.throwError("pending tag not implemented", PR.Logger.errors.UNSUPPORTED_OPERATION); case "latest": return (yield this.api.rpc.chain.getBlockHash()).toHex(); case "earliest": return this.api.genesisHash.toHex(); default: { - if (!(0, O_.isHexString)(e)) - return Oi.throwArgumentError("blocktag should be a hex string", "blockTag", e); - if (typeof e == "string" && (0, O_.isHexString)(e, 32)) + if (!(0, I_.isHexString)(e)) + return Ii.throwArgumentError("blocktag should be a hex string", "blockTag", e); + if (typeof e == "string" && (0, I_.isHexString)(e, 32)) return e; const r = gi.BigNumber.from(e).toNumber(); return (yield this.api.rpc.chain.getBlockHash(r)).toHex(); @@ -53978,7 +53978,7 @@ ${gz(e, r)}`); const c = yield (0, bs.resolveEvmAddress)(this, e); return this.api.query.evm.accounts(c); } - const { address: i, blockHash: s } = yield (0, P_.resolveProperties)({ + const { address: i, blockHash: s } = yield (0, O_.resolveProperties)({ address: (0, bs.resolveEvmAddress)(this, e), blockHash: this._getBlockTag(r) }); @@ -54028,7 +54028,7 @@ ${gz(e, r)}`); return ar(this, void 0, void 0, function* () { const r = yield this._resolveTransaction(e), n = yield r.from, i = yield r.value, s = yield r.to, o = yield r.data, a = yield this._resolveStorageLimit(r); if (!n) - return Oi.throwError("From cannot be undefined"); + return Ii.throwError("From cannot be undefined"); const c = s ? this.api.tx.evm.call(s, o, (0, bs.toBN)(i), (0, bs.toBN)(yield r.gasLimit), (0, bs.toBN)(a)) : this.api.tx.evm.create(o, (0, bs.toBN)(i), (0, bs.toBN)(yield r.gasLimit), (0, bs.toBN)(a)), u = yield this.api.rpc.evm.estimateResources( r.from, c.toHex() @@ -54082,29 +54082,29 @@ ${gz(e, r)}`); } _fail(e) { return Promise.resolve().then(() => { - Oi.throwError(`Unsupport ${e}`); + Ii.throwError(`Unsupport ${e}`); }); } emit(e, ...r) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } listenerCount(e) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } listeners(e) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } off(e, r) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } on(e, r) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } once(e, r) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } removeAllListeners(e) { - return Oi.throwError("Unsupport Event"); + return Ii.throwError("Unsupport Event"); } addListener(e, r) { return this.on(e, r); @@ -54118,10 +54118,10 @@ ${gz(e, r)}`); blockHash: r }), s = i.number, o = i.extrinsics.find(({ hash: F }) => F === e); if (!o) - return Oi.throwError("Transaction hash not found"); + return Ii.throwError("Transaction hash not found"); const a = o.index, c = i.events.filter(({ phaseIndex: F }) => F === a), u = c.find((F) => F.section.toUpperCase() === "EVM" && F.method.toUpperCase() === "CREATED"), f = c.find((F) => F.section.toUpperCase() === "EVM" && F.method.toUpperCase() === "EXECUTED"), p = c.find((F) => F.section.toUpperCase() === "SYSTEM" && F.method.toUpperCase() === "EXTRINSICSUCCESS"); if (!p) - return Oi.throwError("Can't find event"); + return Ii.throwError("Can't find event"); const b = u || f ? 1 : 0, E = u ? u.args[0] : null, _ = f ? f.args[0] : null, N = c.filter((F) => F.method.toUpperCase() === "LOG" && F.section.toUpperCase() === "EVM").map((F, L) => ({ transactionHash: e, blockNumber: s, @@ -54160,13 +54160,13 @@ ${gz(e, r)}`); const r = yield e; if (r === "pending") throw new Error("Unsupport Block Pending"); - return r === "latest" ? (yield this.api.query.system.blockHash()).toString() : r === "earliest" ? this.api.query.system.blockHash(0).toString() : (0, Mc.isHex)(r) ? r : (yield this.api.query.system.blockHash(r)).toString(); + return r === "latest" ? (yield this.api.query.system.blockHash()).toString() : r === "earliest" ? this.api.query.system.blockHash(0).toString() : (0, Ec.isHex)(r) ? r : (yield this.api.query.system.blockHash(r)).toString(); }); } _resolveBlockNumber(e) { return ar(this, void 0, void 0, function* () { if (yield this.resolveApi, !e) - return Oi.throwError("Blocktag cannot be undefined"); + return Ii.throwError("Blocktag cannot be undefined"); const r = yield e; if (r === "pending") throw new Error("Unsupport Block Pending"); @@ -54174,7 +54174,7 @@ ${gz(e, r)}`); return (yield this.api.rpc.chain.getHeader()).number.toNumber(); if (r === "earliest") return 0; - if ((0, Mc.isNumber)(r)) + if ((0, Ec.isNumber)(r)) return r; throw new Error("Expect blockHash to be a number or tag"); }); @@ -54182,14 +54182,14 @@ ${gz(e, r)}`); _toAddress(e) { return ar(this, void 0, void 0, function* () { const r = yield e; - return (0, ale.encodeAddress)((0, Mc.u8aFixLength)((0, Mc.u8aConcat)("evm:", (0, Mc.hexToU8a)(r)), 256, true)).toString(); + return (0, ule.encodeAddress)((0, Ec.u8aFixLength)((0, Ec.u8aConcat)("evm:", (0, Ec.hexToU8a)(r)), 256, true)).toString(); }); } _resolveTransaction(e) { return ar(this, void 0, void 0, function* () { for (const r of ["gasLimit", "value"]) { const n = r; - e[n] && (gi.BigNumber.isBigNumber(e[n]) ? e[n] = e[n].toHexString() : (0, Mc.isNumber)(e[n]) && (e[n] = (0, Mc.numberToHex)(e[n]))); + e[n] && (gi.BigNumber.isBigNumber(e[n]) ? e[n] = e[n].toHexString() : (0, Ec.isNumber)(e[n]) && (e[n] = (0, Ec.numberToHex)(e[n]))); } return delete e.nonce, delete e.gasPrice, delete e.chainId, e; }); @@ -54200,18 +54200,18 @@ ${gz(e, r)}`); const r = e.customData.storageLimit; if (gi.BigNumber.isBigNumber(r)) return r; - if ((0, Mc.isNumber)(r)) + if ((0, Ec.isNumber)(r)) return gi.BigNumber.from(r); } return gi.BigNumber.from(6e4); }); } }; - Mg.Provider = ule; + Mg.Provider = fle; var kR = {}; Object.defineProperty(kR, "__esModule", { value: true }); var n2 = {}; - var lle = Lt && Lt.__awaiter || function(t, e, r, n) { + var hle = Lt && Lt.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -54238,7 +54238,7 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var Qy = Lt && Lt.__classPrivateFieldSet || function(t, e, r, n, i) { + var Jy = Lt && Lt.__classPrivateFieldSet || function(t, e, r, n, i) { if (n === "m") throw new TypeError("Private method is not writable"); if (n === "a" && !i) @@ -54247,7 +54247,7 @@ ${gz(e, r)}`); throw new TypeError("Cannot write private member to an object whose class did not declare it"); return n === "a" ? i.call(t, r) : i ? i.value = r : e.set(t, r), r; }; - var $y = Lt && Lt.__classPrivateFieldGet || function(t, e, r, n) { + var Qy = Lt && Lt.__classPrivateFieldGet || function(t, e, r, n) { if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter"); if (typeof e == "function" ? t !== e || !n : !e.has(t)) @@ -54255,31 +54255,31 @@ ${gz(e, r)}`); return r === "m" ? n : r === "a" ? n.call(t) : n ? n.value : e.get(t); }; var Zl; - var Gp; + var Kp; Object.defineProperty(n2, "__esModule", { value: true }); n2.TestAccountSigningKey = void 0; - var fle = 0; - var hle = class { + var dle = 0; + var ple = class { constructor(e) { - Zl.set(this, void 0), Gp.set(this, void 0), Qy(this, Zl, [], "f"), Qy(this, Gp, e, "f"); + Zl.set(this, void 0), Kp.set(this, void 0), Jy(this, Zl, [], "f"), Jy(this, Kp, e, "f"); } signPayload(e) { - return lle(this, void 0, void 0, function* () { - const r = $y(this, Zl, "f").find((n) => n.address === e.address); + return hle(this, void 0, void 0, function* () { + const r = Qy(this, Zl, "f").find((n) => n.address === e.address); if (!r) throw new Error(`Can't find the keyringpair for ${e.address}`); return new Promise((n) => { - const i = $y(this, Gp, "f").createType("ExtrinsicPayload", e, { version: e.version }).sign(r); - n(Object.assign({ id: ++fle }, i)); + const i = Qy(this, Kp, "f").createType("ExtrinsicPayload", e, { version: e.version }).sign(r); + n(Object.assign({ id: ++dle }, i)); }); }); } addKeyringPair(...e) { - Qy(this, Zl, $y(this, Zl, "f").concat(...e), "f"); + Jy(this, Zl, Qy(this, Zl, "f").concat(...e), "f"); } }; - n2.TestAccountSigningKey = hle; - Zl = /* @__PURE__ */ new WeakMap(), Gp = /* @__PURE__ */ new WeakMap(); + n2.TestAccountSigningKey = ple; + Zl = /* @__PURE__ */ new WeakMap(), Kp = /* @__PURE__ */ new WeakMap(); (function(t) { var e = Lt && Lt.__createBinding || (Object.create ? function(s, o, a, c) { c === void 0 && (c = a); @@ -54294,16 +54294,16 @@ ${gz(e, r)}`); a !== "default" && !Object.prototype.hasOwnProperty.call(o, a) && e(o, s, a); }; Object.defineProperty(t, "__esModule", { value: true }), t.MAX_STORAGE_LIMIT = t.MAX_GAS_LIMIT = void 0, r(xg, t), r(Mg, t), r(kR, t), r(n2, t); - var n = yd; + var n = gd; Object.defineProperty(t, "MAX_GAS_LIMIT", { enumerable: true, get: function() { return n.U64MAX; } }); - var i = yd; + var i = gd; Object.defineProperty(t, "MAX_STORAGE_LIMIT", { enumerable: true, get: function() { return i.U32MAX; } }); })(xl); - var dle = class ow { + var mle = class sw { constructor(e, r, n) { this.selectedSignerStatus = null, this.isGetSignerMethodSubscribed = false, this.resolvesList = [], this.isSelectedAccountReceived = false, this.accounts = e, this.extSigningKey = r, this.injectedProvider = n; } @@ -54315,7 +54315,7 @@ ${gz(e, r)}`); async getSelectedAccount() { return (await this.accounts.get()).find((r) => r.isSelected); } - subscribeSelectedSigner(e, r = Ko.EVM) { + subscribeSelectedSigner(e, r = Go.EVM) { const n = this.injectedProvider.subscribeSelectedNetworkProvider( (s) => { this.selectedProvider = s, this.onSelectedSignerParamUpdate(e, r).then( @@ -54340,44 +54340,44 @@ ${gz(e, r)}`); n(), i(); }; } - async getSelectedSigner(e = Ko.EVM) { + async getSelectedSigner(e = Go.EVM) { if (this.selectedSignerStatus) return Promise.resolve({ ...this.selectedSignerStatus }); const r = new Promise((n) => { this.resolvesList.push(n); }); return this.isGetSignerMethodSubscribed || (this.isGetSignerMethodSubscribed = true, this.subscribeSelectedSigner((n) => { - this.resolvesList.length && n.status !== ji.CONNECTING && (this.selectedSignerStatus = n, this.resolvesList.forEach((i) => i({ ...n })), this.resolvesList = []); + this.resolvesList.length && n.status !== Ui.CONNECTING && (this.selectedSignerStatus = n, this.resolvesList.forEach((i) => i({ ...n })), this.resolvesList = []); }, e)), r; } async onSelectedSignerParamUpdate(e, r) { - const n = ow.createReefSigner( + const n = sw.createReefSigner( this.selectedSignerAccount, this.selectedProvider, this.extSigningKey - ), i = await ow.hasConnectedVM(r, n), s = this.getResponseStatus( + ), i = await sw.hasConnectedVM(r, n), s = this.getResponseStatus( n, i, r ); - s.status !== ji.CONNECTING && e(s); + s.status !== Ui.CONNECTING && e(s); } - getResponseStatus(e, r, n = Ko.NATIVE) { + getResponseStatus(e, r, n = Go.NATIVE) { return e ? r ? { data: e, - status: ji.OK, + status: Ui.OK, requestedVM: n } : { data: void 0, - status: ji.SELECTED_NO_VM_CONNECTION, + status: Ui.SELECTED_NO_VM_CONNECTION, requestedVM: n } : this.selectedProvider && this.extSigningKey && this.isSelectedAccountReceived && !this.selectedSignerAccount ? { data: void 0, - status: ji.NO_ACCOUNT_SELECTED, + status: Ui.NO_ACCOUNT_SELECTED, requestedVM: n } : { data: void 0, - status: ji.CONNECTING, + status: Ui.CONNECTING, requestedVM: n }; } @@ -54389,10 +54389,10 @@ ${gz(e, r)}`); ) : void 0; } static async hasConnectedVM(e, r) { - return r ? !e || e === Ko.EVM && await (r == null ? void 0 : r.isClaimed()) : false; + return r ? !e || e === Go.EVM && await (r == null ? void 0 : r.isClaimed()) : false; } }; - var ple = class { + var gle = class { constructor(e) { this.rpcUrl = null, this.provider = null, this.sendRequest = e, this.getNetworkProvider(); } @@ -54408,7 +54408,7 @@ ${gz(e, r)}`); if (!(e != null && e.rpcUrl)) throw new Error("Provider URL not found"); (e.rpcUrl !== this.rpcUrl || !this.provider) && (this.provider = new xl.Provider({ - provider: new uu(e.rpcUrl) + provider: new cu(e.rpcUrl) })); try { await this.provider.api.isReadyOrError; @@ -54418,14 +54418,14 @@ ${gz(e, r)}`); return this.rpcUrl = e.rpcUrl, this.provider; } }; - var eb; - var mle = class { + var $y; + var yle = class { constructor(e) { - eb = e; + $y = e; } async signPayload(e) { try { - const r = await eb("requestSignature", e); + const r = await $y("requestSignature", e); return r ? { ...r } : Promise.reject(new Error("_canceled")); } catch { return Promise.reject(new Error("_canceled")); @@ -54433,40 +54433,40 @@ ${gz(e, r)}`); } async signRaw(e) { try { - const r = await eb("requestSignature", e); + const r = await $y("requestSignature", e); return r ? { ...r } : Promise.reject(new Error("_canceled")); } catch { return Promise.reject(new Error("_canceled")); } } }; - var gle = class { + var ble = class { constructor(e) { - this.accounts = new oX(e), this.metadata = new aX(e), this.provider = new t8(e), this.signer = new mle(e), this.reefProvider = new ple(e), this.reefSigner = new dle( + this.accounts = new cX(e), this.metadata = new uX(e), this.provider = new e8(e), this.signer = new yle(e), this.reefProvider = new gle(e), this.reefSigner = new mle( this.accounts, this.signer, this.reefProvider ); } }; - var yle = async (t, e) => await window.ethereum.request({ + var wle = async (t, e) => await window.ethereum.request({ method: "wallet_invokeSnap", params: { - snapId: c0, + snapId: u0, request: { method: t, params: e || {} } } }); - async function ble(t) { - return new gle(yle); + async function vle(t) { + return new ble(wle); } - var ax = "selected_extension_reef"; - var Ua = typeof window < "u" ? window : null; - Ua && (Ua.injectedWeb3 = (Ua == null ? void 0 : Ua.injectedWeb3) || {}); + var ox = "selected_extension_reef"; + var La = typeof window < "u" ? window : null; + La && (La.injectedWeb3 = (La == null ? void 0 : La.injectedWeb3) || {}); function RR() { - return Ua ? Object.keys(Ua.injectedWeb3).length !== 0 : false; + return La ? Object.keys(La.injectedWeb3).length !== 0 : false; } function i2(t) { throw new Error( @@ -54476,17 +54476,17 @@ ${gz(e, r)}`); function CR(t, e, r) { return e.map( ({ address: n, genesisHash: i, name: s, type: o }) => ({ - address: n.length === 42 ? n : la(Mr(n), r), + address: n.length === 42 ? n : ca(Mr(n), r), meta: { genesisHash: i, name: s, source: t }, type: o }) ); } var DR = RR(); - var oa = null; - function wle(t) { - return Ua ? Promise.all( - Object.entries(Ua.injectedWeb3).map( + var sa = null; + function xle(t) { + return La ? Promise.all( + Object.entries(La.injectedWeb3).map( ([e, { enable: r, version: n }]) => Promise.all([ Promise.resolve({ name: e, version: n }), r(t).catch((i) => { @@ -54496,37 +54496,37 @@ ${gz(e, r)}`); ) ) : Promise.resolve([]); } - var vle = () => new Promise((t) => { + var _le = () => new Promise((t) => { const e = () => t(true); - document.addEventListener(Y3, e, false), e8(Xo) && (document.removeEventListener(Y3, e), t(true)); + document.addEventListener(X3, e, false), $4(Ko) && (document.removeEventListener(X3, e), t(true)); }); - async function xle(t, e = [], r = false) { + async function Ele(t, e = [], r = false) { if (!t) throw new Error( "You must pass a name for your app to the web3Enable function" ); if (r) try { - let s = await Z3(); - s || (await GO(), s = await Z3()), s && HO(ble, { - name: $h, + let s = await Y3(); + s || (await GO(), s = await Y3()), s && HO(vle, { + name: Qh, version: s.version }); } catch { } - qO(Xo) && !e8(Xo) && e.push(vle); + qO(Ko) && !$4(Ko) && e.push(_le); const n = e.length ? Promise.all(e.map((s) => s().catch(() => false))) : Promise.resolve([true]); let i; try { - i = localStorage.getItem(ax); + i = localStorage.getItem(ox); } catch { } - return oa = iX( + return sa = oX( () => n.then( - () => wle(t).then((s) => s.filter( + () => xle(t).then((s) => s.filter( (o) => !!o[1] ).map(([o, a]) => (a.accounts.subscribe || (a.accounts.subscribe = (c) => (a.accounts.get().then(c).catch(console.error), () => { - })), { ...o, ...a })).sort((o, a) => i && o.name === i ? -1 : i && a.name === i ? 1 : o.name === Xo ? -1 : a.name === Xo ? 1 : o.name === $h ? -1 : a.name === $h ? 1 : 0)).catch(() => []).then((s) => { + })), { ...o, ...a })).sort((o, a) => i && o.name === i ? -1 : i && a.name === i ? 1 : o.name === Ko ? -1 : a.name === Ko ? 1 : o.name === Qh ? -1 : a.name === Qh ? 1 : 0)).catch(() => []).then((s) => { const o = s.map( ({ name: a, version: c }) => `${a}/${c}` ); @@ -54535,15 +54535,15 @@ ${gz(e, r)}`); ), s; }) ) - ), oa; + ), sa; } async function LR({ accountType: t, ss58Format: e } = {}) { - if (!oa) + if (!sa) return i2("web3Accounts"); - const r = [], n = await oa; + const r = [], n = await sa; return (await Promise.all( n.map( async ({ @@ -54568,15 +54568,15 @@ ${gz(e, r)}`); r.push(...s); }), r; } - async function _le(t, { ss58Format: e } = {}) { - if (!oa) + async function Sle(t, { ss58Format: e } = {}) { + if (!sa) return i2("web3AccountsSubscribe"); const r = {}, n = () => t( Object.entries(r).reduce( (s, [o, a]) => (s.push(...CR(o, a, e)), s), [] ) - ), i = (await oa).map( + ), i = (await sa).map( ({ accounts: { subscribe: s }, name: o }) => s((a) => { r[o] = a, n(); }) @@ -54587,16 +54587,16 @@ ${gz(e, r)}`); }); }; } - async function x0(t) { - if (!oa) + async function _0(t) { + if (!sa) return i2("web3FromSource"); - const e = await oa, r = t && e.find(({ name: n }) => n === t); + const e = await sa, r = t && e.find(({ name: n }) => n === t); if (!r) throw new Error(`web3FromSource: Unable to find an injected ${t}`); return r; } - async function Ele(t) { - if (!oa) + async function Mle(t) { + if (!sa) return i2("web3FromAddress"); const e = await LR(); let r; @@ -54608,30 +54608,30 @@ ${gz(e, r)}`); } if (!r) throw new Error(`web3FromAddress: Unable to find injected ${t}`); - return x0(r.meta.source); + return _0(r.meta.source); } - async function Sle(t) { - const { provider: e } = await x0(t); + async function Ale(t) { + const { provider: e } = await _0(t); return e ? e.listProviders() : (console.warn(`Extension ${t} does not expose any provider`), null); } - async function Mle(t, e) { - const { provider: r } = await x0(t); + async function Tle(t, e) { + const { provider: r } = await _0(t); if (!r) throw new Error(`Extension ${t} does not expose any provider`); return { meta: await r.startProvider(e), provider: r }; } - var tb; - var Ale = class { + var eb; + var Nle = class { constructor(e) { - tb = e; + eb = e; } get() { var n, i; - if (!((i = (n = tb.namespaces.reef) == null ? void 0 : n.accounts) != null && i.length)) + if (!((i = (n = eb.namespaces.reef) == null ? void 0 : n.accounts) != null && i.length)) return Promise.resolve([]); const r = Array.from( new Set( - tb.namespaces.reef.accounts.map((s) => s.split(":")[2]) + eb.namespaces.reef.accounts.map((s) => s.split(":")[2]) ) ).map( (s, o) => ({ address: s, isSelected: o === 0 }) @@ -54647,7 +54647,7 @@ ${gz(e, r)}`); }; } }; - var Za = { + var Xa = { testnet: { name: "testnet", rpcUrl: "wss://rpc-testnet.reefscan.com/ws", @@ -54677,7 +54677,7 @@ ${gz(e, r)}`); let n; try { n = new xl.Provider({ - provider: r != null && r.customWsProvider ? r.customWsProvider : new uu(t, r == null ? void 0 : r.autoConnectMs) + provider: r != null && r.customWsProvider ? r.customWsProvider : new cu(t, r == null ? void 0 : r.autoConnectMs) }); } catch (i) { throw console.log("ERROR provider init=", i.message), new Error(i); @@ -54728,15 +54728,15 @@ ${gz(e, r)}`); } return n; } - async function cx() { + async function ax() { const t = await Promise.race([ wn(B0), new Promise((e) => setTimeout(() => e(null), 50)) ]); return t || null; } - async function dm(t) { - if (t || (t = await cx()), t) { + async function pm(t) { + if (t || (t = await ax()), t) { const e = new Promise((r, n) => { t.api.once("disconnected", (i) => { console.log("disconnected provider"), r(true); @@ -54750,7 +54750,7 @@ ${gz(e, r)}`); } return false; } - var Ile = { + var Ple = { mainnet: { factoryAddress: "0x380a9033500154872813F6E1120a81ed6c0760a8", routerAddress: "0x641e34931C03751BFED14C4087bA395303bEd1A5", @@ -54767,46 +54767,44 @@ ${gz(e, r)}`); graphqlDexsUrl: "http://localhost:4351/graphql" } }; - var ux = (t) => Ile[t.name]; - var lx = Object.defineProperty; - var Ole = Object.getOwnPropertyDescriptor; - var Ple = Object.getOwnPropertyNames; - var kle = Object.prototype.hasOwnProperty; + var cx = (t) => Ple[t.name]; + var ux = Object.defineProperty; + var kle = Object.getOwnPropertyDescriptor; + var Rle = Object.getOwnPropertyNames; + var Cle = Object.prototype.hasOwnProperty; var ei = (t, e) => () => (t && (e = t(t = 0)), e); var Ye = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports); var Al = (t, e) => { for (var r in e) - lx(t, r, { get: e[r], enumerable: true }); + ux(t, r, { get: e[r], enumerable: true }); }; - var Rle = (t, e, r, n) => { + var Dle = (t, e, r, n) => { if (e && typeof e == "object" || typeof e == "function") - for (let i of Ple(e)) - !kle.call(t, i) && i !== r && lx(t, i, { get: () => e[i], enumerable: !(n = Ole(e, i)) || n.enumerable }); + for (let i of Rle(e)) + !Cle.call(t, i) && i !== r && ux(t, i, { get: () => e[i], enumerable: !(n = kle(e, i)) || n.enumerable }); return t; }; - var vr = (t) => Rle(lx({}, "__esModule", { value: true }), t); - var Yn; + var vr = (t) => Dle(ux({}, "__esModule", { value: true }), t); var Be = ei(() => { - Yn = { deviceMemory: 8, hardwareConcurrency: 8, language: "en-US" }; }); var cr = {}; - Al(cr, { _debugEnd: () => jw, _debugProcess: () => Uw, _events: () => e5, _eventsCount: () => t5, _exiting: () => Sw, _fatalExceptions: () => Dw, _getActiveHandles: () => WR, _getActiveRequests: () => qR, _kill: () => Tw, _linkedBinding: () => FR, _maxListeners: () => $w, _preload_modules: () => Jw, _rawDebug: () => xw, _startProfilerIdleNotifier: () => Vw, _stopProfilerIdleNotifier: () => zw, _tickCallback: () => Bw, abort: () => Ww, addListener: () => r5, allowedNodeEnvironmentFlags: () => Rw, arch: () => cw, argv: () => fw, argv0: () => Zw, assert: () => GR, binding: () => gw, chdir: () => ww, config: () => Mw, cpuUsage: () => qh, cwd: () => bw, debugPort: () => Yw, default: () => hx, dlopen: () => HR, domain: () => Ew, emit: () => a5, emitWarning: () => mw, env: () => lw, execArgv: () => hw, execPath: () => Xw, exit: () => Pw, features: () => Cw, hasUncaughtExceptionCaptureCallback: () => KR, hrtime: () => Kp, kill: () => Ow, listeners: () => YR, memoryUsage: () => Iw, moduleLoadList: () => _w, nextTick: () => VR, off: () => i5, on: () => Aa, once: () => n5, openStdin: () => kw, pid: () => Gw, platform: () => uw, ppid: () => Kw, prependListener: () => c5, prependOnceListener: () => u5, reallyExit: () => Aw, release: () => vw, removeAllListeners: () => o5, removeListener: () => s5, resourceUsage: () => Nw, setSourceMapsEnabled: () => Qw, setUncaughtExceptionCaptureCallback: () => Lw, stderr: () => Hw, stdin: () => qw, stdout: () => Fw, title: () => aw, umask: () => yw, uptime: () => XR, version: () => dw, versions: () => pw }); - function fx(t) { + Al(cr, { _debugEnd: () => Uw, _debugProcess: () => Bw, _events: () => $w, _eventsCount: () => e5, _exiting: () => Ew, _fatalExceptions: () => Cw, _getActiveHandles: () => WR, _getActiveRequests: () => qR, _kill: () => Aw, _linkedBinding: () => FR, _maxListeners: () => Qw, _preload_modules: () => Zw, _rawDebug: () => vw, _startProfilerIdleNotifier: () => jw, _stopProfilerIdleNotifier: () => Vw, _tickCallback: () => Lw, abort: () => qw, addListener: () => t5, allowedNodeEnvironmentFlags: () => kw, arch: () => aw, argv: () => lw, argv0: () => Yw, assert: () => GR, binding: () => mw, chdir: () => bw, config: () => Sw, cpuUsage: () => Hh, cwd: () => yw, debugPort: () => Xw, default: () => fx, dlopen: () => HR, domain: () => _w, emit: () => o5, emitWarning: () => pw, env: () => uw, execArgv: () => fw, execPath: () => Kw, exit: () => Ow, features: () => Rw, hasUncaughtExceptionCaptureCallback: () => KR, hrtime: () => Xp, kill: () => Iw, listeners: () => YR, memoryUsage: () => Nw, moduleLoadList: () => xw, nextTick: () => VR, off: () => n5, on: () => Sa, once: () => r5, openStdin: () => Pw, pid: () => Ww, platform: () => cw, ppid: () => Gw, prependListener: () => a5, prependOnceListener: () => c5, reallyExit: () => Mw, release: () => ww, removeAllListeners: () => s5, removeListener: () => i5, resourceUsage: () => Tw, setSourceMapsEnabled: () => Jw, setUncaughtExceptionCaptureCallback: () => Dw, stderr: () => Fw, stdin: () => Hw, stdout: () => zw, title: () => ow, umask: () => gw, uptime: () => XR, version: () => hw, versions: () => dw }); + function lx(t) { throw new Error("Node.js process " + t + " is not supported by JSPM core outside of Node.js"); } - function Cle() { - !Wu || !Du || (Wu = false, Du.length ? Zo = Du.concat(Zo) : nd = -1, Zo.length && jR()); + function Lle() { + !Wu || !Cu || (Wu = false, Cu.length ? Yo = Cu.concat(Yo) : rd = -1, Yo.length && jR()); } function jR() { if (!Wu) { - var t = setTimeout(Cle, 0); + var t = setTimeout(Lle, 0); Wu = true; - for (var e = Zo.length; e; ) { - for (Du = Zo, Zo = []; ++nd < e; ) - Du && Du[nd].run(); - nd = -1, e = Zo.length; + for (var e = Yo.length; e; ) { + for (Cu = Yo, Yo = []; ++rd < e; ) + Cu && Cu[rd].run(); + rd = -1, e = Yo.length; } - Du = null, Wu = false, clearTimeout(t); + Cu = null, Wu = false, clearTimeout(t); } } function VR(t) { @@ -54814,7 +54812,7 @@ ${gz(e, r)}`); if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - Zo.push(new zR(t, e)), Zo.length === 1 && !Wu && setTimeout(jR, 0); + Yo.push(new zR(t, e)), Yo.length === 1 && !Wu && setTimeout(jR, 0); } function zR(t, e) { this.fun = t, this.array = e; @@ -54822,10 +54820,10 @@ ${gz(e, r)}`); function oi() { } function FR(t) { - fx("_linkedBinding"); + lx("_linkedBinding"); } function HR(t) { - fx("dlopen"); + lx("dlopen"); } function qR() { return []; @@ -54841,22 +54839,23 @@ ${gz(e, r)}`); return false; } function XR() { - return Da.now() / 1e3; + return Ra.now() / 1e3; } - function Kp(t) { - var e = Math.floor((Date.now() - Da.now()) * 1e-3), r = Da.now() * 1e-3, n = Math.floor(r) + e, i = Math.floor(r % 1 * 1e9); - return t && (n = n - t[0], i = i - t[1], i < 0 && (n--, i += Xp)), [n, i]; + function Xp(t) { + var e = Math.floor((Date.now() - Ra.now()) * 1e-3), r = Ra.now() * 1e-3, n = Math.floor(r) + e, i = Math.floor(r % 1 * 1e9); + return t && (n = n - t[0], i = i - t[1], i < 0 && (n--, i += Yp)), [n, i]; } - function Aa() { - return hx; + function Sa() { + return fx; } function YR(t) { return []; } - var Zo; + var Yo; var Wu; - var Du; - var nd; + var Cu; + var rd; + var ow; var aw; var cw; var uw; @@ -54877,8 +54876,8 @@ ${gz(e, r)}`); var Sw; var Mw; var Aw; + var Hh; var Tw; - var qh; var Nw; var Iw; var Ow; @@ -54903,10 +54902,10 @@ ${gz(e, r)}`); var Yw; var Zw; var Jw; + var Ra; + var tb; + var Yp; var Qw; - var Da; - var rb; - var Xp; var $w; var e5; var t5; @@ -54917,36 +54916,35 @@ ${gz(e, r)}`); var o5; var a5; var c5; - var u5; - var hx; - var Dle = ei(() => { - je(), Ue(), Be(), Zo = [], Wu = false, nd = -1, zR.prototype.run = function() { + var fx; + var Ble = ei(() => { + Be(), je(), Ue(), Yo = [], Wu = false, rd = -1, zR.prototype.run = function() { this.fun.apply(null, this.array); - }, aw = "browser", cw = "x64", uw = "browser", lw = { PATH: "/usr/bin", LANG: Yn.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, fw = ["/usr/bin/node"], hw = [], dw = "v16.8.0", pw = {}, mw = function(t, e) { + }, ow = "browser", aw = "x64", cw = "browser", uw = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, lw = ["/usr/bin/node"], fw = [], hw = "v16.8.0", dw = {}, pw = function(t, e) { console.warn((e ? e + ": " : "") + t); + }, mw = function(t) { + lx("binding"); }, gw = function(t) { - fx("binding"); - }, yw = function(t) { return 0; - }, bw = function() { + }, yw = function() { return "/"; - }, ww = function(t) { - }, vw = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, xw = oi, _w = [], Ew = {}, Sw = false, Mw = {}, Aw = oi, Tw = oi, qh = function() { + }, bw = function(t) { + }, ww = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, vw = oi, xw = [], _w = {}, Ew = false, Sw = {}, Mw = oi, Aw = oi, Hh = function() { return {}; - }, Nw = qh, Iw = qh, Ow = oi, Pw = oi, kw = oi, Rw = {}, Cw = { inspector: false, debug: false, uv: false, ipv6: false, tls_alpn: false, tls_sni: false, tls_ocsp: false, tls: false, cached_builtins: true }, Dw = oi, Lw = oi, Bw = oi, Uw = oi, jw = oi, Vw = oi, zw = oi, Fw = void 0, Hw = void 0, qw = void 0, Ww = oi, Gw = 2, Kw = 1, Xw = "/bin/usr/node", Yw = 9229, Zw = "node", Jw = [], Qw = oi, Da = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, Da.now === void 0 && (rb = Date.now(), Da.timing && Da.timing.navigationStart && (rb = Da.timing.navigationStart), Da.now = () => Date.now() - rb), Xp = 1e9, Kp.bigint = function(t) { - var e = Kp(t); - return typeof BigInt > "u" ? e[0] * Xp + e[1] : BigInt(e[0] * Xp) + BigInt(e[1]); - }, $w = 10, e5 = {}, t5 = 0, r5 = Aa, n5 = Aa, i5 = Aa, s5 = Aa, o5 = Aa, a5 = oi, c5 = Aa, u5 = Aa, hx = { version: dw, versions: pw, arch: cw, platform: uw, release: vw, _rawDebug: xw, moduleLoadList: _w, binding: gw, _linkedBinding: FR, _events: e5, _eventsCount: t5, _maxListeners: $w, on: Aa, addListener: r5, once: n5, off: i5, removeListener: s5, removeAllListeners: o5, emit: a5, prependListener: c5, prependOnceListener: u5, listeners: YR, domain: Ew, _exiting: Sw, config: Mw, dlopen: HR, uptime: XR, _getActiveRequests: qR, _getActiveHandles: WR, reallyExit: Aw, _kill: Tw, cpuUsage: qh, resourceUsage: Nw, memoryUsage: Iw, kill: Ow, exit: Pw, openStdin: kw, allowedNodeEnvironmentFlags: Rw, assert: GR, features: Cw, _fatalExceptions: Dw, setUncaughtExceptionCaptureCallback: Lw, hasUncaughtExceptionCaptureCallback: KR, emitWarning: mw, nextTick: VR, _tickCallback: Bw, _debugProcess: Uw, _debugEnd: jw, _startProfilerIdleNotifier: Vw, _stopProfilerIdleNotifier: zw, stdout: Fw, stdin: qw, stderr: Hw, abort: Ww, umask: yw, chdir: ww, cwd: bw, env: lw, title: aw, argv: fw, execArgv: hw, pid: Gw, ppid: Kw, execPath: Xw, debugPort: Yw, hrtime: Kp, argv0: Zw, _preload_modules: Jw, setSourceMapsEnabled: Qw }; + }, Tw = Hh, Nw = Hh, Iw = oi, Ow = oi, Pw = oi, kw = {}, Rw = { inspector: false, debug: false, uv: false, ipv6: false, tls_alpn: false, tls_sni: false, tls_ocsp: false, tls: false, cached_builtins: true }, Cw = oi, Dw = oi, Lw = oi, Bw = oi, Uw = oi, jw = oi, Vw = oi, zw = void 0, Fw = void 0, Hw = void 0, qw = oi, Ww = 2, Gw = 1, Kw = "/bin/usr/node", Xw = 9229, Yw = "node", Zw = [], Jw = oi, Ra = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, Ra.now === void 0 && (tb = Date.now(), Ra.timing && Ra.timing.navigationStart && (tb = Ra.timing.navigationStart), Ra.now = () => Date.now() - tb), Yp = 1e9, Xp.bigint = function(t) { + var e = Xp(t); + return typeof BigInt > "u" ? e[0] * Yp + e[1] : BigInt(e[0] * Yp) + BigInt(e[1]); + }, Qw = 10, $w = {}, e5 = 0, t5 = Sa, r5 = Sa, n5 = Sa, i5 = Sa, s5 = Sa, o5 = oi, a5 = Sa, c5 = Sa, fx = { version: hw, versions: dw, arch: aw, platform: cw, release: ww, _rawDebug: vw, moduleLoadList: xw, binding: mw, _linkedBinding: FR, _events: $w, _eventsCount: e5, _maxListeners: Qw, on: Sa, addListener: t5, once: r5, off: n5, removeListener: i5, removeAllListeners: s5, emit: o5, prependListener: a5, prependOnceListener: c5, listeners: YR, domain: _w, _exiting: Ew, config: Sw, dlopen: HR, uptime: XR, _getActiveRequests: qR, _getActiveHandles: WR, reallyExit: Mw, _kill: Aw, cpuUsage: Hh, resourceUsage: Tw, memoryUsage: Nw, kill: Iw, exit: Ow, openStdin: Pw, allowedNodeEnvironmentFlags: kw, assert: GR, features: Rw, _fatalExceptions: Cw, setUncaughtExceptionCaptureCallback: Dw, hasUncaughtExceptionCaptureCallback: KR, emitWarning: pw, nextTick: VR, _tickCallback: Lw, _debugProcess: Bw, _debugEnd: Uw, _startProfilerIdleNotifier: jw, _stopProfilerIdleNotifier: Vw, stdout: zw, stdin: Hw, stderr: Fw, abort: qw, umask: gw, chdir: bw, cwd: yw, env: uw, title: ow, argv: lw, execArgv: fw, pid: Ww, ppid: Gw, execPath: Kw, debugPort: Xw, hrtime: Xp, argv0: Yw, _preload_modules: Zw, setSourceMapsEnabled: Jw }; }); var Ue = ei(() => { - Dle(); + Ble(); }); var ti = {}; - Al(ti, { Buffer: () => pm, INSPECT_MAX_BYTES: () => ZR, default: () => Ta, kMaxLength: () => JR }); - function Lle() { - if (l5) + Al(ti, { Buffer: () => mm, INSPECT_MAX_BYTES: () => ZR, default: () => Ma, kMaxLength: () => JR }); + function Ule() { + if (u5) return Jl; - l5 = true, Jl.byteLength = a, Jl.toByteArray = u, Jl.fromByteArray = b; + u5 = true, Jl.byteLength = a, Jl.toByteArray = u, Jl.fromByteArray = b; for (var t = [], e = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, s = n.length; i < s; ++i) t[i] = n[i], e[n.charCodeAt(i)] = i; e["-".charCodeAt(0)] = 62, e["_".charCodeAt(0)] = 63; @@ -54987,8 +54985,8 @@ ${gz(e, r)}`); } return Jl; } - function Ble() { - return f5 ? Wh : (f5 = true, Wh.read = function(t, e, r, n, i) { + function jle() { + return l5 ? qh : (l5 = true, qh.read = function(t, e, r, n, i) { var s, o, a = i * 8 - n - 1, c = (1 << a) - 1, u = c >> 1, f = -7, p = r ? i - 1 : 0, b = r ? -1 : 1, E = t[e + p]; for (p += b, s = E & (1 << -f) - 1, E >>= -f, f += a; f > 0; s = s * 256 + t[e + p], p += b, f -= 8) ; @@ -55002,23 +55000,23 @@ ${gz(e, r)}`); o = o + Math.pow(2, n), s = s - u; } return (E ? -1 : 1) * o * Math.pow(2, s - n); - }, Wh.write = function(t, e, r, n, i, s) { + }, qh.write = function(t, e, r, n, i, s) { var o, a, c, u = s * 8 - i - 1, f = (1 << u) - 1, p = f >> 1, b = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = n ? 0 : s - 1, _ = n ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0; for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = f) : (o = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -o)) < 1 && (o--, c *= 2), o + p >= 1 ? e += b / c : e += b * Math.pow(2, 1 - p), e * c >= 2 && (o++, c /= 2), o + p >= f ? (a = 0, o = f) : o + p >= 1 ? (a = (e * c - 1) * Math.pow(2, i), o = o + p) : (a = e * Math.pow(2, p - 1) * Math.pow(2, i), o = 0)); i >= 8; t[r + E] = a & 255, E += _, a /= 256, i -= 8) ; for (o = o << i | a, u += i; u > 0; t[r + E] = o & 255, E += _, o /= 256, u -= 8) ; t[r + E - _] |= N * 128; - }, Wh); + }, qh); } - function Ule() { - if (h5) - return Ic; - h5 = true; - let t = Lle(), e = Ble(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; - Ic.Buffer = o, Ic.SlowBuffer = F, Ic.INSPECT_MAX_BYTES = 50; + function Vle() { + if (f5) + return Tc; + f5 = true; + let t = Ule(), e = jle(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; + Tc.Buffer = o, Tc.SlowBuffer = F, Tc.INSPECT_MAX_BYTES = 50; let n = 2147483647; - Ic.kMaxLength = n, o.TYPED_ARRAY_SUPPORT = i(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && 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."); + Tc.kMaxLength = n, o.TYPED_ARRAY_SUPPORT = i(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && 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."); function i() { try { let C = new Uint8Array(1), O = { foo: function() { @@ -55292,7 +55290,7 @@ ${gz(e, r)}`); throw new TypeError("Argument must be a Buffer"); return this === C ? true : o.compare(this, C) === 0; }, o.prototype.inspect = function() { - let C = "", O = Ic.INSPECT_MAX_BYTES; + let C = "", O = Tc.INSPECT_MAX_BYTES; return C = this.toString("hex", 0, O).replace(/(.{2})/g, "$1 ").trim(), this.length > O && (C += " ... "), ""; }, r && (o.prototype[r] = o.prototype.inspect), o.prototype.compare = function(C, O, B, $, te) { if (le(C, Uint8Array) && (C = o.from(C, C.offset, C.byteLength)), !o.isBuffer(C)) @@ -55893,26 +55891,26 @@ ${gz(e, r)}`); function Te() { throw new Error("BigInt not supported"); } - return Ic; + return Tc; } var Jl; + var u5; + var qh; var l5; - var Wh; + var Tc; var f5; - var Ic; - var h5; - var Ta; - var pm; + var Ma; + var mm; var ZR; var JR; var ri = ei(() => { - je(), Ue(), Be(), Jl = {}, l5 = false, Wh = {}, f5 = false, Ic = {}, h5 = false, Ta = Ule(), Ta.Buffer, Ta.SlowBuffer, Ta.INSPECT_MAX_BYTES, Ta.kMaxLength, pm = Ta.Buffer, ZR = Ta.INSPECT_MAX_BYTES, JR = Ta.kMaxLength; + Be(), je(), Ue(), Jl = {}, u5 = false, qh = {}, l5 = false, Tc = {}, f5 = false, Ma = Vle(), Ma.Buffer, Ma.SlowBuffer, Ma.INSPECT_MAX_BYTES, Ma.kMaxLength, mm = Ma.Buffer, ZR = Ma.INSPECT_MAX_BYTES, JR = Ma.kMaxLength; }); var je = ei(() => { ri(); }); - var jle = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + var zle = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = class { constructor(r) { this.aliasToTopic = {}, this.max = r; @@ -55930,7 +55928,7 @@ ${gz(e, r)}`); t.default = e; }); var xn = Ye((t, e) => { - je(), Ue(), Be(), e.exports = { ArrayIsArray(r) { + Be(), je(), Ue(), e.exports = { ArrayIsArray(r) { return Array.isArray(r); }, ArrayPrototypeIncludes(r, n) { return r.includes(n); @@ -55980,8 +55978,8 @@ ${gz(e, r)}`); return r.set(n, i); }, Uint8Array }; }); - var Ja = Ye((t, e) => { - je(), Ue(), Be(); + var Ya = Ye((t, e) => { + Be(), je(), Ue(); var r = (ri(), vr(ti)), n = Object.getPrototypeOf(async function() { }).constructor, i = globalThis.Blob || r.Blob, s = typeof i < "u" ? function(a) { return a instanceof i; @@ -56046,14 +56044,14 @@ ${gz(e, r)}`); return ArrayBuffer.isView(a); } }, isBlob: s }, e.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom"); }); - var dx = Ye((t, e) => { - je(), Ue(), Be(); + var hx = Ye((t, e) => { + Be(), je(), Ue(); var { AbortController: r, AbortSignal: n } = typeof self < "u" ? self : typeof window < "u" ? window : void 0; e.exports = r, e.exports.AbortSignal = n, e.exports.default = r; }); var Xi = Ye((t, e) => { - je(), Ue(), Be(); - var { format: r, inspect: n, AggregateError: i } = Ja(), s = globalThis.AggregateError || i, o = Symbol("kIsNodeError"), a = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], c = /^([A-Z][a-z0-9]*)+$/, u = "__node_internal_", f = {}; + Be(), je(), Ue(); + var { format: r, inspect: n, AggregateError: i } = Ya(), s = globalThis.AggregateError || i, o = Symbol("kIsNodeError"), a = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], c = /^([A-Z][a-z0-9]*)+$/, u = "__node_internal_", f = {}; function p(L, D) { if (!L) throw new f.ERR_INTERNAL_ASSERTION(D); @@ -56208,8 +56206,8 @@ ${gz(e, r)}`); }, RangeError), _("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), _("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), _("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), _("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), _("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), _("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), _("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), _("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), _("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), _("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), _("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), e.exports = { AbortError: F, aggregateTwoErrors: N(k), hideStackFrames: N, codes: f }; }); var s2 = Ye((t, e) => { - je(), Ue(), Be(); - var { ArrayIsArray: r, ArrayPrototypeIncludes: n, ArrayPrototypeJoin: i, ArrayPrototypeMap: s, NumberIsInteger: o, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: c, NumberMIN_SAFE_INTEGER: u, NumberParseInt: f, ObjectPrototypeHasOwnProperty: p, RegExpPrototypeExec: b, String: E, StringPrototypeToUpperCase: _, StringPrototypeTrim: N } = xn(), { hideStackFrames: k, codes: { ERR_SOCKET_BAD_PORT: F, ERR_INVALID_ARG_TYPE: L, ERR_INVALID_ARG_VALUE: D, ERR_OUT_OF_RANGE: q, ERR_UNKNOWN_SIGNAL: W } } = Xi(), { normalizeEncoding: z } = Ja(), { isAsyncFunction: T, isArrayBufferView: I } = Ja().types, H = {}; + Be(), je(), Ue(); + var { ArrayIsArray: r, ArrayPrototypeIncludes: n, ArrayPrototypeJoin: i, ArrayPrototypeMap: s, NumberIsInteger: o, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: c, NumberMIN_SAFE_INTEGER: u, NumberParseInt: f, ObjectPrototypeHasOwnProperty: p, RegExpPrototypeExec: b, String: E, StringPrototypeToUpperCase: _, StringPrototypeTrim: N } = xn(), { hideStackFrames: k, codes: { ERR_SOCKET_BAD_PORT: F, ERR_INVALID_ARG_TYPE: L, ERR_INVALID_ARG_VALUE: D, ERR_OUT_OF_RANGE: q, ERR_UNKNOWN_SIGNAL: W } } = Xi(), { normalizeEncoding: z } = Ya(), { isAsyncFunction: T, isArrayBufferView: I } = Ya().types, H = {}; function X(se) { return se === (se | 0); } @@ -56354,7 +56352,7 @@ ${gz(e, r)}`); e.exports = { isInt32: X, isUint32: V, parseFileMode: l, validateArray: A, validateStringArray: K, validateBooleanArray: U, validateBoolean: g, validateBuffer: G, validateDictionary: Q, validateEncoding: R, validateFunction: ae, validateInt32: y, validateInteger: h, validateNumber: M, validateObject: P, validateOneOf: w, validatePlainFunction: ie, validatePort: Y, validateSignalName: j, validateString: v, validateUint32: x, validateUndefined: Z, validateUnion: ce, validateAbortSignal: ee, validateLinkHeaderValue: pe }; }); var Tl = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = e.exports = {}, n, i; function s() { throw new Error("setTimeout has not been defined"); @@ -56447,8 +56445,8 @@ ${gz(e, r)}`); return 0; }; }); - var cc = Ye((t, e) => { - je(), Ue(), Be(); + var oc = Ye((t, e) => { + Be(), je(), Ue(); var { Symbol: r, SymbolAsyncIterator: n, SymbolIterator: i, SymbolFor: s } = xn(), o = r("kDestroyed"), a = r("kIsErrored"), c = r("kIsReadable"), u = r("kIsDisturbed"), f = s("nodejs.webstream.isClosedPromise"), p = s("nodejs.webstream.controllerErrorFunction"); function b(m, P = false) { var Q; @@ -56566,9 +56564,9 @@ ${gz(e, r)}`); } e.exports = { kDestroyed: o, isDisturbed: w, kIsDisturbed: u, isErrored: g, kIsErrored: a, isReadable: X, kIsReadable: c, kIsClosedPromise: f, kControllerErrorFunction: p, isClosed: h, isDestroyed: W, isDuplexNodeStream: _, isFinished: S, isIterable: q, isReadableNodeStream: b, isReadableStream: k, isReadableEnded: I, isReadableFinished: H, isReadableErrored: l, isNodeStream: N, isWebStream: D, isWritable: V, isWritableNodeStream: E, isWritableStream: F, isWritableEnded: z, isWritableFinished: T, isWritableErrored: d, isServerRequest: v, isServerResponse: x, willEmitClose: M, isTransformStream: L }; }); - var lu = Ye((t, e) => { - je(), Ue(), Be(); - var r = Tl(), { AbortError: n, codes: i } = Xi(), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: a, once: c } = Ja(), { validateAbortSignal: u, validateFunction: f, validateObject: p, validateBoolean: b } = s2(), { Promise: E, PromisePrototypeThen: _ } = xn(), { isClosed: N, isReadable: k, isReadableNodeStream: F, isReadableStream: L, isReadableFinished: D, isReadableErrored: q, isWritable: W, isWritableNodeStream: z, isWritableStream: T, isWritableFinished: I, isWritableErrored: H, isNodeStream: X, willEmitClose: V, kIsClosedPromise: S } = cc(); + var uu = Ye((t, e) => { + Be(), je(), Ue(); + var r = Tl(), { AbortError: n, codes: i } = Xi(), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: a, once: c } = Ya(), { validateAbortSignal: u, validateFunction: f, validateObject: p, validateBoolean: b } = s2(), { Promise: E, PromisePrototypeThen: _ } = xn(), { isClosed: N, isReadable: k, isReadableNodeStream: F, isReadableStream: L, isReadableFinished: D, isReadableErrored: q, isWritable: W, isWritableNodeStream: z, isWritableStream: T, isWritableFinished: I, isWritableErrored: H, isNodeStream: X, willEmitClose: V, kIsClosedPromise: S } = oc(); function d(v) { return v.setHeader && typeof v.abort == "function"; } @@ -56656,9 +56654,9 @@ ${gz(e, r)}`); } e.exports = h, e.exports.finished = x; }); - var Kf = Ye((t, e) => { - je(), Ue(), Be(); - var r = Tl(), { aggregateTwoErrors: n, codes: { ERR_MULTIPLE_CALLBACK: i }, AbortError: s } = Xi(), { Symbol: o } = xn(), { kDestroyed: a, isDestroyed: c, isFinished: u, isServerRequest: f } = cc(), p = o("kDestroy"), b = o("kConstruct"); + var Gf = Ye((t, e) => { + Be(), je(), Ue(); + var r = Tl(), { aggregateTwoErrors: n, codes: { ERR_MULTIPLE_CALLBACK: i }, AbortError: s } = Xi(), { Symbol: o } = xn(), { kDestroyed: a, isDestroyed: c, isFinished: u, isServerRequest: f } = oc(), p = o("kDestroy"), b = o("kConstruct"); function E(S, d, l) { S && (S.stack, d && !d.errored && (d.errored = S), l && !l.errored && (l.errored = S)); } @@ -56749,16 +56747,16 @@ ${gz(e, r)}`); function hr() { hr.init.call(this); } - function Yp(t) { + function Zp(t) { if (typeof t != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t); } function QR(t) { return t._maxListeners === void 0 ? hr.defaultMaxListeners : t._maxListeners; } - function k_(t, e, r, n) { + function P_(t, e, r, n) { var i, s, o, a; - if (Yp(r), (s = t._events) === void 0 ? (s = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (s.newListener !== void 0 && (t.emit("newListener", e, r.listener ? r.listener : r), s = t._events), o = s[e]), o === void 0) + if (Zp(r), (s = t._events) === void 0 ? (s = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (s.newListener !== void 0 && (t.emit("newListener", e, r.listener ? r.listener : r), s = t._events), o = s[e]), o === void 0) o = s[e] = r, ++t._eventsCount; else if (typeof o == "function" ? o = s[e] = n ? [r, o] : [o, r] : n ? o.unshift(r) : o.push(r), (i = QR(t)) > 0 && o.length > i && !o.warned) { o.warned = true; @@ -56767,15 +56765,15 @@ ${gz(e, r)}`); } return t; } - function Vle() { + function Fle() { if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); } - function R_(t, e, r) { - var n = { fired: false, wrapFn: void 0, target: t, type: e, listener: r }, i = Vle.bind(n); + function k_(t, e, r) { + var n = { fired: false, wrapFn: void 0, target: t, type: e, listener: r }, i = Fle.bind(n); return i.listener = r, n.wrapFn = i, i; } - function C_(t, e, r) { + function R_(t, e, r) { var n = t._events; if (n === void 0) return []; @@ -56786,7 +56784,7 @@ ${gz(e, r)}`); return o; }(i) : $R(i, i.length); } - function D_(t) { + function C_(t) { var e = this._events; if (e !== void 0) { var r = e[t]; @@ -56802,32 +56800,32 @@ ${gz(e, r)}`); r[n] = t[n]; return r; } + var D_; var L_; - var B_; - var bu; + var yu; + var rb; var nb; var ib; - var sb; var ns; - var U_ = ei(() => { - je(), Ue(), Be(), bu = typeof Reflect == "object" ? Reflect : null, nb = bu && typeof bu.apply == "function" ? bu.apply : function(t, e, r) { + var B_ = ei(() => { + Be(), je(), Ue(), yu = typeof Reflect == "object" ? Reflect : null, rb = yu && typeof yu.apply == "function" ? yu.apply : function(t, e, r) { return Function.prototype.apply.call(t, e, r); - }, B_ = bu && typeof bu.ownKeys == "function" ? bu.ownKeys : Object.getOwnPropertySymbols ? function(t) { + }, L_ = yu && typeof yu.ownKeys == "function" ? yu.ownKeys : Object.getOwnPropertySymbols ? function(t) { return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)); } : function(t) { return Object.getOwnPropertyNames(t); - }, ib = Number.isNaN || function(t) { + }, nb = Number.isNaN || function(t) { return t != t; - }, L_ = hr, hr.EventEmitter = hr, hr.prototype._events = void 0, hr.prototype._eventsCount = 0, hr.prototype._maxListeners = void 0, sb = 10, Object.defineProperty(hr, "defaultMaxListeners", { enumerable: true, get: function() { - return sb; + }, D_ = hr, hr.EventEmitter = hr, hr.prototype._events = void 0, hr.prototype._eventsCount = 0, hr.prototype._maxListeners = void 0, ib = 10, Object.defineProperty(hr, "defaultMaxListeners", { enumerable: true, get: function() { + return ib; }, set: function(t) { - if (typeof t != "number" || t < 0 || ib(t)) + if (typeof t != "number" || t < 0 || nb(t)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + "."); - sb = t; + ib = t; } }), hr.init = function() { this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }, hr.prototype.setMaxListeners = function(t) { - if (typeof t != "number" || t < 0 || ib(t)) + if (typeof t != "number" || t < 0 || nb(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; }, hr.prototype.getMaxListeners = function() { @@ -56851,24 +56849,24 @@ ${gz(e, r)}`); if (a === void 0) return false; if (typeof a == "function") - nb(a, this, e); + rb(a, this, e); else { var c = a.length, u = $R(a, c); for (r = 0; r < c; ++r) - nb(u[r], this, e); + rb(u[r], this, e); } return true; }, hr.prototype.addListener = function(t, e) { - return k_(this, t, e, false); + return P_(this, t, e, false); }, hr.prototype.on = hr.prototype.addListener, hr.prototype.prependListener = function(t, e) { - return k_(this, t, e, true); + return P_(this, t, e, true); }, hr.prototype.once = function(t, e) { - return Yp(e), this.on(t, R_(this, t, e)), this; + return Zp(e), this.on(t, k_(this, t, e)), this; }, hr.prototype.prependOnceListener = function(t, e) { - return Yp(e), this.prependListener(t, R_(this, t, e)), this; + return Zp(e), this.prependListener(t, k_(this, t, e)), this; }, hr.prototype.removeListener = function(t, e) { var r, n, i, s, o; - if (Yp(e), (n = this._events) === void 0) + if (Zp(e), (n = this._events) === void 0) return this; if ((r = n[t]) === void 0) return this; @@ -56908,14 +56906,14 @@ ${gz(e, r)}`); this.removeListener(t, e[n]); return this; }, hr.prototype.listeners = function(t) { - return C_(this, t, true); + return R_(this, t, true); }, hr.prototype.rawListeners = function(t) { - return C_(this, t, false); + return R_(this, t, false); }, hr.listenerCount = function(t, e) { - return typeof t.listenerCount == "function" ? t.listenerCount(e) : D_.call(t, e); - }, hr.prototype.listenerCount = D_, hr.prototype.eventNames = function() { - return this._eventsCount > 0 ? B_(this._events) : []; - }, ns = L_, ns.EventEmitter, ns.defaultMaxListeners, ns.init, ns.listenerCount, ns.EventEmitter, ns.defaultMaxListeners, ns.init, ns.listenerCount; + return typeof t.listenerCount == "function" ? t.listenerCount(e) : C_.call(t, e); + }, hr.prototype.listenerCount = C_, hr.prototype.eventNames = function() { + return this._eventsCount > 0 ? L_(this._events) : []; + }, ns = D_, ns.EventEmitter, ns.defaultMaxListeners, ns.init, ns.listenerCount, ns.EventEmitter, ns.defaultMaxListeners, ns.init, ns.listenerCount; }); var Nl = {}; Al(Nl, { EventEmitter: () => eC, default: () => ns, defaultMaxListeners: () => tC, init: () => rC, listenerCount: () => nC, on: () => iC, once: () => sC }); @@ -56925,8 +56923,8 @@ ${gz(e, r)}`); var nC; var iC; var sC; - var Xf = ei(() => { - je(), Ue(), Be(), U_(), U_(), ns.once = function(t, e) { + var Kf = ei(() => { + Be(), je(), Ue(), B_(), B_(), ns.once = function(t, e) { return new Promise((r, n) => { function i(...o) { s !== void 0 && t.removeListener("error", s), r(o); @@ -56968,9 +56966,9 @@ ${gz(e, r)}`); } }, { EventEmitter: eC, defaultMaxListeners: tC, init: rC, listenerCount: nC, on: iC, once: sC } = ns; }); - var px = Ye((t, e) => { - je(), Ue(), Be(); - var { ArrayIsArray: r, ObjectSetPrototypeOf: n } = xn(), { EventEmitter: i } = (Xf(), vr(Nl)); + var dx = Ye((t, e) => { + Be(), je(), Ue(); + var { ArrayIsArray: r, ObjectSetPrototypeOf: n } = xn(), { EventEmitter: i } = (Kf(), vr(Nl)); function s(a) { i.call(this, a); } @@ -57008,8 +57006,8 @@ ${gz(e, r)}`); e.exports = { Stream: s, prependListener: o }; }); var o2 = Ye((t, e) => { - je(), Ue(), Be(); - var { AbortError: r, codes: n } = Xi(), { isNodeStream: i, isWebStream: s, kControllerErrorFunction: o } = cc(), a = lu(), { ERR_INVALID_ARG_TYPE: c } = n, u = (f, p) => { + Be(), je(), Ue(); + var { AbortError: r, codes: n } = Xi(), { isNodeStream: i, isWebStream: s, kControllerErrorFunction: o } = oc(), a = uu(), { ERR_INVALID_ARG_TYPE: c } = n, u = (f, p) => { if (typeof f != "object" || !("aborted" in f)) throw new c(p, "AbortSignal", f); }; @@ -57028,9 +57026,9 @@ ${gz(e, r)}`); return f.aborted ? b() : (f.addEventListener("abort", b), a(p, () => f.removeEventListener("abort", b))), p; }; }); - var zle = Ye((t, e) => { - je(), Ue(), Be(); - var { StringPrototypeSlice: r, SymbolIterator: n, TypedArrayPrototypeSet: i, Uint8Array: s } = xn(), { Buffer: o } = (ri(), vr(ti)), { inspect: a } = Ja(); + var Hle = Ye((t, e) => { + Be(), je(), Ue(); + var { StringPrototypeSlice: r, SymbolIterator: n, TypedArrayPrototypeSet: i, Uint8Array: s } = xn(), { Buffer: o } = (ri(), vr(ti)), { inspect: a } = Ya(); e.exports = class { constructor() { this.head = null, this.tail = null, this.length = 0; @@ -57116,8 +57114,8 @@ ${gz(e, r)}`); } }; }); - var mx = Ye((t, e) => { - je(), Ue(), Be(); + var px = Ye((t, e) => { + Be(), je(), Ue(); var { MathFloor: r, NumberIsInteger: n } = xn(), { ERR_INVALID_ARG_VALUE: i } = Xi().codes; function s(c, u, f) { return c.highWaterMark != null ? c.highWaterMark : u ? c[f] : null; @@ -57138,19 +57136,19 @@ ${gz(e, r)}`); } e.exports = { getHighWaterMark: a, getDefaultHighWaterMark: o }; }); - function j_(t) { + function U_(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 r === -1 && (r = e), [r, r === e ? 0 : 4 - r % 4]; } - function Fle(t, e, r) { + function qle(t, e, r) { for (var n, i, s = [], o = e; o < r; o += 3) - n = (t[o] << 16 & 16711680) + (t[o + 1] << 8 & 65280) + (255 & t[o + 2]), s.push(so[(i = n) >> 18 & 63] + so[i >> 12 & 63] + so[i >> 6 & 63] + so[63 & i]); + n = (t[o] << 16 & 16711680) + (t[o + 1] << 8 & 65280) + (255 & t[o + 2]), s.push(io[(i = n) >> 18 & 63] + io[i >> 12 & 63] + io[i >> 6 & 63] + io[63 & i]); return s.join(""); } - function qa(t) { + function Fa(t) { if (t > 2147483647) throw new RangeError('The value "' + t + '" is invalid for option "size"'); var e = new Uint8Array(t); @@ -57160,7 +57158,7 @@ ${gz(e, r)}`); if (typeof t == "number") { if (typeof e == "string") throw new TypeError('The "string" argument must be of type string. Received type number'); - return d5(t); + return h5(t); } return oC(t, e, r); } @@ -57169,15 +57167,15 @@ ${gz(e, r)}`); return function(s, o) { if (typeof o == "string" && o !== "" || (o = "utf8"), !He.isEncoding(o)) throw new TypeError("Unknown encoding: " + o); - var a = 0 | cC(s, o), c = qa(a), u = c.write(s, o); + var a = 0 | cC(s, o), c = Fa(a), u = c.write(s, o); return u !== a && (c = c.slice(0, u)), c; }(t, e); if (ArrayBuffer.isView(t)) - return ob(t); + return sb(t); if (t == null) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t); - if (Wa(t, ArrayBuffer) || t && Wa(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (Wa(t, SharedArrayBuffer) || t && Wa(t.buffer, SharedArrayBuffer))) - return Hle(t, e, r); + if (Ha(t, ArrayBuffer) || t && Ha(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (Ha(t, SharedArrayBuffer) || t && Ha(t.buffer, SharedArrayBuffer))) + return Wle(t, e, r); if (typeof t == "number") throw new TypeError('The "value" argument must not be of type number. Received type number'); var n = t.valueOf && t.valueOf(); @@ -57185,13 +57183,13 @@ ${gz(e, r)}`); return He.from(n, e, r); var i = function(s) { if (He.isBuffer(s)) { - var o = 0 | gx(s.length), a = qa(o); + var o = 0 | mx(s.length), a = Fa(o); return a.length === 0 || s.copy(a, 0, 0, o), a; } if (s.length !== void 0) - return typeof s.length != "number" || yx(s.length) ? qa(0) : ob(s); + return typeof s.length != "number" || gx(s.length) ? Fa(0) : sb(s); if (s.type === "Buffer" && Array.isArray(s.data)) - return ob(s.data); + return sb(s.data); }(t); if (i) return i; @@ -57205,15 +57203,15 @@ ${gz(e, r)}`); if (t < 0) throw new RangeError('The value "' + t + '" is invalid for option "size"'); } - function d5(t) { - return aC(t), qa(t < 0 ? 0 : 0 | gx(t)); + function h5(t) { + return aC(t), Fa(t < 0 ? 0 : 0 | mx(t)); } - function ob(t) { - for (var e = t.length < 0 ? 0 : 0 | gx(t.length), r = qa(e), n = 0; n < e; n += 1) + function sb(t) { + for (var e = t.length < 0 ? 0 : 0 | mx(t.length), r = Fa(e), n = 0; n < e; n += 1) r[n] = 255 & t[n]; return r; } - function Hle(t, e, r) { + function Wle(t, e, r) { if (e < 0 || t.byteLength < e) throw new RangeError('"offset" is outside of buffer bounds'); if (t.byteLength < e + (r || 0)) @@ -57221,7 +57219,7 @@ ${gz(e, r)}`); var n; return n = e === void 0 && r === void 0 ? new Uint8Array(t) : r === void 0 ? new Uint8Array(t, e) : new Uint8Array(t, e, r), Object.setPrototypeOf(n, He.prototype), n; } - function gx(t) { + function mx(t) { if (t >= 2147483647) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 2147483647 .toString(16) + " bytes"); return 0 | t; @@ -57229,7 +57227,7 @@ ${gz(e, r)}`); function cC(t, e) { if (He.isBuffer(t)) return t.length; - if (ArrayBuffer.isView(t) || Wa(t, ArrayBuffer)) + if (ArrayBuffer.isView(t) || Ha(t, ArrayBuffer)) return t.byteLength; if (typeof t != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t); @@ -57244,7 +57242,7 @@ ${gz(e, r)}`); return r; case "utf8": case "utf-8": - return p5(t).length; + return d5(t).length; case "ucs2": case "ucs-2": case "utf16le": @@ -57256,47 +57254,47 @@ ${gz(e, r)}`); return hC(t).length; default: if (i) - return n ? -1 : p5(t).length; + return n ? -1 : d5(t).length; e = ("" + e).toLowerCase(), i = true; } } - function qle(t, e, r) { + function Gle(t, e, r) { var n = false; if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0) <= (e >>>= 0)) return ""; for (t || (t = "utf8"); ; ) switch (t) { case "hex": - return $le(this, e, r); + return tfe(this, e, r); case "utf8": case "utf-8": return lC(this, e, r); case "ascii": - return Jle(this, e, r); + return $le(this, e, r); case "latin1": case "binary": - return Qle(this, e, r); + return efe(this, e, r); case "base64": - return Zle(this, e, r); + return Qle(this, e, r); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return efe(this, e, r); + return rfe(this, e, r); default: if (n) throw new TypeError("Unknown encoding: " + t); t = (t + "").toLowerCase(), n = true; } } - function wu(t, e, r) { + function bu(t, e, r) { var n = t[e]; t[e] = t[r], t[r] = n; } - function V_(t, e, r, n, i) { + function j_(t, e, r, n, i) { if (t.length === 0) return -1; - if (typeof r == "string" ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), yx(r = +r) && (r = i ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) { + if (typeof r == "string" ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), gx(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; @@ -57306,12 +57304,12 @@ ${gz(e, r)}`); r = 0; } if (typeof e == "string" && (e = He.from(e, n)), He.isBuffer(e)) - return e.length === 0 ? -1 : z_(t, e, r, n, i); + return e.length === 0 ? -1 : V_(t, e, r, n, i); if (typeof e == "number") - return e &= 255, typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : z_(t, [e], r, n, i); + return e &= 255, typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : V_(t, [e], r, n, i); throw new TypeError("val must be string, number or Buffer"); } - function z_(t, e, r, n, i) { + function V_(t, e, r, n, i) { var s, o = 1, a = t.length, c = e.length; if (n !== void 0 && ((n = String(n).toLowerCase()) === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) { if (t.length < 2 || e.length < 2) @@ -57341,7 +57339,7 @@ ${gz(e, r)}`); } return -1; } - function Wle(t, e, r, n) { + function Kle(t, e, r, n) { r = Number(r) || 0; var i = t.length - r; n ? (n = Number(n)) > i && (n = i) : n = i; @@ -57349,14 +57347,14 @@ ${gz(e, r)}`); n > s / 2 && (n = s / 2); for (var o = 0; o < n; ++o) { var a = parseInt(e.substr(2 * o, 2), 16); - if (yx(a)) + if (gx(a)) return o; t[r + o] = a; } return o; } - function Gle(t, e, r, n) { - return a2(p5(e, t.length - r), t, r, n); + function Xle(t, e, r, n) { + return a2(d5(e, t.length - r), t, r, n); } function uC(t, e, r, n) { return a2(function(i) { @@ -57365,21 +57363,21 @@ ${gz(e, r)}`); return s; }(e), t, r, n); } - function Kle(t, e, r, n) { + function Yle(t, e, r, n) { return uC(t, e, r, n); } - function Xle(t, e, r, n) { + function Zle(t, e, r, n) { return a2(hC(e), t, r, n); } - function Yle(t, e, r, n) { + function Jle(t, e, r, n) { return a2(function(i, s) { for (var o, a, c, u = [], f = 0; f < i.length && !((s -= 2) < 0); ++f) o = i.charCodeAt(f), a = o >> 8, c = o % 256, u.push(c), u.push(a); return u; }(e, t.length - r), t, r, n); } - function Zle(t, e, r) { - return e === 0 && r === t.length ? mm.fromByteArray(t) : mm.fromByteArray(t.slice(e, r)); + function Qle(t, e, r) { + return e === 0 && r === t.length ? gm.fromByteArray(t) : gm.fromByteArray(t.slice(e, r)); } function lC(t, e, r) { r = Math.min(t.length, r); @@ -57410,28 +57408,28 @@ ${gz(e, r)}`); return _; }(n); } - function Jle(t, e, r) { + function $le(t, e, r) { var n = ""; r = Math.min(t.length, r); for (var i = e; i < r; ++i) n += String.fromCharCode(127 & t[i]); return n; } - function Qle(t, e, r) { + function efe(t, e, r) { var n = ""; r = Math.min(t.length, r); for (var i = e; i < r; ++i) n += String.fromCharCode(t[i]); return n; } - function $le(t, e, r) { + function tfe(t, e, r) { var n = t.length; (!e || e < 0) && (e = 0), (!r || r < 0 || r > n) && (r = n); for (var i = "", s = e; s < r; ++s) i += pC[t[s]]; return i; } - function efe(t, e, r) { + function rfe(t, e, r) { for (var n = t.slice(e, r), i = "", s = 0; s < n.length; s += 2) i += String.fromCharCode(n[s] + 256 * n[s + 1]); return i; @@ -57442,7 +57440,7 @@ ${gz(e, r)}`); if (t + e > r) throw new RangeError("Trying to access beyond buffer length"); } - function Pi(t, e, r, n, i, s) { + function Oi(t, e, r, n, i, s) { if (!He.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (e > i || e < s) @@ -57456,13 +57454,13 @@ ${gz(e, r)}`); if (r < 0) throw new RangeError("Index out of range"); } - function F_(t, e, r, n, i) { - return e = +e, r >>>= 0, i || fC(t, 0, r, 4), Pu.write(t, e, r, n, 23, 4), r + 4; + function z_(t, e, r, n, i) { + return e = +e, r >>>= 0, i || fC(t, 0, r, 4), Ou.write(t, e, r, n, 23, 4), r + 4; } - function H_(t, e, r, n, i) { - return e = +e, r >>>= 0, i || fC(t, 0, r, 8), Pu.write(t, e, r, n, 52, 8), r + 8; + function F_(t, e, r, n, i) { + return e = +e, r >>>= 0, i || fC(t, 0, r, 8), Ou.write(t, e, r, n, 52, 8), r + 8; } - function p5(t, e) { + function d5(t, e) { var r; e = e || 1 / 0; for (var n = t.length, i = null, s = [], o = 0; o < n; ++o) { @@ -57509,7 +57507,7 @@ ${gz(e, r)}`); return s; } function hC(t) { - return mm.toByteArray(function(e) { + return gm.toByteArray(function(e) { if ((e = (e = e.split("=")[0]).trim().replace(dC, "")).length < 2) return ""; for (; e.length % 4 != 0; ) @@ -57522,20 +57520,20 @@ ${gz(e, r)}`); e[i + r] = t[i]; return i; } - function Wa(t, e) { + function Ha(t, e) { return t instanceof e || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === e.name; } - function yx(t) { + function gx(t) { return t != t; } - function q_(t, e) { + function H_(t, e) { for (var r in t) e[r] = t[r]; } - function vu(t, e, r) { - return Js(t, e, r); + function wu(t, e, r) { + return Zs(t, e, r); } - function Mh(t) { + function Sh(t) { var e; switch (this.encoding = function(r) { var n = function(i) { @@ -57564,28 +57562,28 @@ ${gz(e, r)}`); i = ("" + i).toLowerCase(), s = true; } }(r); - if (typeof n != "string" && (gm.isEncoding === m5 || !m5(r))) + if (typeof n != "string" && (ym.isEncoding === p5 || !p5(r))) throw new Error("Unknown encoding: " + r); return n || r; }(t), this.encoding) { case "utf16le": - this.text = rfe, this.end = nfe, e = 4; + this.text = ife, this.end = sfe, e = 4; break; case "utf8": - this.fillLast = tfe, e = 4; + this.fillLast = nfe, e = 4; break; case "base64": - this.text = ife, this.end = sfe, e = 3; + this.text = ofe, this.end = afe, e = 3; break; default: - return this.write = ofe, this.end = afe, void 0; + return this.write = cfe, this.end = ufe, void 0; } - this.lastNeed = 0, this.lastTotal = 0, this.lastChar = gm.allocUnsafe(e); + this.lastNeed = 0, this.lastTotal = 0, this.lastChar = ym.allocUnsafe(e); } - function ab(t) { + function ob(t) { return t <= 127 ? 0 : t >> 5 == 6 ? 2 : t >> 4 == 14 ? 3 : t >> 3 == 30 ? 4 : t >> 6 == 2 ? -1 : -2; } - function tfe(t) { + function nfe(t) { var e = this.lastTotal - this.lastNeed, r = function(n, i, s) { if ((192 & i[0]) != 128) return n.lastNeed = 0, "\uFFFD"; @@ -57598,7 +57596,7 @@ ${gz(e, r)}`); }(this, t); return r !== void 0 ? 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), this.lastNeed -= t.length, void 0); } - function rfe(t, e) { + function ife(t, e) { if ((t.length - e) % 2 == 0) { var r = t.toString("utf16le", e); if (r) { @@ -57610,7 +57608,7 @@ ${gz(e, r)}`); } return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1); } - function nfe(t) { + function sfe(t) { var e = t && t.length ? this.write(t) : ""; if (this.lastNeed) { var r = this.lastTotal - this.lastNeed; @@ -57618,47 +57616,47 @@ ${gz(e, r)}`); } return e; } - function ife(t, e) { + function ofe(t, e) { var r = (t.length - e) % 3; return r === 0 ? t.toString("base64", e) : (this.lastNeed = 3 - r, this.lastTotal = 3, r === 1 ? 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 sfe(t) { + function afe(t) { var e = t && t.length ? this.write(t) : ""; return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e; } - function ofe(t) { + function cfe(t) { return t.toString(this.encoding); } - function afe(t) { + function ufe(t) { return t && t.length ? this.write(t) : ""; } - var W_; - var so; + var q_; + var io; var ts; - var G_; + var W_; var lp; - var xu; + var vu; + var G_; var K_; - var X_; - var Io; - var mm; - var Pu; - var cb; + var No; + var gm; + var Ou; + var ab; var dC; var pC; + var Mh; var Ah; - var Th; - var Js; - var Y_; + var Zs; + var X_; var uf; - var gm; - var m5; - var Z_ = ei(() => { - for (je(), Ue(), Be(), W_ = { byteLength: function(t) { - var e = j_(t), r = e[0], n = e[1]; + var ym; + var p5; + var Y_ = ei(() => { + for (Be(), je(), Ue(), q_ = { byteLength: function(t) { + var e = U_(t), r = e[0], n = e[1]; return 3 * (r + n) / 4 - n; }, toByteArray: function(t) { - var e, r, n = j_(t), i = n[0], s = n[1], o = new G_(function(u, f, p) { + var e, r, n = U_(t), i = n[0], s = n[1], o = new W_(function(u, f, p) { return 3 * (f + p) / 4 - p; }(0, i, s)), a = 0, c = s > 0 ? i - 4 : i; for (r = 0; r < c; r += 4) @@ -57666,11 +57664,11 @@ ${gz(e, r)}`); return s === 2 && (e = ts[t.charCodeAt(r)] << 2 | ts[t.charCodeAt(r + 1)] >> 4, o[a++] = 255 & e), s === 1 && (e = ts[t.charCodeAt(r)] << 10 | ts[t.charCodeAt(r + 1)] << 4 | ts[t.charCodeAt(r + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = 255 & e), o; }, fromByteArray: function(t) { for (var e, r = t.length, n = r % 3, i = [], s = 0, o = r - n; s < o; s += 16383) - i.push(Fle(t, s, s + 16383 > o ? o : s + 16383)); - return n === 1 ? (e = t[r - 1], i.push(so[e >> 2] + so[e << 4 & 63] + "==")) : n === 2 && (e = (t[r - 2] << 8) + t[r - 1], i.push(so[e >> 10] + so[e >> 4 & 63] + so[e << 2 & 63] + "=")), i.join(""); - } }, so = [], ts = [], G_ = typeof Uint8Array < "u" ? Uint8Array : Array, lp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", xu = 0, K_ = lp.length; xu < K_; ++xu) - so[xu] = lp[xu], ts[lp.charCodeAt(xu)] = xu; - ts["-".charCodeAt(0)] = 62, ts["_".charCodeAt(0)] = 63, X_ = { read: function(t, e, r, n, i) { + i.push(qle(t, s, s + 16383 > o ? o : s + 16383)); + return n === 1 ? (e = t[r - 1], i.push(io[e >> 2] + io[e << 4 & 63] + "==")) : n === 2 && (e = (t[r - 2] << 8) + t[r - 1], i.push(io[e >> 10] + io[e >> 4 & 63] + io[e << 2 & 63] + "=")), i.join(""); + } }, io = [], ts = [], W_ = typeof Uint8Array < "u" ? Uint8Array : Array, lp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", vu = 0, G_ = lp.length; vu < G_; ++vu) + io[vu] = lp[vu], ts[lp.charCodeAt(vu)] = vu; + ts["-".charCodeAt(0)] = 62, ts["_".charCodeAt(0)] = 63, K_ = { read: function(t, e, r, n, i) { var s, o, a = 8 * i - n - 1, c = (1 << a) - 1, u = c >> 1, f = -7, p = r ? i - 1 : 0, b = r ? -1 : 1, E = t[e + p]; for (p += b, s = E & (1 << -f) - 1, E >>= -f, f += a; f > 0; s = 256 * s + t[e + p], p += b, f -= 8) ; @@ -57691,9 +57689,9 @@ ${gz(e, r)}`); for (o = o << i | a, u += i; u > 0; t[r + E] = 255 & o, E += _, o /= 256, u -= 8) ; t[r + E - _] |= 128 * N; - } }, Io = {}, mm = W_, Pu = X_, cb = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null, Io.Buffer = He, Io.SlowBuffer = function(t) { + } }, No = {}, gm = q_, Ou = K_, ab = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null, No.Buffer = He, No.SlowBuffer = function(t) { return +t != t && (t = 0), He.alloc(+t); - }, Io.INSPECT_MAX_BYTES = 50, Io.kMaxLength = 2147483647, He.TYPED_ARRAY_SUPPORT = function() { + }, No.INSPECT_MAX_BYTES = 50, No.kMaxLength = 2147483647, He.TYPED_ARRAY_SUPPORT = function() { try { var t = new Uint8Array(1), e = { foo: function() { return 42; @@ -57712,16 +57710,16 @@ ${gz(e, r)}`); return oC(t, e, r); }, Object.setPrototypeOf(He.prototype, Uint8Array.prototype), Object.setPrototypeOf(He, Uint8Array), He.alloc = function(t, e, r) { return function(n, i, s) { - return aC(n), n <= 0 ? qa(n) : i !== void 0 ? typeof s == "string" ? qa(n).fill(i, s) : qa(n).fill(i) : qa(n); + return aC(n), n <= 0 ? Fa(n) : i !== void 0 ? typeof s == "string" ? Fa(n).fill(i, s) : Fa(n).fill(i) : Fa(n); }(t, e, r); }, He.allocUnsafe = function(t) { - return d5(t); + return h5(t); }, He.allocUnsafeSlow = function(t) { - return d5(t); + return h5(t); }, He.isBuffer = function(t) { return t != null && t._isBuffer === true && t !== He.prototype; }, He.compare = function(t, e) { - if (Wa(t, Uint8Array) && (t = He.from(t, t.offset, t.byteLength)), Wa(e, Uint8Array) && (e = He.from(e, e.offset, e.byteLength)), !He.isBuffer(t) || !He.isBuffer(e)) + if (Ha(t, Uint8Array) && (t = He.from(t, t.offset, t.byteLength)), Ha(e, Uint8Array) && (e = He.from(e, e.offset, e.byteLength)), !He.isBuffer(t) || !He.isBuffer(e)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); if (t === e) return 0; @@ -57760,7 +57758,7 @@ ${gz(e, r)}`); var n = He.allocUnsafe(e), i = 0; for (r = 0; r < t.length; ++r) { var s = t[r]; - if (Wa(s, Uint8Array) && (s = He.from(s)), !He.isBuffer(s)) + if (Ha(s, Uint8Array) && (s = He.from(s)), !He.isBuffer(s)) throw new TypeError('"list" argument must be an Array of Buffers'); s.copy(n, i), i += s.length; } @@ -57770,34 +57768,34 @@ ${gz(e, r)}`); if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); for (var e = 0; e < t; e += 2) - wu(this, e, e + 1); + bu(this, e, e + 1); return this; }, He.prototype.swap32 = function() { var t = this.length; if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); for (var e = 0; e < t; e += 4) - wu(this, e, e + 3), wu(this, e + 1, e + 2); + bu(this, e, e + 3), bu(this, e + 1, e + 2); return this; }, He.prototype.swap64 = function() { var t = this.length; if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); for (var e = 0; e < t; e += 8) - wu(this, e, e + 7), wu(this, e + 1, e + 6), wu(this, e + 2, e + 5), wu(this, e + 3, e + 4); + bu(this, e, e + 7), bu(this, e + 1, e + 6), bu(this, e + 2, e + 5), bu(this, e + 3, e + 4); return this; }, He.prototype.toString = function() { var t = this.length; - return t === 0 ? "" : arguments.length === 0 ? lC(this, 0, t) : qle.apply(this, arguments); + return t === 0 ? "" : arguments.length === 0 ? lC(this, 0, t) : Gle.apply(this, arguments); }, He.prototype.toLocaleString = He.prototype.toString, He.prototype.equals = function(t) { if (!He.isBuffer(t)) throw new TypeError("Argument must be a Buffer"); return this === t || He.compare(this, t) === 0; }, He.prototype.inspect = function() { - var t = "", e = Io.INSPECT_MAX_BYTES; + var t = "", e = No.INSPECT_MAX_BYTES; return t = this.toString("hex", 0, e).replace(/(.{2})/g, "$1 ").trim(), this.length > e && (t += " ... "), ""; - }, cb && (He.prototype[cb] = He.prototype.inspect), He.prototype.compare = function(t, e, r, n, i) { - if (Wa(t, Uint8Array) && (t = He.from(t, t.offset, t.byteLength)), !He.isBuffer(t)) + }, ab && (He.prototype[ab] = He.prototype.inspect), He.prototype.compare = function(t, e, r, n, i) { + if (Ha(t, Uint8Array) && (t = He.from(t, t.offset, t.byteLength)), !He.isBuffer(t)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t); if (e === void 0 && (e = 0), r === void 0 && (r = t ? t.length : 0), n === void 0 && (n = 0), i === void 0 && (i = this.length), e < 0 || r > t.length || n < 0 || i > this.length) throw new RangeError("out of range index"); @@ -57818,9 +57816,9 @@ ${gz(e, r)}`); }, He.prototype.includes = function(t, e, r) { return this.indexOf(t, e, r) !== -1; }, He.prototype.indexOf = function(t, e, r) { - return V_(this, t, e, r, true); + return j_(this, t, e, r, true); }, He.prototype.lastIndexOf = function(t, e, r) { - return V_(this, t, e, r, false); + return j_(this, t, e, r, false); }, He.prototype.write = function(t, e, r, n) { if (e === void 0) n = "utf8", r = this.length, e = 0; @@ -57838,22 +57836,22 @@ ${gz(e, r)}`); for (var s = false; ; ) switch (n) { case "hex": - return Wle(this, t, e, r); + return Kle(this, t, e, r); case "utf8": case "utf-8": - return Gle(this, t, e, r); + return Xle(this, t, e, r); case "ascii": return uC(this, t, e, r); case "latin1": case "binary": - return Kle(this, t, e, r); + return Yle(this, t, e, r); case "base64": - return Xle(this, t, e, r); + return Zle(this, t, e, r); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return Yle(this, t, e, r); + return Jle(this, t, e, r); default: if (s) throw new TypeError("Unknown encoding: " + n); @@ -57911,39 +57909,39 @@ ${gz(e, r)}`); }, He.prototype.readInt32BE = function(t, e) { return t >>>= 0, e || En(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]; }, He.prototype.readFloatLE = function(t, e) { - return t >>>= 0, e || En(t, 4, this.length), Pu.read(this, t, true, 23, 4); + return t >>>= 0, e || En(t, 4, this.length), Ou.read(this, t, true, 23, 4); }, He.prototype.readFloatBE = function(t, e) { - return t >>>= 0, e || En(t, 4, this.length), Pu.read(this, t, false, 23, 4); + return t >>>= 0, e || En(t, 4, this.length), Ou.read(this, t, false, 23, 4); }, He.prototype.readDoubleLE = function(t, e) { - return t >>>= 0, e || En(t, 8, this.length), Pu.read(this, t, true, 52, 8); + return t >>>= 0, e || En(t, 8, this.length), Ou.read(this, t, true, 52, 8); }, He.prototype.readDoubleBE = function(t, e) { - return t >>>= 0, e || En(t, 8, this.length), Pu.read(this, t, false, 52, 8); + return t >>>= 0, e || En(t, 8, this.length), Ou.read(this, t, false, 52, 8); }, He.prototype.writeUIntLE = function(t, e, r, n) { - t = +t, e >>>= 0, r >>>= 0, n || Pi(this, t, e, r, Math.pow(2, 8 * r) - 1, 0); + t = +t, e >>>= 0, r >>>= 0, n || Oi(this, t, e, r, Math.pow(2, 8 * r) - 1, 0); var i = 1, s = 0; for (this[e] = 255 & t; ++s < r && (i *= 256); ) this[e + s] = t / i & 255; return e + r; }, He.prototype.writeUIntBE = function(t, e, r, n) { - t = +t, e >>>= 0, r >>>= 0, n || Pi(this, t, e, r, Math.pow(2, 8 * r) - 1, 0); + t = +t, e >>>= 0, r >>>= 0, n || Oi(this, t, e, r, Math.pow(2, 8 * r) - 1, 0); var i = r - 1, s = 1; for (this[e + i] = 255 & t; --i >= 0 && (s *= 256); ) this[e + i] = t / s & 255; return e + r; }, He.prototype.writeUInt8 = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 1, 255, 0), this[e] = 255 & t, e + 1; + return t = +t, e >>>= 0, r || Oi(this, t, e, 1, 255, 0), this[e] = 255 & t, e + 1; }, He.prototype.writeUInt16LE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 2, 65535, 0), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; + return t = +t, e >>>= 0, r || Oi(this, t, e, 2, 65535, 0), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; }, He.prototype.writeUInt16BE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 2, 65535, 0), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; + return t = +t, e >>>= 0, r || Oi(this, t, e, 2, 65535, 0), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; }, He.prototype.writeUInt32LE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(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; + return t = +t, e >>>= 0, r || Oi(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; }, He.prototype.writeUInt32BE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(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; + return t = +t, e >>>= 0, r || Oi(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; }, He.prototype.writeIntLE = function(t, e, r, n) { if (t = +t, e >>>= 0, !n) { var i = Math.pow(2, 8 * r - 1); - Pi(this, t, e, r, i - 1, -i); + Oi(this, t, e, r, i - 1, -i); } var s = 0, o = 1, a = 0; for (this[e] = 255 & t; ++s < r && (o *= 256); ) @@ -57952,30 +57950,30 @@ ${gz(e, r)}`); }, He.prototype.writeIntBE = function(t, e, r, n) { if (t = +t, e >>>= 0, !n) { var i = Math.pow(2, 8 * r - 1); - Pi(this, t, e, r, i - 1, -i); + Oi(this, t, e, r, i - 1, -i); } var s = r - 1, o = 1, a = 0; for (this[e + s] = 255 & t; --s >= 0 && (o *= 256); ) t < 0 && a === 0 && this[e + s + 1] !== 0 && (a = 1), this[e + s] = (t / o >> 0) - a & 255; return e + r; }, He.prototype.writeInt8 = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1; + return t = +t, e >>>= 0, r || Oi(this, t, e, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1; }, He.prototype.writeInt16LE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 2, 32767, -32768), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; + return t = +t, e >>>= 0, r || Oi(this, t, e, 2, 32767, -32768), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; }, He.prototype.writeInt16BE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(this, t, e, 2, 32767, -32768), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; + return t = +t, e >>>= 0, r || Oi(this, t, e, 2, 32767, -32768), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; }, He.prototype.writeInt32LE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(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; + return t = +t, e >>>= 0, r || Oi(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; }, He.prototype.writeInt32BE = function(t, e, r) { - return t = +t, e >>>= 0, r || Pi(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; + return t = +t, e >>>= 0, r || Oi(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; }, He.prototype.writeFloatLE = function(t, e, r) { - return F_(this, t, e, true, r); + return z_(this, t, e, true, r); }, He.prototype.writeFloatBE = function(t, e, r) { - return F_(this, t, e, false, r); + return z_(this, t, e, false, r); }, He.prototype.writeDoubleLE = function(t, e, r) { - return H_(this, t, e, true, r); + return F_(this, t, e, true, r); }, He.prototype.writeDoubleBE = function(t, e, r) { - return H_(this, t, e, false, r); + return F_(this, t, e, false, r); }, He.prototype.copy = function(t, e, r, n) { if (!He.isBuffer(t)) throw new TypeError("argument should be a Buffer"); @@ -58030,24 +58028,24 @@ ${gz(e, r)}`); for (var r = 16 * e, n = 0; n < 16; ++n) t[r + n] = "0123456789abcdef"[e] + "0123456789abcdef"[n]; return t; - }(), Io.Buffer, Io.INSPECT_MAX_BYTES, Io.kMaxLength, Ah = {}, Th = Io, Js = Th.Buffer, Js.from && Js.alloc && Js.allocUnsafe && Js.allocUnsafeSlow ? Ah = Th : (q_(Th, Ah), Ah.Buffer = vu), vu.prototype = Object.create(Js.prototype), q_(Js, vu), vu.from = function(t, e, r) { + }(), No.Buffer, No.INSPECT_MAX_BYTES, No.kMaxLength, Mh = {}, Ah = No, Zs = Ah.Buffer, Zs.from && Zs.alloc && Zs.allocUnsafe && Zs.allocUnsafeSlow ? Mh = Ah : (H_(Ah, Mh), Mh.Buffer = wu), wu.prototype = Object.create(Zs.prototype), H_(Zs, wu), wu.from = function(t, e, r) { if (typeof t == "number") throw new TypeError("Argument must not be a number"); - return Js(t, e, r); - }, vu.alloc = function(t, e, r) { + return Zs(t, e, r); + }, wu.alloc = function(t, e, r) { if (typeof t != "number") throw new TypeError("Argument must be a number"); - var n = Js(t); + var n = Zs(t); return e !== void 0 ? typeof r == "string" ? n.fill(e, r) : n.fill(e) : n.fill(0), n; - }, vu.allocUnsafe = function(t) { + }, wu.allocUnsafe = function(t) { if (typeof t != "number") throw new TypeError("Argument must be a number"); - return Js(t); - }, vu.allocUnsafeSlow = function(t) { + return Zs(t); + }, wu.allocUnsafeSlow = function(t) { if (typeof t != "number") throw new TypeError("Argument must be a number"); - return Th.SlowBuffer(t); - }, Y_ = Ah, uf = {}, gm = Y_.Buffer, m5 = gm.isEncoding || function(t) { + return Ah.SlowBuffer(t); + }, X_ = Mh, uf = {}, ym = X_.Buffer, p5 = ym.isEncoding || function(t) { switch ((t = "" + t) && t.toLowerCase()) { case "hex": case "utf8": @@ -58064,7 +58062,7 @@ ${gz(e, r)}`); default: return false; } - }, uf.StringDecoder = Mh, Mh.prototype.write = function(t) { + }, uf.StringDecoder = Sh, Sh.prototype.write = function(t) { if (t.length === 0) return ""; var e, r; @@ -58075,23 +58073,23 @@ ${gz(e, r)}`); } else r = 0; return r < t.length ? e ? e + this.text(t, r) : this.text(t, r) : e || ""; - }, Mh.prototype.end = function(t) { + }, Sh.prototype.end = function(t) { var e = t && t.length ? this.write(t) : ""; return this.lastNeed ? e + "\uFFFD" : e; - }, Mh.prototype.text = function(t, e) { + }, Sh.prototype.text = function(t, e) { var r = function(i, s, o) { var a = s.length - 1; if (a < o) return 0; - var c = ab(s[a]); - return c >= 0 ? (c > 0 && (i.lastNeed = c - 1), c) : --a < o || c === -2 ? 0 : (c = ab(s[a])) >= 0 ? (c > 0 && (i.lastNeed = c - 2), c) : --a < o || c === -2 ? 0 : (c = ab(s[a])) >= 0 ? (c > 0 && (c === 2 ? c = 0 : i.lastNeed = c - 3), c) : 0; + var c = ob(s[a]); + return c >= 0 ? (c > 0 && (i.lastNeed = c - 1), c) : --a < o || c === -2 ? 0 : (c = ob(s[a])) >= 0 ? (c > 0 && (i.lastNeed = c - 2), c) : --a < o || c === -2 ? 0 : (c = ob(s[a])) >= 0 ? (c > 0 && (c === 2 ? c = 0 : i.lastNeed = c - 3), c) : 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); - }, Mh.prototype.fillLast = function(t) { + }, Sh.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; @@ -58100,11 +58098,11 @@ ${gz(e, r)}`); var mC = {}; Al(mC, { StringDecoder: () => gC, default: () => uf }); var gC; - var cfe = ei(() => { - je(), Ue(), Be(), Z_(), Z_(), gC = uf.StringDecoder; + var lfe = ei(() => { + Be(), je(), Ue(), Y_(), Y_(), gC = uf.StringDecoder; }); var yC = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = Tl(), { PromisePrototypeThen: n, SymbolAsyncIterator: i, SymbolIterator: s } = xn(), { Buffer: o } = (ri(), vr(ti)), { ERR_INVALID_ARG_TYPE: a, ERR_STREAM_NULL_VALUES: c } = Xi().codes; function u(f, p, b) { let E; @@ -58162,22 +58160,22 @@ ${gz(e, r)}`); e.exports = u; }); var c2 = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = Tl(), { ArrayPrototypeIndexOf: n, NumberIsInteger: i, NumberIsNaN: s, NumberParseInt: o, ObjectDefineProperties: a, ObjectKeys: c, ObjectSetPrototypeOf: u, Promise: f, SafeSet: p, SymbolAsyncIterator: b, Symbol: E } = xn(); e.exports = m, m.ReadableState = g; - var { EventEmitter: _ } = (Xf(), vr(Nl)), { Stream: N, prependListener: k } = px(), { Buffer: F } = (ri(), vr(ti)), { addAbortSignal: L } = o2(), D = lu(), q = Ja().debuglog("stream", (O) => { + var { EventEmitter: _ } = (Kf(), vr(Nl)), { Stream: N, prependListener: k } = dx(), { Buffer: F } = (ri(), vr(ti)), { addAbortSignal: L } = o2(), D = uu(), q = Ya().debuglog("stream", (O) => { q = O; - }), W = zle(), z = Kf(), { getHighWaterMark: T, getDefaultHighWaterMark: I } = mx(), { aggregateTwoErrors: H, codes: { ERR_INVALID_ARG_TYPE: X, ERR_METHOD_NOT_IMPLEMENTED: V, ERR_OUT_OF_RANGE: S, ERR_STREAM_PUSH_AFTER_EOF: d, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: l } } = Xi(), { validateObject: h } = s2(), y = E("kPaused"), { StringDecoder: x } = (cfe(), vr(mC)), v = yC(); + }), W = Hle(), z = Gf(), { getHighWaterMark: T, getDefaultHighWaterMark: I } = px(), { aggregateTwoErrors: H, codes: { ERR_INVALID_ARG_TYPE: X, ERR_METHOD_NOT_IMPLEMENTED: V, ERR_OUT_OF_RANGE: S, ERR_STREAM_PUSH_AFTER_EOF: d, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: l } } = Xi(), { validateObject: h } = s2(), y = E("kPaused"), { StringDecoder: x } = (lfe(), vr(mC)), v = yC(); u(m.prototype, N.prototype), u(m, N); var M = () => { }, { errorOrDestroy: w } = z; function g(O, B, $) { - typeof $ != "boolean" && ($ = B instanceof Qa()), this.objectMode = !!(O && O.objectMode), $ && (this.objectMode = this.objectMode || !!(O && O.readableObjectMode)), this.highWaterMark = O ? T(this, O, "readableHighWaterMark", $) : I(false), this.buffer = new W(), this.length = 0, this.pipes = [], this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.constructed = true, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this[y] = null, this.errorEmitted = false, this.emitClose = !O || O.emitClose !== false, this.autoDestroy = !O || O.autoDestroy !== false, this.destroyed = false, this.errored = null, this.closed = false, this.closeEmitted = false, this.defaultEncoding = O && O.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.multiAwaitDrain = false, this.readingMore = false, this.dataEmitted = false, this.decoder = null, this.encoding = null, O && O.encoding && (this.decoder = new x(O.encoding), this.encoding = O.encoding); + typeof $ != "boolean" && ($ = B instanceof Za()), this.objectMode = !!(O && O.objectMode), $ && (this.objectMode = this.objectMode || !!(O && O.readableObjectMode)), this.highWaterMark = O ? T(this, O, "readableHighWaterMark", $) : I(false), this.buffer = new W(), this.length = 0, this.pipes = [], this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.constructed = true, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this[y] = null, this.errorEmitted = false, this.emitClose = !O || O.emitClose !== false, this.autoDestroy = !O || O.autoDestroy !== false, this.destroyed = false, this.errored = null, this.closed = false, this.closeEmitted = false, this.defaultEncoding = O && O.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.multiAwaitDrain = false, this.readingMore = false, this.dataEmitted = false, this.decoder = null, this.encoding = null, O && O.encoding && (this.decoder = new x(O.encoding), this.encoding = O.encoding); } function m(O) { if (!(this instanceof m)) return new m(O); - let B = this instanceof Qa(); + let B = this instanceof Za(); this._readableState = new g(O, this, B), O && (typeof O.read == "function" && (this._read = O.read), typeof O.destroy == "function" && (this._destroy = O.destroy), typeof O.construct == "function" && (this._construct = O.construct), O.signal && !B && L(O.signal, this)), N.call(this, O), z.construct(this, () => { this._readableState.needReadable && Y(this, this._readableState); }); @@ -58532,16 +58530,16 @@ ${gz(e, r)}`); }; }); var bC = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = Tl(), { ArrayPrototypeSlice: n, Error: i, FunctionPrototypeSymbolHasInstance: s, ObjectDefineProperty: o, ObjectDefineProperties: a, ObjectSetPrototypeOf: c, StringPrototypeToLowerCase: u, Symbol: f, SymbolHasInstance: p } = xn(); e.exports = x, x.WritableState = h; - var { EventEmitter: b } = (Xf(), vr(Nl)), E = px().Stream, { Buffer: _ } = (ri(), vr(ti)), N = Kf(), { addAbortSignal: k } = o2(), { getHighWaterMark: F, getDefaultHighWaterMark: L } = mx(), { ERR_INVALID_ARG_TYPE: D, ERR_METHOD_NOT_IMPLEMENTED: q, ERR_MULTIPLE_CALLBACK: W, ERR_STREAM_CANNOT_PIPE: z, ERR_STREAM_DESTROYED: T, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: H, ERR_STREAM_WRITE_AFTER_END: X, ERR_UNKNOWN_ENCODING: V } = Xi().codes, { errorOrDestroy: S } = N; + var { EventEmitter: b } = (Kf(), vr(Nl)), E = dx().Stream, { Buffer: _ } = (ri(), vr(ti)), N = Gf(), { addAbortSignal: k } = o2(), { getHighWaterMark: F, getDefaultHighWaterMark: L } = px(), { ERR_INVALID_ARG_TYPE: D, ERR_METHOD_NOT_IMPLEMENTED: q, ERR_MULTIPLE_CALLBACK: W, ERR_STREAM_CANNOT_PIPE: z, ERR_STREAM_DESTROYED: T, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: H, ERR_STREAM_WRITE_AFTER_END: X, ERR_UNKNOWN_ENCODING: V } = Xi().codes, { errorOrDestroy: S } = N; c(x.prototype, E.prototype), c(x, E); function d() { } var l = f("kOnFinished"); function h(Z, ce, oe) { - typeof oe != "boolean" && (oe = ce instanceof Qa()), this.objectMode = !!(Z && Z.objectMode), oe && (this.objectMode = this.objectMode || !!(Z && Z.writableObjectMode)), this.highWaterMark = Z ? F(this, Z, "writableHighWaterMark", oe) : L(false), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false; + typeof oe != "boolean" && (oe = ce instanceof Za()), this.objectMode = !!(Z && Z.objectMode), oe && (this.objectMode = this.objectMode || !!(Z && Z.writableObjectMode)), this.highWaterMark = Z ? F(this, Z, "writableHighWaterMark", oe) : L(false), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false; let me = !!(Z && Z.decodeStrings === false); this.decodeStrings = !me, this.defaultEncoding = Z && Z.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = m.bind(void 0, ce), this.writecb = null, this.writelen = 0, this.afterWriteTickInfo = null, y(this), this.pendingcb = 0, this.constructed = true, this.prefinished = false, this.errorEmitted = false, this.emitClose = !Z || Z.emitClose !== false, this.autoDestroy = !Z || Z.autoDestroy !== false, this.errored = null, this.closed = false, this.closeEmitted = false, this[l] = []; } @@ -58554,7 +58552,7 @@ ${gz(e, r)}`); return this.buffered.length - this.bufferedIndex; } }); function x(Z) { - let ce = this instanceof Qa(); + let ce = this instanceof Za(); if (!ce && !s(x, this)) return new x(Z); this._writableState = new h(Z, this, ce), Z && (typeof Z.write == "function" && (this._write = Z.write), typeof Z.writev == "function" && (this._writev = Z.writev), typeof Z.destroy == "function" && (this._destroy = Z.destroy), typeof Z.final == "function" && (this._final = Z.final), typeof Z.construct == "function" && (this._construct = Z.construct), Z.signal && k(Z.signal, this)), E.call(this, Z), N.construct(this, () => { @@ -58783,13 +58781,13 @@ ${gz(e, r)}`); return ie().newWritableStreamFromStreamWritable(Z); }; }); - var ufe = Ye((t, e) => { - je(), Ue(), Be(); - var r = Tl(), n = (ri(), vr(ti)), { isReadable: i, isWritable: s, isIterable: o, isNodeStream: a, isReadableNodeStream: c, isWritableNodeStream: u, isDuplexNodeStream: f } = cc(), p = lu(), { AbortError: b, codes: { ERR_INVALID_ARG_TYPE: E, ERR_INVALID_RETURN_VALUE: _ } } = Xi(), { destroyer: N } = Kf(), k = Qa(), F = c2(), { createDeferredPromise: L } = Ja(), D = yC(), q = globalThis.Blob || n.Blob, W = typeof q < "u" ? function(V) { + var ffe = Ye((t, e) => { + Be(), je(), Ue(); + var r = Tl(), n = (ri(), vr(ti)), { isReadable: i, isWritable: s, isIterable: o, isNodeStream: a, isReadableNodeStream: c, isWritableNodeStream: u, isDuplexNodeStream: f } = oc(), p = uu(), { AbortError: b, codes: { ERR_INVALID_ARG_TYPE: E, ERR_INVALID_RETURN_VALUE: _ } } = Xi(), { destroyer: N } = Gf(), k = Za(), F = c2(), { createDeferredPromise: L } = Ya(), D = yC(), q = globalThis.Blob || n.Blob, W = typeof q < "u" ? function(V) { return V instanceof q; } : function(V) { return false; - }, z = globalThis.AbortController || dx().AbortController, { FunctionPrototypeCall: T } = xn(), I = class extends k { + }, z = globalThis.AbortController || hx().AbortController, { FunctionPrototypeCall: T } = xn(), I = class extends k { constructor(V) { super(V), (V == null ? void 0 : V.readable) === false && (this._readableState.readable = false, this._readableState.ended = true, this._readableState.endEmitted = true), (V == null ? void 0 : V.writable) === false && (this._writableState.writable = false, this._writableState.ending = true, this._writableState.ended = true, this._writableState.finished = true); } @@ -58916,8 +58914,8 @@ ${gz(e, r)}`); }, w; } }); - var Qa = Ye((t, e) => { - je(), Ue(), Be(); + var Za = Ye((t, e) => { + Be(), je(), Ue(); var { ObjectDefineProperties: r, ObjectGetOwnPropertyDescriptor: n, ObjectKeys: i, ObjectSetPrototypeOf: s } = xn(); e.exports = c; var o = c2(), a = bC(); @@ -58950,14 +58948,14 @@ ${gz(e, r)}`); }; var p; c.from = function(b) { - return p || (p = ufe()), p(b, "body"); + return p || (p = ffe()), p(b, "body"); }; }); var wC = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var { ObjectSetPrototypeOf: r, Symbol: n } = xn(); e.exports = c; - var { ERR_METHOD_NOT_IMPLEMENTED: i } = Xi().codes, s = Qa(), { getHighWaterMark: o } = mx(); + var { ERR_METHOD_NOT_IMPLEMENTED: i } = Xi().codes, s = Za(), { getHighWaterMark: o } = px(); r(c.prototype, s.prototype), r(c, s); var a = n("kCallback"); function c(p) { @@ -58997,7 +58995,7 @@ ${gz(e, r)}`); }; }); var vC = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var { ObjectSetPrototypeOf: r } = xn(); e.exports = i; var n = wC(); @@ -59011,9 +59009,9 @@ ${gz(e, r)}`); a(null, s); }; }); - var bx = Ye((t, e) => { - je(), Ue(), Be(); - var r = Tl(), { ArrayIsArray: n, Promise: i, SymbolAsyncIterator: s } = xn(), o = lu(), { once: a } = Ja(), c = Kf(), u = Qa(), { aggregateTwoErrors: f, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: E, ERR_STREAM_DESTROYED: _, ERR_STREAM_PREMATURE_CLOSE: N }, AbortError: k } = Xi(), { validateFunction: F, validateAbortSignal: L } = s2(), { isIterable: D, isReadable: q, isReadableNodeStream: W, isNodeStream: z, isTransformStream: T, isWebStream: I, isReadableStream: H, isReadableEnded: X } = cc(), V = globalThis.AbortController || dx().AbortController, S, d; + var yx = Ye((t, e) => { + Be(), je(), Ue(); + var r = Tl(), { ArrayIsArray: n, Promise: i, SymbolAsyncIterator: s } = xn(), o = uu(), { once: a } = Ya(), c = Gf(), u = Za(), { aggregateTwoErrors: f, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: E, ERR_STREAM_DESTROYED: _, ERR_STREAM_PREMATURE_CLOSE: N }, AbortError: k } = Xi(), { validateFunction: F, validateAbortSignal: L } = s2(), { isIterable: D, isReadable: q, isReadableNodeStream: W, isNodeStream: z, isTransformStream: T, isWebStream: I, isReadableStream: H, isReadableEnded: X } = oc(), V = globalThis.AbortController || hx().AbortController, S, d; function l(P, Q, A) { let K = false; P.on("close", () => { @@ -59200,8 +59198,8 @@ ${gz(e, r)}`); e.exports = { pipelineImpl: g, pipeline: w }; }); var xC = Ye((t, e) => { - je(), Ue(), Be(); - var { pipeline: r } = bx(), n = Qa(), { destroyer: i } = Kf(), { isNodeStream: s, isReadable: o, isWritable: a, isWebStream: c, isTransformStream: u, isWritableStream: f, isReadableStream: p } = cc(), { AbortError: b, codes: { ERR_INVALID_ARG_VALUE: E, ERR_MISSING_ARGS: _ } } = Xi(), N = lu(); + Be(), je(), Ue(); + var { pipeline: r } = yx(), n = Za(), { destroyer: i } = Gf(), { isNodeStream: s, isReadable: o, isWritable: a, isWebStream: c, isTransformStream: u, isWritableStream: f, isReadableStream: p } = oc(), { AbortError: b, codes: { ERR_INVALID_ARG_VALUE: E, ERR_MISSING_ARGS: _ } } = Xi(), N = uu(); e.exports = function(...k) { if (k.length === 0) throw new _("streams"); @@ -59306,9 +59304,9 @@ ${gz(e, r)}`); }, z; }; }); - var lfe = Ye((t, e) => { - je(), Ue(), Be(); - var r = globalThis.AbortController || dx().AbortController, { codes: { ERR_INVALID_ARG_VALUE: n, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: s, ERR_OUT_OF_RANGE: o }, AbortError: a } = Xi(), { validateAbortSignal: c, validateInteger: u, validateObject: f } = s2(), p = xn().Symbol("kWeak"), { finished: b } = lu(), E = xC(), { addAbortSignalNoValidate: _ } = o2(), { isWritable: N, isNodeStream: k } = cc(), { ArrayPrototypePush: F, MathFloor: L, Number: D, NumberIsNaN: q, Promise: W, PromiseReject: z, PromisePrototypeThen: T, Symbol: I } = xn(), H = I("kEmpty"), X = I("kEof"); + var hfe = Ye((t, e) => { + Be(), je(), Ue(); + var r = globalThis.AbortController || hx().AbortController, { codes: { ERR_INVALID_ARG_VALUE: n, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: s, ERR_OUT_OF_RANGE: o }, AbortError: a } = Xi(), { validateAbortSignal: c, validateInteger: u, validateObject: f } = s2(), p = xn().Symbol("kWeak"), { finished: b } = uu(), E = xC(), { addAbortSignalNoValidate: _ } = o2(), { isWritable: N, isNodeStream: k } = oc(), { ArrayPrototypePush: F, MathFloor: L, Number: D, NumberIsNaN: q, Promise: W, PromiseReject: z, PromisePrototypeThen: T, Symbol: I } = xn(), H = I("kEmpty"), X = I("kEof"); function V(K, U) { if (U != null && f(U, "options"), (U == null ? void 0 : U.signal) != null && c(U.signal, "options.signal"), k(K) && !N(K)) throw new n("stream", K, "must be writable"); @@ -59509,8 +59507,8 @@ ${gz(e, r)}`); e.exports.streamReturningOperators = { asIndexedPairs: d, drop: Q, filter: v, flatMap: m, map: S, take: A, compose: V }, e.exports.promiseReturningOperators = { every: h, forEach: x, reduce: w, toArray: g, some: l, find: y }; }); var _C = Ye((t, e) => { - je(), Ue(), Be(); - var { ArrayPrototypePop: r, Promise: n } = xn(), { isIterable: i, isNodeStream: s, isWebStream: o } = cc(), { pipelineImpl: a } = bx(), { finished: c } = lu(); + Be(), je(), Ue(); + var { ArrayPrototypePop: r, Promise: n } = xn(), { isIterable: i, isNodeStream: s, isWebStream: o } = oc(), { pipelineImpl: a } = yx(), { finished: c } = uu(); EC(); function u(...f) { return new n((p, b) => { @@ -59527,8 +59525,8 @@ ${gz(e, r)}`); e.exports = { finished: c, pipeline: u }; }); var EC = Ye((t, e) => { - je(), Ue(), Be(); - var { Buffer: r } = (ri(), vr(ti)), { ObjectDefineProperty: n, ObjectKeys: i, ReflectApply: s } = xn(), { promisify: { custom: o } } = Ja(), { streamReturningOperators: a, promiseReturningOperators: c } = lfe(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: u } } = Xi(), f = xC(), { pipeline: p } = bx(), { destroyer: b } = Kf(), E = lu(), _ = _C(), N = cc(), k = e.exports = px().Stream; + Be(), je(), Ue(); + var { Buffer: r } = (ri(), vr(ti)), { ObjectDefineProperty: n, ObjectKeys: i, ReflectApply: s } = xn(), { promisify: { custom: o } } = Ya(), { streamReturningOperators: a, promiseReturningOperators: c } = hfe(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: u } } = Xi(), f = xC(), { pipeline: p } = yx(), { destroyer: b } = Gf(), E = uu(), _ = _C(), N = oc(), k = e.exports = dx().Stream; k.isDisturbed = N.isDisturbed, k.isErrored = N.isErrored, k.isReadable = N.isReadable, k.Readable = c2(); for (let L of i(a)) { let D = function(...W) { @@ -59546,7 +59544,7 @@ ${gz(e, r)}`); }, q = c[L]; n(D, "name", { __proto__: null, value: q.name }), n(D, "length", { __proto__: null, value: q.length }), n(k.Readable.prototype, L, { __proto__: null, value: D, enumerable: false, configurable: true, writable: true }); } - k.Writable = bC(), k.Duplex = Qa(), k.Transform = wC(), k.PassThrough = vC(), k.pipeline = p; + k.Writable = bC(), k.Duplex = Za(), k.Transform = wC(), k.PassThrough = vC(), k.pipeline = p; var { addAbortSignal: F } = o2(); k.addAbortSignal = F, k.finished = E, k.destroy = b, k.compose = f, n(k, "promises", { __proto__: null, configurable: true, enumerable: true, get() { return _; @@ -59561,14 +59559,14 @@ ${gz(e, r)}`); }; }); var Il = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = EC(), n = _C(), i = r.Readable.destroy; e.exports = r.Readable, e.exports._uint8ArrayToBuffer = r._uint8ArrayToBuffer, e.exports._isUint8Array = r._isUint8Array, e.exports.isDisturbed = r.isDisturbed, e.exports.isErrored = r.isErrored, e.exports.isReadable = r.isReadable, e.exports.Readable = r.Readable, e.exports.Writable = r.Writable, e.exports.Duplex = r.Duplex, e.exports.Transform = r.Transform, e.exports.PassThrough = r.PassThrough, e.exports.addAbortSignal = r.addAbortSignal, e.exports.finished = r.finished, e.exports.destroy = r.destroy, e.exports.destroy = i, e.exports.pipeline = r.pipeline, e.exports.compose = r.compose, Object.defineProperty(r, "promises", { configurable: true, enumerable: true, get() { return n; } }), e.exports.Stream = r.Stream, e.exports.default = e.exports; }); - var ffe = Ye((t, e) => { - je(), Ue(), Be(), typeof Object.create == "function" ? e.exports = function(r, n) { + var dfe = Ye((t, e) => { + Be(), je(), Ue(), typeof Object.create == "function" ? e.exports = function(r, n) { n && (r.super_ = n, r.prototype = Object.create(n.prototype, { constructor: { value: r, enumerable: false, writable: true, configurable: true } })); } : e.exports = function(r, n) { if (n) { @@ -59579,8 +59577,8 @@ ${gz(e, r)}`); } }; }); - var hfe = Ye((t, e) => { - je(), Ue(), Be(); + var pfe = Ye((t, e) => { + Be(), je(), Ue(); var { Buffer: r } = (ri(), vr(ti)), n = Symbol.for("BufferList"); function i(s) { if (!(this instanceof i)) @@ -59723,9 +59721,9 @@ ${gz(e, r)}`); return s != null && s[n]; }, e.exports = i; }); - var dfe = Ye((t, e) => { - je(), Ue(), Be(); - var r = Il().Duplex, n = ffe(), i = hfe(); + var mfe = Ye((t, e) => { + Be(), je(), Ue(); + var r = Il().Duplex, n = dfe(), i = pfe(); function s(o) { if (!(this instanceof s)) return new s(o); @@ -59758,8 +59756,8 @@ ${gz(e, r)}`); return o instanceof s || o instanceof i || s.isBufferList(o); }, s.isBufferList = i.isBufferList, e.exports = s, e.exports.BufferListStream = s, e.exports.BufferList = i; }); - var pfe = Ye((t, e) => { - je(), Ue(), Be(); + var gfe = Ye((t, e) => { + Be(), je(), Ue(); var r = class { constructor() { this.cmd = null, this.retain = false, this.qos = 0, this.dup = false, this.length = -1, this.topic = null, this.payload = null; @@ -59768,7 +59766,7 @@ ${gz(e, r)}`); e.exports = r; }); var SC = Ye((t, e) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var r = e.exports, { Buffer: n } = (ri(), vr(ti)); r.types = { 0: "reserved", 1: "connect", 2: "connack", 3: "publish", 4: "puback", 5: "pubrec", 6: "pubrel", 7: "pubcomp", 8: "subscribe", 9: "suback", 10: "unsubscribe", 11: "unsuback", 12: "pingreq", 13: "pingresp", 14: "disconnect", 15: "auth" }, r.requiredHeaderFlags = { 1: 0, 2: 0, 4: 0, 5: 0, 6: 2, 7: 0, 8: 2, 9: 0, 10: 2, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0 }, r.requiredHeaderFlagsErrors = {}; for (let s in r.requiredHeaderFlags) { @@ -59794,8 +59792,8 @@ ${gz(e, r)}`); } r.PUBLISH_HEADER = i("publish"), r.SUBSCRIBE_HEADER = i("subscribe"), r.SUBSCRIBE_OPTIONS_QOS_MASK = 3, r.SUBSCRIBE_OPTIONS_NL_MASK = 1, r.SUBSCRIBE_OPTIONS_NL_SHIFT = 2, r.SUBSCRIBE_OPTIONS_RAP_MASK = 1, r.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3, r.SUBSCRIBE_OPTIONS_RH_MASK = 3, r.SUBSCRIBE_OPTIONS_RH_SHIFT = 4, r.SUBSCRIBE_OPTIONS_RH = [0, 16, 32], r.SUBSCRIBE_OPTIONS_NL = 4, r.SUBSCRIBE_OPTIONS_RAP = 8, r.SUBSCRIBE_OPTIONS_QOS = [0, 1, 2], r.UNSUBSCRIBE_HEADER = i("unsubscribe"), r.ACKS = { unsuback: i("unsuback"), puback: i("puback"), pubcomp: i("pubcomp"), pubrel: i("pubrel"), pubrec: i("pubrec") }, r.SUBACK_HEADER = n.from([r.codes.suback << r.CMD_SHIFT]), r.VERSION3 = n.from([3]), r.VERSION4 = n.from([4]), r.VERSION5 = n.from([5]), r.VERSION131 = n.from([131]), r.VERSION132 = n.from([132]), r.QOS = [0, 1, 2].map((s) => n.from([s])), r.EMPTY = { pingreq: n.from([r.codes.pingreq << 4, 0]), pingresp: n.from([r.codes.pingresp << 4, 0]), disconnect: n.from([r.codes.disconnect << 4, 0]) }, r.MQTT5_PUBACK_PUBREC_CODES = { 0: "Success", 16: "No matching subscribers", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 144: "Topic Name invalid", 145: "Packet identifier in use", 151: "Quota exceeded", 153: "Payload format invalid" }, r.MQTT5_PUBREL_PUBCOMP_CODES = { 0: "Success", 146: "Packet Identifier not found" }, r.MQTT5_SUBACK_CODES = { 0: "Granted QoS 0", 1: "Granted QoS 1", 2: "Granted QoS 2", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use", 151: "Quota exceeded", 158: "Shared Subscriptions not supported", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, r.MQTT5_UNSUBACK_CODES = { 0: "Success", 17: "No subscription existed", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use" }, r.MQTT5_DISCONNECT_CODES = { 0: "Normal disconnection", 4: "Disconnect with Will Message", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 135: "Not authorized", 137: "Server busy", 139: "Server shutting down", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, r.MQTT5_AUTH_CODES = { 0: "Success", 24: "Continue authentication", 25: "Re-authenticate" }; }); - var mfe = Ye((t, e) => { - je(), Ue(), Be(); + var yfe = Ye((t, e) => { + Be(), je(), Ue(); var r = 1e3, n = r * 60, i = n * 60, s = i * 24, o = s * 7, a = s * 365.25; e.exports = function(b, E) { E = E || {}; @@ -59869,10 +59867,10 @@ ${gz(e, r)}`); return Math.round(b / _) + " " + N + (k ? "s" : ""); } }); - var gfe = Ye((t, e) => { - je(), Ue(), Be(); + var bfe = Ye((t, e) => { + Be(), je(), Ue(); function r(n) { - s.debug = s, s.default = s, s.coerce = p, s.disable = c, s.enable = a, s.enabled = u, s.humanize = mfe(), s.destroy = b, Object.keys(n).forEach((E) => { + s.debug = s, s.default = s, s.coerce = p, s.disable = c, s.enable = a, s.enabled = u, s.humanize = yfe(), s.destroy = b, Object.keys(n).forEach((E) => { s[E] = n[E]; }), s.names = [], s.skips = [], s.formatters = {}; function i(E) { @@ -59945,15 +59943,15 @@ ${gz(e, r)}`); } e.exports = r; }); - var $a = Ye((t, e) => { - je(), Ue(), Be(), t.formatArgs = n, t.save = i, t.load = s, t.useColors = r, t.storage = o(), t.destroy = (() => { + var Ja = Ye((t, e) => { + Be(), je(), Ue(), t.formatArgs = n, t.save = i, t.load = s, t.useColors = r, t.storage = o(), t.destroy = (() => { let c = false; return () => { c || (c = true, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")); }; })(), t.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"]; function r() { - return typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs) ? true : typeof Yn < "u" && Yn.userAgent && Yn.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) ? false : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof Yn < "u" && Yn.userAgent && Yn.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof Yn < "u" && Yn.userAgent && Yn.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); + return typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs) ? true : typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) ? false : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } function n(c) { if (c[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + c[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff), !this.useColors) @@ -59987,7 +59985,7 @@ ${gz(e, r)}`); } catch { } } - e.exports = gfe()(t); + e.exports = bfe()(t); var { formatters: a } = e.exports; a.j = function(c) { try { @@ -59997,14 +59995,14 @@ ${gz(e, r)}`); } }; }); - var yfe = Ye((t, e) => { - je(), Ue(), Be(); - var r = dfe(), { EventEmitter: n } = (Xf(), vr(Nl)), i = pfe(), s = SC(), o = $a()("mqtt-packet:parser"), a = class g5 extends n { + var wfe = Ye((t, e) => { + Be(), je(), Ue(); + var r = mfe(), { EventEmitter: n } = (Kf(), vr(Nl)), i = gfe(), s = SC(), o = Ja()("mqtt-packet:parser"), a = class m5 extends n { constructor() { super(), this.parser = this.constructor.parser; } static parser(u) { - return this instanceof g5 ? (this.settings = u || {}, this._states = ["_parseHeader", "_parseLength", "_parsePayload", "_newPacket"], this._resetState(), this) : new g5().parser(u); + return this instanceof m5 ? (this.settings = u || {}, this._states = ["_parseHeader", "_parseLength", "_parsePayload", "_newPacket"], this._resetState(), this) : new m5().parser(u); } _resetState() { o("_resetState: resetting packet, error, _list, and _stateCounter"), this.packet = new i(), this.error = null, this._list = r(), this._stateCounter = 0; @@ -60404,8 +60402,8 @@ ${gz(e, r)}`); }; e.exports = a; }); - var bfe = Ye((t, e) => { - je(), Ue(), Be(); + var vfe = Ye((t, e) => { + Be(), je(), Ue(); var { Buffer: r } = (ri(), vr(ti)), n = 65536, i = {}, s = r.isBuffer(r.from([1, 2]).subarray(0, 1)); function o(f) { let p = r.allocUnsafe(2); @@ -60428,8 +60426,8 @@ ${gz(e, r)}`); } e.exports = { cache: i, generateCache: a, generateNumber: o, genBufVariableByteInt: c, generate4ByteBuffer: u }; }); - var wfe = Ye((t, e) => { - je(), Ue(), Be(), typeof cr > "u" || !cr.version || cr.version.indexOf("v0.") === 0 || cr.version.indexOf("v1.") === 0 && cr.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: r } : e.exports = cr; + var xfe = Ye((t, e) => { + Be(), je(), Ue(), typeof cr > "u" || !cr.version || cr.version.indexOf("v0.") === 0 || cr.version.indexOf("v1.") === 0 && cr.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: r } : e.exports = cr; function r(n, i, s, o) { if (typeof n != "function") throw new TypeError('"callback" argument must be a function'); @@ -60460,8 +60458,8 @@ ${gz(e, r)}`); } }); var MC = Ye((t, e) => { - je(), Ue(), Be(); - var r = SC(), { Buffer: n } = (ri(), vr(ti)), i = n.allocUnsafe(0), s = n.from([0]), o = bfe(), a = wfe().nextTick, c = $a()("mqtt-packet:writeToStream"), u = o.cache, f = o.generateNumber, p = o.generateCache, b = o.genBufVariableByteInt, E = o.generate4ByteBuffer, _ = x, N = true; + Be(), je(), Ue(); + var r = SC(), { Buffer: n } = (ri(), vr(ti)), i = n.allocUnsafe(0), s = n.from([0]), o = vfe(), a = xfe().nextTick, c = Ja()("mqtt-packet:writeToStream"), u = o.cache, f = o.generateNumber, p = o.generateCache, b = o.genBufVariableByteInt, E = o.generate4ByteBuffer, _ = x, N = true; function k(U, j, G) { switch (c("generate called"), j.cork && (j.cork(), a(F, j)), N && (N = false, p()), c("generate: packet.cmd: %s", U.cmd), U.cmd) { case "connect": @@ -60918,9 +60916,9 @@ ${gz(e, r)}`); } e.exports = k; }); - var vfe = Ye((t, e) => { - je(), Ue(), Be(); - var r = MC(), { EventEmitter: n } = (Xf(), vr(Nl)), { Buffer: i } = (ri(), vr(ti)); + var _fe = Ye((t, e) => { + Be(), je(), Ue(); + var r = MC(), { EventEmitter: n } = (Kf(), vr(Nl)), { Buffer: i } = (ri(), vr(ti)); function s(a, c) { let u = new o(); return r(a, u, c), u.concat(); @@ -60947,11 +60945,11 @@ ${gz(e, r)}`); }; e.exports = s; }); - var xfe = Ye((t) => { - je(), Ue(), Be(), t.parser = yfe().parser, t.generate = vfe(), t.writeToStream = MC(); + var Efe = Ye((t) => { + Be(), je(), Ue(), t.parser = wfe().parser, t.generate = _fe(), t.writeToStream = MC(); }); var AC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = class { constructor() { this.nextId = Math.max(1, Math.floor(Math.random() * 65535)); @@ -60973,10 +60971,10 @@ ${gz(e, r)}`); }; t.default = e; }); - var _fe = Ye((t, e) => { - je(), Ue(), Be(), e.exports = n; + var Sfe = Ye((t, e) => { + Be(), je(), Ue(), e.exports = n; function r(s) { - return s instanceof pm ? pm.from(s) : new s.constructor(s.buffer.slice(), s.byteOffset, s.length); + return s instanceof mm ? mm.from(s) : new s.constructor(s.buffer.slice(), s.byteOffset, s.length); } function n(s) { if (s = s || {}, s.circles) @@ -61113,11 +61111,11 @@ ${gz(e, r)}`); } } }); - var Efe = Ye((t, e) => { - je(), Ue(), Be(), e.exports = _fe()(); + var Mfe = Ye((t, e) => { + Be(), je(), Ue(), e.exports = Sfe()(); }); - var Sfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.validateTopics = t.validateTopic = void 0; + var Afe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.validateTopics = t.validateTopic = void 0; function e(n) { let i = n.split("/"); for (let s = 0; s < i.length; s++) @@ -61141,7 +61139,7 @@ ${gz(e, r)}`); t.validateTopics = r; }); var TC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = Il(), r = { objectMode: true }, n = { clean: true }, i = class { constructor(s) { this.options = s || {}, this.options = Object.assign(Object.assign({}, n), s), this._inflights = /* @__PURE__ */ new Map(); @@ -61176,8 +61174,8 @@ ${gz(e, r)}`); }; t.default = i; }); - var Mfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + var Tfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], r = (n, i, s) => { n.log("handlePublish: packet %o", i), s = typeof s < "u" ? s : n.noop; let o = i.topic.toString(), a = i.payload, { qos: c } = i, { messageId: u } = i, { options: f } = n; @@ -61241,11 +61239,11 @@ ${gz(e, r)}`); }; t.default = r; }); - var Afe = Ye((t, e) => { - e.exports = { version: "5.8.0" }; + var Nfe = Ye((t, e) => { + e.exports = { version: "5.9.1" }; }); - var _0 = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.MQTTJS_VERSION = t.nextTick = t.applyMixin = t.ErrorWithReasonCode = void 0; + var Xf = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.MQTTJS_VERSION = t.nextTick = t.applyMixin = t.ErrorWithReasonCode = void 0; var e = class NC extends Error { constructor(i, s) { super(i), this.code = s, Object.setPrototypeOf(this, NC.prototype), Object.getPrototypeOf(this).name = "ErrorWithReasonCode"; @@ -61268,63 +61266,65 @@ ${gz(e, r)}`); } t.applyMixin = r, t.nextTick = typeof (cr == null ? void 0 : cr.nextTick) == "function" ? cr.nextTick : (n) => { setTimeout(n, 0); - }, t.MQTTJS_VERSION = Afe().version; + }, t.MQTTJS_VERSION = Nfe().version; }); var u2 = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.ReasonCodes = void 0, t.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }; - var e = (r, n) => { - let { messageId: i } = n, s = n.cmd, o = null, a = r.outgoing[i] ? r.outgoing[i].cb : null, c = null; - if (!a) { - r.log("_handleAck :: Server sent an ack in error. Ignoring."); + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.ReasonCodes = void 0; + var e = Xf(); + t.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }; + var r = (n, i) => { + let { messageId: s } = i, o = i.cmd, a = null, c = n.outgoing[s] ? n.outgoing[s].cb : null, u = null; + if (!c) { + n.log("_handleAck :: Server sent an ack in error. Ignoring."); return; } - switch (r.log("_handleAck :: packet type", s), s) { + switch (n.log("_handleAck :: packet type", o), o) { case "pubcomp": case "puback": { - let u = n.reasonCode; - u && u > 0 && u !== 16 ? (c = new Error(`Publish error: ${t.ReasonCodes[u]}`), c.code = u, r._removeOutgoingAndStoreMessage(i, () => { - a(c, n); - })) : r._removeOutgoingAndStoreMessage(i, a); + let f = i.reasonCode; + f && f > 0 && f !== 16 ? (u = new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[f]}`, f), n._removeOutgoingAndStoreMessage(s, () => { + c(u, i); + })) : n._removeOutgoingAndStoreMessage(s, c); break; } case "pubrec": { - o = { cmd: "pubrel", qos: 2, messageId: i }; - let u = n.reasonCode; - u && u > 0 && u !== 16 ? (c = new Error(`Publish error: ${t.ReasonCodes[u]}`), c.code = u, r._removeOutgoingAndStoreMessage(i, () => { - a(c, n); - })) : r._sendPacket(o); + a = { cmd: "pubrel", qos: 2, messageId: s }; + let f = i.reasonCode; + f && f > 0 && f !== 16 ? (u = new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[f]}`, f), n._removeOutgoingAndStoreMessage(s, () => { + c(u, i); + })) : n._sendPacket(a); break; } case "suback": { - delete r.outgoing[i], r.messageIdProvider.deallocate(i); - let u = n.granted; - for (let f = 0; f < u.length; f++) { - let p = u[f]; - if (p & 128) { - c = new Error(`Subscribe error: ${t.ReasonCodes[p]}`), c.code = p; - let b = r.messageIdToTopic[i]; - b && b.forEach((E) => { - delete r._resubscribeTopics[E]; + delete n.outgoing[s], n.messageIdProvider.deallocate(s); + let f = i.granted; + for (let p = 0; p < f.length; p++) { + let b = f[p]; + if (b & 128) { + u = new Error(`Subscribe error: ${t.ReasonCodes[b]}`), u.code = b; + let E = n.messageIdToTopic[s]; + E && E.forEach((_) => { + delete n._resubscribeTopics[_]; }); } } - delete r.messageIdToTopic[i], r._invokeStoreProcessingQueue(), a(c, n); + delete n.messageIdToTopic[s], n._invokeStoreProcessingQueue(), c(u, i); break; } case "unsuback": { - delete r.outgoing[i], r.messageIdProvider.deallocate(i), r._invokeStoreProcessingQueue(), a(null); + delete n.outgoing[s], n.messageIdProvider.deallocate(s), n._invokeStoreProcessingQueue(), c(null); break; } default: - r.emit("error", new Error("unrecognized packet type")); + n.emit("error", new Error("unrecognized packet type")); } - r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty"); + n.disconnecting && Object.keys(n.outgoing).length === 0 && n.emit("outgoingEmpty"); }; - t.default = e; + t.default = r; }); - var Tfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); - var e = _0(), r = u2(), n = (i, s) => { + var Ife = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); + var e = Xf(), r = u2(), n = (i, s) => { let { options: o } = i, a = o.protocolVersion, c = a === 5 ? s.reasonCode : s.returnCode; if (a !== 5) { let u = new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${a}`, c); @@ -61346,9 +61346,9 @@ ${gz(e, r)}`); }; t.default = n; }); - var Nfe = Ye((t) => { - var E, _, N, k, F, L, D, q, W, z, T, I, H, X, V, S, d, l, h, y, x, v, M, w, g, m, y5, Q, A, K, U, j, IC, R, Y, ee, ae, Oc, Z, Pc, oe, b5, pe, Zp, le, Jp, ye, Ir, Te, w5, O, Gh, $; - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.LRUCache = void 0; + var Ofe = Ye((t) => { + var E, _, N, k, F, L, D, q, W, z, T, I, H, X, V, S, d, l, h, y, x, v, M, w, g, m, g5, Q, A, K, U, j, IC, R, Y, ee, ae, Nc, Z, Ic, oe, y5, pe, Jp, le, Qp, ye, Ir, Te, b5, O, Wh, $; + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.LRUCache = void 0; var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, r = /* @__PURE__ */ new Set(), n = typeof cr == "object" && cr ? cr : {}, i = (te, J, ne, fe) => { typeof n.emitWarning == "function" ? n.emitWarning(te, J, ne, fe) : console.error(`[${ne}] ${J}: ${te}`); }, s = globalThis.AbortController, o = globalThis.AbortSignal; @@ -61473,7 +61473,7 @@ ${gz(e, r)}`); throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache"); return 0; }); - let { max: ne = 0, ttl: fe, ttlResolution: ge = 1, ttlAutopurge: de, updateAgeOnGet: ve, updateAgeOnHas: Ae, allowStale: Ne, dispose: De, disposeAfter: ut, noDisposeOnSet: Ve, noUpdateTTL: Ze, maxSize: Ge = 0, maxEntrySize: ke = 0, sizeCalculation: Re, fetchMethod: Je, noDeleteOnFetchRejection: Me, noDeleteOnStaleGet: Pe, allowStaleOnFetchRejection: et, allowStaleOnFetchAbort: Ce, ignoreFetchAbort: ze } = J; + let { max: ne = 0, ttl: fe, ttlResolution: ge = 1, ttlAutopurge: de, updateAgeOnGet: ve, updateAgeOnHas: Ae, allowStale: Ne, dispose: De, disposeAfter: ut, noDisposeOnSet: Ve, noUpdateTTL: Ze, maxSize: Ge = 0, maxEntrySize: ke = 0, sizeCalculation: Re, fetchMethod: Je, noDeleteOnFetchRejection: Me, noDeleteOnStaleGet: Oe, allowStaleOnFetchRejection: et, allowStaleOnFetchAbort: Ce, ignoreFetchAbort: ze } = J; if (ne !== 0 && !c(ne)) throw new TypeError("max option must be a nonnegative integer"); let nt = ne ? u(ne) : Array; @@ -61494,10 +61494,10 @@ ${gz(e, r)}`); throw new TypeError("maxEntrySize must be a positive integer if specified"); At(this, j, IC).call(this); } - if (this.allowStale = !!Ne, this.noDeleteOnStaleGet = !!Pe, this.updateAgeOnGet = !!ve, this.updateAgeOnHas = !!Ae, this.ttlResolution = c(ge) || ge === 0 ? ge : 1, this.ttlAutopurge = !!de, this.ttl = fe || 0, this.ttl) { + if (this.allowStale = !!Ne, this.noDeleteOnStaleGet = !!Oe, this.updateAgeOnGet = !!ve, this.updateAgeOnHas = !!Ae, this.ttlResolution = c(ge) || ge === 0 ? ge : 1, this.ttlAutopurge = !!de, this.ttl = fe || 0, this.ttl) { if (!c(this.ttl)) throw new TypeError("ttl must be a positive integer if specified"); - At(this, m, y5).call(this); + At(this, m, g5).call(this); } if (he(this, k) === 0 && this.ttl === 0 && he(this, F) === 0) throw new TypeError("At least one of max, maxSize, or ttl is required"); @@ -61516,16 +61516,16 @@ ${gz(e, r)}`); return At(fe = J, ye, Ir).call(fe, ne); }, backgroundFetch: (ne, fe, ge, de) => { var ve; - return At(ve = J, le, Jp).call(ve, ne, fe, ge, de); + return At(ve = J, le, Qp).call(ve, ne, fe, ge, de); }, moveToTail: (ne) => { var fe; - return At(fe = J, O, Gh).call(fe, ne); + return At(fe = J, O, Wh).call(fe, ne); }, indexes: (ne) => { var fe; - return At(fe = J, ae, Oc).call(fe, ne); + return At(fe = J, ae, Nc).call(fe, ne); }, rindexes: (ne) => { var fe; - return At(fe = J, Z, Pc).call(fe, ne); + return At(fe = J, Z, Ic).call(fe, ne); }, isStale: (ne) => { var fe; return he(fe = J, U).call(fe, ne); @@ -61556,64 +61556,64 @@ ${gz(e, r)}`); return he(this, T).has(J) ? 1 / 0 : 0; } *entries() { - for (let J of At(this, ae, Oc).call(this)) + for (let J of At(this, ae, Nc).call(this)) he(this, H)[J] !== void 0 && he(this, I)[J] !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield [he(this, I)[J], he(this, H)[J]]); } *rentries() { - for (let J of At(this, Z, Pc).call(this)) + for (let J of At(this, Z, Ic).call(this)) he(this, H)[J] !== void 0 && he(this, I)[J] !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield [he(this, I)[J], he(this, H)[J]]); } *keys() { - for (let J of At(this, ae, Oc).call(this)) { + for (let J of At(this, ae, Nc).call(this)) { let ne = he(this, I)[J]; ne !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield ne); } } *rkeys() { - for (let J of At(this, Z, Pc).call(this)) { + for (let J of At(this, Z, Ic).call(this)) { let ne = he(this, I)[J]; ne !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield ne); } } *values() { - for (let J of At(this, ae, Oc).call(this)) + for (let J of At(this, ae, Nc).call(this)) he(this, H)[J] !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield he(this, H)[J]); } *rvalues() { - for (let J of At(this, Z, Pc).call(this)) + for (let J of At(this, Z, Ic).call(this)) he(this, H)[J] !== void 0 && !At(this, ye, Ir).call(this, he(this, H)[J]) && (yield he(this, H)[J]); } [Symbol.iterator]() { return this.entries(); } find(J, ne = {}) { - for (let fe of At(this, ae, Oc).call(this)) { + for (let fe of At(this, ae, Nc).call(this)) { let ge = he(this, H)[fe], de = At(this, ye, Ir).call(this, ge) ? ge.__staleWhileFetching : ge; if (de !== void 0 && J(de, he(this, I)[fe], this)) return this.get(he(this, I)[fe], ne); } } forEach(J, ne = this) { - for (let fe of At(this, ae, Oc).call(this)) { + for (let fe of At(this, ae, Nc).call(this)) { let ge = he(this, H)[fe], de = At(this, ye, Ir).call(this, ge) ? ge.__staleWhileFetching : ge; de !== void 0 && J.call(ne, de, he(this, I)[fe], this); } } rforEach(J, ne = this) { - for (let fe of At(this, Z, Pc).call(this)) { + for (let fe of At(this, Z, Ic).call(this)) { let ge = he(this, H)[fe], de = At(this, ye, Ir).call(this, ge) ? ge.__staleWhileFetching : ge; de !== void 0 && J.call(ne, de, he(this, I)[fe], this); } } purgeStale() { let J = false; - for (let ne of At(this, Z, Pc).call(this, { allowStale: true })) + for (let ne of At(this, Z, Ic).call(this, { allowStale: true })) he(this, U).call(this, ne) && (this.delete(he(this, I)[ne]), J = true); return J; } dump() { let J = []; - for (let ne of At(this, ae, Oc).call(this, { allowStale: true })) { + for (let ne of At(this, ae, Nc).call(this, { allowStale: true })) { let fe = he(this, I)[ne], ge = he(this, H)[ne], de = At(this, ye, Ir).call(this, ge) ? ge.__staleWhileFetching : ge; if (de === void 0 || fe === void 0) continue; @@ -61646,29 +61646,29 @@ ${gz(e, r)}`); return Ne && (Ne.set = "miss", Ne.maxEntrySizeExceeded = true), this.delete(J), this; let Ve = he(this, W) === 0 ? void 0 : he(this, T).get(J); if (Ve === void 0) - Ve = he(this, W) === 0 ? he(this, d) : he(this, l).length !== 0 ? he(this, l).pop() : he(this, W) === he(this, k) ? At(this, pe, Zp).call(this, false) : he(this, W), he(this, I)[Ve] = J, he(this, H)[Ve] = ne, he(this, T).set(J, Ve), he(this, X)[he(this, d)] = Ve, he(this, V)[Ve] = he(this, d), Nt(this, d, Ve), q0(this, W)._++, he(this, Y).call(this, Ve, ut, Ne), Ne && (Ne.set = "add"), De = false; + Ve = he(this, W) === 0 ? he(this, d) : he(this, l).length !== 0 ? he(this, l).pop() : he(this, W) === he(this, k) ? At(this, pe, Jp).call(this, false) : he(this, W), he(this, I)[Ve] = J, he(this, H)[Ve] = ne, he(this, T).set(J, Ve), he(this, X)[he(this, d)] = Ve, he(this, V)[Ve] = he(this, d), Nt(this, d, Ve), q0(this, W)._++, he(this, Y).call(this, Ve, ut, Ne), Ne && (Ne.set = "add"), De = false; else { - At(this, O, Gh).call(this, Ve); + At(this, O, Wh).call(this, Ve); let Me = he(this, H)[Ve]; if (ne !== Me) { if (he(this, w) && At(this, ye, Ir).call(this, Me)) { Me.__abortController.abort(new Error("replaced")); - let { __staleWhileFetching: Pe } = Me; - Pe !== void 0 && !ve && (he(this, M) && ((Ze = he(this, L)) == null || Ze.call(this, Pe, J, "set")), he(this, g) && ((Ge = he(this, h)) == null || Ge.push([Pe, J, "set"]))); + let { __staleWhileFetching: Oe } = Me; + Oe !== void 0 && !ve && (he(this, M) && ((Ze = he(this, L)) == null || Ze.call(this, Oe, J, "set")), he(this, g) && ((Ge = he(this, h)) == null || Ge.push([Oe, J, "set"]))); } else ve || (he(this, M) && ((ke = he(this, L)) == null || ke.call(this, Me, J, "set")), he(this, g) && ((Re = he(this, h)) == null || Re.push([Me, J, "set"]))); if (he(this, R).call(this, Ve), he(this, Y).call(this, Ve, ut, Ne), he(this, H)[Ve] = ne, Ne) { Ne.set = "replace"; - let Pe = Me && At(this, ye, Ir).call(this, Me) ? Me.__staleWhileFetching : Me; - Pe !== void 0 && (Ne.oldValue = Pe); + let Oe = Me && At(this, ye, Ir).call(this, Me) ? Me.__staleWhileFetching : Me; + Oe !== void 0 && (Ne.oldValue = Oe); } } else Ne && (Ne.set = "update"); } - if (ge !== 0 && !he(this, v) && At(this, m, y5).call(this), he(this, v) && (De || he(this, K).call(this, Ve, ge, de), Ne && he(this, A).call(this, Ne, Ve)), !ve && he(this, g) && he(this, h)) { - let Me = he(this, h), Pe; - for (; Pe = Me == null ? void 0 : Me.shift(); ) - (Je = he(this, D)) == null || Je.call(this, ...Pe); + if (ge !== 0 && !he(this, v) && At(this, m, g5).call(this), he(this, v) && (De || he(this, K).call(this, Ve, ge, de), Ne && he(this, A).call(this, Ne, Ve)), !ve && he(this, g) && he(this, h)) { + let Me = he(this, h), Oe; + for (; Oe = Me == null ? void 0 : Me.shift(); ) + (Je = he(this, D)) == null || Je.call(this, ...Oe); } return this; } @@ -61677,7 +61677,7 @@ ${gz(e, r)}`); try { for (; he(this, W); ) { let ne = he(this, H)[he(this, S)]; - if (At(this, pe, Zp).call(this, true), At(this, ye, Ir).call(this, ne)) { + if (At(this, pe, Jp).call(this, true), At(this, ye, Ir).call(this, ne)) { if (ne.__staleWhileFetching) return ne.__staleWhileFetching; } else if (ne !== void 0) @@ -61713,13 +61713,13 @@ ${gz(e, r)}`); } } async fetch(J, ne = {}) { - let { allowStale: fe = this.allowStale, updateAgeOnGet: ge = this.updateAgeOnGet, noDeleteOnStaleGet: de = this.noDeleteOnStaleGet, ttl: ve = this.ttl, noDisposeOnSet: Ae = this.noDisposeOnSet, size: Ne = 0, sizeCalculation: De = this.sizeCalculation, noUpdateTTL: ut = this.noUpdateTTL, noDeleteOnFetchRejection: Ve = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: Ze = this.allowStaleOnFetchRejection, ignoreFetchAbort: Ge = this.ignoreFetchAbort, allowStaleOnFetchAbort: ke = this.allowStaleOnFetchAbort, context: Re, forceRefresh: Je = false, status: Me, signal: Pe } = ne; + let { allowStale: fe = this.allowStale, updateAgeOnGet: ge = this.updateAgeOnGet, noDeleteOnStaleGet: de = this.noDeleteOnStaleGet, ttl: ve = this.ttl, noDisposeOnSet: Ae = this.noDisposeOnSet, size: Ne = 0, sizeCalculation: De = this.sizeCalculation, noUpdateTTL: ut = this.noUpdateTTL, noDeleteOnFetchRejection: Ve = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: Ze = this.allowStaleOnFetchRejection, ignoreFetchAbort: Ge = this.ignoreFetchAbort, allowStaleOnFetchAbort: ke = this.allowStaleOnFetchAbort, context: Re, forceRefresh: Je = false, status: Me, signal: Oe } = ne; if (!he(this, w)) return Me && (Me.fetch = "get"), this.get(J, { allowStale: fe, updateAgeOnGet: ge, noDeleteOnStaleGet: de, status: Me }); - let et = { allowStale: fe, updateAgeOnGet: ge, noDeleteOnStaleGet: de, ttl: ve, noDisposeOnSet: Ae, size: Ne, sizeCalculation: De, noUpdateTTL: ut, noDeleteOnFetchRejection: Ve, allowStaleOnFetchRejection: Ze, allowStaleOnFetchAbort: ke, ignoreFetchAbort: Ge, status: Me, signal: Pe }, Ce = he(this, T).get(J); + let et = { allowStale: fe, updateAgeOnGet: ge, noDeleteOnStaleGet: de, ttl: ve, noDisposeOnSet: Ae, size: Ne, sizeCalculation: De, noUpdateTTL: ut, noDeleteOnFetchRejection: Ve, allowStaleOnFetchRejection: Ze, allowStaleOnFetchAbort: ke, ignoreFetchAbort: Ge, status: Me, signal: Oe }, Ce = he(this, T).get(J); if (Ce === void 0) { Me && (Me.fetch = "miss"); - let ze = At(this, le, Jp).call(this, J, Ce, et, Re); + let ze = At(this, le, Qp).call(this, J, Ce, et, Re); return ze.__returned = ze; } else { let ze = he(this, H)[Ce]; @@ -61729,8 +61729,8 @@ ${gz(e, r)}`); } let nt = he(this, U).call(this, Ce); if (!Je && !nt) - return Me && (Me.fetch = "hit"), At(this, O, Gh).call(this, Ce), ge && he(this, Q).call(this, Ce), Me && he(this, A).call(this, Me, Ce), ze; - let qe = At(this, le, Jp).call(this, J, Ce, et, Re), Ke = qe.__staleWhileFetching !== void 0 && fe; + return Me && (Me.fetch = "hit"), At(this, O, Wh).call(this, Ce), ge && he(this, Q).call(this, Ce), Me && he(this, A).call(this, Me, Ce), ze; + let qe = At(this, le, Qp).call(this, J, Ce, et, Re), Ke = qe.__staleWhileFetching !== void 0 && fe; return Me && (Me.fetch = nt ? "stale" : "refresh", Ke && nt && (Me.returnedStale = true)), Ke ? qe.__staleWhileFetching : qe.__returned = qe; } } @@ -61738,7 +61738,7 @@ ${gz(e, r)}`); let { allowStale: fe = this.allowStale, updateAgeOnGet: ge = this.updateAgeOnGet, noDeleteOnStaleGet: de = this.noDeleteOnStaleGet, status: ve } = ne, Ae = he(this, T).get(J); if (Ae !== void 0) { let Ne = he(this, H)[Ae], De = At(this, ye, Ir).call(this, Ne); - return ve && he(this, A).call(this, ve, Ae), he(this, U).call(this, Ae) ? (ve && (ve.get = "stale"), De ? (ve && fe && Ne.__staleWhileFetching !== void 0 && (ve.returnedStale = true), fe ? Ne.__staleWhileFetching : void 0) : (de || this.delete(J), ve && fe && (ve.returnedStale = true), fe ? Ne : void 0)) : (ve && (ve.get = "hit"), De ? Ne.__staleWhileFetching : (At(this, O, Gh).call(this, Ae), ge && he(this, Q).call(this, Ae), Ne)); + return ve && he(this, A).call(this, ve, Ae), he(this, U).call(this, Ae) ? (ve && (ve.get = "stale"), De ? (ve && fe && Ne.__staleWhileFetching !== void 0 && (ve.returnedStale = true), fe ? Ne.__staleWhileFetching : void 0) : (de || this.delete(J), ve && fe && (ve.returnedStale = true), fe ? Ne : void 0)) : (ve && (ve.get = "hit"), De ? Ne.__staleWhileFetching : (At(this, O, Wh).call(this, Ae), ge && he(this, Q).call(this, Ae), Ne)); } else ve && (ve.get = "miss"); } @@ -61765,7 +61765,7 @@ ${gz(e, r)}`); } clear() { var J, ne, fe; - for (let ge of At(this, Z, Pc).call(this, { allowStale: true })) { + for (let ge of At(this, Z, Ic).call(this, { allowStale: true })) { let de = he(this, H)[ge]; if (At(this, ye, Ir).call(this, de)) de.__abortController.abort(new Error("deleted")); @@ -61780,7 +61780,7 @@ ${gz(e, r)}`); (fe = he(this, D)) == null || fe.call(this, ...de); } } - }, k = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), y5 = function() { + }, k = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), g5 = function() { let J = new f(he(this, k)), ne = new f(he(this, k)); Nt(this, v, J), Nt(this, x, ne), Nt(this, K, (de, ve, Ae = e.now()) => { if (ne[de] = ve !== 0 ? Ae : 0, J[de] = ve, ve !== 0 && this.ttlAutopurge) { @@ -61838,45 +61838,45 @@ ${gz(e, r)}`); if (J[ne] = fe, he(this, F)) { let de = he(this, F) - J[ne]; for (; he(this, z) > de; ) - At(this, pe, Zp).call(this, true); + At(this, pe, Jp).call(this, true); } Nt(this, z, he(this, z) + J[ne]), ge && (ge.entrySize = fe, ge.totalCalculatedSize = he(this, z)); }); - }, R = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakSet(), Oc = function* ({ allowStale: J = this.allowStale } = {}) { + }, R = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakSet(), Nc = function* ({ allowStale: J = this.allowStale } = {}) { if (he(this, W)) - for (let ne = he(this, d); !(!At(this, oe, b5).call(this, ne) || ((J || !he(this, U).call(this, ne)) && (yield ne), ne === he(this, S))); ) + for (let ne = he(this, d); !(!At(this, oe, y5).call(this, ne) || ((J || !he(this, U).call(this, ne)) && (yield ne), ne === he(this, S))); ) ne = he(this, V)[ne]; - }, Z = /* @__PURE__ */ new WeakSet(), Pc = function* ({ allowStale: J = this.allowStale } = {}) { + }, Z = /* @__PURE__ */ new WeakSet(), Ic = function* ({ allowStale: J = this.allowStale } = {}) { if (he(this, W)) - for (let ne = he(this, S); !(!At(this, oe, b5).call(this, ne) || ((J || !he(this, U).call(this, ne)) && (yield ne), ne === he(this, d))); ) + for (let ne = he(this, S); !(!At(this, oe, y5).call(this, ne) || ((J || !he(this, U).call(this, ne)) && (yield ne), ne === he(this, d))); ) ne = he(this, X)[ne]; - }, oe = /* @__PURE__ */ new WeakSet(), b5 = function(J) { + }, oe = /* @__PURE__ */ new WeakSet(), y5 = function(J) { return J !== void 0 && he(this, T).get(he(this, I)[J]) === J; - }, pe = /* @__PURE__ */ new WeakSet(), Zp = function(J) { + }, pe = /* @__PURE__ */ new WeakSet(), Jp = function(J) { var de, ve; let ne = he(this, S), fe = he(this, I)[ne], ge = he(this, H)[ne]; return he(this, w) && At(this, ye, Ir).call(this, ge) ? ge.__abortController.abort(new Error("evicted")) : (he(this, M) || he(this, g)) && (he(this, M) && ((de = he(this, L)) == null || de.call(this, ge, fe, "evict")), he(this, g) && ((ve = he(this, h)) == null || ve.push([ge, fe, "evict"]))), he(this, R).call(this, ne), J && (he(this, I)[ne] = void 0, he(this, H)[ne] = void 0, he(this, l).push(ne)), he(this, W) === 1 ? (Nt(this, S, Nt(this, d, 0)), he(this, l).length = 0) : Nt(this, S, he(this, X)[ne]), he(this, T).delete(fe), q0(this, W)._--, ne; - }, le = /* @__PURE__ */ new WeakSet(), Jp = function(J, ne, fe, ge) { + }, le = /* @__PURE__ */ new WeakSet(), Qp = function(J, ne, fe, ge) { let de = ne === void 0 ? void 0 : he(this, H)[ne]; if (At(this, ye, Ir).call(this, de)) return de; let ve = new s(), { signal: Ae } = fe; Ae == null || Ae.addEventListener("abort", () => ve.abort(Ae.reason), { signal: ve.signal }); let Ne = { signal: ve.signal, options: fe, context: ge }, De = (Re, Je = false) => { - let { aborted: Me } = ve.signal, Pe = fe.ignoreFetchAbort && Re !== void 0; - if (fe.status && (Me && !Je ? (fe.status.fetchAborted = true, fe.status.fetchError = ve.signal.reason, Pe && (fe.status.fetchAbortIgnored = true)) : fe.status.fetchResolved = true), Me && !Pe && !Je) + let { aborted: Me } = ve.signal, Oe = fe.ignoreFetchAbort && Re !== void 0; + if (fe.status && (Me && !Je ? (fe.status.fetchAborted = true, fe.status.fetchError = ve.signal.reason, Oe && (fe.status.fetchAbortIgnored = true)) : fe.status.fetchResolved = true), Me && !Oe && !Je) return Ve(ve.signal.reason); let et = Ge; return he(this, H)[ne] === Ge && (Re === void 0 ? et.__staleWhileFetching ? he(this, H)[ne] = et.__staleWhileFetching : this.delete(J) : (fe.status && (fe.status.fetchUpdated = true), this.set(J, Re, Ne.options))), Re; }, ut = (Re) => (fe.status && (fe.status.fetchRejected = true, fe.status.fetchError = Re), Ve(Re)), Ve = (Re) => { - let { aborted: Je } = ve.signal, Me = Je && fe.allowStaleOnFetchAbort, Pe = Me || fe.allowStaleOnFetchRejection, et = Pe || fe.noDeleteOnFetchRejection, Ce = Ge; - if (he(this, H)[ne] === Ge && (!et || Ce.__staleWhileFetching === void 0 ? this.delete(J) : Me || (he(this, H)[ne] = Ce.__staleWhileFetching)), Pe) + let { aborted: Je } = ve.signal, Me = Je && fe.allowStaleOnFetchAbort, Oe = Me || fe.allowStaleOnFetchRejection, et = Oe || fe.noDeleteOnFetchRejection, Ce = Ge; + if (he(this, H)[ne] === Ge && (!et || Ce.__staleWhileFetching === void 0 ? this.delete(J) : Me || (he(this, H)[ne] = Ce.__staleWhileFetching)), Oe) return fe.status && Ce.__staleWhileFetching !== void 0 && (fe.status.returnedStale = true), Ce.__staleWhileFetching; if (Ce.__returned === Ce) throw Re; }, Ze = (Re, Je) => { - var Pe; - let Me = (Pe = he(this, q)) == null ? void 0 : Pe.call(this, J, de, Ne); + var Oe; + let Me = (Oe = he(this, q)) == null ? void 0 : Oe.call(this, J, de, Ne); Me && Me instanceof Promise && Me.then((et) => Re(et === void 0 ? void 0 : et), Je), ve.signal.addEventListener("abort", () => { (!fe.ignoreFetchAbort || fe.allowStaleOnFetchAbort) && (Re(void 0), fe.allowStaleOnFetchAbort && (Re = (et) => De(et, true))); }); @@ -61889,15 +61889,15 @@ ${gz(e, r)}`); return false; let ne = J; return !!ne && ne instanceof Promise && ne.hasOwnProperty("__staleWhileFetching") && ne.__abortController instanceof s; - }, Te = /* @__PURE__ */ new WeakSet(), w5 = function(J, ne) { + }, Te = /* @__PURE__ */ new WeakSet(), b5 = function(J, ne) { he(this, V)[ne] = J, he(this, X)[J] = ne; - }, O = /* @__PURE__ */ new WeakSet(), Gh = function(J) { - J !== he(this, d) && (J === he(this, S) ? Nt(this, S, he(this, X)[J]) : At(this, Te, w5).call(this, he(this, V)[J], he(this, X)[J]), At(this, Te, w5).call(this, he(this, d), J), Nt(this, d, J)); + }, O = /* @__PURE__ */ new WeakSet(), Wh = function(J) { + J !== he(this, d) && (J === he(this, S) ? Nt(this, S, he(this, X)[J]) : At(this, Te, b5).call(this, he(this, V)[J], he(this, X)[J]), At(this, Te, b5).call(this, he(this, d), J), Nt(this, d, J)); }, $); t.LRUCache = b; }); - var uc = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.ContainerIterator = t.Container = t.Base = void 0; + var ac = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.ContainerIterator = t.Container = t.Base = void 0; var e = class { constructor(i = 0) { this.iteratorType = i; @@ -61926,9 +61926,9 @@ ${gz(e, r)}`); }; t.Container = n; }); - var Ife = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = uc(), r = class extends e.Base { + var Pfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = ac(), r = class extends e.Base { constructor(i = []) { super(), this.S = []; let s = this; @@ -61952,9 +61952,9 @@ ${gz(e, r)}`); }, n = r; t.default = n; }); - var Ofe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = uc(), r = class extends e.Base { + var kfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = ac(), r = class extends e.Base { constructor(i = []) { super(), this.j = 0, this.q = []; let s = this; @@ -61989,9 +61989,9 @@ ${gz(e, r)}`); }, n = r; t.default = n; }); - var Pfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = uc(), r = class extends e.Base { + var Rfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = ac(), r = class extends e.Base { constructor(i = [], s = function(a, c) { return a > c ? -1 : a < c ? 1 : 0; }, o = true) { @@ -62061,21 +62061,21 @@ ${gz(e, r)}`); }, n = r; t.default = n; }); - var vx = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = uc(), r = class extends e.Container { + var bx = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = ac(), r = class extends e.Container { }, n = r; t.default = n; }); - var lc = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.throwIteratorAccessError = e; + var cc = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.throwIteratorAccessError = e; function e() { throw new RangeError("Iterator access denied!"); } }); var OC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.RandomIterator = void 0; - var e = uc(), r = lc(), n = class extends e.ContainerIterator { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.RandomIterator = void 0; + var e = ac(), r = cc(), n = class extends e.ContainerIterator { constructor(i, s) { super(s), this.o = i, this.iteratorType === 0 ? (this.pre = function() { return this.o === 0 && (0, r.throwIteratorAccessError)(), this.o -= 1, this; @@ -62096,9 +62096,9 @@ ${gz(e, r)}`); }; t.RandomIterator = n; }); - var kfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = n(vx()), r = OC(); + var Cfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = n(bx()), r = OC(); function n(a) { return a && a.t ? a : { default: a }; } @@ -62209,9 +62209,9 @@ ${gz(e, r)}`); }, o = s; t.default = o; }); - var Rfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = i(vx()), r = uc(), n = lc(); + var Dfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = i(bx()), r = ac(), n = cc(); function i(c) { return c && c.t ? c : { default: c }; } @@ -62422,9 +62422,9 @@ ${gz(e, r)}`); }, a = o; t.default = a; }); - var Cfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = n(vx()), r = OC(); + var Lfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = n(bx()), r = OC(); function n(a) { return a && a.t ? a : { default: a }; } @@ -62648,8 +62648,8 @@ ${gz(e, r)}`); }, o = s; t.default = o; }); - var Dfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.TreeNodeEnableIndex = t.TreeNode = void 0; + var Bfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.TreeNodeEnableIndex = t.TreeNode = void 0; var e = class { constructor(n, i) { this.ee = 1, this.u = void 0, this.l = void 0, this.U = void 0, this.W = void 0, this.tt = void 0, this.u = n, this.l = i; @@ -62711,8 +62711,8 @@ ${gz(e, r)}`); t.TreeNodeEnableIndex = r; }); var CC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = Dfe(), r = uc(), n = lc(), i = class extends r.Container { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = Bfe(), r = ac(), n = cc(), i = class extends r.Container { constructor(o = function(c, u) { return c < u ? -1 : c > u ? 1 : 0; }, a = false) { @@ -63008,8 +63008,8 @@ ${gz(e, r)}`); t.default = s; }); var DC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = uc(), r = lc(), n = class extends e.ContainerIterator { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = ac(), r = cc(), n = class extends e.ContainerIterator { constructor(s, o, a) { super(a), this.o = s, this.h = o, this.iteratorType === 0 ? (this.pre = function() { return this.o === this.h.U && (0, r.throwIteratorAccessError)(), this.o = this.o.L(), this; @@ -63035,9 +63035,9 @@ ${gz(e, r)}`); }, i = n; t.default = i; }); - var Lfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = i(CC()), r = i(DC()), n = lc(); + var Ufe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = i(CC()), r = i(DC()), n = cc(); function i(c) { return c && c.t ? c : { default: c }; } @@ -63115,9 +63115,9 @@ ${gz(e, r)}`); }, a = o; t.default = a; }); - var Bfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = i(CC()), r = i(DC()), n = lc(); + var jfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = i(CC()), r = i(DC()), n = cc(); function i(c) { return c && c.t ? c : { default: c }; } @@ -63216,15 +63216,15 @@ ${gz(e, r)}`); t.default = a; }); var UC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = e; + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = e; function e(r) { let n = typeof r; return n === "object" && r !== null || n === "function"; } }); var jC = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.HashContainerIterator = t.HashContainer = void 0; - var e = uc(), r = i(UC()), n = lc(); + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.HashContainerIterator = t.HashContainer = void 0; + var e = ac(), r = i(UC()), n = cc(); function i(a) { return a && a.t ? a : { default: a }; } @@ -63308,9 +63308,9 @@ ${gz(e, r)}`); }; t.HashContainer = o; }); - var Ufe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = jC(), r = lc(), n = class VC extends e.HashContainerIterator { + var Vfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = jC(), r = cc(), n = class VC extends e.HashContainerIterator { constructor(a, c, u, f) { super(a, c, f), this.container = u; } @@ -63376,9 +63376,9 @@ ${gz(e, r)}`); }, s = i; t.default = s; }); - var jfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; - var e = jC(), r = i(UC()), n = lc(); + var zfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), t.default = void 0; + var e = jC(), r = i(UC()), n = cc(); function i(c) { return c && c.t ? c : { default: c }; } @@ -63469,8 +63469,8 @@ ${gz(e, r)}`); }, a = o; t.default = a; }); - var Vfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "t", { value: true }), Object.defineProperty(t, "Deque", { enumerable: true, get: function() { + var Ffe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "t", { value: true }), Object.defineProperty(t, "Deque", { enumerable: true, get: function() { return o.default; } }), Object.defineProperty(t, "HashMap", { enumerable: true, get: function() { return f.default; @@ -63491,14 +63491,14 @@ ${gz(e, r)}`); } }), Object.defineProperty(t, "Vector", { enumerable: true, get: function() { return i.default; } }); - var e = p(Ife()), r = p(Ofe()), n = p(Pfe()), i = p(kfe()), s = p(Rfe()), o = p(Cfe()), a = p(Lfe()), c = p(Bfe()), u = p(Ufe()), f = p(jfe()); + var e = p(Pfe()), r = p(kfe()), n = p(Rfe()), i = p(Cfe()), s = p(Dfe()), o = p(Lfe()), a = p(Ufe()), c = p(jfe()), u = p(Vfe()), f = p(zfe()); function p(b) { return b && b.t ? b : { default: b }; } }); - var zfe = Ye((t, e) => { - je(), Ue(), Be(); - var r = Vfe().OrderedSet, n = $a()("number-allocator:trace"), i = $a()("number-allocator:error"); + var Hfe = Ye((t, e) => { + Be(), je(), Ue(); + var r = Ffe().OrderedSet, n = Ja()("number-allocator:trace"), i = Ja()("number-allocator:error"); function s(a, c) { this.low = a, this.high = c; } @@ -63564,13 +63564,13 @@ ${gz(e, r)}`); }, e.exports = o; }); var FC = Ye((t, e) => { - je(), Ue(), Be(); - var r = zfe(); + Be(), je(), Ue(); + var r = Hfe(); e.exports.NumberAllocator = r; }); - var Ffe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); - var e = Nfe(), r = FC(), n = class { + var qfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); + var e = Ofe(), r = FC(), n = class { constructor(i) { i > 0 && (this.aliasToTopic = new e.LRUCache({ max: i }), this.topicToAlias = {}, this.numberAllocator = new r.NumberAllocator(1, i), this.max = i, this.length = 0); } @@ -63596,13 +63596,13 @@ ${gz(e, r)}`); }; t.default = n; }); - var Hfe = Ye((t) => { - je(), Ue(), Be(); + var Wfe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__importDefault || function(o) { return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(t, "__esModule", { value: true }); - var r = u2(), n = e(Ffe()), i = _0(), s = (o, a) => { + var r = u2(), n = e(qfe()), i = Xf(), s = (o, a) => { o.log("_handleConnack"); let { options: c } = o, u = c.protocolVersion === 5 ? a.reasonCode : a.returnCode; if (clearTimeout(o.connackTimer), delete o.topicAliasSend, a.properties) { @@ -63624,8 +63624,8 @@ ${gz(e, r)}`); }; t.default = s; }); - var qfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + var Gfe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = (r, n, i) => { r.log("handling pubrel packet"); let s = typeof i < "u" ? i : r.noop, { messageId: o } = n, a = { cmd: "pubcomp", messageId: o }; @@ -63639,13 +63639,13 @@ ${gz(e, r)}`); }; t.default = e; }); - var Wfe = Ye((t) => { - je(), Ue(), Be(); + var Kfe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__importDefault || function(c) { return c && c.__esModule ? c : { default: c }; }; Object.defineProperty(t, "__esModule", { value: true }); - var r = e(Mfe()), n = e(Tfe()), i = e(Hfe()), s = e(u2()), o = e(qfe()), a = (c, u, f) => { + var r = e(Tfe()), n = e(Ife()), i = e(Wfe()), s = e(u2()), o = e(Gfe()), a = (c, u, f) => { let { options: p } = c; if (p.protocolVersion === 5 && p.properties && p.properties.maximumPacketSize && p.properties.maximumPacketSize < u.length) return c.emit("error", new Error(`exceeding packets size ${u.cmd}`)), c.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), c; @@ -63670,7 +63670,7 @@ ${gz(e, r)}`); c.reschedulePing(), (0, n.default)(c, u), f(); break; case "pingresp": - c.log("_handlePacket :: received pingresp"), c.reschedulePing(), f(); + c.log("_handlePacket :: received pingresp"), c.reschedulePing(true), f(); break; case "disconnect": c.emit("disconnect", u), f(); @@ -63682,29 +63682,29 @@ ${gz(e, r)}`); }; t.default = a; }); - var Gfe = Ye((t) => { - je(), Ue(), Be(); + var Xfe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__importDefault || function(s) { return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(t, "__esModule", { value: true }), t.TypedEventEmitter = void 0; - var r = e((Xf(), vr(Nl))), n = _0(), i = class { + var r = e((Kf(), vr(Nl))), n = Xf(), i = class { }; t.TypedEventEmitter = i, (0, n.applyMixin)(i, r.default); }); var l2 = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.isReactNativeBrowser = t.isWebWorker = void 0; + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.isReactNativeBrowser = t.isWebWorker = void 0; var e = () => { - var o; - return typeof window < "u" ? typeof Yn < "u" && ((o = Yn.userAgent) === null || o === void 0 ? void 0 : o.toLowerCase().indexOf(" electron/")) > -1 && cr != null && cr.versions ? !Object.prototype.hasOwnProperty.call(cr.versions, "electron") : typeof window.document < "u" : false; - }, r = () => typeof Yn < "u" && Yn.userAgent === "txiki.js", n = () => { - var o, a; - return !!(typeof self == "object" && !((a = (o = self == null ? void 0 : self.constructor) === null || o === void 0 ? void 0 : o.name) === null || a === void 0) && a.includes("WorkerGlobalScope")); - }, i = () => typeof Yn < "u" && Yn.product === "ReactNative", s = e() || n() || i() || r(); - t.isWebWorker = n(), t.isReactNativeBrowser = i(), t.default = s; + var s; + return typeof window < "u" ? typeof navigator < "u" && ((s = navigator.userAgent) === null || s === void 0 ? void 0 : s.toLowerCase().indexOf(" electron/")) > -1 && cr != null && cr.versions ? !Object.prototype.hasOwnProperty.call(cr.versions, "electron") : typeof window.document < "u" : false; + }, r = () => { + var s, o; + return !!(typeof self == "object" && !((o = (s = self == null ? void 0 : self.constructor) === null || s === void 0 ? void 0 : s.name) === null || o === void 0) && o.includes("WorkerGlobalScope")); + }, n = () => typeof navigator < "u" && navigator.product === "ReactNative", i = e() || r() || n(); + t.isWebWorker = r(), t.isReactNativeBrowser = n(), t.default = i; }); - var Kfe = Ye((t, e) => { - je(), Ue(), Be(), function(r, n) { + var Yfe = Ye((t, e) => { + Be(), je(), Ue(), function(r, n) { typeof t == "object" && typeof e < "u" ? n(t) : typeof define == "function" && define.amd ? define(["exports"], n) : (r = typeof globalThis < "u" ? globalThis : r || self, n(r.fastUniqueNumbers = {})); }(t, function(r) { var n = function(E) { @@ -63736,9 +63736,9 @@ ${gz(e, r)}`); r.addUniqueNumber = b, r.generateUniqueNumber = p; }); }); - var Xfe = Ye((t, e) => { - je(), Ue(), Be(), function(r, n) { - typeof t == "object" && typeof e < "u" ? n(t, Kfe()) : typeof define == "function" && define.amd ? define(["exports", "fast-unique-numbers"], n) : (r = typeof globalThis < "u" ? globalThis : r || self, n(r.workerTimersBroker = {}, r.fastUniqueNumbers)); + var Zfe = Ye((t, e) => { + Be(), je(), Ue(), function(r, n) { + typeof t == "object" && typeof e < "u" ? n(t, Yfe()) : typeof define == "function" && define.amd ? define(["exports", "fast-unique-numbers"], n) : (r = typeof globalThis < "u" ? globalThis : r || self, n(r.workerTimersBroker = {}, r.fastUniqueNumbers)); }(t, function(r, n) { var i = function(a) { return a.method !== void 0 && a.method === "call"; @@ -63804,9 +63804,9 @@ ${gz(e, r)}`); r.load = o; }); }); - var Yfe = Ye((t, e) => { - je(), Ue(), Be(), function(r, n) { - typeof t == "object" && typeof e < "u" ? n(t, Xfe()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], n) : (r = typeof globalThis < "u" ? globalThis : r || self, n(r.workerTimers = {}, r.workerTimersBroker)); + var Jfe = Ye((t, e) => { + Be(), je(), Ue(), function(r, n) { + typeof t == "object" && typeof e < "u" ? n(t, Zfe()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], n) : (r = typeof globalThis < "u" ? globalThis : r || self, n(r.workerTimers = {}, r.workerTimersBroker)); }(t, function(r, n) { var i = function(p, b) { var E = null; @@ -63832,8 +63832,8 @@ ${gz(e, r)}`); r.clearInterval = a, r.clearTimeout = c, r.setInterval = u, r.setTimeout = f; }); }); - var Zfe = Ye((t) => { - je(), Ue(), Be(); + var Qfe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__createBinding || (Object.create ? function(u, f, p, b) { b === void 0 && (b = p); var E = Object.getOwnPropertyDescriptor(f, p); @@ -63856,7 +63856,7 @@ ${gz(e, r)}`); return r(f, u), f; }; Object.defineProperty(t, "__esModule", { value: true }); - var i = n(l2()), s = Yfe(), o = { set: s.setInterval, clear: s.clearInterval }, a = { set: (u, f) => setInterval(u, f), clear: (u) => clearInterval(u) }, c = (u) => { + var i = n(l2()), s = Jfe(), o = { set: s.setInterval, clear: s.clearInterval }, a = { set: (u, f) => setInterval(u, f), clear: (u) => clearInterval(u) }, c = (u) => { switch (u) { case "native": return a; @@ -63870,12 +63870,12 @@ ${gz(e, r)}`); t.default = c; }); var HC = Ye((t) => { - je(), Ue(), Be(); + Be(), je(), Ue(); var e = t && t.__importDefault || function(i) { return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(t, "__esModule", { value: true }); - var r = e(Zfe()), n = class { + var r = e(Qfe()), n = class { get keepaliveTimeoutTimestamp() { return this._keepaliveTimeoutTimestamp; } @@ -63911,8 +63911,8 @@ ${gz(e, r)}`); }; t.default = n; }); - var v5 = Ye((t) => { - je(), Ue(), Be(); + var w5 = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__createBinding || (Object.create ? function(W, z, T, I) { I === void 0 && (I = T); var H = Object.getOwnPropertyDescriptor(z, T); @@ -63937,12 +63937,12 @@ ${gz(e, r)}`); return W && W.__esModule ? W : { default: W }; }; Object.defineProperty(t, "__esModule", { value: true }); - var s = i(jle()), o = i(xfe()), a = i(AC()), c = Il(), u = i(Efe()), f = n(Sfe()), p = i($a()), b = i(TC()), E = i(Wfe()), _ = _0(), N = Gfe(), k = i(HC()), F = n(l2()), L = globalThis.setImmediate || ((...W) => { + var s = i(zle()), o = i(Efe()), a = i(AC()), c = Il(), u = i(Mfe()), f = n(Afe()), p = i(Ja()), b = i(TC()), E = i(Kfe()), _ = Xf(), N = Xfe(), k = i(HC()), F = n(l2()), L = globalThis.setImmediate || ((...W) => { let z = W.shift(); (0, _.nextTick)(() => { z(...W); }); - }), D = { keepalive: 60, reschedulePings: true, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: true, resubscribe: true, writeCache: true, timerVariant: "auto" }, q = class x5 extends N.TypedEventEmitter { + }), D = { keepalive: 60, reschedulePings: true, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: true, resubscribe: true, writeCache: true, timerVariant: "auto" }, q = class v5 extends N.TypedEventEmitter { static defaultId() { return `mqttjs_${Math.random().toString(16).substr(2, 8)}`; } @@ -63950,7 +63950,7 @@ ${gz(e, r)}`); super(), this.options = T || {}; for (let I in D) typeof this.options[I] > "u" ? this.options[I] = D[I] : this.options[I] = T[I]; - this.log = this.options.log || (0, p.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", x5.VERSION), F.isWebWorker ? this.log("MqttClient :: environment", "webworker") : this.log("MqttClient :: environment", F.default ? "browser" : "node"), this.log("MqttClient :: options.protocol", T.protocol), this.log("MqttClient :: options.protocolVersion", T.protocolVersion), this.log("MqttClient :: options.username", T.username), this.log("MqttClient :: options.keepalive", T.keepalive), this.log("MqttClient :: options.reconnectPeriod", T.reconnectPeriod), this.log("MqttClient :: options.rejectUnauthorized", T.rejectUnauthorized), this.log("MqttClient :: options.properties.topicAliasMaximum", T.properties ? T.properties.topicAliasMaximum : void 0), this.options.clientId = typeof T.clientId == "string" ? T.clientId : x5.defaultId(), this.log("MqttClient :: clientId", this.options.clientId), this.options.customHandleAcks = T.protocolVersion === 5 && T.customHandleAcks ? T.customHandleAcks : (...I) => { + this.log = this.options.log || (0, p.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", v5.VERSION), F.isWebWorker ? this.log("MqttClient :: environment", "webworker") : this.log("MqttClient :: environment", F.default ? "browser" : "node"), this.log("MqttClient :: options.protocol", T.protocol), this.log("MqttClient :: options.protocolVersion", T.protocolVersion), this.log("MqttClient :: options.username", T.username), this.log("MqttClient :: options.keepalive", T.keepalive), this.log("MqttClient :: options.reconnectPeriod", T.reconnectPeriod), this.log("MqttClient :: options.rejectUnauthorized", T.rejectUnauthorized), this.log("MqttClient :: options.properties.topicAliasMaximum", T.properties ? T.properties.topicAliasMaximum : void 0), this.options.clientId = typeof T.clientId == "string" ? T.clientId : v5.defaultId(), this.log("MqttClient :: clientId", this.options.clientId), this.options.customHandleAcks = T.protocolVersion === 5 && T.customHandleAcks ? T.customHandleAcks : (...I) => { I[3](null, 0); }, this.options.writeCache || (o.default.writeToStream.cacheNumbers = false), this.streamBuilder = z, this.messageIdProvider = typeof this.options.messageIdProvider > "u" ? new a.default() : this.options.messageIdProvider, this.outgoingStore = T.outgoingStore || new b.default(), this.incomingStore = T.incomingStore || new b.default(), this.queueQoSZero = T.queueQoSZero === void 0 ? true : T.queueQoSZero, this._resubscribeTopics = {}, this.messageIdToTopic = {}, this.keepaliveManager = null, this.connected = false, this.disconnecting = false, this.reconnecting = false, this.queue = [], this.connackTimer = null, this.reconnectTimer = null, this._storeProcessing = false, this._packetIdsDuringStoreProcessing = {}, this._storeProcessingQueue = [], this.outgoing = {}, this._firstConnection = true, T.properties && T.properties.topicAliasMaximum > 0 && (T.properties.topicAliasMaximum > 65535 ? this.log("MqttClient :: options.properties.topicAliasMaximum is out of range") : this.topicAliasRecv = new s.default(T.properties.topicAliasMaximum)), this.on("connect", () => { let { queue: I } = this, H = () => { @@ -63987,7 +63987,7 @@ ${gz(e, r)}`); connect() { var z; let T = new c.Writable(), I = o.default.parser(this.options), H = null, X = []; - this.log("connect :: calling method to clear reconnect"), this._clearReconnect(), this.log("connect :: using streamBuilder provided to client to create stream"), this.stream = this.streamBuilder(this), I.on("packet", (h) => { + this.log("connect :: calling method to clear reconnect"), this._clearReconnect(), this.disconnected && !this.reconnecting && (this.incomingStore = this.options.incomingStore || new b.default(), this.outgoingStore = this.options.outgoingStore || new b.default(), this.disconnecting = false, this.disconnected = false), this.log("connect :: using streamBuilder provided to client to create stream"), this.stream = this.streamBuilder(this), I.on("packet", (h) => { this.log("parser :: on packet push to packets array."), X.push(h); }); let V = () => { @@ -64154,7 +64154,7 @@ ${gz(e, r)}`); this.log("end :: closeStores: invoking callback with args"), I(d); } }); - }), this._deferredReconnect && this._deferredReconnect(); + }), this._deferredReconnect ? this._deferredReconnect() : (this.options.reconnectPeriod === 0 || this.options.manualConnect) && (this.disconnecting = false); }, X = () => { this.log("end :: (%s) :: finish :: calling _cleanUp with force %s", this.options.clientId, z), this._cleanUp(z, () => { this.log("end :: finish :: calling process.nextTick on closeStores"), (0, _.nextTick)(H); @@ -64336,8 +64336,8 @@ ${gz(e, r)}`); _destroyKeepaliveManager() { this.keepaliveManager && (this.log("_destroyKeepaliveManager :: destroying keepalive manager"), this.keepaliveManager.destroy(), this.keepaliveManager = null); } - reschedulePing() { - this.keepaliveManager && this.options.keepalive && this.options.reschedulePings && this._reschedulePing(); + reschedulePing(z = false) { + this.keepaliveManager && this.options.keepalive && (z || this.options.reschedulePings) && this._reschedulePing(); } _reschedulePing() { this.log("_reschedulePing :: rescheduling ping"), this.keepaliveManager.reschedule(); @@ -64433,8 +64433,8 @@ ${gz(e, r)}`); }; q.VERSION = _.MQTTJS_VERSION, t.default = q; }); - var Jfe = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); + var $fe = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); var e = FC(), r = class { constructor() { this.numberAllocator = new e.NumberAllocator(1, 65535); @@ -64457,10 +64457,10 @@ ${gz(e, r)}`); }; t.default = r; }); - function _u(t) { + function xu(t) { throw new RangeError(WC[t]); } - function J_(t, e) { + function Z_(t, e) { let r = t.split("@"), n = ""; r.length > 1 && (n = r[0] + "@", t = r[1]); let i = function(s, o) { @@ -64471,7 +64471,7 @@ ${gz(e, r)}`); }((t = t.replace(qC, ".")).split("."), e).join("."); return n + i; } - function Q_(t) { + function J_(t) { let e = [], r = 0, n = t.length; for (; r < n; ) { let i = t.charCodeAt(r++); @@ -64483,49 +64483,49 @@ ${gz(e, r)}`); } return e; } + var Q_; var $_; - var eE; var qC; var WC; - var Gs; + var Ws; var fp; + var cb; var ub; var lb; var fb; - var hb; - var kc; - var Qfe = ei(() => { - je(), Ue(), Be(), $_ = /^xn--/, eE = /[^\0-\x7E]/, qC = /[\x2E\u3002\uFF0E\uFF61]/g, WC = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, Gs = Math.floor, fp = String.fromCharCode, ub = function(t, e) { + var Oc; + var ehe = ei(() => { + Be(), je(), Ue(), Q_ = /^xn--/, $_ = /[^\0-\x7E]/, qC = /[\x2E\u3002\uFF0E\uFF61]/g, WC = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, Ws = Math.floor, fp = String.fromCharCode, cb = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); - }, lb = function(t, e, r) { + }, ub = function(t, e, r) { let n = 0; - for (t = r ? Gs(t / 700) : t >> 1, t += Gs(t / e); t > 455; n += 36) - t = Gs(t / 35); - return Gs(n + 36 * t / (t + 38)); - }, fb = function(t) { + for (t = r ? Ws(t / 700) : t >> 1, t += Ws(t / e); t > 455; n += 36) + t = Ws(t / 35); + return Ws(n + 36 * t / (t + 38)); + }, lb = function(t) { let e = [], r = t.length, n = 0, i = 128, s = 72, o = t.lastIndexOf("-"); o < 0 && (o = 0); for (let c = 0; c < o; ++c) - t.charCodeAt(c) >= 128 && _u("not-basic"), e.push(t.charCodeAt(c)); + t.charCodeAt(c) >= 128 && xu("not-basic"), e.push(t.charCodeAt(c)); for (let c = o > 0 ? o + 1 : 0; c < r; ) { let u = n; for (let p = 1, b = 36; ; b += 36) { - c >= r && _u("invalid-input"); + c >= r && xu("invalid-input"); let E = (a = t.charCodeAt(c++)) - 48 < 10 ? a - 22 : a - 65 < 26 ? a - 65 : a - 97 < 26 ? a - 97 : 36; - (E >= 36 || E > Gs((2147483647 - n) / p)) && _u("overflow"), n += E * p; + (E >= 36 || E > Ws((2147483647 - n) / p)) && xu("overflow"), n += E * p; let _ = b <= s ? 1 : b >= s + 26 ? 26 : b - s; if (E < _) break; let N = 36 - _; - p > Gs(2147483647 / N) && _u("overflow"), p *= N; + p > Ws(2147483647 / N) && xu("overflow"), p *= N; } let f = e.length + 1; - s = lb(n - u, f, u == 0), Gs(n / f) > 2147483647 - i && _u("overflow"), i += Gs(n / f), n %= f, e.splice(n++, 0, i); + s = ub(n - u, f, u == 0), Ws(n / f) > 2147483647 - i && xu("overflow"), i += Ws(n / f), n %= f, e.splice(n++, 0, i); } var a; return String.fromCodePoint(...e); - }, hb = function(t) { - let e = [], r = (t = Q_(t)).length, n = 128, i = 0, s = 72; + }, fb = function(t) { + let e = [], r = (t = J_(t)).length, n = 128, i = 0, s = 72; for (let c of t) c < 128 && e.push(fp(c)); let o = e.length, a = o; @@ -64534,41 +64534,41 @@ ${gz(e, r)}`); for (let f of t) f >= n && f < c && (c = f); let u = a + 1; - c - n > Gs((2147483647 - i) / u) && _u("overflow"), i += (c - n) * u, n = c; + c - n > Ws((2147483647 - i) / u) && xu("overflow"), i += (c - n) * u, n = c; for (let f of t) - if (f < n && ++i > 2147483647 && _u("overflow"), f == n) { + if (f < n && ++i > 2147483647 && xu("overflow"), f == n) { let p = i; for (let b = 36; ; b += 36) { let E = b <= s ? 1 : b >= s + 26 ? 26 : b - s; if (p < E) break; let _ = p - E, N = 36 - E; - e.push(fp(ub(E + _ % N, 0))), p = Gs(_ / N); + e.push(fp(cb(E + _ % N, 0))), p = Ws(_ / N); } - e.push(fp(ub(p, 0))), s = lb(i, u, a == o), i = 0, ++a; + e.push(fp(cb(p, 0))), s = ub(i, u, a == o), i = 0, ++a; } ++i, ++n; } return e.join(""); - }, kc = { version: "2.1.0", ucs2: { decode: Q_, encode: (t) => String.fromCodePoint(...t) }, decode: fb, encode: hb, toASCII: function(t) { - return J_(t, function(e) { - return eE.test(e) ? "xn--" + hb(e) : e; + }, Oc = { version: "2.1.0", ucs2: { decode: J_, encode: (t) => String.fromCodePoint(...t) }, decode: lb, encode: fb, toASCII: function(t) { + return Z_(t, function(e) { + return $_.test(e) ? "xn--" + fb(e) : e; }); }, toUnicode: function(t) { - return J_(t, function(e) { - return $_.test(e) ? fb(e.slice(4).toLowerCase()) : e; + return Z_(t, function(e) { + return Q_.test(e) ? lb(e.slice(4).toLowerCase()) : e; }); - } }, kc.decode, kc.encode, kc.toASCII, kc.toUnicode, kc.ucs2, kc.version; + } }, Oc.decode, Oc.encode, Oc.toASCII, Oc.toUnicode, Oc.ucs2, Oc.version; }); - function $fe(t, e) { + function the(t, e) { return Object.prototype.hasOwnProperty.call(t, e); } - var tE; + var eE; var Fl; - var rE; - var Ro; - var ehe = ei(() => { - je(), Ue(), Be(), tE = function(t, e, r, n) { + var tE; + var ko; + var rhe = ei(() => { + Be(), je(), Ue(), eE = function(t, e, r, n) { e = e || "&", r = r || "="; var i = {}; if (typeof t != "string" || t.length === 0) @@ -64581,7 +64581,7 @@ ${gz(e, r)}`); o > 0 && a > o && (a = o); for (var c = 0; c < a; ++c) { var u, f, p, b, E = t[c].replace(s, "%20"), _ = E.indexOf(r); - _ >= 0 ? (u = E.substr(0, _), f = E.substr(_ + 1)) : (u = E, f = ""), p = decodeURIComponent(u), b = decodeURIComponent(f), $fe(i, p) ? Array.isArray(i[p]) ? i[p].push(b) : i[p] = [i[p], b] : i[p] = b; + _ >= 0 ? (u = E.substr(0, _), f = E.substr(_ + 1)) : (u = E, f = ""), p = decodeURIComponent(u), b = decodeURIComponent(f), the(i, p) ? Array.isArray(i[p]) ? i[p].push(b) : i[p] = [i[p], b] : i[p] = b; } return i; }, Fl = function(t) { @@ -64595,117 +64595,117 @@ ${gz(e, r)}`); default: return ""; } - }, rE = function(t, e, r, n) { + }, tE = function(t, e, r, n) { return e = e || "&", r = r || "=", t === null && (t = void 0), typeof t == "object" ? Object.keys(t).map(function(i) { var s = encodeURIComponent(Fl(i)) + r; return Array.isArray(t[i]) ? t[i].map(function(o) { return s + encodeURIComponent(Fl(o)); }).join(e) : s + encodeURIComponent(Fl(t[i])); }).join(e) : n ? encodeURIComponent(Fl(n)) + r + encodeURIComponent(Fl(t)) : ""; - }, Ro = {}, Ro.decode = Ro.parse = tE, Ro.encode = Ro.stringify = rE, Ro.decode, Ro.encode, Ro.parse, Ro.stringify; + }, ko = {}, ko.decode = ko.parse = eE, ko.encode = ko.stringify = tE, ko.decode, ko.encode, ko.parse, ko.stringify; }); - function _5() { + function x5() { throw new Error("setTimeout has not been defined"); } - function E5() { + function _5() { throw new Error("clearTimeout has not been defined"); } function GC(t) { - if (Pa === setTimeout) + if (Ia === setTimeout) return setTimeout(t, 0); - if ((Pa === _5 || !Pa) && setTimeout) - return Pa = setTimeout, setTimeout(t, 0); + if ((Ia === x5 || !Ia) && setTimeout) + return Ia = setTimeout, setTimeout(t, 0); try { - return Pa(t, 0); + return Ia(t, 0); } catch { try { - return Pa.call(null, t, 0); + return Ia.call(null, t, 0); } catch { - return Pa.call(this || Gu, t, 0); + return Ia.call(this || Gu, t, 0); } } } - function the() { - Ku && Lu && (Ku = false, Lu.length ? Jo = Lu.concat(Jo) : id = -1, Jo.length && KC()); + function nhe() { + Ku && Du && (Ku = false, Du.length ? Zo = Du.concat(Zo) : nd = -1, Zo.length && KC()); } function KC() { if (!Ku) { - var t = GC(the); + var t = GC(nhe); Ku = true; - for (var e = Jo.length; e; ) { - for (Lu = Jo, Jo = []; ++id < e; ) - Lu && Lu[id].run(); - id = -1, e = Jo.length; + for (var e = Zo.length; e; ) { + for (Du = Zo, Zo = []; ++nd < e; ) + Du && Du[nd].run(); + nd = -1, e = Zo.length; } - Lu = null, Ku = false, function(r) { - if (ka === clearTimeout) + Du = null, Ku = false, function(r) { + if (Oa === clearTimeout) return clearTimeout(r); - if ((ka === E5 || !ka) && clearTimeout) - return ka = clearTimeout, clearTimeout(r); + if ((Oa === _5 || !Oa) && clearTimeout) + return Oa = clearTimeout, clearTimeout(r); try { - ka(r); + Oa(r); } catch { try { - return ka.call(null, r); + return Oa.call(null, r); } catch { - return ka.call(this || Gu, r); + return Oa.call(this || Gu, r); } } }(t); } } - function nE(t, e) { + function rE(t, e) { (this || Gu).fun = t, (this || Gu).array = e; } - function va() { + function ba() { } - var iE; - var Pa; - var ka; + var nE; + var Ia; + var Oa; var Gu; - var Kr; - var Lu; - var Jo; + var Gr; + var Du; + var Zo; var Ku; - var id; - var jr; - var rhe = ei(() => { - je(), Ue(), Be(), Gu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Kr = iE = {}, function() { + var nd; + var Ur; + var ihe = ei(() => { + Be(), je(), Ue(), Gu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Gr = nE = {}, function() { try { - Pa = typeof setTimeout == "function" ? setTimeout : _5; + Ia = typeof setTimeout == "function" ? setTimeout : x5; } catch { - Pa = _5; + Ia = x5; } try { - ka = typeof clearTimeout == "function" ? clearTimeout : E5; + Oa = typeof clearTimeout == "function" ? clearTimeout : _5; } catch { - ka = E5; + Oa = _5; } - }(), Jo = [], Ku = false, id = -1, Kr.nextTick = function(t) { + }(), Zo = [], Ku = false, nd = -1, Gr.nextTick = function(t) { var e = new Array(arguments.length - 1); if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - Jo.push(new nE(t, e)), Jo.length !== 1 || Ku || GC(KC); - }, nE.prototype.run = function() { + Zo.push(new rE(t, e)), Zo.length !== 1 || Ku || GC(KC); + }, rE.prototype.run = function() { (this || Gu).fun.apply(null, (this || Gu).array); - }, Kr.title = "browser", Kr.browser = true, Kr.env = {}, Kr.argv = [], Kr.version = "", Kr.versions = {}, Kr.on = va, Kr.addListener = va, Kr.once = va, Kr.off = va, Kr.removeListener = va, Kr.removeAllListeners = va, Kr.emit = va, Kr.prependListener = va, Kr.prependOnceListener = va, Kr.listeners = function(t) { + }, Gr.title = "browser", Gr.browser = true, Gr.env = {}, Gr.argv = [], Gr.version = "", Gr.versions = {}, Gr.on = ba, Gr.addListener = ba, Gr.once = ba, Gr.off = ba, Gr.removeListener = ba, Gr.removeAllListeners = ba, Gr.emit = ba, Gr.prependListener = ba, Gr.prependOnceListener = ba, Gr.listeners = function(t) { return []; - }, Kr.binding = function(t) { + }, Gr.binding = function(t) { throw new Error("process.binding is not supported"); - }, Kr.cwd = function() { + }, Gr.cwd = function() { return "/"; - }, Kr.chdir = function(t) { + }, Gr.chdir = function(t) { throw new Error("process.chdir is not supported"); - }, Kr.umask = function() { + }, Gr.umask = function() { return 0; - }, jr = iE, jr.addListener, jr.argv, jr.binding, jr.browser, jr.chdir, jr.cwd, jr.emit, jr.env, jr.listeners, jr.nextTick, jr.off, jr.on, jr.once, jr.prependListener, jr.prependOnceListener, jr.removeAllListeners, jr.removeListener, jr.title, jr.umask, jr.version, jr.versions; + }, Ur = nE, Ur.addListener, Ur.argv, Ur.binding, Ur.browser, Ur.chdir, Ur.cwd, Ur.emit, Ur.env, Ur.listeners, Ur.nextTick, Ur.off, Ur.on, Ur.once, Ur.prependListener, Ur.prependOnceListener, Ur.removeAllListeners, Ur.removeListener, Ur.title, Ur.umask, Ur.version, Ur.versions; }); - function nhe() { - if (S5) - return Qp; - S5 = true; - var t = Qp = {}, e, r; + function she() { + if (E5) + return $p; + E5 = true; + var t = $p = {}, e, r; function n() { throw new Error("setTimeout has not been defined"); } @@ -64735,7 +64735,7 @@ ${gz(e, r)}`); try { return e.call(null, N, 0); } catch { - return e.call(this || Nu, N, 0); + return e.call(this || Tu, N, 0); } } } @@ -64750,7 +64750,7 @@ ${gz(e, r)}`); try { return r.call(null, N); } catch { - return r.call(this || Nu, N); + return r.call(this || Tu, N); } } } @@ -64778,10 +64778,10 @@ ${gz(e, r)}`); a.push(new E(N, k)), a.length === 1 && !c && s(b); }; function E(N, k) { - (this || Nu).fun = N, (this || Nu).array = k; + (this || Tu).fun = N, (this || Tu).array = k; } E.prototype.run = function() { - (this || Nu).fun.apply(null, (this || Nu).array); + (this || Tu).fun.apply(null, (this || Tu).array); }, t.title = "browser", t.browser = true, t.env = {}, t.argv = [], t.version = "", t.versions = {}; function _() { } @@ -64795,19 +64795,19 @@ ${gz(e, r)}`); throw new Error("process.chdir is not supported"); }, t.umask = function() { return 0; - }, Qp; + }, $p; } - var Qp; - var S5; - var Nu; + var $p; + var E5; + var Tu; var Or; var XC = ei(() => { - je(), Ue(), Be(), Qp = {}, S5 = false, Nu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Or = nhe(), Or.platform = "browser", Or.addListener, Or.argv, Or.binding, Or.browser, Or.chdir, Or.cwd, Or.emit, Or.env, Or.listeners, Or.nextTick, Or.off, Or.on, Or.once, Or.prependListener, Or.prependOnceListener, Or.removeAllListeners, Or.removeListener, Or.title, Or.umask, Or.version, Or.versions; + Be(), je(), Ue(), $p = {}, E5 = false, Tu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Or = she(), Or.platform = "browser", Or.addListener, Or.argv, Or.binding, Or.browser, Or.chdir, Or.cwd, Or.emit, Or.env, Or.listeners, Or.nextTick, Or.off, Or.on, Or.once, Or.prependListener, Or.prependOnceListener, Or.removeAllListeners, Or.removeListener, Or.title, Or.umask, Or.version, Or.versions; }); - function ihe() { - if (M5) - return $p; - M5 = true; + function ohe() { + if (S5) + return e1; + S5 = true; var t = Or; function e(s) { if (typeof s != "string") @@ -64980,30 +64980,30 @@ ${gz(e, r)}`); } return f === -1 || b === -1 || N === 0 || N === 1 && f === b - 1 && f === p + 1 ? b !== -1 && (p === 0 && c ? o.base = o.name = s.slice(1, b) : o.base = o.name = s.slice(p, b)) : (p === 0 && c ? (o.name = s.slice(1, f), o.base = s.slice(1, b)) : (o.name = s.slice(p, f), o.base = s.slice(p, b)), o.ext = s.slice(f, b)), p > 0 ? o.dir = s.slice(0, p - 1) : c && (o.dir = "/"), o; }, sep: "/", delimiter: ":", win32: null, posix: null }; - return i.posix = i, $p = i, $p; + return i.posix = i, e1 = i, e1; } - var $p; + var e1; + var S5; var M5; - var A5; - var she = ei(() => { - je(), Ue(), Be(), XC(), $p = {}, M5 = false, A5 = ihe(); + var ahe = ei(() => { + Be(), je(), Ue(), XC(), e1 = {}, S5 = false, M5 = ohe(); }); var YC = {}; Al(YC, { URL: () => dD, Url: () => cD, default: () => fr, fileURLToPath: () => ZC, format: () => uD, parse: () => hD, pathToFileURL: () => JC, resolve: () => lD, resolveObject: () => fD }); function Ns() { this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null; } - function Nh(t, e, r) { - if (t && Qs.isObject(t) && t instanceof Ns) + function Th(t, e, r) { + if (t && Js.isObject(t) && t instanceof Ns) return t; var n = new Ns(); return n.parse(t, e, r), n; } - function ohe() { - if (T5) - return e1; - T5 = true; - var t = jr; + function che() { + if (A5) + return t1; + A5 = true; + var t = Ur; function e(s) { if (typeof s != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(s)); @@ -65175,18 +65175,18 @@ ${gz(e, r)}`); } return f === -1 || b === -1 || N === 0 || N === 1 && f === b - 1 && f === p + 1 ? b !== -1 && (p === 0 && c ? o.base = o.name = s.slice(1, b) : o.base = o.name = s.slice(p, b)) : (p === 0 && c ? (o.name = s.slice(1, f), o.base = s.slice(1, b)) : (o.name = s.slice(p, f), o.base = s.slice(p, b)), o.ext = s.slice(f, b)), p > 0 ? o.dir = s.slice(0, p - 1) : c && (o.dir = "/"), o; }, sep: "/", delimiter: ":", win32: null, posix: null }; - return i.posix = i, e1 = i, e1; + return i.posix = i, t1 = i, t1; } - function ahe(t) { + function uhe(t) { if (typeof t == "string") t = new URL(t); else if (!(t instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL"); if (t.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme"); - return ym ? che(t) : uhe(t); + return bm ? lhe(t) : fhe(t); } - function che(t) { + function lhe(t) { let e = t.hostname, r = t.pathname; for (let n = 0; n < r.length; n++) if (r[n] === "%") { @@ -65203,7 +65203,7 @@ ${gz(e, r)}`); return r.slice(1); } } - function uhe(t) { + function fhe(t) { if (t.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname"); let e = t.pathname; @@ -65215,11 +65215,11 @@ ${gz(e, r)}`); } return decodeURIComponent(e); } - function lhe(t) { - let e = N5.resolve(t), r = t.charCodeAt(t.length - 1); - (r === $C || ym && r === QC) && e[e.length - 1] !== N5.sep && (e += "/"); + function hhe(t) { + let e = T5.resolve(t), r = t.charCodeAt(t.length - 1); + (r === $C || bm && r === QC) && e[e.length - 1] !== T5.sep && (e += "/"); let n = new URL("file://"); - return e.includes("%") && (e = e.replace(nD, "%25")), !ym && e.includes("\\") && (e = e.replace(iD, "%5C")), e.includes(` + return e.includes("%") && (e = e.replace(nD, "%25")), !bm && e.includes("\\") && (e = e.replace(iD, "%5C")), e.includes(` `) && (e = e.replace(sD, "%0A")), e.includes("\r") && (e = e.replace(oD, "%0D")), e.includes(" ") && (e = e.replace(aD, "%09")), n.pathname = e, n; } function ZC(t) { @@ -65229,9 +65229,9 @@ ${gz(e, r)}`); throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL"); if (t.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme"); - return bm ? fhe(t) : hhe(t); + return wm ? dhe(t) : phe(t); } - function fhe(t) { + function dhe(t) { let e = t.hostname, r = t.pathname; for (let n = 0; n < r.length; n++) if (r[n] === "%") { @@ -65248,7 +65248,7 @@ ${gz(e, r)}`); return r.slice(1); } } - function hhe(t) { + function phe(t) { if (t.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname"); let e = t.pathname; @@ -65261,44 +65261,44 @@ ${gz(e, r)}`); return decodeURIComponent(e); } function JC(t) { - let e = A5.resolve(t), r = t.charCodeAt(t.length - 1); - (r === mD || bm && r === pD) && e[e.length - 1] !== A5.sep && (e += "/"); + let e = M5.resolve(t), r = t.charCodeAt(t.length - 1); + (r === mD || wm && r === pD) && e[e.length - 1] !== M5.sep && (e += "/"); let n = new URL("file://"); - return e.includes("%") && (e = e.replace(wD, "%25")), !bm && e.includes("\\") && (e = e.replace(vD, "%5C")), e.includes(` + return e.includes("%") && (e = e.replace(wD, "%25")), !wm && e.includes("\\") && (e = e.replace(vD, "%5C")), e.includes(` `) && (e = e.replace(xD, "%0A")), e.includes("\r") && (e = e.replace(_D, "%0D")), e.includes(" ") && (e = e.replace(ED, "%09")), n.pathname = e, n; } var fr; + var iE; + var Js; var sE; - var Qs; var oE; var aE; var cE; - var uE; var hp; + var hb; var db; var pb; - var mb; + var uE; var lE; - var fE; var dp; - var Eu; + var _u; var pp; - var e1; + var t1; + var A5; var T5; - var N5; - var hE; + var fE; var QC; var $C; var eD; var tD; - var ym; + var bm; var rD; var nD; var iD; var sD; var oD; var aD; - var dE; + var hE; var cD; var uD; var lD; @@ -65309,15 +65309,15 @@ ${gz(e, r)}`); var mD; var gD; var yD; - var bm; + var wm; var bD; var wD; var vD; var xD; var _D; var ED; - var dhe = ei(() => { - je(), Ue(), Be(), Qfe(), ehe(), rhe(), she(), XC(), fr = {}, sE = kc, Qs = { isString: function(t) { + var mhe = ei(() => { + Be(), je(), Ue(), ehe(), rhe(), ihe(), ahe(), XC(), fr = {}, iE = Oc, Js = { isString: function(t) { return typeof t == "string"; }, isObject: function(t) { return typeof t == "object" && t !== null; @@ -65325,25 +65325,25 @@ ${gz(e, r)}`); return t === null; }, isNullOrUndefined: function(t) { return t == null; - } }, fr.parse = Nh, fr.resolve = function(t, e) { - return Nh(t, false, true).resolve(e); + } }, fr.parse = Th, fr.resolve = function(t, e) { + return Th(t, false, true).resolve(e); }, fr.resolveObject = function(t, e) { - return t ? Nh(t, false, true).resolveObject(e) : e; + return t ? Th(t, false, true).resolveObject(e) : e; }, fr.format = function(t) { - return Qs.isString(t) && (t = Nh(t)), t instanceof Ns ? t.format() : Ns.prototype.format.call(t); - }, fr.Url = Ns, oE = /^([a-z0-9.+-]+:)/i, aE = /:[0-9]*$/, cE = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, uE = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", ` -`, " "]), hp = ["'"].concat(uE), db = ["%", "/", "?", ";", "#"].concat(hp), pb = ["/", "?", "#"], mb = /^[+a-z0-9A-Z_-]{0,63}$/, lE = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, fE = { javascript: true, "javascript:": true }, dp = { javascript: true, "javascript:": true }, Eu = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true }, pp = Ro, Ns.prototype.parse = function(t, e, r) { - if (!Qs.isString(t)) + return Js.isString(t) && (t = Th(t)), t instanceof Ns ? t.format() : Ns.prototype.format.call(t); + }, fr.Url = Ns, sE = /^([a-z0-9.+-]+:)/i, oE = /:[0-9]*$/, aE = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, cE = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", ` +`, " "]), hp = ["'"].concat(cE), hb = ["%", "/", "?", ";", "#"].concat(hp), db = ["/", "?", "#"], pb = /^[+a-z0-9A-Z_-]{0,63}$/, uE = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, lE = { javascript: true, "javascript:": true }, dp = { javascript: true, "javascript:": true }, _u = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true }, pp = ko, Ns.prototype.parse = function(t, e, r) { + if (!Js.isString(t)) throw new TypeError("Parameter 'url' must be a string, not " + typeof t); var n = t.indexOf("?"), i = n !== -1 && n < t.indexOf("#") ? "?" : "#", s = t.split(i); s[0] = s[0].replace(/\\/g, "/"); var o = t = s.join(i); if (o = o.trim(), !r && t.split("#").length === 1) { - var a = cE.exec(o); + var a = aE.exec(o); if (a) return this.path = o, this.href = o, this.pathname = a[1], a[2] ? (this.search = a[2], this.query = e ? pp.parse(this.search.substr(1)) : this.search.substr(1)) : e && (this.search = "", this.query = {}), this; } - var c = oE.exec(o); + var c = sE.exec(o); if (c) { var u = (c = c[0]).toLowerCase(); this.protocol = u, o = o.substr(c.length); @@ -65352,33 +65352,33 @@ ${gz(e, r)}`); var f = o.substr(0, 2) === "//"; !f || c && dp[c] || (o = o.substr(2), this.slashes = true); } - if (!dp[c] && (f || c && !Eu[c])) { - for (var p, b, E = -1, _ = 0; _ < pb.length; _++) - (N = o.indexOf(pb[_])) !== -1 && (E === -1 || N < E) && (E = N); - for ((b = E === -1 ? o.lastIndexOf("@") : o.lastIndexOf("@", E)) !== -1 && (p = o.slice(0, b), o = o.slice(b + 1), this.auth = decodeURIComponent(p)), E = -1, _ = 0; _ < db.length; _++) { - var N; + if (!dp[c] && (f || c && !_u[c])) { + for (var p, b, E = -1, _ = 0; _ < db.length; _++) (N = o.indexOf(db[_])) !== -1 && (E === -1 || N < E) && (E = N); + for ((b = E === -1 ? o.lastIndexOf("@") : o.lastIndexOf("@", E)) !== -1 && (p = o.slice(0, b), o = o.slice(b + 1), this.auth = decodeURIComponent(p)), E = -1, _ = 0; _ < hb.length; _++) { + var N; + (N = o.indexOf(hb[_])) !== -1 && (E === -1 || N < E) && (E = N); } E === -1 && (E = o.length), this.host = o.slice(0, E), o = o.slice(E), this.parseHost(), this.hostname = this.hostname || ""; var k = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; if (!k) for (var F = this.hostname.split(/\./), L = (_ = 0, F.length); _ < L; _++) { var D = F[_]; - if (D && !D.match(mb)) { + if (D && !D.match(pb)) { for (var q = "", W = 0, z = D.length; W < z; W++) D.charCodeAt(W) > 127 ? q += "x" : q += D[W]; - if (!q.match(mb)) { - var T = F.slice(0, _), I = F.slice(_ + 1), H = D.match(lE); + if (!q.match(pb)) { + var T = F.slice(0, _), I = F.slice(_ + 1), H = D.match(uE); H && (T.push(H[1]), I.unshift(H[2])), I.length && (o = "/" + I.join(".") + o), this.hostname = T.join("."); break; } } } - this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), k || (this.hostname = sE.toASCII(this.hostname)); + this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), k || (this.hostname = iE.toASCII(this.hostname)); var X = this.port ? ":" + this.port : "", V = this.hostname || ""; this.host = V + X, this.href += this.host, k && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o)); } - if (!fE[u]) + if (!lE[u]) for (_ = 0, L = hp.length; _ < L; _++) { var S = hp[_]; if (o.indexOf(S) !== -1) { @@ -65389,7 +65389,7 @@ ${gz(e, r)}`); var l = o.indexOf("#"); l !== -1 && (this.hash = o.substr(l), o = o.slice(0, l)); var h = o.indexOf("?"); - if (h !== -1 ? (this.search = o.substr(h), this.query = o.substr(h + 1), e && (this.query = pp.parse(this.query)), o = o.slice(0, h)) : e && (this.search = "", this.query = {}), o && (this.pathname = o), Eu[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) { + if (h !== -1 ? (this.search = o.substr(h), this.query = o.substr(h + 1), e && (this.query = pp.parse(this.query)), o = o.slice(0, h)) : e && (this.search = "", this.query = {}), o && (this.pathname = o), _u[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) { X = this.pathname || ""; var y = this.search || ""; this.path = X + y; @@ -65399,15 +65399,15 @@ ${gz(e, r)}`); var t = this.auth || ""; t && (t = (t = encodeURIComponent(t)).replace(/%3A/i, ":"), t += "@"); var e = this.protocol || "", r = this.pathname || "", n = this.hash || "", i = false, s = ""; - this.host ? i = t + this.host : this.hostname && (i = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && Qs.isObject(this.query) && Object.keys(this.query).length && (s = pp.stringify(this.query)); + this.host ? i = t + this.host : this.hostname && (i = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && Js.isObject(this.query) && Object.keys(this.query).length && (s = pp.stringify(this.query)); var o = this.search || s && "?" + s || ""; - return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || Eu[e]) && i !== false ? (i = "//" + (i || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : i || (i = ""), n && n.charAt(0) !== "#" && (n = "#" + n), o && o.charAt(0) !== "?" && (o = "?" + o), e + i + (r = r.replace(/[?#]/g, function(a) { + return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || _u[e]) && i !== false ? (i = "//" + (i || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : i || (i = ""), n && n.charAt(0) !== "#" && (n = "#" + n), o && o.charAt(0) !== "?" && (o = "?" + o), e + i + (r = r.replace(/[?#]/g, function(a) { return encodeURIComponent(a); })) + (o = o.replace("#", "%23")) + n; }, Ns.prototype.resolve = function(t) { - return this.resolveObject(Nh(t, false, true)).format(); + return this.resolveObject(Th(t, false, true)).format(); }, Ns.prototype.resolveObject = function(t) { - if (Qs.isString(t)) { + if (Js.isString(t)) { var e = new Ns(); e.parse(t, false, true), t = e; } @@ -65422,10 +65422,10 @@ ${gz(e, r)}`); var c = o[a]; c !== "protocol" && (r[c] = t[c]); } - return Eu[r.protocol] && r.hostname && !r.pathname && (r.path = r.pathname = "/"), r.href = r.format(), r; + return _u[r.protocol] && r.hostname && !r.pathname && (r.path = r.pathname = "/"), r.href = r.format(), r; } if (t.protocol && t.protocol !== r.protocol) { - if (!Eu[t.protocol]) { + if (!_u[t.protocol]) { for (var u = Object.keys(t), f = 0; f < u.length; f++) { var p = u[f]; r[p] = t[p]; @@ -65445,13 +65445,13 @@ ${gz(e, r)}`); } return r.slashes = r.slashes || t.slashes, r.href = r.format(), r; } - var N = r.pathname && r.pathname.charAt(0) === "/", k = t.host || t.pathname && t.pathname.charAt(0) === "/", F = k || N || r.host && t.pathname, L = F, D = r.pathname && r.pathname.split("/") || [], q = (b = t.pathname && t.pathname.split("/") || [], r.protocol && !Eu[r.protocol]); + var N = r.pathname && r.pathname.charAt(0) === "/", k = t.host || t.pathname && t.pathname.charAt(0) === "/", F = k || N || r.host && t.pathname, L = F, D = r.pathname && r.pathname.split("/") || [], q = (b = t.pathname && t.pathname.split("/") || [], r.protocol && !_u[r.protocol]); if (q && (r.hostname = "", r.port = null, r.host && (D[0] === "" ? D[0] = r.host : D.unshift(r.host)), r.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (b[0] === "" ? b[0] = t.host : b.unshift(t.host)), t.host = null), F = F && (b[0] === "" || D[0] === "")), k) r.host = t.host || t.host === "" ? t.host : r.host, r.hostname = t.hostname || t.hostname === "" ? t.hostname : r.hostname, r.search = t.search, r.query = t.query, D = b; else if (b.length) D || (D = []), D.pop(), D = D.concat(b), r.search = t.search, r.query = t.query; - else if (!Qs.isNullOrUndefined(t.search)) - return q && (r.hostname = r.host = D.shift(), (H = !!(r.host && r.host.indexOf("@") > 0) && r.host.split("@")) && (r.auth = H.shift(), r.host = r.hostname = H.shift())), r.search = t.search, r.query = t.query, Qs.isNull(r.pathname) && Qs.isNull(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r; + else if (!Js.isNullOrUndefined(t.search)) + return q && (r.hostname = r.host = D.shift(), (H = !!(r.host && r.host.indexOf("@") > 0) && r.host.split("@")) && (r.auth = H.shift(), r.host = r.hostname = H.shift())), r.search = t.search, r.query = t.query, Js.isNull(r.pathname) && Js.isNull(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r; if (!D.length) return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r; for (var W = D.slice(-1)[0], z = (r.host || t.host || D.length > 1) && (W === "." || W === "..") || W === "", T = 0, I = D.length; I >= 0; I--) @@ -65461,61 +65461,19 @@ ${gz(e, r)}`); D.unshift(".."); !F || D[0] === "" || D[0] && D[0].charAt(0) === "/" || D.unshift(""), z && D.join("/").substr(-1) !== "/" && D.push(""); var H, X = D[0] === "" || D[0] && D[0].charAt(0) === "/"; - return q && (r.hostname = r.host = X ? "" : D.length ? D.shift() : "", (H = !!(r.host && r.host.indexOf("@") > 0) && r.host.split("@")) && (r.auth = H.shift(), r.host = r.hostname = H.shift())), (F = F || r.host && D.length) && !X && D.unshift(""), D.length ? r.pathname = D.join("/") : (r.pathname = null, r.path = null), Qs.isNull(r.pathname) && Qs.isNull(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r; + return q && (r.hostname = r.host = X ? "" : D.length ? D.shift() : "", (H = !!(r.host && r.host.indexOf("@") > 0) && r.host.split("@")) && (r.auth = H.shift(), r.host = r.hostname = H.shift())), (F = F || r.host && D.length) && !X && D.unshift(""), D.length ? r.pathname = D.join("/") : (r.pathname = null, r.path = null), Js.isNull(r.pathname) && Js.isNull(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r; }, Ns.prototype.parseHost = function() { - var t = this.host, e = aE.exec(t); + var t = this.host, e = oE.exec(t); e && ((e = e[0]) !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); - }, fr.Url, fr.format, fr.resolve, fr.resolveObject, e1 = {}, T5 = false, N5 = ohe(), hE = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, fr.URL = typeof URL < "u" ? URL : null, fr.pathToFileURL = lhe, fr.fileURLToPath = ahe, fr.Url, fr.format, fr.resolve, fr.resolveObject, fr.URL, QC = 92, $C = 47, eD = 97, tD = 122, ym = hE === "win32", rD = /\//g, nD = /%/g, iD = /\\/g, sD = /\n/g, oD = /\r/g, aD = /\t/g, dE = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, fr.URL = typeof URL < "u" ? URL : null, fr.pathToFileURL = JC, fr.fileURLToPath = ZC, cD = fr.Url, uD = fr.format, lD = fr.resolve, fD = fr.resolveObject, hD = fr.parse, dD = fr.URL, pD = 92, mD = 47, gD = 97, yD = 122, bm = dE === "win32", bD = /\//g, wD = /%/g, vD = /\\/g, xD = /\n/g, _D = /\r/g, ED = /\t/g; - }); - var xx = {}; - Al(xx, { Server: () => Pr, Socket: () => Pr, Stream: () => Pr, _createServerHandle: () => Pr, _normalizeArgs: () => Pr, _setSimultaneousAccepts: () => Pr, connect: () => Pr, createConnection: () => Pr, createServer: () => Pr, default: () => SD, isIP: () => Pr, isIPv4: () => Pr, isIPv6: () => Pr }); - function Pr() { - throw new Error("Node.js net module is not supported by JSPM core outside of Node.js"); - } - var SD; - var MD = ei(() => { - je(), Ue(), Be(), SD = { _createServerHandle: Pr, _normalizeArgs: Pr, _setSimultaneousAccepts: Pr, connect: Pr, createConnection: Pr, createServer: Pr, isIP: Pr, isIPv4: Pr, isIPv6: Pr, Server: Pr, Socket: Pr, Stream: Pr }; - }); - var pE = Ye((t) => { - je(), Ue(), Be(); - var e = t && t.__importDefault || function(o) { - return o && o.__esModule ? o : { default: o }; - }; - Object.defineProperty(t, "__esModule", { value: true }); - var r = e((MD(), vr(xx))), n = e($a()), i = (0, n.default)("mqttjs:tcp"), s = (o, a) => { - a.port = a.port || 1883, a.hostname = a.hostname || a.host || "localhost"; - let { port: c, path: u } = a, f = a.hostname; - return i("port %d and host %s", c, f), r.default.createConnection({ port: c, host: f, path: u }); - }; - t.default = s; - }); - var AD = {}; - Al(AD, { default: () => TD }); - var TD; - var phe = ei(() => { - je(), Ue(), Be(), TD = {}; + }, fr.Url, fr.format, fr.resolve, fr.resolveObject, t1 = {}, A5 = false, T5 = che(), fE = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, fr.URL = typeof URL < "u" ? URL : null, fr.pathToFileURL = hhe, fr.fileURLToPath = uhe, fr.Url, fr.format, fr.resolve, fr.resolveObject, fr.URL, QC = 92, $C = 47, eD = 97, tD = 122, bm = fE === "win32", rD = /\//g, nD = /%/g, iD = /\\/g, sD = /\n/g, oD = /\r/g, aD = /\t/g, hE = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, fr.URL = typeof URL < "u" ? URL : null, fr.pathToFileURL = JC, fr.fileURLToPath = ZC, cD = fr.Url, uD = fr.format, lD = fr.resolve, fD = fr.resolveObject, hD = fr.parse, dD = fr.URL, pD = 92, mD = 47, gD = 97, yD = 122, wm = hE === "win32", bD = /\//g, wD = /%/g, vD = /\\/g, xD = /\n/g, _D = /\r/g, ED = /\t/g; }); - var mE = Ye((t) => { - je(), Ue(), Be(); - var e = t && t.__importDefault || function(a) { - return a && a.__esModule ? a : { default: a }; - }; - Object.defineProperty(t, "__esModule", { value: true }); - var r = e((phe(), vr(AD))), n = e((MD(), vr(xx))), i = e($a()), s = (0, i.default)("mqttjs:tls"), o = (a, c) => { - c.port = c.port || 8883, c.host = c.hostname || c.host || "localhost", n.default.isIP(c.host) === 0 && (c.servername = c.host), c.rejectUnauthorized = c.rejectUnauthorized !== false, delete c.path, s("port %d host %s rejectUnauthorized %b", c.port, c.host, c.rejectUnauthorized); - let u = r.default.connect(c); - u.on("secureConnect", () => { - c.rejectUnauthorized && !u.authorized ? u.emit("error", new Error("TLS not authorized")) : u.removeListener("error", f); - }); - function f(p) { - c.rejectUnauthorized && a.emit("error", p), u.end(); - } - return u.on("error", f), u; + var ghe = Ye((t, e) => { + Be(), je(), Ue(), e.exports = function() { + throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object"); }; - t.default = o; }); - var _x = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }), t.BufferedDuplex = t.writev = void 0; + var vx = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }), t.BufferedDuplex = t.writev = void 0; var e = Il(), r = (ri(), vr(ti)); function n(s, o) { let a = new Array(s.length); @@ -65527,7 +65485,7 @@ ${gz(e, r)}`); var i = class extends e.Duplex { constructor(s, o, a) { super({ objectMode: true }), this.proxy = o, this.socket = a, this.writeQueue = [], s.objectMode || (this._writev = n.bind(this)), this.isSocketOpen = false, this.proxy.on("data", (c) => { - this.push(c); + this.destroyed || this.push(c); }); } _read(s) { @@ -65557,136 +65515,20 @@ ${gz(e, r)}`); }; t.BufferedDuplex = i; }); - var gE = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); - var e = (ri(), vr(ti)), r = Il(), n = _x(), i, s, o; - function a() { - let b = new r.Transform(); - return b._write = (E, _, N) => { - i.send({ data: E.buffer, success() { - N(); - }, fail(k) { - N(new Error(k)); - } }); - }, b._flush = (E) => { - i.close({ success() { - E(); - } }); - }, b; - } - function c(b) { - b.hostname || (b.hostname = "localhost"), b.path || (b.path = "/"), b.wsOptions || (b.wsOptions = {}); - } - function u(b, E) { - let _ = b.protocol === "wxs" ? "wss" : "ws", N = `${_}://${b.hostname}${b.path}`; - return b.port && b.port !== 80 && b.port !== 443 && (N = `${_}://${b.hostname}:${b.port}${b.path}`), typeof b.transformWsUrl == "function" && (N = b.transformWsUrl(N, b, E)), N; - } - function f() { - i.onOpen(() => { - o.socketReady(); - }), i.onMessage((b) => { - let { data: E } = b; - E instanceof ArrayBuffer ? E = e.Buffer.from(E) : E = e.Buffer.from(E, "utf8"), s.push(E); - }), i.onClose(() => { - o.emit("close"), o.end(), o.destroy(); - }), i.onError((b) => { - let E = new Error(b.errMsg); - o.destroy(E); - }); - } - var p = (b, E) => { - if (E.hostname = E.hostname || E.host, !E.hostname) - throw new Error("Could not determine host. Specify host manually."); - let _ = E.protocolId === "MQIsdp" && E.protocolVersion === 3 ? "mqttv3.1" : "mqtt"; - c(E); - let N = u(E, b); - i = wx.connectSocket({ url: N, protocols: [_] }), s = a(), o = new n.BufferedDuplex(E, s, i), o._destroy = (F, L) => { - i.close({ success() { - L && L(F); - } }); - }; - let k = o.destroy; - return o.destroy = (F, L) => (o.destroy = k, setTimeout(() => { - i.close({ fail() { - o._destroy(F, L); - } }); - }, 0), o), f(), o; - }; - t.default = p; - }); - var yE = Ye((t) => { - je(), Ue(), Be(), Object.defineProperty(t, "__esModule", { value: true }); - var e = (ri(), vr(ti)), r = Il(), n = _x(), i, s, o, a = false; - function c() { - let E = new r.Transform(); - return E._write = (_, N, k) => { - i.sendSocketMessage({ data: _.buffer, success() { - k(); - }, fail() { - k(new Error()); - } }); - }, E._flush = (_) => { - i.closeSocket({ success() { - _(); - } }); - }, E; - } - function u(E) { - E.hostname || (E.hostname = "localhost"), E.path || (E.path = "/"), E.wsOptions || (E.wsOptions = {}); - } - function f(E, _) { - let N = E.protocol === "alis" ? "wss" : "ws", k = `${N}://${E.hostname}${E.path}`; - return E.port && E.port !== 80 && E.port !== 443 && (k = `${N}://${E.hostname}:${E.port}${E.path}`), typeof E.transformWsUrl == "function" && (k = E.transformWsUrl(k, E, _)), k; - } - function p() { - a || (a = true, i.onSocketOpen(() => { - o.socketReady(); - }), i.onSocketMessage((E) => { - if (typeof E.data == "string") { - let _ = e.Buffer.from(E.data, "base64"); - s.push(_); - } else { - let _ = new FileReader(); - _.addEventListener("load", () => { - let N = _.result; - N instanceof ArrayBuffer ? N = e.Buffer.from(N) : N = e.Buffer.from(N, "utf8"), s.push(N); - }), _.readAsArrayBuffer(E.data); - } - }), i.onSocketClose(() => { - o.end(), o.destroy(); - }), i.onSocketError((E) => { - o.destroy(E); - })); - } - var b = (E, _) => { - if (_.hostname = _.hostname || _.host, !_.hostname) - throw new Error("Could not determine host. Specify host manually."); - let N = _.protocolId === "MQIsdp" && _.protocolVersion === 3 ? "mqttv3.1" : "mqtt"; - u(_); - let k = f(_, E); - return i = _.my, i.connectSocket({ url: k, protocols: N }), s = c(), o = new n.BufferedDuplex(_, s, i), p(), o; - }; - t.default = b; - }); - var mhe = Ye((t, e) => { - je(), Ue(), Be(), e.exports = function() { - throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object"); - }; - }); - var bE = Ye((t) => { - je(), Ue(), Be(); + var mp = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__importDefault || function(F) { return F && F.__esModule ? F : { default: F }; }; - Object.defineProperty(t, "__esModule", { value: true }); - var r = (ri(), vr(ti)), n = e(mhe()), i = e($a()), s = Il(), o = e(l2()), a = _x(), c = (0, i.default)("mqttjs:ws"), u = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"]; + Object.defineProperty(t, "__esModule", { value: true }), t.streamBuilder = t.browserStreamBuilder = void 0; + var r = (ri(), vr(ti)), n = e(ghe()), i = e(Ja()), s = Il(), o = e(l2()), a = vx(), c = (0, i.default)("mqttjs:ws"), u = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"]; function f(F, L) { let D = `${F.protocol}://${F.hostname}:${F.port}${F.path}`; return typeof F.transformWsUrl == "function" && (D = F.transformWsUrl(D, F, L)), D; } function p(F) { let L = F; - return F.port || (F.protocol === "wss" ? L.port = 443 : L.port = 80), F.path || (L.path = "/"), F.wsOptions || (L.wsOptions = {}), !o.default && F.protocol === "wss" && u.forEach((D) => { + return F.port || (F.protocol === "wss" ? L.port = 443 : L.port = 80), F.path || (L.path = "/"), F.wsOptions || (L.wsOptions = {}), !o.default && !F.forceNativeWebSocket && F.protocol === "wss" && u.forEach((D) => { Object.prototype.hasOwnProperty.call(F, D) && !Object.prototype.hasOwnProperty.call(F.wsOptions, D) && (L.wsOptions[D] = F[D]); }), L; } @@ -65719,7 +65561,9 @@ ${gz(e, r)}`); return z.url = q, W.on("close", () => { z.destroy(); }), z; - }, k = (F, L) => { + }; + t.streamBuilder = N; + var k = (F, L) => { c("browserStreamBuilder"); let D, q = b(L).browserBufferSize || 1024 * 512, W = L.browserBufferTimeout || 1e3, z = !L.objectMode, T = _(F, L), I = X(L, h, y); L.objectMode || (I._writev = a.writev.bind(I)), I.on("close", () => { @@ -65744,7 +65588,7 @@ ${gz(e, r)}`); } function l(x) { let { data: v } = x; - v instanceof ArrayBuffer ? v = r.Buffer.from(v) : v = r.Buffer.from(v, "utf8"), I.push(v); + v instanceof ArrayBuffer ? v = r.Buffer.from(v) : v = r.Buffer.from(v, "utf8"), I && !I.destroyed && I.push(v); } function h(x, v, M) { if (T.bufferedAmount > q) { @@ -65764,18 +65608,175 @@ ${gz(e, r)}`); } return D; }; - t.default = o.default ? k : N; + t.browserStreamBuilder = k; }); - var ghe = Ye((t) => { - je(), Ue(), Be(); + var xx = {}; + Al(xx, { Server: () => Pr, Socket: () => Pr, Stream: () => Pr, _createServerHandle: () => Pr, _normalizeArgs: () => Pr, _setSimultaneousAccepts: () => Pr, connect: () => Pr, createConnection: () => Pr, createServer: () => Pr, default: () => SD, isIP: () => Pr, isIPv4: () => Pr, isIPv6: () => Pr }); + function Pr() { + throw new Error("Node.js net module is not supported by JSPM core outside of Node.js"); + } + var SD; + var MD = ei(() => { + Be(), je(), Ue(), SD = { _createServerHandle: Pr, _normalizeArgs: Pr, _setSimultaneousAccepts: Pr, connect: Pr, createConnection: Pr, createServer: Pr, isIP: Pr, isIPv4: Pr, isIPv6: Pr, Server: Pr, Socket: Pr, Stream: Pr }; + }); + var dE = Ye((t) => { + Be(), je(), Ue(); + var e = t && t.__importDefault || function(o) { + return o && o.__esModule ? o : { default: o }; + }; + Object.defineProperty(t, "__esModule", { value: true }); + var r = e((MD(), vr(xx))), n = e(Ja()), i = (0, n.default)("mqttjs:tcp"), s = (o, a) => { + a.port = a.port || 1883, a.hostname = a.hostname || a.host || "localhost"; + let { port: c, path: u } = a, f = a.hostname; + return i("port %d and host %s", c, f), r.default.createConnection({ port: c, host: f, path: u }); + }; + t.default = s; + }); + var AD = {}; + Al(AD, { default: () => TD }); + var TD; + var yhe = ei(() => { + Be(), je(), Ue(), TD = {}; + }); + var pE = Ye((t) => { + Be(), je(), Ue(); + var e = t && t.__importDefault || function(a) { + return a && a.__esModule ? a : { default: a }; + }; + Object.defineProperty(t, "__esModule", { value: true }); + var r = e((yhe(), vr(AD))), n = e((MD(), vr(xx))), i = e(Ja()), s = (0, i.default)("mqttjs:tls"), o = (a, c) => { + c.port = c.port || 8883, c.host = c.hostname || c.host || "localhost", n.default.isIP(c.host) === 0 && (c.servername = c.host), c.rejectUnauthorized = c.rejectUnauthorized !== false, delete c.path, s("port %d host %s rejectUnauthorized %b", c.port, c.host, c.rejectUnauthorized); + let u = r.default.connect(c); + u.on("secureConnect", () => { + c.rejectUnauthorized && !u.authorized ? u.emit("error", new Error("TLS not authorized")) : u.removeListener("error", f); + }); + function f(p) { + c.rejectUnauthorized && a.emit("error", p), u.end(); + } + return u.on("error", f), u; + }; + t.default = o; + }); + var mE = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); + var e = (ri(), vr(ti)), r = Il(), n = vx(), i, s, o; + function a() { + let b = new r.Transform(); + return b._write = (E, _, N) => { + i.send({ data: E.buffer, success() { + N(); + }, fail(k) { + N(new Error(k)); + } }); + }, b._flush = (E) => { + i.close({ success() { + E(); + } }); + }, b; + } + function c(b) { + b.hostname || (b.hostname = "localhost"), b.path || (b.path = "/"), b.wsOptions || (b.wsOptions = {}); + } + function u(b, E) { + let _ = b.protocol === "wxs" ? "wss" : "ws", N = `${_}://${b.hostname}${b.path}`; + return b.port && b.port !== 80 && b.port !== 443 && (N = `${_}://${b.hostname}:${b.port}${b.path}`), typeof b.transformWsUrl == "function" && (N = b.transformWsUrl(N, b, E)), N; + } + function f() { + i.onOpen(() => { + o.socketReady(); + }), i.onMessage((b) => { + let { data: E } = b; + E instanceof ArrayBuffer ? E = e.Buffer.from(E) : E = e.Buffer.from(E, "utf8"), s.push(E); + }), i.onClose(() => { + o.emit("close"), o.end(), o.destroy(); + }), i.onError((b) => { + let E = new Error(b.errMsg); + o.destroy(E); + }); + } + var p = (b, E) => { + if (E.hostname = E.hostname || E.host, !E.hostname) + throw new Error("Could not determine host. Specify host manually."); + let _ = E.protocolId === "MQIsdp" && E.protocolVersion === 3 ? "mqttv3.1" : "mqtt"; + c(E); + let N = u(E, b); + i = wx.connectSocket({ url: N, protocols: [_] }), s = a(), o = new n.BufferedDuplex(E, s, i), o._destroy = (F, L) => { + i.close({ success() { + L && L(F); + } }); + }; + let k = o.destroy; + return o.destroy = (F, L) => (o.destroy = k, setTimeout(() => { + i.close({ fail() { + o._destroy(F, L); + } }); + }, 0), o), f(), o; + }; + t.default = p; + }); + var gE = Ye((t) => { + Be(), je(), Ue(), Object.defineProperty(t, "__esModule", { value: true }); + var e = (ri(), vr(ti)), r = Il(), n = vx(), i, s, o, a = false; + function c() { + let E = new r.Transform(); + return E._write = (_, N, k) => { + i.sendSocketMessage({ data: _.buffer, success() { + k(); + }, fail() { + k(new Error()); + } }); + }, E._flush = (_) => { + i.closeSocket({ success() { + _(); + } }); + }, E; + } + function u(E) { + E.hostname || (E.hostname = "localhost"), E.path || (E.path = "/"), E.wsOptions || (E.wsOptions = {}); + } + function f(E, _) { + let N = E.protocol === "alis" ? "wss" : "ws", k = `${N}://${E.hostname}${E.path}`; + return E.port && E.port !== 80 && E.port !== 443 && (k = `${N}://${E.hostname}:${E.port}${E.path}`), typeof E.transformWsUrl == "function" && (k = E.transformWsUrl(k, E, _)), k; + } + function p() { + a || (a = true, i.onSocketOpen(() => { + o.socketReady(); + }), i.onSocketMessage((E) => { + if (typeof E.data == "string") { + let _ = e.Buffer.from(E.data, "base64"); + s.push(_); + } else { + let _ = new FileReader(); + _.addEventListener("load", () => { + let N = _.result; + N instanceof ArrayBuffer ? N = e.Buffer.from(N) : N = e.Buffer.from(N, "utf8"), s.push(N); + }), _.readAsArrayBuffer(E.data); + } + }), i.onSocketClose(() => { + o.end(), o.destroy(); + }), i.onSocketError((E) => { + o.destroy(E); + })); + } + var b = (E, _) => { + if (_.hostname = _.hostname || _.host, !_.hostname) + throw new Error("Could not determine host. Specify host manually."); + let N = _.protocolId === "MQIsdp" && _.protocolVersion === 3 ? "mqttv3.1" : "mqtt"; + u(_); + let k = f(_, E); + return i = _.my, i.connectSocket({ url: k, protocols: N }), s = c(), o = new n.BufferedDuplex(_, s, i), p(), o; + }; + t.default = b; + }); + var bhe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__importDefault || function(p) { return p && p.__esModule ? p : { default: p }; }; Object.defineProperty(t, "__esModule", { value: true }), t.connectAsync = void 0; - var r = e($a()), n = e((dhe(), vr(YC))), i = e(v5()), s = e(l2()); + var r = e(Ja()), n = e((mhe(), vr(YC))), i = e(w5()), s = e(l2()); typeof (cr == null ? void 0 : cr.nextTick) != "function" && (cr.nextTick = setImmediate); - var o = (0, r.default)("mqttjs"), a = {}; - s.default ? (a.wx = gE().default, a.wxs = gE().default, a.ali = yE().default, a.alis = yE().default) : (a.mqtt = pE().default, a.tcp = pE().default, a.ssl = mE().default, a.tls = a.ssl, a.mqtts = mE().default), a.ws = bE().default, a.wss = bE().default; + var o = (0, r.default)("mqttjs"), a = null; function c(p) { let b; p.auth && (b = p.auth.match(/^(.+):(.+)$/), b ? (p.username = b[1], p.password = b[2]) : p.username = p.auth); @@ -65808,7 +65809,7 @@ ${gz(e, r)}`); } } else throw new Error("Missing secure protocol key"); - if (!a[b.protocol]) { + if (a || (a = {}, !s.default && !b.forceNativeWebSocket ? (a.ws = mp().streamBuilder, a.wss = mp().streamBuilder, a.mqtt = dE().default, a.tcp = dE().default, a.ssl = pE().default, a.tls = a.ssl, a.mqtts = pE().default) : (a.ws = mp().browserStreamBuilder, a.wss = mp().browserStreamBuilder, a.wx = mE().default, a.wxs = mE().default, a.ali = gE().default, a.alis = gE().default)), !a[b.protocol]) { let D = ["mqtts", "wss"].indexOf(b.protocol) !== -1; b.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((q, W) => D && W % 2 === 0 ? false : typeof a[q] == "function")[0]; } @@ -65846,8 +65847,8 @@ ${gz(e, r)}`); } t.connectAsync = f, t.default = u; }); - var wE = Ye((t) => { - je(), Ue(), Be(); + var yE = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__createBinding || (Object.create ? function(E, _, N, k) { k === void 0 && (k = N); var F = Object.getOwnPropertyDescriptor(_, N); @@ -65875,27 +65876,27 @@ ${gz(e, r)}`); return E && E.__esModule ? E : { default: E }; }; Object.defineProperty(t, "__esModule", { value: true }), t.ReasonCodes = t.KeepaliveManager = t.UniqueMessageIdProvider = t.DefaultMessageIdProvider = t.Store = t.MqttClient = t.connectAsync = t.connect = t.Client = void 0; - var o = s(v5()); + var o = s(w5()); t.MqttClient = o.default; var a = s(AC()); t.DefaultMessageIdProvider = a.default; - var c = s(Jfe()); + var c = s($fe()); t.UniqueMessageIdProvider = c.default; var u = s(TC()); t.Store = u.default; - var f = n(ghe()); + var f = n(bhe()); t.connect = f.default, Object.defineProperty(t, "connectAsync", { enumerable: true, get: function() { return f.connectAsync; } }); var p = s(HC()); - t.KeepaliveManager = p.default, t.Client = o.default, i(v5(), t), i(_0(), t); + t.KeepaliveManager = p.default, t.Client = o.default, i(w5(), t), i(Xf(), t); var b = u2(); Object.defineProperty(t, "ReasonCodes", { enumerable: true, get: function() { return b.ReasonCodes; } }); }); - var yhe = Ye((t) => { - je(), Ue(), Be(); + var whe = Ye((t) => { + Be(), je(), Ue(); var e = t && t.__createBinding || (Object.create ? function(o, a, c, u) { u === void 0 && (u = c); var f = Object.getOwnPropertyDescriptor(a, c); @@ -65921,11 +65922,11 @@ ${gz(e, r)}`); c !== "default" && !Object.prototype.hasOwnProperty.call(a, c) && e(a, o, c); }; Object.defineProperty(t, "__esModule", { value: true }); - var s = n(wE()); - t.default = s, i(wE(), t); + var s = n(yE()); + t.default = s, i(yE(), t); }); - var bhe = yhe(); - var whe = class { + var vhe = whe(); + var xhe = class { connect(e, r) { e = e || {}, e.secure == null && (typeof window < "u" && window != null && window.location != null && window.location.protocol != null ? e.secure = window.location.protocol == "https:" : e.secure = false); var n = { @@ -65938,7 +65939,7 @@ ${gz(e, r)}`); e[i] = typeof e[i] > "u" ? n[i] : e[i]; e.host = e.host.replace(/.*?:\/\//g, ""); var s = `${e.secure ? "wss://" : "ws://"}${e.host}:${e.port}`; - return this._callbacks = { connect: [r] }, this._mqtt = bhe.connect(s, e), this._mqtt.on( + return this._callbacks = { connect: [r] }, this._mqtt = vhe.connect(s, e), this._mqtt.on( "connect", () => this._tryInvoke("connect", this) ), this._mqtt.on( @@ -65951,7 +65952,7 @@ ${gz(e, r)}`); "error", (o) => this._tryInvoke("error", o) ), this._mqtt.on("message", (o, a, c) => { - var u = new vhe(c); + var u = new _he(c); this._startsWith(u.channel, "emitter/keygen") ? this._tryInvoke("keygen", u.asObject()) : this._startsWith(u.channel, "emitter/presence") ? this._tryInvoke("presence", u.asObject()) : this._startsWith(u.channel, "emitter/me") ? this._tryInvoke("me", u.asObject()) : this._tryInvoke("message", u); }), this; } @@ -66083,7 +66084,7 @@ ${gz(e, r)}`); throw console.error(e), new Error(e); } }; - var vhe = class { + var _he = class { constructor(e) { this.channel = e.topic, this.binary = e.payload; } @@ -66104,21 +66105,21 @@ ${gz(e, r)}`); } }; var il = /* @__PURE__ */ ((t) => (t.connect = "connect", t.disconnect = "disconnect", t.message = "message", t.offline = "offline", t.error = "error", t.keygen = "keygen", t.presence = "presence", t.me = "me", t))(il || {}); - function xhe(t, e) { - var r = new whe(); + function Ehe(t, e) { + var r = new xhe(); return r.connect(t, e), r; } - var wm = { + var vm = { host: "events.reefscan.info", port: 443, secure: true }; - var vE = "UMuO3iJMyZIM5H9v1PW7uOZEYLoUeCpc"; + var bE = "UMuO3iJMyZIM5H9v1PW7uOZEYLoUeCpc"; + var mb = /* @__PURE__ */ new Map(); var gb = /* @__PURE__ */ new Map(); - var yb = /* @__PURE__ */ new Map(); - function Ehe(t) { + function Mhe(t) { return new Promise((e, r) => { - const n = xhe(t); + const n = Ehe(t); n.on(il.connect, function() { e(n); }), n.on(il.error, function(i) { @@ -66132,11 +66133,11 @@ ${gz(e, r)}`); } var ID = (t) => { const e = { ...t }, r = ND(e); - if (!yb.has(r)) { - const n = xe(e).pipe( - Oe((i) => Fr(Ehe(i)).pipe( - Oe((s) => { - const o = new tc(1); + if (!gb.has(r)) { + const n = _e(e).pipe( + Pe((i) => zr(Mhe(i)).pipe( + Pe((s) => { + const o = new ru(1); return s.on(il.disconnect, function() { console.log("reefscan events disconnected"), o.next(null); }), o.next(s), o.pipe( @@ -66147,25 +66148,25 @@ ${gz(e, r)}`); }) ); }), - Yt((s, o) => (console.log("reefscanEventsConn$ ERR=", s), Zm(xe(null), aa(8e3).pipe(Oe(() => o))))) + $t((s, o) => (console.log("reefscanEventsConn$ ERR=", s), Ov(_e(null), oa(8e3).pipe(Pe(() => o))))) )), - qt(1) + Wt(1) ); - yb.set(r, n); + gb.set(r, n); } - return yb.get(r); + return gb.get(r); }; - var She = (t) => "reef-indexer/" + t + "/"; - var Mhe = (t) => ID(t).pipe( - Wr((e) => (console.log(e ? "indexer events connection ok" : "indexer events waiting for connection"), !!e)), - qt(1) + var Ahe = (t) => "reef-indexer/" + t + "/"; + var The = (t) => ID(t).pipe( + qr((e) => (console.log(e ? "indexer events connection ok" : "indexer events waiting for connection"), !!e)), + Wt(1) ); - var Ahe = (t, e) => { - const r = e ? { ...e } : { ...wm }, n = ND(r) + t; - if (!gb.has(n)) { - const i = Mhe(r).pipe( - Oe((s) => new Ht((o) => (s.subscribe({ - key: vE, + var Nhe = (t, e) => { + const r = e ? { ...e } : { ...vm }, n = ND(r) + t; + if (!mb.has(n)) { + const i = The(r).pipe( + Pe((s) => new Ht((o) => (s.subscribe({ + key: bE, channel: t }), s.on(il.message, function(a) { if (a.channel === t) { @@ -66173,55 +66174,55 @@ ${gz(e, r)}`); c.blockHeight >= -1 && o.next(c); } }), () => { - console.log("unsubs from emitter channel=", t), s.unsubscribe({ key: vE, channel: t }); + console.log("unsubs from emitter channel=", t), s.unsubscribe({ key: bE, channel: t }); }))), gl() ); - gb.set(n, i); + mb.set(n, i); } - return gb.get(n); + return mb.get(n); }; - var The = (t, e) => t.pipe( - Oe( - (r) => Ahe( - She(r), + var Ihe = (t, e) => t.pipe( + Pe( + (r) => Nhe( + Ahe(r), e ) ), - qt(1) + Wt(1) ); - var as = /* @__PURE__ */ ((t) => (t[t.REEF20_TRANSFER = 0] = "REEF20_TRANSFER", t[t.REEF_NFT_TRANSFER = 1] = "REEF_NFT_TRANSFER", t[t.REEF_BIND_TX = 2] = "REEF_BIND_TX", t))(as || {}); - var Ihe = [ + var qi = /* @__PURE__ */ ((t) => (t[t.REEF20_TRANSFER = 0] = "REEF20_TRANSFER", t[t.REEF_NFT_TRANSFER = 1] = "REEF_NFT_TRANSFER", t[t.REEF_BIND_TX = 2] = "REEF_BIND_TX", t))(qi || {}); + var Phe = [ 2, 1, 0 ]; - var Ex = (t) => { + var _x = (t) => { let e; if (!t) - e = su.pipe( - Wr((r) => !!r), + e = iu.pipe( + qr((r) => !!r), we((r) => r.name) ); else { - const r = new tc(1); + const r = new ru(1); r.next(t), e = r.asObservable(); } - return The(e); + return Ihe(e); }; - var Ohe = (t, e) => { + var khe = (t, e) => { const r = t.updatedAccounts || {}; switch (e) { - case as.REEF_NFT_TRANSFER: + case qi.REEF_NFT_TRANSFER: const i = r.REEF1155Transfers || []; return Array.from( new Set( i.concat(r.REEF721Transfers || []) ) ); - case as.REEF20_TRANSFER: + case qi.REEF20_TRANSFER: return r.REEF20Transfers || []; - case as.REEF_BIND_TX: + case qi.REEF_BIND_TX: return r.boundEvm || []; } const n = Object.keys(r).reduce( @@ -66230,20 +66231,20 @@ ${gz(e, r)}`); ); return Array.from(new Set(n)); }; - function Phe(t, e) { + function Rhe(t, e) { return e.length ? e.some((r) => { var i, s, o, a; const n = t.updatedAccounts || {}; switch (r) { - case as.REEF20_TRANSFER: + case qi.REEF20_TRANSFER: if ((i = n.REEF20Transfers) != null && i.length) return true; break; - case as.REEF_NFT_TRANSFER: + case qi.REEF_NFT_TRANSFER: if ((s = n.REEF721Transfers) != null && s.length || (o = n.REEF1155Transfers) != null && o.length) return true; break; - case as.REEF_BIND_TX: + case qi.REEF_BIND_TX: if ((a = n.boundEvm) != null && a.length) return true; break; @@ -66251,12 +66252,12 @@ ${gz(e, r)}`); return false; }) : true; } - var khe = (t, e, r = Ihe) => t.pipe( + var Che = (t, e, r = Phe) => t.pipe( we((n) => { e && e.some((o) => o.startsWith("0x")) && console.warn("@reef-chain/util-lib // Only filter by native address."); const i = Array.from( new Set( - r == null ? void 0 : r.reduce((o, a) => o.concat(Ohe(n, a)), []) + r == null ? void 0 : r.reduce((o, a) => o.concat(khe(n, a)), []) ) ).filter((o) => !!o); if (!e || !e.filter((o) => !!o).length) @@ -66269,44 +66270,44 @@ ${gz(e, r)}`); ); return { ...n, addresses: s }; }), - Wr( + qr( (n) => e && n != null && !!n.addresses.length || !e || !(e != null && e.length) ), - Wr( - (n) => Phe( + qr( + (n) => Rhe( n, r ) ), - Yt((n) => (console.log("_getBlockAccountTransactionUpdates$ err=", n.message), xe(null))) + $t((n) => (console.log("_getBlockAccountTransactionUpdates$ err=", n.message), _e(null))) ); - var Yf = (t, e, r) => khe( - Ex(r), + var Yf = (t, e, r) => Che( + _x(r), t, e ).pipe( - Yt((n) => (console.log("getLatestBlockAccountUpdates$ err=", n.message), xe(null))) + $t((n) => (console.log("getLatestBlockAccountUpdates$ err=", n.message), _e(null))) ); var E0 = "abi/5.7.0"; - var Jt = new ot(E0); + var Zt = new ot(E0); var sl = {}; - var xE = { calldata: true, memory: true, storage: true }; - var Rhe = { calldata: true, memory: true }; - function mp(t, e) { + var wE = { calldata: true, memory: true, storage: true }; + var Dhe = { calldata: true, memory: true }; + function gp(t, e) { if (t === "bytes" || t === "string") { - if (xE[e]) + if (wE[e]) return true; } else if (t === "address") { if (e === "payable") return true; - } else if ((t.indexOf("[") >= 0 || t === "tuple") && Rhe[e]) + } else if ((t.indexOf("[") >= 0 || t === "tuple") && Dhe[e]) return true; - return (xE[e] || e === "payable") && Jt.throwArgumentError("invalid modifier", "name", e), false; + return (wE[e] || e === "payable") && Zt.throwArgumentError("invalid modifier", "name", e), false; } - function Che(t, e) { + function Lhe(t, e) { let r = t; function n(a) { - Jt.throwArgumentError(`unexpected character at position ${a}`, "param", t); + Zt.throwArgumentError(`unexpected character at position ${a}`, "param", t); } t = t.replace(/\s/g, " "); function i(a) { @@ -66321,17 +66322,17 @@ ${gz(e, r)}`); o.state.allowType && o.type === "" ? o.type = "tuple" : o.state.allowParams || n(a), o.state.allowType = false, o.type = rf(o.type), o.components = [i(o)], o = o.components[0]; break; case ")": - delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), mp(o.type, o.name) && (o.name = ""), o.type = rf(o.type); + delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), gp(o.type, o.name) && (o.name = ""), o.type = rf(o.type); let u = o; o = o.parent, o || n(a), delete u.parent, o.state.allowParams = false, o.state.allowName = true, o.state.allowArray = true; break; case ",": - delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), mp(o.type, o.name) && (o.name = ""), o.type = rf(o.type); + delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), gp(o.type, o.name) && (o.name = ""), o.type = rf(o.type); let f = i(o.parent); o.parent.components.push(f), delete o.parent, o = f; break; case " ": - o.state.allowType && o.type !== "" && (o.type = rf(o.type), delete o.state.allowType, o.state.allowName = true, o.state.allowParams = true), o.state.allowName && o.name !== "" && (o.name === "indexed" ? (e || n(a), o.indexed && n(a), o.indexed = true, o.name = "") : mp(o.type, o.name) ? o.name = "" : o.state.allowName = false); + o.state.allowType && o.type !== "" && (o.type = rf(o.type), delete o.state.allowType, o.state.allowName = true, o.state.allowParams = true), o.state.allowName && o.name !== "" && (o.name === "indexed" ? (e || n(a), o.indexed && n(a), o.indexed = true, o.name = "") : gp(o.type, o.name) ? o.name = "" : o.state.allowName = false); break; case "[": o.state.allowArray || n(a), o.type += c, o.state.allowArray = false, o.state.allowName = false, o.state.readArray = true; @@ -66343,9 +66344,9 @@ ${gz(e, r)}`); o.state.allowType ? (o.type += c, o.state.allowParams = true, o.state.allowArray = true) : o.state.allowName ? (o.name += c, delete o.state.allowArray) : o.state.readArray ? o.type += c : n(a); } } - return o.parent && Jt.throwArgumentError("unexpected eof", "param", t), delete s.state, o.name === "indexed" ? (e || n(r.length - 7), o.indexed && n(r.length - 7), o.indexed = true, o.name = "") : mp(o.type, o.name) && (o.name = ""), s.type = rf(s.type), s; + return o.parent && Zt.throwArgumentError("unexpected eof", "param", t), delete s.state, o.name === "indexed" ? (e || n(r.length - 7), o.indexed && n(r.length - 7), o.indexed = true, o.name = "") : gp(o.type, o.name) && (o.name = ""), s.type = rf(s.type), s; } - function t1(t, e) { + function r1(t, e) { for (let r in e) pt(t, r, e[r]); } @@ -66355,28 +66356,28 @@ ${gz(e, r)}`); full: "full", json: "json" }); - var Dhe = new RegExp(/^(.*)\[([0-9]*)\]$/); - var $o = class Rc { + var Bhe = new RegExp(/^(.*)\[([0-9]*)\]$/); + var Qo = class Pc { constructor(e, r) { - e !== sl && Jt.throwError("use fromString", ot.errors.UNSUPPORTED_OPERATION, { + e !== sl && Zt.throwError("use fromString", ot.errors.UNSUPPORTED_OPERATION, { operation: "new ParamType()" - }), t1(this, r); - let n = this.type.match(Dhe); - n ? t1(this, { + }), r1(this, r); + let n = this.type.match(Bhe); + n ? r1(this, { arrayLength: parseInt(n[2] || "-1"), - arrayChildren: Rc.fromObject({ + arrayChildren: Pc.fromObject({ type: n[1], components: this.components }), baseType: "array" - }) : t1(this, { + }) : r1(this, { arrayLength: null, arrayChildren: null, baseType: this.components != null ? "tuple" : this.type }), this._isParamType = true, Object.freeze(this); } format(e) { - if (e || (e = ir.sighash), ir[e] || Jt.throwArgumentError("invalid format type", "format", e), e === ir.json) { + if (e || (e = ir.sighash), ir[e] || Zt.throwArgumentError("invalid format type", "format", e), e === ir.json) { let n = { type: this.baseType === "tuple" ? "tuple" : this.type, name: this.name || void 0 @@ -66387,71 +66388,71 @@ ${gz(e, r)}`); return this.baseType === "array" ? (r += this.arrayChildren.format(e), r += "[" + (this.arrayLength < 0 ? "" : String(this.arrayLength)) + "]") : this.baseType === "tuple" ? (e !== ir.sighash && (r += this.type), r += "(" + this.components.map((n) => n.format(e)).join(e === ir.full ? ", " : ",") + ")") : r += this.type, e !== ir.sighash && (this.indexed === true && (r += " indexed"), e === ir.full && this.name && (r += " " + this.name)), r; } static from(e, r) { - return typeof e == "string" ? Rc.fromString(e, r) : Rc.fromObject(e); + return typeof e == "string" ? Pc.fromString(e, r) : Pc.fromObject(e); } static fromObject(e) { - return Rc.isParamType(e) ? e : new Rc(sl, { + return Pc.isParamType(e) ? e : new Pc(sl, { name: e.name || null, type: rf(e.type), indexed: e.indexed == null ? null : !!e.indexed, - components: e.components ? e.components.map(Rc.fromObject) : null + components: e.components ? e.components.map(Pc.fromObject) : null }); } static fromString(e, r) { function n(i) { - return Rc.fromObject({ + return Pc.fromObject({ name: i.name, type: i.type, indexed: i.indexed, components: i.components }); } - return n(Che(e, !!r)); + return n(Lhe(e, !!r)); } static isParamType(e) { return !!(e != null && e._isParamType); } }; - function Td(t, e) { - return Bhe(t).map((r) => $o.fromString(r, e)); + function Ad(t, e) { + return jhe(t).map((r) => Qo.fromString(r, e)); } - var f2 = class Kh { + var f2 = class Gh { constructor(e, r) { - e !== sl && Jt.throwError("use a static from method", ot.errors.UNSUPPORTED_OPERATION, { + e !== sl && Zt.throwError("use a static from method", ot.errors.UNSUPPORTED_OPERATION, { operation: "new Fragment()" - }), t1(this, r), this._isFragment = true, Object.freeze(this); + }), r1(this, r), this._isFragment = true, Object.freeze(this); } static from(e) { - return Kh.isFragment(e) ? e : typeof e == "string" ? Kh.fromString(e) : Kh.fromObject(e); + return Gh.isFragment(e) ? e : typeof e == "string" ? Gh.fromString(e) : Gh.fromObject(e); } static fromObject(e) { - if (Kh.isFragment(e)) + if (Gh.isFragment(e)) return e; switch (e.type) { case "function": - return xm.fromObject(e); + return _m.fromObject(e); case "event": - return I5.fromObject(e); + return N5.fromObject(e); case "constructor": - return vm.fromObject(e); + return xm.fromObject(e); case "error": - return EE.fromObject(e); + return xE.fromObject(e); case "fallback": case "receive": return null; } - return Jt.throwArgumentError("invalid fragment object", "value", e); + return Zt.throwArgumentError("invalid fragment object", "value", e); } static fromString(e) { - return e = e.replace(/\s/g, " "), e = e.replace(/\(/g, " (").replace(/\)/g, ") ").replace(/\s+/g, " "), e = e.trim(), e.split(" ")[0] === "event" ? I5.fromString(e.substring(5).trim()) : e.split(" ")[0] === "function" ? xm.fromString(e.substring(8).trim()) : e.split("(")[0].trim() === "constructor" ? vm.fromString(e.trim()) : e.split(" ")[0] === "error" ? EE.fromString(e.substring(5).trim()) : Jt.throwArgumentError("unsupported fragment", "value", e); + return e = e.replace(/\s/g, " "), e = e.replace(/\(/g, " (").replace(/\)/g, ") ").replace(/\s+/g, " "), e = e.trim(), e.split(" ")[0] === "event" ? N5.fromString(e.substring(5).trim()) : e.split(" ")[0] === "function" ? _m.fromString(e.substring(8).trim()) : e.split("(")[0].trim() === "constructor" ? xm.fromString(e.trim()) : e.split(" ")[0] === "error" ? xE.fromString(e.substring(5).trim()) : Zt.throwArgumentError("unsupported fragment", "value", e); } static isFragment(e) { return !!(e && e._isFragment); } }; - var I5 = class Ql extends f2 { + var N5 = class Ql extends f2 { format(e) { - if (e || (e = ir.sighash), ir[e] || Jt.throwArgumentError("invalid format type", "format", e), e === ir.json) + if (e || (e = ir.sighash), ir[e] || Zt.throwArgumentError("invalid format type", "format", e), e === ir.json) return JSON.stringify({ type: "event", anonymous: this.anonymous, @@ -66467,18 +66468,18 @@ ${gz(e, r)}`); static fromObject(e) { if (Ql.isEventFragment(e)) return e; - e.type !== "event" && Jt.throwArgumentError("invalid event object", "value", e); + e.type !== "event" && Zt.throwArgumentError("invalid event object", "value", e); const r = { - name: Nd(e.name), + name: Td(e.name), anonymous: e.anonymous, - inputs: e.inputs ? e.inputs.map($o.fromObject) : [], + inputs: e.inputs ? e.inputs.map(Qo.fromObject) : [], type: "event" }; return new Ql(sl, r); } static fromString(e) { - let r = e.match(Id); - r || Jt.throwArgumentError("invalid event string", "value", e); + let r = e.match(Nd); + r || Zt.throwArgumentError("invalid event string", "value", e); let n = false; return r[3].split(" ").forEach((i) => { switch (i.trim()) { @@ -66488,12 +66489,12 @@ ${gz(e, r)}`); case "": break; default: - Jt.warn("unknown modifier: " + i); + Zt.warn("unknown modifier: " + i); } }), Ql.fromObject({ name: r[1].trim(), anonymous: n, - inputs: Td(r[2], true), + inputs: Ad(r[2], true), type: "event" }); } @@ -66504,7 +66505,7 @@ ${gz(e, r)}`); function PD(t, e) { e.gas = null; let r = t.split("@"); - return r.length !== 1 ? (r.length > 2 && Jt.throwArgumentError("invalid human-readable ABI signature", "value", t), r[1].match(/^[0-9]+$/) || Jt.throwArgumentError("invalid human-readable ABI signature gas", "value", t), e.gas = zt.from(r[1]), r[0]) : t; + return r.length !== 1 ? (r.length > 2 && Zt.throwArgumentError("invalid human-readable ABI signature", "value", t), r[1].match(/^[0-9]+$/) || Zt.throwArgumentError("invalid human-readable ABI signature gas", "value", t), e.gas = zt.from(r[1]), r[0]) : t; } function kD(t, e) { e.constant = false, e.payable = false, e.stateMutability = "nonpayable", t.split(" ").forEach((r) => { @@ -66539,11 +66540,11 @@ ${gz(e, r)}`); payable: true, stateMutability: "payable" }; - return t.stateMutability != null ? (e.stateMutability = t.stateMutability, e.constant = e.stateMutability === "view" || e.stateMutability === "pure", t.constant != null && !!t.constant !== e.constant && Jt.throwArgumentError("cannot have constant function with mutability " + e.stateMutability, "value", t), e.payable = e.stateMutability === "payable", t.payable != null && !!t.payable !== e.payable && Jt.throwArgumentError("cannot have payable function with mutability " + e.stateMutability, "value", t)) : t.payable != null ? (e.payable = !!t.payable, t.constant == null && !e.payable && t.type !== "constructor" && Jt.throwArgumentError("unable to determine stateMutability", "value", t), e.constant = !!t.constant, e.constant ? e.stateMutability = "view" : e.stateMutability = e.payable ? "payable" : "nonpayable", e.payable && e.constant && Jt.throwArgumentError("cannot have constant payable function", "value", t)) : t.constant != null ? (e.constant = !!t.constant, e.payable = !e.constant, e.stateMutability = e.constant ? "view" : "payable") : t.type !== "constructor" && Jt.throwArgumentError("unable to determine stateMutability", "value", t), e; + return t.stateMutability != null ? (e.stateMutability = t.stateMutability, e.constant = e.stateMutability === "view" || e.stateMutability === "pure", t.constant != null && !!t.constant !== e.constant && Zt.throwArgumentError("cannot have constant function with mutability " + e.stateMutability, "value", t), e.payable = e.stateMutability === "payable", t.payable != null && !!t.payable !== e.payable && Zt.throwArgumentError("cannot have payable function with mutability " + e.stateMutability, "value", t)) : t.payable != null ? (e.payable = !!t.payable, t.constant == null && !e.payable && t.type !== "constructor" && Zt.throwArgumentError("unable to determine stateMutability", "value", t), e.constant = !!t.constant, e.constant ? e.stateMutability = "view" : e.stateMutability = e.payable ? "payable" : "nonpayable", e.payable && e.constant && Zt.throwArgumentError("cannot have constant payable function", "value", t)) : t.constant != null ? (e.constant = !!t.constant, e.payable = !e.constant, e.stateMutability = e.constant ? "view" : "payable") : t.type !== "constructor" && Zt.throwArgumentError("unable to determine stateMutability", "value", t), e; } - var vm = class $l extends f2 { + var xm = class $l extends f2 { format(e) { - if (e || (e = ir.sighash), ir[e] || Jt.throwArgumentError("invalid format type", "format", e), e === ir.json) + if (e || (e = ir.sighash), ir[e] || Zt.throwArgumentError("invalid format type", "format", e), e === ir.json) return JSON.stringify({ type: "constructor", stateMutability: this.stateMutability !== "nonpayable" ? this.stateMutability : void 0, @@ -66551,7 +66552,7 @@ ${gz(e, r)}`); gas: this.gas ? this.gas.toNumber() : void 0, inputs: this.inputs.map((n) => JSON.parse(n.format(e))) }); - e === ir.sighash && Jt.throwError("cannot format a constructor for sighash", ot.errors.UNSUPPORTED_OPERATION, { + e === ir.sighash && Zt.throwError("cannot format a constructor for sighash", ot.errors.UNSUPPORTED_OPERATION, { operation: "format(sighash)" }); let r = "constructor(" + this.inputs.map((n) => n.format(e)).join(e === ir.full ? ", " : ",") + ") "; @@ -66563,13 +66564,13 @@ ${gz(e, r)}`); static fromObject(e) { if ($l.isConstructorFragment(e)) return e; - e.type !== "constructor" && Jt.throwArgumentError("invalid constructor object", "value", e); + e.type !== "constructor" && Zt.throwArgumentError("invalid constructor object", "value", e); let r = RD(e); - r.constant && Jt.throwArgumentError("constructor cannot be constant", "value", e); + r.constant && Zt.throwArgumentError("constructor cannot be constant", "value", e); const n = { name: null, type: e.type, - inputs: e.inputs ? e.inputs.map($o.fromObject) : [], + inputs: e.inputs ? e.inputs.map(Qo.fromObject) : [], payable: r.payable, stateMutability: r.stateMutability, gas: e.gas ? zt.from(e.gas) : null @@ -66579,16 +66580,16 @@ ${gz(e, r)}`); static fromString(e) { let r = { type: "constructor" }; e = PD(e, r); - let n = e.match(Id); - return (!n || n[1].trim() !== "constructor") && Jt.throwArgumentError("invalid constructor string", "value", e), r.inputs = Td(n[2].trim(), false), kD(n[3].trim(), r), $l.fromObject(r); + let n = e.match(Nd); + return (!n || n[1].trim() !== "constructor") && Zt.throwArgumentError("invalid constructor string", "value", e), r.inputs = Ad(n[2].trim(), false), kD(n[3].trim(), r), $l.fromObject(r); } static isConstructorFragment(e) { return e && e._isFragment && e.type === "constructor"; } }; - var xm = class ef extends vm { + var _m = class ef extends xm { format(e) { - if (e || (e = ir.sighash), ir[e] || Jt.throwArgumentError("invalid format type", "format", e), e === ir.json) + if (e || (e = ir.sighash), ir[e] || Zt.throwArgumentError("invalid format type", "format", e), e === ir.json) return JSON.stringify({ type: "function", name: this.name, @@ -66608,14 +66609,14 @@ ${gz(e, r)}`); static fromObject(e) { if (ef.isFunctionFragment(e)) return e; - e.type !== "function" && Jt.throwArgumentError("invalid function object", "value", e); + e.type !== "function" && Zt.throwArgumentError("invalid function object", "value", e); let r = RD(e); const n = { type: e.type, - name: Nd(e.name), + name: Td(e.name), constant: r.constant, - inputs: e.inputs ? e.inputs.map($o.fromObject) : [], - outputs: e.outputs ? e.outputs.map($o.fromObject) : [], + inputs: e.inputs ? e.inputs.map(Qo.fromObject) : [], + outputs: e.outputs ? e.outputs.map(Qo.fromObject) : [], payable: r.payable, stateMutability: r.stateMutability, gas: e.gas ? zt.from(e.gas) : null @@ -66626,11 +66627,11 @@ ${gz(e, r)}`); let r = { type: "function" }; e = PD(e, r); let n = e.split(" returns "); - n.length > 2 && Jt.throwArgumentError("invalid function string", "value", e); - let i = n[0].match(Id); - if (i || Jt.throwArgumentError("invalid function signature", "value", e), r.name = i[1].trim(), r.name && Nd(r.name), r.inputs = Td(i[2], false), kD(i[3].trim(), r), n.length > 1) { - let s = n[1].match(Id); - (s[1].trim() != "" || s[3].trim() != "") && Jt.throwArgumentError("unexpected tokens", "value", e), r.outputs = Td(s[2], false); + n.length > 2 && Zt.throwArgumentError("invalid function string", "value", e); + let i = n[0].match(Nd); + if (i || Zt.throwArgumentError("invalid function signature", "value", e), r.name = i[1].trim(), r.name && Td(r.name), r.inputs = Ad(i[2], false), kD(i[3].trim(), r), n.length > 1) { + let s = n[1].match(Nd); + (s[1].trim() != "" || s[3].trim() != "") && Zt.throwArgumentError("unexpected tokens", "value", e), r.outputs = Ad(s[2], false); } else r.outputs = []; return ef.fromObject(r); @@ -66639,13 +66640,13 @@ ${gz(e, r)}`); return e && e._isFragment && e.type === "function"; } }; - function _E(t) { + function vE(t) { const e = t.format(); - return (e === "Error(string)" || e === "Panic(uint256)") && Jt.throwArgumentError(`cannot specify user defined ${e} error`, "fragment", t), t; + return (e === "Error(string)" || e === "Panic(uint256)") && Zt.throwArgumentError(`cannot specify user defined ${e} error`, "fragment", t), t; } - var EE = class tf extends f2 { + var xE = class tf extends f2 { format(e) { - if (e || (e = ir.sighash), ir[e] || Jt.throwArgumentError("invalid format type", "format", e), e === ir.json) + if (e || (e = ir.sighash), ir[e] || Zt.throwArgumentError("invalid format type", "format", e), e === ir.json) return JSON.stringify({ type: "error", name: this.name, @@ -66660,17 +66661,17 @@ ${gz(e, r)}`); static fromObject(e) { if (tf.isErrorFragment(e)) return e; - e.type !== "error" && Jt.throwArgumentError("invalid error object", "value", e); + e.type !== "error" && Zt.throwArgumentError("invalid error object", "value", e); const r = { type: e.type, - name: Nd(e.name), - inputs: e.inputs ? e.inputs.map($o.fromObject) : [] + name: Td(e.name), + inputs: e.inputs ? e.inputs.map(Qo.fromObject) : [] }; - return _E(new tf(sl, r)); + return vE(new tf(sl, r)); } static fromString(e) { - let r = { type: "error" }, n = e.match(Id); - return n || Jt.throwArgumentError("invalid error signature", "value", e), r.name = n[1].trim(), r.name && Nd(r.name), r.inputs = Td(n[2], false), _E(tf.fromObject(r)); + let r = { type: "error" }, n = e.match(Nd); + return n || Zt.throwArgumentError("invalid error signature", "value", e), r.name = n[1].trim(), r.name && Td(r.name), r.inputs = Ad(n[2], false), vE(tf.fromObject(r)); } static isErrorFragment(e) { return e && e._isFragment && e.type === "error"; @@ -66679,22 +66680,22 @@ ${gz(e, r)}`); function rf(t) { return t.match(/^uint($|[^1-9])/) ? t = "uint256" + t.substring(4) : t.match(/^int($|[^1-9])/) && (t = "int256" + t.substring(3)), t; } - var Lhe = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); - function Nd(t) { - return (!t || !t.match(Lhe)) && Jt.throwArgumentError(`invalid identifier "${t}"`, "value", t), t; + var Uhe = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); + function Td(t) { + return (!t || !t.match(Uhe)) && Zt.throwArgumentError(`invalid identifier "${t}"`, "value", t), t; } - var Id = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"); - function Bhe(t) { + var Nd = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"); + function jhe(t) { t = t.trim(); let e = [], r = "", n = 0; for (let i = 0; i < t.length; i++) { let s = t[i]; - s === "," && n === 0 ? (e.push(r), r = "") : (r += s, s === "(" ? n++ : s === ")" && (n--, n === -1 && Jt.throwArgumentError("unbalanced parenthesis", "value", t))); + s === "," && n === 0 ? (e.push(r), r = "") : (r += s, s === "(" ? n++ : s === ")" && (n--, n === -1 && Zt.throwArgumentError("unbalanced parenthesis", "value", t))); } return r && e.push(r), e; } - var Sx = new ot(E0); - function Uhe(t) { + var Ex = new ot(E0); + function Vhe(t) { const e = [], r = function(n, i) { if (Array.isArray(i)) for (let s in i) { @@ -66709,20 +66710,20 @@ ${gz(e, r)}`); }; return r([], t), e; } - var fc = class { + var uc = class { constructor(e, r, n, i) { this.name = e, this.type = r, this.localName = n, this.dynamic = i; } _throwError(e, r) { - Sx.throwArgumentError(e, this.localName, r); + Ex.throwArgumentError(e, this.localName, r); } }; - var O5 = class { + var I5 = class { constructor(e) { pt(this, "wordSize", e || 32), this._data = [], this._dataLength = 0, this._padding = new Uint8Array(e); } get data() { - return i8(this._data); + return n8(this._data); } get length() { return this._dataLength; @@ -66740,7 +66741,7 @@ ${gz(e, r)}`); } _getValue(e) { let r = er(zt.from(e)); - return r.length > this.wordSize && Sx.throwError("value out-of-bounds", ot.errors.BUFFER_OVERRUN, { + return r.length > this.wordSize && Ex.throwError("value out-of-bounds", ot.errors.BUFFER_OVERRUN, { length: this.wordSize, offset: r.length }), r.length % this.wordSize && (r = li([this._padding.slice(r.length % this.wordSize), r])), r; @@ -66755,7 +66756,7 @@ ${gz(e, r)}`); }; } }; - var jhe = class P5 { + var zhe = class O5 { constructor(e, r, n, i) { pt(this, "_data", er(e)), pt(this, "wordSize", r || 32), pt(this, "_coerceFunc", n), pt(this, "allowLoose", i), this._offset = 0; } @@ -66770,17 +66771,17 @@ ${gz(e, r)}`); return n && parseInt(n[1]) <= 48 && (r = r.toNumber()), r; } coerce(e, r) { - return this._coerceFunc ? this._coerceFunc(e, r) : P5.coerce(e, r); + return this._coerceFunc ? this._coerceFunc(e, r) : O5.coerce(e, r); } _peekBytes(e, r, n) { let i = Math.ceil(r / this.wordSize) * this.wordSize; - return this._offset + i > this._data.length && (this.allowLoose && n && this._offset + r <= this._data.length ? i = r : Sx.throwError("data out-of-bounds", ot.errors.BUFFER_OVERRUN, { + return this._offset + i > this._data.length && (this.allowLoose && n && this._offset + r <= this._data.length ? i = r : Ex.throwError("data out-of-bounds", ot.errors.BUFFER_OVERRUN, { length: this._data.length, offset: this._offset + i })), this._data.slice(this._offset, this._offset + i); } subReader(e) { - return new P5(this._data.slice(this._offset + e), this.wordSize, this._coerceFunc, this.allowLoose); + return new O5(this._data.slice(this._offset + e), this.wordSize, this._coerceFunc, this.allowLoose); } readBytes(e, r) { let n = this._peekBytes(0, e, !!r); @@ -66790,7 +66791,7 @@ ${gz(e, r)}`); return zt.from(this.readBytes(this.wordSize)); } }; - var Vhe = class extends fc { + var Fhe = class extends uc { constructor(e) { super("address", "address", e, false); } @@ -66806,10 +66807,10 @@ ${gz(e, r)}`); return e.writeValue(r); } decode(e) { - return $n(Qo(e.readValue().toHexString(), 20)); + return $n(Jo(e.readValue().toHexString(), 20)); } }; - var zhe = class extends fc { + var Hhe = class extends uc { constructor(e) { super(e.name, e.type, void 0, e.dynamic), this.coder = e; } @@ -66845,7 +66846,7 @@ ${gz(e, r)}`); } else lf.throwArgumentError("invalid tuple value", "tuple", r); e.length !== n.length && lf.throwArgumentError("types/value length mismatch", "tuple", r); - let i = new O5(t.wordSize), s = new O5(t.wordSize), o = []; + let i = new I5(t.wordSize), s = new I5(t.wordSize), o = []; e.forEach((c, u) => { let f = n[u]; if (c.dynamic) { @@ -66913,7 +66914,7 @@ ${gz(e, r)}`); } return Object.freeze(r); } - var Fhe = class extends fc { + var qhe = class extends uc { constructor(e, r, n) { const i = e.type + "[" + (r >= 0 ? r : "") + "]", s = r === -1 || e.dynamic; super("array", i, n, s), this.coder = e, this.length = r; @@ -66941,11 +66942,11 @@ ${gz(e, r)}`); })); let n = []; for (let i = 0; i < r; i++) - n.push(new zhe(this.coder)); + n.push(new Hhe(this.coder)); return e.coerce(this.name, DD(e, n)); } }; - var Hhe = class extends fc { + var Whe = class extends uc { constructor(e) { super("bool", "bool", e, false); } @@ -66959,7 +66960,7 @@ ${gz(e, r)}`); return e.coerce(this.type, !e.readValue().isZero()); } }; - var LD = class extends fc { + var LD = class extends uc { constructor(e, r) { super(e, e, r, true); } @@ -66975,7 +66976,7 @@ ${gz(e, r)}`); return e.readBytes(e.readValue().toNumber(), true); } }; - var qhe = class extends LD { + var Ghe = class extends LD { constructor(e) { super("bytes", e); } @@ -66983,7 +66984,7 @@ ${gz(e, r)}`); return e.coerce(this.name, It(super.decode(e))); } }; - var Whe = class extends fc { + var Khe = class extends uc { constructor(e, r) { let n = "bytes" + String(e); super(n, n, r, false), this.size = e; @@ -66999,7 +67000,7 @@ ${gz(e, r)}`); return e.coerce(this.name, It(e.readBytes(this.size))); } }; - var Ghe = class extends fc { + var Xhe = class extends uc { constructor(e) { super("null", "", e, false); } @@ -67013,7 +67014,7 @@ ${gz(e, r)}`); return e.readBytes(0), e.coerce(this.name, null); } }; - var Khe = class extends fc { + var Yhe = class extends uc { constructor(e, r, n) { const i = (r ? "int" : "uint") + e * 8; super(i, i, n, false), this.size = e, this.signed = r; @@ -67035,7 +67036,7 @@ ${gz(e, r)}`); return this.signed && (r = r.fromTwos(this.size * 8)), e.coerce(this.name, r); } }; - var Xhe = class extends LD { + var Zhe = class extends LD { constructor(e) { super("string", e); } @@ -67043,13 +67044,13 @@ ${gz(e, r)}`); return ""; } encode(e, r) { - return super.encode(e, qf(r)); + return super.encode(e, Hf(r)); } decode(e) { return Eg(super.decode(e)); } }; - var gp = class extends fc { + var yp = class extends uc { constructor(e, r) { let n = false; const i = []; @@ -67080,100 +67081,100 @@ ${gz(e, r)}`); return e.coerce(this.name, DD(e, this.coders)); } }; - var yp = new ot(E0); - var Yhe = new RegExp(/^bytes([0-9]*)$/); - var Zhe = new RegExp(/^(u?int)([0-9]*)$/); - var Jhe = class { + var bp = new ot(E0); + var Jhe = new RegExp(/^bytes([0-9]*)$/); + var Qhe = new RegExp(/^(u?int)([0-9]*)$/); + var $he = class { constructor(e) { pt(this, "coerceFunc", e || null); } _getCoder(e) { switch (e.baseType) { case "address": - return new Vhe(e.name); + return new Fhe(e.name); case "bool": - return new Hhe(e.name); + return new Whe(e.name); case "string": - return new Xhe(e.name); + return new Zhe(e.name); case "bytes": - return new qhe(e.name); + return new Ghe(e.name); case "array": - return new Fhe(this._getCoder(e.arrayChildren), e.arrayLength, e.name); + return new qhe(this._getCoder(e.arrayChildren), e.arrayLength, e.name); case "tuple": - return new gp((e.components || []).map((n) => this._getCoder(n)), e.name); + return new yp((e.components || []).map((n) => this._getCoder(n)), e.name); case "": - return new Ghe(e.name); + return new Xhe(e.name); } - let r = e.type.match(Zhe); + let r = e.type.match(Qhe); if (r) { let n = parseInt(r[2] || "256"); - return (n === 0 || n > 256 || n % 8 !== 0) && yp.throwArgumentError("invalid " + r[1] + " bit length", "param", e), new Khe(n / 8, r[1] === "int", e.name); + return (n === 0 || n > 256 || n % 8 !== 0) && bp.throwArgumentError("invalid " + r[1] + " bit length", "param", e), new Yhe(n / 8, r[1] === "int", e.name); } - if (r = e.type.match(Yhe), r) { + if (r = e.type.match(Jhe), r) { let n = parseInt(r[1]); - return (n === 0 || n > 32) && yp.throwArgumentError("invalid bytes length", "param", e), new Whe(n, e.name); + return (n === 0 || n > 32) && bp.throwArgumentError("invalid bytes length", "param", e), new Khe(n, e.name); } - return yp.throwArgumentError("invalid type", "type", e.type); + return bp.throwArgumentError("invalid type", "type", e.type); } _getWordSize() { return 32; } _getReader(e, r) { - return new jhe(e, this._getWordSize(), this.coerceFunc, r); + return new zhe(e, this._getWordSize(), this.coerceFunc, r); } _getWriter() { - return new O5(this._getWordSize()); + return new I5(this._getWordSize()); } getDefaultValue(e) { - const r = e.map((i) => this._getCoder($o.from(i))); - return new gp(r, "_").defaultValue(); + const r = e.map((i) => this._getCoder(Qo.from(i))); + return new yp(r, "_").defaultValue(); } encode(e, r) { - e.length !== r.length && yp.throwError("types/values length mismatch", ot.errors.INVALID_ARGUMENT, { + e.length !== r.length && bp.throwError("types/values length mismatch", ot.errors.INVALID_ARGUMENT, { count: { types: e.length, values: r.length }, value: { types: e, values: r } }); - const n = e.map((o) => this._getCoder($o.from(o))), i = new gp(n, "_"), s = this._getWriter(); + const n = e.map((o) => this._getCoder(Qo.from(o))), i = new yp(n, "_"), s = this._getWriter(); return i.encode(s, r), s.data; } decode(e, r, n) { - const i = e.map((o) => this._getCoder($o.from(o))); - return new gp(i, "_").decode(this._getReader(er(r), n)); + const i = e.map((o) => this._getCoder(Qo.from(o))); + return new yp(i, "_").decode(this._getReader(er(r), n)); } }; - var Qhe = new Jhe(); - function zc(t) { - return eu(qf(t)); + var ede = new $he(); + function jc(t) { + return Qc(Hf(t)); } - var Br = new ot(E0); - var $he = class extends oc { + var Lr = new ot(E0); + var tde = class extends ic { }; - var ede = class extends oc { + var rde = class extends ic { }; - var tde = class extends oc { + var nde = class extends ic { }; - var k5 = class extends oc { + var P5 = class extends ic { static isIndexed(e) { return !!(e && e._isIndexed); } }; - var rde = { + var ide = { "0x08c379a0": { signature: "Error(string)", name: "Error", inputs: ["string"], reason: true }, "0x4e487b71": { signature: "Panic(uint256)", name: "Panic", inputs: ["uint256"] } }; - function SE(t, e) { + function _E(t, e) { const r = new Error(`deferred error during ABI decoding triggered accessing ${t}`); return r.error = e, r; } - var ME = class { + var EE = class { constructor(e) { let r = []; - typeof e == "string" ? r = JSON.parse(e) : r = e, pt(this, "fragments", r.map((n) => f2.from(n)).filter((n) => n != null)), pt(this, "_abiCoder", Yo(new.target, "getAbiCoder")()), pt(this, "functions", {}), pt(this, "errors", {}), pt(this, "events", {}), pt(this, "structs", {}), this.fragments.forEach((n) => { + typeof e == "string" ? r = JSON.parse(e) : r = e, pt(this, "fragments", r.map((n) => f2.from(n)).filter((n) => n != null)), pt(this, "_abiCoder", Xo(new.target, "getAbiCoder")()), pt(this, "functions", {}), pt(this, "errors", {}), pt(this, "events", {}), pt(this, "structs", {}), this.fragments.forEach((n) => { let i = null; switch (n.type) { case "constructor": if (this.deploy) { - Br.warn("duplicate definition - constructor"); + Lr.warn("duplicate definition - constructor"); return; } pt(this, "deploy", n); @@ -67192,47 +67193,47 @@ ${gz(e, r)}`); } let s = n.format(); if (i[s]) { - Br.warn("duplicate definition - " + s); + Lr.warn("duplicate definition - " + s); return; } i[s] = n; - }), this.deploy || pt(this, "deploy", vm.from({ + }), this.deploy || pt(this, "deploy", xm.from({ payable: false, type: "constructor" })), pt(this, "_isInterface", true); } format(e) { - e || (e = ir.full), e === ir.sighash && Br.throwArgumentError("interface does not support formatting sighash", "format", e); + e || (e = ir.full), e === ir.sighash && Lr.throwArgumentError("interface does not support formatting sighash", "format", e); const r = this.fragments.map((n) => n.format(e)); return e === ir.json ? JSON.stringify(r.map((n) => JSON.parse(n))) : r; } static getAbiCoder() { - return Qhe; + return ede; } static getAddress(e) { return $n(e); } static getSighash(e) { - return u0(zc(e.format()), 0, 4); + return l0(jc(e.format()), 0, 4); } static getEventTopic(e) { - return zc(e.format()); + return jc(e.format()); } getFunction(e) { if (Rr(e)) { for (const n in this.functions) if (e === this.getSighash(n)) return this.functions[n]; - Br.throwArgumentError("no matching function", "sighash", e); + Lr.throwArgumentError("no matching function", "sighash", e); } if (e.indexOf("(") === -1) { const n = e.trim(), i = Object.keys(this.functions).filter((s) => s.split( "(" )[0] === n); - return i.length === 0 ? Br.throwArgumentError("no matching function", "name", n) : i.length > 1 && Br.throwArgumentError("multiple matching functions", "name", n), this.functions[i[0]]; + return i.length === 0 ? Lr.throwArgumentError("no matching function", "name", n) : i.length > 1 && Lr.throwArgumentError("multiple matching functions", "name", n), this.functions[i[0]]; } - const r = this.functions[xm.fromString(e).format()]; - return r || Br.throwArgumentError("no matching function", "signature", e), r; + const r = this.functions[_m.fromString(e).format()]; + return r || Lr.throwArgumentError("no matching function", "signature", e), r; } getEvent(e) { if (Rr(e)) { @@ -67240,35 +67241,35 @@ ${gz(e, r)}`); for (const i in this.events) if (n === this.getEventTopic(i)) return this.events[i]; - Br.throwArgumentError("no matching event", "topichash", n); + Lr.throwArgumentError("no matching event", "topichash", n); } if (e.indexOf("(") === -1) { const n = e.trim(), i = Object.keys(this.events).filter((s) => s.split( "(" )[0] === n); - return i.length === 0 ? Br.throwArgumentError("no matching event", "name", n) : i.length > 1 && Br.throwArgumentError("multiple matching events", "name", n), this.events[i[0]]; + return i.length === 0 ? Lr.throwArgumentError("no matching event", "name", n) : i.length > 1 && Lr.throwArgumentError("multiple matching events", "name", n), this.events[i[0]]; } - const r = this.events[I5.fromString(e).format()]; - return r || Br.throwArgumentError("no matching event", "signature", e), r; + const r = this.events[N5.fromString(e).format()]; + return r || Lr.throwArgumentError("no matching event", "signature", e), r; } getError(e) { if (Rr(e)) { - const n = Yo(this.constructor, "getSighash"); + const n = Xo(this.constructor, "getSighash"); for (const i in this.errors) { const s = this.errors[i]; if (e === n(s)) return this.errors[i]; } - Br.throwArgumentError("no matching error", "sighash", e); + Lr.throwArgumentError("no matching error", "sighash", e); } if (e.indexOf("(") === -1) { const n = e.trim(), i = Object.keys(this.errors).filter((s) => s.split( "(" )[0] === n); - return i.length === 0 ? Br.throwArgumentError("no matching error", "name", n) : i.length > 1 && Br.throwArgumentError("multiple matching errors", "name", n), this.errors[i[0]]; + return i.length === 0 ? Lr.throwArgumentError("no matching error", "name", n) : i.length > 1 && Lr.throwArgumentError("multiple matching errors", "name", n), this.errors[i[0]]; } - const r = this.errors[xm.fromString(e).format()]; - return r || Br.throwArgumentError("no matching error", "signature", e), r; + const r = this.errors[_m.fromString(e).format()]; + return r || Lr.throwArgumentError("no matching error", "signature", e), r; } getSighash(e) { if (typeof e == "string") @@ -67281,10 +67282,10 @@ ${gz(e, r)}`); throw r; } } - return Yo(this.constructor, "getSighash")(e); + return Xo(this.constructor, "getSighash")(e); } getEventTopic(e) { - return typeof e == "string" && (e = this.getEvent(e)), Yo(this.constructor, "getEventTopic")(e); + return typeof e == "string" && (e = this.getEvent(e)), Xo(this.constructor, "getEventTopic")(e); } _decodeParams(e, r) { return this._abiCoder.decode(e, r); @@ -67298,7 +67299,7 @@ ${gz(e, r)}`); decodeErrorResult(e, r) { typeof e == "string" && (e = this.getError(e)); const n = er(r); - return It(n.slice(0, 4)) !== this.getSighash(e) && Br.throwArgumentError(`data signature does not match error ${e.name}.`, "data", It(n)), this._decodeParams(e.inputs, n.slice(4)); + return It(n.slice(0, 4)) !== this.getSighash(e) && Lr.throwArgumentError(`data signature does not match error ${e.name}.`, "data", It(n)), this._decodeParams(e.inputs, n.slice(4)); } encodeErrorResult(e, r) { return typeof e == "string" && (e = this.getError(e)), It(li([ @@ -67309,7 +67310,7 @@ ${gz(e, r)}`); decodeFunctionData(e, r) { typeof e == "string" && (e = this.getFunction(e)); const n = er(r); - return It(n.slice(0, 4)) !== this.getSighash(e) && Br.throwArgumentError(`data signature does not match function ${e.name}.`, "data", It(n)), this._decodeParams(e.inputs, n.slice(4)); + return It(n.slice(0, 4)) !== this.getSighash(e) && Lr.throwArgumentError(`data signature does not match function ${e.name}.`, "data", It(n)), this._decodeParams(e.inputs, n.slice(4)); } encodeFunctionData(e, r) { return typeof e == "string" && (e = this.getFunction(e)), It(li([ @@ -67328,7 +67329,7 @@ ${gz(e, r)}`); } break; case 4: { - const u = It(n.slice(0, 4)), f = rde[u]; + const u = It(n.slice(0, 4)), f = ide[u]; if (f) o = this._abiCoder.decode(f.inputs, n.slice(4)), a = f.name, c = f.signature, f.reason && (i = o[0]), a === "Error" ? s = `; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}` : a === "Panic" && (s = `; VM Exception while processing transaction: reverted with panic code ${o[0]}`); else @@ -67340,7 +67341,7 @@ ${gz(e, r)}`); break; } } - return Br.throwError("call revert exception" + s, ot.errors.CALL_EXCEPTION, { + return Lr.throwError("call revert exception" + s, ot.errors.CALL_EXCEPTION, { method: e.format(), data: It(r), errorArgs: o, @@ -67353,20 +67354,20 @@ ${gz(e, r)}`); return typeof e == "string" && (e = this.getFunction(e)), It(this._abiCoder.encode(e.outputs, r || [])); } encodeFilterTopics(e, r) { - typeof e == "string" && (e = this.getEvent(e)), r.length > e.inputs.length && Br.throwError("too many arguments for " + e.format(), ot.errors.UNEXPECTED_ARGUMENT, { + typeof e == "string" && (e = this.getEvent(e)), r.length > e.inputs.length && Lr.throwError("too many arguments for " + e.format(), ot.errors.UNEXPECTED_ARGUMENT, { argument: "values", value: r }); let n = []; e.anonymous || n.push(this.getEventTopic(e)); - const i = (s, o) => s.type === "string" ? zc(o) : s.type === "bytes" ? eu(It(o)) : (s.type === "bool" && typeof o == "boolean" && (o = o ? "0x01" : "0x00"), s.type.match(/^u?int/) && (o = zt.from(o).toHexString()), s.type === "address" && this._abiCoder.encode(["address"], [o]), Qo(It(o), 32)); + const i = (s, o) => s.type === "string" ? jc(o) : s.type === "bytes" ? Qc(It(o)) : (s.type === "bool" && typeof o == "boolean" && (o = o ? "0x01" : "0x00"), s.type.match(/^u?int/) && (o = zt.from(o).toHexString()), s.type === "address" && this._abiCoder.encode(["address"], [o]), Jo(It(o), 32)); for (r.forEach((s, o) => { let a = e.inputs[o]; if (!a.indexed) { - s != null && Br.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + a.name, s); + s != null && Lr.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + a.name, s); return; } - s == null ? n.push(null) : a.baseType === "array" || a.baseType === "tuple" ? Br.throwArgumentError("filtering with tuples or arrays not supported", "contract." + a.name, s) : Array.isArray(s) ? n.push(s.map((c) => i(a, c))) : n.push(i(a, s)); + s == null ? n.push(null) : a.baseType === "array" || a.baseType === "tuple" ? Lr.throwArgumentError("filtering with tuples or arrays not supported", "contract." + a.name, s) : Array.isArray(s) ? n.push(s.map((c) => i(a, c))) : n.push(i(a, s)); }); n.length && n[n.length - 1] === null; ) n.pop(); return n; @@ -67374,13 +67375,13 @@ ${gz(e, r)}`); encodeEventLog(e, r) { typeof e == "string" && (e = this.getEvent(e)); const n = [], i = [], s = []; - return e.anonymous || n.push(this.getEventTopic(e)), r.length !== e.inputs.length && Br.throwArgumentError("event arguments/values mismatch", "values", r), e.inputs.forEach((o, a) => { + return e.anonymous || n.push(this.getEventTopic(e)), r.length !== e.inputs.length && Lr.throwArgumentError("event arguments/values mismatch", "values", r), e.inputs.forEach((o, a) => { const c = r[a]; if (o.indexed) if (o.type === "string") - n.push(zc(c)); + n.push(jc(c)); else if (o.type === "bytes") - n.push(eu(c)); + n.push(Qc(c)); else { if (o.baseType === "tuple" || o.baseType === "array") throw new Error("not implemented"); @@ -67396,19 +67397,19 @@ ${gz(e, r)}`); decodeEventLog(e, r, n) { if (typeof e == "string" && (e = this.getEvent(e)), n != null && !e.anonymous) { let b = this.getEventTopic(e); - (!Rr(n[0], 32) || n[0].toLowerCase() !== b) && Br.throwError("fragment/topic mismatch", ot.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: b, value: n[0] }), n = n.slice(1); + (!Rr(n[0], 32) || n[0].toLowerCase() !== b) && Lr.throwError("fragment/topic mismatch", ot.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: b, value: n[0] }), n = n.slice(1); } let i = [], s = [], o = []; e.inputs.forEach((b, E) => { - b.indexed ? b.type === "string" || b.type === "bytes" || b.baseType === "tuple" || b.baseType === "array" ? (i.push($o.fromObject({ type: "bytes32", name: b.name })), o.push(true)) : (i.push(b), o.push(false)) : (s.push(b), o.push(false)); + b.indexed ? b.type === "string" || b.type === "bytes" || b.baseType === "tuple" || b.baseType === "array" ? (i.push(Qo.fromObject({ type: "bytes32", name: b.name })), o.push(true)) : (i.push(b), o.push(false)) : (s.push(b), o.push(false)); }); let a = n != null ? this._abiCoder.decode(i, li(n)) : null, c = this._abiCoder.decode(s, r, true), u = [], f = 0, p = 0; e.inputs.forEach((b, E) => { if (b.indexed) if (a == null) - u[E] = new k5({ _isIndexed: true, hash: null }); + u[E] = new P5({ _isIndexed: true, hash: null }); else if (o[E]) - u[E] = new k5({ _isIndexed: true, hash: a[p++] }); + u[E] = new P5({ _isIndexed: true, hash: a[p++] }); else try { u[E] = a[p++]; @@ -67426,7 +67427,7 @@ ${gz(e, r)}`); _ instanceof Error ? Object.defineProperty(u, b.name, { enumerable: true, get: () => { - throw SE(`property ${JSON.stringify(b.name)}`, _); + throw _E(`property ${JSON.stringify(b.name)}`, _); } }) : u[b.name] = _; } @@ -67436,7 +67437,7 @@ ${gz(e, r)}`); E instanceof Error && Object.defineProperty(u, b, { enumerable: true, get: () => { - throw SE(`index ${b}`, E); + throw _E(`index ${b}`, E); } }); } @@ -67444,7 +67445,7 @@ ${gz(e, r)}`); } parseTransaction(e) { let r = this.getFunction(e.data.substring(0, 10).toLowerCase()); - return r ? new ede({ + return r ? new rde({ args: this._abiCoder.decode(r.inputs, "0x" + e.data.substring(10)), functionFragment: r, name: r.name, @@ -67455,7 +67456,7 @@ ${gz(e, r)}`); } parseLog(e) { let r = this.getEvent(e.topics[0]); - return !r || r.anonymous ? null : new $he({ + return !r || r.anonymous ? null : new tde({ eventFragment: r, name: r.name, signature: r.format(), @@ -67466,7 +67467,7 @@ ${gz(e, r)}`); parseError(e) { const r = It(e); let n = this.getError(r.substring(0, 10).toLowerCase()); - return n ? new tde({ + return n ? new nde({ args: this._abiCoder.decode(n.inputs, "0x" + r.substring(10)), errorFragment: n, name: n.name, @@ -67478,8 +67479,8 @@ ${gz(e, r)}`); return !!(e && e._isInterface); } }; - var nde = "abstract-provider/5.7.0"; - var ide = globalThis && globalThis.__awaiter || function(t, e, r, n) { + var sde = "abstract-provider/5.7.0"; + var ode = globalThis && globalThis.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -67506,14 +67507,14 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var sde = new ot(nde); - var Mx = class { + var ade = new ot(sde); + var Sx = class { constructor() { - sde.checkAbstract(new.target, Mx), pt(this, "_isProvider", true); + ade.checkAbstract(new.target, Sx), pt(this, "_isProvider", true); } getFeeData() { - return ide(this, void 0, void 0, function* () { - const { block: e, gasPrice: r } = yield Fa({ + return ode(this, void 0, void 0, function* () { + const { block: e, gasPrice: r } = yield Va({ block: this.getBlock("latest"), gasPrice: this.getGasPrice().catch((o) => null) }); @@ -67531,28 +67532,28 @@ ${gz(e, r)}`); return !!(e && e._isProvider); } }; - var ode = "transactions/5.7.0"; - var BD = new ot(ode); - var AE; + var cde = "transactions/5.7.0"; + var BD = new ot(cde); + var SE; (function(t) { t[t.legacy = 0] = "legacy", t[t.eip2930 = 1] = "eip2930", t[t.eip1559 = 2] = "eip1559"; - })(AE || (AE = {})); - function bb(t, e) { + })(SE || (SE = {})); + function yb(t, e) { return { address: $n(t), - storageKeys: (e || []).map((r, n) => (B1(r) !== 32 && BD.throwArgumentError("invalid access list storageKey", `accessList[${t}:${n}]`, r), r.toLowerCase())) + storageKeys: (e || []).map((r, n) => (U1(r) !== 32 && BD.throwArgumentError("invalid access list storageKey", `accessList[${t}:${n}]`, r), r.toLowerCase())) }; } - function ade(t) { + function ude(t) { if (Array.isArray(t)) - return t.map((r, n) => Array.isArray(r) ? (r.length > 2 && BD.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${n}]`, r), bb(r[0], r[1])) : bb(r.address, r.storageKeys)); + return t.map((r, n) => Array.isArray(r) ? (r.length > 2 && BD.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${n}]`, r), yb(r[0], r[1])) : yb(r.address, r.storageKeys)); const e = Object.keys(t).map((r) => { const n = t[r].reduce((i, s) => (i[s] = true, i), {}); - return bb(r, Object.keys(n).sort()); + return yb(r, Object.keys(n).sort()); }); return e.sort((r, n) => r.address.localeCompare(n.address)), e; } - var cde = "contracts/5.5.0"; + var lde = "contracts/5.5.0"; var ol = globalThis && globalThis.__awaiter || function(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { @@ -67580,25 +67581,25 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); }; - var Zr = new ot(cde); - function _m(t, e) { + var Yr = new ot(lde); + function Em(t, e) { return ol(this, void 0, void 0, function* () { const r = yield e; - typeof r != "string" && Zr.throwArgumentError("invalid address or ENS name", "name", r); + typeof r != "string" && Yr.throwArgumentError("invalid address or ENS name", "name", r); try { return $n(r); } catch { } - t || Zr.throwError("a provider or signer is needed to resolve ENS names", ot.errors.UNSUPPORTED_OPERATION, { + t || Yr.throwError("a provider or signer is needed to resolve ENS names", ot.errors.UNSUPPORTED_OPERATION, { operation: "resolveName" }); const n = yield t.resolveName(r); - return n == null && Zr.throwArgumentError("resolver or addr is not configured for ENS name", "name", r), n; + return n == null && Yr.throwArgumentError("resolver or addr is not configured for ENS name", "name", r), n; }); } - function r1(t, e, r) { + function n1(t, e, r) { return ol(this, void 0, void 0, function* () { - return Array.isArray(r) ? yield Promise.all(r.map((n, i) => r1(t, Array.isArray(e) ? e[i] : e[n.name], n))) : r.type === "address" ? yield _m(t, e) : r.type === "tuple" ? yield r1(t, e, r.components) : r.baseType === "array" ? Array.isArray(e) ? yield Promise.all(e.map((n) => r1(t, n, r.arrayChildren))) : Promise.reject(Zr.makeError("invalid value for array", ot.errors.INVALID_ARGUMENT, { + return Array.isArray(r) ? yield Promise.all(r.map((n, i) => n1(t, Array.isArray(e) ? e[i] : e[n.name], n))) : r.type === "address" ? yield Em(t, e) : r.type === "tuple" ? yield n1(t, e, r.components) : r.baseType === "array" ? Array.isArray(e) ? yield Promise.all(e.map((n) => n1(t, n, r.arrayChildren))) : Promise.reject(Yr.makeError("invalid value for array", ot.errors.INVALID_ARGUMENT, { argument: "value", value: e })) : e; @@ -67607,23 +67608,23 @@ ${gz(e, r)}`); function h2(t, e, r) { return ol(this, void 0, void 0, function* () { let n = {}; - r.length === e.inputs.length + 1 && typeof r[r.length - 1] == "object" && (n = tl(r.pop())), Zr.checkArgumentCount(r.length, e.inputs.length, "passed to contract"), t.signer ? n.from ? n.from = Fa({ - override: _m(t.signer, n.from), + r.length === e.inputs.length + 1 && typeof r[r.length - 1] == "object" && (n = tl(r.pop())), Yr.checkArgumentCount(r.length, e.inputs.length, "passed to contract"), t.signer ? n.from ? n.from = Va({ + override: Em(t.signer, n.from), signer: t.signer.getAddress() }).then((u) => ol(this, void 0, void 0, function* () { - return $n(u.signer) !== u.override && Zr.throwError("Contract with a Signer cannot override from", ot.errors.UNSUPPORTED_OPERATION, { + return $n(u.signer) !== u.override && Yr.throwError("Contract with a Signer cannot override from", ot.errors.UNSUPPORTED_OPERATION, { operation: "overrides.from" }), u.override; - })) : n.from = t.signer.getAddress() : n.from && (n.from = _m(t.provider, n.from)); - const i = yield Fa({ - args: r1(t.signer || t.provider, r, e.inputs), + })) : n.from = t.signer.getAddress() : n.from && (n.from = Em(t.provider, n.from)); + const i = yield Va({ + args: n1(t.signer || t.provider, r, e.inputs), address: t.resolvedAddress, - overrides: Fa(n) || {} + overrides: Va(n) || {} }), s = t.interface.encodeFunctionData(e, i.args), o = { data: s, to: i.address }, a = i.overrides; - if (a.nonce != null && (o.nonce = zt.from(a.nonce).toNumber()), a.gasLimit != null && (o.gasLimit = zt.from(a.gasLimit)), a.gasPrice != null && (o.gasPrice = zt.from(a.gasPrice)), a.maxFeePerGas != null && (o.maxFeePerGas = zt.from(a.maxFeePerGas)), a.maxPriorityFeePerGas != null && (o.maxPriorityFeePerGas = zt.from(a.maxPriorityFeePerGas)), a.from != null && (o.from = a.from), a.type != null && (o.type = a.type), a.accessList != null && (o.accessList = ade(a.accessList)), o.gasLimit == null && e.gas != null) { + if (a.nonce != null && (o.nonce = zt.from(a.nonce).toNumber()), a.gasLimit != null && (o.gasLimit = zt.from(a.gasLimit)), a.gasPrice != null && (o.gasPrice = zt.from(a.gasPrice)), a.maxFeePerGas != null && (o.maxFeePerGas = zt.from(a.maxFeePerGas)), a.maxPriorityFeePerGas != null && (o.maxPriorityFeePerGas = zt.from(a.maxPriorityFeePerGas)), a.from != null && (o.from = a.from), a.type != null && (o.type = a.type), a.accessList != null && (o.accessList = ude(a.accessList)), o.gasLimit == null && e.gas != null) { let u = 21e3; const f = er(s); for (let p = 0; p < f.length; p++) @@ -67632,29 +67633,29 @@ ${gz(e, r)}`); } if (a.value) { const u = zt.from(a.value); - !u.isZero() && !e.payable && Zr.throwError("non-payable method cannot override value", ot.errors.UNSUPPORTED_OPERATION, { + !u.isZero() && !e.payable && Yr.throwError("non-payable method cannot override value", ot.errors.UNSUPPORTED_OPERATION, { operation: "overrides.value", value: n.value }), o.value = u; } a.customData && (o.customData = tl(a.customData)), delete n.nonce, delete n.gasLimit, delete n.gasPrice, delete n.from, delete n.value, delete n.type, delete n.accessList, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas, delete n.customData; const c = Object.keys(n).filter((u) => n[u] != null); - return c.length && Zr.throwError(`cannot override ${c.map((u) => JSON.stringify(u)).join(",")}`, ot.errors.UNSUPPORTED_OPERATION, { + return c.length && Yr.throwError(`cannot override ${c.map((u) => JSON.stringify(u)).join(",")}`, ot.errors.UNSUPPORTED_OPERATION, { operation: "overrides", overrides: c }), o; }); } - function ude(t, e) { + function fde(t, e) { return function(...r) { return h2(t, e, r); }; } - function lde(t, e) { + function hde(t, e) { const r = t.signer || t.provider; return function(...n) { return ol(this, void 0, void 0, function* () { - r || Zr.throwError("estimate require a provider or signer", ot.errors.UNSUPPORTED_OPERATION, { + r || Yr.throwError("estimate require a provider or signer", ot.errors.UNSUPPORTED_OPERATION, { operation: "estimateGas" }); const i = yield h2(t, e, n); @@ -67662,7 +67663,7 @@ ${gz(e, r)}`); }); }; } - function fde(t, e) { + function dde(t, e) { const r = e.wait.bind(e); e.wait = (n) => r(n).then((i) => (i.events = i.logs.map((s) => { let o = kf(s), a = null; @@ -67693,24 +67694,24 @@ ${gz(e, r)}`); }); }; } - function hde(t, e) { + function pde(t, e) { return function(...r) { return ol(this, void 0, void 0, function* () { - t.signer || Zr.throwError("sending a transaction requires a signer", ot.errors.UNSUPPORTED_OPERATION, { + t.signer || Yr.throwError("sending a transaction requires a signer", ot.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction" }), t.deployTransaction != null && (yield t._deployed()); const n = yield h2(t, e, r), i = yield t.signer.sendTransaction(n); - return fde(t, i), i; + return dde(t, i), i; }); }; } - function TE(t, e, r) { - return e.constant ? UD(t, e, r) : hde(t, e); + function ME(t, e, r) { + return e.constant ? UD(t, e, r) : pde(t, e); } function jD(t) { return t.address && (t.topics == null || t.topics.length === 0) ? "*" : (t.address || "*") + "@" + (t.topics ? t.topics.map((e) => Array.isArray(e) ? e.join("|") : e).join(":") : ""); } - var Od = class { + var Id = class { constructor(e, r) { pt(this, "tag", e), pt(this, "filter", r), this._listeners = []; } @@ -67745,18 +67746,18 @@ ${gz(e, r)}`); return [e]; } }; - var dde = class extends Od { + var mde = class extends Id { constructor() { super("error", null); } }; - var NE = class extends Od { + var AE = class extends Id { constructor(e, r, n, i) { const s = { address: e }; let o = r.getEventTopic(n); - i ? (o !== i[0] && Zr.throwArgumentError("topic mismatch", "topics", i), s.topics = i.slice()) : s.topics = [o], super(jD(s), s), pt(this, "address", e), pt(this, "interface", r), pt(this, "fragment", n); + i ? (o !== i[0] && Yr.throwArgumentError("topic mismatch", "topics", i), s.topics = i.slice()) : s.topics = [o], super(jD(s), s), pt(this, "address", e), pt(this, "interface", r), pt(this, "fragment", n); } prepareEvent(e) { super.prepareEvent(e), e.event = this.fragment.name, e.eventSignature = this.fragment.format(), e.decode = (r, n) => this.interface.decodeEventLog(this.fragment, r, n); @@ -67767,14 +67768,14 @@ ${gz(e, r)}`); } } getEmit(e) { - const r = Uhe(e.args); + const r = Vhe(e.args); if (r.length) throw r[0].error; const n = (e.args || []).slice(); return n.push(e), n; } }; - var IE = class extends Od { + var TE = class extends Id { constructor(e, r) { super("*", { address: e }), pt(this, "address", e), pt(this, "interface", r); } @@ -67787,9 +67788,9 @@ ${gz(e, r)}`); } } }; - var pde = class { + var gde = class { constructor(e, r, n) { - Zr.checkNew(new.target, d2), pt(this, "interface", Yo(new.target, "getInterface")(r)), n == null ? (pt(this, "provider", null), pt(this, "signer", null)) : r8.isSigner(n) ? (pt(this, "provider", n.provider || null), pt(this, "signer", n)) : Mx.isProvider(n) ? (pt(this, "provider", n), pt(this, "signer", null)) : Zr.throwArgumentError("invalid signer or provider", "signerOrProvider", n), pt(this, "callStatic", {}), pt(this, "estimateGas", {}), pt(this, "functions", {}), pt(this, "populateTransaction", {}), pt(this, "filters", {}); + Yr.checkNew(new.target, d2), pt(this, "interface", Xo(new.target, "getInterface")(r)), n == null ? (pt(this, "provider", null), pt(this, "signer", null)) : t8.isSigner(n) ? (pt(this, "provider", n.provider || null), pt(this, "signer", n)) : Sx.isProvider(n) ? (pt(this, "provider", n), pt(this, "signer", null)) : Yr.throwArgumentError("invalid signer or provider", "signerOrProvider", n), pt(this, "callStatic", {}), pt(this, "estimateGas", {}), pt(this, "functions", {}), pt(this, "populateTransaction", {}), pt(this, "filters", {}); { const o = {}; Object.keys(this.interface.events).forEach((a) => { @@ -67800,16 +67801,16 @@ ${gz(e, r)}`); })), o[c.name] || (o[c.name] = []), o[c.name].push(a); }), Object.keys(o).forEach((a) => { const c = o[a]; - c.length === 1 ? pt(this.filters, a, this.filters[c[0]]) : Zr.warn(`Duplicate definition of ${a} (${c.join(", ")})`); + c.length === 1 ? pt(this.filters, a, this.filters[c[0]]) : Yr.warn(`Duplicate definition of ${a} (${c.join(", ")})`); }); } - if (pt(this, "_runningEvents", {}), pt(this, "_wrappedEmits", {}), e == null && Zr.throwArgumentError("invalid contract address or ENS name", "addressOrName", e), pt(this, "address", e), this.provider) - pt(this, "resolvedAddress", _m(this.provider, e)); + if (pt(this, "_runningEvents", {}), pt(this, "_wrappedEmits", {}), e == null && Yr.throwArgumentError("invalid contract address or ENS name", "addressOrName", e), pt(this, "address", e), this.provider) + pt(this, "resolvedAddress", Em(this.provider, e)); else try { pt(this, "resolvedAddress", Promise.resolve($n(e))); } catch { - Zr.throwError("provider is required to use ENS name as contract address", ot.errors.UNSUPPORTED_OPERATION, { + Yr.throwError("provider is required to use ENS name as contract address", ot.errors.UNSUPPORTED_OPERATION, { operation: "new Contract" }); } @@ -67817,7 +67818,7 @@ ${gz(e, r)}`); Object.keys(this.interface.functions).forEach((o) => { const a = this.interface.functions[o]; if (s[o]) { - Zr.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`); + Yr.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`); return; } s[o] = true; @@ -67825,7 +67826,7 @@ ${gz(e, r)}`); const c = a.name; i[`%${c}`] || (i[`%${c}`] = []), i[`%${c}`].push(o); } - this[o] == null && pt(this, o, TE(this, a, true)), this.functions[o] == null && pt(this.functions, o, TE(this, a, false)), this.callStatic[o] == null && pt(this.callStatic, o, UD(this, a, true)), this.populateTransaction[o] == null && pt(this.populateTransaction, o, ude(this, a)), this.estimateGas[o] == null && pt(this.estimateGas, o, lde(this, a)); + this[o] == null && pt(this, o, ME(this, a, true)), this.functions[o] == null && pt(this.functions, o, ME(this, a, false)), this.callStatic[o] == null && pt(this.callStatic, o, UD(this, a, true)), this.populateTransaction[o] == null && pt(this.populateTransaction, o, fde(this, a)), this.estimateGas[o] == null && pt(this.estimateGas, o, hde(this, a)); }), Object.keys(i).forEach((o) => { const a = i[o]; if (a.length > 1) @@ -67843,22 +67844,22 @@ ${gz(e, r)}`); return lP(e); } static getInterface(e) { - return ME.isInterface(e) ? e : new ME(e); + return EE.isInterface(e) ? e : new EE(e); } deployed() { return this._deployed(); } _deployed(e) { - return this._deployedPromise || (this.deployTransaction ? this._deployedPromise = this.deployTransaction.wait().then(() => this) : this._deployedPromise = this.provider.getCode(this.address, e).then((r) => (r === "0x" && Zr.throwError("contract not deployed", ot.errors.UNSUPPORTED_OPERATION, { + return this._deployedPromise || (this.deployTransaction ? this._deployedPromise = this.deployTransaction.wait().then(() => this) : this._deployedPromise = this.provider.getCode(this.address, e).then((r) => (r === "0x" && Yr.throwError("contract not deployed", ot.errors.UNSUPPORTED_OPERATION, { contractAddress: this.address, operation: "getDeployed" }), this))), this._deployedPromise; } fallback(e) { - this.signer || Zr.throwError("sending a transactions require a signer", ot.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); + this.signer || Yr.throwError("sending a transactions require a signer", ot.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); const r = tl(e || {}); return ["from", "to"].forEach(function(n) { - r[n] != null && Zr.throwError("cannot override " + n, ot.errors.UNSUPPORTED_OPERATION, { operation: n }); + r[n] != null && Yr.throwError("cannot override " + n, ot.errors.UNSUPPORTED_OPERATION, { operation: n }); }), r.to = this.resolvedAddress, this.deployed().then(() => this.signer.sendTransaction(r)); } connect(e) { @@ -67870,7 +67871,7 @@ ${gz(e, r)}`); return new this.constructor(e, this.interface, this.signer || this.provider); } static isIndexed(e) { - return k5.isIndexed(e); + return P5.isIndexed(e); } _normalizeRunningEvent(e) { return this._runningEvents[e.tag] ? this._runningEvents[e.tag] : e; @@ -67878,13 +67879,13 @@ ${gz(e, r)}`); _getRunningEvent(e) { if (typeof e == "string") { if (e === "error") - return this._normalizeRunningEvent(new dde()); + return this._normalizeRunningEvent(new mde()); if (e === "event") - return this._normalizeRunningEvent(new Od("event", null)); + return this._normalizeRunningEvent(new Id("event", null)); if (e === "*") - return this._normalizeRunningEvent(new IE(this.address, this.interface)); + return this._normalizeRunningEvent(new TE(this.address, this.interface)); const r = this.interface.getEvent(e); - return this._normalizeRunningEvent(new NE(this.address, this.interface, r)); + return this._normalizeRunningEvent(new AE(this.address, this.interface, r)); } if (e.topics && e.topics.length > 0) { try { @@ -67892,16 +67893,16 @@ ${gz(e, r)}`); if (typeof n != "string") throw new Error("invalid topic"); const i = this.interface.getEvent(n); - return this._normalizeRunningEvent(new NE(this.address, this.interface, i, e.topics)); + return this._normalizeRunningEvent(new AE(this.address, this.interface, i, e.topics)); } catch { } const r = { address: this.address, topics: e.topics }; - return this._normalizeRunningEvent(new Od(jD(r), r)); + return this._normalizeRunningEvent(new Id(jD(r), r)); } - return this._normalizeRunningEvent(new IE(this.address, this.interface)); + return this._normalizeRunningEvent(new TE(this.address, this.interface)); } _checkRunningEvents(e) { if (e.listenerCount() === 0) { @@ -67917,7 +67918,7 @@ ${gz(e, r)}`); }, i.getBlock = () => this.provider.getBlock(r.blockHash), i.getTransaction = () => this.provider.getTransaction(r.transactionHash), i.getTransactionReceipt = () => this.provider.getTransactionReceipt(r.transactionHash), e.prepareEvent(i), i; } _addEventListener(e, r, n) { - if (this.provider || Zr.throwError("events require a provider or a signer with a provider", ot.errors.UNSUPPORTED_OPERATION, { operation: "once" }), e.addListener(r, n), this._runningEvents[e.tag] = e, !this._wrappedEmits[e.tag]) { + if (this.provider || Yr.throwError("events require a provider or a signer with a provider", ot.errors.UNSUPPORTED_OPERATION, { operation: "once" }), e.addListener(r, n), this._runningEvents[e.tag] = e, !this._wrappedEmits[e.tag]) { const i = (s) => { let o = this._wrapEvent(e, s, r); if (o.decodeError == null) @@ -67934,7 +67935,7 @@ ${gz(e, r)}`); } queryFilter(e, r, n) { const i = this._getRunningEvent(e), s = tl(i.filter); - return typeof r == "string" && Rr(r, 32) ? (n != null && Zr.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", n), s.blockHash = r) : (s.fromBlock = r ?? 0, s.toBlock = n ?? "latest"), this.provider.getLogs(s).then((o) => o.map((a) => this._wrapEvent(i, a, null))); + return typeof r == "string" && Rr(r, 32) ? (n != null && Yr.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", n), s.blockHash = r) : (s.fromBlock = r ?? 0, s.toBlock = n ?? "latest"), this.provider.getLogs(s).then((o) => o.map((a) => this._wrapEvent(i, a, null))); } on(e, r) { return this._addEventListener(this._getRunningEvent(e), r, false), this; @@ -67987,15 +67988,15 @@ ${gz(e, r)}`); return this.off(e, r); } }; - var d2 = class extends pde { + var d2 = class extends gde { }; - var mde = "logger/5.7.0"; - var OE = false; - var PE = false; - var n1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; - var kE = n1.default; - var wb = null; - function gde() { + var yde = "logger/5.7.0"; + var NE = false; + var IE = false; + var i1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; + var OE = i1.default; + var bb = null; + function bde() { try { const t = []; if (["NFD", "NFC", "NFKD", "NFKC"].forEach((e) => { @@ -68014,17 +68015,17 @@ ${gz(e, r)}`); } return null; } - var RE = gde(); - var R5; + var PE = bde(); + var k5; (function(t) { t.DEBUG = "DEBUG", t.INFO = "INFO", t.WARNING = "WARNING", t.ERROR = "ERROR", t.OFF = "OFF"; - })(R5 || (R5 = {})); - var to; + })(k5 || (k5 = {})); + var eo; (function(t) { t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", t.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", t.NETWORK_ERROR = "NETWORK_ERROR", t.SERVER_ERROR = "SERVER_ERROR", t.TIMEOUT = "TIMEOUT", t.BUFFER_OVERRUN = "BUFFER_OVERRUN", t.NUMERIC_FAULT = "NUMERIC_FAULT", t.MISSING_NEW = "MISSING_NEW", t.INVALID_ARGUMENT = "INVALID_ARGUMENT", t.MISSING_ARGUMENT = "MISSING_ARGUMENT", t.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", t.CALL_EXCEPTION = "CALL_EXCEPTION", t.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", t.NONCE_EXPIRED = "NONCE_EXPIRED", t.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", t.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", t.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", t.ACTION_REJECTED = "ACTION_REJECTED"; - })(to || (to = {})); - var CE = "0123456789abcdef"; - var Ga = class gn { + })(eo || (eo = {})); + var kE = "0123456789abcdef"; + var qa = class gn { constructor(e) { Object.defineProperty(this, "version", { enumerable: true, @@ -68034,7 +68035,7 @@ ${gz(e, r)}`); } _log(e, r) { const n = e.toLowerCase(); - n1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(kE > n1[n]) && console.log.apply(console, r); + i1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(OE > i1[n]) && console.log.apply(console, r); } debug(...e) { this._log(gn.levels.DEBUG, e); @@ -68046,7 +68047,7 @@ ${gz(e, r)}`); this._log(gn.levels.WARNING, e); } makeError(e, r, n) { - if (PE) + if (IE) return this.makeError("censored error", r, {}); r || (r = gn.errors.UNKNOWN_ERROR), n || (n = {}); const i = []; @@ -68056,7 +68057,7 @@ ${gz(e, r)}`); if (u instanceof Uint8Array) { let f = ""; for (let p = 0; p < u.length; p++) - f += CE[u[p] >> 4], f += CE[u[p] & 15]; + f += kE[u[p] >> 4], f += kE[u[p] & 15]; i.push(c + "=Uint8Array(0x" + f + ")"); } else i.push(c + "=" + JSON.stringify(u)); @@ -68067,7 +68068,7 @@ ${gz(e, r)}`); const s = e; let o = ""; switch (r) { - case to.NUMERIC_FAULT: { + case eo.NUMERIC_FAULT: { o = "NUMERIC_FAULT"; const c = e; switch (c) { @@ -68086,13 +68087,13 @@ ${gz(e, r)}`); } break; } - case to.CALL_EXCEPTION: - case to.INSUFFICIENT_FUNDS: - case to.MISSING_NEW: - case to.NONCE_EXPIRED: - case to.REPLACEMENT_UNDERPRICED: - case to.TRANSACTION_REPLACED: - case to.UNPREDICTABLE_GAS_LIMIT: + case eo.CALL_EXCEPTION: + case eo.INSUFFICIENT_FUNDS: + case eo.MISSING_NEW: + case eo.NONCE_EXPIRED: + case eo.REPLACEMENT_UNDERPRICED: + case eo.TRANSACTION_REPLACED: + case eo.UNPREDICTABLE_GAS_LIMIT: o = r; break; } @@ -68118,9 +68119,9 @@ ${gz(e, r)}`); e || this.throwArgumentError(r, n, i); } checkNormalize(e) { - RE && this.throwError("platform missing String.prototype.normalize", gn.errors.UNSUPPORTED_OPERATION, { + PE && this.throwError("platform missing String.prototype.normalize", gn.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", - form: RE + form: PE }); } checkSafeUint53(e, r) { @@ -68150,40 +68151,40 @@ ${gz(e, r)}`); e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", gn.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", gn.errors.MISSING_NEW, { name: r.name }); } static globalLogger() { - return wb || (wb = new gn(mde)), wb; + return bb || (bb = new gn(yde)), bb; } static setCensorship(e, r) { if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", gn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" - }), OE) { + }), NE) { if (!e) return; this.globalLogger().throwError("error censorship permanent", gn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } - PE = !!e, OE = !!r; + IE = !!e, NE = !!r; } static setLogLevel(e) { - const r = n1[e.toLowerCase()]; + const r = i1[e.toLowerCase()]; if (r == null) { gn.globalLogger().warn("invalid log level - " + e); return; } - kE = r; + OE = r; } static from(e) { return new gn(e); } }; - Ga.errors = to; - Ga.levels = R5; - var yde = "bytes/5.7.0"; - var vb = new Ga(yde); - function bde(t) { + qa.errors = eo; + qa.levels = k5; + var wde = "bytes/5.7.0"; + var wb = new qa(wde); + function vde(t) { return !!t.toHexString; } - function DE(t) { + function RE(t) { return typeof t == "number" && t == t && t % 1 === 0; } function VD(t) { @@ -68191,104 +68192,104 @@ ${gz(e, r)}`); return false; if (t.constructor === Uint8Array) return true; - if (typeof t == "string" || !DE(t.length) || t.length < 0) + if (typeof t == "string" || !RE(t.length) || t.length < 0) return false; for (let e = 0; e < t.length; e++) { const r = t[e]; - if (!DE(r) || r < 0 || r >= 256) + if (!RE(r) || r < 0 || r >= 256) return false; } return true; } - function C5(t, e) { + function R5(t, e) { return !(typeof t != "string" || !t.match(/^0x[0-9A-Fa-f]*$/) || e && t.length !== 2 + 2 * e); } - var xb = "0123456789abcdef"; - function wde(t, e) { + var vb = "0123456789abcdef"; + function xde(t, e) { if (e || (e = {}), typeof t == "number") { - vb.checkSafeUint53(t, "invalid hexlify value"); + wb.checkSafeUint53(t, "invalid hexlify value"); let r = ""; for (; t; ) - r = xb[t & 15] + r, t = Math.floor(t / 16); + r = vb[t & 15] + r, t = Math.floor(t / 16); return r.length ? (r.length % 2 && (r = "0" + r), "0x" + r) : "0x00"; } if (typeof t == "bigint") return t = t.toString(16), t.length % 2 ? "0x0" + t : "0x" + t; - if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), bde(t)) + if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), vde(t)) return t.toHexString(); - if (C5(t)) - return t.length % 2 && (e.hexPad === "left" ? t = "0x0" + t.substring(2) : e.hexPad === "right" ? t += "0" : vb.throwArgumentError("hex data is odd-length", "value", t)), t.toLowerCase(); + if (R5(t)) + return t.length % 2 && (e.hexPad === "left" ? t = "0x0" + t.substring(2) : e.hexPad === "right" ? t += "0" : wb.throwArgumentError("hex data is odd-length", "value", t)), t.toLowerCase(); if (VD(t)) { let r = "0x"; for (let n = 0; n < t.length; n++) { let i = t[n]; - r += xb[(i & 240) >> 4] + xb[i & 15]; + r += vb[(i & 240) >> 4] + vb[i & 15]; } return r; } - return vb.throwArgumentError("invalid hexlify value", "value", t); + return wb.throwArgumentError("invalid hexlify value", "value", t); } - var vde = "bignumber/5.5.0"; - var D5 = lY.BN; - var Co = new Ga(vde); - var _b = {}; - var LE = 9007199254740991; - var BE = false; - var Ai = class Ms { + var _de = "bignumber/5.5.0"; + var C5 = hY.BN; + var Ro = new qa(_de); + var xb = {}; + var CE = 9007199254740991; + var DE = false; + var Jn = class Ms { constructor(e, r) { - Co.checkNew(new.target, Ms), e !== _b && Co.throwError("cannot call constructor directly; use BigNumber.from", Ga.errors.UNSUPPORTED_OPERATION, { + Ro.checkNew(new.target, Ms), e !== xb && Ro.throwError("cannot call constructor directly; use BigNumber.from", qa.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }), this._hex = r, this._isBigNumber = true, Object.freeze(this); } fromTwos(e) { - return ki(Kt(this).fromTwos(e)); + return Pi(Kt(this).fromTwos(e)); } toTwos(e) { - return ki(Kt(this).toTwos(e)); + return Pi(Kt(this).toTwos(e)); } abs() { return this._hex[0] === "-" ? Ms.from(this._hex.substring(1)) : this; } add(e) { - return ki(Kt(this).add(Kt(e))); + return Pi(Kt(this).add(Kt(e))); } sub(e) { - return ki(Kt(this).sub(Kt(e))); + return Pi(Kt(this).sub(Kt(e))); } div(e) { - return Ms.from(e).isZero() && ws("division by zero", "div"), ki(Kt(this).div(Kt(e))); + return Ms.from(e).isZero() && ws("division by zero", "div"), Pi(Kt(this).div(Kt(e))); } mul(e) { - return ki(Kt(this).mul(Kt(e))); + return Pi(Kt(this).mul(Kt(e))); } mod(e) { const r = Kt(e); - return r.isNeg() && ws("cannot modulo negative values", "mod"), ki(Kt(this).umod(r)); + return r.isNeg() && ws("cannot modulo negative values", "mod"), Pi(Kt(this).umod(r)); } pow(e) { const r = Kt(e); - return r.isNeg() && ws("cannot raise to negative values", "pow"), ki(Kt(this).pow(r)); + return r.isNeg() && ws("cannot raise to negative values", "pow"), Pi(Kt(this).pow(r)); } and(e) { const r = Kt(e); - return (this.isNegative() || r.isNeg()) && ws("cannot 'and' negative values", "and"), ki(Kt(this).and(r)); + return (this.isNegative() || r.isNeg()) && ws("cannot 'and' negative values", "and"), Pi(Kt(this).and(r)); } or(e) { const r = Kt(e); - return (this.isNegative() || r.isNeg()) && ws("cannot 'or' negative values", "or"), ki(Kt(this).or(r)); + return (this.isNegative() || r.isNeg()) && ws("cannot 'or' negative values", "or"), Pi(Kt(this).or(r)); } xor(e) { const r = Kt(e); - return (this.isNegative() || r.isNeg()) && ws("cannot 'xor' negative values", "xor"), ki(Kt(this).xor(r)); + return (this.isNegative() || r.isNeg()) && ws("cannot 'xor' negative values", "xor"), Pi(Kt(this).xor(r)); } mask(e) { - return (this.isNegative() || e < 0) && ws("cannot mask negative values", "mask"), ki(Kt(this).maskn(e)); + return (this.isNegative() || e < 0) && ws("cannot mask negative values", "mask"), Pi(Kt(this).maskn(e)); } shl(e) { - return (this.isNegative() || e < 0) && ws("cannot shift negative values", "shl"), ki(Kt(this).shln(e)); + return (this.isNegative() || e < 0) && ws("cannot shift negative values", "shl"), Pi(Kt(this).shln(e)); } shr(e) { - return (this.isNegative() || e < 0) && ws("cannot shift negative values", "shr"), ki(Kt(this).shrn(e)); + return (this.isNegative() || e < 0) && ws("cannot shift negative values", "shr"), Pi(Kt(this).shrn(e)); } eq(e) { return Kt(this).eq(Kt(e)); @@ -68324,12 +68325,12 @@ ${gz(e, r)}`); return BigInt(this.toString()); } catch { } - return Co.throwError("this platform does not support BigInt", Ga.errors.UNSUPPORTED_OPERATION, { + return Ro.throwError("this platform does not support BigInt", qa.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); } toString() { - return arguments.length > 0 && (arguments[0] === 10 ? BE || (BE = true, Co.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Co.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", Ga.errors.UNEXPECTED_ARGUMENT, {}) : Co.throwError("BigNumber.toString does not accept parameters", Ga.errors.UNEXPECTED_ARGUMENT, {})), Kt(this).toString(10); + return arguments.length > 0 && (arguments[0] === 10 ? DE || (DE = true, Ro.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Ro.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", qa.errors.UNEXPECTED_ARGUMENT, {}) : Ro.throwError("BigNumber.toString does not accept parameters", qa.errors.UNEXPECTED_ARGUMENT, {})), Kt(this).toString(10); } toHexString() { return this._hex; @@ -68341,14 +68342,14 @@ ${gz(e, r)}`); if (e instanceof Ms) return e; if (typeof e == "string") - return e.match(/^-?0x[0-9a-f]+$/i) ? new Ms(_b, Pd(e)) : e.match(/^-?[0-9]+$/) ? new Ms(_b, Pd(new D5(e))) : Co.throwArgumentError("invalid BigNumber string", "value", e); + return e.match(/^-?0x[0-9a-f]+$/i) ? new Ms(xb, Od(e)) : e.match(/^-?[0-9]+$/) ? new Ms(xb, Od(new C5(e))) : Ro.throwArgumentError("invalid BigNumber string", "value", e); if (typeof e == "number") - return e % 1 && ws("underflow", "BigNumber.from", e), (e >= LE || e <= -LE) && ws("overflow", "BigNumber.from", e), Ms.from(String(e)); + return e % 1 && ws("underflow", "BigNumber.from", e), (e >= CE || e <= -CE) && ws("overflow", "BigNumber.from", e), Ms.from(String(e)); const r = e; if (typeof r == "bigint") return Ms.from(r.toString()); if (VD(r)) - return Ms.from(wde(r)); + return Ms.from(xde(r)); if (r) if (r.toHexString) { const n = r.toHexString(); @@ -68356,57 +68357,57 @@ ${gz(e, r)}`); return Ms.from(n); } else { let n = r._hex; - if (n == null && r.type === "BigNumber" && (n = r.hex), typeof n == "string" && (C5(n) || n[0] === "-" && C5(n.substring(1)))) + if (n == null && r.type === "BigNumber" && (n = r.hex), typeof n == "string" && (R5(n) || n[0] === "-" && R5(n.substring(1)))) return Ms.from(n); } - return Co.throwArgumentError("invalid BigNumber value", "value", e); + return Ro.throwArgumentError("invalid BigNumber value", "value", e); } static isBigNumber(e) { return !!(e && e._isBigNumber); } }; - function Pd(t) { + function Od(t) { if (typeof t != "string") - return Pd(t.toString(16)); + return Od(t.toString(16)); if (t[0] === "-") - return t = t.substring(1), t[0] === "-" && Co.throwArgumentError("invalid hex", "value", t), t = Pd(t), t === "0x00" ? t : "-" + t; + return t = t.substring(1), t[0] === "-" && Ro.throwArgumentError("invalid hex", "value", t), t = Od(t), t === "0x00" ? t : "-" + t; if (t.substring(0, 2) !== "0x" && (t = "0x" + t), t === "0x") return "0x00"; for (t.length % 2 && (t = "0x0" + t.substring(2)); t.length > 4 && t.substring(0, 4) === "0x00"; ) t = "0x" + t.substring(4); return t; } - function ki(t) { - return Ai.from(Pd(t)); + function Pi(t) { + return Jn.from(Od(t)); } function Kt(t) { - const e = Ai.from(t).toHexString(); - return e[0] === "-" ? new D5("-" + e.substring(3), 16) : new D5(e.substring(2), 16); + const e = Jn.from(t).toHexString(); + return e[0] === "-" ? new C5("-" + e.substring(3), 16) : new C5(e.substring(2), 16); } function ws(t, e, r) { const n = { fault: t, operation: e }; - return r != null && (n.value = r), Co.throwError(t, Ga.errors.NUMERIC_FAULT, n); + return r != null && (n.value = r), Ro.throwError(t, qa.errors.NUMERIC_FAULT, n); } var S0 = "abi/5.5.0"; - var Qt = new ot(S0); + var Jt = new ot(S0); var al = {}; - var UE = { calldata: true, memory: true, storage: true }; - var xde = { calldata: true, memory: true }; - function bp(t, e) { + var LE = { calldata: true, memory: true, storage: true }; + var Ede = { calldata: true, memory: true }; + function wp(t, e) { if (t === "bytes" || t === "string") { - if (UE[e]) + if (LE[e]) return true; } else if (t === "address") { if (e === "payable") return true; - } else if ((t.indexOf("[") >= 0 || t === "tuple") && xde[e]) + } else if ((t.indexOf("[") >= 0 || t === "tuple") && Ede[e]) return true; - return (UE[e] || e === "payable") && Qt.throwArgumentError("invalid modifier", "name", e), false; + return (LE[e] || e === "payable") && Jt.throwArgumentError("invalid modifier", "name", e), false; } - function _de(t, e) { + function Sde(t, e) { let r = t; function n(a) { - Qt.throwArgumentError(`unexpected character at position ${a}`, "param", t); + Jt.throwArgumentError(`unexpected character at position ${a}`, "param", t); } t = t.replace(/\s/g, " "); function i(a) { @@ -68421,17 +68422,17 @@ ${gz(e, r)}`); o.state.allowType && o.type === "" ? o.type = "tuple" : o.state.allowParams || n(a), o.state.allowType = false, o.type = nf(o.type), o.components = [i(o)], o = o.components[0]; break; case ")": - delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), bp(o.type, o.name) && (o.name = ""), o.type = nf(o.type); + delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), wp(o.type, o.name) && (o.name = ""), o.type = nf(o.type); let u = o; o = o.parent, o || n(a), delete u.parent, o.state.allowParams = false, o.state.allowName = true, o.state.allowArray = true; break; case ",": - delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), bp(o.type, o.name) && (o.name = ""), o.type = nf(o.type); + delete o.state, o.name === "indexed" && (e || n(a), o.indexed = true, o.name = ""), wp(o.type, o.name) && (o.name = ""), o.type = nf(o.type); let f = i(o.parent); o.parent.components.push(f), delete o.parent, o = f; break; case " ": - o.state.allowType && o.type !== "" && (o.type = nf(o.type), delete o.state.allowType, o.state.allowName = true, o.state.allowParams = true), o.state.allowName && o.name !== "" && (o.name === "indexed" ? (e || n(a), o.indexed && n(a), o.indexed = true, o.name = "") : bp(o.type, o.name) ? o.name = "" : o.state.allowName = false); + o.state.allowType && o.type !== "" && (o.type = nf(o.type), delete o.state.allowType, o.state.allowName = true, o.state.allowParams = true), o.state.allowName && o.name !== "" && (o.name === "indexed" ? (e || n(a), o.indexed && n(a), o.indexed = true, o.name = "") : wp(o.type, o.name) ? o.name = "" : o.state.allowName = false); break; case "[": o.state.allowArray || n(a), o.type += c, o.state.allowArray = false, o.state.allowName = false, o.state.readArray = true; @@ -68443,9 +68444,9 @@ ${gz(e, r)}`); o.state.allowType ? (o.type += c, o.state.allowParams = true, o.state.allowArray = true) : o.state.allowName ? (o.name += c, delete o.state.allowArray) : o.state.readArray ? o.type += c : n(a); } } - return o.parent && Qt.throwArgumentError("unexpected eof", "param", t), delete s.state, o.name === "indexed" ? (e || n(r.length - 7), o.indexed && n(r.length - 7), o.indexed = true, o.name = "") : bp(o.type, o.name) && (o.name = ""), s.type = nf(s.type), s; + return o.parent && Jt.throwArgumentError("unexpected eof", "param", t), delete s.state, o.name === "indexed" ? (e || n(r.length - 7), o.indexed && n(r.length - 7), o.indexed = true, o.name = "") : wp(o.type, o.name) && (o.name = ""), s.type = nf(s.type), s; } - function i1(t, e) { + function s1(t, e) { for (let r in e) pt(t, r, e[r]); } @@ -68455,28 +68456,28 @@ ${gz(e, r)}`); full: "full", json: "json" }); - var Ede = new RegExp(/^(.*)\[([0-9]*)\]$/); + var Mde = new RegExp(/^(.*)\[([0-9]*)\]$/); var Nn = class { constructor(e, r) { - e !== al && Qt.throwError("use fromString", ot.errors.UNSUPPORTED_OPERATION, { + e !== al && Jt.throwError("use fromString", ot.errors.UNSUPPORTED_OPERATION, { operation: "new ParamType()" - }), i1(this, r); - let n = this.type.match(Ede); - n ? i1(this, { + }), s1(this, r); + let n = this.type.match(Mde); + n ? s1(this, { arrayLength: parseInt(n[2] || "-1"), arrayChildren: Nn.fromObject({ type: n[1], components: this.components }), baseType: "array" - }) : i1(this, { + }) : s1(this, { arrayLength: null, arrayChildren: null, baseType: this.components != null ? "tuple" : this.type }), this._isParamType = true, Object.freeze(this); } format(e) { - if (e || (e = sr.sighash), sr[e] || Qt.throwArgumentError("invalid format type", "format", e), e === sr.json) { + if (e || (e = sr.sighash), sr[e] || Jt.throwArgumentError("invalid format type", "format", e), e === sr.json) { let n = { type: this.baseType === "tuple" ? "tuple" : this.type, name: this.name || void 0 @@ -68506,7 +68507,7 @@ ${gz(e, r)}`); components: i.components }); } - return n(_de(e, !!r)); + return n(Sde(e, !!r)); } static isParamType(e) { return !!(e != null && e._isParamType); @@ -68515,23 +68516,23 @@ ${gz(e, r)}`); function nf(t) { return t.match(/^uint($|[^1-9])/) ? t = "uint256" + t.substring(4) : t.match(/^int($|[^1-9])/) && (t = "int256" + t.substring(3)), t; } - var Sde = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); - var Cd = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"); - var Ax = new ot(S0); - var hc = class { + var Ade = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); + var Rd = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"); + var Mx = new ot(S0); + var lc = class { constructor(e, r, n, i) { this.name = e, this.type = r, this.localName = n, this.dynamic = i; } _throwError(e, r) { - Ax.throwArgumentError(e, this.localName, r); + Mx.throwArgumentError(e, this.localName, r); } }; - var L5 = class { + var D5 = class { constructor(e) { pt(this, "wordSize", e || 32), this._data = [], this._dataLength = 0, this._padding = new Uint8Array(e); } get data() { - return i8(this._data); + return n8(this._data); } get length() { return this._dataLength; @@ -68549,7 +68550,7 @@ ${gz(e, r)}`); } _getValue(e) { let r = er(zt.from(e)); - return r.length > this.wordSize && Ax.throwError("value out-of-bounds", ot.errors.BUFFER_OVERRUN, { + return r.length > this.wordSize && Mx.throwError("value out-of-bounds", ot.errors.BUFFER_OVERRUN, { length: this.wordSize, offset: r.length }), r.length % this.wordSize && (r = li([this._padding.slice(r.length % this.wordSize), r])), r; @@ -68564,7 +68565,7 @@ ${gz(e, r)}`); }; } }; - var Em = class { + var Sm = class { constructor(e, r, n, i) { pt(this, "_data", er(e)), pt(this, "wordSize", r || 32), pt(this, "_coerceFunc", n), pt(this, "allowLoose", i), this._offset = 0; } @@ -68579,17 +68580,17 @@ ${gz(e, r)}`); return n && parseInt(n[1]) <= 48 && (r = r.toNumber()), r; } coerce(e, r) { - return this._coerceFunc ? this._coerceFunc(e, r) : Em.coerce(e, r); + return this._coerceFunc ? this._coerceFunc(e, r) : Sm.coerce(e, r); } _peekBytes(e, r, n) { let i = Math.ceil(r / this.wordSize) * this.wordSize; - return this._offset + i > this._data.length && (this.allowLoose && n && this._offset + r <= this._data.length ? i = r : Ax.throwError("data out-of-bounds", ot.errors.BUFFER_OVERRUN, { + return this._offset + i > this._data.length && (this.allowLoose && n && this._offset + r <= this._data.length ? i = r : Mx.throwError("data out-of-bounds", ot.errors.BUFFER_OVERRUN, { length: this._data.length, offset: this._offset + i })), this._data.slice(this._offset, this._offset + i); } subReader(e) { - return new Em(this._data.slice(this._offset + e), this.wordSize, this._coerceFunc, this.allowLoose); + return new Sm(this._data.slice(this._offset + e), this.wordSize, this._coerceFunc, this.allowLoose); } readBytes(e, r) { let n = this._peekBytes(0, e, !!r); @@ -68599,7 +68600,7 @@ ${gz(e, r)}`); return zt.from(this.readBytes(this.wordSize)); } }; - var Ade = class extends hc { + var Nde = class extends lc { constructor(e) { super("address", "address", e, false); } @@ -68615,10 +68616,10 @@ ${gz(e, r)}`); return e.writeValue(r); } decode(e) { - return $n(Qo(e.readValue().toHexString(), 20)); + return $n(Jo(e.readValue().toHexString(), 20)); } }; - var Tde = class extends hc { + var Ide = class extends lc { constructor(e) { super(e.name, e.type, void 0, e.dynamic), this.coder = e; } @@ -68654,7 +68655,7 @@ ${gz(e, r)}`); } else ff.throwArgumentError("invalid tuple value", "tuple", r); e.length !== n.length && ff.throwArgumentError("types/value length mismatch", "tuple", r); - let i = new L5(t.wordSize), s = new L5(t.wordSize), o = []; + let i = new D5(t.wordSize), s = new D5(t.wordSize), o = []; e.forEach((c, u) => { let f = n[u]; if (c.dynamic) { @@ -68722,7 +68723,7 @@ ${gz(e, r)}`); } return Object.freeze(r); } - var Nde = class extends hc { + var Ode = class extends lc { constructor(e, r, n) { const i = e.type + "[" + (r >= 0 ? r : "") + "]", s = r === -1 || e.dynamic; super("array", i, n, s), this.coder = e, this.length = r; @@ -68750,11 +68751,11 @@ ${gz(e, r)}`); })); let n = []; for (let i = 0; i < r; i++) - n.push(new Tde(this.coder)); + n.push(new Ide(this.coder)); return e.coerce(this.name, WD(e, n)); } }; - var Ide = class extends hc { + var Pde = class extends lc { constructor(e) { super("bool", "bool", e, false); } @@ -68768,7 +68769,7 @@ ${gz(e, r)}`); return e.coerce(this.type, !e.readValue().isZero()); } }; - var GD = class extends hc { + var GD = class extends lc { constructor(e, r) { super(e, e, r, true); } @@ -68784,7 +68785,7 @@ ${gz(e, r)}`); return e.readBytes(e.readValue().toNumber(), true); } }; - var Ode = class extends GD { + var kde = class extends GD { constructor(e) { super("bytes", e); } @@ -68792,7 +68793,7 @@ ${gz(e, r)}`); return e.coerce(this.name, It(super.decode(e))); } }; - var Pde = class extends hc { + var Rde = class extends lc { constructor(e, r) { let n = "bytes" + String(e); super(n, n, r, false), this.size = e; @@ -68808,7 +68809,7 @@ ${gz(e, r)}`); return e.coerce(this.name, It(e.readBytes(this.size))); } }; - var kde = class extends hc { + var Cde = class extends lc { constructor(e) { super("null", "", e, false); } @@ -68822,7 +68823,7 @@ ${gz(e, r)}`); return e.readBytes(0), e.coerce(this.name, null); } }; - var Rde = class extends hc { + var Dde = class extends lc { constructor(e, r, n) { const i = (r ? "int" : "uint") + e * 8; super(i, i, n, false), this.size = e, this.signed = r; @@ -68844,7 +68845,7 @@ ${gz(e, r)}`); return this.signed && (r = r.fromTwos(this.size * 8)), e.coerce(this.name, r); } }; - var Cde = class extends GD { + var Lde = class extends GD { constructor(e) { super("string", e); } @@ -68852,13 +68853,13 @@ ${gz(e, r)}`); return ""; } encode(e, r) { - return super.encode(e, qf(r)); + return super.encode(e, Hf(r)); } decode(e) { return Eg(super.decode(e)); } }; - var wp = class extends hc { + var vp = class extends lc { constructor(e, r) { let n = false; const i = []; @@ -68889,76 +68890,76 @@ ${gz(e, r)}`); return e.coerce(this.name, WD(e, this.coders)); } }; - var Ih = new ot(S0); - var Dde = new RegExp(/^bytes([0-9]*)$/); - var Lde = new RegExp(/^(u?int)([0-9]*)$/); - var Tx = class { + var Nh = new ot(S0); + var Bde = new RegExp(/^bytes([0-9]*)$/); + var Ude = new RegExp(/^(u?int)([0-9]*)$/); + var Ax = class { constructor(e) { - Ih.checkNew(new.target, Tx), pt(this, "coerceFunc", e || null); + Nh.checkNew(new.target, Ax), pt(this, "coerceFunc", e || null); } _getCoder(e) { switch (e.baseType) { case "address": - return new Ade(e.name); + return new Nde(e.name); case "bool": - return new Ide(e.name); + return new Pde(e.name); case "string": - return new Cde(e.name); + return new Lde(e.name); case "bytes": - return new Ode(e.name); + return new kde(e.name); case "array": - return new Nde(this._getCoder(e.arrayChildren), e.arrayLength, e.name); + return new Ode(this._getCoder(e.arrayChildren), e.arrayLength, e.name); case "tuple": - return new wp((e.components || []).map((n) => this._getCoder(n)), e.name); + return new vp((e.components || []).map((n) => this._getCoder(n)), e.name); case "": - return new kde(e.name); + return new Cde(e.name); } - let r = e.type.match(Lde); + let r = e.type.match(Ude); if (r) { let n = parseInt(r[2] || "256"); - return (n === 0 || n > 256 || n % 8 !== 0) && Ih.throwArgumentError("invalid " + r[1] + " bit length", "param", e), new Rde(n / 8, r[1] === "int", e.name); + return (n === 0 || n > 256 || n % 8 !== 0) && Nh.throwArgumentError("invalid " + r[1] + " bit length", "param", e), new Dde(n / 8, r[1] === "int", e.name); } - if (r = e.type.match(Dde), r) { + if (r = e.type.match(Bde), r) { let n = parseInt(r[1]); - return (n === 0 || n > 32) && Ih.throwArgumentError("invalid bytes length", "param", e), new Pde(n, e.name); + return (n === 0 || n > 32) && Nh.throwArgumentError("invalid bytes length", "param", e), new Rde(n, e.name); } - return Ih.throwArgumentError("invalid type", "type", e.type); + return Nh.throwArgumentError("invalid type", "type", e.type); } _getWordSize() { return 32; } _getReader(e, r) { - return new Em(e, this._getWordSize(), this.coerceFunc, r); + return new Sm(e, this._getWordSize(), this.coerceFunc, r); } _getWriter() { - return new L5(this._getWordSize()); + return new D5(this._getWordSize()); } getDefaultValue(e) { const r = e.map((i) => this._getCoder(Nn.from(i))); - return new wp(r, "_").defaultValue(); + return new vp(r, "_").defaultValue(); } encode(e, r) { - e.length !== r.length && Ih.throwError("types/values length mismatch", ot.errors.INVALID_ARGUMENT, { + e.length !== r.length && Nh.throwError("types/values length mismatch", ot.errors.INVALID_ARGUMENT, { count: { types: e.length, values: r.length }, value: { types: e, values: r } }); - const n = e.map((o) => this._getCoder(Nn.from(o))), i = new wp(n, "_"), s = this._getWriter(); + const n = e.map((o) => this._getCoder(Nn.from(o))), i = new vp(n, "_"), s = this._getWriter(); return i.encode(s, r), s.data; } decode(e, r, n) { const i = e.map((o) => this._getCoder(Nn.from(o))); - return new wp(i, "_").decode(this._getReader(er(r), n)); + return new vp(i, "_").decode(this._getReader(er(r), n)); } }; - var Bde = new Tx(); + var jde = new Ax(); var Nr = new ot(S0); - var Fde = "logger/5.7.0"; - var FE = false; - var HE = false; - var s1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; - var qE = s1.default; - var Eb = null; - function Hde() { + var qde = "logger/5.7.0"; + var VE = false; + var zE = false; + var o1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; + var FE = o1.default; + var _b = null; + function Wde() { try { const t = []; if (["NFD", "NFC", "NFKD", "NFKC"].forEach((e) => { @@ -68977,17 +68978,17 @@ ${gz(e, r)}`); } return null; } - var WE = Hde(); - var B5; + var HE = Wde(); + var L5; (function(t) { t.DEBUG = "DEBUG", t.INFO = "INFO", t.WARNING = "WARNING", t.ERROR = "ERROR", t.OFF = "OFF"; - })(B5 || (B5 = {})); - var ro; + })(L5 || (L5 = {})); + var to; (function(t) { t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", t.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", t.NETWORK_ERROR = "NETWORK_ERROR", t.SERVER_ERROR = "SERVER_ERROR", t.TIMEOUT = "TIMEOUT", t.BUFFER_OVERRUN = "BUFFER_OVERRUN", t.NUMERIC_FAULT = "NUMERIC_FAULT", t.MISSING_NEW = "MISSING_NEW", t.INVALID_ARGUMENT = "INVALID_ARGUMENT", t.MISSING_ARGUMENT = "MISSING_ARGUMENT", t.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", t.CALL_EXCEPTION = "CALL_EXCEPTION", t.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", t.NONCE_EXPIRED = "NONCE_EXPIRED", t.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", t.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", t.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", t.ACTION_REJECTED = "ACTION_REJECTED"; - })(ro || (ro = {})); - var GE = "0123456789abcdef"; - var Ix = class yn { + })(to || (to = {})); + var qE = "0123456789abcdef"; + var Nx = class yn { constructor(e) { Object.defineProperty(this, "version", { enumerable: true, @@ -68997,7 +68998,7 @@ ${gz(e, r)}`); } _log(e, r) { const n = e.toLowerCase(); - s1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(qE > s1[n]) && console.log.apply(console, r); + o1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(FE > o1[n]) && console.log.apply(console, r); } debug(...e) { this._log(yn.levels.DEBUG, e); @@ -69009,7 +69010,7 @@ ${gz(e, r)}`); this._log(yn.levels.WARNING, e); } makeError(e, r, n) { - if (HE) + if (zE) return this.makeError("censored error", r, {}); r || (r = yn.errors.UNKNOWN_ERROR), n || (n = {}); const i = []; @@ -69019,7 +69020,7 @@ ${gz(e, r)}`); if (u instanceof Uint8Array) { let f = ""; for (let p = 0; p < u.length; p++) - f += GE[u[p] >> 4], f += GE[u[p] & 15]; + f += qE[u[p] >> 4], f += qE[u[p] & 15]; i.push(c + "=Uint8Array(0x" + f + ")"); } else i.push(c + "=" + JSON.stringify(u)); @@ -69030,7 +69031,7 @@ ${gz(e, r)}`); const s = e; let o = ""; switch (r) { - case ro.NUMERIC_FAULT: { + case to.NUMERIC_FAULT: { o = "NUMERIC_FAULT"; const c = e; switch (c) { @@ -69049,13 +69050,13 @@ ${gz(e, r)}`); } break; } - case ro.CALL_EXCEPTION: - case ro.INSUFFICIENT_FUNDS: - case ro.MISSING_NEW: - case ro.NONCE_EXPIRED: - case ro.REPLACEMENT_UNDERPRICED: - case ro.TRANSACTION_REPLACED: - case ro.UNPREDICTABLE_GAS_LIMIT: + case to.CALL_EXCEPTION: + case to.INSUFFICIENT_FUNDS: + case to.MISSING_NEW: + case to.NONCE_EXPIRED: + case to.REPLACEMENT_UNDERPRICED: + case to.TRANSACTION_REPLACED: + case to.UNPREDICTABLE_GAS_LIMIT: o = r; break; } @@ -69081,9 +69082,9 @@ ${gz(e, r)}`); e || this.throwArgumentError(r, n, i); } checkNormalize(e) { - WE && this.throwError("platform missing String.prototype.normalize", yn.errors.UNSUPPORTED_OPERATION, { + HE && this.throwError("platform missing String.prototype.normalize", yn.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", - form: WE + form: HE }); } checkSafeUint53(e, r) { @@ -69113,43 +69114,43 @@ ${gz(e, r)}`); e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", yn.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", yn.errors.MISSING_NEW, { name: r.name }); } static globalLogger() { - return Eb || (Eb = new yn(Fde)), Eb; + return _b || (_b = new yn(qde)), _b; } static setCensorship(e, r) { if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", yn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" - }), FE) { + }), VE) { if (!e) return; this.globalLogger().throwError("error censorship permanent", yn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } - HE = !!e, FE = !!r; + zE = !!e, VE = !!r; } static setLogLevel(e) { - const r = s1[e.toLowerCase()]; + const r = o1[e.toLowerCase()]; if (r == null) { yn.globalLogger().warn("invalid log level - " + e); return; } - qE = r; + FE = r; } static from(e) { return new yn(e); } }; - Ix.errors = ro; - Ix.levels = B5; - var qde = "bytes/5.7.0"; - var Sb = new Ix(qde); - var Zde = "logger/5.7.0"; - var XE = false; - var YE = false; - var a1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; - var ZE = a1.default; - var Mb = null; - function Jde() { + Nx.errors = to; + Nx.levels = L5; + var Gde = "bytes/5.7.0"; + var Eb = new Nx(Gde); + var Qde = "logger/5.7.0"; + var GE = false; + var KE = false; + var c1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; + var XE = c1.default; + var Sb = null; + function $de() { try { const t = []; if (["NFD", "NFC", "NFKD", "NFKC"].forEach((e) => { @@ -69168,17 +69169,17 @@ ${gz(e, r)}`); } return null; } - var JE = Jde(); - var U5; + var YE = $de(); + var B5; (function(t) { t.DEBUG = "DEBUG", t.INFO = "INFO", t.WARNING = "WARNING", t.ERROR = "ERROR", t.OFF = "OFF"; - })(U5 || (U5 = {})); - var no; + })(B5 || (B5 = {})); + var ro; (function(t) { t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", t.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", t.NETWORK_ERROR = "NETWORK_ERROR", t.SERVER_ERROR = "SERVER_ERROR", t.TIMEOUT = "TIMEOUT", t.BUFFER_OVERRUN = "BUFFER_OVERRUN", t.NUMERIC_FAULT = "NUMERIC_FAULT", t.MISSING_NEW = "MISSING_NEW", t.INVALID_ARGUMENT = "INVALID_ARGUMENT", t.MISSING_ARGUMENT = "MISSING_ARGUMENT", t.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", t.CALL_EXCEPTION = "CALL_EXCEPTION", t.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", t.NONCE_EXPIRED = "NONCE_EXPIRED", t.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", t.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", t.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", t.ACTION_REJECTED = "ACTION_REJECTED"; - })(no || (no = {})); - var QE = "0123456789abcdef"; - var Vr = class { + })(ro || (ro = {})); + var ZE = "0123456789abcdef"; + var jr = class { constructor(e) { Object.defineProperty(this, "version", { enumerable: true, @@ -69188,21 +69189,21 @@ ${gz(e, r)}`); } _log(e, r) { const n = e.toLowerCase(); - a1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(ZE > a1[n]) && console.log.apply(console, r); + c1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(XE > c1[n]) && console.log.apply(console, r); } debug(...e) { - this._log(Vr.levels.DEBUG, e); + this._log(jr.levels.DEBUG, e); } info(...e) { - this._log(Vr.levels.INFO, e); + this._log(jr.levels.INFO, e); } warn(...e) { - this._log(Vr.levels.WARNING, e); + this._log(jr.levels.WARNING, e); } makeError(e, r, n) { - if (YE) + if (KE) return this.makeError("censored error", r, {}); - r || (r = Vr.errors.UNKNOWN_ERROR), n || (n = {}); + r || (r = jr.errors.UNKNOWN_ERROR), n || (n = {}); const i = []; Object.keys(n).forEach((c) => { const u = n[c]; @@ -69210,7 +69211,7 @@ ${gz(e, r)}`); if (u instanceof Uint8Array) { let f = ""; for (let p = 0; p < u.length; p++) - f += QE[u[p] >> 4], f += QE[u[p] & 15]; + f += ZE[u[p] >> 4], f += ZE[u[p] & 15]; i.push(c + "=Uint8Array(0x" + f + ")"); } else i.push(c + "=" + JSON.stringify(u)); @@ -69221,7 +69222,7 @@ ${gz(e, r)}`); const s = e; let o = ""; switch (r) { - case no.NUMERIC_FAULT: { + case ro.NUMERIC_FAULT: { o = "NUMERIC_FAULT"; const c = e; switch (c) { @@ -69240,13 +69241,13 @@ ${gz(e, r)}`); } break; } - case no.CALL_EXCEPTION: - case no.INSUFFICIENT_FUNDS: - case no.MISSING_NEW: - case no.NONCE_EXPIRED: - case no.REPLACEMENT_UNDERPRICED: - case no.TRANSACTION_REPLACED: - case no.UNPREDICTABLE_GAS_LIMIT: + case ro.CALL_EXCEPTION: + case ro.INSUFFICIENT_FUNDS: + case ro.MISSING_NEW: + case ro.NONCE_EXPIRED: + case ro.REPLACEMENT_UNDERPRICED: + case ro.TRANSACTION_REPLACED: + case ro.UNPREDICTABLE_GAS_LIMIT: o = r; break; } @@ -69260,7 +69261,7 @@ ${gz(e, r)}`); throw this.makeError(e, r, n); } throwArgumentError(e, r, n) { - return this.throwError(e, Vr.errors.INVALID_ARGUMENT, { + return this.throwError(e, jr.errors.INVALID_ARGUMENT, { argument: r, value: n }); @@ -69272,99 +69273,99 @@ ${gz(e, r)}`); e || this.throwArgumentError(r, n, i); } checkNormalize(e) { - JE && this.throwError("platform missing String.prototype.normalize", Vr.errors.UNSUPPORTED_OPERATION, { + YE && this.throwError("platform missing String.prototype.normalize", jr.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", - form: JE + form: YE }); } checkSafeUint53(e, r) { - typeof e == "number" && (r == null && (r = "value not safe"), (e < 0 || e >= 9007199254740991) && this.throwError(r, Vr.errors.NUMERIC_FAULT, { + typeof e == "number" && (r == null && (r = "value not safe"), (e < 0 || e >= 9007199254740991) && this.throwError(r, jr.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "out-of-safe-range", value: e - }), e % 1 && this.throwError(r, Vr.errors.NUMERIC_FAULT, { + }), e % 1 && this.throwError(r, jr.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "non-integer", value: e })); } checkArgumentCount(e, r, n) { - n ? n = ": " + n : n = "", e < r && this.throwError("missing argument" + n, Vr.errors.MISSING_ARGUMENT, { + n ? n = ": " + n : n = "", e < r && this.throwError("missing argument" + n, jr.errors.MISSING_ARGUMENT, { count: e, expectedCount: r - }), e > r && this.throwError("too many arguments" + n, Vr.errors.UNEXPECTED_ARGUMENT, { + }), e > r && this.throwError("too many arguments" + n, jr.errors.UNEXPECTED_ARGUMENT, { count: e, expectedCount: r }); } checkNew(e, r) { - (e === Object || e == null) && this.throwError("missing new", Vr.errors.MISSING_NEW, { name: r.name }); + (e === Object || e == null) && this.throwError("missing new", jr.errors.MISSING_NEW, { name: r.name }); } checkAbstract(e, r) { - e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", Vr.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", Vr.errors.MISSING_NEW, { name: r.name }); + e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", jr.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", jr.errors.MISSING_NEW, { name: r.name }); } static globalLogger() { - return Mb || (Mb = new Vr(Zde)), Mb; + return Sb || (Sb = new jr(Qde)), Sb; } static setCensorship(e, r) { - if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", Vr.errors.UNSUPPORTED_OPERATION, { + if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", jr.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" - }), XE) { + }), GE) { if (!e) return; - this.globalLogger().throwError("error censorship permanent", Vr.errors.UNSUPPORTED_OPERATION, { + this.globalLogger().throwError("error censorship permanent", jr.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } - YE = !!e, XE = !!r; + KE = !!e, GE = !!r; } static setLogLevel(e) { - const r = a1[e.toLowerCase()]; + const r = c1[e.toLowerCase()]; if (r == null) { - Vr.globalLogger().warn("invalid log level - " + e); + jr.globalLogger().warn("invalid log level - " + e); return; } - ZE = r; + XE = r; } static from(e) { - return new Vr(e); + return new jr(e); } }; - Vr.errors = no; - Vr.levels = U5; - var Qde = "bytes/5.7.0"; - var Ab = new Vr(Qde); - var n0e = "strings/5.5.0"; - var i0e = new Vr(n0e); - var Sm; + jr.errors = ro; + jr.levels = B5; + var e0e = "bytes/5.7.0"; + var Mb = new jr(e0e); + var s0e = "strings/5.5.0"; + var o0e = new jr(s0e); + var Mm; (function(t) { t.current = "", t.NFC = "NFC", t.NFD = "NFD", t.NFKC = "NFKC", t.NFKD = "NFKD"; - })(Sm || (Sm = {})); - var eS; + })(Mm || (Mm = {})); + var QE; (function(t) { t.UNEXPECTED_CONTINUE = "unexpected continuation byte", t.BAD_PREFIX = "bad codepoint prefix", t.OVERRUN = "string overrun", t.MISSING_CONTINUE = "missing continuation byte", t.OUT_OF_RANGE = "out of UTF-8 range", t.UTF16_SURROGATE = "UTF-16 surrogate", t.OVERLONG = "overlong representation"; - })(eS || (eS = {})); + })(QE || (QE = {})); var Ls = "0x0000000000000000000000000000000001000000"; var Lf = { name: "REEF", address: Ls, iconUrl: "https://storage.googleapis.com/reef-static-images/r-circle-icon-128.png", - balance: Ai.from(0), + balance: Jn.from(0), decimals: 18, symbol: "REEF" }; - var Ox = "0x0000000000000000000000000000000000000000"; - var Kc = /* @__PURE__ */ ((t) => (t.ERC20 = "ERC20", t.ERC721 = "ERC721", t.ERC1155 = "ERC1155", t.other = "other", t))(Kc || {}); - var u0e = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i; - var Tb = Math.ceil; + var Ix = "0x0000000000000000000000000000000000000000"; + var Wc = /* @__PURE__ */ ((t) => (t.ERC20 = "ERC20", t.ERC721 = "ERC721", t.ERC1155 = "ERC1155", t.other = "other", t))(Wc || {}); + var f0e = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i; + var Ab = Math.ceil; var As = Math.floor; - var Di = "[BigNumber Error] "; - var tS = Di + "Number primitive has more than 15 significant digits: "; - var Ks = 1e14; + var Ci = "[BigNumber Error] "; + var $E = Ci + "Number primitive has more than 15 significant digits: "; + var Gs = 1e14; var Pt = 14; - var Nb = 9007199254740991; - var Ib = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13]; - var Ac = 1e7; + var Tb = 9007199254740991; + var Nb = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13]; + var Sc = 1e7; var Sn = 1e9; function KD(t) { var e, r, n, i = L.prototype = { constructor: L, toString: null, valueOf: null }, s = new L(1), o = 20, a = 4, c = -7, u = 21, f = -1e7, p = 1e7, b = false, E = 1, _ = 0, N = { @@ -69395,19 +69396,19 @@ ${gz(e, r)}`); } x = String(I); } else { - if (!u0e.test(x = String(I))) + if (!f0e.test(x = String(I))) return n(v, x, h); v.s = x.charCodeAt(0) == 45 ? (x = x.slice(1), -1) : 1; } (d = x.indexOf(".")) > -1 && (x = x.replace(".", "")), (l = x.search(/e/i)) > 0 ? (d < 0 && (d = l), d += +x.slice(l + 1), x = x.substring(0, l)) : d < 0 && (d = x.length); } else { - if (Ur(H, 2, k.length, "Base"), H == 10 && F) + if (Br(H, 2, k.length, "Base"), H == 10 && F) return v = new L(I), z(v, o + v.e + 1, a); if (x = String(I), h = typeof I == "number") { if (I * 0 != 0) return n(v, x, h, H); if (v.s = 1 / I < 0 ? (x = x.slice(1), -1) : 1, L.DEBUG && x.replace(/^0\.0*|\./, "").length > 15) - throw Error(tS + I); + throw Error($E + I); } else v.s = x.charCodeAt(0) === 45 ? (x = x.slice(1), -1) : 1; for (X = k.slice(0, H), d = l = 0, y = x.length; l < y; l++) @@ -69430,8 +69431,8 @@ ${gz(e, r)}`); for (y = x.length; x.charCodeAt(--y) === 48; ) ; if (x = x.slice(l, ++y)) { - if (y -= l, h && L.DEBUG && y > 15 && (I > Nb || I !== As(I))) - throw Error(tS + v.s * I); + if (y -= l, h && L.DEBUG && y > 15 && (I > Tb || I !== As(I))) + throw Error($E + v.s * I); if ((d = d - l - 1) > p) v.c = v.e = null; else if (d < f) @@ -69454,36 +69455,36 @@ ${gz(e, r)}`); var H, X; if (I != null) if (typeof I == "object") { - if (I.hasOwnProperty(H = "DECIMAL_PLACES") && (X = I[H], Ur(X, 0, Sn, H), o = X), I.hasOwnProperty(H = "ROUNDING_MODE") && (X = I[H], Ur(X, 0, 8, H), a = X), I.hasOwnProperty(H = "EXPONENTIAL_AT") && (X = I[H], X && X.pop ? (Ur(X[0], -Sn, 0, H), Ur(X[1], 0, Sn, H), c = X[0], u = X[1]) : (Ur(X, -Sn, Sn, H), c = -(u = X < 0 ? -X : X))), I.hasOwnProperty(H = "RANGE")) + if (I.hasOwnProperty(H = "DECIMAL_PLACES") && (X = I[H], Br(X, 0, Sn, H), o = X), I.hasOwnProperty(H = "ROUNDING_MODE") && (X = I[H], Br(X, 0, 8, H), a = X), I.hasOwnProperty(H = "EXPONENTIAL_AT") && (X = I[H], X && X.pop ? (Br(X[0], -Sn, 0, H), Br(X[1], 0, Sn, H), c = X[0], u = X[1]) : (Br(X, -Sn, Sn, H), c = -(u = X < 0 ? -X : X))), I.hasOwnProperty(H = "RANGE")) if (X = I[H], X && X.pop) - Ur(X[0], -Sn, -1, H), Ur(X[1], 1, Sn, H), f = X[0], p = X[1]; - else if (Ur(X, -Sn, Sn, H), X) + Br(X[0], -Sn, -1, H), Br(X[1], 1, Sn, H), f = X[0], p = X[1]; + else if (Br(X, -Sn, Sn, H), X) f = -(p = X < 0 ? -X : X); else - throw Error(Di + H + " cannot be zero: " + X); + throw Error(Ci + H + " cannot be zero: " + X); if (I.hasOwnProperty(H = "CRYPTO")) if (X = I[H], X === !!X) if (X) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) b = X; else - throw b = !X, Error(Di + "crypto unavailable"); + throw b = !X, Error(Ci + "crypto unavailable"); else b = X; else - throw Error(Di + H + " not true or false: " + X); - if (I.hasOwnProperty(H = "MODULO_MODE") && (X = I[H], Ur(X, 0, 9, H), E = X), I.hasOwnProperty(H = "POW_PRECISION") && (X = I[H], Ur(X, 0, Sn, H), _ = X), I.hasOwnProperty(H = "FORMAT")) + throw Error(Ci + H + " not true or false: " + X); + if (I.hasOwnProperty(H = "MODULO_MODE") && (X = I[H], Br(X, 0, 9, H), E = X), I.hasOwnProperty(H = "POW_PRECISION") && (X = I[H], Br(X, 0, Sn, H), _ = X), I.hasOwnProperty(H = "FORMAT")) if (X = I[H], typeof X == "object") N = X; else - throw Error(Di + H + " not an object: " + X); + throw Error(Ci + H + " not an object: " + X); if (I.hasOwnProperty(H = "ALPHABET")) if (X = I[H], typeof X == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(X)) F = X.slice(0, 10) == "0123456789", k = X; else - throw Error(Di + H + " invalid: " + X); + throw Error(Ci + H + " invalid: " + X); } else - throw Error(Di + "Object expected: " + I); + throw Error(Ci + "Object expected: " + I); return { DECIMAL_PLACES: o, ROUNDING_MODE: a, @@ -69511,7 +69512,7 @@ ${gz(e, r)}`); } if (H = (S + 1) % Pt, H < 1 && (H += Pt), String(V[0]).length == H) { for (H = 0; H < V.length; H++) - if (X = V[H], X < 0 || X >= Ks || X !== As(X)) + if (X = V[H], X < 0 || X >= Gs || X !== As(X)) break e; if (X !== 0) return true; @@ -69519,7 +69520,7 @@ ${gz(e, r)}`); } } else if (V === null && S === null && (d === null || d === 1 || d === -1)) return true; - throw Error(Di + "Invalid BigNumber: " + I); + throw Error(Ci + "Invalid BigNumber: " + I); }, L.maximum = L.max = function() { return q(arguments, -1); }, L.minimum = L.min = function() { @@ -69532,7 +69533,7 @@ ${gz(e, r)}`); }; return function(X) { var V, S, d, l, h, y = 0, x = [], v = new L(s); - if (X == null ? X = o : Ur(X, 0, Sn), l = Tb(X / Pt), b) + if (X == null ? X = o : Br(X, 0, Sn), l = Ab(X / Pt), b) if (crypto.getRandomValues) { for (V = crypto.getRandomValues(new Uint32Array(l *= 2)); y < l; ) h = V[y] * 131072 + (V[y + 1] >>> 11), h >= 9e15 ? (S = crypto.getRandomValues(new Uint32Array(2)), V[y] = S[0], V[y + 1] = S[1]) : (x.push(h % 1e14), y += 2); @@ -69542,11 +69543,11 @@ ${gz(e, r)}`); h = (V[y] & 31) * 281474976710656 + V[y + 1] * 1099511627776 + V[y + 2] * 4294967296 + V[y + 3] * 16777216 + (V[y + 4] << 16) + (V[y + 5] << 8) + V[y + 6], h >= 9e15 ? crypto.randomBytes(7).copy(V, y) : (x.push(h % 1e14), y += 7); y = l / 7; } else - throw b = false, Error(Di + "crypto unavailable"); + throw b = false, Error(Ci + "crypto unavailable"); if (!b) for (; y < l; ) h = H(), h < 9e15 && (x[y++] = h % 1e14); - for (l = x[--y], X %= Pt, l && X && (h = Ib[Pt - X], x[y] = As(l / h) * h); x[y] === 0; x.pop(), y--) + for (l = x[--y], X %= Pt, l && X && (h = Nb[Pt - X], x[y] = As(l / h) * h); x[y] === 0; x.pop(), y--) ; if (y < 0) x = [d = 0]; @@ -69577,7 +69578,7 @@ ${gz(e, r)}`); return function(X, V, S, d, l) { var h, y, x, v, M, w, g, m, P = X.indexOf("."), Q = o, A = a; for (P >= 0 && (v = _, _ = 0, X = X.replace(".", ""), m = new L(V), w = m.pow(X.length - P), _ = v, m.c = H( - xa(vs(w.c), w.e, "0"), + wa(vs(w.c), w.e, "0"), 10, S, I @@ -69586,7 +69587,7 @@ ${gz(e, r)}`); if (!g[0]) return h.charAt(0); if (P < 0 ? --x : (w.c = g, w.e = x, w.s = d, w = e(w, m, Q, A, S), g = w.c, M = w.r, x = w.e), y = x + Q + 1, P = g[y], v = S / 2, M = M || y < 0 || g[y + 1] != null, M = A < 4 ? (P != null || M) && (A == 0 || A == (w.s < 0 ? 3 : 2)) : P > v || P == v && (A == 4 || M || A == 6 && g[y - 1] & 1 || A == (w.s < 0 ? 8 : 7)), y < 1 || !g[0]) - X = M ? xa(h.charAt(1), -Q, h.charAt(0)) : h.charAt(0); + X = M ? wa(h.charAt(1), -Q, h.charAt(0)) : h.charAt(0); else { if (g.length = y, M) for (--S; ++g[--y] > S; ) @@ -69595,15 +69596,15 @@ ${gz(e, r)}`); ; for (P = 0, X = ""; P <= v; X += h.charAt(g[P++])) ; - X = xa(X, x, h.charAt(0)); + X = wa(X, x, h.charAt(0)); } return X; }; }(), e = function() { function I(V, S, d) { - var l, h, y, x, v = 0, M = V.length, w = S % Ac, g = S / Ac | 0; + var l, h, y, x, v = 0, M = V.length, w = S % Sc, g = S / Sc | 0; for (V = V.slice(); M--; ) - y = V[M] % Ac, x = V[M] / Ac | 0, l = g * y + x * w, h = w * y + l % Ac * Ac + v, v = (h / d | 0) + (l / Ac | 0) + g * x, V[M] = h % d; + y = V[M] % Sc, x = V[M] / Sc | 0, l = g * y + x * w, h = w * y + l % Sc * Sc + v, v = (h / d | 0) + (l / Sc | 0) + g * x, V[M] = h % d; return v && (V = [v].concat(V)), V; } function H(V, S, d, l) { @@ -69630,7 +69631,7 @@ ${gz(e, r)}`); return new L( !V.s || !S.s || (ie ? Z && ie[0] == Z[0] : !Z) ? NaN : ie && ie[0] == 0 || !Z ? ae * 0 : ae / 0 ); - for (P = new L(ae), Q = P.c = [], x = V.e - S.e, ae = d + x + 1, h || (h = Ks, x = Ts(V.e / Pt) - Ts(S.e / Pt), ae = ae / Pt | 0), v = 0; Z[v] == (ie[v] || 0); v++) + for (P = new L(ae), Q = P.c = [], x = V.e - S.e, ae = d + x + 1, h || (h = Gs, x = Ts(V.e / Pt) - Ts(S.e / Pt), ae = ae / Pt | 0), v = 0; Z[v] == (ie[v] || 0); v++) ; if (Z[v] > (ie[v] || 0) && x--, ae < 0) Q.push(1), M = true; @@ -69654,7 +69655,7 @@ ${gz(e, r)}`); } while ((j++ < G || A[0] != null) && ae--); M = A[0] != null, Q[0] || Q.splice(0, 1); } - if (h == Ks) { + if (h == Gs) { for (v = 1, ae = Q[0]; ae >= 10; ae /= 10, v++) ; z(P, d + (P.e = v + x * Pt - 1) + 1, l, M); @@ -69665,15 +69666,15 @@ ${gz(e, r)}`); }(); function D(I, H, X, V) { var S, d, l, h, y; - if (X == null ? X = a : Ur(X, 0, 8), !I.c) + if (X == null ? X = a : Br(X, 0, 8), !I.c) return I.toString(); if (S = I.c[0], l = I.e, H == null) - y = vs(I.c), y = V == 1 || V == 2 && (l <= c || l >= u) ? xp(y, l) : xa(y, l, "0"); + y = vs(I.c), y = V == 1 || V == 2 && (l <= c || l >= u) ? _p(y, l) : wa(y, l, "0"); else if (I = z(new L(I), H, X), d = I.e, y = vs(I.c), h = y.length, V == 1 || V == 2 && (H <= d || d <= c)) { for (; h < H; y += "0", h++) ; - y = xp(y, d); - } else if (H -= l, y = xa(y, d, "0"), d + 1 > h) { + y = _p(y, d); + } else if (H -= l, y = wa(y, d, "0"), d + 1 > h) { if (--H > 0) for (y += "."; H--; y += "0") ; @@ -69684,7 +69685,7 @@ ${gz(e, r)}`); } function q(I, H) { for (var X, V, S = 1, d = new L(I[0]); S < I.length; S++) - V = new L(I[S]), (!V.s || (X = Su(d, V)) === H || X === 0 && d.s === H) && (d = V); + V = new L(I[S]), (!V.s || (X = Eu(d, V)) === H || X === 0 && d.s === H) && (d = V); return d; } function W(I, H, X) { @@ -69706,21 +69707,21 @@ ${gz(e, r)}`); }), y && (x = y, v = v.replace(H, "$1").replace(X, "0.$1")), l != v)) return new L(v, x); if (L.DEBUG) - throw Error(Di + "Not a" + (y ? " base " + y : "") + " number: " + l); + throw Error(Ci + "Not a" + (y ? " base " + y : "") + " number: " + l); d.s = null; } d.c = d.e = null; }; }(); function z(I, H, X, V) { - var S, d, l, h, y, x, v, M = I.c, w = Ib; + var S, d, l, h, y, x, v, M = I.c, w = Nb; if (M) { e: { for (S = 1, h = M[0]; h >= 10; h /= 10, S++) ; if (d = H - S, d < 0) d += Pt, l = H, y = M[x = 0], v = As(y / w[S - l - 1] % 10); - else if (x = Tb((d + 1) / Pt), x >= M.length) + else if (x = Ab((d + 1) / Pt), x >= M.length) if (V) { for (; M.length <= x; M.push(0)) ; @@ -69741,10 +69742,10 @@ ${gz(e, r)}`); ; for (l = M[0] += h, h = 1; l >= 10; l /= 10, h++) ; - d != h && (I.e++, M[0] == Ks && (M[0] = 1)); + d != h && (I.e++, M[0] == Gs && (M[0] = 1)); break; } else { - if (M[x] += h, M[x] != Ks) + if (M[x] += h, M[x] != Gs) break; M[x--] = 0, h = 1; } @@ -69757,17 +69758,17 @@ ${gz(e, r)}`); } function T(I) { var H, X = I.e; - return X === null ? I.toString() : (H = vs(I.c), H = X <= c || X >= u ? xp(H, X) : xa(H, X, "0"), I.s < 0 ? "-" + H : H); + return X === null ? I.toString() : (H = vs(I.c), H = X <= c || X >= u ? _p(H, X) : wa(H, X, "0"), I.s < 0 ? "-" + H : H); } return i.absoluteValue = i.abs = function() { var I = new L(this); return I.s < 0 && (I.s = 1), I; }, i.comparedTo = function(I, H) { - return Su(this, new L(I, H)); + return Eu(this, new L(I, H)); }, i.decimalPlaces = i.dp = function(I, H) { var X, V, S, d = this; if (I != null) - return Ur(I, 0, Sn), H == null ? H = a : Ur(H, 0, 8), z(new L(d), I + d.e + 1, H); + return Br(I, 0, Sn), H == null ? H = a : Br(H, 0, 8), z(new L(d), I + d.e + 1, H); if (!(X = d.c)) return null; if (V = ((S = X.length - 1) - Ts(this.e / Pt)) * Pt, S = X[S]) @@ -69781,19 +69782,19 @@ ${gz(e, r)}`); }, i.exponentiatedBy = i.pow = function(I, H) { var X, V, S, d, l, h, y, x, v, M = this; if (I = new L(I), I.c && !I.isInteger()) - throw Error(Di + "Exponent not an integer: " + T(I)); + throw Error(Ci + "Exponent not an integer: " + T(I)); if (H != null && (H = new L(H)), h = I.e > 14, !M.c || !M.c[0] || M.c[0] == 1 && !M.e && M.c.length == 1 || !I.c || !I.c[0]) - return v = new L(Math.pow(+T(M), h ? I.s * (2 - vp(I)) : +T(I))), H ? v.mod(H) : v; + return v = new L(Math.pow(+T(M), h ? I.s * (2 - xp(I)) : +T(I))), H ? v.mod(H) : v; if (y = I.s < 0, H) { if (H.c ? !H.c[0] : !H.s) return new L(NaN); V = !y && M.isInteger() && H.isInteger(), V && (M = M.mod(H)); } else { if (I.e > 9 && (M.e > 0 || M.e < -1 || (M.e == 0 ? M.c[0] > 1 || h && M.c[1] >= 24e7 : M.c[0] < 8e13 || h && M.c[0] <= 9999975e7))) - return d = M.s < 0 && vp(I) ? -0 : 0, M.e > -1 && (d = 1 / d), new L(y ? 1 / d : d); - _ && (d = Tb(_ / Pt + 2)); + return d = M.s < 0 && xp(I) ? -0 : 0, M.e > -1 && (d = 1 / d), new L(y ? 1 / d : d); + _ && (d = Ab(_ / Pt + 2)); } - for (h ? (X = new L(0.5), y && (I.s = 1), x = vp(I)) : (S = Math.abs(+T(I)), x = S % 2), v = new L(s); ; ) { + for (h ? (X = new L(0.5), y && (I.s = 1), x = xp(I)) : (S = Math.abs(+T(I)), x = S % 2), v = new L(s); ; ) { if (x) { if (v = v.times(M), !v.c) break; @@ -69804,7 +69805,7 @@ ${gz(e, r)}`); break; x = S % 2; } else if (I = I.times(X), z(I, I.e + 1, 1), I.e > 14) - x = vp(I); + x = xp(I); else { if (S = +T(I), S === 0) break; @@ -69815,21 +69816,21 @@ ${gz(e, r)}`); return V ? v : (y && (v = s.div(v)), H ? v.mod(H) : d ? z(v, _, a, l) : v); }, i.integerValue = function(I) { var H = new L(this); - return I == null ? I = a : Ur(I, 0, 8), z(H, H.e + 1, I); + return I == null ? I = a : Br(I, 0, 8), z(H, H.e + 1, I); }, i.isEqualTo = i.eq = function(I, H) { - return Su(this, new L(I, H)) === 0; + return Eu(this, new L(I, H)) === 0; }, i.isFinite = function() { return !!this.c; }, i.isGreaterThan = i.gt = function(I, H) { - return Su(this, new L(I, H)) > 0; + return Eu(this, new L(I, H)) > 0; }, i.isGreaterThanOrEqualTo = i.gte = function(I, H) { - return (H = Su(this, new L(I, H))) === 1 || H === 0; + return (H = Eu(this, new L(I, H))) === 1 || H === 0; }, i.isInteger = function() { return !!this.c && Ts(this.e / Pt) > this.c.length - 2; }, i.isLessThan = i.lt = function(I, H) { - return Su(this, new L(I, H)) < 0; + return Eu(this, new L(I, H)) < 0; }, i.isLessThanOrEqualTo = i.lte = function(I, H) { - return (H = Su(this, new L(I, H))) === -1 || H === 0; + return (H = Eu(this, new L(I, H))) === -1 || H === 0; }, i.isNaN = function() { return !this.s; }, i.isNegative = function() { @@ -69864,11 +69865,11 @@ ${gz(e, r)}`); if (d && (S = v, v = M, M = S, I.s = -I.s), H = (V = M.length) - (X = v.length), H > 0) for (; H--; v[X++] = 0) ; - for (H = Ks - 1; V > h; ) { + for (H = Gs - 1; V > h; ) { if (v[--V] < M[V]) { for (X = V; X && !v[--X]; v[X] = H) ; - --v[X], v[V] += Ks; + --v[X], v[V] += Gs; } v[V] -= M[V]; } @@ -69884,7 +69885,7 @@ ${gz(e, r)}`); return !A.s || !I.s || K && !K[0] && !U || U && !U[0] && !K ? I.c = I.e = I.s = null : (I.s *= A.s, !K || !U ? I.c = I.e = null : (I.c = [0], I.e = 0)), I; for (V = Ts(A.e / Pt) + Ts(I.e / Pt), I.s *= A.s, y = K.length, M = U.length, y < M && (m = K, K = U, U = m, S = y, y = M, M = S), S = y + M, m = []; S--; m.push(0)) ; - for (P = Ks, Q = Ac, S = M; --S >= 0; ) { + for (P = Gs, Q = Sc, S = M; --S >= 0; ) { for (X = 0, w = U[S] % Q, g = U[S] / Q | 0, l = y, d = S + l; d > S; ) x = K[--l] % Q, v = K[l] / Q | 0, h = g * x + v * w, x = w * x + h % Q * Q + m[d] + X, X = (x / P | 0) + (h / Q | 0) + g * v, m[d--] = x % P; m[d] = X; @@ -69912,12 +69913,12 @@ ${gz(e, r)}`); X.reverse(); } for (S = h.length, H = y.length, S - H < 0 && (X = y, y = h, h = X, H = S), S = 0; H; ) - S = (h[--H] = h[H] + y[H] + S) / Ks | 0, h[H] = Ks === h[H] ? 0 : h[H] % Ks; + S = (h[--H] = h[H] + y[H] + S) / Gs | 0, h[H] = Gs === h[H] ? 0 : h[H] % Gs; return S && (h = [S].concat(h), ++l), W(I, h, l); }, i.precision = i.sd = function(I, H) { var X, V, S, d = this; if (I != null && I !== !!I) - return Ur(I, 1, Sn), H == null ? H = a : Ur(H, 0, 8), z(new L(d), I, H); + return Br(I, 1, Sn), H == null ? H = a : Br(H, 0, 8), z(new L(d), I, H); if (!(X = d.c)) return null; if (S = X.length - 1, V = S * Pt + 1, S = X[S]) { @@ -69928,7 +69929,7 @@ ${gz(e, r)}`); } return I && d.e + 1 > V && (V = d.e + 1), V; }, i.shiftedBy = function(I) { - return Ur(I, -Nb, Nb), this.times("1e" + I); + return Br(I, -Tb, Tb), this.times("1e" + I); }, i.squareRoot = i.sqrt = function() { var I, H, X, V, S, d = this, l = d.c, h = d.s, y = d.e, x = o + 4, v = new L("0.5"); if (h !== 1 || !l || !l[0]) @@ -69949,15 +69950,15 @@ ${gz(e, r)}`); } return z(X, X.e + o + 1, a, I); }, i.toExponential = function(I, H) { - return I != null && (Ur(I, 0, Sn), I++), D(this, I, H, 1); + return I != null && (Br(I, 0, Sn), I++), D(this, I, H, 1); }, i.toFixed = function(I, H) { - return I != null && (Ur(I, 0, Sn), I = I + this.e + 1), D(this, I, H); + return I != null && (Br(I, 0, Sn), I = I + this.e + 1), D(this, I, H); }, i.toFormat = function(I, H, X) { var V, S = this; if (X == null) I != null && H && typeof H == "object" ? (X = H, H = null) : I && typeof I == "object" ? (X = I, I = H = null) : X = N; else if (typeof X != "object") - throw Error(Di + "Argument not an object: " + X); + throw Error(Ci + "Argument not an object: " + X); if (V = S.toFixed(I, H), S.c) { var d, l = V.split("."), h = +X.groupSize, y = +X.secondaryGroupSize, x = X.groupSeparator || "", v = l[0], M = l[1], w = S.s < 0, g = w ? v.slice(1) : v, m = g.length; if (y && (d = h, h = y, y = d, m -= d), h > 0 && m > 0) { @@ -69974,10 +69975,10 @@ ${gz(e, r)}`); }, i.toFraction = function(I) { var H, X, V, S, d, l, h, y, x, v, M, w, g = this, m = g.c; if (I != null && (h = new L(I), !h.isInteger() && (h.c || h.s !== 1) || h.lt(s))) - throw Error(Di + "Argument " + (h.isInteger() ? "out of range: " : "not an integer: ") + T(h)); + throw Error(Ci + "Argument " + (h.isInteger() ? "out of range: " : "not an integer: ") + T(h)); if (!m) return new L(g); - for (H = new L(s), x = X = new L(s), V = y = new L(s), w = vs(m), d = H.e = w.length - g.e - 1, H.c[0] = Ib[(l = d % Pt) < 0 ? Pt + l : l], I = !I || h.comparedTo(H) > 0 ? d > 0 ? H : x : h, l = p, p = 1 / 0, h = new L(w), y.c[0] = 0; v = e(h, H, 0, 1), S = X.plus(v.times(V)), S.comparedTo(I) != 1; ) + for (H = new L(s), x = X = new L(s), V = y = new L(s), w = vs(m), d = H.e = w.length - g.e - 1, H.c[0] = Nb[(l = d % Pt) < 0 ? Pt + l : l], I = !I || h.comparedTo(H) > 0 ? d > 0 ? H : x : h, l = p, p = 1 / 0, h = new L(w), y.c[0] = 0; v = e(h, H, 0, 1), S = X.plus(v.times(V)), S.comparedTo(I) != 1; ) X = V, V = S, x = y.plus(v.times(S = x)), y = S, H = h.minus(v.times(S = H)), h = S; return S = e(I.minus(X), V, 0, 1), y = y.plus(S.times(x)), X = X.plus(S.times(V)), y.s = x.s = g.s, d = d * 2, M = e(x, V, d, a).minus(g).abs().comparedTo( e(y, X, d, a).minus(g).abs() @@ -69985,10 +69986,10 @@ ${gz(e, r)}`); }, i.toNumber = function() { return +T(this); }, i.toPrecision = function(I, H) { - return I != null && Ur(I, 1, Sn), D(this, I, H, 2); + return I != null && Br(I, 1, Sn), D(this, I, H, 2); }, i.toString = function(I) { var H, X = this, V = X.s, S = X.e; - return S === null ? V ? (H = "Infinity", V < 0 && (H = "-" + H)) : H = "NaN" : (I == null ? H = S <= c || S >= u ? xp(vs(X.c), S) : xa(vs(X.c), S, "0") : I === 10 && F ? (X = z(new L(X), o + S + 1, a), H = xa(vs(X.c), X.e, "0")) : (Ur(I, 2, k.length, "Base"), H = r(xa(vs(X.c), S, "0"), 10, I, V, true)), V < 0 && X.c[0] && (H = "-" + H)), H; + return S === null ? V ? (H = "Infinity", V < 0 && (H = "-" + H)) : H = "NaN" : (I == null ? H = S <= c || S >= u ? _p(vs(X.c), S) : wa(vs(X.c), S, "0") : I === 10 && F ? (X = z(new L(X), o + S + 1, a), H = wa(vs(X.c), X.e, "0")) : (Br(I, 2, k.length, "Base"), H = r(wa(vs(X.c), S, "0"), 10, I, V, true)), V < 0 && X.c[0] && (H = "-" + H)), H; }, i.valueOf = i.toJSON = function() { return T(this); }, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, t != null && L.set(t), L; @@ -70007,7 +70008,7 @@ ${gz(e, r)}`); ; return s.slice(0, i + 1 || 1); } - function Su(t, e) { + function Eu(t, e) { var r, n, i = t.c, s = e.c, o = t.s, a = e.s, c = t.e, u = e.e; if (!o || !a) return null; @@ -70024,18 +70025,18 @@ ${gz(e, r)}`); return i[o] > s[o] ^ r ? 1 : -1; return c == u ? 0 : c > u ^ r ? 1 : -1; } - function Ur(t, e, r, n) { + function Br(t, e, r, n) { if (t < e || t > r || t !== As(t)) - throw Error(Di + (n || "Argument") + (typeof t == "number" ? t < e || t > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(t)); + throw Error(Ci + (n || "Argument") + (typeof t == "number" ? t < e || t > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(t)); } - function vp(t) { + function xp(t) { var e = t.c.length - 1; return Ts(t.e / Pt) == e && t.c[e] % 2 != 0; } - function xp(t, e) { + function _p(t, e) { return (t.length > 1 ? t.charAt(0) + "." + t.slice(1) : t) + (e < 0 ? "e" : "e+") + e; } - function xa(t, e, r) { + function wa(t, e, r) { var n, i; if (e < 0) { for (i = r + "."; ++e; i += r) @@ -70050,8 +70051,8 @@ ${gz(e, r)}`); return t; } var yf = KD(); - var gt = /* @__PURE__ */ ((t) => (t[t._ = 0] = "_", t[t.LOADING = 1] = "LOADING", t[t.PARTIAL_DATA_LOADING = 2] = "PARTIAL_DATA_LOADING", t[t.MISSING_INPUT_VALUES = 3] = "MISSING_INPUT_VALUES", t[t.NOT_SET = 4] = "NOT_SET", t[t.ERROR = 5] = "ERROR", t[t.COMPLETE_DATA = 6] = "COMPLETE_DATA", t))(gt || {}); - var Px = class { + var vt = /* @__PURE__ */ ((t) => (t[t._ = 0] = "_", t[t.LOADING = 1] = "LOADING", t[t.PARTIAL_DATA_LOADING = 2] = "PARTIAL_DATA_LOADING", t[t.MISSING_INPUT_VALUES = 3] = "MISSING_INPUT_VALUES", t[t.NOT_SET = 4] = "NOT_SET", t[t.ERROR = 5] = "ERROR", t[t.COMPLETE_DATA = 6] = "COMPLETE_DATA", t))(vt || {}); + var Ox = class { constructor(e, r) { this.data = e, this._status = r; } @@ -70072,10 +70073,10 @@ ${gz(e, r)}`); return JSON.stringify({ data: this.data, status: this._status }); } }; - function rS(t, e, r) { + function eS(t, e, r) { return { code: t || 6, message: e, propName: r }; } - function l0e(t, e, r) { + function h0e(t, e, r) { var i; let n = []; if (!t) @@ -70083,25 +70084,25 @@ ${gz(e, r)}`); if (Array.isArray(t) && t.length) if (((i = t[0]) == null ? void 0 : i.code) == null) t.forEach( - (s) => n.push(rS(s)) + (s) => n.push(eS(s)) ); else return t; else (t == null ? void 0 : t.code) == null && n.push( - rS(t, e, r) + eS(t, e, r) ); return n; } - var bt = (t, e, r, n) => new Px( + var xt = (t, e, r, n) => new Ox( t, - l0e(e, r, n) + h0e(e, r, n) ); - var Zf = (t) => t instanceof Px; - var p2 = (t) => t.reduce((e, r) => (r.getStatusList().forEach((n) => { + var p2 = (t) => t instanceof Ox; + var m2 = (t) => t.reduce((e, r) => (r.getStatusList().forEach((n) => { !n.propName && e.indexOf(n.code) < 0 && e.push(n.code); }), e), []); - var m2 = (t) => t.reduce( + var g2 = (t) => t.reduce( (i, s) => { const o = s ? s.getStatusList() : [void 0]; return i.concat(o); @@ -70237,7 +70238,7 @@ ${gz(e, r)}`); type: "function" } ]; - var h0e = [ + var p0e = [ { inputs: [ { @@ -70258,7 +70259,7 @@ ${gz(e, r)}`); type: "function" } ]; - var d0e = [ + var m0e = [ { inputs: [ { @@ -70279,44 +70280,44 @@ ${gz(e, r)}`); type: "function" } ]; - var p0e = (t, e) => { + var g0e = (t, e) => { let r, n; return t.token1.address.toLowerCase() === e.toLowerCase() ? (r = parseInt(t.reserve1, 10), n = parseInt(t.reserve2, 10)) : (r = parseInt(t.reserve2, 10), n = parseInt(t.reserve1, 10)), { reefReserve: r, tokenReserve: n }; }; - var m0e = (t, e, r) => t.find((n) => { + var y0e = (t, e, r) => t.find((n) => { var s, o, a, c; if (!(n != null && n.data)) return false; const i = n.data; return ((s = i.token1) == null ? void 0 : s.address.toLowerCase()) === e.toLowerCase() && ((o = i.token2) == null ? void 0 : o.address.toLowerCase()) === r.address.toLowerCase() || ((a = i.token2) == null ? void 0 : a.address.toLowerCase()) === e.toLowerCase() && ((c = i.token1) == null ? void 0 : c.address.toLowerCase()) === r.address.toLowerCase(); }); - var g0e = (t, e, r) => { + var b0e = (t, e, r) => { let n; if (t.address.toLowerCase() === Ls.toLowerCase()) return r; - const i = m0e(e.data, Ls, t), s = m2([i, r]); - if (!i || !i.data || s < gt.COMPLETE_DATA) - return e.hasStatus(gt.LOADING) ? bt(0, gt.LOADING) : !i || i.hasStatus(gt.ERROR) ? bt( + const i = y0e(e.data, Ls, t), s = g2([i, r]); + if (!i || !i.data || s < vt.COMPLETE_DATA) + return e.hasStatus(vt.LOADING) ? xt(0, vt.LOADING) : !i || i.hasStatus(vt.ERROR) ? xt( 0, - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Pool not found." - ) : bt(0, s); - const { reefReserve: o, tokenReserve: a } = p0e( + ) : xt(0, s); + const { reefReserve: o, tokenReserve: a } = g0e( i.data, Ls ); n = o / a; const c = n * r.data; - return bt(c, gt.COMPLETE_DATA); + return xt(c, vt.COMPLETE_DATA); }; var YD = (t) => { switch (t) { - case Kc.ERC20: + case Wc.ERC20: return XD; - case Kc.ERC721: - return h0e; - case Kc.ERC1155: - return d0e; + case Wc.ERC721: + return p0e; + case Wc.ERC1155: + return m0e; default: return []; } @@ -70335,52 +70336,52 @@ ${gz(e, r)}`); return t.apply(e, arguments); }; } - var { toString: x0e } = Object.prototype; - var { getPrototypeOf: kx } = Object; - var g2 = ((t) => (e) => { - const r = x0e.call(e); + var { toString: E0e } = Object.prototype; + var { getPrototypeOf: Px } = Object; + var y2 = ((t) => (e) => { + const r = E0e.call(e); return t[r] || (t[r] = r.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)); - var vo = (t) => (t = t.toLowerCase(), (e) => g2(e) === t); - var y2 = (t) => (e) => typeof e === t; - var { isArray: Jf } = Array; - var Dd = y2("undefined"); - function _0e(t) { - return t !== null && !Dd(t) && t.constructor !== null && !Dd(t.constructor) && Bs(t.constructor.isBuffer) && t.constructor.isBuffer(t); - } - var eL = vo("ArrayBuffer"); - function E0e(t) { + var wo = (t) => (t = t.toLowerCase(), (e) => y2(e) === t); + var b2 = (t) => (e) => typeof e === t; + var { isArray: Zf } = Array; + var Cd = b2("undefined"); + function S0e(t) { + return t !== null && !Cd(t) && t.constructor !== null && !Cd(t.constructor) && as(t.constructor.isBuffer) && t.constructor.isBuffer(t); + } + var eL = wo("ArrayBuffer"); + function M0e(t) { let e; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && eL(t.buffer), e; } - var S0e = y2("string"); - var Bs = y2("function"); - var tL = y2("number"); - var b2 = (t) => t !== null && typeof t == "object"; - var M0e = (t) => t === true || t === false; - var u1 = (t) => { - if (g2(t) !== "object") + var A0e = b2("string"); + var as = b2("function"); + var tL = b2("number"); + var w2 = (t) => t !== null && typeof t == "object"; + var T0e = (t) => t === true || t === false; + var l1 = (t) => { + if (y2(t) !== "object") return false; - const e = kx(t); + const e = Px(t); return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t); }; - var A0e = vo("Date"); - var T0e = vo("File"); - var N0e = vo("Blob"); - var I0e = vo("FileList"); - var O0e = (t) => b2(t) && Bs(t.pipe); - var P0e = (t) => { + var N0e = wo("Date"); + var I0e = wo("File"); + var O0e = wo("Blob"); + var P0e = wo("FileList"); + var k0e = (t) => w2(t) && as(t.pipe); + var R0e = (t) => { let e; - return t && (typeof FormData == "function" && t instanceof FormData || Bs(t.append) && ((e = g2(t)) === "formdata" || e === "object" && Bs(t.toString) && t.toString() === "[object FormData]")); + return t && (typeof FormData == "function" && t instanceof FormData || as(t.append) && ((e = y2(t)) === "formdata" || e === "object" && as(t.toString) && t.toString() === "[object FormData]")); }; - var k0e = vo("URLSearchParams"); - var [R0e, C0e, D0e, L0e] = ["ReadableStream", "Request", "Response", "Headers"].map(vo); - var B0e = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); + var C0e = wo("URLSearchParams"); + var [D0e, L0e, B0e, U0e] = ["ReadableStream", "Request", "Response", "Headers"].map(wo); + var j0e = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function M0(t, e, { allOwnKeys: r = false } = {}) { if (t === null || typeof t > "u") return; let n, i; - if (typeof t != "object" && (t = [t]), Jf(t)) + if (typeof t != "object" && (t = [t]), Zf(t)) for (n = 0, i = t.length; n < i; n++) e.call(null, t[n], n, t); else { @@ -70399,27 +70400,27 @@ ${gz(e, r)}`); return i; return null; } - var nL = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(); - var iL = (t) => !Dd(t) && t !== nL; - function j5() { - const { caseless: t } = iL(this) && this || {}, e = {}, r = (n, i) => { + var Lu = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(); + var nL = (t) => !Cd(t) && t !== Lu; + function U5() { + const { caseless: t } = nL(this) && this || {}, e = {}, r = (n, i) => { const s = t && rL(e, i) || i; - u1(e[s]) && u1(n) ? e[s] = j5(e[s], n) : u1(n) ? e[s] = j5({}, n) : Jf(n) ? e[s] = n.slice() : e[s] = n; + l1(e[s]) && l1(n) ? e[s] = U5(e[s], n) : l1(n) ? e[s] = U5({}, n) : Zf(n) ? e[s] = n.slice() : e[s] = n; }; for (let n = 0, i = arguments.length; n < i; n++) arguments[n] && M0(arguments[n], r); return e; } - var U0e = (t, e, r, { allOwnKeys: n } = {}) => (M0(e, (i, s) => { - r && Bs(i) ? t[s] = $D(i, r) : t[s] = i; + var V0e = (t, e, r, { allOwnKeys: n } = {}) => (M0(e, (i, s) => { + r && as(i) ? t[s] = $D(i, r) : t[s] = i; }, { allOwnKeys: n }), t); - var j0e = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t); - var V0e = (t, e, r, n) => { + var z0e = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t); + var F0e = (t, e, r, n) => { t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r); }; - var z0e = (t, e, r, n) => { + var H0e = (t, e, r, n) => { let i, s, o; const a = {}; if (e = e || {}, t == null) @@ -70427,19 +70428,19 @@ ${gz(e, r)}`); do { for (i = Object.getOwnPropertyNames(t), s = i.length; s-- > 0; ) o = i[s], (!n || n(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = true); - t = r !== false && kx(t); + t = r !== false && Px(t); } while (t && (!r || r(t, e)) && t !== Object.prototype); return e; }; - var F0e = (t, e, r) => { + var q0e = (t, e, r) => { t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; const n = t.indexOf(e, r); return n !== -1 && n === r; }; - var H0e = (t) => { + var W0e = (t) => { if (!t) return null; - if (Jf(t)) + if (Zf(t)) return t; let e = t.length; if (!tL(e)) @@ -70449,8 +70450,8 @@ ${gz(e, r)}`); r[e] = t[e]; return r; }; - var q0e = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kx(Uint8Array)); - var W0e = (t, e) => { + var G0e = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Px(Uint8Array)); + var K0e = (t, e) => { const n = (t && t[Symbol.iterator]).call(t); let i; for (; (i = n.next()) && !i.done; ) { @@ -70458,35 +70459,35 @@ ${gz(e, r)}`); e.call(t, s[0], s[1]); } }; - var G0e = (t, e) => { + var X0e = (t, e) => { let r; const n = []; for (; (r = t.exec(e)) !== null; ) n.push(r); return n; }; - var K0e = vo("HTMLFormElement"); - var X0e = (t) => t.toLowerCase().replace( + var Y0e = wo("HTMLFormElement"); + var Z0e = (t) => t.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(r, n, i) { return n.toUpperCase() + i; } ); - var nS = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype); - var Y0e = vo("RegExp"); - var sL = (t, e) => { + var tS = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype); + var J0e = wo("RegExp"); + var iL = (t, e) => { const r = Object.getOwnPropertyDescriptors(t), n = {}; M0(r, (i, s) => { let o; (o = e(i, s, t)) !== false && (n[s] = o || i); }), Object.defineProperties(t, n); }; - var Z0e = (t) => { - sL(t, (e, r) => { - if (Bs(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) + var Q0e = (t) => { + iL(t, (e, r) => { + if (as(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return false; const n = t[r]; - if (Bs(n)) { + if (as(n)) { if (e.enumerable = false, "writable" in e) { e.writable = false; return; @@ -70497,45 +70498,45 @@ ${gz(e, r)}`); } }); }; - var J0e = (t, e) => { + var $0e = (t, e) => { const r = {}, n = (i) => { i.forEach((s) => { r[s] = true; }); }; - return Jf(t) ? n(t) : n(String(t).split(e)), r; + return Zf(t) ? n(t) : n(String(t).split(e)), r; }; - var Q0e = () => { + var epe = () => { }; - var $0e = (t, e) => t != null && Number.isFinite(t = +t) ? t : e; - var Ob = "abcdefghijklmnopqrstuvwxyz"; - var iS = "0123456789"; - var oL = { - DIGIT: iS, - ALPHA: Ob, - ALPHA_DIGIT: Ob + Ob.toUpperCase() + iS + var tpe = (t, e) => t != null && Number.isFinite(t = +t) ? t : e; + var Ib = "abcdefghijklmnopqrstuvwxyz"; + var rS = "0123456789"; + var sL = { + DIGIT: rS, + ALPHA: Ib, + ALPHA_DIGIT: Ib + Ib.toUpperCase() + rS }; - var epe = (t = 16, e = oL.ALPHA_DIGIT) => { + var rpe = (t = 16, e = sL.ALPHA_DIGIT) => { let r = ""; const { length: n } = e; for (; t--; ) r += e[Math.random() * n | 0]; return r; }; - function tpe(t) { - return !!(t && Bs(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); + function npe(t) { + return !!(t && as(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); } - var rpe = (t) => { + var ipe = (t) => { const e = new Array(10), r = (n, i) => { - if (b2(n)) { + if (w2(n)) { if (e.indexOf(n) >= 0) return; if (!("toJSON" in n)) { e[i] = n; - const s = Jf(n) ? [] : {}; + const s = Zf(n) ? [] : {}; return M0(n, (o, a) => { const c = r(o, i + 1); - !Dd(c) && (s[a] = c); + !Cd(c) && (s[a] = c); }), e[i] = void 0, s; } } @@ -70543,64 +70544,75 @@ ${gz(e, r)}`); }; return r(t, 0); }; - var npe = vo("AsyncFunction"); - var ipe = (t) => t && (b2(t) || Bs(t)) && Bs(t.then) && Bs(t.catch); + var spe = wo("AsyncFunction"); + var ope = (t) => t && (w2(t) || as(t)) && as(t.then) && as(t.catch); + var oL = ((t, e) => t ? setImmediate : e ? ((r, n) => (Lu.addEventListener("message", ({ source: i, data: s }) => { + i === Lu && s === r && n.length && n.shift()(); + }, false), (i) => { + n.push(i), Lu.postMessage(r, "*"); + }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))( + typeof setImmediate == "function", + as(Lu.postMessage) + ); + var ape = typeof queueMicrotask < "u" ? queueMicrotask.bind(Lu) : typeof process < "u" && process.nextTick || oL; var Ie = { - isArray: Jf, + isArray: Zf, isArrayBuffer: eL, - isBuffer: _0e, - isFormData: P0e, - isArrayBufferView: E0e, - isString: S0e, + isBuffer: S0e, + isFormData: R0e, + isArrayBufferView: M0e, + isString: A0e, isNumber: tL, - isBoolean: M0e, - isObject: b2, - isPlainObject: u1, - isReadableStream: R0e, - isRequest: C0e, - isResponse: D0e, - isHeaders: L0e, - isUndefined: Dd, - isDate: A0e, - isFile: T0e, - isBlob: N0e, - isRegExp: Y0e, - isFunction: Bs, - isStream: O0e, - isURLSearchParams: k0e, - isTypedArray: q0e, - isFileList: I0e, + isBoolean: T0e, + isObject: w2, + isPlainObject: l1, + isReadableStream: D0e, + isRequest: L0e, + isResponse: B0e, + isHeaders: U0e, + isUndefined: Cd, + isDate: N0e, + isFile: I0e, + isBlob: O0e, + isRegExp: J0e, + isFunction: as, + isStream: k0e, + isURLSearchParams: C0e, + isTypedArray: G0e, + isFileList: P0e, forEach: M0, - merge: j5, - extend: U0e, - trim: B0e, - stripBOM: j0e, - inherits: V0e, - toFlatObject: z0e, - kindOf: g2, - kindOfTest: vo, - endsWith: F0e, - toArray: H0e, - forEachEntry: W0e, - matchAll: G0e, - isHTMLForm: K0e, - hasOwnProperty: nS, - hasOwnProp: nS, - reduceDescriptors: sL, - freezeMethods: Z0e, - toObjectSet: J0e, - toCamelCase: X0e, - noop: Q0e, - toFiniteNumber: $0e, + merge: U5, + extend: V0e, + trim: j0e, + stripBOM: z0e, + inherits: F0e, + toFlatObject: H0e, + kindOf: y2, + kindOfTest: wo, + endsWith: q0e, + toArray: W0e, + forEachEntry: K0e, + matchAll: X0e, + isHTMLForm: Y0e, + hasOwnProperty: tS, + hasOwnProp: tS, + reduceDescriptors: iL, + freezeMethods: Q0e, + toObjectSet: $0e, + toCamelCase: Z0e, + noop: epe, + toFiniteNumber: tpe, findKey: rL, - global: nL, - isContextDefined: iL, - ALPHABET: oL, - generateString: epe, - isSpecCompliantForm: tpe, - toJSONObject: rpe, - isAsyncFn: npe, - isThenable: ipe + global: Lu, + isContextDefined: nL, + ALPHABET: sL, + generateString: rpe, + isSpecCompliantForm: npe, + toJSONObject: ipe, + isAsyncFn: spe, + isThenable: ope, + setImmediate: oL, + asap: ape }; function Dt(t, e, r, n, i) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i); @@ -70648,25 +70660,25 @@ ${gz(e, r)}`); return c !== Error.prototype; }, (a) => a !== "isAxiosError"), Dt.call(o, t.message, e, r, n, i), o.cause = t, o.name = t.name, s && Object.assign(o, s), o; }; - var spe = null; - function V5(t) { + var cpe = null; + function j5(t) { return Ie.isPlainObject(t) || Ie.isArray(t); } function uL(t) { return Ie.endsWith(t, "[]") ? t.slice(0, -2) : t; } - function sS(t, e, r) { + function nS(t, e, r) { return t ? t.concat(e).map(function(i, s) { return i = uL(i), !r && s ? "[" + i + "]" : i; }).join(r ? "." : "") : e; } - function ope(t) { - return Ie.isArray(t) && !t.some(V5); + function upe(t) { + return Ie.isArray(t) && !t.some(j5); } - var ape = Ie.toFlatObject(Ie, {}, null, function(e) { + var lpe = Ie.toFlatObject(Ie, {}, null, function(e) { return /^is[A-Z]/.test(e); }); - function w2(t, e, r) { + function v2(t, e, r) { if (!Ie.isObject(t)) throw new TypeError("target must be an object"); e = e || new FormData(), r = Ie.toFlatObject(r, { @@ -70693,20 +70705,20 @@ ${gz(e, r)}`); if (_ && !k && typeof _ == "object") { if (Ie.endsWith(N, "{}")) N = n ? N : N.slice(0, -2), _ = JSON.stringify(_); - else if (Ie.isArray(_) && ope(_) || (Ie.isFileList(_) || Ie.endsWith(N, "[]")) && (F = Ie.toArray(_))) + else if (Ie.isArray(_) && upe(_) || (Ie.isFileList(_) || Ie.endsWith(N, "[]")) && (F = Ie.toArray(_))) return N = uL(N), F.forEach(function(D, q) { !(Ie.isUndefined(D) || D === null) && e.append( - o === true ? sS([N], q, s) : o === null ? N : N + "[]", + o === true ? nS([N], q, s) : o === null ? N : N + "[]", u(D) ); }), false; } - return V5(_) ? true : (e.append(sS(k, N, s), u(_)), false); + return j5(_) ? true : (e.append(nS(k, N, s), u(_)), false); } - const p = [], b = Object.assign(ape, { + const p = [], b = Object.assign(lpe, { defaultVisitor: f, convertValue: u, - isVisitable: V5 + isVisitable: j5 }); function E(_, N) { if (!Ie.isUndefined(_)) { @@ -70727,7 +70739,7 @@ ${gz(e, r)}`); throw new TypeError("data must be an object"); return E(t), e; } - function oS(t) { + function iS(t) { const e = { "!": "%21", "'": "%27", @@ -70741,36 +70753,36 @@ ${gz(e, r)}`); return e[n]; }); } - function Rx(t, e) { - this._pairs = [], t && w2(t, this, e); + function kx(t, e) { + this._pairs = [], t && v2(t, this, e); } - var lL = Rx.prototype; + var lL = kx.prototype; lL.append = function(e, r) { this._pairs.push([e, r]); }; lL.toString = function(e) { const r = e ? function(n) { - return e.call(this, n, oS); - } : oS; + return e.call(this, n, iS); + } : iS; return this._pairs.map(function(i) { return r(i[0]) + "=" + r(i[1]); }, "").join("&"); }; - function cpe(t) { + function fpe(t) { return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function fL(t, e, r) { if (!e) return t; - const n = r && r.encode || cpe, i = r && r.serialize; + const n = r && r.encode || fpe, i = r && r.serialize; let s; - if (i ? s = i(e, r) : s = Ie.isURLSearchParams(e) ? e.toString() : new Rx(e, r).toString(n), s) { + if (i ? s = i(e, r) : s = Ie.isURLSearchParams(e) ? e.toString() : new kx(e, r).toString(n), s) { const o = t.indexOf("#"); o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + s; } return t; } - var upe = class { + var hpe = class { constructor() { this.handlers = []; } @@ -70794,50 +70806,50 @@ ${gz(e, r)}`); }); } }; - var aS = upe; + var sS = hpe; var hL = { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }; - var lpe = typeof URLSearchParams < "u" ? URLSearchParams : Rx; - var fpe = typeof FormData < "u" ? FormData : null; - var hpe = typeof Blob < "u" ? Blob : null; - var dpe = { + var dpe = typeof URLSearchParams < "u" ? URLSearchParams : kx; + var ppe = typeof FormData < "u" ? FormData : null; + var mpe = typeof Blob < "u" ? Blob : null; + var gpe = { isBrowser: true, classes: { - URLSearchParams: lpe, - FormData: fpe, - Blob: hpe + URLSearchParams: dpe, + FormData: ppe, + Blob: mpe }, protocols: ["http", "https", "file", "blob", "url", "data"] }; - var Cx = typeof window < "u" && typeof document < "u"; - var ppe = ((t) => Cx && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product); - var mpe = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(); - var gpe = Cx && window.location.href || "http://localhost"; - var ype = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Rx = typeof window < "u" && typeof document < "u"; + var ype = ((t) => Rx && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product); + var bpe = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(); + var wpe = Rx && window.location.href || "http://localhost"; + var vpe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasBrowserEnv: Cx, - hasStandardBrowserEnv: ppe, - hasStandardBrowserWebWorkerEnv: mpe, - origin: gpe + hasBrowserEnv: Rx, + hasStandardBrowserEnv: ype, + hasStandardBrowserWebWorkerEnv: bpe, + origin: wpe }, Symbol.toStringTag, { value: "Module" })); - var mo = { - ...ype, - ...dpe + var po = { + ...vpe, + ...gpe }; - function bpe(t, e) { - return w2(t, new mo.classes.URLSearchParams(), Object.assign({ + function xpe(t, e) { + return v2(t, new po.classes.URLSearchParams(), Object.assign({ visitor: function(r, n, i, s) { - return mo.isNode && Ie.isBuffer(r) ? (this.append(n, r.toString("base64")), false) : s.defaultVisitor.apply(this, arguments); + return po.isNode && Ie.isBuffer(r) ? (this.append(n, r.toString("base64")), false) : s.defaultVisitor.apply(this, arguments); } }, e)); } - function wpe(t) { + function _pe(t) { return Ie.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]); } - function vpe(t) { + function Epe(t) { const e = {}, r = Object.keys(t); let n; const i = r.length; @@ -70852,17 +70864,17 @@ ${gz(e, r)}`); if (o === "__proto__") return true; const a = Number.isFinite(+o), c = s >= r.length; - return o = !o && Ie.isArray(i) ? i.length : o, c ? (Ie.hasOwnProp(i, o) ? i[o] = [i[o], n] : i[o] = n, !a) : ((!i[o] || !Ie.isObject(i[o])) && (i[o] = []), e(r, n, i[o], s) && Ie.isArray(i[o]) && (i[o] = vpe(i[o])), !a); + return o = !o && Ie.isArray(i) ? i.length : o, c ? (Ie.hasOwnProp(i, o) ? i[o] = [i[o], n] : i[o] = n, !a) : ((!i[o] || !Ie.isObject(i[o])) && (i[o] = []), e(r, n, i[o], s) && Ie.isArray(i[o]) && (i[o] = Epe(i[o])), !a); } if (Ie.isFormData(t) && Ie.isFunction(t.entries)) { const r = {}; return Ie.forEachEntry(t, (n, i) => { - e(wpe(n), i, r, 0); + e(_pe(n), i, r, 0); }), r; } return null; } - function xpe(t, e, r) { + function Spe(t, e, r) { if (Ie.isString(t)) try { return (e || JSON.parse)(t), Ie.trim(t); @@ -70872,7 +70884,7 @@ ${gz(e, r)}`); } return (r || JSON.stringify)(t); } - var Dx = { + var Cx = { transitional: hL, adapter: ["xhr", "http", "fetch"], transformRequest: [function(e, r) { @@ -70888,20 +70900,20 @@ ${gz(e, r)}`); let a; if (s) { if (n.indexOf("application/x-www-form-urlencoded") > -1) - return bpe(e, this.formSerializer).toString(); + return xpe(e, this.formSerializer).toString(); if ((a = Ie.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { const c = this.env && this.env.FormData; - return w2( + return v2( a ? { "files[]": e } : e, c && new c(), this.formSerializer ); } } - return s || i ? (r.setContentType("application/json", false), xpe(e)) : e; + return s || i ? (r.setContentType("application/json", false), Spe(e)) : e; }], transformResponse: [function(e) { - const r = this.transitional || Dx.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json"; + const r = this.transitional || Cx.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json"; if (Ie.isResponse(e) || Ie.isReadableStream(e)) return e; if (e && Ie.isString(e) && (n && !this.responseType || i)) { @@ -70921,8 +70933,8 @@ ${gz(e, r)}`); maxContentLength: -1, maxBodyLength: -1, env: { - FormData: mo.classes.FormData, - Blob: mo.classes.Blob + FormData: po.classes.FormData, + Blob: po.classes.Blob }, validateStatus: function(e) { return e >= 200 && e < 300; @@ -70935,10 +70947,10 @@ ${gz(e, r)}`); } }; Ie.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { - Dx.headers[t] = {}; + Cx.headers[t] = {}; }); - var Lx = Dx; - var _pe = Ie.toObjectSet([ + var Dx = Cx; + var Mpe = Ie.toObjectSet([ "age", "authorization", "content-length", @@ -70957,30 +70969,30 @@ ${gz(e, r)}`); "retry-after", "user-agent" ]); - var Epe = (t) => { + var Ape = (t) => { const e = {}; let r, n, i; return t && t.split(` `).forEach(function(o) { - i = o.indexOf(":"), r = o.substring(0, i).trim().toLowerCase(), n = o.substring(i + 1).trim(), !(!r || e[r] && _pe[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n); + i = o.indexOf(":"), r = o.substring(0, i).trim().toLowerCase(), n = o.substring(i + 1).trim(), !(!r || e[r] && Mpe[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n); }), e; }; - var cS = Symbol("internals"); - function Oh(t) { + var oS = Symbol("internals"); + function Ih(t) { return t && String(t).trim().toLowerCase(); } - function l1(t) { - return t === false || t == null ? t : Ie.isArray(t) ? t.map(l1) : String(t); + function f1(t) { + return t === false || t == null ? t : Ie.isArray(t) ? t.map(f1) : String(t); } - function Spe(t) { + function Tpe(t) { const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let n; for (; n = r.exec(t); ) e[n[1]] = n[2]; return e; } - var Mpe = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()); - function Pb(t, e, r, n, i) { + var Npe = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()); + function Ob(t, e, r, n, i) { if (Ie.isFunction(n)) return n.call(this, e, r); if (i && (e = r), !!Ie.isString(e)) { @@ -70990,10 +71002,10 @@ ${gz(e, r)}`); return n.test(e); } } - function Ape(t) { + function Ipe(t) { return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n); } - function Tpe(t, e) { + function Ope(t, e) { const r = Ie.toCamelCase(" " + e); ["get", "set", "has"].forEach((n) => { Object.defineProperty(t, n + r, { @@ -71004,24 +71016,24 @@ ${gz(e, r)}`); }); }); } - var v2 = class { + var x2 = class { constructor(e) { e && this.set(e); } set(e, r, n) { const i = this; function s(a, c, u) { - const f = Oh(c); + const f = Ih(c); if (!f) throw new Error("header name must be a non-empty string"); const p = Ie.findKey(i, f); - (!p || i[p] === void 0 || u === true || u === void 0 && i[p] !== false) && (i[p || c] = l1(a)); + (!p || i[p] === void 0 || u === true || u === void 0 && i[p] !== false) && (i[p || c] = f1(a)); } const o = (a, c) => Ie.forEach(a, (u, f) => s(u, f, c)); if (Ie.isPlainObject(e) || e instanceof this.constructor) o(e, r); - else if (Ie.isString(e) && (e = e.trim()) && !Mpe(e)) - o(Epe(e), r); + else if (Ie.isString(e) && (e = e.trim()) && !Npe(e)) + o(Ape(e), r); else if (Ie.isHeaders(e)) for (const [a, c] of e.entries()) s(c, a, n); @@ -71030,14 +71042,14 @@ ${gz(e, r)}`); return this; } get(e, r) { - if (e = Oh(e), e) { + if (e = Ih(e), e) { const n = Ie.findKey(this, e); if (n) { const i = this[n]; if (!r) return i; if (r === true) - return Spe(i); + return Tpe(i); if (Ie.isFunction(r)) return r.call(this, i, n); if (Ie.isRegExp(r)) @@ -71047,9 +71059,9 @@ ${gz(e, r)}`); } } has(e, r) { - if (e = Oh(e), e) { + if (e = Ih(e), e) { const n = Ie.findKey(this, e); - return !!(n && this[n] !== void 0 && (!r || Pb(this, this[n], n, r))); + return !!(n && this[n] !== void 0 && (!r || Ob(this, this[n], n, r))); } return false; } @@ -71057,9 +71069,9 @@ ${gz(e, r)}`); const n = this; let i = false; function s(o) { - if (o = Oh(o), o) { + if (o = Ih(o), o) { const a = Ie.findKey(n, o); - a && (!r || Pb(n, n[a], a, r)) && (delete n[a], i = true); + a && (!r || Ob(n, n[a], a, r)) && (delete n[a], i = true); } } return Ie.isArray(e) ? e.forEach(s) : s(e), i; @@ -71069,7 +71081,7 @@ ${gz(e, r)}`); let n = r.length, i = false; for (; n--; ) { const s = r[n]; - (!e || Pb(this, this[s], s, e, true)) && (delete this[s], i = true); + (!e || Ob(this, this[s], s, e, true)) && (delete this[s], i = true); } return i; } @@ -71078,11 +71090,11 @@ ${gz(e, r)}`); return Ie.forEach(this, (i, s) => { const o = Ie.findKey(n, s); if (o) { - r[o] = l1(i), delete r[s]; + r[o] = f1(i), delete r[s]; return; } - const a = e ? Ape(s) : String(s).trim(); - a !== s && delete r[s], r[a] = l1(i), n[a] = true; + const a = e ? Ipe(s) : String(s).trim(); + a !== s && delete r[s], r[a] = f1(i), n[a] = true; }), this; } concat(...e) { @@ -71112,18 +71124,18 @@ ${gz(e, r)}`); return r.forEach((i) => n.set(i)), n; } static accessor(e) { - const n = (this[cS] = this[cS] = { + const n = (this[oS] = this[oS] = { accessors: {} }).accessors, i = this.prototype; function s(o) { - const a = Oh(o); - n[a] || (Tpe(i, o), n[a] = true); + const a = Ih(o); + n[a] || (Ope(i, o), n[a] = true); } return Ie.isArray(e) ? e.forEach(s) : s(e), this; } }; - v2.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); - Ie.reduceDescriptors(v2.prototype, ({ value: t }, e) => { + x2.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); + Ie.reduceDescriptors(x2.prototype, ({ value: t }, e) => { let r = e[0].toUpperCase() + e.slice(1); return { get: () => t, @@ -71132,10 +71144,10 @@ ${gz(e, r)}`); } }; }); - Ie.freezeMethods(v2); - var go = v2; - function kb(t, e) { - const r = this || Lx, n = e || r, i = go.from(n.headers); + Ie.freezeMethods(x2); + var mo = x2; + function Pb(t, e) { + const r = this || Dx, n = e || r, i = mo.from(n.headers); let s = n.data; return Ie.forEach(t, function(a) { s = a.call(r, s, i.normalize(), e ? e.status : void 0); @@ -71144,10 +71156,10 @@ ${gz(e, r)}`); function pL(t) { return !!(t && t.__CANCEL__); } - function Qf(t, e, r) { + function Jf(t, e, r) { Dt.call(this, t ?? "canceled", Dt.ERR_CANCELED, e, r), this.name = "CanceledError"; } - Ie.inherits(Qf, Dt, { + Ie.inherits(Jf, Dt, { __CANCEL__: true }); function mL(t, e, r) { @@ -71160,11 +71172,11 @@ ${gz(e, r)}`); r )); } - function Npe(t) { + function Ppe(t) { const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t); return e && e[1] || ""; } - function Ipe(t, e) { + function kpe(t, e) { t = t || 10; const r = new Array(t), n = new Array(t); let i = 0, s = 0, o; @@ -71180,21 +71192,22 @@ ${gz(e, r)}`); return E ? Math.round(b * 1e3 / E) : void 0; }; } - function Ope(t, e) { - let r = 0; - const n = 1e3 / e; - let i = null; - return function() { - const o = this === true, a = Date.now(); - if (o || a - r > n) - return i && (clearTimeout(i), i = null), r = a, t.apply(null, arguments); - i || (i = setTimeout(() => (i = null, r = Date.now(), t.apply(null, arguments)), n - (a - r))); + function Rpe(t, e) { + let r = 0, n = 1e3 / e, i, s; + const o = (u, f = Date.now()) => { + r = f, i = null, s && (clearTimeout(s), s = null), t.apply(null, u); }; - } - var Mm = (t, e, r = 3) => { + return [(...u) => { + const f = Date.now(), p = f - r; + p >= n ? o(u, f) : (i = u, s || (s = setTimeout(() => { + s = null, o(i); + }, n - p))); + }, () => i && o(i)]; + } + var Am = (t, e, r = 3) => { let n = 0; - const i = Ipe(50, 250); - return Ope((s) => { + const i = kpe(50, 250); + return Rpe((s) => { const o = s.loaded, a = s.lengthComputable ? s.total : void 0, c = o - n, u = i(c), f = o <= a; n = o; const p = { @@ -71205,12 +71218,22 @@ ${gz(e, r)}`); rate: u || void 0, estimated: u && a && f ? (a - o) / u : void 0, event: s, - lengthComputable: a != null + lengthComputable: a != null, + [e ? "download" : "upload"]: true }; - p[e ? "download" : "upload"] = true, t(p); + t(p); }, r); }; - var Ppe = mo.hasStandardBrowserEnv ? function() { + var aS = (t, e) => { + const r = t != null; + return [(n) => e[0]({ + lengthComputable: r, + total: t, + loaded: n + }), e[1]]; + }; + var cS = (t) => (...e) => Ie.asap(() => t(...e)); + var Cpe = po.hasStandardBrowserEnv ? function() { const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"); let n; function i(s) { @@ -71235,7 +71258,7 @@ ${gz(e, r)}`); return true; }; }(); - var kpe = mo.hasStandardBrowserEnv ? { + var Dpe = po.hasStandardBrowserEnv ? { write(t, e, r, n, i, s) { const o = [t + "=" + encodeURIComponent(e)]; Ie.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), Ie.isString(n) && o.push("path=" + n), Ie.isString(i) && o.push("domain=" + i), s === true && o.push("secure"), document.cookie = o.join("; "); @@ -71256,16 +71279,16 @@ ${gz(e, r)}`); remove() { } }; - function Rpe(t) { + function Lpe(t) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t); } - function Cpe(t, e) { + function Bpe(t, e) { return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t; } function gL(t, e) { - return t && !Rpe(e) ? Cpe(t, e) : e; + return t && !Lpe(e) ? Bpe(t, e) : e; } - var uS = (t) => t instanceof go ? { ...t } : t; + var uS = (t) => t instanceof mo ? { ...t } : t; function cl(t, e) { e = e || {}; const r = {}; @@ -71335,91 +71358,91 @@ ${gz(e, r)}`); var yL = (t) => { const e = cl({}, t); let { data: r, withXSRFToken: n, xsrfHeaderName: i, xsrfCookieName: s, headers: o, auth: a } = e; - e.headers = o = go.from(o), e.url = fL(gL(e.baseURL, e.url), t.params, t.paramsSerializer), a && o.set( + e.headers = o = mo.from(o), e.url = fL(gL(e.baseURL, e.url), t.params, t.paramsSerializer), a && o.set( "Authorization", "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")) ); let c; if (Ie.isFormData(r)) { - if (mo.hasStandardBrowserEnv || mo.hasStandardBrowserWebWorkerEnv) + if (po.hasStandardBrowserEnv || po.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0); else if ((c = o.getContentType()) !== false) { const [u, ...f] = c ? c.split(";").map((p) => p.trim()).filter(Boolean) : []; o.setContentType([u || "multipart/form-data", ...f].join("; ")); } } - if (mo.hasStandardBrowserEnv && (n && Ie.isFunction(n) && (n = n(e)), n || n !== false && Ppe(e.url))) { - const u = i && s && kpe.read(s); + if (po.hasStandardBrowserEnv && (n && Ie.isFunction(n) && (n = n(e)), n || n !== false && Cpe(e.url))) { + const u = i && s && Dpe.read(s); u && o.set(i, u); } return e; }; - var Dpe = typeof XMLHttpRequest < "u"; - var Lpe = Dpe && function(t) { + var Upe = typeof XMLHttpRequest < "u"; + var jpe = Upe && function(t) { return new Promise(function(r, n) { const i = yL(t); let s = i.data; - const o = go.from(i.headers).normalize(); - let { responseType: a } = i, c; - function u() { - i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c); - } - let f = new XMLHttpRequest(); - f.open(i.method.toUpperCase(), i.url, true), f.timeout = i.timeout; - function p() { - if (!f) + const o = mo.from(i.headers).normalize(); + let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = i, f, p, b, E, _; + function N() { + E && E(), _ && _(), i.cancelToken && i.cancelToken.unsubscribe(f), i.signal && i.signal.removeEventListener("abort", f); + } + let k = new XMLHttpRequest(); + k.open(i.method.toUpperCase(), i.url, true), k.timeout = i.timeout; + function F() { + if (!k) return; - const E = go.from( - "getAllResponseHeaders" in f && f.getAllResponseHeaders() - ), N = { - data: !a || a === "text" || a === "json" ? f.responseText : f.response, - status: f.status, - statusText: f.statusText, - headers: E, + const D = mo.from( + "getAllResponseHeaders" in k && k.getAllResponseHeaders() + ), W = { + data: !a || a === "text" || a === "json" ? k.responseText : k.response, + status: k.status, + statusText: k.statusText, + headers: D, config: t, - request: f + request: k }; - mL(function(F) { - r(F), u(); - }, function(F) { - n(F), u(); - }, N), f = null; - } - "onloadend" in f ? f.onloadend = p : f.onreadystatechange = function() { - !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(p); - }, f.onabort = function() { - f && (n(new Dt("Request aborted", Dt.ECONNABORTED, i, f)), f = null); - }, f.onerror = function() { - n(new Dt("Network Error", Dt.ERR_NETWORK, i, f)), f = null; - }, f.ontimeout = function() { - let _ = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded"; - const N = i.transitional || hL; - i.timeoutErrorMessage && (_ = i.timeoutErrorMessage), n(new Dt( - _, - N.clarifyTimeoutError ? Dt.ETIMEDOUT : Dt.ECONNABORTED, - i, - f - )), f = null; - }, s === void 0 && o.setContentType(null), "setRequestHeader" in f && Ie.forEach(o.toJSON(), function(_, N) { - f.setRequestHeader(N, _); - }), Ie.isUndefined(i.withCredentials) || (f.withCredentials = !!i.withCredentials), a && a !== "json" && (f.responseType = i.responseType), typeof i.onDownloadProgress == "function" && f.addEventListener("progress", Mm(i.onDownloadProgress, true)), typeof i.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Mm(i.onUploadProgress)), (i.cancelToken || i.signal) && (c = (E) => { - f && (n(!E || E.type ? new Qf(null, t, f) : E), f.abort(), f = null); - }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c))); - const b = Npe(i.url); - if (b && mo.protocols.indexOf(b) === -1) { - n(new Dt("Unsupported protocol " + b + ":", Dt.ERR_BAD_REQUEST, t)); + mL(function(T) { + r(T), N(); + }, function(T) { + n(T), N(); + }, W), k = null; + } + "onloadend" in k ? k.onloadend = F : k.onreadystatechange = function() { + !k || k.readyState !== 4 || k.status === 0 && !(k.responseURL && k.responseURL.indexOf("file:") === 0) || setTimeout(F); + }, k.onabort = function() { + k && (n(new Dt("Request aborted", Dt.ECONNABORTED, t, k)), k = null); + }, k.onerror = function() { + n(new Dt("Network Error", Dt.ERR_NETWORK, t, k)), k = null; + }, k.ontimeout = function() { + let q = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded"; + const W = i.transitional || hL; + i.timeoutErrorMessage && (q = i.timeoutErrorMessage), n(new Dt( + q, + W.clarifyTimeoutError ? Dt.ETIMEDOUT : Dt.ECONNABORTED, + t, + k + )), k = null; + }, s === void 0 && o.setContentType(null), "setRequestHeader" in k && Ie.forEach(o.toJSON(), function(q, W) { + k.setRequestHeader(W, q); + }), Ie.isUndefined(i.withCredentials) || (k.withCredentials = !!i.withCredentials), a && a !== "json" && (k.responseType = i.responseType), u && ([b, _] = Am(u, true), k.addEventListener("progress", b)), c && k.upload && ([p, E] = Am(c), k.upload.addEventListener("progress", p), k.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (f = (D) => { + k && (n(!D || D.type ? new Jf(null, t, k) : D), k.abort(), k = null); + }, i.cancelToken && i.cancelToken.subscribe(f), i.signal && (i.signal.aborted ? f() : i.signal.addEventListener("abort", f))); + const L = Ppe(i.url); + if (L && po.protocols.indexOf(L) === -1) { + n(new Dt("Unsupported protocol " + L + ":", Dt.ERR_BAD_REQUEST, t)); return; } - f.send(s || null); + k.send(s || null); }); }; - var Bpe = (t, e) => { + var Vpe = (t, e) => { let r = new AbortController(), n; const i = function(c) { if (!n) { n = true, o(); const u = c instanceof Error ? c : this.reason; - r.abort(u instanceof Dt ? u : new Qf(u instanceof Error ? u.message : u)); + r.abort(u instanceof Dt ? u : new Jf(u instanceof Error ? u.message : u)); } }; let s = e && setTimeout(() => { @@ -71436,8 +71459,8 @@ ${gz(e, r)}`); s && clearTimeout(s), s = null; }]; }; - var Upe = Bpe; - var jpe = function* (t, e) { + var zpe = Vpe; + var Fpe = function* (t, e) { let r = t.byteLength; if (!e || r < e) { yield t; @@ -71447,45 +71470,53 @@ ${gz(e, r)}`); for (; n < r; ) i = n + e, yield t.slice(n, i), n = i; }; - var Vpe = async function* (t, e, r) { + var Hpe = async function* (t, e, r) { for await (const n of t) - yield* jpe(ArrayBuffer.isView(n) ? n : await r(String(n)), e); + yield* Fpe(ArrayBuffer.isView(n) ? n : await r(String(n)), e); }; var lS = (t, e, r, n, i) => { - const s = Vpe(t, e, i); - let o = 0; + const s = Hpe(t, e, i); + let o = 0, a, c = (u) => { + a || (a = true, n && n(u)); + }; return new ReadableStream({ - type: "bytes", - async pull(a) { - const { done: c, value: u } = await s.next(); - if (c) { - a.close(), n(); - return; + async pull(u) { + try { + const { done: f, value: p } = await s.next(); + if (f) { + c(), u.close(); + return; + } + let b = p.byteLength; + if (r) { + let E = o += b; + r(E); + } + u.enqueue(new Uint8Array(p)); + } catch (f) { + throw c(f), f; } - let f = u.byteLength; - r && r(o += f), a.enqueue(new Uint8Array(u)); }, - cancel(a) { - return n(a), s.return(); + cancel(u) { + return c(u), s.return(); } }, { highWaterMark: 2 }); }; - var fS = (t, e) => { - const r = t != null; - return (n) => setTimeout(() => e({ - lengthComputable: r, - total: t, - loaded: n - })); + var _2 = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function"; + var bL = _2 && typeof ReadableStream == "function"; + var V5 = _2 && (typeof TextEncoder == "function" ? ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); + var wL = (t, ...e) => { + try { + return !!t(...e); + } catch { + return false; + } }; - var x2 = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function"; - var bL = x2 && typeof ReadableStream == "function"; - var z5 = x2 && (typeof TextEncoder == "function" ? ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); - var zpe = bL && (() => { + var qpe = bL && wL(() => { let t = false; - const e = new Request(mo.origin, { + const e = new Request(po.origin, { body: new ReadableStream(), method: "POST", get duplex() { @@ -71493,41 +71524,36 @@ ${gz(e, r)}`); } }).headers.has("Content-Type"); return t && !e; - })(); - var hS = 64 * 1024; - var F5 = bL && !!(() => { - try { - return Ie.isReadableStream(new Response("").body); - } catch { - } - })(); - var Am = { - stream: F5 && ((t) => t.body) + }); + var fS = 64 * 1024; + var z5 = bL && wL(() => Ie.isReadableStream(new Response("").body)); + var Tm = { + stream: z5 && ((t) => t.body) }; - x2 && ((t) => { + _2 && ((t) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => { - !Am[e] && (Am[e] = Ie.isFunction(t[e]) ? (r) => r[e]() : (r, n) => { + !Tm[e] && (Tm[e] = Ie.isFunction(t[e]) ? (r) => r[e]() : (r, n) => { throw new Dt(`Response type '${e}' is not supported`, Dt.ERR_NOT_SUPPORT, n); }); }); })(new Response()); - var Fpe = async (t) => { + var Wpe = async (t) => { if (t == null) return 0; if (Ie.isBlob(t)) return t.size; if (Ie.isSpecCompliantForm(t)) return (await new Request(t).arrayBuffer()).byteLength; - if (Ie.isArrayBufferView(t)) + if (Ie.isArrayBufferView(t) || Ie.isArrayBuffer(t)) return t.byteLength; if (Ie.isURLSearchParams(t) && (t = t + ""), Ie.isString(t)) - return (await z5(t)).byteLength; + return (await V5(t)).byteLength; }; - var Hpe = async (t, e) => { + var Gpe = async (t, e) => { const r = Ie.toFiniteNumber(t.getContentLength()); - return r ?? Fpe(e); + return r ?? Wpe(e); }; - var qpe = x2 && (async (t) => { + var Kpe = _2 && (async (t) => { let { url: e, method: r, @@ -71543,7 +71569,7 @@ ${gz(e, r)}`); fetchOptions: b } = yL(t); u = u ? (u + "").toLowerCase() : "text"; - let [E, _] = i || s || o ? Upe([i, s], o) : [], N, k; + let [E, _] = i || s || o ? zpe([i, s], o) : [], N, k; const F = () => { !N && setTimeout(() => { E && E.unsubscribe(); @@ -71551,48 +71577,53 @@ ${gz(e, r)}`); }; let L; try { - if (c && zpe && r !== "get" && r !== "head" && (L = await Hpe(f, n)) !== 0) { + if (c && qpe && r !== "get" && r !== "head" && (L = await Gpe(f, n)) !== 0) { let z = new Request(e, { method: "POST", body: n, duplex: "half" }), T; - Ie.isFormData(n) && (T = z.headers.get("content-type")) && f.setContentType(T), z.body && (n = lS(z.body, hS, fS( - L, - Mm(c) - ), null, z5)); + if (Ie.isFormData(n) && (T = z.headers.get("content-type")) && f.setContentType(T), z.body) { + const [I, H] = aS( + L, + Am(cS(c)) + ); + n = lS(z.body, fS, I, H, V5); + } } - Ie.isString(p) || (p = p ? "cors" : "omit"), k = new Request(e, { + Ie.isString(p) || (p = p ? "include" : "omit"), k = new Request(e, { ...b, signal: E, method: r.toUpperCase(), headers: f.normalize().toJSON(), body: n, duplex: "half", - withCredentials: p + credentials: p }); let D = await fetch(k); - const q = F5 && (u === "stream" || u === "response"); - if (F5 && (a || q)) { + const q = z5 && (u === "stream" || u === "response"); + if (z5 && (a || q)) { const z = {}; - ["status", "statusText", "headers"].forEach((I) => { - z[I] = D[I]; + ["status", "statusText", "headers"].forEach((X) => { + z[X] = D[X]; }); - const T = Ie.toFiniteNumber(D.headers.get("content-length")); + const T = Ie.toFiniteNumber(D.headers.get("content-length")), [I, H] = a && aS( + T, + Am(cS(a), true) + ) || []; D = new Response( - lS(D.body, hS, a && fS( - T, - Mm(a, true) - ), q && F, z5), + lS(D.body, fS, I, () => { + H && H(), q && F(); + }, V5), z ); } u = u || "text"; - let W = await Am[Ie.findKey(Am, u) || "text"](D, t); + let W = await Tm[Ie.findKey(Tm, u) || "text"](D, t); return !q && F(), _ && _(), await new Promise((z, T) => { mL(z, T, { data: W, - headers: go.from(D.headers), + headers: mo.from(D.headers), status: D.status, statusText: D.statusText, config: t, @@ -71608,12 +71639,12 @@ ${gz(e, r)}`); ) : Dt.from(D, D && D.code, t, k); } }); - var H5 = { - http: spe, - xhr: Lpe, - fetch: qpe + var F5 = { + http: cpe, + xhr: jpe, + fetch: Kpe }; - Ie.forEach(H5, (t, e) => { + Ie.forEach(F5, (t, e) => { if (t) { try { Object.defineProperty(t, "name", { value: e }); @@ -71622,9 +71653,9 @@ ${gz(e, r)}`); Object.defineProperty(t, "adapterName", { value: e }); } }); - var dS = (t) => `- ${t}`; - var Wpe = (t) => Ie.isFunction(t) || t === null || t === false; - var wL = { + var hS = (t) => `- ${t}`; + var Xpe = (t) => Ie.isFunction(t) || t === null || t === false; + var vL = { getAdapter: (t) => { t = Ie.isArray(t) ? t : [t]; const { length: e } = t; @@ -71633,7 +71664,7 @@ ${gz(e, r)}`); for (let s = 0; s < e; s++) { r = t[s]; let o; - if (n = r, !Wpe(r) && (n = H5[(o = String(r)).toLowerCase()], n === void 0)) + if (n = r, !Xpe(r) && (n = F5[(o = String(r)).toLowerCase()], n === void 0)) throw new Dt(`Unknown adapter '${o}'`); if (n) break; @@ -71644,8 +71675,8 @@ ${gz(e, r)}`); ([a, c]) => `adapter ${a} ` + (c === false ? "is not supported by the environment" : "is not available in the build") ); let o = e ? s.length > 1 ? `since : -` + s.map(dS).join(` -`) : " " + dS(s[0]) : "as no adapter specified"; +` + s.map(hS).join(` +`) : " " + hS(s[0]) : "as no adapter specified"; throw new Dt( "There is no suitable adapter to dispatch the request " + o, "ERR_NOT_SUPPORT" @@ -71653,41 +71684,41 @@ ${gz(e, r)}`); } return n; }, - adapters: H5 + adapters: F5 }; - function Rb(t) { + function kb(t) { if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) - throw new Qf(null, t); + throw new Jf(null, t); } - function pS(t) { - return Rb(t), t.headers = go.from(t.headers), t.data = kb.call( + function dS(t) { + return kb(t), t.headers = mo.from(t.headers), t.data = Pb.call( t, t.transformRequest - ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", false), wL.getAdapter(t.adapter || Lx.adapter)(t).then(function(n) { - return Rb(t), n.data = kb.call( + ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", false), vL.getAdapter(t.adapter || Dx.adapter)(t).then(function(n) { + return kb(t), n.data = Pb.call( t, t.transformResponse, n - ), n.headers = go.from(n.headers), n; + ), n.headers = mo.from(n.headers), n; }, function(n) { - return pL(n) || (Rb(t), n && n.response && (n.response.data = kb.call( + return pL(n) || (kb(t), n && n.response && (n.response.data = Pb.call( t, t.transformResponse, n.response - ), n.response.headers = go.from(n.response.headers))), Promise.reject(n); + ), n.response.headers = mo.from(n.response.headers))), Promise.reject(n); }); } - var vL = "1.7.2"; - var Bx = {}; + var xL = "1.7.3"; + var Lx = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { - Bx[t] = function(n) { + Lx[t] = function(n) { return typeof n === t || "a" + (e < 1 ? "n " : " ") + t; }; }); - var mS = {}; - Bx.transitional = function(e, r, n) { + var pS = {}; + Lx.transitional = function(e, r, n) { function i(s, o) { - return "[Axios v" + vL + "] Transitional option '" + s + "'" + o + (n ? ". " + n : ""); + return "[Axios v" + xL + "] Transitional option '" + s + "'" + o + (n ? ". " + n : ""); } return (s, o, a) => { if (e === false) @@ -71695,7 +71726,7 @@ ${gz(e, r)}`); i(o, " has been removed" + (r ? " in " + r : "")), Dt.ERR_DEPRECATED ); - return r && !mS[o] && (mS[o] = true, console.warn( + return r && !pS[o] && (pS[o] = true, console.warn( i( o, " has been deprecated since v" + r + " and will be removed in the near future" @@ -71703,7 +71734,7 @@ ${gz(e, r)}`); )), e ? e(s, o, a) : true; }; }; - function Gpe(t, e, r) { + function Ype(t, e, r) { if (typeof t != "object") throw new Dt("options must be an object", Dt.ERR_BAD_OPTION_VALUE); const n = Object.keys(t); @@ -71720,16 +71751,16 @@ ${gz(e, r)}`); throw new Dt("Unknown option " + s, Dt.ERR_BAD_OPTION); } } - var q5 = { - assertOptions: Gpe, - validators: Bx + var H5 = { + assertOptions: Ype, + validators: Lx }; - var Tc = q5.validators; - var Tm = class { + var Mc = H5.validators; + var Nm = class { constructor(e) { this.defaults = e, this.interceptors = { - request: new aS(), - response: new aS() + request: new sS(), + response: new sS() }; } async request(e, r) { @@ -71752,15 +71783,15 @@ ${gz(e, r)}`); _request(e, r) { typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = cl(this.defaults, r); const { transitional: n, paramsSerializer: i, headers: s } = r; - n !== void 0 && q5.assertOptions(n, { - silentJSONParsing: Tc.transitional(Tc.boolean), - forcedJSONParsing: Tc.transitional(Tc.boolean), - clarifyTimeoutError: Tc.transitional(Tc.boolean) + n !== void 0 && H5.assertOptions(n, { + silentJSONParsing: Mc.transitional(Mc.boolean), + forcedJSONParsing: Mc.transitional(Mc.boolean), + clarifyTimeoutError: Mc.transitional(Mc.boolean) }, false), i != null && (Ie.isFunction(i) ? r.paramsSerializer = { serialize: i - } : q5.assertOptions(i, { - encode: Tc.function, - serialize: Tc.function + } : H5.assertOptions(i, { + encode: Mc.function, + serialize: Mc.function }, true)), r.method = (r.method || this.defaults.method || "get").toLowerCase(); let o = s && Ie.merge( s.common, @@ -71771,7 +71802,7 @@ ${gz(e, r)}`); (_) => { delete s[_]; } - ), r.headers = go.concat(o, s); + ), r.headers = mo.concat(o, s); const a = []; let c = true; this.interceptors.request.forEach(function(N) { @@ -71783,7 +71814,7 @@ ${gz(e, r)}`); }); let f, p = 0, b; if (!c) { - const _ = [pS.bind(this), void 0]; + const _ = [dS.bind(this), void 0]; for (_.unshift.apply(_, a), _.push.apply(_, u), b = _.length, f = Promise.resolve(r); p < b; ) f = f.then(_[p++], _[p++]); return f; @@ -71800,7 +71831,7 @@ ${gz(e, r)}`); } } try { - f = pS.call(this, E); + f = dS.call(this, E); } catch (_) { return Promise.reject(_); } @@ -71815,7 +71846,7 @@ ${gz(e, r)}`); } }; Ie.forEach(["delete", "get", "head", "options"], function(e) { - Tm.prototype[e] = function(r, n) { + Nm.prototype[e] = function(r, n) { return this.request(cl(n || {}, { method: e, url: r, @@ -71836,10 +71867,10 @@ ${gz(e, r)}`); })); }; } - Tm.prototype[e] = r(), Tm.prototype[e + "Form"] = r(true); + Nm.prototype[e] = r(), Nm.prototype[e + "Form"] = r(true); }); - var f1 = Tm; - var Ux = class { + var h1 = Nm; + var Bx = class { constructor(e) { if (typeof e != "function") throw new TypeError("executor must be a function."); @@ -71864,7 +71895,7 @@ ${gz(e, r)}`); n.unsubscribe(s); }, o; }, e(function(s, o, a) { - n.reason || (n.reason = new Qf(s, o, a), r(n.reason)); + n.reason || (n.reason = new Jf(s, o, a), r(n.reason)); }); } throwIfRequested() { @@ -71887,23 +71918,23 @@ ${gz(e, r)}`); static source() { let e; return { - token: new Ux(function(i) { + token: new Bx(function(i) { e = i; }), cancel: e }; } }; - var Kpe = Ux; - function Xpe(t) { + var Zpe = Bx; + function Jpe(t) { return function(r) { return t.apply(null, r); }; } - function Ype(t) { + function Qpe(t) { return Ie.isObject(t) && t.isAxiosError === true; } - var W5 = { + var q5 = { Continue: 100, SwitchingProtocols: 101, Processing: 102, @@ -71968,68 +71999,68 @@ ${gz(e, r)}`); NotExtended: 510, NetworkAuthenticationRequired: 511 }; - Object.entries(W5).forEach(([t, e]) => { - W5[e] = t; + Object.entries(q5).forEach(([t, e]) => { + q5[e] = t; }); - var Zpe = W5; - function xL(t) { - const e = new f1(t), r = $D(f1.prototype.request, e); - return Ie.extend(r, f1.prototype, e, { allOwnKeys: true }), Ie.extend(r, e, null, { allOwnKeys: true }), r.create = function(i) { - return xL(cl(t, i)); + var $pe = q5; + function _L(t) { + const e = new h1(t), r = $D(h1.prototype.request, e); + return Ie.extend(r, h1.prototype, e, { allOwnKeys: true }), Ie.extend(r, e, null, { allOwnKeys: true }), r.create = function(i) { + return _L(cl(t, i)); }, r; } - var un = xL(Lx); - un.Axios = f1; - un.CanceledError = Qf; - un.CancelToken = Kpe; + var un = _L(Dx); + un.Axios = h1; + un.CanceledError = Jf; + un.CancelToken = Zpe; un.isCancel = pL; - un.VERSION = vL; - un.toFormData = w2; + un.VERSION = xL; + un.toFormData = v2; un.AxiosError = Dt; un.Cancel = un.CanceledError; un.all = function(e) { return Promise.all(e); }; - un.spread = Xpe; - un.isAxiosError = Ype; + un.spread = Jpe; + un.isAxiosError = Qpe; un.mergeConfig = cl; - un.AxiosHeaders = go; + un.AxiosHeaders = mo; un.formToJSON = (t) => dL(Ie.isHTMLForm(t) ? new FormData(t) : t); - un.getAdapter = wL.getAdapter; - un.HttpStatusCode = Zpe; + un.getAdapter = vL.getAdapter; + un.HttpStatusCode = $pe; un.default = un; var A0 = un; - var _L = "reef"; - var Jpe = A0.create({ + var EL = "reef"; + var e1e = A0.create({ baseURL: "https://api.coingecko.com/api/v3/" }); - var Qpe = A0.create({ + var t1e = A0.create({ baseURL: "https://api.reefscan.com" }); - var gS = (t) => Jpe.get( + var mS = (t) => e1e.get( `/simple/price?ids=${t}&vs_currencies=usd` ).then((e) => e.data[t].usd); - var $pe = async (t) => t === _L ? Qpe.get("/price/reef").then((e) => e.data.usd).catch(() => gS(t)) : gS(t); - var EL = new Er(); - var $f = EL.pipe(Cr(true)); - var SL = aa( + var r1e = async (t) => t === EL ? t1e.get("/price/reef").then((e) => e.data.usd).catch(() => mS(t)) : mS(t); + var SL = new Er(); + var Qf = SL.pipe(Qr(true)); + var ML = oa( 0, 6e4 ).pipe( - iu($f), - Oe(async () => { + nu(Qf), + Pe(async () => { try { - const t = await $pe(_L); - return bt(t, gt.COMPLETE_DATA); + const t = await r1e(EL); + return xt(t, vt.COMPLETE_DATA); } catch (t) { - return console.log("ERROR reefPrice$0=", t.message), bt(0, gt.ERROR, t.message); + return console.log("ERROR reefPrice$0=", t.message), xt(0, vt.ERROR, t.message); } }), - Cr(bt(0, gt.LOADING, "Loading REEF price.")), - Yt((t) => (console.log("ERROR reefPrice$", t.message), xe(bt(0, gt.ERROR, t.message)))), - qt(1) + Qr(xt(0, vt.LOADING, "Loading REEF price.")), + $t((t) => (console.log("ERROR reefPrice$", t.message), _e(xt(0, vt.ERROR, t.message)))), + Wt(1) ); - var t1e = [ + var i1e = [ { name: "Reef community staking bond", description: "", @@ -72040,37 +72071,37 @@ ${gz(e, r)}`); apy: "32" } ]; - var Ld = /* @__PURE__ */ ((t) => (t.REEF_SIGN_TRANSACTION = "reef_signTransaction", t.REEF_SIGN_MESSAGE = "reef_signMessage", t))(Ld || {}); + var Dd = /* @__PURE__ */ ((t) => (t.REEF_SIGN_TRANSACTION = "reef_signTransaction", t.REEF_SIGN_MESSAGE = "reef_signMessage", t))(Dd || {}); var Bf = (t) => `reef:${t.substring(2, 34)}`; - var jx = Bf( - Za.mainnet.genesisHash + var Ux = Bf( + Xa.mainnet.genesisHash ); - var AL = Bf( - Za.testnet.genesisHash + var TL = Bf( + Xa.testnet.genesisHash ); - var i1e = () => ({ + var a1e = () => ({ reef: { - methods: Object.values(Ld), + methods: Object.values(Dd), chains: [ - Bf(Za.mainnet.genesisHash), - Bf(Za.testnet.genesisHash) + Bf(Xa.mainnet.genesisHash), + Bf(Xa.testnet.genesisHash) ], events: [] } }); + var Rb; var Cb; - var Db; - var s1e = class { + var c1e = class { constructor(e, r) { - Cb = e, Db = r; + Rb = e, Cb = r; } async signPayload(e) { try { - const r = await Cb.request({ + const r = await Rb.request({ chainId: Bf(e.genesisHash), - topic: Db.topic, + topic: Cb.topic, request: { - method: Ld.REEF_SIGN_TRANSACTION, + method: Dd.REEF_SIGN_TRANSACTION, params: { address: e.address, transactionPayload: e @@ -72087,11 +72118,11 @@ ${gz(e, r)}`); } async signRaw(e) { try { - const r = await Cb.request({ - chainId: jx, - topic: Db.topic, + const r = await Rb.request({ + chainId: Ux, + topic: Cb.topic, request: { - method: Ld.REEF_SIGN_MESSAGE, + method: Dd.REEF_SIGN_MESSAGE, params: { address: e.address, message: e.data @@ -72107,10 +72138,10 @@ ${gz(e, r)}`); } } }; - var Lb; - var o1e = class { + var Db; + var u1e = class { constructor(e) { - this.rpcUrl = null, this.provider = null, Lb = e; + this.rpcUrl = null, this.provider = null, Db = e; } subscribeSelectedNetwork(e) { e(this.rpcUrl || ""); @@ -72121,18 +72152,18 @@ ${gz(e, r)}`); } async getNetworkProvider() { var n, i; - const e = (i = (n = Lb.namespaces.reef) == null ? void 0 : n.accounts) != null && i.length ? Lb.namespaces.reef.accounts[0] : void 0; + const e = (i = (n = Db.namespaces.reef) == null ? void 0 : n.accounts) != null && i.length ? Db.namespaces.reef.accounts[0] : void 0; if (!e) throw new Error("Provider URL not found"); let r; - if (e.startsWith(jx)) - r = Za.mainnet.rpcUrl; - else if (e.startsWith(AL)) - r = Za.testnet.rpcUrl; + if (e.startsWith(Ux)) + r = Xa.mainnet.rpcUrl; + else if (e.startsWith(TL)) + r = Xa.testnet.rpcUrl; else throw new Error("Provider URL not found"); (r !== this.rpcUrl || !this.provider) && (this.provider = new xl.Provider({ - provider: new uu(r) + provider: new cu(r) })); try { await this.provider.api.isReadyOrError; @@ -72142,7 +72173,7 @@ ${gz(e, r)}`); return this.rpcUrl = r, this.provider; } }; - var Nm = class { + var Im = class { constructor(e, r, n) { this.selectedSignerStatus = null, this.isGetSignerMethodSubscribed = false, this.resolvesList = [], this.isSelectedAccountReceived = false, this.accounts = e, this.extSigningKey = r, this.injectedProvider = n; } @@ -72154,7 +72185,7 @@ ${gz(e, r)}`); async getSelectedAccount() { return (await this.accounts.get()).find((r) => r.isSelected); } - subscribeSelectedSigner(e, r = Ko.EVM) { + subscribeSelectedSigner(e, r = Go.EVM) { const n = this.injectedProvider.subscribeSelectedNetworkProvider( (s) => { this.selectedProvider = s, this.onSelectedSignerParamUpdate(e, r).then( @@ -72179,44 +72210,44 @@ ${gz(e, r)}`); n(), i(); }; } - async getSelectedSigner(e = Ko.EVM) { + async getSelectedSigner(e = Go.EVM) { if (this.selectedSignerStatus) return Promise.resolve({ ...this.selectedSignerStatus }); const r = new Promise((n) => { this.resolvesList.push(n); }); return this.isGetSignerMethodSubscribed || (this.isGetSignerMethodSubscribed = true, this.subscribeSelectedSigner((n) => { - this.resolvesList.length && n.status !== ji.CONNECTING && (this.selectedSignerStatus = n, this.resolvesList.forEach((i) => i({ ...n })), this.resolvesList = []); + this.resolvesList.length && n.status !== Ui.CONNECTING && (this.selectedSignerStatus = n, this.resolvesList.forEach((i) => i({ ...n })), this.resolvesList = []); }, e)), r; } async onSelectedSignerParamUpdate(e, r) { - const n = Nm.createReefSigner( + const n = Im.createReefSigner( this.selectedSignerAccount, this.selectedProvider, this.extSigningKey - ), i = await Nm.hasConnectedVM(r, n), s = this.getResponseStatus( + ), i = await Im.hasConnectedVM(r, n), s = this.getResponseStatus( n, i, r ); - s.status !== ji.CONNECTING && e(s); + s.status !== Ui.CONNECTING && e(s); } - getResponseStatus(e, r, n = Ko.NATIVE) { + getResponseStatus(e, r, n = Go.NATIVE) { return e ? r ? { data: e, - status: ji.OK, + status: Ui.OK, requestedVM: n } : { data: void 0, - status: ji.SELECTED_NO_VM_CONNECTION, + status: Ui.SELECTED_NO_VM_CONNECTION, requestedVM: n } : this.selectedProvider && this.extSigningKey && this.isSelectedAccountReceived && !this.selectedSignerAccount ? { data: void 0, - status: ji.NO_ACCOUNT_SELECTED, + status: Ui.NO_ACCOUNT_SELECTED, requestedVM: n } : { data: void 0, - status: ji.CONNECTING, + status: Ui.CONNECTING, requestedVM: n }; } @@ -72228,83 +72259,83 @@ ${gz(e, r)}`); ) : void 0; } static async hasConnectedVM(e, r) { - return r ? !e || e === Ko.EVM && await (r == null ? void 0 : r.isClaimed()) : false; + return r ? !e || e === Go.EVM && await (r == null ? void 0 : r.isClaimed()) : false; } }; - var a1e = class { + var l1e = class { constructor(e, r) { - this.accounts = new Ale(r), this.signer = new s1e(e, r), this.reefProvider = new o1e(r), this.reefSigner = new Nm( + this.accounts = new Nle(r), this.signer = new c1e(e, r), this.reefProvider = new u1e(r), this.reefSigner = new Im( this.accounts, this.signer, this.reefProvider ); } }; - function c1e({ client: t, session: e }, { name: r, version: n }) { + function f1e({ client: t, session: e }, { name: r, version: n }) { const i = window; i && (i.injectedWeb3 = i.injectedWeb3 || {}, i.injectedWeb3[r] = { - enable: (s) => u1e(t, e), + enable: (s) => h1e(t, e), version: n }); } - async function u1e(t, e) { - return new a1e(t, e); + async function h1e(t, e) { + return new l1e(t, e); } - var Vx = { exports: {} }; + var jx = { exports: {} }; var bf = typeof Reflect == "object" ? Reflect : null; - var yS = bf && typeof bf.apply == "function" ? bf.apply : function(e, r, n) { + var gS = bf && typeof bf.apply == "function" ? bf.apply : function(e, r, n) { return Function.prototype.apply.call(e, r, n); }; - var h1; - bf && typeof bf.ownKeys == "function" ? h1 = bf.ownKeys : Object.getOwnPropertySymbols ? h1 = function(e) { + var d1; + bf && typeof bf.ownKeys == "function" ? d1 = bf.ownKeys : Object.getOwnPropertySymbols ? d1 = function(e) { return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)); - } : h1 = function(e) { + } : d1 = function(e) { return Object.getOwnPropertyNames(e); }; - function l1e(t) { + function d1e(t) { console && console.warn && console.warn(t); } - var TL = Number.isNaN || function(e) { + var NL = Number.isNaN || function(e) { return e !== e; }; function mr() { mr.init.call(this); } - Vx.exports = mr; - Vx.exports.once = p1e; + jx.exports = mr; + jx.exports.once = y1e; mr.EventEmitter = mr; mr.prototype._events = void 0; mr.prototype._eventsCount = 0; mr.prototype._maxListeners = void 0; - var bS = 10; - function _2(t) { + var yS = 10; + function E2(t) { if (typeof t != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t); } Object.defineProperty(mr, "defaultMaxListeners", { enumerable: true, get: function() { - return bS; + return yS; }, set: function(t) { - if (typeof t != "number" || t < 0 || TL(t)) + if (typeof t != "number" || t < 0 || NL(t)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + "."); - bS = t; + yS = t; } }); mr.init = function() { (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }; mr.prototype.setMaxListeners = function(e) { - if (typeof e != "number" || e < 0 || TL(e)) + if (typeof e != "number" || e < 0 || NL(e)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + "."); return this._maxListeners = e, this; }; - function NL(t) { + function IL(t) { return t._maxListeners === void 0 ? mr.defaultMaxListeners : t._maxListeners; } mr.prototype.getMaxListeners = function() { - return NL(this); + return IL(this); }; mr.prototype.emit = function(e) { for (var r = [], n = 1; n < arguments.length; n++) @@ -72325,51 +72356,51 @@ ${gz(e, r)}`); if (c === void 0) return false; if (typeof c == "function") - yS(c, this, r); + gS(c, this, r); else - for (var u = c.length, f = RL(c, u), n = 0; n < u; ++n) - yS(f[n], this, r); + for (var u = c.length, f = CL(c, u), n = 0; n < u; ++n) + gS(f[n], this, r); return true; }; - function IL(t, e, r, n) { + function OL(t, e, r, n) { var i, s, o; - if (_2(r), s = t._events, s === void 0 ? (s = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (s.newListener !== void 0 && (t.emit( + if (E2(r), s = t._events, s === void 0 ? (s = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (s.newListener !== void 0 && (t.emit( "newListener", e, r.listener ? r.listener : r ), s = t._events), o = s[e]), o === void 0) o = s[e] = r, ++t._eventsCount; - else if (typeof o == "function" ? o = s[e] = n ? [r, o] : [o, r] : n ? o.unshift(r) : o.push(r), i = NL(t), i > 0 && o.length > i && !o.warned) { + else if (typeof o == "function" ? o = s[e] = n ? [r, o] : [o, r] : n ? o.unshift(r) : o.push(r), i = IL(t), i > 0 && o.length > i && !o.warned) { o.warned = true; var a = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit"); - a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = o.length, l1e(a); + a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = o.length, d1e(a); } return t; } mr.prototype.addListener = function(e, r) { - return IL(this, e, r, false); + return OL(this, e, r, false); }; mr.prototype.on = mr.prototype.addListener; mr.prototype.prependListener = function(e, r) { - return IL(this, e, r, true); + return OL(this, e, r, true); }; - function f1e() { + function p1e() { if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); } - function OL(t, e, r) { - var n = { fired: false, wrapFn: void 0, target: t, type: e, listener: r }, i = f1e.bind(n); + function PL(t, e, r) { + var n = { fired: false, wrapFn: void 0, target: t, type: e, listener: r }, i = p1e.bind(n); return i.listener = r, n.wrapFn = i, i; } mr.prototype.once = function(e, r) { - return _2(r), this.on(e, OL(this, e, r)), this; + return E2(r), this.on(e, PL(this, e, r)), this; }; mr.prototype.prependOnceListener = function(e, r) { - return _2(r), this.prependListener(e, OL(this, e, r)), this; + return E2(r), this.prependListener(e, PL(this, e, r)), this; }; mr.prototype.removeListener = function(e, r) { var n, i, s, o, a; - if (_2(r), i = this._events, i === void 0) + if (E2(r), i = this._events, i === void 0) return this; if (n = i[e], n === void 0) return this; @@ -72383,7 +72414,7 @@ ${gz(e, r)}`); } if (s < 0) return this; - s === 0 ? n.shift() : h1e(n, s), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r); + s === 0 ? n.shift() : m1e(n, s), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r); } return this; }; @@ -72407,24 +72438,24 @@ ${gz(e, r)}`); this.removeListener(e, r[i]); return this; }; - function PL(t, e, r) { + function kL(t, e, r) { var n = t._events; if (n === void 0) return []; var i = n[e]; - return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? d1e(i) : RL(i, i.length); + return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? g1e(i) : CL(i, i.length); } mr.prototype.listeners = function(e) { - return PL(this, e, true); + return kL(this, e, true); }; mr.prototype.rawListeners = function(e) { - return PL(this, e, false); + return kL(this, e, false); }; mr.listenerCount = function(t, e) { - return typeof t.listenerCount == "function" ? t.listenerCount(e) : kL.call(t, e); + return typeof t.listenerCount == "function" ? t.listenerCount(e) : RL.call(t, e); }; - mr.prototype.listenerCount = kL; - function kL(t) { + mr.prototype.listenerCount = RL; + function RL(t) { var e = this._events; if (e !== void 0) { var r = e[t]; @@ -72436,24 +72467,24 @@ ${gz(e, r)}`); return 0; } mr.prototype.eventNames = function() { - return this._eventsCount > 0 ? h1(this._events) : []; + return this._eventsCount > 0 ? d1(this._events) : []; }; - function RL(t, e) { + function CL(t, e) { for (var r = new Array(e), n = 0; n < e; ++n) r[n] = t[n]; return r; } - function h1e(t, e) { + function m1e(t, e) { for (; e + 1 < t.length; e++) t[e] = t[e + 1]; t.pop(); } - function d1e(t) { + function g1e(t) { for (var e = new Array(t.length), r = 0; r < e.length; ++r) e[r] = t[r].listener || t[r]; return e; } - function p1e(t, e) { + function y1e(t, e) { return new Promise(function(r, n) { function i(o) { t.removeListener(e, s), n(o); @@ -72461,13 +72492,13 @@ ${gz(e, r)}`); function s() { typeof t.removeListener == "function" && t.removeListener("error", i), r([].slice.call(arguments)); } - CL(t, e, s, { once: true }), e !== "error" && m1e(t, i, { once: true }); + DL(t, e, s, { once: true }), e !== "error" && b1e(t, i, { once: true }); }); } - function m1e(t, e, r) { - typeof t.on == "function" && CL(t, "error", e, r); + function b1e(t, e, r) { + typeof t.on == "function" && DL(t, "error", e, r); } - function CL(t, e, r, n) { + function DL(t, e, r, n) { if (typeof t.on == "function") n.once ? t.once(e, r) : t.on(e, r); else if (typeof t.addEventListener == "function") @@ -72477,22 +72508,22 @@ ${gz(e, r)}`); else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t); } - var xo = Vx.exports; - var DL = /* @__PURE__ */ nc(xo); - var g1e = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/; - var y1e = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/; - var b1e = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/; - function w1e(t, e) { + var vo = jx.exports; + var LL = /* @__PURE__ */ tc(vo); + var w1e = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/; + var v1e = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/; + var x1e = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/; + function _1e(t, e) { if (t === "__proto__" || t === "constructor" && e && typeof e == "object" && "prototype" in e) { - v1e(t); + E1e(t); return; } return e; } - function v1e(t) { + function E1e(t) { console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`); } - function _p(t, e = {}) { + function Ep(t, e = {}) { if (typeof t != "string") return t; const r = t.trim(); @@ -72515,16 +72546,16 @@ ${gz(e, r)}`); if (n === "-infinity") return Number.NEGATIVE_INFINITY; } - if (!b1e.test(t)) { + if (!x1e.test(t)) { if (e.strict) throw new SyntaxError("[destr] Invalid JSON"); return t; } try { - if (g1e.test(t) || y1e.test(t)) { + if (w1e.test(t) || v1e.test(t)) { if (e.strict) throw new Error("[destr] Possible prototype pollution"); - return JSON.parse(t, w1e); + return JSON.parse(t, _1e); } return JSON.parse(t); } catch (n) { @@ -72533,62 +72564,62 @@ ${gz(e, r)}`); return t; } } - function x1e(t) { + function S1e(t) { return !t || typeof t.then != "function" ? Promise.resolve(t) : t; } function An(t, ...e) { try { - return x1e(t(...e)); + return S1e(t(...e)); } catch (r) { return Promise.reject(r); } } - function _1e(t) { + function M1e(t) { const e = typeof t; return t === null || e !== "object" && e !== "function"; } - function E1e(t) { + function A1e(t) { const e = Object.getPrototypeOf(t); return !e || e.isPrototypeOf(Object); } - function d1(t) { - if (_1e(t)) + function p1(t) { + if (M1e(t)) return String(t); - if (E1e(t) || Array.isArray(t)) + if (A1e(t) || Array.isArray(t)) return JSON.stringify(t); if (typeof t.toJSON == "function") - return d1(t.toJSON()); + return p1(t.toJSON()); throw new Error("[unstorage] Cannot stringify value!"); } - function LL() { + function BL() { if (typeof Buffer === void 0) throw new TypeError("[unstorage] Buffer is not supported!"); } - var G5 = "base64:"; - function S1e(t) { + var W5 = "base64:"; + function T1e(t) { if (typeof t == "string") return t; - LL(); + BL(); const e = Buffer.from(t).toString("base64"); - return G5 + e; + return W5 + e; } - function M1e(t) { - return typeof t != "string" || !t.startsWith(G5) ? t : (LL(), Buffer.from(t.slice(G5.length), "base64")); + function N1e(t) { + return typeof t != "string" || !t.startsWith(W5) ? t : (BL(), Buffer.from(t.slice(W5.length), "base64")); } - function Li(t) { + function Di(t) { return t ? t.split("?")[0].replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") : ""; } - function A1e(...t) { - return Li(t.join(":")); + function I1e(...t) { + return Di(t.join(":")); } - function Ep(t) { - return t = Li(t), t ? t + ":" : ""; + function Sp(t) { + return t = Di(t), t ? t + ":" : ""; } - var T1e = "memory"; - var N1e = () => { + var O1e = "memory"; + var P1e = () => { const t = /* @__PURE__ */ new Map(); return { - name: T1e, + name: O1e, options: {}, hasItem(e) { return t.has(e); @@ -72619,9 +72650,9 @@ ${gz(e, r)}`); } }; }; - function I1e(t = {}) { + function k1e(t = {}) { const e = { - mounts: { "": t.driver || N1e() }, + mounts: { "": t.driver || P1e() }, mountpoints: [""], watching: false, watchListeners: [], @@ -72647,7 +72678,7 @@ ${gz(e, r)}`); driver: e.mounts[p] })), i = (u, f) => { if (e.watching) { - f = Li(f); + f = Di(f); for (const p of e.watchListeners) p(u, f); } @@ -72655,7 +72686,7 @@ ${gz(e, r)}`); if (!e.watching) { e.watching = true; for (const u in e.mounts) - e.unwatch[u] = await wS( + e.unwatch[u] = await bS( e.mounts[u], i, u @@ -72677,7 +72708,7 @@ ${gz(e, r)}`); }, b.set(_.base, N)), N; }; for (const _ of u) { - const N = typeof _ == "string", k = Li(N ? _ : _.key), F = N ? void 0 : _.value, L = N || !_.options ? f : { ...f, ..._.options }, D = r(k); + const N = typeof _ == "string", k = Di(N ? _ : _.key), F = N ? void 0 : _.value, L = N || !_.options ? f : { ...f, ..._.options }, D = r(k); E(D).items.push({ key: k, value: F, @@ -72690,15 +72721,15 @@ ${gz(e, r)}`); ); }, c = { hasItem(u, f = {}) { - u = Li(u); + u = Di(u); const { relativeKey: p, driver: b } = r(u); return An(b.hasItem, p, f); }, getItem(u, f = {}) { - u = Li(u); + u = Di(u); const { relativeKey: p, driver: b } = r(u); return An(b.getItem, p, f).then( - (E) => _p(E) + (E) => Ep(E) ); }, getItems(u, f) { @@ -72711,8 +72742,8 @@ ${gz(e, r)}`); f ).then( (b) => b.map((E) => ({ - key: A1e(p.base, E.key), - value: _p(E.value) + key: I1e(p.base, E.key), + value: Ep(E.value) })) ) : Promise.all( p.items.map((b) => An( @@ -72721,23 +72752,23 @@ ${gz(e, r)}`); b.options ).then((E) => ({ key: b.key, - value: _p(E) + value: Ep(E) }))) )); }, getItemRaw(u, f = {}) { - u = Li(u); + u = Di(u); const { relativeKey: p, driver: b } = r(u); return b.getItemRaw ? An(b.getItemRaw, p, f) : An(b.getItem, p, f).then( - (E) => M1e(E) + (E) => N1e(E) ); }, async setItem(u, f, p = {}) { if (f === void 0) return c.removeItem(u); - u = Li(u); + u = Di(u); const { relativeKey: b, driver: E } = r(u); - E.setItem && (await An(E.setItem, b, d1(f), p), E.watch || i("update", u)); + E.setItem && (await An(E.setItem, b, p1(f), p), E.watch || i("update", u)); }, async setItems(u, f) { await a(u, f, async (p) => { @@ -72746,7 +72777,7 @@ ${gz(e, r)}`); p.driver.setItems, p.items.map((b) => ({ key: b.relativeKey, - value: d1(b.value), + value: p1(b.value), options: b.options })), f @@ -72755,7 +72786,7 @@ ${gz(e, r)}`); p.items.map((b) => An( p.driver.setItem, b.relativeKey, - d1(b.value), + p1(b.value), b.options )) ); @@ -72764,30 +72795,30 @@ ${gz(e, r)}`); async setItemRaw(u, f, p = {}) { if (f === void 0) return c.removeItem(u, p); - u = Li(u); + u = Di(u); const { relativeKey: b, driver: E } = r(u); if (E.setItemRaw) await An(E.setItemRaw, b, f, p); else if (E.setItem) - await An(E.setItem, b, S1e(f), p); + await An(E.setItem, b, T1e(f), p); else return; E.watch || i("update", u); }, async removeItem(u, f = {}) { - typeof f == "boolean" && (f = { removeMeta: f }), u = Li(u); + typeof f == "boolean" && (f = { removeMeta: f }), u = Di(u); const { relativeKey: p, driver: b } = r(u); b.removeItem && (await An(b.removeItem, p, f), (f.removeMeta || f.removeMata) && await An(b.removeItem, p + "$", f), b.watch || i("remove", u)); }, async getMeta(u, f = {}) { - typeof f == "boolean" && (f = { nativeOnly: f }), u = Li(u); + typeof f == "boolean" && (f = { nativeOnly: f }), u = Di(u); const { relativeKey: p, driver: b } = r(u), E = /* @__PURE__ */ Object.create(null); if (b.getMeta && Object.assign(E, await An(b.getMeta, p, f)), !f.nativeOnly) { const _ = await An( b.getItem, p + "$", f - ).then((N) => _p(N)); + ).then((N) => Ep(N)); _ && typeof _ == "object" && (typeof _.atime == "string" && (_.atime = new Date(_.atime)), typeof _.mtime == "string" && (_.mtime = new Date(_.mtime)), Object.assign(E, _)); } return E; @@ -72799,7 +72830,7 @@ ${gz(e, r)}`); return this.removeItem(u + "$", f); }, async getKeys(u, f = {}) { - u = Ep(u); + u = Sp(u); const p = n(u, true); let b = []; const E = []; @@ -72808,7 +72839,7 @@ ${gz(e, r)}`); _.driver.getKeys, _.relativeBase, f - )).map((F) => _.mountpoint + Li(F)).filter((F) => !b.some((L) => F.startsWith(L))); + )).map((F) => _.mountpoint + Di(F)).filter((F) => !b.some((L) => F.startsWith(L))); E.push(...k), b = [ _.mountpoint, ...b.filter((F) => !F.startsWith(_.mountpoint)) @@ -72817,7 +72848,7 @@ ${gz(e, r)}`); return u ? E.filter((_) => _.startsWith(u) && !_.endsWith("$")) : E.filter((_) => !_.endsWith("$")); }, async clear(u, f = {}) { - u = Ep(u), await Promise.all( + u = Sp(u), await Promise.all( n(u, false).map(async (p) => { if (p.driver.clear) return An(p.driver.clear, p.relativeBase, f); @@ -72832,7 +72863,7 @@ ${gz(e, r)}`); }, async dispose() { await Promise.all( - Object.values(e.mounts).map((u) => vS(u)) + Object.values(e.mounts).map((u) => wS(u)) ); }, async watch(u) { @@ -72846,17 +72877,17 @@ ${gz(e, r)}`); e.watchListeners = [], await o(); }, mount(u, f) { - if (u = Ep(u), u && e.mounts[u]) + if (u = Sp(u), u && e.mounts[u]) throw new Error(`already mounted at ${u}`); - return u && (e.mountpoints.push(u), e.mountpoints.sort((p, b) => b.length - p.length)), e.mounts[u] = f, e.watching && Promise.resolve(wS(f, i, u)).then((p) => { + return u && (e.mountpoints.push(u), e.mountpoints.sort((p, b) => b.length - p.length)), e.mounts[u] = f, e.watching && Promise.resolve(bS(f, i, u)).then((p) => { e.unwatch[u] = p; }).catch(console.error), c; }, async unmount(u, f = true) { - u = Ep(u), !(!u || !e.mounts[u]) && (e.watching && u in e.unwatch && (e.unwatch[u](), delete e.unwatch[u]), f && await vS(e.mounts[u]), e.mountpoints = e.mountpoints.filter((p) => p !== u), delete e.mounts[u]); + u = Sp(u), !(!u || !e.mounts[u]) && (e.watching && u in e.unwatch && (e.unwatch[u](), delete e.unwatch[u]), f && await wS(e.mounts[u]), e.mountpoints = e.mountpoints.filter((p) => p !== u), delete e.mounts[u]); }, getMount(u = "") { - u = Li(u) + ":"; + u = Di(u) + ":"; const f = r(u); return { driver: f.driver, @@ -72864,7 +72895,7 @@ ${gz(e, r)}`); }; }, getMounts(u = "", f = {}) { - return u = Li(u), n(u, f.parents).map((b) => ({ + return u = Di(u), n(u, f.parents).map((b) => ({ driver: b.driver, base: b.mountpoint })); @@ -72872,11 +72903,11 @@ ${gz(e, r)}`); }; return c; } - function wS(t, e, r) { + function bS(t, e, r) { return t.watch ? t.watch((n, i) => e(n, r + i)) : () => { }; } - async function vS(t) { + async function wS(t) { typeof t.dispose == "function" && await An(t.dispose); } function Ol(t) { @@ -72884,81 +72915,81 @@ ${gz(e, r)}`); t.oncomplete = t.onsuccess = () => e(t.result), t.onabort = t.onerror = () => r(t.error); }); } - function BL(t, e) { + function UL(t, e) { const r = indexedDB.open(t); r.onupgradeneeded = () => r.result.createObjectStore(e); const n = Ol(r); return (i, s) => n.then((o) => s(o.transaction(e, i).objectStore(e))); } - var Bb; + var Lb; function T0() { - return Bb || (Bb = BL("keyval-store", "keyval")), Bb; + return Lb || (Lb = UL("keyval-store", "keyval")), Lb; } - function xS(t, e = T0()) { + function vS(t, e = T0()) { return e("readonly", (r) => Ol(r.get(t))); } - function O1e(t, e, r = T0()) { + function R1e(t, e, r = T0()) { return r("readwrite", (n) => (n.put(e, t), Ol(n.transaction))); } - function P1e(t, e = T0()) { + function C1e(t, e = T0()) { return e("readwrite", (r) => (r.delete(t), Ol(r.transaction))); } - function k1e(t = T0()) { + function D1e(t = T0()) { return t("readwrite", (e) => (e.clear(), Ol(e.transaction))); } - function R1e(t, e) { + function L1e(t, e) { return t.openCursor().onsuccess = function() { this.result && (e(this.result), this.result.continue()); }, Ol(t.transaction); } - function C1e(t = T0()) { + function B1e(t = T0()) { return t("readonly", (e) => { if (e.getAllKeys) return Ol(e.getAllKeys()); const r = []; - return R1e(e, (n) => r.push(n.key)).then(() => r); + return L1e(e, (n) => r.push(n.key)).then(() => r); }); } - var D1e = (t) => JSON.stringify(t, (e, r) => typeof r == "bigint" ? r.toString() + "n" : r); - var L1e = (t) => { + var U1e = (t) => JSON.stringify(t, (e, r) => typeof r == "bigint" ? r.toString() + "n" : r); + var j1e = (t) => { const e = /([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g, r = t.replace(e, '$1"$2n"$3'); return JSON.parse(r, (n, i) => typeof i == "string" && i.match(/^\d+n$/) ? BigInt(i.substring(0, i.length - 1)) : i); }; - function E2(t) { + function S2(t) { if (typeof t != "string") throw new Error(`Cannot safe json parse value of type ${typeof t}`); try { - return L1e(t); + return j1e(t); } catch { return t; } } function ul(t) { - return typeof t == "string" ? t : D1e(t) || ""; + return typeof t == "string" ? t : U1e(t) || ""; } - var B1e = "idb-keyval"; - var U1e = (t = {}) => { + var V1e = "idb-keyval"; + var z1e = (t = {}) => { const e = t.base && t.base.length > 0 ? `${t.base}:` : "", r = (i) => e + i; let n; - return t.dbName && t.storeName && (n = BL(t.dbName, t.storeName)), { name: B1e, options: t, async hasItem(i) { - return !(typeof await xS(r(i), n) > "u"); + return t.dbName && t.storeName && (n = UL(t.dbName, t.storeName)), { name: V1e, options: t, async hasItem(i) { + return !(typeof await vS(r(i), n) > "u"); }, async getItem(i) { - return await xS(r(i), n) ?? null; + return await vS(r(i), n) ?? null; }, setItem(i, s) { - return O1e(r(i), s, n); + return R1e(r(i), s, n); }, removeItem(i) { - return P1e(r(i), n); + return C1e(r(i), n); }, getKeys() { - return C1e(n); + return B1e(n); }, clear() { - return k1e(n); + return D1e(n); } }; }; - var j1e = "WALLET_CONNECT_V2_INDEXED_DB"; - var V1e = "keyvaluestorage"; - var z1e = class { + var F1e = "WALLET_CONNECT_V2_INDEXED_DB"; + var H1e = "keyvaluestorage"; + var q1e = class { constructor() { - this.indexedDb = I1e({ driver: U1e({ dbName: j1e, storeName: V1e }) }); + this.indexedDb = k1e({ driver: z1e({ dbName: F1e, storeName: H1e }) }); } async getKeys() { return this.indexedDb.getKeys(); @@ -72978,8 +73009,8 @@ ${gz(e, r)}`); await this.indexedDb.removeItem(e); } }; - var Ub = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; - var p1 = { exports: {} }; + var Bb = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; + var m1 = { exports: {} }; (function() { let t; function e() { @@ -72999,26 +73030,26 @@ ${gz(e, r)}`); return r = r || 0, Object.keys(this)[r]; }, t.prototype.__defineGetter__("length", function() { return Object.keys(this).length; - }), typeof Ub < "u" && Ub.localStorage ? p1.exports = Ub.localStorage : typeof window < "u" && window.localStorage ? p1.exports = window.localStorage : p1.exports = new e(); + }), typeof Bb < "u" && Bb.localStorage ? m1.exports = Bb.localStorage : typeof window < "u" && window.localStorage ? m1.exports = window.localStorage : m1.exports = new e(); })(); - function F1e(t) { + function W1e(t) { var e; - return [t[0], E2((e = t[1]) != null ? e : "")]; + return [t[0], S2((e = t[1]) != null ? e : "")]; } - var H1e = class { + var G1e = class { constructor() { - this.localStorage = p1.exports; + this.localStorage = m1.exports; } async getKeys() { return Object.keys(this.localStorage); } async getEntries() { - return Object.entries(this.localStorage).map(F1e); + return Object.entries(this.localStorage).map(W1e); } async getItem(e) { const r = this.localStorage.getItem(e); if (r !== null) - return E2(r); + return S2(r); } async setItem(e, r) { this.localStorage.setItem(e, ul(r)); @@ -73027,11 +73058,11 @@ ${gz(e, r)}`); this.localStorage.removeItem(e); } }; - var q1e = "wc_storage_version"; - var _S = 1; - var W1e = async (t, e, r) => { - const n = q1e, i = await e.getItem(n); - if (i && i >= _S) { + var K1e = "wc_storage_version"; + var xS = 1; + var X1e = async (t, e, r) => { + const n = K1e, i = await e.getItem(n); + if (i && i >= xS) { r(e); return; } @@ -73051,23 +73082,23 @@ ${gz(e, r)}`); await e.setItem(a, u), o.push(a); } } - await e.setItem(n, _S), r(e), G1e(t, o); + await e.setItem(n, xS), r(e), Y1e(t, o); }; - var G1e = async (t, e) => { + var Y1e = async (t, e) => { e.length && e.forEach(async (r) => { await t.removeItem(r); }); }; - var K1e = class { + var Z1e = class { constructor() { this.initialized = false, this.setInitialized = (r) => { this.storage = r, this.initialized = true; }; - const e = new H1e(); + const e = new G1e(); this.storage = e; try { - const r = new z1e(); - W1e(e, r, this.setInitialized); + const r = new q1e(); + X1e(e, r, this.setInitialized); } catch { this.initialized = true; } @@ -73095,33 +73126,33 @@ ${gz(e, r)}`); }); } }; - var yt = {}; - var K5 = function(t, e) { - return K5 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { + var gt = {}; + var G5 = function(t, e) { + return G5 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { r.__proto__ = n; } || function(r, n) { for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]); - }, K5(t, e); + }, G5(t, e); }; - function X1e(t, e) { - K5(t, e); + function J1e(t, e) { + G5(t, e); function r() { this.constructor = t; } t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r()); } - var X5 = function() { - return X5 = Object.assign || function(e) { + var K5 = function() { + return K5 = Object.assign || function(e) { for (var r, n = 1, i = arguments.length; n < i; n++) { r = arguments[n]; for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]); } return e; - }, X5.apply(this, arguments); + }, K5.apply(this, arguments); }; - function Y1e(t, e) { + function Q1e(t, e) { var r = {}; for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]); @@ -73130,7 +73161,7 @@ ${gz(e, r)}`); e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (r[n[i]] = t[n[i]]); return r; } - function Z1e(t, e, r, n) { + function $1e(t, e, r, n) { var i = arguments.length, s = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, o; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(t, e, r, n); @@ -73139,16 +73170,16 @@ ${gz(e, r)}`); (o = t[a]) && (s = (i < 3 ? o(s) : i > 3 ? o(e, r, s) : o(e, r)) || s); return i > 3 && s && Object.defineProperty(e, r, s), s; } - function J1e(t, e) { + function eme(t, e) { return function(r, n) { e(r, n, t); }; } - function Q1e(t, e) { + function tme(t, e) { if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(t, e); } - function $1e(t, e, r, n) { + function rme(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -73175,7 +73206,7 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); } - function eme(t, e) { + function nme(t, e) { var r = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -73240,14 +73271,14 @@ ${gz(e, r)}`); return { value: u[0] ? u[1] : void 0, done: true }; } } - function tme(t, e, r, n) { + function ime(t, e, r, n) { n === void 0 && (n = r), t[n] = e[r]; } - function rme(t, e) { + function sme(t, e) { for (var r in t) r !== "default" && !e.hasOwnProperty(r) && (e[r] = t[r]); } - function Y5(t) { + function X5(t) { var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0; if (r) return r.call(t); @@ -73259,7 +73290,7 @@ ${gz(e, r)}`); }; throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); } - function UL(t, e) { + function jL(t, e) { var r = typeof Symbol == "function" && t[Symbol.iterator]; if (!r) return t; @@ -73279,12 +73310,12 @@ ${gz(e, r)}`); } return s; } - function nme() { + function ome() { for (var t = [], e = 0; e < arguments.length; e++) - t = t.concat(UL(arguments[e])); + t = t.concat(jL(arguments[e])); return t; } - function ime() { + function ame() { for (var t = 0, e = 0, r = arguments.length; e < r; e++) t += arguments[e].length; for (var n = Array(t), i = 0, e = 0; e < r; e++) @@ -73292,10 +73323,10 @@ ${gz(e, r)}`); n[i] = s[o]; return n; } - function Bd(t) { - return this instanceof Bd ? (this.v = t, this) : new Bd(t); + function Ld(t) { + return this instanceof Ld ? (this.v = t, this) : new Ld(t); } - function sme(t, e, r) { + function cme(t, e, r) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var n = r.apply(t, e || []), i, s = []; @@ -73317,7 +73348,7 @@ ${gz(e, r)}`); } } function c(b) { - b.value instanceof Bd ? Promise.resolve(b.value.v).then(u, f) : p(s[0][2], b); + b.value instanceof Ld ? Promise.resolve(b.value.v).then(u, f) : p(s[0][2], b); } function u(b) { a("next", b); @@ -73329,7 +73360,7 @@ ${gz(e, r)}`); b(E), s.shift(), s.length && a(s[0][0], s[0][1]); } } - function ome(t) { + function ume(t) { var e, r; return e = {}, n("next"), n("throw", function(i) { throw i; @@ -73338,15 +73369,15 @@ ${gz(e, r)}`); }, e; function n(i, s) { e[i] = t[i] ? function(o) { - return (r = !r) ? { value: Bd(t[i](o)), done: i === "return" } : s ? s(o) : o; + return (r = !r) ? { value: Ld(t[i](o)), done: i === "return" } : s ? s(o) : o; } : s; } } - function ame(t) { + function lme(t) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var e = t[Symbol.asyncIterator], r; - return e ? e.call(t) : (t = typeof Y5 == "function" ? Y5(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { + return e ? e.call(t) : (t = typeof X5 == "function" ? X5(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { return this; }, r); function n(s) { @@ -73362,10 +73393,10 @@ ${gz(e, r)}`); }, o); } } - function cme(t, e) { + function fme(t, e) { return Object.defineProperty ? Object.defineProperty(t, "raw", { value: e }) : t.raw = e, t; } - function ume(t) { + function hme(t) { if (t && t.__esModule) return t; var e = {}; @@ -73374,55 +73405,55 @@ ${gz(e, r)}`); Object.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e.default = t, e; } - function lme(t) { + function dme(t) { return t && t.__esModule ? t : { default: t }; } - function fme(t, e) { + function pme(t, e) { if (!e.has(t)) throw new TypeError("attempted to get private field on non-instance"); return e.get(t); } - function hme(t, e, r) { + function mme(t, e, r) { if (!e.has(t)) throw new TypeError("attempted to set private field on non-instance"); return e.set(t, r), r; } - var dme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var gme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, get __assign() { - return X5; - }, - __asyncDelegator: ome, - __asyncGenerator: sme, - __asyncValues: ame, - __await: Bd, - __awaiter: $1e, - __classPrivateFieldGet: fme, - __classPrivateFieldSet: hme, - __createBinding: tme, - __decorate: Z1e, - __exportStar: rme, - __extends: X1e, - __generator: eme, - __importDefault: lme, - __importStar: ume, - __makeTemplateObject: cme, - __metadata: Q1e, - __param: J1e, - __read: UL, - __rest: Y1e, - __spread: nme, - __spreadArrays: ime, - __values: Y5 + return K5; + }, + __asyncDelegator: ume, + __asyncGenerator: cme, + __asyncValues: lme, + __await: Ld, + __awaiter: rme, + __classPrivateFieldGet: pme, + __classPrivateFieldSet: mme, + __createBinding: ime, + __decorate: $1e, + __exportStar: sme, + __extends: J1e, + __generator: nme, + __importDefault: dme, + __importStar: hme, + __makeTemplateObject: fme, + __metadata: tme, + __param: eme, + __read: jL, + __rest: Q1e, + __spread: ome, + __spreadArrays: ame, + __values: X5 }, Symbol.toStringTag, { value: "Module" })); - var S2 = /* @__PURE__ */ fn(dme); - var jb = {}; - var Ph = {}; - var ES; - function pme() { - if (ES) - return Ph; - ES = 1, Object.defineProperty(Ph, "__esModule", { value: true }), Ph.delay = void 0; + var M2 = /* @__PURE__ */ fn(gme); + var Ub = {}; + var Oh = {}; + var _S; + function yme() { + if (_S) + return Oh; + _S = 1, Object.defineProperty(Oh, "__esModule", { value: true }), Oh.delay = void 0; function t(e) { return new Promise((r) => { setTimeout(() => { @@ -73430,59 +73461,59 @@ ${gz(e, r)}`); }, e); }); } - return Ph.delay = t, Ph; + return Oh.delay = t, Oh; } + var Su = {}; + var jb = {}; var Mu = {}; + var ES; + function bme() { + return ES || (ES = 1, Object.defineProperty(Mu, "__esModule", { value: true }), Mu.ONE_THOUSAND = Mu.ONE_HUNDRED = void 0, Mu.ONE_HUNDRED = 100, Mu.ONE_THOUSAND = 1e3), Mu; + } var Vb = {}; - var Au = {}; var SS; - function mme() { - return SS || (SS = 1, Object.defineProperty(Au, "__esModule", { value: true }), Au.ONE_THOUSAND = Au.ONE_HUNDRED = void 0, Au.ONE_HUNDRED = 100, Au.ONE_THOUSAND = 1e3), Au; + function wme() { + return SS || (SS = 1, function(t) { + Object.defineProperty(t, "__esModule", { value: true }), t.ONE_YEAR = t.FOUR_WEEKS = t.THREE_WEEKS = t.TWO_WEEKS = t.ONE_WEEK = t.THIRTY_DAYS = t.SEVEN_DAYS = t.FIVE_DAYS = t.THREE_DAYS = t.ONE_DAY = t.TWENTY_FOUR_HOURS = t.TWELVE_HOURS = t.SIX_HOURS = t.THREE_HOURS = t.ONE_HOUR = t.SIXTY_MINUTES = t.THIRTY_MINUTES = t.TEN_MINUTES = t.FIVE_MINUTES = t.ONE_MINUTE = t.SIXTY_SECONDS = t.THIRTY_SECONDS = t.TEN_SECONDS = t.FIVE_SECONDS = t.ONE_SECOND = void 0, t.ONE_SECOND = 1, t.FIVE_SECONDS = 5, t.TEN_SECONDS = 10, t.THIRTY_SECONDS = 30, t.SIXTY_SECONDS = 60, t.ONE_MINUTE = t.SIXTY_SECONDS, t.FIVE_MINUTES = t.ONE_MINUTE * 5, t.TEN_MINUTES = t.ONE_MINUTE * 10, t.THIRTY_MINUTES = t.ONE_MINUTE * 30, t.SIXTY_MINUTES = t.ONE_MINUTE * 60, t.ONE_HOUR = t.SIXTY_MINUTES, t.THREE_HOURS = t.ONE_HOUR * 3, t.SIX_HOURS = t.ONE_HOUR * 6, t.TWELVE_HOURS = t.ONE_HOUR * 12, t.TWENTY_FOUR_HOURS = t.ONE_HOUR * 24, t.ONE_DAY = t.TWENTY_FOUR_HOURS, t.THREE_DAYS = t.ONE_DAY * 3, t.FIVE_DAYS = t.ONE_DAY * 5, t.SEVEN_DAYS = t.ONE_DAY * 7, t.THIRTY_DAYS = t.ONE_DAY * 30, t.ONE_WEEK = t.SEVEN_DAYS, t.TWO_WEEKS = t.ONE_WEEK * 2, t.THREE_WEEKS = t.ONE_WEEK * 3, t.FOUR_WEEKS = t.ONE_WEEK * 4, t.ONE_YEAR = t.ONE_DAY * 365; + }(Vb)), Vb; } - var zb = {}; var MS; - function gme() { + function VL() { return MS || (MS = 1, function(t) { - Object.defineProperty(t, "__esModule", { value: true }), t.ONE_YEAR = t.FOUR_WEEKS = t.THREE_WEEKS = t.TWO_WEEKS = t.ONE_WEEK = t.THIRTY_DAYS = t.SEVEN_DAYS = t.FIVE_DAYS = t.THREE_DAYS = t.ONE_DAY = t.TWENTY_FOUR_HOURS = t.TWELVE_HOURS = t.SIX_HOURS = t.THREE_HOURS = t.ONE_HOUR = t.SIXTY_MINUTES = t.THIRTY_MINUTES = t.TEN_MINUTES = t.FIVE_MINUTES = t.ONE_MINUTE = t.SIXTY_SECONDS = t.THIRTY_SECONDS = t.TEN_SECONDS = t.FIVE_SECONDS = t.ONE_SECOND = void 0, t.ONE_SECOND = 1, t.FIVE_SECONDS = 5, t.TEN_SECONDS = 10, t.THIRTY_SECONDS = 30, t.SIXTY_SECONDS = 60, t.ONE_MINUTE = t.SIXTY_SECONDS, t.FIVE_MINUTES = t.ONE_MINUTE * 5, t.TEN_MINUTES = t.ONE_MINUTE * 10, t.THIRTY_MINUTES = t.ONE_MINUTE * 30, t.SIXTY_MINUTES = t.ONE_MINUTE * 60, t.ONE_HOUR = t.SIXTY_MINUTES, t.THREE_HOURS = t.ONE_HOUR * 3, t.SIX_HOURS = t.ONE_HOUR * 6, t.TWELVE_HOURS = t.ONE_HOUR * 12, t.TWENTY_FOUR_HOURS = t.ONE_HOUR * 24, t.ONE_DAY = t.TWENTY_FOUR_HOURS, t.THREE_DAYS = t.ONE_DAY * 3, t.FIVE_DAYS = t.ONE_DAY * 5, t.SEVEN_DAYS = t.ONE_DAY * 7, t.THIRTY_DAYS = t.ONE_DAY * 30, t.ONE_WEEK = t.SEVEN_DAYS, t.TWO_WEEKS = t.ONE_WEEK * 2, t.THREE_WEEKS = t.ONE_WEEK * 3, t.FOUR_WEEKS = t.ONE_WEEK * 4, t.ONE_YEAR = t.ONE_DAY * 365; - }(zb)), zb; - } - var AS; - function jL() { - return AS || (AS = 1, function(t) { Object.defineProperty(t, "__esModule", { value: true }); - const e = S2; - e.__exportStar(mme(), t), e.__exportStar(gme(), t); - }(Vb)), Vb; + const e = M2; + e.__exportStar(bme(), t), e.__exportStar(wme(), t); + }(jb)), jb; } - var TS; - function yme() { - if (TS) - return Mu; - TS = 1, Object.defineProperty(Mu, "__esModule", { value: true }), Mu.fromMiliseconds = Mu.toMiliseconds = void 0; - const t = jL(); + var AS; + function vme() { + if (AS) + return Su; + AS = 1, Object.defineProperty(Su, "__esModule", { value: true }), Su.fromMiliseconds = Su.toMiliseconds = void 0; + const t = VL(); function e(n) { return n * t.ONE_THOUSAND; } - Mu.toMiliseconds = e; + Su.toMiliseconds = e; function r(n) { return Math.floor(n / t.ONE_THOUSAND); } - return Mu.fromMiliseconds = r, Mu; + return Su.fromMiliseconds = r, Su; } - var NS; - function bme() { - return NS || (NS = 1, function(t) { + var TS; + function xme() { + return TS || (TS = 1, function(t) { Object.defineProperty(t, "__esModule", { value: true }); - const e = S2; - e.__exportStar(pme(), t), e.__exportStar(yme(), t); - }(jb)), jb; + const e = M2; + e.__exportStar(yme(), t), e.__exportStar(vme(), t); + }(Ub)), Ub; } var Hl = {}; - var IS; - function wme() { - if (IS) + var NS; + function _me() { + if (NS) return Hl; - IS = 1, Object.defineProperty(Hl, "__esModule", { value: true }), Hl.Watch = void 0; + NS = 1, Object.defineProperty(Hl, "__esModule", { value: true }), Hl.Watch = void 0; class t { constructor() { this.timestamps = /* @__PURE__ */ new Map(); @@ -73512,43 +73543,43 @@ ${gz(e, r)}`); } return Hl.Watch = t, Hl.default = t, Hl; } - var Fb = {}; - var kh = {}; - var OS; - function vme() { - if (OS) - return kh; - OS = 1, Object.defineProperty(kh, "__esModule", { value: true }), kh.IWatch = void 0; + var zb = {}; + var Ph = {}; + var IS; + function Eme() { + if (IS) + return Ph; + IS = 1, Object.defineProperty(Ph, "__esModule", { value: true }), Ph.IWatch = void 0; class t { } - return kh.IWatch = t, kh; + return Ph.IWatch = t, Ph; } - var PS; - function xme() { - return PS || (PS = 1, function(t) { - Object.defineProperty(t, "__esModule", { value: true }), S2.__exportStar(vme(), t); - }(Fb)), Fb; + var OS; + function Sme() { + return OS || (OS = 1, function(t) { + Object.defineProperty(t, "__esModule", { value: true }), M2.__exportStar(Eme(), t); + }(zb)), zb; } (function(t) { Object.defineProperty(t, "__esModule", { value: true }); - const e = S2; - e.__exportStar(bme(), t), e.__exportStar(wme(), t), e.__exportStar(xme(), t), e.__exportStar(jL(), t); - })(yt); + const e = M2; + e.__exportStar(xme(), t), e.__exportStar(_me(), t), e.__exportStar(Sme(), t), e.__exportStar(VL(), t); + })(gt); var Pl = class { }; - var _me = class extends Pl { + var Mme = class extends Pl { constructor(e) { super(); } }; - var kS = yt.FIVE_SECONDS; + var PS = gt.FIVE_SECONDS; var N0 = { pulse: "heartbeat_pulse" }; - var Eme = class VL extends _me { + var Ame = class zL extends Mme { constructor(e) { - super(e), this.events = new xo.EventEmitter(), this.interval = kS, this.interval = (e == null ? void 0 : e.interval) || kS; + super(e), this.events = new vo.EventEmitter(), this.interval = PS, this.interval = (e == null ? void 0 : e.interval) || PS; } static async init(e) { - const r = new VL(e); + const r = new zL(e); return await r.init(), r; } async init() { @@ -73570,22 +73601,22 @@ ${gz(e, r)}`); this.events.removeListener(e, r); } async initialize() { - this.intervalRef = setInterval(() => this.pulse(), yt.toMiliseconds(this.interval)); + this.intervalRef = setInterval(() => this.pulse(), gt.toMiliseconds(this.interval)); } pulse() { this.events.emit(N0.pulse); } }; - function Sme(t) { + function Tme(t) { try { return JSON.stringify(t); } catch { return '"[Circular]"'; } } - var Mme = Ame; - function Ame(t, e, r) { - var n = r && r.stringify || Sme, i = 1; + var Nme = Ime; + function Ime(t, e, r) { + var n = r && r.stringify || Tme, i = 1; if (typeof t == "object" && t !== null) { var s = e.length + i; if (s === 1) @@ -73647,38 +73678,38 @@ ${gz(e, r)}`); } return p === -1 ? t : (p < b && (u += t.slice(p)), u); } - var RS = Mme; - var sf = ea; - var Ud = Lme().console || {}; - var Tme = { - mapHttpRequest: Sp, - mapHttpResponse: Sp, - wrapRequestSerializer: Hb, - wrapResponseSerializer: Hb, - wrapErrorSerializer: Hb, - req: Sp, - res: Sp, - err: kme - }; - function Nme(t, e) { + var kS = Nme; + var sf = $o; + var Bd = jme().console || {}; + var Ome = { + mapHttpRequest: Mp, + mapHttpResponse: Mp, + wrapRequestSerializer: Fb, + wrapResponseSerializer: Fb, + wrapErrorSerializer: Fb, + req: Mp, + res: Mp, + err: Dme + }; + function Pme(t, e) { return Array.isArray(t) ? t.filter(function(n) { return n !== "!stdSerializers.err"; }) : t === true ? Object.keys(e) : false; } - function ea(t) { + function $o(t) { t = t || {}, t.browser = t.browser || {}; const e = t.browser.transmit; if (e && typeof e.send != "function") throw Error("pino: transmit option must have a send function"); - const r = t.browser.write || Ud; + const r = t.browser.write || Bd; t.browser.write && (t.browser.asObject = true); - const n = t.serializers || {}, i = Nme(t.browser.serialize, n); + const n = t.serializers || {}, i = Pme(t.browser.serialize, n); let s = t.browser.serialize; Array.isArray(t.browser.serialize) && t.browser.serialize.indexOf("!stdSerializers.err") > -1 && (s = false); const o = ["error", "fatal", "warn", "info", "debug", "trace"]; typeof r == "function" && (r.error = r.fatal = r.warn = r.info = r.debug = r.trace = r), t.enabled === false && (t.level = "silent"); const a = t.level || "info", c = Object.create(r); - c.log || (c.log = jd), Object.defineProperty(c, "levelVal", { + c.log || (c.log = Ud), Object.defineProperty(c, "levelVal", { get: f }), Object.defineProperty(c, "level", { get: p, @@ -73689,9 +73720,9 @@ ${gz(e, r)}`); serialize: i, asObject: t.browser.asObject, levels: o, - timestamp: Rme(t) + timestamp: Lme(t) }; - c.levels = ea.levels, c.level = a, c.setMaxListeners = c.getMaxListeners = c.emit = c.addListener = c.on = c.prependListener = c.once = c.prependOnceListener = c.removeListener = c.removeAllListeners = c.listeners = c.listenerCount = c.eventNames = c.write = c.flush = jd, c.serializers = n, c._serialize = i, c._stdErrSerialize = s, c.child = E, e && (c._logEvent = Z5()); + c.levels = $o.levels, c.level = a, c.setMaxListeners = c.getMaxListeners = c.emit = c.addListener = c.on = c.prependListener = c.once = c.prependOnceListener = c.removeListener = c.removeAllListeners = c.listeners = c.listenerCount = c.eventNames = c.write = c.flush = Ud, c.serializers = n, c._serialize = i, c._stdErrSerialize = s, c.child = E, e && (c._logEvent = Y5()); function f() { return this.level === "silent" ? 1 / 0 : this.levels.values[this.level]; } @@ -73710,10 +73741,10 @@ ${gz(e, r)}`); const k = N.serializers; if (i && k) { var F = Object.assign({}, n, k), L = t.browser.serialize === true ? Object.keys(F) : i; - delete _.serializers, M2([_], L, F, this._stdErrSerialize); + delete _.serializers, A2([_], L, F, this._stdErrSerialize); } function D(q) { - this._childLevel = (q._childLevel | 0) + 1, this.error = Wl(q, _, "error"), this.fatal = Wl(q, _, "fatal"), this.warn = Wl(q, _, "warn"), this.info = Wl(q, _, "info"), this.debug = Wl(q, _, "debug"), this.trace = Wl(q, _, "trace"), F && (this.serializers = F, this._serialize = L), e && (this._logEvent = Z5( + this._childLevel = (q._childLevel | 0) + 1, this.error = Wl(q, _, "error"), this.fatal = Wl(q, _, "fatal"), this.warn = Wl(q, _, "warn"), this.info = Wl(q, _, "info"), this.debug = Wl(q, _, "debug"), this.trace = Wl(q, _, "trace"), F && (this.serializers = F, this._serialize = L), e && (this._logEvent = Y5( [].concat(q._logEvent.bindings, _) )); } @@ -73721,7 +73752,7 @@ ${gz(e, r)}`); } return c; } - ea.levels = { + $o.levels = { values: { fatal: 60, error: 50, @@ -73739,28 +73770,28 @@ ${gz(e, r)}`); 60: "fatal" } }; - ea.stdSerializers = Tme; - ea.stdTimeFunctions = Object.assign({}, { nullTime: zL, epochTime: FL, unixTime: Cme, isoTime: Dme }); + $o.stdSerializers = Ome; + $o.stdTimeFunctions = Object.assign({}, { nullTime: FL, epochTime: HL, unixTime: Bme, isoTime: Ume }); function ql(t, e, r, n) { const i = Object.getPrototypeOf(e); - e[r] = e.levelVal > e.levels.values[r] ? jd : i[r] ? i[r] : Ud[r] || Ud[n] || jd, Ime(t, e, r); + e[r] = e.levelVal > e.levels.values[r] ? Ud : i[r] ? i[r] : Bd[r] || Bd[n] || Ud, kme(t, e, r); } - function Ime(t, e, r) { - !t.transmit && e[r] === jd || (e[r] = function(n) { + function kme(t, e, r) { + !t.transmit && e[r] === Ud || (e[r] = function(n) { return function() { - const s = t.timestamp(), o = new Array(arguments.length), a = Object.getPrototypeOf && Object.getPrototypeOf(this) === Ud ? Ud : this; + const s = t.timestamp(), o = new Array(arguments.length), a = Object.getPrototypeOf && Object.getPrototypeOf(this) === Bd ? Bd : this; for (var c = 0; c < o.length; c++) o[c] = arguments[c]; - if (t.serialize && !t.asObject && M2(o, this._serialize, this.serializers, this._stdErrSerialize), t.asObject ? n.call(a, Ome(this, r, o, s)) : n.apply(a, o), t.transmit) { - const u = t.transmit.level || e.level, f = ea.levels.values[u], p = ea.levels.values[r]; + if (t.serialize && !t.asObject && A2(o, this._serialize, this.serializers, this._stdErrSerialize), t.asObject ? n.call(a, Rme(this, r, o, s)) : n.apply(a, o), t.transmit) { + const u = t.transmit.level || e.level, f = $o.levels.values[u], p = $o.levels.values[r]; if (p < f) return; - Pme(this, { + Cme(this, { ts: s, methodLevel: r, methodValue: p, transmitLevel: u, - transmitValue: ea.levels.values[t.transmit.level || e.level], + transmitValue: $o.levels.values[t.transmit.level || e.level], send: t.transmit.send, val: e.levelVal }, o); @@ -73768,25 +73799,25 @@ ${gz(e, r)}`); }; }(e[r])); } - function Ome(t, e, r, n) { - t._serialize && M2(r, t._serialize, t.serializers, t._stdErrSerialize); + function Rme(t, e, r, n) { + t._serialize && A2(r, t._serialize, t.serializers, t._stdErrSerialize); const i = r.slice(); let s = i[0]; const o = {}; - n && (o.time = n), o.level = ea.levels.values[e]; + n && (o.time = n), o.level = $o.levels.values[e]; let a = (t._childLevel | 0) + 1; if (a < 1 && (a = 1), s !== null && typeof s == "object") { for (; a-- && typeof i[0] == "object"; ) Object.assign(o, i.shift()); - s = i.length ? RS(i.shift(), i) : void 0; + s = i.length ? kS(i.shift(), i) : void 0; } else - typeof s == "string" && (s = RS(i.shift(), i)); + typeof s == "string" && (s = kS(i.shift(), i)); return s !== void 0 && (o.msg = s), o; } - function M2(t, e, r, n) { + function A2(t, e, r, n) { for (const i in t) if (n && t[i] instanceof Error) - t[i] = ea.stdSerializers.err(t[i]); + t[i] = $o.stdSerializers.err(t[i]); else if (typeof t[i] == "object" && !Array.isArray(t[i])) for (const s in t[i]) e && e.indexOf(s) > -1 && s in r && (t[i][s] = r[s](t[i][s])); @@ -73800,18 +73831,18 @@ ${gz(e, r)}`); return t[r].apply(this, n); }; } - function Pme(t, e, r) { + function Cme(t, e, r) { const n = e.send, i = e.ts, s = e.methodLevel, o = e.methodValue, a = e.val, c = t._logEvent.bindings; - M2( + A2( r, t._serialize || Object.keys(t.serializers), t.serializers, t._stdErrSerialize === void 0 ? true : t._stdErrSerialize ), t._logEvent.ts = i, t._logEvent.messages = r.filter(function(u) { return c.indexOf(u) === -1; - }), t._logEvent.level.label = s, t._logEvent.level.value = o, n(s, t._logEvent, a), t._logEvent = Z5(c); + }), t._logEvent.level.label = s, t._logEvent.level.value = o, n(s, t._logEvent, a), t._logEvent = Y5(c); } - function Z5(t) { + function Y5(t) { return { ts: 0, messages: [], @@ -73819,7 +73850,7 @@ ${gz(e, r)}`); level: { label: "", value: 0 } }; } - function kme(t) { + function Dme(t) { const e = { type: t.constructor.name, msg: t.message, @@ -73829,30 +73860,30 @@ ${gz(e, r)}`); e[r] === void 0 && (e[r] = t[r]); return e; } - function Rme(t) { - return typeof t.timestamp == "function" ? t.timestamp : t.timestamp === false ? zL : FL; + function Lme(t) { + return typeof t.timestamp == "function" ? t.timestamp : t.timestamp === false ? FL : HL; } - function Sp() { + function Mp() { return {}; } - function Hb(t) { + function Fb(t) { return t; } - function jd() { + function Ud() { } - function zL() { + function FL() { return false; } - function FL() { + function HL() { return Date.now(); } - function Cme() { + function Bme() { return Math.round(Date.now() / 1e3); } - function Dme() { + function Ume() { return new Date(Date.now()).toISOString(); } - function Lme() { + function jme() { function t(e) { return typeof e < "u" && e; } @@ -73867,11 +73898,11 @@ ${gz(e, r)}`); return t(self) || t(window) || t(this) || {}; } } - var A2 = /* @__PURE__ */ nc(sf); - var Bme = { level: "info" }; + var T2 = /* @__PURE__ */ tc(sf); + var Vme = { level: "info" }; var I0 = "custom_context"; - var zx = 1e3 * 1024; - var Ume = class { + var Vx = 1e3 * 1024; + var zme = class { constructor(e) { this.nodeValue = e, this.sizeInBytes = new TextEncoder().encode(this.nodeValue).length, this.next = null; } @@ -73882,12 +73913,12 @@ ${gz(e, r)}`); return this.sizeInBytes; } }; - var CS = class { + var RS = class { constructor(e) { this.head = null, this.tail = null, this.lengthInNodes = 0, this.maxSizeInBytes = e, this.sizeInBytes = 0; } append(e) { - const r = new Ume(e); + const r = new zme(e); if (r.size > this.maxSizeInBytes) throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${r.size}`); for (; this.size + r.size > this.maxSizeInBytes; ) @@ -73926,9 +73957,9 @@ ${gz(e, r)}`); } }; } }; - var HL = class { - constructor(e, r = zx) { - this.level = e ?? "error", this.levelValue = sf.levels.values[this.level], this.MAX_LOG_SIZE_IN_BYTES = r, this.logs = new CS(this.MAX_LOG_SIZE_IN_BYTES); + var qL = class { + constructor(e, r = Vx) { + this.level = e ?? "error", this.levelValue = sf.levels.values[this.level], this.MAX_LOG_SIZE_IN_BYTES = r, this.logs = new RS(this.MAX_LOG_SIZE_IN_BYTES); } forwardToConsole(e, r) { r === sf.levels.values.error ? console.error(e) : r === sf.levels.values.warn ? console.warn(e) : r === sf.levels.values.debug ? console.debug(e) : r === sf.levels.values.trace ? console.trace(e) : console.log(e); @@ -73942,7 +73973,7 @@ ${gz(e, r)}`); return this.logs; } clearLogs() { - this.logs = new CS(this.MAX_LOG_SIZE_IN_BYTES); + this.logs = new RS(this.MAX_LOG_SIZE_IN_BYTES); } getLogArray() { return Array.from(this.logs); @@ -73952,9 +73983,9 @@ ${gz(e, r)}`); return r.push(ul({ extraMetadata: e })), new Blob(r, { type: "application/json" }); } }; - var jme = class { - constructor(e, r = zx) { - this.baseChunkLogger = new HL(e, r); + var Fme = class { + constructor(e, r = Vx) { + this.baseChunkLogger = new qL(e, r); } write(e) { this.baseChunkLogger.appendToLogs(e); @@ -73976,9 +74007,9 @@ ${gz(e, r)}`); n.href = r, n.download = `walletconnect-logs-${(/* @__PURE__ */ new Date()).toISOString()}.txt`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(r); } }; - var Vme = class { - constructor(e, r = zx) { - this.baseChunkLogger = new HL(e, r); + var Hme = class { + constructor(e, r = Vx) { + this.baseChunkLogger = new qL(e, r); } write(e) { this.baseChunkLogger.appendToLogs(e); @@ -73996,124 +74027,124 @@ ${gz(e, r)}`); return this.baseChunkLogger.logsToBlob(e); } }; - var zme = Object.defineProperty; - var Fme = Object.defineProperties; - var Hme = Object.getOwnPropertyDescriptors; - var DS = Object.getOwnPropertySymbols; - var qme = Object.prototype.hasOwnProperty; - var Wme = Object.prototype.propertyIsEnumerable; - var LS = (t, e, r) => e in t ? zme(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var Im = (t, e) => { + var qme = Object.defineProperty; + var Wme = Object.defineProperties; + var Gme = Object.getOwnPropertyDescriptors; + var CS = Object.getOwnPropertySymbols; + var Kme = Object.prototype.hasOwnProperty; + var Xme = Object.prototype.propertyIsEnumerable; + var DS = (t, e, r) => e in t ? qme(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var Om = (t, e) => { for (var r in e || (e = {})) - qme.call(e, r) && LS(t, r, e[r]); - if (DS) - for (var r of DS(e)) - Wme.call(e, r) && LS(t, r, e[r]); + Kme.call(e, r) && DS(t, r, e[r]); + if (CS) + for (var r of CS(e)) + Xme.call(e, r) && DS(t, r, e[r]); return t; }; - var Om = (t, e) => Fme(t, Hme(e)); - function Fx(t) { - return Om(Im({}, t), { level: (t == null ? void 0 : t.level) || Bme.level }); + var Pm = (t, e) => Wme(t, Gme(e)); + function zx(t) { + return Pm(Om({}, t), { level: (t == null ? void 0 : t.level) || Vme.level }); } - function Gme(t, e = I0) { + function Yme(t, e = I0) { return t[e] || ""; } - function Kme(t, e, r = I0) { + function Zme(t, e, r = I0) { return t[r] = e, t; } function Yi(t, e = I0) { let r = ""; - return typeof t.bindings > "u" ? r = Gme(t, e) : r = t.bindings().context || "", r; + return typeof t.bindings > "u" ? r = Yme(t, e) : r = t.bindings().context || "", r; } - function Xme(t, e, r = I0) { + function Jme(t, e, r = I0) { const n = Yi(t, r); return n.trim() ? `${n}/${e}` : e; } function Zi(t, e, r = I0) { - const n = Xme(t, e, r), i = t.child({ context: n }); - return Kme(i, n, r); + const n = Jme(t, e, r), i = t.child({ context: n }); + return Zme(i, n, r); } - function Yme(t) { + function Qme(t) { var e, r; - const n = new jme((e = t.opts) == null ? void 0 : e.level, t.maxSizeInBytes); - return { logger: A2(Om(Im({}, t.opts), { level: "trace", browser: Om(Im({}, (r = t.opts) == null ? void 0 : r.browser), { write: (i) => n.write(i) }) })), chunkLoggerController: n }; + const n = new Fme((e = t.opts) == null ? void 0 : e.level, t.maxSizeInBytes); + return { logger: T2(Pm(Om({}, t.opts), { level: "trace", browser: Pm(Om({}, (r = t.opts) == null ? void 0 : r.browser), { write: (i) => n.write(i) }) })), chunkLoggerController: n }; } - function Zme(t) { + function $me(t) { var e; - const r = new Vme((e = t.opts) == null ? void 0 : e.level, t.maxSizeInBytes); - return { logger: A2(Om(Im({}, t.opts), { level: "trace" }), r), chunkLoggerController: r }; + const r = new Hme((e = t.opts) == null ? void 0 : e.level, t.maxSizeInBytes); + return { logger: T2(Pm(Om({}, t.opts), { level: "trace" }), r), chunkLoggerController: r }; } - function Jme(t) { - return typeof t.loggerOverride < "u" && typeof t.loggerOverride != "string" ? { logger: t.loggerOverride, chunkLoggerController: null } : typeof window < "u" ? Yme(t) : Zme(t); + function ege(t) { + return typeof t.loggerOverride < "u" && typeof t.loggerOverride != "string" ? { logger: t.loggerOverride, chunkLoggerController: null } : typeof window < "u" ? Qme(t) : $me(t); } - var Qme = class extends Pl { + var tge = class extends Pl { constructor(e) { super(), this.opts = e, this.protocol = "wc", this.version = 2; } }; - var $me = class extends Pl { + var rge = class extends Pl { constructor(e, r) { super(), this.core = e, this.logger = r, this.records = /* @__PURE__ */ new Map(); } }; - var ege = class { + var nge = class { constructor(e, r) { this.logger = e, this.core = r; } }; - var tge = class extends Pl { + var ige = class extends Pl { constructor(e, r) { super(), this.relayer = e, this.logger = r; } }; - var rge = class extends Pl { + var sge = class extends Pl { constructor(e) { super(); } }; - var nge = class { + var oge = class { constructor(e, r, n, i) { this.core = e, this.logger = r, this.name = n; } }; - var ige = class extends Pl { + var age = class extends Pl { constructor(e, r) { super(), this.relayer = e, this.logger = r; } }; - var sge = class extends Pl { + var cge = class extends Pl { constructor(e, r) { super(), this.core = e, this.logger = r; } }; - var oge = class { + var uge = class { constructor(e, r) { this.projectId = e, this.logger = r; } }; - var age = class { + var lge = class { constructor(e, r) { this.projectId = e, this.logger = r; } }; - var cge = class { + var fge = class { constructor(e) { this.opts = e, this.protocol = "wc", this.version = 2; } }; - var uge = class { + var hge = class { constructor(e) { this.client = e; } }; - var Hx = {}; - var eh = {}; - var T2 = {}; + var Fx = {}; + var $f = {}; var N2 = {}; - Object.defineProperty(N2, "__esModule", { value: true }); - N2.BrowserRandomSource = void 0; - var BS = 65536; - var lge = class { + var I2 = {}; + Object.defineProperty(I2, "__esModule", { value: true }); + I2.BrowserRandomSource = void 0; + var LS = 65536; + var dge = class { constructor() { this.isAvailable = false, this.isInstantiated = false; const e = typeof self < "u" ? self.crypto || self.msCrypto : null; @@ -74123,30 +74154,30 @@ ${gz(e, r)}`); if (!this.isAvailable || !this._crypto) throw new Error("Browser random byte generator is not available."); const r = new Uint8Array(e); - for (let n = 0; n < r.length; n += BS) - this._crypto.getRandomValues(r.subarray(n, n + Math.min(r.length - n, BS))); + for (let n = 0; n < r.length; n += LS) + this._crypto.getRandomValues(r.subarray(n, n + Math.min(r.length - n, LS))); return r; } }; - N2.BrowserRandomSource = lge; - function fge(t) { + I2.BrowserRandomSource = dge; + function pge(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } - var I2 = {}; + var O2 = {}; var hs = {}; Object.defineProperty(hs, "__esModule", { value: true }); - function hge(t) { + function mge(t) { for (var e = 0; e < t.length; e++) t[e] = 0; return t; } - hs.wipe = hge; - Object.defineProperty(I2, "__esModule", { value: true }); - I2.NodeRandomSource = void 0; - var dge = hs; - var pge = class { + hs.wipe = mge; + Object.defineProperty(O2, "__esModule", { value: true }); + O2.NodeRandomSource = void 0; + var gge = hs; + var yge = class { constructor() { - if (this.isAvailable = false, this.isInstantiated = false, typeof fge < "u") { + if (this.isAvailable = false, this.isInstantiated = false, typeof pge < "u") { const e = ng; e && e.randomBytes && (this._crypto = e, this.isAvailable = true, this.isInstantiated = true); } @@ -74160,21 +74191,21 @@ ${gz(e, r)}`); const n = new Uint8Array(e); for (let i = 0; i < n.length; i++) n[i] = r[i]; - return (0, dge.wipe)(r), n; + return (0, gge.wipe)(r), n; } }; - I2.NodeRandomSource = pge; - Object.defineProperty(T2, "__esModule", { value: true }); - T2.SystemRandomSource = void 0; - var mge = N2; - var gge = I2; - var yge = class { + O2.NodeRandomSource = yge; + Object.defineProperty(N2, "__esModule", { value: true }); + N2.SystemRandomSource = void 0; + var bge = I2; + var wge = O2; + var vge = class { constructor() { - if (this.isAvailable = false, this.name = "", this._source = new mge.BrowserRandomSource(), this._source.isAvailable) { + if (this.isAvailable = false, this.name = "", this._source = new bge.BrowserRandomSource(), this._source.isAvailable) { this.isAvailable = true, this.name = "Browser"; return; } - if (this._source = new gge.NodeRandomSource(), this._source.isAvailable) { + if (this._source = new wge.NodeRandomSource(), this._source.isAvailable) { this.isAvailable = true, this.name = "Node"; return; } @@ -74185,9 +74216,9 @@ ${gz(e, r)}`); return this._source.randomBytes(e); } }; - T2.SystemRandomSource = yge; + N2.SystemRandomSource = vge; var Ut = {}; - var qL = {}; + var WL = {}; (function(t) { Object.defineProperty(t, "__esModule", { value: true }); function e(a, c) { @@ -74217,96 +74248,96 @@ ${gz(e, r)}`); t.isInteger = Number.isInteger || o, t.MAX_SAFE_INTEGER = 9007199254740991, t.isSafeInteger = function(a) { return t.isInteger(a) && a >= -t.MAX_SAFE_INTEGER && a <= t.MAX_SAFE_INTEGER; }; - })(qL); + })(WL); Object.defineProperty(Ut, "__esModule", { value: true }); - var WL = qL; - function bge(t, e) { + var GL = WL; + function xge(t, e) { return e === void 0 && (e = 0), (t[e + 0] << 8 | t[e + 1]) << 16 >> 16; } - Ut.readInt16BE = bge; - function wge(t, e) { + Ut.readInt16BE = xge; + function _ge(t, e) { return e === void 0 && (e = 0), (t[e + 0] << 8 | t[e + 1]) >>> 0; } - Ut.readUint16BE = wge; - function vge(t, e) { + Ut.readUint16BE = _ge; + function Ege(t, e) { return e === void 0 && (e = 0), (t[e + 1] << 8 | t[e]) << 16 >> 16; } - Ut.readInt16LE = vge; - function xge(t, e) { + Ut.readInt16LE = Ege; + function Sge(t, e) { return e === void 0 && (e = 0), (t[e + 1] << 8 | t[e]) >>> 0; } - Ut.readUint16LE = xge; - function GL(t, e, r) { + Ut.readUint16LE = Sge; + function KL(t, e, r) { return e === void 0 && (e = new Uint8Array(2)), r === void 0 && (r = 0), e[r + 0] = t >>> 8, e[r + 1] = t >>> 0, e; } - Ut.writeUint16BE = GL; - Ut.writeInt16BE = GL; - function KL(t, e, r) { + Ut.writeUint16BE = KL; + Ut.writeInt16BE = KL; + function XL(t, e, r) { return e === void 0 && (e = new Uint8Array(2)), r === void 0 && (r = 0), e[r + 0] = t >>> 0, e[r + 1] = t >>> 8, e; } - Ut.writeUint16LE = KL; - Ut.writeInt16LE = KL; - function J5(t, e) { + Ut.writeUint16LE = XL; + Ut.writeInt16LE = XL; + function Z5(t, e) { return e === void 0 && (e = 0), t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]; } - Ut.readInt32BE = J5; - function Q5(t, e) { + Ut.readInt32BE = Z5; + function J5(t, e) { return e === void 0 && (e = 0), (t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]) >>> 0; } - Ut.readUint32BE = Q5; - function $5(t, e) { + Ut.readUint32BE = J5; + function Q5(t, e) { return e === void 0 && (e = 0), t[e + 3] << 24 | t[e + 2] << 16 | t[e + 1] << 8 | t[e]; } - Ut.readInt32LE = $5; - function ev(t, e) { + Ut.readInt32LE = Q5; + function $5(t, e) { return e === void 0 && (e = 0), (t[e + 3] << 24 | t[e + 2] << 16 | t[e + 1] << 8 | t[e]) >>> 0; } - Ut.readUint32LE = ev; - function Pm(t, e, r) { + Ut.readUint32LE = $5; + function km(t, e, r) { return e === void 0 && (e = new Uint8Array(4)), r === void 0 && (r = 0), e[r + 0] = t >>> 24, e[r + 1] = t >>> 16, e[r + 2] = t >>> 8, e[r + 3] = t >>> 0, e; } - Ut.writeUint32BE = Pm; - Ut.writeInt32BE = Pm; - function km(t, e, r) { + Ut.writeUint32BE = km; + Ut.writeInt32BE = km; + function Rm(t, e, r) { return e === void 0 && (e = new Uint8Array(4)), r === void 0 && (r = 0), e[r + 0] = t >>> 0, e[r + 1] = t >>> 8, e[r + 2] = t >>> 16, e[r + 3] = t >>> 24, e; } - Ut.writeUint32LE = km; - Ut.writeInt32LE = km; - function _ge(t, e) { + Ut.writeUint32LE = Rm; + Ut.writeInt32LE = Rm; + function Mge(t, e) { e === void 0 && (e = 0); - var r = J5(t, e), n = J5(t, e + 4); + var r = Z5(t, e), n = Z5(t, e + 4); return r * 4294967296 + n - (n >> 31) * 4294967296; } - Ut.readInt64BE = _ge; - function Ege(t, e) { + Ut.readInt64BE = Mge; + function Age(t, e) { e === void 0 && (e = 0); - var r = Q5(t, e), n = Q5(t, e + 4); + var r = J5(t, e), n = J5(t, e + 4); return r * 4294967296 + n; } - Ut.readUint64BE = Ege; - function Sge(t, e) { + Ut.readUint64BE = Age; + function Tge(t, e) { e === void 0 && (e = 0); - var r = $5(t, e), n = $5(t, e + 4); + var r = Q5(t, e), n = Q5(t, e + 4); return n * 4294967296 + r - (r >> 31) * 4294967296; } - Ut.readInt64LE = Sge; - function Mge(t, e) { + Ut.readInt64LE = Tge; + function Nge(t, e) { e === void 0 && (e = 0); - var r = ev(t, e), n = ev(t, e + 4); + var r = $5(t, e), n = $5(t, e + 4); return n * 4294967296 + r; } - Ut.readUint64LE = Mge; - function XL(t, e, r) { - return e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0), Pm(t / 4294967296 >>> 0, e, r), Pm(t >>> 0, e, r + 4), e; - } - Ut.writeUint64BE = XL; - Ut.writeInt64BE = XL; + Ut.readUint64LE = Nge; function YL(t, e, r) { - return e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0), km(t >>> 0, e, r), km(t / 4294967296 >>> 0, e, r + 4), e; + return e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0), km(t / 4294967296 >>> 0, e, r), km(t >>> 0, e, r + 4), e; + } + Ut.writeUint64BE = YL; + Ut.writeInt64BE = YL; + function ZL(t, e, r) { + return e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0), Rm(t >>> 0, e, r), Rm(t / 4294967296 >>> 0, e, r + 4), e; } - Ut.writeUint64LE = YL; - Ut.writeInt64LE = YL; - function Age(t, e, r) { + Ut.writeUint64LE = ZL; + Ut.writeInt64LE = ZL; + function Ige(t, e, r) { if (r === void 0 && (r = 0), t % 8 !== 0) throw new Error("readUintBE supports only bitLengths divisible by 8"); if (t / 8 > e.length - r) @@ -74315,8 +74346,8 @@ ${gz(e, r)}`); n += e[s] * i, i *= 256; return n; } - Ut.readUintBE = Age; - function Tge(t, e, r) { + Ut.readUintBE = Ige; + function Oge(t, e, r) { if (r === void 0 && (r = 0), t % 8 !== 0) throw new Error("readUintLE supports only bitLengths divisible by 8"); if (t / 8 > e.length - r) @@ -74325,78 +74356,78 @@ ${gz(e, r)}`); n += e[s] * i, i *= 256; return n; } - Ut.readUintLE = Tge; - function Nge(t, e, r, n) { + Ut.readUintLE = Oge; + function Pge(t, e, r, n) { if (r === void 0 && (r = new Uint8Array(t / 8)), n === void 0 && (n = 0), t % 8 !== 0) throw new Error("writeUintBE supports only bitLengths divisible by 8"); - if (!WL.isSafeInteger(e)) + if (!GL.isSafeInteger(e)) throw new Error("writeUintBE value must be an integer"); for (var i = 1, s = t / 8 + n - 1; s >= n; s--) r[s] = e / i & 255, i *= 256; return r; } - Ut.writeUintBE = Nge; - function Ige(t, e, r, n) { + Ut.writeUintBE = Pge; + function kge(t, e, r, n) { if (r === void 0 && (r = new Uint8Array(t / 8)), n === void 0 && (n = 0), t % 8 !== 0) throw new Error("writeUintLE supports only bitLengths divisible by 8"); - if (!WL.isSafeInteger(e)) + if (!GL.isSafeInteger(e)) throw new Error("writeUintLE value must be an integer"); for (var i = 1, s = n; s < n + t / 8; s++) r[s] = e / i & 255, i *= 256; return r; } - Ut.writeUintLE = Ige; - function Oge(t, e) { + Ut.writeUintLE = kge; + function Rge(t, e) { e === void 0 && (e = 0); var r = new DataView(t.buffer, t.byteOffset, t.byteLength); return r.getFloat32(e); } - Ut.readFloat32BE = Oge; - function Pge(t, e) { + Ut.readFloat32BE = Rge; + function Cge(t, e) { e === void 0 && (e = 0); var r = new DataView(t.buffer, t.byteOffset, t.byteLength); return r.getFloat32(e, true); } - Ut.readFloat32LE = Pge; - function kge(t, e) { + Ut.readFloat32LE = Cge; + function Dge(t, e) { e === void 0 && (e = 0); var r = new DataView(t.buffer, t.byteOffset, t.byteLength); return r.getFloat64(e); } - Ut.readFloat64BE = kge; - function Rge(t, e) { + Ut.readFloat64BE = Dge; + function Lge(t, e) { e === void 0 && (e = 0); var r = new DataView(t.buffer, t.byteOffset, t.byteLength); return r.getFloat64(e, true); } - Ut.readFloat64LE = Rge; - function Cge(t, e, r) { + Ut.readFloat64LE = Lge; + function Bge(t, e, r) { e === void 0 && (e = new Uint8Array(4)), r === void 0 && (r = 0); var n = new DataView(e.buffer, e.byteOffset, e.byteLength); return n.setFloat32(r, t), e; } - Ut.writeFloat32BE = Cge; - function Dge(t, e, r) { + Ut.writeFloat32BE = Bge; + function Uge(t, e, r) { e === void 0 && (e = new Uint8Array(4)), r === void 0 && (r = 0); var n = new DataView(e.buffer, e.byteOffset, e.byteLength); return n.setFloat32(r, t, true), e; } - Ut.writeFloat32LE = Dge; - function Lge(t, e, r) { + Ut.writeFloat32LE = Uge; + function jge(t, e, r) { e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0); var n = new DataView(e.buffer, e.byteOffset, e.byteLength); return n.setFloat64(r, t), e; } - Ut.writeFloat64BE = Lge; - function Bge(t, e, r) { + Ut.writeFloat64BE = jge; + function Vge(t, e, r) { e === void 0 && (e = new Uint8Array(8)), r === void 0 && (r = 0); var n = new DataView(e.buffer, e.byteOffset, e.byteLength); return n.setFloat64(r, t, true), e; } - Ut.writeFloat64LE = Bge; + Ut.writeFloat64LE = Vge; (function(t) { Object.defineProperty(t, "__esModule", { value: true }), t.randomStringForEntropy = t.randomString = t.randomUint32 = t.randomBytes = t.defaultRandomSource = void 0; - const e = T2, r = Ut, n = hs; + const e = N2, r = Ut, n = hs; t.defaultRandomSource = new e.SystemRandomSource(); function i(u, f = t.defaultRandomSource) { return f.randomBytes(u); @@ -74431,8 +74462,8 @@ ${gz(e, r)}`); return a(b, f, p); } t.randomStringForEntropy = c; - })(eh); - var ZL = {}; + })($f); + var JL = {}; (function(t) { Object.defineProperty(t, "__esModule", { value: true }); var e = Ut, r = hs; @@ -74675,10 +74706,10 @@ ${gz(e, r)}`); return c.clean(), u; } t.hash = o; - })(ZL); + })(JL); (function(t) { Object.defineProperty(t, "__esModule", { value: true }), t.convertSecretKeyToX25519 = t.convertPublicKeyToX25519 = t.verify = t.sign = t.extractPublicKeyFromSecretKey = t.generateKeyPair = t.generateKeyPairFromSeed = t.SEED_LENGTH = t.SECRET_KEY_LENGTH = t.PUBLIC_KEY_LENGTH = t.SIGNATURE_LENGTH = void 0; - const e = eh, r = ZL, n = hs; + const e = $f, r = JL, n = hs; t.SIGNATURE_LENGTH = 64, t.PUBLIC_KEY_LENGTH = 32, t.SECRET_KEY_LENGTH = 64, t.SEED_LENGTH = 32; function i(U) { const j = new Float64Array(16); @@ -74838,8 +74869,8 @@ ${gz(e, r)}`); U[R] = j[R] - G[R]; } function T(U, j, G) { - let R, Y, ee = 0, ae = 0, ie = 0, Z = 0, ce = 0, oe = 0, me = 0, pe = 0, se = 0, le = 0, be = 0, ye = 0, Ee = 0, Te = 0, C = 0, O = 0, B = 0, $ = 0, te = 0, J = 0, ne = 0, fe = 0, ge = 0, de = 0, ve = 0, Ae = 0, Ne = 0, De = 0, ut = 0, Ve = 0, Ze = 0, Ge = G[0], ke = G[1], Re = G[2], Je = G[3], Me = G[4], Pe = G[5], et = G[6], Ce = G[7], ze = G[8], nt = G[9], qe = G[10], Ke = G[11], at = G[12], We = G[13], $e = G[14], dt = G[15]; - R = j[0], ee += R * Ge, ae += R * ke, ie += R * Re, Z += R * Je, ce += R * Me, oe += R * Pe, me += R * et, pe += R * Ce, se += R * ze, le += R * nt, be += R * qe, ye += R * Ke, Ee += R * at, Te += R * We, C += R * $e, O += R * dt, R = j[1], ae += R * Ge, ie += R * ke, Z += R * Re, ce += R * Je, oe += R * Me, me += R * Pe, pe += R * et, se += R * Ce, le += R * ze, be += R * nt, ye += R * qe, Ee += R * Ke, Te += R * at, C += R * We, O += R * $e, B += R * dt, R = j[2], ie += R * Ge, Z += R * ke, ce += R * Re, oe += R * Je, me += R * Me, pe += R * Pe, se += R * et, le += R * Ce, be += R * ze, ye += R * nt, Ee += R * qe, Te += R * Ke, C += R * at, O += R * We, B += R * $e, $ += R * dt, R = j[3], Z += R * Ge, ce += R * ke, oe += R * Re, me += R * Je, pe += R * Me, se += R * Pe, le += R * et, be += R * Ce, ye += R * ze, Ee += R * nt, Te += R * qe, C += R * Ke, O += R * at, B += R * We, $ += R * $e, te += R * dt, R = j[4], ce += R * Ge, oe += R * ke, me += R * Re, pe += R * Je, se += R * Me, le += R * Pe, be += R * et, ye += R * Ce, Ee += R * ze, Te += R * nt, C += R * qe, O += R * Ke, B += R * at, $ += R * We, te += R * $e, J += R * dt, R = j[5], oe += R * Ge, me += R * ke, pe += R * Re, se += R * Je, le += R * Me, be += R * Pe, ye += R * et, Ee += R * Ce, Te += R * ze, C += R * nt, O += R * qe, B += R * Ke, $ += R * at, te += R * We, J += R * $e, ne += R * dt, R = j[6], me += R * Ge, pe += R * ke, se += R * Re, le += R * Je, be += R * Me, ye += R * Pe, Ee += R * et, Te += R * Ce, C += R * ze, O += R * nt, B += R * qe, $ += R * Ke, te += R * at, J += R * We, ne += R * $e, fe += R * dt, R = j[7], pe += R * Ge, se += R * ke, le += R * Re, be += R * Je, ye += R * Me, Ee += R * Pe, Te += R * et, C += R * Ce, O += R * ze, B += R * nt, $ += R * qe, te += R * Ke, J += R * at, ne += R * We, fe += R * $e, ge += R * dt, R = j[8], se += R * Ge, le += R * ke, be += R * Re, ye += R * Je, Ee += R * Me, Te += R * Pe, C += R * et, O += R * Ce, B += R * ze, $ += R * nt, te += R * qe, J += R * Ke, ne += R * at, fe += R * We, ge += R * $e, de += R * dt, R = j[9], le += R * Ge, be += R * ke, ye += R * Re, Ee += R * Je, Te += R * Me, C += R * Pe, O += R * et, B += R * Ce, $ += R * ze, te += R * nt, J += R * qe, ne += R * Ke, fe += R * at, ge += R * We, de += R * $e, ve += R * dt, R = j[10], be += R * Ge, ye += R * ke, Ee += R * Re, Te += R * Je, C += R * Me, O += R * Pe, B += R * et, $ += R * Ce, te += R * ze, J += R * nt, ne += R * qe, fe += R * Ke, ge += R * at, de += R * We, ve += R * $e, Ae += R * dt, R = j[11], ye += R * Ge, Ee += R * ke, Te += R * Re, C += R * Je, O += R * Me, B += R * Pe, $ += R * et, te += R * Ce, J += R * ze, ne += R * nt, fe += R * qe, ge += R * Ke, de += R * at, ve += R * We, Ae += R * $e, Ne += R * dt, R = j[12], Ee += R * Ge, Te += R * ke, C += R * Re, O += R * Je, B += R * Me, $ += R * Pe, te += R * et, J += R * Ce, ne += R * ze, fe += R * nt, ge += R * qe, de += R * Ke, ve += R * at, Ae += R * We, Ne += R * $e, De += R * dt, R = j[13], Te += R * Ge, C += R * ke, O += R * Re, B += R * Je, $ += R * Me, te += R * Pe, J += R * et, ne += R * Ce, fe += R * ze, ge += R * nt, de += R * qe, ve += R * Ke, Ae += R * at, Ne += R * We, De += R * $e, ut += R * dt, R = j[14], C += R * Ge, O += R * ke, B += R * Re, $ += R * Je, te += R * Me, J += R * Pe, ne += R * et, fe += R * Ce, ge += R * ze, de += R * nt, ve += R * qe, Ae += R * Ke, Ne += R * at, De += R * We, ut += R * $e, Ve += R * dt, R = j[15], O += R * Ge, B += R * ke, $ += R * Re, te += R * Je, J += R * Me, ne += R * Pe, fe += R * et, ge += R * Ce, de += R * ze, ve += R * nt, Ae += R * qe, Ne += R * Ke, De += R * at, ut += R * We, Ve += R * $e, Ze += R * dt, ee += 38 * B, ae += 38 * $, ie += 38 * te, Z += 38 * J, ce += 38 * ne, oe += 38 * fe, me += 38 * ge, pe += 38 * de, se += 38 * ve, le += 38 * Ae, be += 38 * Ne, ye += 38 * De, Ee += 38 * ut, Te += 38 * Ve, C += 38 * Ze, Y = 1, R = ee + Y + 65535, Y = Math.floor(R / 65536), ee = R - Y * 65536, R = ae + Y + 65535, Y = Math.floor(R / 65536), ae = R - Y * 65536, R = ie + Y + 65535, Y = Math.floor(R / 65536), ie = R - Y * 65536, R = Z + Y + 65535, Y = Math.floor(R / 65536), Z = R - Y * 65536, R = ce + Y + 65535, Y = Math.floor(R / 65536), ce = R - Y * 65536, R = oe + Y + 65535, Y = Math.floor(R / 65536), oe = R - Y * 65536, R = me + Y + 65535, Y = Math.floor(R / 65536), me = R - Y * 65536, R = pe + Y + 65535, Y = Math.floor(R / 65536), pe = R - Y * 65536, R = se + Y + 65535, Y = Math.floor(R / 65536), se = R - Y * 65536, R = le + Y + 65535, Y = Math.floor(R / 65536), le = R - Y * 65536, R = be + Y + 65535, Y = Math.floor(R / 65536), be = R - Y * 65536, R = ye + Y + 65535, Y = Math.floor(R / 65536), ye = R - Y * 65536, R = Ee + Y + 65535, Y = Math.floor(R / 65536), Ee = R - Y * 65536, R = Te + Y + 65535, Y = Math.floor(R / 65536), Te = R - Y * 65536, R = C + Y + 65535, Y = Math.floor(R / 65536), C = R - Y * 65536, R = O + Y + 65535, Y = Math.floor(R / 65536), O = R - Y * 65536, ee += Y - 1 + 37 * (Y - 1), Y = 1, R = ee + Y + 65535, Y = Math.floor(R / 65536), ee = R - Y * 65536, R = ae + Y + 65535, Y = Math.floor(R / 65536), ae = R - Y * 65536, R = ie + Y + 65535, Y = Math.floor(R / 65536), ie = R - Y * 65536, R = Z + Y + 65535, Y = Math.floor(R / 65536), Z = R - Y * 65536, R = ce + Y + 65535, Y = Math.floor(R / 65536), ce = R - Y * 65536, R = oe + Y + 65535, Y = Math.floor(R / 65536), oe = R - Y * 65536, R = me + Y + 65535, Y = Math.floor(R / 65536), me = R - Y * 65536, R = pe + Y + 65535, Y = Math.floor(R / 65536), pe = R - Y * 65536, R = se + Y + 65535, Y = Math.floor(R / 65536), se = R - Y * 65536, R = le + Y + 65535, Y = Math.floor(R / 65536), le = R - Y * 65536, R = be + Y + 65535, Y = Math.floor(R / 65536), be = R - Y * 65536, R = ye + Y + 65535, Y = Math.floor(R / 65536), ye = R - Y * 65536, R = Ee + Y + 65535, Y = Math.floor(R / 65536), Ee = R - Y * 65536, R = Te + Y + 65535, Y = Math.floor(R / 65536), Te = R - Y * 65536, R = C + Y + 65535, Y = Math.floor(R / 65536), C = R - Y * 65536, R = O + Y + 65535, Y = Math.floor(R / 65536), O = R - Y * 65536, ee += Y - 1 + 37 * (Y - 1), U[0] = ee, U[1] = ae, U[2] = ie, U[3] = Z, U[4] = ce, U[5] = oe, U[6] = me, U[7] = pe, U[8] = se, U[9] = le, U[10] = be, U[11] = ye, U[12] = Ee, U[13] = Te, U[14] = C, U[15] = O; + let R, Y, ee = 0, ae = 0, ie = 0, Z = 0, ce = 0, oe = 0, me = 0, pe = 0, se = 0, le = 0, be = 0, ye = 0, Ee = 0, Te = 0, C = 0, O = 0, B = 0, $ = 0, te = 0, J = 0, ne = 0, fe = 0, ge = 0, de = 0, ve = 0, Ae = 0, Ne = 0, De = 0, ut = 0, Ve = 0, Ze = 0, Ge = G[0], ke = G[1], Re = G[2], Je = G[3], Me = G[4], Oe = G[5], et = G[6], Ce = G[7], ze = G[8], nt = G[9], qe = G[10], Ke = G[11], at = G[12], We = G[13], Qe = G[14], dt = G[15]; + R = j[0], ee += R * Ge, ae += R * ke, ie += R * Re, Z += R * Je, ce += R * Me, oe += R * Oe, me += R * et, pe += R * Ce, se += R * ze, le += R * nt, be += R * qe, ye += R * Ke, Ee += R * at, Te += R * We, C += R * Qe, O += R * dt, R = j[1], ae += R * Ge, ie += R * ke, Z += R * Re, ce += R * Je, oe += R * Me, me += R * Oe, pe += R * et, se += R * Ce, le += R * ze, be += R * nt, ye += R * qe, Ee += R * Ke, Te += R * at, C += R * We, O += R * Qe, B += R * dt, R = j[2], ie += R * Ge, Z += R * ke, ce += R * Re, oe += R * Je, me += R * Me, pe += R * Oe, se += R * et, le += R * Ce, be += R * ze, ye += R * nt, Ee += R * qe, Te += R * Ke, C += R * at, O += R * We, B += R * Qe, $ += R * dt, R = j[3], Z += R * Ge, ce += R * ke, oe += R * Re, me += R * Je, pe += R * Me, se += R * Oe, le += R * et, be += R * Ce, ye += R * ze, Ee += R * nt, Te += R * qe, C += R * Ke, O += R * at, B += R * We, $ += R * Qe, te += R * dt, R = j[4], ce += R * Ge, oe += R * ke, me += R * Re, pe += R * Je, se += R * Me, le += R * Oe, be += R * et, ye += R * Ce, Ee += R * ze, Te += R * nt, C += R * qe, O += R * Ke, B += R * at, $ += R * We, te += R * Qe, J += R * dt, R = j[5], oe += R * Ge, me += R * ke, pe += R * Re, se += R * Je, le += R * Me, be += R * Oe, ye += R * et, Ee += R * Ce, Te += R * ze, C += R * nt, O += R * qe, B += R * Ke, $ += R * at, te += R * We, J += R * Qe, ne += R * dt, R = j[6], me += R * Ge, pe += R * ke, se += R * Re, le += R * Je, be += R * Me, ye += R * Oe, Ee += R * et, Te += R * Ce, C += R * ze, O += R * nt, B += R * qe, $ += R * Ke, te += R * at, J += R * We, ne += R * Qe, fe += R * dt, R = j[7], pe += R * Ge, se += R * ke, le += R * Re, be += R * Je, ye += R * Me, Ee += R * Oe, Te += R * et, C += R * Ce, O += R * ze, B += R * nt, $ += R * qe, te += R * Ke, J += R * at, ne += R * We, fe += R * Qe, ge += R * dt, R = j[8], se += R * Ge, le += R * ke, be += R * Re, ye += R * Je, Ee += R * Me, Te += R * Oe, C += R * et, O += R * Ce, B += R * ze, $ += R * nt, te += R * qe, J += R * Ke, ne += R * at, fe += R * We, ge += R * Qe, de += R * dt, R = j[9], le += R * Ge, be += R * ke, ye += R * Re, Ee += R * Je, Te += R * Me, C += R * Oe, O += R * et, B += R * Ce, $ += R * ze, te += R * nt, J += R * qe, ne += R * Ke, fe += R * at, ge += R * We, de += R * Qe, ve += R * dt, R = j[10], be += R * Ge, ye += R * ke, Ee += R * Re, Te += R * Je, C += R * Me, O += R * Oe, B += R * et, $ += R * Ce, te += R * ze, J += R * nt, ne += R * qe, fe += R * Ke, ge += R * at, de += R * We, ve += R * Qe, Ae += R * dt, R = j[11], ye += R * Ge, Ee += R * ke, Te += R * Re, C += R * Je, O += R * Me, B += R * Oe, $ += R * et, te += R * Ce, J += R * ze, ne += R * nt, fe += R * qe, ge += R * Ke, de += R * at, ve += R * We, Ae += R * Qe, Ne += R * dt, R = j[12], Ee += R * Ge, Te += R * ke, C += R * Re, O += R * Je, B += R * Me, $ += R * Oe, te += R * et, J += R * Ce, ne += R * ze, fe += R * nt, ge += R * qe, de += R * Ke, ve += R * at, Ae += R * We, Ne += R * Qe, De += R * dt, R = j[13], Te += R * Ge, C += R * ke, O += R * Re, B += R * Je, $ += R * Me, te += R * Oe, J += R * et, ne += R * Ce, fe += R * ze, ge += R * nt, de += R * qe, ve += R * Ke, Ae += R * at, Ne += R * We, De += R * Qe, ut += R * dt, R = j[14], C += R * Ge, O += R * ke, B += R * Re, $ += R * Je, te += R * Me, J += R * Oe, ne += R * et, fe += R * Ce, ge += R * ze, de += R * nt, ve += R * qe, Ae += R * Ke, Ne += R * at, De += R * We, ut += R * Qe, Ve += R * dt, R = j[15], O += R * Ge, B += R * ke, $ += R * Re, te += R * Je, J += R * Me, ne += R * Oe, fe += R * et, ge += R * Ce, de += R * ze, ve += R * nt, Ae += R * qe, Ne += R * Ke, De += R * at, ut += R * We, Ve += R * Qe, Ze += R * dt, ee += 38 * B, ae += 38 * $, ie += 38 * te, Z += 38 * J, ce += 38 * ne, oe += 38 * fe, me += 38 * ge, pe += 38 * de, se += 38 * ve, le += 38 * Ae, be += 38 * Ne, ye += 38 * De, Ee += 38 * ut, Te += 38 * Ve, C += 38 * Ze, Y = 1, R = ee + Y + 65535, Y = Math.floor(R / 65536), ee = R - Y * 65536, R = ae + Y + 65535, Y = Math.floor(R / 65536), ae = R - Y * 65536, R = ie + Y + 65535, Y = Math.floor(R / 65536), ie = R - Y * 65536, R = Z + Y + 65535, Y = Math.floor(R / 65536), Z = R - Y * 65536, R = ce + Y + 65535, Y = Math.floor(R / 65536), ce = R - Y * 65536, R = oe + Y + 65535, Y = Math.floor(R / 65536), oe = R - Y * 65536, R = me + Y + 65535, Y = Math.floor(R / 65536), me = R - Y * 65536, R = pe + Y + 65535, Y = Math.floor(R / 65536), pe = R - Y * 65536, R = se + Y + 65535, Y = Math.floor(R / 65536), se = R - Y * 65536, R = le + Y + 65535, Y = Math.floor(R / 65536), le = R - Y * 65536, R = be + Y + 65535, Y = Math.floor(R / 65536), be = R - Y * 65536, R = ye + Y + 65535, Y = Math.floor(R / 65536), ye = R - Y * 65536, R = Ee + Y + 65535, Y = Math.floor(R / 65536), Ee = R - Y * 65536, R = Te + Y + 65535, Y = Math.floor(R / 65536), Te = R - Y * 65536, R = C + Y + 65535, Y = Math.floor(R / 65536), C = R - Y * 65536, R = O + Y + 65535, Y = Math.floor(R / 65536), O = R - Y * 65536, ee += Y - 1 + 37 * (Y - 1), Y = 1, R = ee + Y + 65535, Y = Math.floor(R / 65536), ee = R - Y * 65536, R = ae + Y + 65535, Y = Math.floor(R / 65536), ae = R - Y * 65536, R = ie + Y + 65535, Y = Math.floor(R / 65536), ie = R - Y * 65536, R = Z + Y + 65535, Y = Math.floor(R / 65536), Z = R - Y * 65536, R = ce + Y + 65535, Y = Math.floor(R / 65536), ce = R - Y * 65536, R = oe + Y + 65535, Y = Math.floor(R / 65536), oe = R - Y * 65536, R = me + Y + 65535, Y = Math.floor(R / 65536), me = R - Y * 65536, R = pe + Y + 65535, Y = Math.floor(R / 65536), pe = R - Y * 65536, R = se + Y + 65535, Y = Math.floor(R / 65536), se = R - Y * 65536, R = le + Y + 65535, Y = Math.floor(R / 65536), le = R - Y * 65536, R = be + Y + 65535, Y = Math.floor(R / 65536), be = R - Y * 65536, R = ye + Y + 65535, Y = Math.floor(R / 65536), ye = R - Y * 65536, R = Ee + Y + 65535, Y = Math.floor(R / 65536), Ee = R - Y * 65536, R = Te + Y + 65535, Y = Math.floor(R / 65536), Te = R - Y * 65536, R = C + Y + 65535, Y = Math.floor(R / 65536), C = R - Y * 65536, R = O + Y + 65535, Y = Math.floor(R / 65536), O = R - Y * 65536, ee += Y - 1 + 37 * (Y - 1), U[0] = ee, U[1] = ae, U[2] = ie, U[3] = Z, U[4] = ce, U[5] = oe, U[6] = me, U[7] = pe, U[8] = se, U[9] = le, U[10] = be, U[11] = ye, U[12] = Ee, U[13] = Te, U[14] = C, U[15] = O; } function I(U, j) { T(U, j, j); @@ -75020,35 +75051,35 @@ ${gz(e, r)}`); return (0, n.wipe)(j), G; } t.convertSecretKeyToX25519 = K; - })(Hx); - var Uge = "EdDSA"; - var jge = "JWT"; - var JL = "."; - var QL = "base64url"; - var Vge = "utf8"; - var zge = "utf8"; - var Fge = ":"; - var Hge = "did"; - var qge = "key"; - var US = "base58btc"; - var Wge = "z"; - var Gge = "K36"; - var Kge = 32; - function qx(t) { + })(Fx); + var zge = "EdDSA"; + var Fge = "JWT"; + var QL = "."; + var $L = "base64url"; + var Hge = "utf8"; + var qge = "utf8"; + var Wge = ":"; + var Gge = "did"; + var Kge = "key"; + var BS = "base58btc"; + var Xge = "z"; + var Yge = "K36"; + var Zge = 32; + function Hx(t) { return globalThis.Buffer != null ? new Uint8Array(t.buffer, t.byteOffset, t.byteLength) : t; } - function $L(t = 0) { - return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? qx(globalThis.Buffer.allocUnsafe(t)) : new Uint8Array(t); + function eB(t = 0) { + return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? Hx(globalThis.Buffer.allocUnsafe(t)) : new Uint8Array(t); } - function Xge(t, e) { + function Jge(t, e) { e || (e = t.reduce((i, s) => i + s.length, 0)); - const r = $L(e); + const r = eB(e); let n = 0; for (const i of t) r.set(i, n), n += i.length; - return qx(r); + return Hx(r); } - function Yge(t, e) { + function Qge(t, e) { if (t.length >= 255) throw new TypeError("Alphabet too long"); for (var r = new Uint8Array(256), n = 0; n < r.length; n++) @@ -75120,9 +75151,9 @@ ${gz(e, r)}`); decode: E }; } - var Zge = Yge; - var Jge = Zge; - var Qge = (t) => { + var $ge = Qge; + var e2e = $ge; + var t2e = (t) => { if (t instanceof Uint8Array && t.constructor.name === "Uint8Array") return t; if (t instanceof ArrayBuffer) @@ -75131,9 +75162,9 @@ ${gz(e, r)}`); return new Uint8Array(t.buffer, t.byteOffset, t.byteLength); throw new Error("Unknown type, must be binary type"); }; - var $ge = (t) => new TextEncoder().encode(t); - var e2e = (t) => new TextDecoder().decode(t); - var t2e = class { + var r2e = (t) => new TextEncoder().encode(t); + var n2e = (t) => new TextDecoder().decode(t); + var i2e = class { constructor(e, r, n) { this.name = e, this.prefix = r, this.baseEncode = n; } @@ -75143,7 +75174,7 @@ ${gz(e, r)}`); throw Error("Unknown type, must be binary type"); } }; - var r2e = class { + var s2e = class { constructor(e, r, n) { if (this.name = e, this.prefix = r, r.codePointAt(0) === void 0) throw new Error("Invalid prefix character"); @@ -75158,15 +75189,15 @@ ${gz(e, r)}`); throw Error("Can only multibase decode strings"); } or(e) { - return eB(this, e); + return tB(this, e); } }; - var n2e = class { + var o2e = class { constructor(e) { this.decoders = e; } or(e) { - return eB(this, e); + return tB(this, e); } decode(e) { const r = e[0], n = this.decoders[r]; @@ -75175,13 +75206,13 @@ ${gz(e, r)}`); throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`); } }; - var eB = (t, e) => new n2e({ + var tB = (t, e) => new o2e({ ...t.decoders || { [t.prefix]: t }, ...e.decoders || { [e.prefix]: e } }); - var i2e = class { + var a2e = class { constructor(e, r, n, i) { - this.name = e, this.prefix = r, this.baseEncode = n, this.baseDecode = i, this.encoder = new t2e(e, r, n), this.decoder = new r2e(e, r, i); + this.name = e, this.prefix = r, this.baseEncode = n, this.baseDecode = i, this.encoder = new i2e(e, r, n), this.decoder = new s2e(e, r, i); } encode(e) { return this.encoder.encode(e); @@ -75190,17 +75221,17 @@ ${gz(e, r)}`); return this.decoder.decode(e); } }; - var O2 = ({ name: t, prefix: e, encode: r, decode: n }) => new i2e(t, e, r, n); + var P2 = ({ name: t, prefix: e, encode: r, decode: n }) => new a2e(t, e, r, n); var O0 = ({ prefix: t, name: e, alphabet: r }) => { - const { encode: n, decode: i } = Jge(r, e); - return O2({ + const { encode: n, decode: i } = e2e(r, e); + return P2({ prefix: t, name: e, encode: n, - decode: (s) => Qge(i(s)) + decode: (s) => t2e(i(s)) }); }; - var s2e = (t, e, r, n) => { + var c2e = (t, e, r, n) => { const i = {}; for (let f = 0; f < e.length; ++f) i[e[f]] = f; @@ -75219,7 +75250,7 @@ ${gz(e, r)}`); throw new SyntaxError("Unexpected end of data"); return o; }; - var o2e = (t, e, r) => { + var u2e = (t, e, r) => { const n = e[e.length - 1] === "=", i = (1 << r) - 1; let s = "", o = 0, a = 0; for (let c = 0; c < t.length; ++c) @@ -75230,240 +75261,240 @@ ${gz(e, r)}`); s += "="; return s; }; - var ni = ({ name: t, prefix: e, bitsPerChar: r, alphabet: n }) => O2({ + var ni = ({ name: t, prefix: e, bitsPerChar: r, alphabet: n }) => P2({ prefix: e, name: t, encode(i) { - return o2e(i, n, r); + return u2e(i, n, r); }, decode(i) { - return s2e(i, n, r, t); + return c2e(i, n, r, t); } }); - var a2e = O2({ + var l2e = P2({ prefix: "\0", name: "identity", - encode: (t) => e2e(t), - decode: (t) => $ge(t) + encode: (t) => n2e(t), + decode: (t) => r2e(t) }); - var c2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var f2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - identity: a2e + identity: l2e }, Symbol.toStringTag, { value: "Module" })); - var u2e = ni({ + var h2e = ni({ prefix: "0", name: "base2", alphabet: "01", bitsPerChar: 1 }); - var l2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var d2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base2: u2e + base2: h2e }, Symbol.toStringTag, { value: "Module" })); - var f2e = ni({ + var p2e = ni({ prefix: "7", name: "base8", alphabet: "01234567", bitsPerChar: 3 }); - var h2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var m2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base8: f2e + base8: p2e }, Symbol.toStringTag, { value: "Module" })); - var d2e = O0({ + var g2e = O0({ prefix: "9", name: "base10", alphabet: "0123456789" }); - var p2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var y2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base10: d2e + base10: g2e }, Symbol.toStringTag, { value: "Module" })); - var m2e = ni({ + var b2e = ni({ prefix: "f", name: "base16", alphabet: "0123456789abcdef", bitsPerChar: 4 }); - var g2e = ni({ + var w2e = ni({ prefix: "F", name: "base16upper", alphabet: "0123456789ABCDEF", bitsPerChar: 4 }); - var y2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var v2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base16: m2e, - base16upper: g2e + base16: b2e, + base16upper: w2e }, Symbol.toStringTag, { value: "Module" })); - var b2e = ni({ + var x2e = ni({ prefix: "b", name: "base32", alphabet: "abcdefghijklmnopqrstuvwxyz234567", bitsPerChar: 5 }); - var w2e = ni({ + var _2e = ni({ prefix: "B", name: "base32upper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", bitsPerChar: 5 }); - var v2e = ni({ + var E2e = ni({ prefix: "c", name: "base32pad", alphabet: "abcdefghijklmnopqrstuvwxyz234567=", bitsPerChar: 5 }); - var x2e = ni({ + var S2e = ni({ prefix: "C", name: "base32padupper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=", bitsPerChar: 5 }); - var _2e = ni({ + var M2e = ni({ prefix: "v", name: "base32hex", alphabet: "0123456789abcdefghijklmnopqrstuv", bitsPerChar: 5 }); - var E2e = ni({ + var A2e = ni({ prefix: "V", name: "base32hexupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV", bitsPerChar: 5 }); - var S2e = ni({ + var T2e = ni({ prefix: "t", name: "base32hexpad", alphabet: "0123456789abcdefghijklmnopqrstuv=", bitsPerChar: 5 }); - var M2e = ni({ + var N2e = ni({ prefix: "T", name: "base32hexpadupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=", bitsPerChar: 5 }); - var A2e = ni({ + var I2e = ni({ prefix: "h", name: "base32z", alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769", bitsPerChar: 5 }); - var T2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var O2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base32: b2e, - base32hex: _2e, - base32hexpad: S2e, - base32hexpadupper: M2e, - base32hexupper: E2e, - base32pad: v2e, - base32padupper: x2e, - base32upper: w2e, - base32z: A2e + base32: x2e, + base32hex: M2e, + base32hexpad: T2e, + base32hexpadupper: N2e, + base32hexupper: A2e, + base32pad: E2e, + base32padupper: S2e, + base32upper: _2e, + base32z: I2e }, Symbol.toStringTag, { value: "Module" })); - var N2e = O0({ + var P2e = O0({ prefix: "k", name: "base36", alphabet: "0123456789abcdefghijklmnopqrstuvwxyz" }); - var I2e = O0({ + var k2e = O0({ prefix: "K", name: "base36upper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" }); - var O2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var R2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base36: N2e, - base36upper: I2e + base36: P2e, + base36upper: k2e }, Symbol.toStringTag, { value: "Module" })); - var P2e = O0({ + var C2e = O0({ name: "base58btc", prefix: "z", alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }); - var k2e = O0({ + var D2e = O0({ name: "base58flickr", prefix: "Z", alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" }); - var R2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var L2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base58btc: P2e, - base58flickr: k2e + base58btc: C2e, + base58flickr: D2e }, Symbol.toStringTag, { value: "Module" })); - var C2e = ni({ + var B2e = ni({ prefix: "m", name: "base64", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bitsPerChar: 6 }); - var D2e = ni({ + var U2e = ni({ prefix: "M", name: "base64pad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", bitsPerChar: 6 }); - var L2e = ni({ + var j2e = ni({ prefix: "u", name: "base64url", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", bitsPerChar: 6 }); - var B2e = ni({ + var V2e = ni({ prefix: "U", name: "base64urlpad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=", bitsPerChar: 6 }); - var U2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var z2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base64: C2e, - base64pad: D2e, - base64url: L2e, - base64urlpad: B2e + base64: B2e, + base64pad: U2e, + base64url: j2e, + base64urlpad: V2e }, Symbol.toStringTag, { value: "Module" })); - var tB = Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"); - var j2e = tB.reduce((t, e, r) => (t[r] = e, t), []); - var V2e = tB.reduce((t, e, r) => (t[e.codePointAt(0)] = r, t), []); - function z2e(t) { - return t.reduce((e, r) => (e += j2e[r], e), ""); + var rB = Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"); + var F2e = rB.reduce((t, e, r) => (t[r] = e, t), []); + var H2e = rB.reduce((t, e, r) => (t[e.codePointAt(0)] = r, t), []); + function q2e(t) { + return t.reduce((e, r) => (e += F2e[r], e), ""); } - function F2e(t) { + function W2e(t) { const e = []; for (const r of t) { - const n = V2e[r.codePointAt(0)]; + const n = H2e[r.codePointAt(0)]; if (n === void 0) throw new Error(`Non-base256emoji character: ${r}`); e.push(n); } return new Uint8Array(e); } - var H2e = O2({ + var G2e = P2({ prefix: "\u{1F680}", name: "base256emoji", - encode: z2e, - decode: F2e + encode: q2e, + decode: W2e }); - var q2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var K2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base256emoji: H2e + base256emoji: G2e }, Symbol.toStringTag, { value: "Module" })); new TextEncoder(); new TextDecoder(); - var Rm = { - ...c2e, - ...l2e, - ...h2e, - ...p2e, + var Cm = { + ...f2e, + ...d2e, + ...m2e, ...y2e, - ...T2e, + ...v2e, ...O2e, ...R2e, - ...U2e, - ...q2e + ...L2e, + ...z2e, + ...K2e }; - function rB(t, e, r, n) { + function nB(t, e, r, n) { return { name: t, prefix: e, @@ -75475,107 +75506,107 @@ ${gz(e, r)}`); decoder: { decode: n } }; } - var jS = rB("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); - var qb = rB("ascii", "a", (t) => { + var US = nB("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); + var Hb = nB("ascii", "a", (t) => { let e = "a"; for (let r = 0; r < t.length; r++) e += String.fromCharCode(t[r]); return e; }, (t) => { t = t.substring(1); - const e = $L(t.length); + const e = eB(t.length); for (let r = 0; r < t.length; r++) e[r] = t.charCodeAt(r); return e; }); - var nB = { - utf8: jS, - "utf-8": jS, - hex: Rm.base16, - latin1: qb, - ascii: qb, - binary: qb, - ...Rm - }; - function Wx(t, e = "utf8") { - const r = nB[e]; + var iB = { + utf8: US, + "utf-8": US, + hex: Cm.base16, + latin1: Hb, + ascii: Hb, + binary: Hb, + ...Cm + }; + function qx(t, e = "utf8") { + const r = iB[e]; if (!r) throw new Error(`Unsupported encoding "${e}"`); return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("utf8") : r.encoder.encode(t).substring(1); } - function Gx(t, e = "utf8") { - const r = nB[e]; + function Wx(t, e = "utf8") { + const r = iB[e]; if (!r) throw new Error(`Unsupported encoding "${e}"`); - return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? qx(globalThis.Buffer.from(t, "utf-8")) : r.decoder.decode(`${r.prefix}${t}`); + return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? Hx(globalThis.Buffer.from(t, "utf-8")) : r.decoder.decode(`${r.prefix}${t}`); } - function Cm(t) { - return Wx(Gx(ul(t), Vge), QL); + function Dm(t) { + return qx(Wx(ul(t), Hge), $L); } - function iB(t) { - const e = Gx(Gge, US), r = Wge + Wx(Xge([e, t]), US); - return [Hge, qge, r].join(Fge); + function sB(t) { + const e = Wx(Yge, BS), r = Xge + qx(Jge([e, t]), BS); + return [Gge, Kge, r].join(Wge); } - function W2e(t) { - return Wx(t, QL); + function X2e(t) { + return qx(t, $L); } - function G2e(t) { - return Gx([Cm(t.header), Cm(t.payload)].join(JL), zge); + function Y2e(t) { + return Wx([Dm(t.header), Dm(t.payload)].join(QL), qge); } - function K2e(t) { + function Z2e(t) { return [ - Cm(t.header), - Cm(t.payload), - W2e(t.signature) - ].join(JL); + Dm(t.header), + Dm(t.payload), + X2e(t.signature) + ].join(QL); } - function VS(t = eh.randomBytes(Kge)) { - return Hx.generateKeyPairFromSeed(t); + function jS(t = $f.randomBytes(Zge)) { + return Fx.generateKeyPairFromSeed(t); } - async function X2e(t, e, r, n, i = yt.fromMiliseconds(Date.now())) { - const s = { alg: Uge, typ: jge }, o = iB(n.publicKey), a = i + r, c = { iss: o, sub: t, aud: e, iat: i, exp: a }, u = G2e({ header: s, payload: c }), f = Hx.sign(n.secretKey, u); - return K2e({ header: s, payload: c, signature: f }); + async function J2e(t, e, r, n, i = gt.fromMiliseconds(Date.now())) { + const s = { alg: zge, typ: Fge }, o = sB(n.publicKey), a = i + r, c = { iss: o, sub: t, aud: e, iat: i, exp: a }, u = Y2e({ header: s, payload: c }), f = Fx.sign(n.secretKey, u); + return Z2e({ header: s, payload: c, signature: f }); } - var zS = globalThis && globalThis.__spreadArray || function(t, e, r) { + var VS = globalThis && globalThis.__spreadArray || function(t, e, r) { if (r || arguments.length === 2) for (var n = 0, i = e.length, s; n < i; n++) (s || !(n in e)) && (s || (s = Array.prototype.slice.call(e, 0, n)), s[n] = e[n]); return t.concat(s || Array.prototype.slice.call(e)); }; - var Y2e = function() { + var Q2e = function() { function t(e, r, n) { this.name = e, this.version = r, this.os = n, this.type = "browser"; } return t; }(); - var Z2e = function() { + var $2e = function() { function t(e) { this.version = e, this.type = "node", this.name = "node", this.os = process.platform; } return t; }(); - var J2e = function() { + var eye = function() { function t(e, r, n, i) { this.name = e, this.version = r, this.os = n, this.bot = i, this.type = "bot-device"; } return t; }(); - var Q2e = function() { + var tye = function() { function t() { this.type = "bot", this.bot = true, this.name = "bot", this.version = null, this.os = null; } return t; }(); - var $2e = function() { + var rye = function() { function t() { this.type = "react-native", this.name = "react-native", this.version = null, this.os = null; } return t; }(); - var eye = /alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/; - var tye = /(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/; - var FS = 3; - var rye = [ + var nye = /alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/; + var iye = /(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/; + var zS = 3; + var sye = [ ["aol", /AOLShield\/([0-9\._]+)/], ["edge", /Edge\/([0-9\._]+)/], ["edge-ios", /EdgiOS\/([0-9\._]+)/], @@ -75613,9 +75644,9 @@ ${gz(e, r)}`); ["ios-webview", /AppleWebKit\/([0-9\.]+).*Mobile/], ["ios-webview", /AppleWebKit\/([0-9\.]+).*Gecko\)$/], ["curl", /^curl\/([0-9\.]+)$/], - ["searchbot", eye] + ["searchbot", nye] ]; - var HS = [ + var FS = [ ["iOS", /iP(hone|od|ad)/], ["Android OS", /Android/], ["BlackBerry OS", /BlackBerry|BB10/], @@ -75643,11 +75674,11 @@ ${gz(e, r)}`); ["BeOS", /BeOS/], ["OS/2", /OS\/2/] ]; - function nye(t) { - return t ? qS(t) : typeof document > "u" && typeof navigator < "u" && navigator.product === "ReactNative" ? new $2e() : typeof navigator < "u" ? qS(navigator.userAgent) : oye(); + function oye(t) { + return t ? HS(t) : typeof document > "u" && typeof navigator < "u" && navigator.product === "ReactNative" ? new rye() : typeof navigator < "u" ? HS(navigator.userAgent) : uye(); } - function iye(t) { - return t !== "" && rye.reduce(function(e, r) { + function aye(t) { + return t !== "" && sye.reduce(function(e, r) { var n = r[0], i = r[1]; if (e) return e; @@ -75655,98 +75686,98 @@ ${gz(e, r)}`); return !!s && [n, s]; }, false); } - function qS(t) { - var e = iye(t); + function HS(t) { + var e = aye(t); if (!e) return null; var r = e[0], n = e[1]; if (r === "searchbot") - return new Q2e(); + return new tye(); var i = n[1] && n[1].split(".").join("_").split("_").slice(0, 3); - i ? i.length < FS && (i = zS(zS([], i, true), aye(FS - i.length), true)) : i = []; - var s = i.join("."), o = sye(t), a = tye.exec(t); - return a && a[1] ? new J2e(r, s, o, a[1]) : new Y2e(r, s, o); + i ? i.length < zS && (i = VS(VS([], i, true), lye(zS - i.length), true)) : i = []; + var s = i.join("."), o = cye(t), a = iye.exec(t); + return a && a[1] ? new eye(r, s, o, a[1]) : new Q2e(r, s, o); } - function sye(t) { - for (var e = 0, r = HS.length; e < r; e++) { - var n = HS[e], i = n[0], s = n[1], o = s.exec(t); + function cye(t) { + for (var e = 0, r = FS.length; e < r; e++) { + var n = FS[e], i = n[0], s = n[1], o = s.exec(t); if (o) return i; } return null; } - function oye() { + function uye() { var t = typeof process < "u" && process.version; - return t ? new Z2e(process.version.slice(1)) : null; + return t ? new $2e(process.version.slice(1)) : null; } - function aye(t) { + function lye(t) { for (var e = [], r = 0; r < t; r++) e.push("0"); return e; } var _r = {}; Object.defineProperty(_r, "__esModule", { value: true }); - _r.getLocalStorage = _r.getLocalStorageOrThrow = _r.getCrypto = _r.getCryptoOrThrow = sB = _r.getLocation = _r.getLocationOrThrow = Xx = _r.getNavigator = _r.getNavigatorOrThrow = Kx = _r.getDocument = _r.getDocumentOrThrow = _r.getFromWindowOrThrow = _r.getFromWindow = void 0; + _r.getLocalStorage = _r.getLocalStorageOrThrow = _r.getCrypto = _r.getCryptoOrThrow = oB = _r.getLocation = _r.getLocationOrThrow = Kx = _r.getNavigator = _r.getNavigatorOrThrow = Gx = _r.getDocument = _r.getDocumentOrThrow = _r.getFromWindowOrThrow = _r.getFromWindow = void 0; function kl(t) { let e; return typeof window < "u" && typeof window[t] < "u" && (e = window[t]), e; } _r.getFromWindow = kl; - function th(t) { + function eh(t) { const e = kl(t); if (!e) throw new Error(`${t} is not defined in Window`); return e; } - _r.getFromWindowOrThrow = th; - function cye() { - return th("document"); - } - _r.getDocumentOrThrow = cye; - function uye() { - return kl("document"); - } - var Kx = _r.getDocument = uye; - function lye() { - return th("navigator"); - } - _r.getNavigatorOrThrow = lye; + _r.getFromWindowOrThrow = eh; function fye() { - return kl("navigator"); + return eh("document"); } - var Xx = _r.getNavigator = fye; + _r.getDocumentOrThrow = fye; function hye() { - return th("location"); + return kl("document"); } - _r.getLocationOrThrow = hye; + var Gx = _r.getDocument = hye; function dye() { - return kl("location"); + return eh("navigator"); } - var sB = _r.getLocation = dye; + _r.getNavigatorOrThrow = dye; function pye() { - return th("crypto"); + return kl("navigator"); } - _r.getCryptoOrThrow = pye; + var Kx = _r.getNavigator = pye; function mye() { - return kl("crypto"); + return eh("location"); } - _r.getCrypto = mye; + _r.getLocationOrThrow = mye; function gye() { - return th("localStorage"); + return kl("location"); } - _r.getLocalStorageOrThrow = gye; + var oB = _r.getLocation = gye; function yye() { - return kl("localStorage"); + return eh("crypto"); } - _r.getLocalStorage = yye; - var Yx = {}; - Object.defineProperty(Yx, "__esModule", { value: true }); - var oB = Yx.getWindowMetadata = void 0; - var WS = _r; + _r.getCryptoOrThrow = yye; function bye() { + return kl("crypto"); + } + _r.getCrypto = bye; + function wye() { + return eh("localStorage"); + } + _r.getLocalStorageOrThrow = wye; + function vye() { + return kl("localStorage"); + } + _r.getLocalStorage = vye; + var Xx = {}; + Object.defineProperty(Xx, "__esModule", { value: true }); + var aB = Xx.getWindowMetadata = void 0; + var qS = _r; + function xye() { let t, e; try { - t = WS.getDocumentOrThrow(), e = WS.getLocationOrThrow(); + t = qS.getDocumentOrThrow(), e = qS.getLocationOrThrow(); } catch { return null; } @@ -75804,13 +75835,13 @@ ${gz(e, r)}`); name: o }; } - oB = Yx.getWindowMetadata = bye; - var Vd = {}; - var wye = (t) => encodeURIComponent(t).replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`); - var aB = "%[a-f0-9]{2}"; - var GS = new RegExp("(" + aB + ")|([^%]+?)", "gi"); - var KS = new RegExp("(" + aB + ")+", "gi"); - function tv(t, e) { + aB = Xx.getWindowMetadata = xye; + var jd = {}; + var _ye = (t) => encodeURIComponent(t).replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`); + var cB = "%[a-f0-9]{2}"; + var WS = new RegExp("(" + cB + ")|([^%]+?)", "gi"); + var GS = new RegExp("(" + cB + ")+", "gi"); + function ev(t, e) { try { return [decodeURIComponent(t.join(""))]; } catch { @@ -75819,29 +75850,29 @@ ${gz(e, r)}`); return t; e = e || 1; var r = t.slice(0, e), n = t.slice(e); - return Array.prototype.concat.call([], tv(r), tv(n)); + return Array.prototype.concat.call([], ev(r), ev(n)); } - function vye(t) { + function Eye(t) { try { return decodeURIComponent(t); } catch { - for (var e = t.match(GS) || [], r = 1; r < e.length; r++) - t = tv(e, r).join(""), e = t.match(GS) || []; + for (var e = t.match(WS) || [], r = 1; r < e.length; r++) + t = ev(e, r).join(""), e = t.match(WS) || []; return t; } } - function xye(t) { + function Sye(t) { for (var e = { "%FE%FF": "\uFFFD\uFFFD", "%FF%FE": "\uFFFD\uFFFD" - }, r = KS.exec(t); r; ) { + }, r = GS.exec(t); r; ) { try { e[r[0]] = decodeURIComponent(r[0]); } catch { - var n = vye(r[0]); + var n = Eye(r[0]); n !== r[0] && (e[r[0]] = n); } - r = KS.exec(t); + r = GS.exec(t); } e["%C2"] = "\uFFFD"; for (var i = Object.keys(e), s = 0; s < i.length; s++) { @@ -75850,16 +75881,16 @@ ${gz(e, r)}`); } return t; } - var _ye = function(t) { + var Mye = function(t) { if (typeof t != "string") throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof t + "`"); try { return t = t.replace(/\+/g, " "), decodeURIComponent(t); } catch { - return xye(t); + return Sye(t); } }; - var Eye = (t, e) => { + var Aye = (t, e) => { if (!(typeof t == "string" && typeof e == "string")) throw new TypeError("Expected the arguments to be of type `string`"); if (e === "") @@ -75870,7 +75901,7 @@ ${gz(e, r)}`); t.slice(r + e.length) ]; }; - var Sye = function(t, e) { + var Tye = function(t, e) { for (var r = {}, n = Object.keys(t), i = Array.isArray(e), s = 0; s < n.length; s++) { var o = n[s], a = t[o]; (i ? e.indexOf(o) !== -1 : e(o, a, t)) && (r[o] = a); @@ -75878,7 +75909,7 @@ ${gz(e, r)}`); return r; }; (function(t) { - const e = wye, r = _ye, n = Eye, i = Sye, s = (L) => L == null, o = Symbol("encodeFragmentIdentifier"); + const e = _ye, r = Mye, n = Aye, i = Tye, s = (L) => L == null, o = Symbol("encodeFragmentIdentifier"); function a(L) { switch (L.arrayFormat) { case "index": @@ -76086,19 +76117,19 @@ ${gz(e, r)}`); const W = Array.isArray(D) ? (z) => !D.includes(z) : (z, T) => !D(z, T); return t.pick(L, W, q); }; - })(Vd); - var Zx = {}; - var P2 = {}; - Object.defineProperty(P2, "__esModule", { value: true }); + })(jd); + var Yx = {}; + var k2 = {}; + Object.defineProperty(k2, "__esModule", { value: true }); var ai = Ut; - var rv = hs; - var Mye = 20; - function Aye(t, e, r) { - for (var n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, a = r[3] << 24 | r[2] << 16 | r[1] << 8 | r[0], c = r[7] << 24 | r[6] << 16 | r[5] << 8 | r[4], u = r[11] << 24 | r[10] << 16 | r[9] << 8 | r[8], f = r[15] << 24 | r[14] << 16 | r[13] << 8 | r[12], p = r[19] << 24 | r[18] << 16 | r[17] << 8 | r[16], b = r[23] << 24 | r[22] << 16 | r[21] << 8 | r[20], E = r[27] << 24 | r[26] << 16 | r[25] << 8 | r[24], _ = r[31] << 24 | r[30] << 16 | r[29] << 8 | r[28], N = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], k = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], F = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], L = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], D = n, q = i, W = s, z = o, T = a, I = c, H = u, X = f, V = p, S = b, d = E, l = _, h = N, y = k, x = F, v = L, M = 0; M < Mye; M += 2) + var tv = hs; + var Nye = 20; + function Iye(t, e, r) { + for (var n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, a = r[3] << 24 | r[2] << 16 | r[1] << 8 | r[0], c = r[7] << 24 | r[6] << 16 | r[5] << 8 | r[4], u = r[11] << 24 | r[10] << 16 | r[9] << 8 | r[8], f = r[15] << 24 | r[14] << 16 | r[13] << 8 | r[12], p = r[19] << 24 | r[18] << 16 | r[17] << 8 | r[16], b = r[23] << 24 | r[22] << 16 | r[21] << 8 | r[20], E = r[27] << 24 | r[26] << 16 | r[25] << 8 | r[24], _ = r[31] << 24 | r[30] << 16 | r[29] << 8 | r[28], N = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], k = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], F = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], L = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], D = n, q = i, W = s, z = o, T = a, I = c, H = u, X = f, V = p, S = b, d = E, l = _, h = N, y = k, x = F, v = L, M = 0; M < Nye; M += 2) D = D + T | 0, h ^= D, h = h >>> 32 - 16 | h << 16, V = V + h | 0, T ^= V, T = T >>> 32 - 12 | T << 12, q = q + I | 0, y ^= q, y = y >>> 32 - 16 | y << 16, S = S + y | 0, I ^= S, I = I >>> 32 - 12 | I << 12, W = W + H | 0, x ^= W, x = x >>> 32 - 16 | x << 16, d = d + x | 0, H ^= d, H = H >>> 32 - 12 | H << 12, z = z + X | 0, v ^= z, v = v >>> 32 - 16 | v << 16, l = l + v | 0, X ^= l, X = X >>> 32 - 12 | X << 12, W = W + H | 0, x ^= W, x = x >>> 32 - 8 | x << 8, d = d + x | 0, H ^= d, H = H >>> 32 - 7 | H << 7, z = z + X | 0, v ^= z, v = v >>> 32 - 8 | v << 8, l = l + v | 0, X ^= l, X = X >>> 32 - 7 | X << 7, q = q + I | 0, y ^= q, y = y >>> 32 - 8 | y << 8, S = S + y | 0, I ^= S, I = I >>> 32 - 7 | I << 7, D = D + T | 0, h ^= D, h = h >>> 32 - 8 | h << 8, V = V + h | 0, T ^= V, T = T >>> 32 - 7 | T << 7, D = D + I | 0, v ^= D, v = v >>> 32 - 16 | v << 16, d = d + v | 0, I ^= d, I = I >>> 32 - 12 | I << 12, q = q + H | 0, h ^= q, h = h >>> 32 - 16 | h << 16, l = l + h | 0, H ^= l, H = H >>> 32 - 12 | H << 12, W = W + X | 0, y ^= W, y = y >>> 32 - 16 | y << 16, V = V + y | 0, X ^= V, X = X >>> 32 - 12 | X << 12, z = z + T | 0, x ^= z, x = x >>> 32 - 16 | x << 16, S = S + x | 0, T ^= S, T = T >>> 32 - 12 | T << 12, W = W + X | 0, y ^= W, y = y >>> 32 - 8 | y << 8, V = V + y | 0, X ^= V, X = X >>> 32 - 7 | X << 7, z = z + T | 0, x ^= z, x = x >>> 32 - 8 | x << 8, S = S + x | 0, T ^= S, T = T >>> 32 - 7 | T << 7, q = q + H | 0, h ^= q, h = h >>> 32 - 8 | h << 8, l = l + h | 0, H ^= l, H = H >>> 32 - 7 | H << 7, D = D + I | 0, v ^= D, v = v >>> 32 - 8 | v << 8, d = d + v | 0, I ^= d, I = I >>> 32 - 7 | I << 7; ai.writeUint32LE(D + n | 0, t, 0), ai.writeUint32LE(q + i | 0, t, 4), ai.writeUint32LE(W + s | 0, t, 8), ai.writeUint32LE(z + o | 0, t, 12), ai.writeUint32LE(T + a | 0, t, 16), ai.writeUint32LE(I + c | 0, t, 20), ai.writeUint32LE(H + u | 0, t, 24), ai.writeUint32LE(X + f | 0, t, 28), ai.writeUint32LE(V + p | 0, t, 32), ai.writeUint32LE(S + b | 0, t, 36), ai.writeUint32LE(d + E | 0, t, 40), ai.writeUint32LE(l + _ | 0, t, 44), ai.writeUint32LE(h + N | 0, t, 48), ai.writeUint32LE(y + k | 0, t, 52), ai.writeUint32LE(x + F | 0, t, 56), ai.writeUint32LE(v + L | 0, t, 60); } - function cB(t, e, r, n, i) { + function uB(t, e, r, n, i) { if (i === void 0 && (i = 0), t.length !== 32) throw new Error("ChaCha: key size must be 32 bytes"); if (n.length < r.length) @@ -76114,50 +76145,50 @@ ${gz(e, r)}`); s = e, o = i; } for (var a = new Uint8Array(64), c = 0; c < r.length; c += 64) { - Aye(a, s, t); + Iye(a, s, t); for (var u = c; u < c + 64 && u < r.length; u++) n[u] = r[u] ^ a[u - c]; - Nye(s, 0, o); + Pye(s, 0, o); } - return rv.wipe(a), i === 0 && rv.wipe(s), n; + return tv.wipe(a), i === 0 && tv.wipe(s), n; } - P2.streamXOR = cB; - function Tye(t, e, r, n) { - return n === void 0 && (n = 0), rv.wipe(r), cB(t, e, r, r, n); + k2.streamXOR = uB; + function Oye(t, e, r, n) { + return n === void 0 && (n = 0), tv.wipe(r), uB(t, e, r, r, n); } - P2.stream = Tye; - function Nye(t, e, r) { + k2.stream = Oye; + function Pye(t, e, r) { for (var n = 1; r--; ) n = n + (t[e] & 255) | 0, t[e] = n & 255, n >>>= 8, e++; if (n > 0) throw new Error("ChaCha: counter overflow"); } - var uB = {}; - var fu = {}; - Object.defineProperty(fu, "__esModule", { value: true }); - function Iye(t, e, r) { + var lB = {}; + var lu = {}; + Object.defineProperty(lu, "__esModule", { value: true }); + function kye(t, e, r) { return ~(t - 1) & e | t - 1 & r; } - fu.select = Iye; - function Oye(t, e) { + lu.select = kye; + function Rye(t, e) { return (t | 0) - (e | 0) - 1 >>> 31 & 1; } - fu.lessOrEqual = Oye; - function lB(t, e) { + lu.lessOrEqual = Rye; + function fB(t, e) { if (t.length !== e.length) return 0; for (var r = 0, n = 0; n < t.length; n++) r |= t[n] ^ e[n]; return 1 & r - 1 >>> 8; } - fu.compare = lB; - function Pye(t, e) { - return t.length === 0 || e.length === 0 ? false : lB(t, e) !== 0; + lu.compare = fB; + function Cye(t, e) { + return t.length === 0 || e.length === 0 ? false : fB(t, e) !== 0; } - fu.equal = Pye; + lu.equal = Cye; (function(t) { Object.defineProperty(t, "__esModule", { value: true }); - var e = fu, r = hs; + var e = lu, r = hs; t.DIGEST_LENGTH = 16; var n = function() { function o(a) { @@ -76275,10 +76306,10 @@ ${gz(e, r)}`); return o.length !== t.DIGEST_LENGTH || a.length !== t.DIGEST_LENGTH ? false : e.equal(o, a); } t.equal = s; - })(uB); + })(lB); (function(t) { Object.defineProperty(t, "__esModule", { value: true }); - var e = P2, r = uB, n = hs, i = Ut, s = fu; + var e = k2, r = lB, n = hs, i = Ut, s = lu; t.KEY_LENGTH = 32, t.NONCE_LENGTH = 12, t.TAG_LENGTH = 16; var o = new Uint8Array(16), a = function() { function c(u) { @@ -76334,20 +76365,20 @@ ${gz(e, r)}`); }, c; }(); t.ChaCha20Poly1305 = a; - })(Zx); - var fB = {}; + })(Yx); + var hB = {}; var P0 = {}; - var Jx = {}; - Object.defineProperty(Jx, "__esModule", { value: true }); - function kye(t) { + var Zx = {}; + Object.defineProperty(Zx, "__esModule", { value: true }); + function Dye(t) { return typeof t.saveState < "u" && typeof t.restoreState < "u" && typeof t.cleanSavedState < "u"; } - Jx.isSerializableHash = kye; + Zx.isSerializableHash = Dye; Object.defineProperty(P0, "__esModule", { value: true }); - var Oo = Jx; - var Rye = fu; - var Cye = hs; - var hB = function() { + var Io = Zx; + var Lye = lu; + var Bye = hs; + var dB = function() { function t(e, r) { this._finished = false, this._inner = new e(), this._outer = new e(), this.blockSize = this._outer.blockSize, this.digestLength = this._outer.digestLength; var n = new Uint8Array(this.blockSize); @@ -76357,14 +76388,14 @@ ${gz(e, r)}`); this._inner.update(n); for (var i = 0; i < n.length; i++) n[i] ^= 106; - this._outer.update(n), Oo.isSerializableHash(this._inner) && Oo.isSerializableHash(this._outer) && (this._innerKeyedState = this._inner.saveState(), this._outerKeyedState = this._outer.saveState()), Cye.wipe(n); + this._outer.update(n), Io.isSerializableHash(this._inner) && Io.isSerializableHash(this._outer) && (this._innerKeyedState = this._inner.saveState(), this._outerKeyedState = this._outer.saveState()), Bye.wipe(n); } return t.prototype.reset = function() { - if (!Oo.isSerializableHash(this._inner) || !Oo.isSerializableHash(this._outer)) + if (!Io.isSerializableHash(this._inner) || !Io.isSerializableHash(this._outer)) throw new Error("hmac: can't reset() because hash doesn't implement restoreState()"); return this._inner.restoreState(this._innerKeyedState), this._outer.restoreState(this._outerKeyedState), this._finished = false, this; }, t.prototype.clean = function() { - Oo.isSerializableHash(this._inner) && this._inner.cleanSavedState(this._innerKeyedState), Oo.isSerializableHash(this._outer) && this._outer.cleanSavedState(this._outerKeyedState), this._inner.clean(), this._outer.clean(); + Io.isSerializableHash(this._inner) && this._inner.cleanSavedState(this._innerKeyedState), Io.isSerializableHash(this._outer) && this._outer.cleanSavedState(this._outerKeyedState), this._inner.clean(), this._outer.clean(); }, t.prototype.update = function(e) { return this._inner.update(e), this; }, t.prototype.finish = function(e) { @@ -76373,36 +76404,36 @@ ${gz(e, r)}`); var e = new Uint8Array(this.digestLength); return this.finish(e), e; }, t.prototype.saveState = function() { - if (!Oo.isSerializableHash(this._inner)) + if (!Io.isSerializableHash(this._inner)) throw new Error("hmac: can't saveState() because hash doesn't implement it"); return this._inner.saveState(); }, t.prototype.restoreState = function(e) { - if (!Oo.isSerializableHash(this._inner) || !Oo.isSerializableHash(this._outer)) + if (!Io.isSerializableHash(this._inner) || !Io.isSerializableHash(this._outer)) throw new Error("hmac: can't restoreState() because hash doesn't implement it"); return this._inner.restoreState(e), this._outer.restoreState(this._outerKeyedState), this._finished = false, this; }, t.prototype.cleanSavedState = function(e) { - if (!Oo.isSerializableHash(this._inner)) + if (!Io.isSerializableHash(this._inner)) throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it"); this._inner.cleanSavedState(e); }, t; }(); - P0.HMAC = hB; - function Dye(t, e, r) { - var n = new hB(t, e); + P0.HMAC = dB; + function Uye(t, e, r) { + var n = new dB(t, e); n.update(r); var i = n.digest(); return n.clean(), i; } - P0.hmac = Dye; - P0.equal = Rye.equal; - Object.defineProperty(fB, "__esModule", { value: true }); - var XS = P0; - var YS = hs; - var Lye = function() { + P0.hmac = Uye; + P0.equal = Lye.equal; + Object.defineProperty(hB, "__esModule", { value: true }); + var KS = P0; + var XS = hs; + var jye = function() { function t(e, r, n, i) { n === void 0 && (n = new Uint8Array(0)), this._counter = new Uint8Array(1), this._hash = e, this._info = i; - var s = XS.hmac(this._hash, n, r); - this._hmac = new XS.HMAC(e, s), this._buffer = new Uint8Array(this._hmac.digestLength), this._bufpos = this._buffer.length; + var s = KS.hmac(this._hash, n, r); + this._hmac = new KS.HMAC(e, s), this._buffer = new Uint8Array(this._hmac.digestLength), this._bufpos = this._buffer.length; } return t.prototype._fillBuffer = function() { this._counter[0]++; @@ -76415,11 +76446,11 @@ ${gz(e, r)}`); this._bufpos === this._buffer.length && this._fillBuffer(), r[n] = this._buffer[this._bufpos++]; return r; }, t.prototype.clean = function() { - this._hmac.clean(), YS.wipe(this._buffer), YS.wipe(this._counter), this._bufpos = 0; + this._hmac.clean(), XS.wipe(this._buffer), XS.wipe(this._counter), this._bufpos = 0; }, t; }(); - var Bye = fB.HKDF = Lye; - var k2 = {}; + var Vye = hB.HKDF = jye; + var R2 = {}; (function(t) { Object.defineProperty(t, "__esModule", { value: true }); var e = Ut, r = hs; @@ -76569,11 +76600,11 @@ ${gz(e, r)}`); return c.clean(), u; } t.hash = o; - })(k2); - var Qx = {}; + })(R2); + var Jx = {}; (function(t) { Object.defineProperty(t, "__esModule", { value: true }), t.sharedKey = t.generateKeyPair = t.generateKeyPairFromSeed = t.scalarMultBase = t.scalarMult = t.SHARED_KEY_LENGTH = t.SECRET_KEY_LENGTH = t.PUBLIC_KEY_LENGTH = void 0; - const e = eh, r = hs; + const e = $f, r = hs; t.PUBLIC_KEY_LENGTH = 32, t.SECRET_KEY_LENGTH = 32, t.SHARED_KEY_LENGTH = 32; function n(q) { const W = new Float64Array(16); @@ -76700,19 +76731,19 @@ ${gz(e, r)}`); return T; } t.sharedKey = D; - })(Qx); - function dB(t = 0) { + })(Jx); + function pB(t = 0) { return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? globalThis.Buffer.allocUnsafe(t) : new Uint8Array(t); } - function ZS(t, e) { + function YS(t, e) { e || (e = t.reduce((i, s) => i + s.length, 0)); - const r = dB(e); + const r = pB(e); let n = 0; for (const i of t) r.set(i, n), n += i.length; return r; } - function pB(t, e, r, n) { + function mB(t, e, r, n) { return { name: t, prefix: e, @@ -76724,127 +76755,127 @@ ${gz(e, r)}`); decoder: { decode: n } }; } - var JS = pB("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); - var Wb = pB("ascii", "a", (t) => { + var ZS = mB("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); + var qb = mB("ascii", "a", (t) => { let e = "a"; for (let r = 0; r < t.length; r++) e += String.fromCharCode(t[r]); return e; }, (t) => { t = t.substring(1); - const e = dB(t.length); + const e = pB(t.length); for (let r = 0; r < t.length; r++) e[r] = t.charCodeAt(r); return e; }); - var mB = { - utf8: JS, - "utf-8": JS, - hex: Rm.base16, - latin1: Wb, - ascii: Wb, - binary: Wb, - ...Rm - }; - function uo(t, e = "utf8") { - const r = mB[e]; + var gB = { + utf8: ZS, + "utf-8": ZS, + hex: Cm.base16, + latin1: qb, + ascii: qb, + binary: qb, + ...Cm + }; + function co(t, e = "utf8") { + const r = gB[e]; if (!r) throw new Error(`Unsupported encoding "${e}"`); return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(t, "utf8") : r.decoder.decode(`${r.prefix}${t}`); } - function js(t, e = "utf8") { - const r = mB[e]; + function Us(t, e = "utf8") { + const r = gB[e]; if (!r) throw new Error(`Unsupported encoding "${e}"`); return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("utf8") : r.encoder.encode(t).substring(1); } - var Uye = { waku: { publish: "waku_publish", batchPublish: "waku_batchPublish", subscribe: "waku_subscribe", batchSubscribe: "waku_batchSubscribe", subscription: "waku_subscription", unsubscribe: "waku_unsubscribe", batchUnsubscribe: "waku_batchUnsubscribe", batchFetchMessages: "waku_batchFetchMessages" }, irn: { publish: "irn_publish", batchPublish: "irn_batchPublish", subscribe: "irn_subscribe", batchSubscribe: "irn_batchSubscribe", subscription: "irn_subscription", unsubscribe: "irn_unsubscribe", batchUnsubscribe: "irn_batchUnsubscribe", batchFetchMessages: "irn_batchFetchMessages" }, iridium: { publish: "iridium_publish", batchPublish: "iridium_batchPublish", subscribe: "iridium_subscribe", batchSubscribe: "iridium_batchSubscribe", subscription: "iridium_subscription", unsubscribe: "iridium_unsubscribe", batchUnsubscribe: "iridium_batchUnsubscribe", batchFetchMessages: "iridium_batchFetchMessages" } }; - var jye = ":"; - function Gb(t) { - const [e, r] = t.split(jye); + var zye = { waku: { publish: "waku_publish", batchPublish: "waku_batchPublish", subscribe: "waku_subscribe", batchSubscribe: "waku_batchSubscribe", subscription: "waku_subscription", unsubscribe: "waku_unsubscribe", batchUnsubscribe: "waku_batchUnsubscribe", batchFetchMessages: "waku_batchFetchMessages" }, irn: { publish: "irn_publish", batchPublish: "irn_batchPublish", subscribe: "irn_subscribe", batchSubscribe: "irn_batchSubscribe", subscription: "irn_subscription", unsubscribe: "irn_unsubscribe", batchUnsubscribe: "irn_batchUnsubscribe", batchFetchMessages: "irn_batchFetchMessages" }, iridium: { publish: "iridium_publish", batchPublish: "iridium_batchPublish", subscribe: "iridium_subscribe", batchSubscribe: "iridium_batchSubscribe", subscription: "iridium_subscription", unsubscribe: "iridium_unsubscribe", batchUnsubscribe: "iridium_batchUnsubscribe", batchFetchMessages: "iridium_batchFetchMessages" } }; + var Fye = ":"; + function Wb(t) { + const [e, r] = t.split(Fye); return { namespace: e, reference: r }; } - function gB(t, e) { + function yB(t, e) { return t.includes(":") ? [t] : e.chains || []; } - var Vye = Object.defineProperty; - var QS = Object.getOwnPropertySymbols; - var zye = Object.prototype.hasOwnProperty; - var Fye = Object.prototype.propertyIsEnumerable; - var $S = (t, e, r) => e in t ? Vye(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var eM = (t, e) => { + var Hye = Object.defineProperty; + var JS = Object.getOwnPropertySymbols; + var qye = Object.prototype.hasOwnProperty; + var Wye = Object.prototype.propertyIsEnumerable; + var QS = (t, e, r) => e in t ? Hye(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var $S = (t, e) => { for (var r in e || (e = {})) - zye.call(e, r) && $S(t, r, e[r]); - if (QS) - for (var r of QS(e)) - Fye.call(e, r) && $S(t, r, e[r]); + qye.call(e, r) && QS(t, r, e[r]); + if (JS) + for (var r of JS(e)) + Wye.call(e, r) && QS(t, r, e[r]); return t; }; - var Hye = "ReactNative"; + var Gye = "ReactNative"; var is = { reactNative: "react-native", node: "node", browser: "browser", unknown: "unknown" }; - var qye = "js"; - function zd() { + var Kye = "js"; + function Vd() { return typeof process < "u" && typeof process.versions < "u" && typeof process.versions.node < "u"; } - function rh() { - return !Kx() && !!Xx() && navigator.product === Hye; + function th() { + return !Gx() && !!Kx() && navigator.product === Gye; } - function nh() { - return !zd() && !!Xx() && !!Kx(); + function rh() { + return !Vd() && !!Kx() && !!Gx(); } function k0() { - return rh() ? is.reactNative : zd() ? is.node : nh() ? is.browser : is.unknown; + return th() ? is.reactNative : Vd() ? is.node : rh() ? is.browser : is.unknown; } - function Wye() { + function Xye() { var t; try { - return rh() && typeof global < "u" && typeof (global == null ? void 0 : global.Application) < "u" ? (t = global.Application) == null ? void 0 : t.applicationId : void 0; + return th() && typeof global < "u" && typeof (global == null ? void 0 : global.Application) < "u" ? (t = global.Application) == null ? void 0 : t.applicationId : void 0; } catch { return; } } - function Gye(t, e) { - let r = Vd.parse(t); - return r = eM(eM({}, r), e), t = Vd.stringify(r), t; + function Yye(t, e) { + let r = jd.parse(t); + return r = $S($S({}, r), e), t = jd.stringify(r), t; } - function yB() { - return oB() || { name: "", description: "", url: "", icons: [""] }; + function bB() { + return aB() || { name: "", description: "", url: "", icons: [""] }; } - function Kye() { + function Zye() { if (k0() === is.reactNative && typeof global < "u" && typeof (global == null ? void 0 : global.Platform) < "u") { const { OS: r, Version: n } = global.Platform; return [r, n].join("-"); } - const t = nye(); + const t = oye(); if (t === null) return "unknown"; const e = t.os ? t.os.replace(" ", "").toLowerCase() : "unknown"; return t.type === "browser" ? [e, t.name, t.version].join("-") : [e, t.version].join("-"); } - function Xye() { + function Jye() { var t; const e = k0(); - return e === is.browser ? [e, ((t = sB()) == null ? void 0 : t.host) || "unknown"].join(":") : e; + return e === is.browser ? [e, ((t = oB()) == null ? void 0 : t.host) || "unknown"].join(":") : e; } - function Yye(t, e, r) { - const n = Kye(), i = Xye(); - return [[t, e].join("-"), [qye, r].join("-"), n, i].join("/"); + function Qye(t, e, r) { + const n = Zye(), i = Jye(); + return [[t, e].join("-"), [Kye, r].join("-"), n, i].join("/"); } - function Zye({ protocol: t, version: e, relayUrl: r, sdkVersion: n, auth: i, projectId: s, useOnCloseEvent: o, bundleId: a }) { - const c = r.split("?"), u = Yye(t, e, n), f = { auth: i, ua: u, projectId: s, useOnCloseEvent: o || void 0, origin: a || void 0 }, p = Gye(c[1] || "", f); + function $ye({ protocol: t, version: e, relayUrl: r, sdkVersion: n, auth: i, projectId: s, useOnCloseEvent: o, bundleId: a }) { + const c = r.split("?"), u = Qye(t, e, n), f = { auth: i, ua: u, projectId: s, useOnCloseEvent: o || void 0, origin: a || void 0 }, p = Yye(c[1] || "", f); return c[0] + "?" + p; } function Bu(t, e) { return t.filter((r) => e.includes(r)).length === t.length; } - function bB(t) { + function wB(t) { return Object.fromEntries(t.entries()); } - function wB(t) { + function vB(t) { return new Map(Object.entries(t)); } - function Iu(t = yt.FIVE_MINUTES, e) { - const r = yt.toMiliseconds(t || yt.FIVE_MINUTES); + function Nu(t = gt.FIVE_MINUTES, e) { + const r = gt.toMiliseconds(t || gt.FIVE_MINUTES); let n, i, s; return { resolve: (o) => { s && n && (clearTimeout(s), n(o)); @@ -76868,7 +76899,7 @@ ${gz(e, r)}`); clearTimeout(s); }); } - function vB(t, e) { + function xB(t, e) { if (typeof e == "string" && e.startsWith(`${t}:`)) return e; if (t.toLowerCase() === "topic") { @@ -76882,13 +76913,13 @@ ${gz(e, r)}`); } throw new Error(`Unknown expirer target type: ${t}`); } - function Jye(t) { - return vB("topic", t); + function ebe(t) { + return xB("topic", t); } - function Qye(t) { - return vB("id", t); + function tbe(t) { + return xB("id", t); } - function xB(t) { + function _B(t) { const [e, r] = t.split(":"), n = { id: void 0, topic: void 0 }; if (e === "topic" && typeof r == "string") n.topic = r; @@ -76899,18 +76930,18 @@ ${gz(e, r)}`); return n; } function Xn(t, e) { - return yt.fromMiliseconds((e || Date.now()) + yt.toMiliseconds(t)); + return gt.fromMiliseconds((e || Date.now()) + gt.toMiliseconds(t)); } - function Cc(t) { - return Date.now() >= yt.toMiliseconds(t); + function kc(t) { + return Date.now() >= gt.toMiliseconds(t); } - function Wt(t, e) { + function qt(t, e) { return `${t}${e ? `:${e}` : ""}`; } - function $ye(t = [], e = []) { + function rbe(t = [], e = []) { return [.../* @__PURE__ */ new Set([...t, ...e])]; } - async function ebe({ id: t, topic: e, wcDeepLink: r }) { + async function nbe({ id: t, topic: e, wcDeepLink: r }) { try { if (!r) return; @@ -76925,15 +76956,15 @@ ${gz(e, r)}`); console.error(n); } } - async function tbe(t, e) { + async function ibe(t, e) { try { - return await t.getItem(e) || (nh() ? localStorage.getItem(e) : void 0); + return await t.getItem(e) || (rh() ? localStorage.getItem(e) : void 0); } catch (r) { console.error(r); } } - var _B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; - function rbe(t) { + var EB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; + function sbe(t) { var e = t.default; if (typeof e == "function") { var r = function() { @@ -76949,13 +76980,13 @@ ${gz(e, r)}`); } }); }), r; } - var EB = { exports: {} }; + var SB = { exports: {} }; (function(t) { (function() { var e = "input is invalid type", r = "finalize already called", n = typeof window == "object", i = n ? window : {}; i.JS_SHA3_NO_WINDOW && (n = false); var s = !n && typeof self == "object", o = !i.JS_SHA3_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node; - o ? i = _B : s && (i = self); + o ? i = EB : s && (i = self); var a = !i.JS_SHA3_NO_COMMON_JS && true && t.exports, c = !i.JS_SHA3_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), f = [31, 7936, 2031616, 520093696], p = [4, 1024, 262144, 67108864], b = [1, 256, 65536, 16777216], E = [6, 1536, 393216, 100663296], _ = [0, 8, 16, 24], N = [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], k = [224, 256, 384, 512], F = [128, 256], L = ["hex", "buffer", "arrayBuffer", "array", "digest"], D = { 128: 168, 256: 136 }; (i.JS_SHA3_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(A) { return Object.prototype.toString.call(A) === "[object Array]"; @@ -77137,9 +77168,9 @@ ${gz(e, r)}`); return this.encode(this.outputBits, true), m.prototype.finalize.call(this); }; var Q = function(A) { - var K, U, j, G, R, Y, ee, ae, ie, Z, ce, oe, me, pe, se, le, be, ye, Ee, Te, C, O, B, $, te, J, ne, fe, ge, de, ve, Ae, Ne, De, ut, Ve, Ze, Ge, ke, Re, Je, Me, Pe, et, Ce, ze, nt, qe, Ke, at, We, $e, dt, ft, ht, Mt, rt, _t, gr, yr, br, wr, tr; + var K, U, j, G, R, Y, ee, ae, ie, Z, ce, oe, me, pe, se, le, be, ye, Ee, Te, C, O, B, $, te, J, ne, fe, ge, de, ve, Ae, Ne, De, ut, Ve, Ze, Ge, ke, Re, Je, Me, Oe, et, Ce, ze, nt, qe, Ke, at, We, Qe, dt, ft, ht, Mt, rt, _t, gr, yr, br, wr, tr; for (j = 0; j < 48; j += 2) - G = A[0] ^ A[10] ^ A[20] ^ A[30] ^ A[40], R = A[1] ^ A[11] ^ A[21] ^ A[31] ^ A[41], Y = A[2] ^ A[12] ^ A[22] ^ A[32] ^ A[42], ee = A[3] ^ A[13] ^ A[23] ^ A[33] ^ A[43], ae = A[4] ^ A[14] ^ A[24] ^ A[34] ^ A[44], ie = A[5] ^ A[15] ^ A[25] ^ A[35] ^ A[45], Z = A[6] ^ A[16] ^ A[26] ^ A[36] ^ A[46], ce = A[7] ^ A[17] ^ A[27] ^ A[37] ^ A[47], oe = A[8] ^ A[18] ^ A[28] ^ A[38] ^ A[48], me = A[9] ^ A[19] ^ A[29] ^ A[39] ^ A[49], K = oe ^ (Y << 1 | ee >>> 31), U = me ^ (ee << 1 | Y >>> 31), A[0] ^= K, A[1] ^= U, A[10] ^= K, A[11] ^= U, A[20] ^= K, A[21] ^= U, A[30] ^= K, A[31] ^= U, A[40] ^= K, A[41] ^= U, K = G ^ (ae << 1 | ie >>> 31), U = R ^ (ie << 1 | ae >>> 31), A[2] ^= K, A[3] ^= U, A[12] ^= K, A[13] ^= U, A[22] ^= K, A[23] ^= U, A[32] ^= K, A[33] ^= U, A[42] ^= K, A[43] ^= U, K = Y ^ (Z << 1 | ce >>> 31), U = ee ^ (ce << 1 | Z >>> 31), A[4] ^= K, A[5] ^= U, A[14] ^= K, A[15] ^= U, A[24] ^= K, A[25] ^= U, A[34] ^= K, A[35] ^= U, A[44] ^= K, A[45] ^= U, K = ae ^ (oe << 1 | me >>> 31), U = ie ^ (me << 1 | oe >>> 31), A[6] ^= K, A[7] ^= U, A[16] ^= K, A[17] ^= U, A[26] ^= K, A[27] ^= U, A[36] ^= K, A[37] ^= U, A[46] ^= K, A[47] ^= U, K = Z ^ (G << 1 | R >>> 31), U = ce ^ (R << 1 | G >>> 31), A[8] ^= K, A[9] ^= U, A[18] ^= K, A[19] ^= U, A[28] ^= K, A[29] ^= U, A[38] ^= K, A[39] ^= U, A[48] ^= K, A[49] ^= U, pe = A[0], se = A[1], ze = A[11] << 4 | A[10] >>> 28, nt = A[10] << 4 | A[11] >>> 28, fe = A[20] << 3 | A[21] >>> 29, ge = A[21] << 3 | A[20] >>> 29, yr = A[31] << 9 | A[30] >>> 23, br = A[30] << 9 | A[31] >>> 23, Me = A[40] << 18 | A[41] >>> 14, Pe = A[41] << 18 | A[40] >>> 14, De = A[2] << 1 | A[3] >>> 31, ut = A[3] << 1 | A[2] >>> 31, le = A[13] << 12 | A[12] >>> 20, be = A[12] << 12 | A[13] >>> 20, qe = A[22] << 10 | A[23] >>> 22, Ke = A[23] << 10 | A[22] >>> 22, de = A[33] << 13 | A[32] >>> 19, ve = A[32] << 13 | A[33] >>> 19, wr = A[42] << 2 | A[43] >>> 30, tr = A[43] << 2 | A[42] >>> 30, ft = A[5] << 30 | A[4] >>> 2, ht = A[4] << 30 | A[5] >>> 2, Ve = A[14] << 6 | A[15] >>> 26, Ze = A[15] << 6 | A[14] >>> 26, ye = A[25] << 11 | A[24] >>> 21, Ee = A[24] << 11 | A[25] >>> 21, at = A[34] << 15 | A[35] >>> 17, We = A[35] << 15 | A[34] >>> 17, Ae = A[45] << 29 | A[44] >>> 3, Ne = A[44] << 29 | A[45] >>> 3, $ = A[6] << 28 | A[7] >>> 4, te = A[7] << 28 | A[6] >>> 4, Mt = A[17] << 23 | A[16] >>> 9, rt = A[16] << 23 | A[17] >>> 9, Ge = A[26] << 25 | A[27] >>> 7, ke = A[27] << 25 | A[26] >>> 7, Te = A[36] << 21 | A[37] >>> 11, C = A[37] << 21 | A[36] >>> 11, $e = A[47] << 24 | A[46] >>> 8, dt = A[46] << 24 | A[47] >>> 8, et = A[8] << 27 | A[9] >>> 5, Ce = A[9] << 27 | A[8] >>> 5, J = A[18] << 20 | A[19] >>> 12, ne = A[19] << 20 | A[18] >>> 12, _t = A[29] << 7 | A[28] >>> 25, gr = A[28] << 7 | A[29] >>> 25, Re = A[38] << 8 | A[39] >>> 24, Je = A[39] << 8 | A[38] >>> 24, O = A[48] << 14 | A[49] >>> 18, B = A[49] << 14 | A[48] >>> 18, A[0] = pe ^ ~le & ye, A[1] = se ^ ~be & Ee, A[10] = $ ^ ~J & fe, A[11] = te ^ ~ne & ge, A[20] = De ^ ~Ve & Ge, A[21] = ut ^ ~Ze & ke, A[30] = et ^ ~ze & qe, A[31] = Ce ^ ~nt & Ke, A[40] = ft ^ ~Mt & _t, A[41] = ht ^ ~rt & gr, A[2] = le ^ ~ye & Te, A[3] = be ^ ~Ee & C, A[12] = J ^ ~fe & de, A[13] = ne ^ ~ge & ve, A[22] = Ve ^ ~Ge & Re, A[23] = Ze ^ ~ke & Je, A[32] = ze ^ ~qe & at, A[33] = nt ^ ~Ke & We, A[42] = Mt ^ ~_t & yr, A[43] = rt ^ ~gr & br, A[4] = ye ^ ~Te & O, A[5] = Ee ^ ~C & B, A[14] = fe ^ ~de & Ae, A[15] = ge ^ ~ve & Ne, A[24] = Ge ^ ~Re & Me, A[25] = ke ^ ~Je & Pe, A[34] = qe ^ ~at & $e, A[35] = Ke ^ ~We & dt, A[44] = _t ^ ~yr & wr, A[45] = gr ^ ~br & tr, A[6] = Te ^ ~O & pe, A[7] = C ^ ~B & se, A[16] = de ^ ~Ae & $, A[17] = ve ^ ~Ne & te, A[26] = Re ^ ~Me & De, A[27] = Je ^ ~Pe & ut, A[36] = at ^ ~$e & et, A[37] = We ^ ~dt & Ce, A[46] = yr ^ ~wr & ft, A[47] = br ^ ~tr & ht, A[8] = O ^ ~pe & le, A[9] = B ^ ~se & be, A[18] = Ae ^ ~$ & J, A[19] = Ne ^ ~te & ne, A[28] = Me ^ ~De & Ve, A[29] = Pe ^ ~ut & Ze, A[38] = $e ^ ~et & ze, A[39] = dt ^ ~Ce & nt, A[48] = wr ^ ~ft & Mt, A[49] = tr ^ ~ht & rt, A[0] ^= N[j], A[1] ^= N[j + 1]; + G = A[0] ^ A[10] ^ A[20] ^ A[30] ^ A[40], R = A[1] ^ A[11] ^ A[21] ^ A[31] ^ A[41], Y = A[2] ^ A[12] ^ A[22] ^ A[32] ^ A[42], ee = A[3] ^ A[13] ^ A[23] ^ A[33] ^ A[43], ae = A[4] ^ A[14] ^ A[24] ^ A[34] ^ A[44], ie = A[5] ^ A[15] ^ A[25] ^ A[35] ^ A[45], Z = A[6] ^ A[16] ^ A[26] ^ A[36] ^ A[46], ce = A[7] ^ A[17] ^ A[27] ^ A[37] ^ A[47], oe = A[8] ^ A[18] ^ A[28] ^ A[38] ^ A[48], me = A[9] ^ A[19] ^ A[29] ^ A[39] ^ A[49], K = oe ^ (Y << 1 | ee >>> 31), U = me ^ (ee << 1 | Y >>> 31), A[0] ^= K, A[1] ^= U, A[10] ^= K, A[11] ^= U, A[20] ^= K, A[21] ^= U, A[30] ^= K, A[31] ^= U, A[40] ^= K, A[41] ^= U, K = G ^ (ae << 1 | ie >>> 31), U = R ^ (ie << 1 | ae >>> 31), A[2] ^= K, A[3] ^= U, A[12] ^= K, A[13] ^= U, A[22] ^= K, A[23] ^= U, A[32] ^= K, A[33] ^= U, A[42] ^= K, A[43] ^= U, K = Y ^ (Z << 1 | ce >>> 31), U = ee ^ (ce << 1 | Z >>> 31), A[4] ^= K, A[5] ^= U, A[14] ^= K, A[15] ^= U, A[24] ^= K, A[25] ^= U, A[34] ^= K, A[35] ^= U, A[44] ^= K, A[45] ^= U, K = ae ^ (oe << 1 | me >>> 31), U = ie ^ (me << 1 | oe >>> 31), A[6] ^= K, A[7] ^= U, A[16] ^= K, A[17] ^= U, A[26] ^= K, A[27] ^= U, A[36] ^= K, A[37] ^= U, A[46] ^= K, A[47] ^= U, K = Z ^ (G << 1 | R >>> 31), U = ce ^ (R << 1 | G >>> 31), A[8] ^= K, A[9] ^= U, A[18] ^= K, A[19] ^= U, A[28] ^= K, A[29] ^= U, A[38] ^= K, A[39] ^= U, A[48] ^= K, A[49] ^= U, pe = A[0], se = A[1], ze = A[11] << 4 | A[10] >>> 28, nt = A[10] << 4 | A[11] >>> 28, fe = A[20] << 3 | A[21] >>> 29, ge = A[21] << 3 | A[20] >>> 29, yr = A[31] << 9 | A[30] >>> 23, br = A[30] << 9 | A[31] >>> 23, Me = A[40] << 18 | A[41] >>> 14, Oe = A[41] << 18 | A[40] >>> 14, De = A[2] << 1 | A[3] >>> 31, ut = A[3] << 1 | A[2] >>> 31, le = A[13] << 12 | A[12] >>> 20, be = A[12] << 12 | A[13] >>> 20, qe = A[22] << 10 | A[23] >>> 22, Ke = A[23] << 10 | A[22] >>> 22, de = A[33] << 13 | A[32] >>> 19, ve = A[32] << 13 | A[33] >>> 19, wr = A[42] << 2 | A[43] >>> 30, tr = A[43] << 2 | A[42] >>> 30, ft = A[5] << 30 | A[4] >>> 2, ht = A[4] << 30 | A[5] >>> 2, Ve = A[14] << 6 | A[15] >>> 26, Ze = A[15] << 6 | A[14] >>> 26, ye = A[25] << 11 | A[24] >>> 21, Ee = A[24] << 11 | A[25] >>> 21, at = A[34] << 15 | A[35] >>> 17, We = A[35] << 15 | A[34] >>> 17, Ae = A[45] << 29 | A[44] >>> 3, Ne = A[44] << 29 | A[45] >>> 3, $ = A[6] << 28 | A[7] >>> 4, te = A[7] << 28 | A[6] >>> 4, Mt = A[17] << 23 | A[16] >>> 9, rt = A[16] << 23 | A[17] >>> 9, Ge = A[26] << 25 | A[27] >>> 7, ke = A[27] << 25 | A[26] >>> 7, Te = A[36] << 21 | A[37] >>> 11, C = A[37] << 21 | A[36] >>> 11, Qe = A[47] << 24 | A[46] >>> 8, dt = A[46] << 24 | A[47] >>> 8, et = A[8] << 27 | A[9] >>> 5, Ce = A[9] << 27 | A[8] >>> 5, J = A[18] << 20 | A[19] >>> 12, ne = A[19] << 20 | A[18] >>> 12, _t = A[29] << 7 | A[28] >>> 25, gr = A[28] << 7 | A[29] >>> 25, Re = A[38] << 8 | A[39] >>> 24, Je = A[39] << 8 | A[38] >>> 24, O = A[48] << 14 | A[49] >>> 18, B = A[49] << 14 | A[48] >>> 18, A[0] = pe ^ ~le & ye, A[1] = se ^ ~be & Ee, A[10] = $ ^ ~J & fe, A[11] = te ^ ~ne & ge, A[20] = De ^ ~Ve & Ge, A[21] = ut ^ ~Ze & ke, A[30] = et ^ ~ze & qe, A[31] = Ce ^ ~nt & Ke, A[40] = ft ^ ~Mt & _t, A[41] = ht ^ ~rt & gr, A[2] = le ^ ~ye & Te, A[3] = be ^ ~Ee & C, A[12] = J ^ ~fe & de, A[13] = ne ^ ~ge & ve, A[22] = Ve ^ ~Ge & Re, A[23] = Ze ^ ~ke & Je, A[32] = ze ^ ~qe & at, A[33] = nt ^ ~Ke & We, A[42] = Mt ^ ~_t & yr, A[43] = rt ^ ~gr & br, A[4] = ye ^ ~Te & O, A[5] = Ee ^ ~C & B, A[14] = fe ^ ~de & Ae, A[15] = ge ^ ~ve & Ne, A[24] = Ge ^ ~Re & Me, A[25] = ke ^ ~Je & Oe, A[34] = qe ^ ~at & Qe, A[35] = Ke ^ ~We & dt, A[44] = _t ^ ~yr & wr, A[45] = gr ^ ~br & tr, A[6] = Te ^ ~O & pe, A[7] = C ^ ~B & se, A[16] = de ^ ~Ae & $, A[17] = ve ^ ~Ne & te, A[26] = Re ^ ~Me & De, A[27] = Je ^ ~Oe & ut, A[36] = at ^ ~Qe & et, A[37] = We ^ ~dt & Ce, A[46] = yr ^ ~wr & ft, A[47] = br ^ ~tr & ht, A[8] = O ^ ~pe & le, A[9] = B ^ ~se & be, A[18] = Ae ^ ~$ & J, A[19] = Ne ^ ~te & ne, A[28] = Me ^ ~De & Ve, A[29] = Oe ^ ~ut & Ze, A[38] = Qe ^ ~et & ze, A[39] = dt ^ ~Ce & nt, A[48] = wr ^ ~ft & Mt, A[49] = tr ^ ~ht & rt, A[0] ^= N[j], A[1] ^= N[j + 1]; }; if (a) t.exports = l; @@ -77147,15 +77178,15 @@ ${gz(e, r)}`); for (y = 0; y < h.length; ++y) i[h[y]] = l[h[y]]; })(); - })(EB); - var nbe = EB.exports; - var ibe = "logger/5.7.0"; + })(SB); + var obe = SB.exports; + var abe = "logger/5.7.0"; + var eM = false; var tM = false; - var rM = false; - var m1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; - var nM = m1.default; - var Kb = null; - function sbe() { + var g1 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }; + var rM = g1.default; + var Gb = null; + function cbe() { try { const t = []; if (["NFD", "NFC", "NFKD", "NFKC"].forEach((e) => { @@ -77174,23 +77205,23 @@ ${gz(e, r)}`); } return null; } - var iM = sbe(); - var nv; + var nM = cbe(); + var rv; (function(t) { t.DEBUG = "DEBUG", t.INFO = "INFO", t.WARNING = "WARNING", t.ERROR = "ERROR", t.OFF = "OFF"; - })(nv || (nv = {})); - var io; + })(rv || (rv = {})); + var no; (function(t) { t.UNKNOWN_ERROR = "UNKNOWN_ERROR", t.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", t.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", t.NETWORK_ERROR = "NETWORK_ERROR", t.SERVER_ERROR = "SERVER_ERROR", t.TIMEOUT = "TIMEOUT", t.BUFFER_OVERRUN = "BUFFER_OVERRUN", t.NUMERIC_FAULT = "NUMERIC_FAULT", t.MISSING_NEW = "MISSING_NEW", t.INVALID_ARGUMENT = "INVALID_ARGUMENT", t.MISSING_ARGUMENT = "MISSING_ARGUMENT", t.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", t.CALL_EXCEPTION = "CALL_EXCEPTION", t.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", t.NONCE_EXPIRED = "NONCE_EXPIRED", t.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", t.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", t.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", t.ACTION_REJECTED = "ACTION_REJECTED"; - })(io || (io = {})); - var sM = "0123456789abcdef"; + })(no || (no = {})); + var iM = "0123456789abcdef"; var Qn = class bn { constructor(e) { Object.defineProperty(this, "version", { enumerable: true, value: e, writable: false }); } _log(e, r) { const n = e.toLowerCase(); - m1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(nM > m1[n]) && console.log.apply(console, r); + g1[n] == null && this.throwArgumentError("invalid log level name", "logLevel", e), !(rM > g1[n]) && console.log.apply(console, r); } debug(...e) { this._log(bn.levels.DEBUG, e); @@ -77202,7 +77233,7 @@ ${gz(e, r)}`); this._log(bn.levels.WARNING, e); } makeError(e, r, n) { - if (rM) + if (tM) return this.makeError("censored error", r, {}); r || (r = bn.errors.UNKNOWN_ERROR), n || (n = {}); const i = []; @@ -77212,7 +77243,7 @@ ${gz(e, r)}`); if (u instanceof Uint8Array) { let f = ""; for (let p = 0; p < u.length; p++) - f += sM[u[p] >> 4], f += sM[u[p] & 15]; + f += iM[u[p] >> 4], f += iM[u[p] & 15]; i.push(c + "=Uint8Array(0x" + f + ")"); } else i.push(c + "=" + JSON.stringify(u)); @@ -77223,7 +77254,7 @@ ${gz(e, r)}`); const s = e; let o = ""; switch (r) { - case io.NUMERIC_FAULT: { + case no.NUMERIC_FAULT: { o = "NUMERIC_FAULT"; const c = e; switch (c) { @@ -77242,13 +77273,13 @@ ${gz(e, r)}`); } break; } - case io.CALL_EXCEPTION: - case io.INSUFFICIENT_FUNDS: - case io.MISSING_NEW: - case io.NONCE_EXPIRED: - case io.REPLACEMENT_UNDERPRICED: - case io.TRANSACTION_REPLACED: - case io.UNPREDICTABLE_GAS_LIMIT: + case no.CALL_EXCEPTION: + case no.INSUFFICIENT_FUNDS: + case no.MISSING_NEW: + case no.NONCE_EXPIRED: + case no.REPLACEMENT_UNDERPRICED: + case no.TRANSACTION_REPLACED: + case no.UNPREDICTABLE_GAS_LIMIT: o = r; break; } @@ -77271,7 +77302,7 @@ ${gz(e, r)}`); e || this.throwArgumentError(r, n, i); } checkNormalize(e) { - iM && this.throwError("platform missing String.prototype.normalize", bn.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", form: iM }); + nM && this.throwError("platform missing String.prototype.normalize", bn.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", form: nM }); } checkSafeUint53(e, r) { typeof e == "number" && (r == null && (r = "value not safe"), (e < 0 || e >= 9007199254740991) && this.throwError(r, bn.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "out-of-safe-range", value: e }), e % 1 && this.throwError(r, bn.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "non-integer", value: e })); @@ -77286,32 +77317,32 @@ ${gz(e, r)}`); e === r ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r.name) + " directly; use a sub-class", bn.errors.UNSUPPORTED_OPERATION, { name: e.name, operation: "new" }) : (e === Object || e == null) && this.throwError("missing new", bn.errors.MISSING_NEW, { name: r.name }); } static globalLogger() { - return Kb || (Kb = new bn(ibe)), Kb; + return Gb || (Gb = new bn(abe)), Gb; } static setCensorship(e, r) { - if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", bn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }), tM) { + if (!e && r && this.globalLogger().throwError("cannot permanently disable censorship", bn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }), eM) { if (!e) return; this.globalLogger().throwError("error censorship permanent", bn.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } - rM = !!e, tM = !!r; + tM = !!e, eM = !!r; } static setLogLevel(e) { - const r = m1[e.toLowerCase()]; + const r = g1[e.toLowerCase()]; if (r == null) { bn.globalLogger().warn("invalid log level - " + e); return; } - nM = r; + rM = r; } static from(e) { return new bn(e); } }; - Qn.errors = io, Qn.levels = nv; - var obe = "bytes/5.7.0"; - var $r = new Qn(obe); - function SB(t) { + Qn.errors = no, Qn.levels = rv; + var ube = "bytes/5.7.0"; + var $r = new Qn(ube); + function MB(t) { return !!t.toHexString; } function vf(t) { @@ -77320,27 +77351,27 @@ ${gz(e, r)}`); return vf(new Uint8Array(Array.prototype.slice.apply(t, e))); }), t; } - function abe(t) { - return cs(t) && !(t.length % 2) || ih(t); + function lbe(t) { + return cs(t) && !(t.length % 2) || nh(t); } - function oM(t) { + function sM(t) { return typeof t == "number" && t == t && t % 1 === 0; } - function ih(t) { + function nh(t) { if (t == null) return false; if (t.constructor === Uint8Array) return true; - if (typeof t == "string" || !oM(t.length) || t.length < 0) + if (typeof t == "string" || !sM(t.length) || t.length < 0) return false; for (let e = 0; e < t.length; e++) { const r = t[e]; - if (!oM(r) || r < 0 || r >= 256) + if (!sM(r) || r < 0 || r >= 256) return false; } return true; } - function Qr(t, e) { + function Jr(t, e) { if (e || (e = {}), typeof t == "number") { $r.checkSafeUint53(t, "invalid arrayify value"); const r = []; @@ -77348,7 +77379,7 @@ ${gz(e, r)}`); r.unshift(t & 255), t = parseInt(String(t / 256)); return r.length === 0 && r.push(0), vf(new Uint8Array(r)); } - if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), SB(t) && (t = t.toHexString()), cs(t)) { + if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), MB(t) && (t = t.toHexString()), cs(t)) { let r = t.substring(2); r.length % 2 && (e.hexPad === "left" ? r = "0" + r : e.hexPad === "right" ? r += "0" : $r.throwArgumentError("hex data is odd-length", "value", t)); const n = []; @@ -77356,68 +77387,68 @@ ${gz(e, r)}`); n.push(parseInt(r.substring(i, i + 2), 16)); return vf(new Uint8Array(n)); } - return ih(t) ? vf(new Uint8Array(t)) : $r.throwArgumentError("invalid arrayify value", "value", t); + return nh(t) ? vf(new Uint8Array(t)) : $r.throwArgumentError("invalid arrayify value", "value", t); } - function cbe(t) { - const e = t.map((i) => Qr(i)), r = e.reduce((i, s) => i + s.length, 0), n = new Uint8Array(r); + function fbe(t) { + const e = t.map((i) => Jr(i)), r = e.reduce((i, s) => i + s.length, 0), n = new Uint8Array(r); return e.reduce((i, s) => (n.set(s, i), i + s.length), 0), vf(n); } - function ube(t, e) { - t = Qr(t), t.length > e && $r.throwArgumentError("value out of range", "value", arguments[0]); + function hbe(t, e) { + t = Jr(t), t.length > e && $r.throwArgumentError("value out of range", "value", arguments[0]); const r = new Uint8Array(e); return r.set(t, e - t.length), vf(r); } function cs(t, e) { return !(typeof t != "string" || !t.match(/^0x[0-9A-Fa-f]*$/) || e && t.length !== 2 + 2 * e); } - var Xb = "0123456789abcdef"; + var Kb = "0123456789abcdef"; function wi(t, e) { if (e || (e = {}), typeof t == "number") { $r.checkSafeUint53(t, "invalid hexlify value"); let r = ""; for (; t; ) - r = Xb[t & 15] + r, t = Math.floor(t / 16); + r = Kb[t & 15] + r, t = Math.floor(t / 16); return r.length ? (r.length % 2 && (r = "0" + r), "0x" + r) : "0x00"; } if (typeof t == "bigint") return t = t.toString(16), t.length % 2 ? "0x0" + t : "0x" + t; - if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), SB(t)) + if (e.allowMissingPrefix && typeof t == "string" && t.substring(0, 2) !== "0x" && (t = "0x" + t), MB(t)) return t.toHexString(); if (cs(t)) return t.length % 2 && (e.hexPad === "left" ? t = "0x0" + t.substring(2) : e.hexPad === "right" ? t += "0" : $r.throwArgumentError("hex data is odd-length", "value", t)), t.toLowerCase(); - if (ih(t)) { + if (nh(t)) { let r = "0x"; for (let n = 0; n < t.length; n++) { let i = t[n]; - r += Xb[(i & 240) >> 4] + Xb[i & 15]; + r += Kb[(i & 240) >> 4] + Kb[i & 15]; } return r; } return $r.throwArgumentError("invalid hexlify value", "value", t); } - function lbe(t) { + function dbe(t) { if (typeof t != "string") t = wi(t); else if (!cs(t) || t.length % 2) return null; return (t.length - 2) / 2; } - function aM(t, e, r) { + function oM(t, e, r) { return typeof t != "string" ? t = wi(t) : (!cs(t) || t.length % 2) && $r.throwArgumentError("invalid hexData", "value", t), e = 2 + 2 * e, r != null ? "0x" + t.substring(e, 2 + 2 * r) : "0x" + t.substring(e); } - function ta(t, e) { + function ea(t, e) { for (typeof t != "string" ? t = wi(t) : cs(t) || $r.throwArgumentError("invalid hex string", "value", t), t.length > 2 * e + 2 && $r.throwArgumentError("value out of range", "value", arguments[1]); t.length < 2 * e + 2; ) t = "0x0" + t.substring(2); return t; } - function MB(t) { + function AB(t) { const e = { r: "0x", s: "0x", _vs: "0x", recoveryParam: 0, v: 0, yParityAndS: "0x", compact: "0x" }; - if (abe(t)) { - let r = Qr(t); + if (lbe(t)) { + let r = Jr(t); r.length === 64 ? (e.v = 27 + (r[32] >> 7), r[32] &= 127, e.r = wi(r.slice(0, 32)), e.s = wi(r.slice(32, 64))) : r.length === 65 ? (e.r = wi(r.slice(0, 32)), e.s = wi(r.slice(32, 64)), e.v = r[64]) : $r.throwArgumentError("invalid signature string", "signature", t), e.v < 27 && (e.v === 0 || e.v === 1 ? e.v += 27 : $r.throwArgumentError("signature invalid v byte", "signature", t)), e.recoveryParam = 1 - e.v % 2, e.recoveryParam && (r[32] |= 128), e._vs = wi(r.slice(32, 64)); } else { if (e.r = t.r, e.s = t.s, e.v = t.v, e.recoveryParam = t.recoveryParam, e._vs = t._vs, e._vs != null) { - const i = ube(Qr(e._vs), 32); + const i = hbe(Jr(e._vs), 32); e._vs = wi(i); const s = i[0] >= 128 ? 1 : 0; e.recoveryParam == null ? e.recoveryParam = s : e.recoveryParam !== s && $r.throwArgumentError("signature recoveryParam mismatch _vs", "signature", t), i[0] &= 127; @@ -77432,21 +77463,21 @@ ${gz(e, r)}`); const i = e.v === 0 || e.v === 1 ? e.v : 1 - e.v % 2; e.recoveryParam !== i && $r.throwArgumentError("signature recoveryParam mismatch v", "signature", t); } - e.r == null || !cs(e.r) ? $r.throwArgumentError("signature missing or invalid r", "signature", t) : e.r = ta(e.r, 32), e.s == null || !cs(e.s) ? $r.throwArgumentError("signature missing or invalid s", "signature", t) : e.s = ta(e.s, 32); - const r = Qr(e.s); + e.r == null || !cs(e.r) ? $r.throwArgumentError("signature missing or invalid r", "signature", t) : e.r = ea(e.r, 32), e.s == null || !cs(e.s) ? $r.throwArgumentError("signature missing or invalid s", "signature", t) : e.s = ea(e.s, 32); + const r = Jr(e.s); r[0] >= 128 && $r.throwArgumentError("signature s out of range", "signature", t), e.recoveryParam && (r[0] |= 128); const n = wi(r); - e._vs && (cs(e._vs) || $r.throwArgumentError("signature invalid _vs", "signature", t), e._vs = ta(e._vs, 32)), e._vs == null ? e._vs = n : e._vs !== n && $r.throwArgumentError("signature _vs mismatch v and s", "signature", t); + e._vs && (cs(e._vs) || $r.throwArgumentError("signature invalid _vs", "signature", t), e._vs = ea(e._vs, 32)), e._vs == null ? e._vs = n : e._vs !== n && $r.throwArgumentError("signature _vs mismatch v and s", "signature", t); } return e.yParityAndS = e._vs, e.compact = e.r + e.yParityAndS.substring(2), e; } - function $x(t) { - return "0x" + nbe.keccak_256(Qr(t)); + function Qx(t) { + return "0x" + obe.keccak_256(Jr(t)); } - var AB = { exports: {} }; - var fbe = {}; - var hbe = Object.freeze({ __proto__: null, default: fbe }); - var dbe = rbe(hbe); + var TB = { exports: {} }; + var pbe = {}; + var mbe = Object.freeze({ __proto__: null, default: pbe }); + var gbe = sbe(mbe); (function(t) { (function(e, r) { function n(d, l) { @@ -77467,7 +77498,7 @@ ${gz(e, r)}`); typeof e == "object" ? e.exports = s : r.BN = s, s.BN = s, s.wordSize = 26; var o; try { - typeof window < "u" && typeof window.Buffer < "u" ? o = window.Buffer : o = dbe.Buffer; + typeof window < "u" && typeof window.Buffer < "u" ? o = window.Buffer : o = gbe.Buffer; } catch { } s.isBN = function(d) { @@ -77802,7 +77833,7 @@ ${gz(e, r)}`); return g !== 0 ? h.words[m] = g | 0 : h.length--, h._strip(); } var L = function(d, l, h) { - var y = d.words, x = l.words, v = h.words, M = 0, w, g, m, P = y[0] | 0, Q = P & 8191, A = P >>> 13, K = y[1] | 0, U = K & 8191, j = K >>> 13, G = y[2] | 0, R = G & 8191, Y = G >>> 13, ee = y[3] | 0, ae = ee & 8191, ie = ee >>> 13, Z = y[4] | 0, ce = Z & 8191, oe = Z >>> 13, me = y[5] | 0, pe = me & 8191, se = me >>> 13, le = y[6] | 0, be = le & 8191, ye = le >>> 13, Ee = y[7] | 0, Te = Ee & 8191, C = Ee >>> 13, O = y[8] | 0, B = O & 8191, $ = O >>> 13, te = y[9] | 0, J = te & 8191, ne = te >>> 13, fe = x[0] | 0, ge = fe & 8191, de = fe >>> 13, ve = x[1] | 0, Ae = ve & 8191, Ne = ve >>> 13, De = x[2] | 0, ut = De & 8191, Ve = De >>> 13, Ze = x[3] | 0, Ge = Ze & 8191, ke = Ze >>> 13, Re = x[4] | 0, Je = Re & 8191, Me = Re >>> 13, Pe = x[5] | 0, et = Pe & 8191, Ce = Pe >>> 13, ze = x[6] | 0, nt = ze & 8191, qe = ze >>> 13, Ke = x[7] | 0, at = Ke & 8191, We = Ke >>> 13, $e = x[8] | 0, dt = $e & 8191, ft = $e >>> 13, ht = x[9] | 0, Mt = ht & 8191, rt = ht >>> 13; + var y = d.words, x = l.words, v = h.words, M = 0, w, g, m, P = y[0] | 0, Q = P & 8191, A = P >>> 13, K = y[1] | 0, U = K & 8191, j = K >>> 13, G = y[2] | 0, R = G & 8191, Y = G >>> 13, ee = y[3] | 0, ae = ee & 8191, ie = ee >>> 13, Z = y[4] | 0, ce = Z & 8191, oe = Z >>> 13, me = y[5] | 0, pe = me & 8191, se = me >>> 13, le = y[6] | 0, be = le & 8191, ye = le >>> 13, Ee = y[7] | 0, Te = Ee & 8191, C = Ee >>> 13, O = y[8] | 0, B = O & 8191, $ = O >>> 13, te = y[9] | 0, J = te & 8191, ne = te >>> 13, fe = x[0] | 0, ge = fe & 8191, de = fe >>> 13, ve = x[1] | 0, Ae = ve & 8191, Ne = ve >>> 13, De = x[2] | 0, ut = De & 8191, Ve = De >>> 13, Ze = x[3] | 0, Ge = Ze & 8191, ke = Ze >>> 13, Re = x[4] | 0, Je = Re & 8191, Me = Re >>> 13, Oe = x[5] | 0, et = Oe & 8191, Ce = Oe >>> 13, ze = x[6] | 0, nt = ze & 8191, qe = ze >>> 13, Ke = x[7] | 0, at = Ke & 8191, We = Ke >>> 13, Qe = x[8] | 0, dt = Qe & 8191, ft = Qe >>> 13, ht = x[9] | 0, Mt = ht & 8191, rt = ht >>> 13; h.negative = d.negative ^ l.negative, h.length = 19, w = Math.imul(Q, ge), g = Math.imul(Q, de), g = g + Math.imul(A, ge) | 0, m = Math.imul(A, de); var _t = (M + w | 0) + ((g & 8191) << 13) | 0; M = (m + (g >>> 13) | 0) + (_t >>> 26) | 0, _t &= 67108863, w = Math.imul(U, ge), g = Math.imul(U, de), g = g + Math.imul(j, ge) | 0, m = Math.imul(j, de), w = w + Math.imul(Q, Ae) | 0, g = g + Math.imul(Q, Ne) | 0, g = g + Math.imul(A, Ae) | 0, m = m + Math.imul(A, Ne) | 0; @@ -78432,71 +78463,71 @@ ${gz(e, r)}`); var l = this.imod(d._invmp(this.m).mul(this.r2)); return l._forceRed(this); }; - })(t, _B); - })(AB); - var kt = AB.exports; - var TB = "bignumber/5.7.0"; - var Dm = kt.BN; - var Ra = new Qn(TB); - var Yb = {}; - var cM = 9007199254740991; - function pbe(t) { - return t != null && (Ti.isBigNumber(t) || typeof t == "number" && t % 1 === 0 || typeof t == "string" && !!t.match(/^-?[0-9]+$/) || cs(t) || typeof t == "bigint" || ih(t)); - } - var uM = false; - var Ti = class $s { + })(t, EB); + })(TB); + var kt = TB.exports; + var NB = "bignumber/5.7.0"; + var Lm = kt.BN; + var Pa = new Qn(NB); + var Xb = {}; + var aM = 9007199254740991; + function ybe(t) { + return t != null && (Ai.isBigNumber(t) || typeof t == "number" && t % 1 === 0 || typeof t == "string" && !!t.match(/^-?[0-9]+$/) || cs(t) || typeof t == "bigint" || nh(t)); + } + var cM = false; + var Ai = class Qs { constructor(e, r) { - e !== Yb && Ra.throwError("cannot call constructor directly; use BigNumber.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }), this._hex = r, this._isBigNumber = true, Object.freeze(this); + e !== Xb && Pa.throwError("cannot call constructor directly; use BigNumber.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }), this._hex = r, this._isBigNumber = true, Object.freeze(this); } fromTwos(e) { - return Ri(Xt(this).fromTwos(e)); + return ki(Xt(this).fromTwos(e)); } toTwos(e) { - return Ri(Xt(this).toTwos(e)); + return ki(Xt(this).toTwos(e)); } abs() { - return this._hex[0] === "-" ? $s.from(this._hex.substring(1)) : this; + return this._hex[0] === "-" ? Qs.from(this._hex.substring(1)) : this; } add(e) { - return Ri(Xt(this).add(Xt(e))); + return ki(Xt(this).add(Xt(e))); } sub(e) { - return Ri(Xt(this).sub(Xt(e))); + return ki(Xt(this).sub(Xt(e))); } div(e) { - return $s.from(e).isZero() && xs("division-by-zero", "div"), Ri(Xt(this).div(Xt(e))); + return Qs.from(e).isZero() && xs("division-by-zero", "div"), ki(Xt(this).div(Xt(e))); } mul(e) { - return Ri(Xt(this).mul(Xt(e))); + return ki(Xt(this).mul(Xt(e))); } mod(e) { const r = Xt(e); - return r.isNeg() && xs("division-by-zero", "mod"), Ri(Xt(this).umod(r)); + return r.isNeg() && xs("division-by-zero", "mod"), ki(Xt(this).umod(r)); } pow(e) { const r = Xt(e); - return r.isNeg() && xs("negative-power", "pow"), Ri(Xt(this).pow(r)); + return r.isNeg() && xs("negative-power", "pow"), ki(Xt(this).pow(r)); } and(e) { const r = Xt(e); - return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "and"), Ri(Xt(this).and(r)); + return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "and"), ki(Xt(this).and(r)); } or(e) { const r = Xt(e); - return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "or"), Ri(Xt(this).or(r)); + return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "or"), ki(Xt(this).or(r)); } xor(e) { const r = Xt(e); - return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "xor"), Ri(Xt(this).xor(r)); + return (this.isNegative() || r.isNeg()) && xs("unbound-bitwise-result", "xor"), ki(Xt(this).xor(r)); } mask(e) { - return (this.isNegative() || e < 0) && xs("negative-width", "mask"), Ri(Xt(this).maskn(e)); + return (this.isNegative() || e < 0) && xs("negative-width", "mask"), ki(Xt(this).maskn(e)); } shl(e) { - return (this.isNegative() || e < 0) && xs("negative-width", "shl"), Ri(Xt(this).shln(e)); + return (this.isNegative() || e < 0) && xs("negative-width", "shl"), ki(Xt(this).shln(e)); } shr(e) { - return (this.isNegative() || e < 0) && xs("negative-width", "shr"), Ri(Xt(this).shrn(e)); + return (this.isNegative() || e < 0) && xs("negative-width", "shr"), ki(Xt(this).shrn(e)); } eq(e) { return Xt(this).eq(Xt(e)); @@ -78532,10 +78563,10 @@ ${gz(e, r)}`); return BigInt(this.toString()); } catch { } - return Ra.throwError("this platform does not support BigInt", Qn.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); + return Pa.throwError("this platform does not support BigInt", Qn.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); } toString() { - return arguments.length > 0 && (arguments[0] === 10 ? uM || (uM = true, Ra.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Ra.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", Qn.errors.UNEXPECTED_ARGUMENT, {}) : Ra.throwError("BigNumber.toString does not accept parameters", Qn.errors.UNEXPECTED_ARGUMENT, {})), Xt(this).toString(10); + return arguments.length > 0 && (arguments[0] === 10 ? cM || (cM = true, Pa.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : arguments[0] === 16 ? Pa.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", Qn.errors.UNEXPECTED_ARGUMENT, {}) : Pa.throwError("BigNumber.toString does not accept parameters", Qn.errors.UNEXPECTED_ARGUMENT, {})), Xt(this).toString(10); } toHexString() { return this._hex; @@ -78544,83 +78575,83 @@ ${gz(e, r)}`); return { type: "BigNumber", hex: this.toHexString() }; } static from(e) { - if (e instanceof $s) + if (e instanceof Qs) return e; if (typeof e == "string") - return e.match(/^-?0x[0-9a-f]+$/i) ? new $s(Yb, Fd(e)) : e.match(/^-?[0-9]+$/) ? new $s(Yb, Fd(new Dm(e))) : Ra.throwArgumentError("invalid BigNumber string", "value", e); + return e.match(/^-?0x[0-9a-f]+$/i) ? new Qs(Xb, zd(e)) : e.match(/^-?[0-9]+$/) ? new Qs(Xb, zd(new Lm(e))) : Pa.throwArgumentError("invalid BigNumber string", "value", e); if (typeof e == "number") - return e % 1 && xs("underflow", "BigNumber.from", e), (e >= cM || e <= -cM) && xs("overflow", "BigNumber.from", e), $s.from(String(e)); + return e % 1 && xs("underflow", "BigNumber.from", e), (e >= aM || e <= -aM) && xs("overflow", "BigNumber.from", e), Qs.from(String(e)); const r = e; if (typeof r == "bigint") - return $s.from(r.toString()); - if (ih(r)) - return $s.from(wi(r)); + return Qs.from(r.toString()); + if (nh(r)) + return Qs.from(wi(r)); if (r) if (r.toHexString) { const n = r.toHexString(); if (typeof n == "string") - return $s.from(n); + return Qs.from(n); } else { let n = r._hex; if (n == null && r.type === "BigNumber" && (n = r.hex), typeof n == "string" && (cs(n) || n[0] === "-" && cs(n.substring(1)))) - return $s.from(n); + return Qs.from(n); } - return Ra.throwArgumentError("invalid BigNumber value", "value", e); + return Pa.throwArgumentError("invalid BigNumber value", "value", e); } static isBigNumber(e) { return !!(e && e._isBigNumber); } }; - function Fd(t) { + function zd(t) { if (typeof t != "string") - return Fd(t.toString(16)); + return zd(t.toString(16)); if (t[0] === "-") - return t = t.substring(1), t[0] === "-" && Ra.throwArgumentError("invalid hex", "value", t), t = Fd(t), t === "0x00" ? t : "-" + t; + return t = t.substring(1), t[0] === "-" && Pa.throwArgumentError("invalid hex", "value", t), t = zd(t), t === "0x00" ? t : "-" + t; if (t.substring(0, 2) !== "0x" && (t = "0x" + t), t === "0x") return "0x00"; for (t.length % 2 && (t = "0x0" + t.substring(2)); t.length > 4 && t.substring(0, 4) === "0x00"; ) t = "0x" + t.substring(4); return t; } - function Ri(t) { - return Ti.from(Fd(t)); + function ki(t) { + return Ai.from(zd(t)); } function Xt(t) { - const e = Ti.from(t).toHexString(); - return e[0] === "-" ? new Dm("-" + e.substring(3), 16) : new Dm(e.substring(2), 16); + const e = Ai.from(t).toHexString(); + return e[0] === "-" ? new Lm("-" + e.substring(3), 16) : new Lm(e.substring(2), 16); } function xs(t, e, r) { const n = { fault: t, operation: e }; - return r != null && (n.value = r), Ra.throwError(t, Qn.errors.NUMERIC_FAULT, n); + return r != null && (n.value = r), Pa.throwError(t, Qn.errors.NUMERIC_FAULT, n); } - function mbe(t) { - return new Dm(t, 36).toString(16); + function bbe(t) { + return new Lm(t, 36).toString(16); } - var xi = new Qn(TB); - var sd = {}; - var NB = Ti.from(0); - var IB = Ti.from(-1); - function OB(t, e, r, n) { + var xi = new Qn(NB); + var id = {}; + var IB = Ai.from(0); + var OB = Ai.from(-1); + function PB(t, e, r, n) { const i = { fault: e, operation: r }; return n !== void 0 && (i.value = n), xi.throwError(t, Qn.errors.NUMERIC_FAULT, i); } - var od = "0"; - for (; od.length < 256; ) - od += od; - function e9(t) { + var sd = "0"; + for (; sd.length < 256; ) + sd += sd; + function $x(t) { if (typeof t != "number") try { - t = Ti.from(t).toNumber(); + t = Ai.from(t).toNumber(); } catch { } - return typeof t == "number" && t >= 0 && t <= 256 && !(t % 1) ? "1" + od.substring(0, t) : xi.throwArgumentError("invalid decimal size", "decimals", t); + return typeof t == "number" && t >= 0 && t <= 256 && !(t % 1) ? "1" + sd.substring(0, t) : xi.throwArgumentError("invalid decimal size", "decimals", t); } - function Zb(t, e) { + function Yb(t, e) { e == null && (e = 0); - const r = e9(e); - t = Ti.from(t); - const n = t.lt(NB); - n && (t = t.mul(IB)); + const r = $x(e); + t = Ai.from(t); + const n = t.lt(IB); + n && (t = t.mul(OB)); let i = t.mod(r).toString(); for (; i.length < r.length - 1; ) i = "0" + i; @@ -78628,9 +78659,9 @@ ${gz(e, r)}`); const s = t.div(r).toString(); return r.length === 1 ? t = s : t = s + "." + i, n && (t = "-" + t), t; } - function _a(t, e) { + function va(t, e) { e == null && (e = 0); - const r = e9(e); + const r = $x(e); (typeof t != "string" || !t.match(/^-?[0-9.]+$/)) && xi.throwArgumentError("invalid decimal value", "value", t); const n = t.substring(0, 1) === "-"; n && (t = t.substring(1)), t === "." && xi.throwArgumentError("missing value", "value", t); @@ -78639,18 +78670,18 @@ ${gz(e, r)}`); let s = i[0], o = i[1]; for (s || (s = "0"), o || (o = "0"); o[o.length - 1] === "0"; ) o = o.substring(0, o.length - 1); - for (o.length > r.length - 1 && OB("fractional component exceeds decimals", "underflow", "parseFixed"), o === "" && (o = "0"); o.length < r.length - 1; ) + for (o.length > r.length - 1 && PB("fractional component exceeds decimals", "underflow", "parseFixed"), o === "" && (o = "0"); o.length < r.length - 1; ) o += "0"; - const a = Ti.from(s), c = Ti.from(o); + const a = Ai.from(s), c = Ai.from(o); let u = a.mul(r).add(c); - return n && (u = u.mul(IB)), u; + return n && (u = u.mul(OB)), u; } - var Jb = class iv { + var Zb = class nv { constructor(e, r, n, i) { - e !== sd && xi.throwError("cannot use FixedFormat constructor; use FixedFormat.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.signed = r, this.width = n, this.decimals = i, this.name = (r ? "" : "u") + "fixed" + String(n) + "x" + String(i), this._multiplier = e9(i), Object.freeze(this); + e !== id && xi.throwError("cannot use FixedFormat constructor; use FixedFormat.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.signed = r, this.width = n, this.decimals = i, this.name = (r ? "" : "u") + "fixed" + String(n) + "x" + String(i), this._multiplier = $x(i), Object.freeze(this); } static from(e) { - if (e instanceof iv) + if (e instanceof nv) return e; typeof e == "number" && (e = `fixed128x${e}`); let r = true, n = 128, i = 18; @@ -78666,34 +78697,34 @@ ${gz(e, r)}`); const s = (o, a, c) => e[o] == null ? c : (typeof e[o] !== a && xi.throwArgumentError("invalid fixed format (" + o + " not " + a + ")", "format." + o, e[o]), e[o]); r = s("signed", "boolean", r), n = s("width", "number", n), i = s("decimals", "number", i); } - return n % 8 && xi.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", n), i > 80 && xi.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", i), new iv(sd, r, n, i); + return n % 8 && xi.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", n), i > 80 && xi.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", i), new nv(id, r, n, i); } }; - var PB = class yi { + var kB = class yi { constructor(e, r, n, i) { - e !== sd && xi.throwError("cannot use FixedNumber constructor; use FixedNumber.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.format = i, this._hex = r, this._value = n, this._isFixedNumber = true, Object.freeze(this); + e !== id && xi.throwError("cannot use FixedNumber constructor; use FixedNumber.from", Qn.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.format = i, this._hex = r, this._value = n, this._isFixedNumber = true, Object.freeze(this); } _checkFormat(e) { this.format.name !== e.format.name && xi.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", e); } addUnsafe(e) { this._checkFormat(e); - const r = _a(this._value, this.format.decimals), n = _a(e._value, e.format.decimals); + const r = va(this._value, this.format.decimals), n = va(e._value, e.format.decimals); return yi.fromValue(r.add(n), this.format.decimals, this.format); } subUnsafe(e) { this._checkFormat(e); - const r = _a(this._value, this.format.decimals), n = _a(e._value, e.format.decimals); + const r = va(this._value, this.format.decimals), n = va(e._value, e.format.decimals); return yi.fromValue(r.sub(n), this.format.decimals, this.format); } mulUnsafe(e) { this._checkFormat(e); - const r = _a(this._value, this.format.decimals), n = _a(e._value, e.format.decimals); + const r = va(this._value, this.format.decimals), n = va(e._value, e.format.decimals); return yi.fromValue(r.mul(n).div(this.format._multiplier), this.format.decimals, this.format); } divUnsafe(e) { this._checkFormat(e); - const r = _a(this._value, this.format.decimals), n = _a(e._value, e.format.decimals); + const r = va(this._value, this.format.decimals), n = va(e._value, e.format.decimals); return yi.fromValue(r.mul(this.format._multiplier).div(n), this.format.decimals, this.format); } floor() { @@ -78701,21 +78732,21 @@ ${gz(e, r)}`); e.length === 1 && e.push("0"); let r = yi.from(e[0], this.format); const n = !e[1].match(/^(0*)$/); - return this.isNegative() && n && (r = r.subUnsafe(lM.toFormat(r.format))), r; + return this.isNegative() && n && (r = r.subUnsafe(uM.toFormat(r.format))), r; } ceiling() { const e = this.toString().split("."); e.length === 1 && e.push("0"); let r = yi.from(e[0], this.format); const n = !e[1].match(/^(0*)$/); - return !this.isNegative() && n && (r = r.addUnsafe(lM.toFormat(r.format))), r; + return !this.isNegative() && n && (r = r.addUnsafe(uM.toFormat(r.format))), r; } round(e) { e == null && (e = 0); const r = this.toString().split("."); if (r.length === 1 && r.push("0"), (e < 0 || e > 80 || e % 1) && xi.throwArgumentError("invalid decimal count", "decimals", e), r[1].length <= e) return this; - const n = yi.from("1" + od.substring(0, e), this.format), i = gbe.toFormat(this.format); + const n = yi.from("1" + sd.substring(0, e), this.format), i = wbe.toFormat(this.format); return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n); } isZero() { @@ -78731,8 +78762,8 @@ ${gz(e, r)}`); if (e == null) return this._hex; e % 8 && xi.throwArgumentError("invalid byte width", "width", e); - const r = Ti.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(); - return ta(r, e / 8); + const r = Ai.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(); + return ea(r, e / 8); } toUnsafeFloat() { return parseFloat(this.toString()); @@ -78741,31 +78772,31 @@ ${gz(e, r)}`); return yi.fromString(this._value, e); } static fromValue(e, r, n) { - return n == null && r != null && !pbe(r) && (n = r, r = null), r == null && (r = 0), n == null && (n = "fixed"), yi.fromString(Zb(e, r), Jb.from(n)); + return n == null && r != null && !ybe(r) && (n = r, r = null), r == null && (r = 0), n == null && (n = "fixed"), yi.fromString(Yb(e, r), Zb.from(n)); } static fromString(e, r) { r == null && (r = "fixed"); - const n = Jb.from(r), i = _a(e, n.decimals); - !n.signed && i.lt(NB) && OB("unsigned value cannot be negative", "overflow", "value", e); + const n = Zb.from(r), i = va(e, n.decimals); + !n.signed && i.lt(IB) && PB("unsigned value cannot be negative", "overflow", "value", e); let s = null; - n.signed ? s = i.toTwos(n.width).toHexString() : (s = i.toHexString(), s = ta(s, n.width / 8)); - const o = Zb(i, n.decimals); - return new yi(sd, s, o, n); + n.signed ? s = i.toTwos(n.width).toHexString() : (s = i.toHexString(), s = ea(s, n.width / 8)); + const o = Yb(i, n.decimals); + return new yi(id, s, o, n); } static fromBytes(e, r) { r == null && (r = "fixed"); - const n = Jb.from(r); - if (Qr(e).length > n.width / 8) + const n = Zb.from(r); + if (Jr(e).length > n.width / 8) throw new Error("overflow"); - let i = Ti.from(e); + let i = Ai.from(e); n.signed && (i = i.fromTwos(n.width)); - const s = i.toTwos((n.signed ? 0 : 1) + n.width).toHexString(), o = Zb(i, n.decimals); - return new yi(sd, s, o, n); + const s = i.toTwos((n.signed ? 0 : 1) + n.width).toHexString(), o = Yb(i, n.decimals); + return new yi(id, s, o, n); } static from(e, r) { if (typeof e == "string") return yi.fromString(e, r); - if (ih(e)) + if (nh(e)) return yi.fromBytes(e, r); try { return yi.fromValue(e, 0, r); @@ -78779,20 +78810,20 @@ ${gz(e, r)}`); return !!(e && e._isFixedNumber); } }; - var lM = PB.from(1); - var gbe = PB.from("0.5"); - var ybe = "strings/5.7.0"; - var bbe = new Qn(ybe); - var Lm; + var uM = kB.from(1); + var wbe = kB.from("0.5"); + var vbe = "strings/5.7.0"; + var xbe = new Qn(vbe); + var Bm; (function(t) { t.current = "", t.NFC = "NFC", t.NFD = "NFD", t.NFKC = "NFKC", t.NFKD = "NFKD"; - })(Lm || (Lm = {})); - var fM; + })(Bm || (Bm = {})); + var lM; (function(t) { t.UNEXPECTED_CONTINUE = "unexpected continuation byte", t.BAD_PREFIX = "bad codepoint prefix", t.OVERRUN = "string overrun", t.MISSING_CONTINUE = "missing continuation byte", t.OUT_OF_RANGE = "out of UTF-8 range", t.UTF16_SURROGATE = "UTF-16 surrogate", t.OVERLONG = "overlong representation"; - })(fM || (fM = {})); - function Qb(t, e = Lm.current) { - e != Lm.current && (bbe.checkNormalize(), t = t.normalize(e)); + })(lM || (lM = {})); + function Jb(t, e = Bm.current) { + e != Bm.current && (xbe.checkNormalize(), t = t.normalize(e)); let r = []; for (let n = 0; n < t.length; n++) { const i = t.charCodeAt(n); @@ -78810,9 +78841,9 @@ ${gz(e, r)}`); } else r.push(i >> 12 | 224), r.push(i >> 6 & 63 | 128), r.push(i & 63 | 128); } - return Qr(r); + return Jr(r); } - function wbe(t) { + function _be(t) { if (t.length % 4 !== 0) throw new Error("bad data"); let e = []; @@ -78820,7 +78851,7 @@ ${gz(e, r)}`); e.push(parseInt(t.substring(r, r + 4), 16)); return e; } - function $b(t, e) { + function Qb(t, e) { e || (e = function(i) { return [parseInt(i, 16)]; }); @@ -78830,7 +78861,7 @@ ${gz(e, r)}`); r += parseInt(s[0], 16), n[r] = e(s[1]); }), n; } - function hM(t) { + function fM(t) { let e = 0; return t.split(",").map((r) => { let n = r.split("-"); @@ -78839,15 +78870,15 @@ ${gz(e, r)}`); return e = parseInt(n[1], 16), { l: i, h: e }; }); } - hM("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"), "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t) => parseInt(t, 16)), $b("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"), $b("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"), $b("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", wbe), hM("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001"); - function vbe(t) { + fM("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"), "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t) => parseInt(t, 16)), Qb("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"), Qb("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"), Qb("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", _be), fM("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001"); + function Ebe(t) { t = atob(t); const e = []; for (let r = 0; r < t.length; r++) e.push(t.charCodeAt(r)); - return Qr(e); + return Jr(e); } - function kB(t, e) { + function RB(t, e) { e == null && (e = 1); const r = [], n = r.forEach, i = function(s, o) { n.call(s, function(a) { @@ -78856,7 +78887,7 @@ ${gz(e, r)}`); }; return i(t, e), r; } - function xbe(t) { + function Sbe(t) { const e = {}; for (let r = 0; r < t.length; r++) { const n = t[r]; @@ -78864,7 +78895,7 @@ ${gz(e, r)}`); } return e; } - function _be(t) { + function Mbe(t) { let e = 0; function r() { return t[e++] << 8 | t[e++]; @@ -78913,58 +78944,58 @@ ${gz(e, r)}`); } }); } - function Ebe(t) { + function Abe(t) { let e = 0; return () => t[e++]; } - function Sbe(t) { - return Ebe(_be(t)); + function Tbe(t) { + return Abe(Mbe(t)); } - function Mbe(t) { + function Nbe(t) { return t & 1 ? ~t >> 1 : t >> 1; } - function Abe(t, e) { + function Ibe(t, e) { let r = Array(t); for (let n = 0; n < t; n++) r[n] = 1 + e(); return r; } - function dM(t, e) { + function hM(t, e) { let r = Array(t); for (let n = 0, i = -1; n < t; n++) r[n] = i += 1 + e(); return r; } - function Tbe(t, e) { + function Obe(t, e) { let r = Array(t); for (let n = 0, i = 0; n < t; n++) - r[n] = i += Mbe(e()); + r[n] = i += Nbe(e()); return r; } - function Bm(t, e) { - let r = dM(t(), t), n = t(), i = dM(n, t), s = Abe(n, t); + function Um(t, e) { + let r = hM(t(), t), n = t(), i = hM(n, t), s = Ibe(n, t); for (let o = 0; o < n; o++) for (let a = 0; a < s[o]; a++) r.push(i[o] + a); return e ? r.map((o) => e[o]) : r; } - function Nbe(t) { + function Pbe(t) { let e = []; for (; ; ) { let r = t(); if (r == 0) break; - e.push(Obe(r, t)); + e.push(Rbe(r, t)); } for (; ; ) { let r = t() - 1; if (r < 0) break; - e.push(Pbe(r, t)); + e.push(Cbe(r, t)); } - return xbe(kB(e)); + return Sbe(RB(e)); } - function Ibe(t) { + function kbe(t) { let e = []; for (; ; ) { let r = t(); @@ -78974,15 +79005,15 @@ ${gz(e, r)}`); } return e; } - function RB(t, e, r) { + function CB(t, e, r) { let n = Array(t).fill(void 0).map(() => []); for (let i = 0; i < e; i++) - Tbe(t, r).forEach((s, o) => n[o].push(s)); + Obe(t, r).forEach((s, o) => n[o].push(s)); return n; } - function Obe(t, e) { - let r = 1 + e(), n = e(), i = Ibe(e), s = RB(i.length, 1 + t, e); - return kB(s.map((o, a) => { + function Rbe(t, e) { + let r = 1 + e(), n = e(), i = kbe(e), s = CB(i.length, 1 + t, e); + return RB(s.map((o, a) => { const c = o[0], u = o.slice(1); return Array(i[a]).fill(void 0).map((f, p) => { let b = p * n; @@ -78990,17 +79021,17 @@ ${gz(e, r)}`); }); })); } - function Pbe(t, e) { + function Cbe(t, e) { let r = 1 + e(); - return RB(r, 1 + t, e).map((n) => [n[0], n.slice(1)]); + return CB(r, 1 + t, e).map((n) => [n[0], n.slice(1)]); } - function kbe(t) { - let e = Bm(t).sort((n, i) => n - i); + function Dbe(t) { + let e = Um(t).sort((n, i) => n - i); return r(); function r() { let n = []; for (; ; ) { - let u = Bm(t, e); + let u = Um(t, e); if (u.length == 0) break; n.push({ set: new Set(u), node: r() }); @@ -79014,45 +79045,45 @@ ${gz(e, r)}`); return { branches: n, valid: s, fe0f: o, save: a, check: c }; } } - function Rbe() { - return Sbe(vbe("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoA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9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")); } - var Mp = Rbe(); - new Set(Bm(Mp)), new Set(Bm(Mp)), Nbe(Mp), kbe(Mp); - var Cbe = new Uint8Array(32); - Cbe.fill(0); - var Dbe = `Ethereum Signed Message: + var Ap = Lbe(); + new Set(Um(Ap)), new Set(Um(Ap)), Pbe(Ap), Dbe(Ap); + var Bbe = new Uint8Array(32); + Bbe.fill(0); + var Ube = `Ethereum Signed Message: `; - function CB(t) { - return typeof t == "string" && (t = Qb(t)), $x(cbe([Qb(Dbe), Qb(String(t.length)), t])); + function DB(t) { + return typeof t == "string" && (t = Jb(t)), Qx(fbe([Jb(Ube), Jb(String(t.length)), t])); } - var Lbe = "address/5.7.0"; - var Xh = new Qn(Lbe); - function pM(t) { - cs(t, 20) || Xh.throwArgumentError("invalid address", "address", t), t = t.toLowerCase(); + var jbe = "address/5.7.0"; + var Kh = new Qn(jbe); + function dM(t) { + cs(t, 20) || Kh.throwArgumentError("invalid address", "address", t), t = t.toLowerCase(); const e = t.substring(2).split(""), r = new Uint8Array(40); for (let i = 0; i < 40; i++) r[i] = e[i].charCodeAt(0); - const n = Qr($x(r)); + const n = Jr(Qx(r)); for (let i = 0; i < 40; i += 2) n[i >> 1] >> 4 >= 8 && (e[i] = e[i].toUpperCase()), (n[i >> 1] & 15) >= 8 && (e[i + 1] = e[i + 1].toUpperCase()); return "0x" + e.join(""); } - var Bbe = 9007199254740991; - function Ube(t) { + var Vbe = 9007199254740991; + function zbe(t) { return Math.log10 ? Math.log10(t) : Math.log(t) / Math.LN10; } - var t9 = {}; + var e9 = {}; for (let t = 0; t < 10; t++) - t9[String(t)] = String(t); + e9[String(t)] = String(t); for (let t = 0; t < 26; t++) - t9[String.fromCharCode(65 + t)] = String(10 + t); - var mM = Math.floor(Ube(Bbe)); - function jbe(t) { + e9[String.fromCharCode(65 + t)] = String(10 + t); + var pM = Math.floor(zbe(Vbe)); + function Fbe(t) { t = t.toUpperCase(), t = t.substring(4) + t.substring(0, 2) + "00"; - let e = t.split("").map((n) => t9[n]).join(""); - for (; e.length >= mM; ) { - let n = e.substring(0, mM); + let e = t.split("").map((n) => e9[n]).join(""); + for (; e.length >= pM; ) { + let n = e.substring(0, pM); e = parseInt(n, 10) % 97 + e.substring(n.length); } let r = String(98 - parseInt(e, 10) % 97); @@ -79060,41 +79091,41 @@ ${gz(e, r)}`); r = "0" + r; return r; } - function Vbe(t) { + function Hbe(t) { let e = null; - if (typeof t != "string" && Xh.throwArgumentError("invalid address", "address", t), t.match(/^(0x)?[0-9a-fA-F]{40}$/)) - t.substring(0, 2) !== "0x" && (t = "0x" + t), e = pM(t), t.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && e !== t && Xh.throwArgumentError("bad address checksum", "address", t); + if (typeof t != "string" && Kh.throwArgumentError("invalid address", "address", t), t.match(/^(0x)?[0-9a-fA-F]{40}$/)) + t.substring(0, 2) !== "0x" && (t = "0x" + t), e = dM(t), t.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && e !== t && Kh.throwArgumentError("bad address checksum", "address", t); else if (t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { - for (t.substring(2, 4) !== jbe(t) && Xh.throwArgumentError("bad icap checksum", "address", t), e = mbe(t.substring(4)); e.length < 40; ) + for (t.substring(2, 4) !== Fbe(t) && Kh.throwArgumentError("bad icap checksum", "address", t), e = bbe(t.substring(4)); e.length < 40; ) e = "0" + e; - e = pM("0x" + e); + e = dM("0x" + e); } else - Xh.throwArgumentError("invalid address", "address", t); + Kh.throwArgumentError("invalid address", "address", t); return e; } - function Rh(t, e, r) { + function kh(t, e, r) { Object.defineProperty(t, e, { enumerable: true, value: r, writable: false }); } - var zbe = new Uint8Array(32); - zbe.fill(0), Ti.from(-1); - var Fbe = Ti.from(0); - var Hbe = Ti.from(1); - Ti.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), ta(Hbe.toHexString(), 32), ta(Fbe.toHexString(), 32); - var Do = {}; - var Zt = {}; - var R0 = DB; - function DB(t, e) { + var qbe = new Uint8Array(32); + qbe.fill(0), Ai.from(-1); + var Wbe = Ai.from(0); + var Gbe = Ai.from(1); + Ai.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), ea(Gbe.toHexString(), 32), ea(Wbe.toHexString(), 32); + var Co = {}; + var Yt = {}; + var R0 = LB; + function LB(t, e) { if (!t) throw new Error(e || "Assertion failed"); } - DB.equal = function(t, e, r) { + LB.equal = function(t, e, r) { if (t != e) throw new Error(r || "Assertion failed: " + t + " != " + e); }; - var sv = { exports: {} }; - typeof Object.create == "function" ? sv.exports = function(t, e) { + var iv = { exports: {} }; + typeof Object.create == "function" ? iv.exports = function(t, e) { e && (t.super_ = e, t.prototype = Object.create(e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } })); - } : sv.exports = function(t, e) { + } : iv.exports = function(t, e) { if (e) { t.super_ = e; var r = function() { @@ -79102,13 +79133,13 @@ ${gz(e, r)}`); r.prototype = e.prototype, t.prototype = new r(), t.prototype.constructor = t; } }; - var qbe = R0; - var Wbe = sv.exports; - Zt.inherits = Wbe; - function Gbe(t, e) { + var Kbe = R0; + var Xbe = iv.exports; + Yt.inherits = Xbe; + function Ybe(t, e) { return (t.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= t.length ? false : (t.charCodeAt(e + 1) & 64512) === 56320; } - function Kbe(t, e) { + function Zbe(t, e) { if (Array.isArray(t)) return t.slice(); if (!t) @@ -79122,159 +79153,159 @@ ${gz(e, r)}`); } else for (var n = 0, i = 0; i < t.length; i++) { var s = t.charCodeAt(i); - s < 128 ? r[n++] = s : s < 2048 ? (r[n++] = s >> 6 | 192, r[n++] = s & 63 | 128) : Gbe(t, i) ? (s = 65536 + ((s & 1023) << 10) + (t.charCodeAt(++i) & 1023), r[n++] = s >> 18 | 240, r[n++] = s >> 12 & 63 | 128, r[n++] = s >> 6 & 63 | 128, r[n++] = s & 63 | 128) : (r[n++] = s >> 12 | 224, r[n++] = s >> 6 & 63 | 128, r[n++] = s & 63 | 128); + s < 128 ? r[n++] = s : s < 2048 ? (r[n++] = s >> 6 | 192, r[n++] = s & 63 | 128) : Ybe(t, i) ? (s = 65536 + ((s & 1023) << 10) + (t.charCodeAt(++i) & 1023), r[n++] = s >> 18 | 240, r[n++] = s >> 12 & 63 | 128, r[n++] = s >> 6 & 63 | 128, r[n++] = s & 63 | 128) : (r[n++] = s >> 12 | 224, r[n++] = s >> 6 & 63 | 128, r[n++] = s & 63 | 128); } else for (i = 0; i < t.length; i++) r[i] = t[i] | 0; return r; } - Zt.toArray = Kbe; - function Xbe(t) { + Yt.toArray = Zbe; + function Jbe(t) { for (var e = "", r = 0; r < t.length; r++) - e += BB(t[r].toString(16)); + e += UB(t[r].toString(16)); return e; } - Zt.toHex = Xbe; - function LB(t) { + Yt.toHex = Jbe; + function BB(t) { var e = t >>> 24 | t >>> 8 & 65280 | t << 8 & 16711680 | (t & 255) << 24; return e >>> 0; } - Zt.htonl = LB; - function Ybe(t, e) { + Yt.htonl = BB; + function Qbe(t, e) { for (var r = "", n = 0; n < t.length; n++) { var i = t[n]; - e === "little" && (i = LB(i)), r += UB(i.toString(16)); + e === "little" && (i = BB(i)), r += jB(i.toString(16)); } return r; } - Zt.toHex32 = Ybe; - function BB(t) { + Yt.toHex32 = Qbe; + function UB(t) { return t.length === 1 ? "0" + t : t; } - Zt.zero2 = BB; - function UB(t) { + Yt.zero2 = UB; + function jB(t) { return t.length === 7 ? "0" + t : t.length === 6 ? "00" + t : t.length === 5 ? "000" + t : t.length === 4 ? "0000" + t : t.length === 3 ? "00000" + t : t.length === 2 ? "000000" + t : t.length === 1 ? "0000000" + t : t; } - Zt.zero8 = UB; - function Zbe(t, e, r, n) { + Yt.zero8 = jB; + function $be(t, e, r, n) { var i = r - e; - qbe(i % 4 === 0); + Kbe(i % 4 === 0); for (var s = new Array(i / 4), o = 0, a = e; o < s.length; o++, a += 4) { var c; n === "big" ? c = t[a] << 24 | t[a + 1] << 16 | t[a + 2] << 8 | t[a + 3] : c = t[a + 3] << 24 | t[a + 2] << 16 | t[a + 1] << 8 | t[a], s[o] = c >>> 0; } return s; } - Zt.join32 = Zbe; - function Jbe(t, e) { + Yt.join32 = $be; + function e3e(t, e) { for (var r = new Array(t.length * 4), n = 0, i = 0; n < t.length; n++, i += 4) { var s = t[n]; e === "big" ? (r[i] = s >>> 24, r[i + 1] = s >>> 16 & 255, r[i + 2] = s >>> 8 & 255, r[i + 3] = s & 255) : (r[i + 3] = s >>> 24, r[i + 2] = s >>> 16 & 255, r[i + 1] = s >>> 8 & 255, r[i] = s & 255); } return r; } - Zt.split32 = Jbe; - function Qbe(t, e) { + Yt.split32 = e3e; + function t3e(t, e) { return t >>> e | t << 32 - e; } - Zt.rotr32 = Qbe; - function $be(t, e) { + Yt.rotr32 = t3e; + function r3e(t, e) { return t << e | t >>> 32 - e; } - Zt.rotl32 = $be; - function e3e(t, e) { + Yt.rotl32 = r3e; + function n3e(t, e) { return t + e >>> 0; } - Zt.sum32 = e3e; - function t3e(t, e, r) { + Yt.sum32 = n3e; + function i3e(t, e, r) { return t + e + r >>> 0; } - Zt.sum32_3 = t3e; - function r3e(t, e, r, n) { + Yt.sum32_3 = i3e; + function s3e(t, e, r, n) { return t + e + r + n >>> 0; } - Zt.sum32_4 = r3e; - function n3e(t, e, r, n, i) { + Yt.sum32_4 = s3e; + function o3e(t, e, r, n, i) { return t + e + r + n + i >>> 0; } - Zt.sum32_5 = n3e; - function i3e(t, e, r, n) { + Yt.sum32_5 = o3e; + function a3e(t, e, r, n) { var i = t[e], s = t[e + 1], o = n + s >>> 0, a = (o < n ? 1 : 0) + r + i; t[e] = a >>> 0, t[e + 1] = o; } - Zt.sum64 = i3e; - function s3e(t, e, r, n) { + Yt.sum64 = a3e; + function c3e(t, e, r, n) { var i = e + n >>> 0, s = (i < e ? 1 : 0) + t + r; return s >>> 0; } - Zt.sum64_hi = s3e; - function o3e(t, e, r, n) { + Yt.sum64_hi = c3e; + function u3e(t, e, r, n) { var i = e + n; return i >>> 0; } - Zt.sum64_lo = o3e; - function a3e(t, e, r, n, i, s, o, a) { + Yt.sum64_lo = u3e; + function l3e(t, e, r, n, i, s, o, a) { var c = 0, u = e; u = u + n >>> 0, c += u < e ? 1 : 0, u = u + s >>> 0, c += u < s ? 1 : 0, u = u + a >>> 0, c += u < a ? 1 : 0; var f = t + r + i + o + c; return f >>> 0; } - Zt.sum64_4_hi = a3e; - function c3e(t, e, r, n, i, s, o, a) { + Yt.sum64_4_hi = l3e; + function f3e(t, e, r, n, i, s, o, a) { var c = e + n + s + a; return c >>> 0; } - Zt.sum64_4_lo = c3e; - function u3e(t, e, r, n, i, s, o, a, c, u) { + Yt.sum64_4_lo = f3e; + function h3e(t, e, r, n, i, s, o, a, c, u) { var f = 0, p = e; p = p + n >>> 0, f += p < e ? 1 : 0, p = p + s >>> 0, f += p < s ? 1 : 0, p = p + a >>> 0, f += p < a ? 1 : 0, p = p + u >>> 0, f += p < u ? 1 : 0; var b = t + r + i + o + c + f; return b >>> 0; } - Zt.sum64_5_hi = u3e; - function l3e(t, e, r, n, i, s, o, a, c, u) { + Yt.sum64_5_hi = h3e; + function d3e(t, e, r, n, i, s, o, a, c, u) { var f = e + n + s + a + u; return f >>> 0; } - Zt.sum64_5_lo = l3e; - function f3e(t, e, r) { + Yt.sum64_5_lo = d3e; + function p3e(t, e, r) { var n = e << 32 - r | t >>> r; return n >>> 0; } - Zt.rotr64_hi = f3e; - function h3e(t, e, r) { + Yt.rotr64_hi = p3e; + function m3e(t, e, r) { var n = t << 32 - r | e >>> r; return n >>> 0; } - Zt.rotr64_lo = h3e; - function d3e(t, e, r) { + Yt.rotr64_lo = m3e; + function g3e(t, e, r) { return t >>> r; } - Zt.shr64_hi = d3e; - function p3e(t, e, r) { + Yt.shr64_hi = g3e; + function y3e(t, e, r) { var n = t << 32 - r | e >>> r; return n >>> 0; } - Zt.shr64_lo = p3e; - var sh = {}; - var gM = Zt; - var m3e = R0; - function Ap() { + Yt.shr64_lo = y3e; + var ih = {}; + var mM = Yt; + var b3e = R0; + function Tp() { this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32; } - sh.BlockHash = Ap, Ap.prototype.update = function(t, e) { - if (t = gM.toArray(t, e), this.pending ? this.pending = this.pending.concat(t) : this.pending = t, this.pendingTotal += t.length, this.pending.length >= this._delta8) { + ih.BlockHash = Tp, Tp.prototype.update = function(t, e) { + if (t = mM.toArray(t, e), this.pending ? this.pending = this.pending.concat(t) : this.pending = t, this.pendingTotal += t.length, this.pending.length >= this._delta8) { t = this.pending; var r = t.length % this._delta8; - this.pending = t.slice(t.length - r, t.length), this.pending.length === 0 && (this.pending = null), t = gM.join32(t, 0, t.length - r, this.endian); + this.pending = t.slice(t.length - r, t.length), this.pending.length === 0 && (this.pending = null), t = mM.join32(t, 0, t.length - r, this.endian); for (var n = 0; n < t.length; n += this._delta32) this._update(t, n, n + this._delta32); } return this; - }, Ap.prototype.digest = function(t) { - return this.update(this._pad()), m3e(this.pending === null), this._digest(t); - }, Ap.prototype._pad = function() { + }, Tp.prototype.digest = function(t) { + return this.update(this._pad()), b3e(this.pending === null), this._digest(t); + }, Tp.prototype._pad = function() { var t = this.pendingTotal, e = this._delta8, r = e - (t + this.padLength) % e, n = new Array(r + this.padLength); n[0] = 128; for (var i = 1; i < r; i++) @@ -79289,273 +79320,273 @@ ${gz(e, r)}`); return n; }; var of = {}; - var ma = {}; - var g3e = Zt; - var ra = g3e.rotr32; - function y3e(t, e, r, n) { + var da = {}; + var w3e = Yt; + var ta = w3e.rotr32; + function v3e(t, e, r, n) { if (t === 0) - return jB(e, r, n); + return VB(e, r, n); if (t === 1 || t === 3) - return zB(e, r, n); + return FB(e, r, n); if (t === 2) - return VB(e, r, n); + return zB(e, r, n); } - ma.ft_1 = y3e; - function jB(t, e, r) { + da.ft_1 = v3e; + function VB(t, e, r) { return t & e ^ ~t & r; } - ma.ch32 = jB; - function VB(t, e, r) { + da.ch32 = VB; + function zB(t, e, r) { return t & e ^ t & r ^ e & r; } - ma.maj32 = VB; - function zB(t, e, r) { + da.maj32 = zB; + function FB(t, e, r) { return t ^ e ^ r; } - ma.p32 = zB; - function b3e(t) { - return ra(t, 2) ^ ra(t, 13) ^ ra(t, 22); - } - ma.s0_256 = b3e; - function w3e(t) { - return ra(t, 6) ^ ra(t, 11) ^ ra(t, 25); - } - ma.s1_256 = w3e; - function v3e(t) { - return ra(t, 7) ^ ra(t, 18) ^ t >>> 3; - } - ma.g0_256 = v3e; + da.p32 = FB; function x3e(t) { - return ra(t, 17) ^ ra(t, 19) ^ t >>> 10; - } - ma.g1_256 = x3e; - var Uf = Zt; - var _3e = sh; - var E3e = ma; - var e3 = Uf.rotl32; - var Ch = Uf.sum32; - var S3e = Uf.sum32_5; - var M3e = E3e.ft_1; - var FB = _3e.BlockHash; - var A3e = [1518500249, 1859775393, 2400959708, 3395469782]; - function zo() { - if (!(this instanceof zo)) - return new zo(); - FB.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80); - } - Uf.inherits(zo, FB); - var T3e = zo; - zo.blockSize = 512, zo.outSize = 160, zo.hmacStrength = 80, zo.padLength = 64, zo.prototype._update = function(t, e) { + return ta(t, 2) ^ ta(t, 13) ^ ta(t, 22); + } + da.s0_256 = x3e; + function _3e(t) { + return ta(t, 6) ^ ta(t, 11) ^ ta(t, 25); + } + da.s1_256 = _3e; + function E3e(t) { + return ta(t, 7) ^ ta(t, 18) ^ t >>> 3; + } + da.g0_256 = E3e; + function S3e(t) { + return ta(t, 17) ^ ta(t, 19) ^ t >>> 10; + } + da.g1_256 = S3e; + var Uf = Yt; + var M3e = ih; + var A3e = da; + var $b = Uf.rotl32; + var Rh = Uf.sum32; + var T3e = Uf.sum32_5; + var N3e = A3e.ft_1; + var HB = M3e.BlockHash; + var I3e = [1518500249, 1859775393, 2400959708, 3395469782]; + function Vo() { + if (!(this instanceof Vo)) + return new Vo(); + HB.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80); + } + Uf.inherits(Vo, HB); + var O3e = Vo; + Vo.blockSize = 512, Vo.outSize = 160, Vo.hmacStrength = 80, Vo.padLength = 64, Vo.prototype._update = function(t, e) { for (var r = this.W, n = 0; n < 16; n++) r[n] = t[e + n]; for (; n < r.length; n++) - r[n] = e3(r[n - 3] ^ r[n - 8] ^ r[n - 14] ^ r[n - 16], 1); + r[n] = $b(r[n - 3] ^ r[n - 8] ^ r[n - 14] ^ r[n - 16], 1); var i = this.h[0], s = this.h[1], o = this.h[2], a = this.h[3], c = this.h[4]; for (n = 0; n < r.length; n++) { - var u = ~~(n / 20), f = S3e(e3(i, 5), M3e(u, s, o, a), c, r[n], A3e[u]); - c = a, a = o, o = e3(s, 30), s = i, i = f; + var u = ~~(n / 20), f = T3e($b(i, 5), N3e(u, s, o, a), c, r[n], I3e[u]); + c = a, a = o, o = $b(s, 30), s = i, i = f; } - this.h[0] = Ch(this.h[0], i), this.h[1] = Ch(this.h[1], s), this.h[2] = Ch(this.h[2], o), this.h[3] = Ch(this.h[3], a), this.h[4] = Ch(this.h[4], c); - }, zo.prototype._digest = function(t) { + this.h[0] = Rh(this.h[0], i), this.h[1] = Rh(this.h[1], s), this.h[2] = Rh(this.h[2], o), this.h[3] = Rh(this.h[3], a), this.h[4] = Rh(this.h[4], c); + }, Vo.prototype._digest = function(t) { return t === "hex" ? Uf.toHex32(this.h, "big") : Uf.split32(this.h, "big"); }; - var jf = Zt; - var N3e = sh; - var oh = ma; - var I3e = R0; - var Xs = jf.sum32; - var O3e = jf.sum32_4; - var P3e = jf.sum32_5; - var k3e = oh.ch32; - var R3e = oh.maj32; - var C3e = oh.s0_256; - var D3e = oh.s1_256; - var L3e = oh.g0_256; - var B3e = oh.g1_256; - var HB = N3e.BlockHash; - var U3e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; - function Fo() { - if (!(this instanceof Fo)) - return new Fo(); - HB.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = U3e, this.W = new Array(64); + var jf = Yt; + var P3e = ih; + var sh = da; + var k3e = R0; + var Ks = jf.sum32; + var R3e = jf.sum32_4; + var C3e = jf.sum32_5; + var D3e = sh.ch32; + var L3e = sh.maj32; + var B3e = sh.s0_256; + var U3e = sh.s1_256; + var j3e = sh.g0_256; + var V3e = sh.g1_256; + var qB = P3e.BlockHash; + var z3e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; + function zo() { + if (!(this instanceof zo)) + return new zo(); + qB.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = z3e, this.W = new Array(64); } - jf.inherits(Fo, HB); - var qB = Fo; - Fo.blockSize = 512, Fo.outSize = 256, Fo.hmacStrength = 192, Fo.padLength = 64, Fo.prototype._update = function(t, e) { + jf.inherits(zo, qB); + var WB = zo; + zo.blockSize = 512, zo.outSize = 256, zo.hmacStrength = 192, zo.padLength = 64, zo.prototype._update = function(t, e) { for (var r = this.W, n = 0; n < 16; n++) r[n] = t[e + n]; for (; n < r.length; n++) - r[n] = O3e(B3e(r[n - 2]), r[n - 7], L3e(r[n - 15]), r[n - 16]); + r[n] = R3e(V3e(r[n - 2]), r[n - 7], j3e(r[n - 15]), r[n - 16]); var i = this.h[0], s = this.h[1], o = this.h[2], a = this.h[3], c = this.h[4], u = this.h[5], f = this.h[6], p = this.h[7]; - for (I3e(this.k.length === r.length), n = 0; n < r.length; n++) { - var b = P3e(p, D3e(c), k3e(c, u, f), this.k[n], r[n]), E = Xs(C3e(i), R3e(i, s, o)); - p = f, f = u, u = c, c = Xs(a, b), a = o, o = s, s = i, i = Xs(b, E); + for (k3e(this.k.length === r.length), n = 0; n < r.length; n++) { + var b = C3e(p, U3e(c), D3e(c, u, f), this.k[n], r[n]), E = Ks(B3e(i), L3e(i, s, o)); + p = f, f = u, u = c, c = Ks(a, b), a = o, o = s, s = i, i = Ks(b, E); } - this.h[0] = Xs(this.h[0], i), this.h[1] = Xs(this.h[1], s), this.h[2] = Xs(this.h[2], o), this.h[3] = Xs(this.h[3], a), this.h[4] = Xs(this.h[4], c), this.h[5] = Xs(this.h[5], u), this.h[6] = Xs(this.h[6], f), this.h[7] = Xs(this.h[7], p); - }, Fo.prototype._digest = function(t) { + this.h[0] = Ks(this.h[0], i), this.h[1] = Ks(this.h[1], s), this.h[2] = Ks(this.h[2], o), this.h[3] = Ks(this.h[3], a), this.h[4] = Ks(this.h[4], c), this.h[5] = Ks(this.h[5], u), this.h[6] = Ks(this.h[6], f), this.h[7] = Ks(this.h[7], p); + }, zo.prototype._digest = function(t) { return t === "hex" ? jf.toHex32(this.h, "big") : jf.split32(this.h, "big"); }; - var ov = Zt; - var WB = qB; - function Va() { - if (!(this instanceof Va)) - return new Va(); - WB.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]; - } - ov.inherits(Va, WB); - var j3e = Va; - Va.blockSize = 512, Va.outSize = 224, Va.hmacStrength = 192, Va.padLength = 64, Va.prototype._digest = function(t) { - return t === "hex" ? ov.toHex32(this.h.slice(0, 7), "big") : ov.split32(this.h.slice(0, 7), "big"); - }; - var Wi = Zt; - var V3e = sh; - var z3e = R0; - var na = Wi.rotr64_hi; - var ia = Wi.rotr64_lo; - var GB = Wi.shr64_hi; - var KB = Wi.shr64_lo; - var Nc = Wi.sum64; - var t3 = Wi.sum64_hi; - var r3 = Wi.sum64_lo; - var F3e = Wi.sum64_4_hi; - var H3e = Wi.sum64_4_lo; - var q3e = Wi.sum64_5_hi; - var W3e = Wi.sum64_5_lo; - var XB = V3e.BlockHash; - var G3e = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591]; - function oo() { - if (!(this instanceof oo)) - return new oo(); - XB.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = G3e, this.W = new Array(160); - } - Wi.inherits(oo, XB); - var YB = oo; - oo.blockSize = 1024, oo.outSize = 512, oo.hmacStrength = 192, oo.padLength = 128, oo.prototype._prepareBlock = function(t, e) { + var sv = Yt; + var GB = WB; + function Ua() { + if (!(this instanceof Ua)) + return new Ua(); + GB.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]; + } + sv.inherits(Ua, GB); + var F3e = Ua; + Ua.blockSize = 512, Ua.outSize = 224, Ua.hmacStrength = 192, Ua.padLength = 64, Ua.prototype._digest = function(t) { + return t === "hex" ? sv.toHex32(this.h.slice(0, 7), "big") : sv.split32(this.h.slice(0, 7), "big"); + }; + var Wi = Yt; + var H3e = ih; + var q3e = R0; + var ra = Wi.rotr64_hi; + var na = Wi.rotr64_lo; + var KB = Wi.shr64_hi; + var XB = Wi.shr64_lo; + var Ac = Wi.sum64; + var e3 = Wi.sum64_hi; + var t3 = Wi.sum64_lo; + var W3e = Wi.sum64_4_hi; + var G3e = Wi.sum64_4_lo; + var K3e = Wi.sum64_5_hi; + var X3e = Wi.sum64_5_lo; + var YB = H3e.BlockHash; + var Y3e = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591]; + function so() { + if (!(this instanceof so)) + return new so(); + YB.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = Y3e, this.W = new Array(160); + } + Wi.inherits(so, YB); + var ZB = so; + so.blockSize = 1024, so.outSize = 512, so.hmacStrength = 192, so.padLength = 128, so.prototype._prepareBlock = function(t, e) { for (var r = this.W, n = 0; n < 32; n++) r[n] = t[e + n]; for (; n < r.length; n += 2) { - var i = nwe(r[n - 4], r[n - 3]), s = iwe(r[n - 4], r[n - 3]), o = r[n - 14], a = r[n - 13], c = twe(r[n - 30], r[n - 29]), u = rwe(r[n - 30], r[n - 29]), f = r[n - 32], p = r[n - 31]; - r[n] = F3e(i, s, o, a, c, u, f, p), r[n + 1] = H3e(i, s, o, a, c, u, f, p); + var i = owe(r[n - 4], r[n - 3]), s = awe(r[n - 4], r[n - 3]), o = r[n - 14], a = r[n - 13], c = iwe(r[n - 30], r[n - 29]), u = swe(r[n - 30], r[n - 29]), f = r[n - 32], p = r[n - 31]; + r[n] = W3e(i, s, o, a, c, u, f, p), r[n + 1] = G3e(i, s, o, a, c, u, f, p); } - }, oo.prototype._update = function(t, e) { + }, so.prototype._update = function(t, e) { this._prepareBlock(t, e); var r = this.W, n = this.h[0], i = this.h[1], s = this.h[2], o = this.h[3], a = this.h[4], c = this.h[5], u = this.h[6], f = this.h[7], p = this.h[8], b = this.h[9], E = this.h[10], _ = this.h[11], N = this.h[12], k = this.h[13], F = this.h[14], L = this.h[15]; - z3e(this.k.length === r.length); + q3e(this.k.length === r.length); for (var D = 0; D < r.length; D += 2) { - var q = F, W = L, z = $3e(p, b), T = ewe(p, b), I = K3e(p, b, E, _, N), H = X3e(p, b, E, _, N, k), X = this.k[D], V = this.k[D + 1], S = r[D], d = r[D + 1], l = q3e(q, W, z, T, I, H, X, V, S, d), h = W3e(q, W, z, T, I, H, X, V, S, d); - q = J3e(n, i), W = Q3e(n, i), z = Y3e(n, i, s, o, a), T = Z3e(n, i, s, o, a, c); - var y = t3(q, W, z, T), x = r3(q, W, z, T); - F = N, L = k, N = E, k = _, E = p, _ = b, p = t3(u, f, l, h), b = r3(f, f, l, h), u = a, f = c, a = s, c = o, s = n, o = i, n = t3(l, h, y, x), i = r3(l, h, y, x); + var q = F, W = L, z = rwe(p, b), T = nwe(p, b), I = Z3e(p, b, E, _, N), H = J3e(p, b, E, _, N, k), X = this.k[D], V = this.k[D + 1], S = r[D], d = r[D + 1], l = K3e(q, W, z, T, I, H, X, V, S, d), h = X3e(q, W, z, T, I, H, X, V, S, d); + q = ewe(n, i), W = twe(n, i), z = Q3e(n, i, s, o, a), T = $3e(n, i, s, o, a, c); + var y = e3(q, W, z, T), x = t3(q, W, z, T); + F = N, L = k, N = E, k = _, E = p, _ = b, p = e3(u, f, l, h), b = t3(f, f, l, h), u = a, f = c, a = s, c = o, s = n, o = i, n = e3(l, h, y, x), i = t3(l, h, y, x); } - Nc(this.h, 0, n, i), Nc(this.h, 2, s, o), Nc(this.h, 4, a, c), Nc(this.h, 6, u, f), Nc(this.h, 8, p, b), Nc(this.h, 10, E, _), Nc(this.h, 12, N, k), Nc(this.h, 14, F, L); - }, oo.prototype._digest = function(t) { + Ac(this.h, 0, n, i), Ac(this.h, 2, s, o), Ac(this.h, 4, a, c), Ac(this.h, 6, u, f), Ac(this.h, 8, p, b), Ac(this.h, 10, E, _), Ac(this.h, 12, N, k), Ac(this.h, 14, F, L); + }, so.prototype._digest = function(t) { return t === "hex" ? Wi.toHex32(this.h, "big") : Wi.split32(this.h, "big"); }; - function K3e(t, e, r, n, i) { + function Z3e(t, e, r, n, i) { var s = t & r ^ ~t & i; return s < 0 && (s += 4294967296), s; } - function X3e(t, e, r, n, i, s) { + function J3e(t, e, r, n, i, s) { var o = e & n ^ ~e & s; return o < 0 && (o += 4294967296), o; } - function Y3e(t, e, r, n, i) { + function Q3e(t, e, r, n, i) { var s = t & r ^ t & i ^ r & i; return s < 0 && (s += 4294967296), s; } - function Z3e(t, e, r, n, i, s) { + function $3e(t, e, r, n, i, s) { var o = e & n ^ e & s ^ n & s; return o < 0 && (o += 4294967296), o; } - function J3e(t, e) { - var r = na(t, e, 28), n = na(e, t, 2), i = na(e, t, 7), s = r ^ n ^ i; + function ewe(t, e) { + var r = ra(t, e, 28), n = ra(e, t, 2), i = ra(e, t, 7), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function Q3e(t, e) { - var r = ia(t, e, 28), n = ia(e, t, 2), i = ia(e, t, 7), s = r ^ n ^ i; + function twe(t, e) { + var r = na(t, e, 28), n = na(e, t, 2), i = na(e, t, 7), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function $3e(t, e) { - var r = na(t, e, 14), n = na(t, e, 18), i = na(e, t, 9), s = r ^ n ^ i; + function rwe(t, e) { + var r = ra(t, e, 14), n = ra(t, e, 18), i = ra(e, t, 9), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function ewe(t, e) { - var r = ia(t, e, 14), n = ia(t, e, 18), i = ia(e, t, 9), s = r ^ n ^ i; + function nwe(t, e) { + var r = na(t, e, 14), n = na(t, e, 18), i = na(e, t, 9), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function twe(t, e) { - var r = na(t, e, 1), n = na(t, e, 8), i = GB(t, e, 7), s = r ^ n ^ i; + function iwe(t, e) { + var r = ra(t, e, 1), n = ra(t, e, 8), i = KB(t, e, 7), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function rwe(t, e) { - var r = ia(t, e, 1), n = ia(t, e, 8), i = KB(t, e, 7), s = r ^ n ^ i; + function swe(t, e) { + var r = na(t, e, 1), n = na(t, e, 8), i = XB(t, e, 7), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function nwe(t, e) { - var r = na(t, e, 19), n = na(e, t, 29), i = GB(t, e, 6), s = r ^ n ^ i; + function owe(t, e) { + var r = ra(t, e, 19), n = ra(e, t, 29), i = KB(t, e, 6), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - function iwe(t, e) { - var r = ia(t, e, 19), n = ia(e, t, 29), i = KB(t, e, 6), s = r ^ n ^ i; + function awe(t, e) { + var r = na(t, e, 19), n = na(e, t, 29), i = XB(t, e, 6), s = r ^ n ^ i; return s < 0 && (s += 4294967296), s; } - var av = Zt; - var ZB = YB; - function za() { - if (!(this instanceof za)) - return new za(); - ZB.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428]; - } - av.inherits(za, ZB); - var swe = za; - za.blockSize = 1024, za.outSize = 384, za.hmacStrength = 192, za.padLength = 128, za.prototype._digest = function(t) { - return t === "hex" ? av.toHex32(this.h.slice(0, 12), "big") : av.split32(this.h.slice(0, 12), "big"); - }, of.sha1 = T3e, of.sha224 = j3e, of.sha256 = qB, of.sha384 = swe, of.sha512 = YB; - var JB = {}; - var Xu = Zt; - var owe = sh; - var Tp = Xu.rotl32; - var yM = Xu.sum32; - var Dh = Xu.sum32_3; - var bM = Xu.sum32_4; - var QB = owe.BlockHash; - function Lo() { - if (!(this instanceof Lo)) - return new Lo(); - QB.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"; - } - Xu.inherits(Lo, QB), JB.ripemd160 = Lo, Lo.blockSize = 512, Lo.outSize = 160, Lo.hmacStrength = 192, Lo.padLength = 64, Lo.prototype._update = function(t, e) { + var ov = Yt; + var JB = ZB; + function ja() { + if (!(this instanceof ja)) + return new ja(); + JB.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428]; + } + ov.inherits(ja, JB); + var cwe = ja; + ja.blockSize = 1024, ja.outSize = 384, ja.hmacStrength = 192, ja.padLength = 128, ja.prototype._digest = function(t) { + return t === "hex" ? ov.toHex32(this.h.slice(0, 12), "big") : ov.split32(this.h.slice(0, 12), "big"); + }, of.sha1 = O3e, of.sha224 = F3e, of.sha256 = WB, of.sha384 = cwe, of.sha512 = ZB; + var QB = {}; + var Xu = Yt; + var uwe = ih; + var Np = Xu.rotl32; + var gM = Xu.sum32; + var Ch = Xu.sum32_3; + var yM = Xu.sum32_4; + var $B = uwe.BlockHash; + function Do() { + if (!(this instanceof Do)) + return new Do(); + $B.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"; + } + Xu.inherits(Do, $B), QB.ripemd160 = Do, Do.blockSize = 512, Do.outSize = 160, Do.hmacStrength = 192, Do.padLength = 64, Do.prototype._update = function(t, e) { for (var r = this.h[0], n = this.h[1], i = this.h[2], s = this.h[3], o = this.h[4], a = r, c = n, u = i, f = s, p = o, b = 0; b < 80; b++) { - var E = yM(Tp(bM(r, wM(b, n, i, s), t[uwe[b] + e], awe(b)), fwe[b]), o); - r = o, o = s, s = Tp(i, 10), i = n, n = E, E = yM(Tp(bM(a, wM(79 - b, c, u, f), t[lwe[b] + e], cwe(b)), hwe[b]), p), a = p, p = f, f = Tp(u, 10), u = c, c = E; + var E = gM(Np(yM(r, bM(b, n, i, s), t[hwe[b] + e], lwe(b)), pwe[b]), o); + r = o, o = s, s = Np(i, 10), i = n, n = E, E = gM(Np(yM(a, bM(79 - b, c, u, f), t[dwe[b] + e], fwe(b)), mwe[b]), p), a = p, p = f, f = Np(u, 10), u = c, c = E; } - E = Dh(this.h[1], i, f), this.h[1] = Dh(this.h[2], s, p), this.h[2] = Dh(this.h[3], o, a), this.h[3] = Dh(this.h[4], r, c), this.h[4] = Dh(this.h[0], n, u), this.h[0] = E; - }, Lo.prototype._digest = function(t) { + E = Ch(this.h[1], i, f), this.h[1] = Ch(this.h[2], s, p), this.h[2] = Ch(this.h[3], o, a), this.h[3] = Ch(this.h[4], r, c), this.h[4] = Ch(this.h[0], n, u), this.h[0] = E; + }, Do.prototype._digest = function(t) { return t === "hex" ? Xu.toHex32(this.h, "little") : Xu.split32(this.h, "little"); }; - function wM(t, e, r, n) { + function bM(t, e, r, n) { return t <= 15 ? e ^ r ^ n : t <= 31 ? e & r | ~e & n : t <= 47 ? (e | ~r) ^ n : t <= 63 ? e & n | r & ~n : e ^ (r | ~n); } - function awe(t) { + function lwe(t) { return t <= 15 ? 0 : t <= 31 ? 1518500249 : t <= 47 ? 1859775393 : t <= 63 ? 2400959708 : 2840853838; } - function cwe(t) { + function fwe(t) { return t <= 15 ? 1352829926 : t <= 31 ? 1548603684 : t <= 47 ? 1836072691 : t <= 63 ? 2053994217 : 0; } - var uwe = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]; - var lwe = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]; - var fwe = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]; - var hwe = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]; - var dwe = Zt; - var pwe = R0; + var hwe = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]; + var dwe = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]; + var pwe = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]; + var mwe = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]; + var gwe = Yt; + var ywe = R0; function xf(t, e, r) { if (!(this instanceof xf)) return new xf(t, e, r); - this.Hash = t, this.blockSize = t.blockSize / 8, this.outSize = t.outSize / 8, this.inner = null, this.outer = null, this._init(dwe.toArray(e, r)); + this.Hash = t, this.blockSize = t.blockSize / 8, this.outSize = t.outSize / 8, this.inner = null, this.outer = null, this._init(gwe.toArray(e, r)); } - var mwe = xf; + var bwe = xf; xf.prototype._init = function(t) { - t.length > this.blockSize && (t = new this.Hash().update(t).digest()), pwe(t.length <= this.blockSize); + t.length > this.blockSize && (t = new this.Hash().update(t).digest()), ywe(t.length <= this.blockSize); for (var e = t.length; e < this.blockSize; e++) t.push(0); for (e = 0; e < t.length; e++) @@ -79569,26 +79600,26 @@ ${gz(e, r)}`); return this.outer.update(this.inner.digest()), this.outer.digest(t); }, function(t) { var e = t; - e.utils = Zt, e.common = sh, e.sha = of, e.ripemd = JB, e.hmac = mwe, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160; - }(Do); - function ah(t, e, r) { + e.utils = Yt, e.common = ih, e.sha = of, e.ripemd = QB, e.hmac = bwe, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160; + }(Co); + function oh(t, e, r) { return r = { path: e, exports: {}, require: function(n, i) { - return gwe(n, i ?? r.path); + return wwe(n, i ?? r.path); } }, t(r, r.exports), r.exports; } - function gwe() { + function wwe() { throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs"); } - var r9 = $B; - function $B(t, e) { + var t9 = eU; + function eU(t, e) { if (!t) throw new Error(e || "Assertion failed"); } - $B.equal = function(t, e, r) { + eU.equal = function(t, e, r) { if (t != e) throw new Error(r || "Assertion failed: " + t + " != " + e); }; - var lo = ah(function(t, e) { + var uo = oh(function(t, e) { var r = e; function n(o, a) { if (Array.isArray(o)) @@ -79626,9 +79657,9 @@ ${gz(e, r)}`); return a === "hex" ? s(o) : o; }; }); - var fs = ah(function(t, e) { + var fs = oh(function(t, e) { var r = e; - r.assert = r9, r.toArray = lo.toArray, r.zero2 = lo.zero2, r.toHex = lo.toHex, r.encode = lo.encode; + r.assert = t9, r.toArray = uo.toArray, r.zero2 = uo.zero2, r.toHex = uo.toHex, r.encode = uo.encode; function n(c, u, f) { var p = new Array(Math.max(c.bitLength(), f) + 1); p.fill(0); @@ -79669,22 +79700,22 @@ ${gz(e, r)}`); } r.intFromLE = a; }); - var Np = fs.getNAF; - var ywe = fs.getJSF; - var Um = fs.assert; - function Bc(t, e) { + var Ip = fs.getNAF; + var vwe = fs.getJSF; + var jm = fs.assert; + function Dc(t, e) { this.type = t, this.p = new kt(e.p, 16), this.red = e.prime ? kt.red(e.prime) : kt.mont(this.p), this.zero = new kt(0).toRed(this.red), this.one = new kt(1).toRed(this.red), this.two = new kt(2).toRed(this.red), this.n = e.n && new kt(e.n, 16), this.g = e.g && this.pointFromJSON(e.g, e.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0; var r = this.n && this.p.div(this.n); !r || r.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = true, this.redN = this.n.toRed(this.red)); } - var Rl = Bc; - Bc.prototype.point = function() { + var Rl = Dc; + Dc.prototype.point = function() { throw new Error("Not implemented"); - }, Bc.prototype.validate = function() { + }, Dc.prototype.validate = function() { throw new Error("Not implemented"); - }, Bc.prototype._fixedNafMul = function(t, e) { - Um(t.precomputed); - var r = t._getDoubles(), n = Np(e, 1, this._bitLength), i = (1 << r.step + 1) - (r.step % 2 === 0 ? 2 : 1); + }, Dc.prototype._fixedNafMul = function(t, e) { + jm(t.precomputed); + var r = t._getDoubles(), n = Ip(e, 1, this._bitLength), i = (1 << r.step + 1) - (r.step % 2 === 0 ? 2 : 1); i /= 3; var s = [], o, a; for (o = 0; o < n.length; o += r.step) { @@ -79699,19 +79730,19 @@ ${gz(e, r)}`); u = u.add(f); } return u.toP(); - }, Bc.prototype._wnafMul = function(t, e) { + }, Dc.prototype._wnafMul = function(t, e) { var r = 4, n = t._getNAFPoints(r); r = n.wnd; - for (var i = n.points, s = Np(e, r, this._bitLength), o = this.jpoint(null, null, null), a = s.length - 1; a >= 0; a--) { + for (var i = n.points, s = Ip(e, r, this._bitLength), o = this.jpoint(null, null, null), a = s.length - 1; a >= 0; a--) { for (var c = 0; a >= 0 && s[a] === 0; a--) c++; if (a >= 0 && c++, o = o.dblp(c), a < 0) break; var u = s[a]; - Um(u !== 0), t.type === "affine" ? u > 0 ? o = o.mixedAdd(i[u - 1 >> 1]) : o = o.mixedAdd(i[-u - 1 >> 1].neg()) : u > 0 ? o = o.add(i[u - 1 >> 1]) : o = o.add(i[-u - 1 >> 1].neg()); + jm(u !== 0), t.type === "affine" ? u > 0 ? o = o.mixedAdd(i[u - 1 >> 1]) : o = o.mixedAdd(i[-u - 1 >> 1].neg()) : u > 0 ? o = o.add(i[u - 1 >> 1]) : o = o.add(i[-u - 1 >> 1].neg()); } return t.type === "affine" ? o.toP() : o; - }, Bc.prototype._wnafMulAdd = function(t, e, r, n, i) { + }, Dc.prototype._wnafMulAdd = function(t, e, r, n, i) { var s = this._wnafT1, o = this._wnafT2, a = this._wnafT3, c = 0, u, f, p; for (u = 0; u < n; u++) { p = e[u]; @@ -79721,12 +79752,12 @@ ${gz(e, r)}`); for (u = n - 1; u >= 1; u -= 2) { var E = u - 1, _ = u; if (s[E] !== 1 || s[_] !== 1) { - a[E] = Np(r[E], s[E], this._bitLength), a[_] = Np(r[_], s[_], this._bitLength), c = Math.max(a[E].length, c), c = Math.max(a[_].length, c); + a[E] = Ip(r[E], s[E], this._bitLength), a[_] = Ip(r[_], s[_], this._bitLength), c = Math.max(a[E].length, c), c = Math.max(a[_].length, c); continue; } var N = [e[E], null, null, e[_]]; e[E].y.cmp(e[_].y) === 0 ? (N[1] = e[E].add(e[_]), N[2] = e[E].toJ().mixedAdd(e[_].neg())) : e[E].y.cmp(e[_].y.redNeg()) === 0 ? (N[1] = e[E].toJ().mixedAdd(e[_]), N[2] = e[E].add(e[_].neg())) : (N[1] = e[E].toJ().mixedAdd(e[_]), N[2] = e[E].toJ().mixedAdd(e[_].neg())); - var k = [-3, -1, -5, -7, 0, 7, 5, 1, 3], F = ywe(r[E], r[_]); + var k = [-3, -1, -5, -7, 0, 7, 5, 1, 3], F = vwe(r[E], r[_]); for (c = Math.max(F[0].length, c), a[E] = new Array(c), a[_] = new Array(c), f = 0; f < c; f++) { var L = F[0][f] | 0, D = F[1][f] | 0; a[E][f] = k[(L + 1) * 3 + (D + 1)], a[_][f] = 0, o[E] = N; @@ -79756,15 +79787,15 @@ ${gz(e, r)}`); function _s(t, e) { this.curve = t, this.type = e, this.precomputed = null; } - Bc.BasePoint = _s, _s.prototype.eq = function() { + Dc.BasePoint = _s, _s.prototype.eq = function() { throw new Error("Not implemented"); }, _s.prototype.validate = function() { return this.curve.validate(this); - }, Bc.prototype.decodePoint = function(t, e) { + }, Dc.prototype.decodePoint = function(t, e) { t = fs.toArray(t, e); var r = this.p.byteLength(); if ((t[0] === 4 || t[0] === 6 || t[0] === 7) && t.length - 1 === 2 * r) { - t[0] === 6 ? Um(t[t.length - 1] % 2 === 0) : t[0] === 7 && Um(t[t.length - 1] % 2 === 1); + t[0] === 6 ? jm(t[t.length - 1] % 2 === 0) : t[0] === 7 && jm(t[t.length - 1] % 2 === 1); var n = this.point(t.slice(1, 1 + r), t.slice(1 + r, 1 + 2 * r)); return n; } else if ((t[0] === 2 || t[0] === 3) && t.length - 1 === r) @@ -79809,7 +79840,7 @@ ${gz(e, r)}`); e = e.dbl(); return e; }; - var n9 = ah(function(t) { + var r9 = oh(function(t) { typeof Object.create == "function" ? t.exports = function(e, r) { r && (e.super_ = r, e.prototype = Object.create(r.prototype, { constructor: { value: e, enumerable: false, writable: true, configurable: true } })); } : t.exports = function(e, r) { @@ -79821,12 +79852,12 @@ ${gz(e, r)}`); } }; }); - var bwe = fs.assert; + var xwe = fs.assert; function Cs(t) { Rl.call(this, "short", t), this.a = new kt(t.a, 16).toRed(this.red), this.b = new kt(t.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(t), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4); } - n9(Cs, Rl); - var wwe = Cs; + r9(Cs, Rl); + var _we = Cs; Cs.prototype._getEndomorphism = function(t) { if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) { var e, r; @@ -79840,7 +79871,7 @@ ${gz(e, r)}`); r = new kt(t.lambda, 16); else { var i = this._getEndoRoots(this.n); - this.g.mul(i[0]).x.cmp(this.g.x.redMul(e)) === 0 ? r = i[0] : (r = i[1], bwe(this.g.mul(r).x.cmp(this.g.x.redMul(e)) === 0)); + this.g.mul(i[0]).x.cmp(this.g.x.redMul(e)) === 0 ? r = i[0] : (r = i[1], xwe(this.g.mul(r).x.cmp(this.g.x.redMul(e)) === 0)); } var s; return t.basis ? s = t.basis.map(function(o) { @@ -79891,7 +79922,7 @@ ${gz(e, r)}`); function Mn(t, e, r, n) { Rl.BasePoint.call(this, t, "affine"), e === null && r === null ? (this.x = null, this.y = null, this.inf = true) : (this.x = new kt(e, 16), this.y = new kt(r, 16), n && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = false); } - n9(Mn, Rl.BasePoint), Cs.prototype.point = function(t, e, r) { + r9(Mn, Rl.BasePoint), Cs.prototype.point = function(t, e, r) { return new Mn(this, t, e, r); }, Cs.prototype.pointFromJSON = function(t, e) { return Mn.fromJSON(this, t, e); @@ -79982,7 +80013,7 @@ ${gz(e, r)}`); function Gn(t, e, r, n) { Rl.BasePoint.call(this, t, "jacobian"), e === null && r === null && n === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new kt(0)) : (this.x = new kt(e, 16), this.y = new kt(r, 16), this.z = new kt(n, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one; } - n9(Gn, Rl.BasePoint), Cs.prototype.jpoint = function(t, e, r) { + r9(Gn, Rl.BasePoint), Cs.prototype.jpoint = function(t, e, r) { return new Gn(this, t, e, r); }, Gn.prototype.toP = function() { if (this.isInfinity()) @@ -80118,14 +80149,14 @@ ${gz(e, r)}`); }, Gn.prototype.isInfinity = function() { return this.z.cmpn(0) === 0; }; - var g1 = ah(function(t, e) { + var y1 = oh(function(t, e) { var r = e; - r.base = Rl, r.short = wwe, r.mont = null, r.edwards = null; + r.base = Rl, r.short = _we, r.mont = null, r.edwards = null; }); - var y1 = ah(function(t, e) { + var b1 = oh(function(t, e) { var r = e, n = fs.assert; function i(a) { - a.type === "short" ? this.curve = new g1.short(a) : a.type === "edwards" ? this.curve = new g1.edwards(a) : this.curve = new g1.mont(a), this.g = this.curve.g, this.n = this.curve.n, this.hash = a.hash, n(this.g.validate(), "Invalid curve"), n(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); + a.type === "short" ? this.curve = new y1.short(a) : a.type === "edwards" ? this.curve = new y1.edwards(a) : this.curve = new y1.mont(a), this.g = this.curve.g, this.n = this.curve.n, this.hash = a.hash, n(this.g.validate(), "Invalid curve"), n(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); } r.PresetCurve = i; function s(a, c) { @@ -80134,50 +80165,50 @@ ${gz(e, r)}`); return Object.defineProperty(r, a, { configurable: true, enumerable: true, value: u }), u; } }); } - s("p192", { type: "short", prime: "p192", p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", hash: Do.sha256, gRed: false, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), s("p224", { type: "short", prime: "p224", p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", hash: Do.sha256, gRed: false, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), s("p256", { type: "short", prime: null, p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", hash: Do.sha256, gRed: false, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), s("p384", { type: "short", prime: null, p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", hash: Do.sha384, gRed: false, g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"] }), s("p521", { type: "short", prime: null, p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", hash: Do.sha512, gRed: false, g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"] }), s("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: Do.sha256, gRed: false, g: ["9"] }), s("ed25519", { type: "edwards", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "-1", c: "1", d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: Do.sha256, gRed: false, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] }); + s("p192", { type: "short", prime: "p192", p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", hash: Co.sha256, gRed: false, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), s("p224", { type: "short", prime: "p224", p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", hash: Co.sha256, gRed: false, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), s("p256", { type: "short", prime: null, p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", hash: Co.sha256, gRed: false, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), s("p384", { type: "short", prime: null, p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", hash: Co.sha384, gRed: false, g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"] }), s("p521", { type: "short", prime: null, p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", hash: Co.sha512, gRed: false, g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"] }), s("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: Co.sha256, gRed: false, g: ["9"] }), s("ed25519", { type: "edwards", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "-1", c: "1", d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: Co.sha256, gRed: false, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] }); var o; try { o = null.crash(); } catch { o = void 0; } - s("secp256k1", { type: "short", prime: "k256", p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", a: "0", b: "7", n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", h: "1", hash: Do.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }], gRed: false, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", o] }); + s("secp256k1", { type: "short", prime: "k256", p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", a: "0", b: "7", n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", h: "1", hash: Co.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }], gRed: false, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", o] }); }); - function Uc(t) { - if (!(this instanceof Uc)) - return new Uc(t); + function Lc(t) { + if (!(this instanceof Lc)) + return new Lc(t); this.hash = t.hash, this.predResist = !!t.predResist, this.outLen = this.hash.outSize, this.minEntropy = t.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null; - var e = lo.toArray(t.entropy, t.entropyEnc || "hex"), r = lo.toArray(t.nonce, t.nonceEnc || "hex"), n = lo.toArray(t.pers, t.persEnc || "hex"); - r9(e.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(e, r, n); + var e = uo.toArray(t.entropy, t.entropyEnc || "hex"), r = uo.toArray(t.nonce, t.nonceEnc || "hex"), n = uo.toArray(t.pers, t.persEnc || "hex"); + t9(e.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(e, r, n); } - var vM = Uc; - Uc.prototype._init = function(t, e, r) { + var wM = Lc; + Lc.prototype._init = function(t, e, r) { var n = t.concat(e).concat(r); this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8); for (var i = 0; i < this.V.length; i++) this.K[i] = 0, this.V[i] = 1; this._update(n), this._reseed = 1, this.reseedInterval = 281474976710656; - }, Uc.prototype._hmac = function() { - return new Do.hmac(this.hash, this.K); - }, Uc.prototype._update = function(t) { + }, Lc.prototype._hmac = function() { + return new Co.hmac(this.hash, this.K); + }, Lc.prototype._update = function(t) { var e = this._hmac().update(this.V).update([0]); t && (e = e.update(t)), this.K = e.digest(), this.V = this._hmac().update(this.V).digest(), t && (this.K = this._hmac().update(this.V).update([1]).update(t).digest(), this.V = this._hmac().update(this.V).digest()); - }, Uc.prototype.reseed = function(t, e, r, n) { - typeof e != "string" && (n = r, r = e, e = null), t = lo.toArray(t, e), r = lo.toArray(r, n), r9(t.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(t.concat(r || [])), this._reseed = 1; - }, Uc.prototype.generate = function(t, e, r, n) { + }, Lc.prototype.reseed = function(t, e, r, n) { + typeof e != "string" && (n = r, r = e, e = null), t = uo.toArray(t, e), r = uo.toArray(r, n), t9(t.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(t.concat(r || [])), this._reseed = 1; + }, Lc.prototype.generate = function(t, e, r, n) { if (this._reseed > this.reseedInterval) throw new Error("Reseed is required"); - typeof e != "string" && (n = r, r = e, e = null), r && (r = lo.toArray(r, n || "hex"), this._update(r)); + typeof e != "string" && (n = r, r = e, e = null), r && (r = uo.toArray(r, n || "hex"), this._update(r)); for (var i = []; i.length < t; ) this.V = this._hmac().update(this.V).digest(), i = i.concat(this.V); var s = i.slice(0, t); - return this._update(r), this._reseed++, lo.encode(s, e); + return this._update(r), this._reseed++, uo.encode(s, e); }; - var n3 = fs.assert; + var r3 = fs.assert; function ci(t, e) { this.ec = t, this.priv = null, this.pub = null, e.priv && this._importPrivate(e.priv, e.privEnc), e.pub && this._importPublic(e.pub, e.pubEnc); } - var i3 = ci; + var n3 = ci; ci.fromPublic = function(t, e, r) { return e instanceof ci ? e : new ci(t, { pub: e, pubEnc: r }); }, ci.fromPrivate = function(t, e, r) { @@ -80193,12 +80224,12 @@ ${gz(e, r)}`); this.priv = new kt(t, e || 16), this.priv = this.priv.umod(this.ec.curve.n); }, ci.prototype._importPublic = function(t, e) { if (t.x || t.y) { - this.ec.curve.type === "mont" ? n3(t.x, "Need x coordinate") : (this.ec.curve.type === "short" || this.ec.curve.type === "edwards") && n3(t.x && t.y, "Need both x and y coordinate"), this.pub = this.ec.curve.point(t.x, t.y); + this.ec.curve.type === "mont" ? r3(t.x, "Need x coordinate") : (this.ec.curve.type === "short" || this.ec.curve.type === "edwards") && r3(t.x && t.y, "Need both x and y coordinate"), this.pub = this.ec.curve.point(t.x, t.y); return; } this.pub = this.ec.curve.decodePoint(t, e); }, ci.prototype.derive = function(t) { - return t.validate() || n3(t.validate(), "public point not validated"), t.mul(this.priv).getX(); + return t.validate() || r3(t.validate(), "public point not validated"), t.mul(this.priv).getX(); }, ci.prototype.sign = function(t, e, r) { return this.ec.sign(t, this, e, r); }, ci.prototype.verify = function(t, e) { @@ -80206,17 +80237,17 @@ ${gz(e, r)}`); }, ci.prototype.inspect = function() { return ""; }; - var vwe = fs.assert; - function R2(t, e) { - if (t instanceof R2) + var Ewe = fs.assert; + function C2(t, e) { + if (t instanceof C2) return t; - this._importDER(t, e) || (vwe(t.r && t.s, "Signature without r or s"), this.r = new kt(t.r, 16), this.s = new kt(t.s, 16), t.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = t.recoveryParam); + this._importDER(t, e) || (Ewe(t.r && t.s, "Signature without r or s"), this.r = new kt(t.r, 16), this.s = new kt(t.s, 16), t.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = t.recoveryParam); } - var Ip = R2; - function xwe() { + var Op = C2; + function Swe() { this.place = 0; } - function s3(t, e) { + function i3(t, e) { var r = t[e.place++]; if (!(r & 128)) return r; @@ -80227,26 +80258,26 @@ ${gz(e, r)}`); i <<= 8, i |= t[o], i >>>= 0; return i <= 127 ? false : (e.place = o, i); } - function xM(t) { + function vM(t) { for (var e = 0, r = t.length - 1; !t[e] && !(t[e + 1] & 128) && e < r; ) e++; return e === 0 ? t : t.slice(e); } - R2.prototype._importDER = function(t, e) { + C2.prototype._importDER = function(t, e) { t = fs.toArray(t, e); - var r = new xwe(); + var r = new Swe(); if (t[r.place++] !== 48) return false; - var n = s3(t, r); + var n = i3(t, r); if (n === false || n + r.place !== t.length || t[r.place++] !== 2) return false; - var i = s3(t, r); + var i = i3(t, r); if (i === false) return false; var s = t.slice(r.place, i + r.place); if (r.place += i, t[r.place++] !== 2) return false; - var o = s3(t, r); + var o = i3(t, r); if (o === false || t.length !== o + r.place) return false; var a = t.slice(r.place, o + r.place); @@ -80262,7 +80293,7 @@ ${gz(e, r)}`); return false; return this.r = new kt(s), this.s = new kt(a), this.recoveryParam = null, true; }; - function o3(t, e) { + function s3(t, e) { if (e < 128) { t.push(e); return; @@ -80272,34 +80303,34 @@ ${gz(e, r)}`); t.push(e >>> (r << 3) & 255); t.push(e); } - R2.prototype.toDER = function(t) { + C2.prototype.toDER = function(t) { var e = this.r.toArray(), r = this.s.toArray(); - for (e[0] & 128 && (e = [0].concat(e)), r[0] & 128 && (r = [0].concat(r)), e = xM(e), r = xM(r); !r[0] && !(r[1] & 128); ) + for (e[0] & 128 && (e = [0].concat(e)), r[0] & 128 && (r = [0].concat(r)), e = vM(e), r = vM(r); !r[0] && !(r[1] & 128); ) r = r.slice(1); var n = [2]; - o3(n, e.length), n = n.concat(e), n.push(2), o3(n, r.length); + s3(n, e.length), n = n.concat(e), n.push(2), s3(n, r.length); var i = n.concat(r), s = [48]; - return o3(s, i.length), s = s.concat(i), fs.encode(s, t); + return s3(s, i.length), s = s.concat(i), fs.encode(s, t); }; - var _we = function() { + var Mwe = function() { throw new Error("unsupported"); }; - var eU = fs.assert; + var tU = fs.assert; function Os(t) { if (!(this instanceof Os)) return new Os(t); - typeof t == "string" && (eU(Object.prototype.hasOwnProperty.call(y1, t), "Unknown curve " + t), t = y1[t]), t instanceof y1.PresetCurve && (t = { curve: t }), this.curve = t.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = t.curve.g, this.g.precompute(t.curve.n.bitLength() + 1), this.hash = t.hash || t.curve.hash; + typeof t == "string" && (tU(Object.prototype.hasOwnProperty.call(b1, t), "Unknown curve " + t), t = b1[t]), t instanceof b1.PresetCurve && (t = { curve: t }), this.curve = t.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = t.curve.g, this.g.precompute(t.curve.n.bitLength() + 1), this.hash = t.hash || t.curve.hash; } - var Ewe = Os; + var Awe = Os; Os.prototype.keyPair = function(t) { - return new i3(this, t); + return new n3(this, t); }, Os.prototype.keyFromPrivate = function(t, e) { - return i3.fromPrivate(this, t, e); + return n3.fromPrivate(this, t, e); }, Os.prototype.keyFromPublic = function(t, e) { - return i3.fromPublic(this, t, e); + return n3.fromPublic(this, t, e); }, Os.prototype.genKeyPair = function(t) { t || (t = {}); - for (var e = new vM({ hash: this.hash, pers: t.pers, persEnc: t.persEnc || "utf8", entropy: t.entropy || _we(this.hash.hmacStrength), entropyEnc: t.entropy && t.entropyEnc || "utf8", nonce: this.n.toArray() }), r = this.n.byteLength(), n = this.n.sub(new kt(2)); ; ) { + for (var e = new wM({ hash: this.hash, pers: t.pers, persEnc: t.persEnc || "utf8", entropy: t.entropy || Mwe(this.hash.hmacStrength), entropyEnc: t.entropy && t.entropyEnc || "utf8", nonce: this.n.toArray() }), r = this.n.byteLength(), n = this.n.sub(new kt(2)); ; ) { var i = new kt(e.generate(r)); if (!(i.cmp(n) > 0)) return i.iaddn(1), this.keyFromPrivate(i); @@ -80309,7 +80340,7 @@ ${gz(e, r)}`); return r > 0 && (t = t.ushrn(r)), !e && t.cmp(this.n) >= 0 ? t.sub(this.n) : t; }, Os.prototype.sign = function(t, e, r, n) { typeof r == "object" && (n = r, r = null), n || (n = {}), e = this.keyFromPrivate(e, r), t = this._truncateToN(new kt(t, 16)); - for (var i = this.n.byteLength(), s = e.getPrivate().toArray("be", i), o = t.toArray("be", i), a = new vM({ hash: this.hash, entropy: s, nonce: o, pers: n.pers, persEnc: n.persEnc || "utf8" }), c = this.n.sub(new kt(1)), u = 0; ; u++) { + for (var i = this.n.byteLength(), s = e.getPrivate().toArray("be", i), o = t.toArray("be", i), a = new wM({ hash: this.hash, entropy: s, nonce: o, pers: n.pers, persEnc: n.persEnc || "utf8" }), c = this.n.sub(new kt(1)), u = 0; ; u++) { var f = n.k ? n.k(u) : new kt(a.generate(this.n.byteLength())); if (f = this._truncateToN(f, true), !(f.cmpn(1) <= 0 || f.cmp(c) >= 0)) { var p = this.g.mul(f); @@ -80319,21 +80350,21 @@ ${gz(e, r)}`); var _ = f.invm(this.n).mul(E.mul(e.getPrivate()).iadd(t)); if (_ = _.umod(this.n), _.cmpn(0) !== 0) { var N = (p.getY().isOdd() ? 1 : 0) | (b.cmp(E) !== 0 ? 2 : 0); - return n.canonical && _.cmp(this.nh) > 0 && (_ = this.n.sub(_), N ^= 1), new Ip({ r: E, s: _, recoveryParam: N }); + return n.canonical && _.cmp(this.nh) > 0 && (_ = this.n.sub(_), N ^= 1), new Op({ r: E, s: _, recoveryParam: N }); } } } } } }, Os.prototype.verify = function(t, e, r, n) { - t = this._truncateToN(new kt(t, 16)), r = this.keyFromPublic(r, n), e = new Ip(e, "hex"); + t = this._truncateToN(new kt(t, 16)), r = this.keyFromPublic(r, n), e = new Op(e, "hex"); var i = e.r, s = e.s; if (i.cmpn(1) < 0 || i.cmp(this.n) >= 0 || s.cmpn(1) < 0 || s.cmp(this.n) >= 0) return false; var o = s.invm(this.n), a = o.mul(t).umod(this.n), c = o.mul(i).umod(this.n), u; return this.curve._maxwellTrick ? (u = this.g.jmulAdd(a, r.getPublic(), c), u.isInfinity() ? false : u.eqXToP(i)) : (u = this.g.mulAdd(a, r.getPublic(), c), u.isInfinity() ? false : u.getX().umod(this.n).cmp(i) === 0); }, Os.prototype.recoverPubKey = function(t, e, r, n) { - eU((3 & r) === r, "The recovery param is more than two bits"), e = new Ip(e, n); + tU((3 & r) === r, "The recovery param is more than two bits"), e = new Op(e, n); var i = this.n, s = new kt(t), o = e.r, a = e.s, c = r & 1, u = r >> 1; if (o.cmp(this.curve.p.umod(this.curve.n)) >= 0 && u) throw new Error("Unable to find sencond key candinate"); @@ -80341,7 +80372,7 @@ ${gz(e, r)}`); var f = e.r.invm(i), p = i.sub(s).mul(f).umod(i), b = a.mul(f).umod(i); return this.g.mulAdd(p, o, b); }, Os.prototype.getKeyRecoveryParam = function(t, e, r, n) { - if (e = new Ip(e, n), e.recoveryParam !== null) + if (e = new Op(e, n), e.recoveryParam !== null) return e.recoveryParam; for (var i = 0; i < 4; i++) { var s; @@ -80355,151 +80386,151 @@ ${gz(e, r)}`); } throw new Error("Unable to find valid recovery factor"); }; - var Swe = ah(function(t, e) { + var Twe = oh(function(t, e) { var r = e; r.version = "6.5.4", r.utils = fs, r.rand = function() { throw new Error("unsupported"); - }, r.curve = g1, r.curves = y1, r.ec = Ewe, r.eddsa = null; + }, r.curve = y1, r.curves = b1, r.ec = Awe, r.eddsa = null; }); - var Mwe = Swe.ec; - var Awe = "signing-key/5.7.0"; - var cv = new Qn(Awe); - var a3 = null; - function Ho() { - return a3 || (a3 = new Mwe("secp256k1")), a3; - } - var Twe = class { + var Nwe = Twe.ec; + var Iwe = "signing-key/5.7.0"; + var av = new Qn(Iwe); + var o3 = null; + function Fo() { + return o3 || (o3 = new Nwe("secp256k1")), o3; + } + var Owe = class { constructor(e) { - Rh(this, "curve", "secp256k1"), Rh(this, "privateKey", wi(e)), lbe(this.privateKey) !== 32 && cv.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); - const r = Ho().keyFromPrivate(Qr(this.privateKey)); - Rh(this, "publicKey", "0x" + r.getPublic(false, "hex")), Rh(this, "compressedPublicKey", "0x" + r.getPublic(true, "hex")), Rh(this, "_isSigningKey", true); + kh(this, "curve", "secp256k1"), kh(this, "privateKey", wi(e)), dbe(this.privateKey) !== 32 && av.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); + const r = Fo().keyFromPrivate(Jr(this.privateKey)); + kh(this, "publicKey", "0x" + r.getPublic(false, "hex")), kh(this, "compressedPublicKey", "0x" + r.getPublic(true, "hex")), kh(this, "_isSigningKey", true); } _addPoint(e) { - const r = Ho().keyFromPublic(Qr(this.publicKey)), n = Ho().keyFromPublic(Qr(e)); + const r = Fo().keyFromPublic(Jr(this.publicKey)), n = Fo().keyFromPublic(Jr(e)); return "0x" + r.pub.add(n.pub).encodeCompressed("hex"); } signDigest(e) { - const r = Ho().keyFromPrivate(Qr(this.privateKey)), n = Qr(e); - n.length !== 32 && cv.throwArgumentError("bad digest length", "digest", e); + const r = Fo().keyFromPrivate(Jr(this.privateKey)), n = Jr(e); + n.length !== 32 && av.throwArgumentError("bad digest length", "digest", e); const i = r.sign(n, { canonical: true }); - return MB({ recoveryParam: i.recoveryParam, r: ta("0x" + i.r.toString(16), 32), s: ta("0x" + i.s.toString(16), 32) }); + return AB({ recoveryParam: i.recoveryParam, r: ea("0x" + i.r.toString(16), 32), s: ea("0x" + i.s.toString(16), 32) }); } computeSharedSecret(e) { - const r = Ho().keyFromPrivate(Qr(this.privateKey)), n = Ho().keyFromPublic(Qr(tU(e))); - return ta("0x" + r.derive(n.getPublic()).toString(16), 32); + const r = Fo().keyFromPrivate(Jr(this.privateKey)), n = Fo().keyFromPublic(Jr(rU(e))); + return ea("0x" + r.derive(n.getPublic()).toString(16), 32); } static isSigningKey(e) { return !!(e && e._isSigningKey); } }; - function Nwe(t, e) { - const r = MB(e), n = { r: Qr(r.r), s: Qr(r.s) }; - return "0x" + Ho().recoverPubKey(Qr(t), n, r.recoveryParam).encode("hex", false); + function Pwe(t, e) { + const r = AB(e), n = { r: Jr(r.r), s: Jr(r.s) }; + return "0x" + Fo().recoverPubKey(Jr(t), n, r.recoveryParam).encode("hex", false); } - function tU(t, e) { - const r = Qr(t); + function rU(t, e) { + const r = Jr(t); if (r.length === 32) { - const n = new Twe(r); - return e ? "0x" + Ho().keyFromPrivate(r).getPublic(true, "hex") : n.publicKey; + const n = new Owe(r); + return e ? "0x" + Fo().keyFromPrivate(r).getPublic(true, "hex") : n.publicKey; } else { if (r.length === 33) - return e ? wi(r) : "0x" + Ho().keyFromPublic(r).getPublic(false, "hex"); + return e ? wi(r) : "0x" + Fo().keyFromPublic(r).getPublic(false, "hex"); if (r.length === 65) - return e ? "0x" + Ho().keyFromPublic(r).getPublic(true, "hex") : wi(r); + return e ? "0x" + Fo().keyFromPublic(r).getPublic(true, "hex") : wi(r); } - return cv.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); + return av.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); } - var _M; + var xM; (function(t) { t[t.legacy = 0] = "legacy", t[t.eip2930 = 1] = "eip2930", t[t.eip1559 = 2] = "eip1559"; - })(_M || (_M = {})); - function Iwe(t) { - const e = tU(t); - return Vbe(aM($x(aM(e, 1)), 12)); + })(xM || (xM = {})); + function kwe(t) { + const e = rU(t); + return Hbe(oM(Qx(oM(e, 1)), 12)); } - function Owe(t, e) { - return Iwe(Nwe(Qr(t), e)); + function Rwe(t, e) { + return kwe(Pwe(Jr(t), e)); } - var Pwe = "https://rpc.walletconnect.com/v1"; - async function kwe(t, e, r, n, i, s) { + var Cwe = "https://rpc.walletconnect.com/v1"; + async function Dwe(t, e, r, n, i, s) { switch (r.t) { case "eip191": - return Rwe(t, e, r.s); + return Lwe(t, e, r.s); case "eip1271": - return await Cwe(t, e, r.s, n, i, s); + return await Bwe(t, e, r.s, n, i, s); default: throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`); } } - function Rwe(t, e, r) { - return Owe(CB(e), r).toLowerCase() === t.toLowerCase(); + function Lwe(t, e, r) { + return Rwe(DB(e), r).toLowerCase() === t.toLowerCase(); } - async function Cwe(t, e, r, n, i, s) { + async function Bwe(t, e, r, n, i, s) { try { - const o = "0x1626ba7e", a = "0000000000000000000000000000000000000000000000000000000000000040", c = "0000000000000000000000000000000000000000000000000000000000000041", u = r.substring(2), f = CB(e).substring(2), p = o + f + a + c + u, b = await fetch(`${s || Pwe}/?chainId=${n}&projectId=${i}`, { method: "POST", body: JSON.stringify({ id: Dwe(), jsonrpc: "2.0", method: "eth_call", params: [{ to: t, data: p }, "latest"] }) }), { result: E } = await b.json(); + const o = "0x1626ba7e", a = "0000000000000000000000000000000000000000000000000000000000000040", c = "0000000000000000000000000000000000000000000000000000000000000041", u = r.substring(2), f = DB(e).substring(2), p = o + f + a + c + u, b = await fetch(`${s || Cwe}/?chainId=${n}&projectId=${i}`, { method: "POST", body: JSON.stringify({ id: Uwe(), jsonrpc: "2.0", method: "eth_call", params: [{ to: t, data: p }, "latest"] }) }), { result: E } = await b.json(); return E ? E.slice(0, o.length).toLowerCase() === o.toLowerCase() : false; } catch (o) { return console.error("isValidEip1271Signature: ", o), false; } } - function Dwe() { + function Uwe() { return Date.now() + Math.floor(Math.random() * 1e3); } - var Lwe = Object.defineProperty; - var Bwe = Object.defineProperties; - var Uwe = Object.getOwnPropertyDescriptors; - var EM = Object.getOwnPropertySymbols; - var jwe = Object.prototype.hasOwnProperty; - var Vwe = Object.prototype.propertyIsEnumerable; - var SM = (t, e, r) => e in t ? Lwe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var zwe = (t, e) => { + var jwe = Object.defineProperty; + var Vwe = Object.defineProperties; + var zwe = Object.getOwnPropertyDescriptors; + var _M = Object.getOwnPropertySymbols; + var Fwe = Object.prototype.hasOwnProperty; + var Hwe = Object.prototype.propertyIsEnumerable; + var EM = (t, e, r) => e in t ? jwe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var qwe = (t, e) => { for (var r in e || (e = {})) - jwe.call(e, r) && SM(t, r, e[r]); - if (EM) - for (var r of EM(e)) - Vwe.call(e, r) && SM(t, r, e[r]); + Fwe.call(e, r) && EM(t, r, e[r]); + if (_M) + for (var r of _M(e)) + Hwe.call(e, r) && EM(t, r, e[r]); return t; }; - var Fwe = (t, e) => Bwe(t, Uwe(e)); - var Hwe = "did:pkh:"; - var i9 = (t) => t == null ? void 0 : t.split(":"); - var rU = (t) => { - const e = t && i9(t); + var Wwe = (t, e) => Vwe(t, zwe(e)); + var Gwe = "did:pkh:"; + var n9 = (t) => t == null ? void 0 : t.split(":"); + var nU = (t) => { + const e = t && n9(t); if (e) - return t.includes(Hwe) ? e[3] : e[1]; + return t.includes(Gwe) ? e[3] : e[1]; }; - var MM = (t) => { - const e = t && i9(t); + var SM = (t) => { + const e = t && n9(t); if (e) return e[2] + ":" + e[3]; }; - var jm = (t) => { - const e = t && i9(t); + var Vm = (t) => { + const e = t && n9(t); if (e) return e.pop(); }; - async function AM(t) { - const { cacao: e, projectId: r } = t, { s: n, p: i } = e, s = nU(i, i.iss), o = jm(i.iss); - return await kwe(o, s, n, rU(i.iss), r); + async function MM(t) { + const { cacao: e, projectId: r } = t, { s: n, p: i } = e, s = iU(i, i.iss), o = Vm(i.iss); + return await Dwe(o, s, n, nU(i.iss), r); } - var nU = (t, e) => { - const r = `${t.domain} wants you to sign in with your Ethereum account:`, n = jm(e); + var iU = (t, e) => { + const r = `${t.domain} wants you to sign in with your Ethereum account:`, n = Vm(e); if (!t.aud && !t.uri) throw new Error("Either `aud` or `uri` is required to construct the message"); let i = t.statement || void 0; - const s = `URI: ${t.aud || t.uri}`, o = `Version: ${t.version}`, a = `Chain ID: ${rU(e)}`, c = `Nonce: ${t.nonce}`, u = `Issued At: ${t.iat}`, f = t.exp ? `Expiration Time: ${t.exp}` : void 0, p = t.nbf ? `Not Before: ${t.nbf}` : void 0, b = t.requestId ? `Request ID: ${t.requestId}` : void 0, E = t.resources ? `Resources:${t.resources.map((N) => ` -- ${N}`).join("")}` : void 0, _ = b1(t.resources); + const s = `URI: ${t.aud || t.uri}`, o = `Version: ${t.version}`, a = `Chain ID: ${nU(e)}`, c = `Nonce: ${t.nonce}`, u = `Issued At: ${t.iat}`, f = t.exp ? `Expiration Time: ${t.exp}` : void 0, p = t.nbf ? `Not Before: ${t.nbf}` : void 0, b = t.requestId ? `Request ID: ${t.requestId}` : void 0, E = t.resources ? `Resources:${t.resources.map((N) => ` +- ${N}`).join("")}` : void 0, _ = w1(t.resources); if (_) { - const N = Hd(_); - i = Qwe(i, N); + const N = Fd(_); + i = t5e(i, N); } return [r, n, "", i, "", s, o, a, c, u, f, p, b, E].filter((N) => N != null).join(` `); }; - function qwe(t) { + function Kwe(t) { return Buffer.from(JSON.stringify(t)).toString("base64"); } - function Wwe(t) { + function Xwe(t) { return JSON.parse(Buffer.from(t, "base64").toString("utf-8")); } function ll(t) { @@ -80531,44 +80562,44 @@ ${gz(e, r)}`); }); }); } - function Gwe(t, e, r, n = {}) { - return r == null || r.sort((i, s) => i.localeCompare(s)), { att: { [t]: Kwe(e, r, n) } }; + function Ywe(t, e, r, n = {}) { + return r == null || r.sort((i, s) => i.localeCompare(s)), { att: { [t]: Zwe(e, r, n) } }; } - function Kwe(t, e, r = {}) { + function Zwe(t, e, r = {}) { e = e == null ? void 0 : e.sort((i, s) => i.localeCompare(s)); const n = e.map((i) => ({ [`${t}/${i}`]: [r] })); return Object.assign({}, ...n); } - function iU(t) { - return ll(t), `urn:recap:${qwe(t).replace(/=/g, "")}`; + function sU(t) { + return ll(t), `urn:recap:${Kwe(t).replace(/=/g, "")}`; } - function Hd(t) { - const e = Wwe(t.replace("urn:recap:", "")); + function Fd(t) { + const e = Xwe(t.replace("urn:recap:", "")); return ll(e), e; } - function Xwe(t, e, r) { - const n = Gwe(t, e, r); - return iU(n); + function Jwe(t, e, r) { + const n = Ywe(t, e, r); + return sU(n); } - function Ywe(t) { + function Qwe(t) { return t && t.includes("urn:recap:"); } - function Zwe(t, e) { - const r = Hd(t), n = Hd(e), i = Jwe(r, n); - return iU(i); + function $we(t, e) { + const r = Fd(t), n = Fd(e), i = e5e(r, n); + return sU(i); } - function Jwe(t, e) { + function e5e(t, e) { ll(t), ll(e); const r = Object.keys(t.att).concat(Object.keys(e.att)).sort((i, s) => i.localeCompare(s)), n = { att: {} }; return r.forEach((i) => { var s, o; Object.keys(((s = t.att) == null ? void 0 : s[i]) || {}).concat(Object.keys(((o = e.att) == null ? void 0 : o[i]) || {})).sort((a, c) => a.localeCompare(c)).forEach((a) => { var c, u; - n.att[i] = Fwe(zwe({}, n.att[i]), { [a]: ((c = t.att[i]) == null ? void 0 : c[a]) || ((u = e.att[i]) == null ? void 0 : u[a]) }); + n.att[i] = Wwe(qwe({}, n.att[i]), { [a]: ((c = t.att[i]) == null ? void 0 : c[a]) || ((u = e.att[i]) == null ? void 0 : u[a]) }); }); }), n; } - function Qwe(t = "", e) { + function t5e(t = "", e) { ll(e); const r = "I further authorize the stated URI to perform the following actions on my behalf: "; if (t.includes(r)) @@ -80588,15 +80619,15 @@ ${gz(e, r)}`); const s = n.join(" "), o = `${r}${s}`; return `${t ? t + " " : ""}${o}`; } - function TM(t) { + function AM(t) { var e; - const r = Hd(t); + const r = Fd(t); ll(r); const n = (e = r.att) == null ? void 0 : e.eip155; return n ? Object.keys(n).map((i) => i.split("/")[1]) : []; } - function NM(t) { - const e = Hd(t); + function TM(t) { + const e = Fd(t); ll(e); const r = []; return Object.values(e.att).forEach((n) => { @@ -80606,85 +80637,85 @@ ${gz(e, r)}`); }); }), [...new Set(r.flat())]; } - function b1(t) { + function w1(t) { if (!t) return; const e = t == null ? void 0 : t[t.length - 1]; - return Ywe(e) ? e : void 0; + return Qwe(e) ? e : void 0; } - var sU = "base10"; + var oU = "base10"; var Si = "base16"; - var uv = "base64pad"; - var s9 = "utf8"; - var oU = 0; - var Xa = 1; - var $we = 0; - var IM = 1; - var lv = 12; - var o9 = 32; - function e5e() { - const t = Qx.generateKeyPair(); - return { privateKey: js(t.secretKey, Si), publicKey: js(t.publicKey, Si) }; - } - function fv() { - const t = eh.randomBytes(o9); - return js(t, Si); - } - function t5e(t, e) { - const r = Qx.sharedKey(uo(t, Si), uo(e, Si), true), n = new Bye(k2.SHA256, r).expand(o9); - return js(n, Si); - } - function w1(t) { - const e = k2.hash(uo(t, Si)); - return js(e, Si); + var cv = "base64pad"; + var i9 = "utf8"; + var aU = 0; + var Ga = 1; + var r5e = 0; + var NM = 1; + var uv = 12; + var s9 = 32; + function n5e() { + const t = Jx.generateKeyPair(); + return { privateKey: Us(t.secretKey, Si), publicKey: Us(t.publicKey, Si) }; + } + function lv() { + const t = $f.randomBytes(s9); + return Us(t, Si); + } + function i5e(t, e) { + const r = Jx.sharedKey(co(t, Si), co(e, Si), true), n = new Vye(R2.SHA256, r).expand(s9); + return Us(n, Si); + } + function v1(t) { + const e = R2.hash(co(t, Si)); + return Us(e, Si); } function Uu(t) { - const e = k2.hash(uo(t, s9)); - return js(e, Si); + const e = R2.hash(co(t, i9)); + return Us(e, Si); } - function r5e(t) { - return uo(`${t}`, sU); + function s5e(t) { + return co(`${t}`, oU); } function C0(t) { - return Number(js(t, sU)); + return Number(Us(t, oU)); } - function n5e(t) { - const e = r5e(typeof t.type < "u" ? t.type : oU); - if (C0(e) === Xa && typeof t.senderPublicKey > "u") + function o5e(t) { + const e = s5e(typeof t.type < "u" ? t.type : aU); + if (C0(e) === Ga && typeof t.senderPublicKey > "u") throw new Error("Missing sender public key for type 1 envelope"); - const r = typeof t.senderPublicKey < "u" ? uo(t.senderPublicKey, Si) : void 0, n = typeof t.iv < "u" ? uo(t.iv, Si) : eh.randomBytes(lv), i = new Zx.ChaCha20Poly1305(uo(t.symKey, Si)).seal(n, uo(t.message, s9)); - return s5e({ type: e, sealed: i, iv: n, senderPublicKey: r }); + const r = typeof t.senderPublicKey < "u" ? co(t.senderPublicKey, Si) : void 0, n = typeof t.iv < "u" ? co(t.iv, Si) : $f.randomBytes(uv), i = new Yx.ChaCha20Poly1305(co(t.symKey, Si)).seal(n, co(t.message, i9)); + return c5e({ type: e, sealed: i, iv: n, senderPublicKey: r }); } - function i5e(t) { - const e = new Zx.ChaCha20Poly1305(uo(t.symKey, Si)), { sealed: r, iv: n } = Vm(t.encoded), i = e.open(n, r); + function a5e(t) { + const e = new Yx.ChaCha20Poly1305(co(t.symKey, Si)), { sealed: r, iv: n } = zm(t.encoded), i = e.open(n, r); if (i === null) throw new Error("Failed to decrypt"); - return js(i, s9); + return Us(i, i9); } - function s5e(t) { - if (C0(t.type) === Xa) { + function c5e(t) { + if (C0(t.type) === Ga) { if (typeof t.senderPublicKey > "u") throw new Error("Missing sender public key for type 1 envelope"); - return js(ZS([t.type, t.senderPublicKey, t.iv, t.sealed]), uv); + return Us(YS([t.type, t.senderPublicKey, t.iv, t.sealed]), cv); } - return js(ZS([t.type, t.iv, t.sealed]), uv); + return Us(YS([t.type, t.iv, t.sealed]), cv); } - function Vm(t) { - const e = uo(t, uv), r = e.slice($we, IM), n = IM; - if (C0(r) === Xa) { - const a = n + o9, c = a + lv, u = e.slice(n, a), f = e.slice(a, c), p = e.slice(c); + function zm(t) { + const e = co(t, cv), r = e.slice(r5e, NM), n = NM; + if (C0(r) === Ga) { + const a = n + s9, c = a + uv, u = e.slice(n, a), f = e.slice(a, c), p = e.slice(c); return { type: r, sealed: p, iv: f, senderPublicKey: u }; } - const i = n + lv, s = e.slice(n, i), o = e.slice(i); + const i = n + uv, s = e.slice(n, i), o = e.slice(i); return { type: r, sealed: o, iv: s }; } - function o5e(t, e) { - const r = Vm(t); - return aU({ type: C0(r.type), senderPublicKey: typeof r.senderPublicKey < "u" ? js(r.senderPublicKey, Si) : void 0, receiverPublicKey: e == null ? void 0 : e.receiverPublicKey }); + function u5e(t, e) { + const r = zm(t); + return cU({ type: C0(r.type), senderPublicKey: typeof r.senderPublicKey < "u" ? Us(r.senderPublicKey, Si) : void 0, receiverPublicKey: e == null ? void 0 : e.receiverPublicKey }); } - function aU(t) { - const e = (t == null ? void 0 : t.type) || oU; - if (e === Xa) { + function cU(t) { + const e = (t == null ? void 0 : t.type) || aU; + if (e === Ga) { if (typeof (t == null ? void 0 : t.senderPublicKey) > "u") throw new Error("missing sender public key"); if (typeof (t == null ? void 0 : t.receiverPublicKey) > "u") @@ -80692,36 +80723,36 @@ ${gz(e, r)}`); } return { type: e, senderPublicKey: t == null ? void 0 : t.senderPublicKey, receiverPublicKey: t == null ? void 0 : t.receiverPublicKey }; } - function OM(t) { - return t.type === Xa && typeof t.senderPublicKey == "string" && typeof t.receiverPublicKey == "string"; + function IM(t) { + return t.type === Ga && typeof t.senderPublicKey == "string" && typeof t.receiverPublicKey == "string"; } - var a5e = "irn"; - function hv(t) { - return (t == null ? void 0 : t.relay) || { protocol: a5e }; + var l5e = "irn"; + function fv(t) { + return (t == null ? void 0 : t.relay) || { protocol: l5e }; } - function Yh(t) { - const e = Uye[t]; + function Xh(t) { + const e = zye[t]; if (typeof e > "u") throw new Error(`Relay Protocol not supported: ${t}`); return e; } - var c5e = Object.defineProperty; - var u5e = Object.defineProperties; - var l5e = Object.getOwnPropertyDescriptors; - var PM = Object.getOwnPropertySymbols; - var f5e = Object.prototype.hasOwnProperty; - var h5e = Object.prototype.propertyIsEnumerable; - var kM = (t, e, r) => e in t ? c5e(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var RM = (t, e) => { + var f5e = Object.defineProperty; + var h5e = Object.defineProperties; + var d5e = Object.getOwnPropertyDescriptors; + var OM = Object.getOwnPropertySymbols; + var p5e = Object.prototype.hasOwnProperty; + var m5e = Object.prototype.propertyIsEnumerable; + var PM = (t, e, r) => e in t ? f5e(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var kM = (t, e) => { for (var r in e || (e = {})) - f5e.call(e, r) && kM(t, r, e[r]); - if (PM) - for (var r of PM(e)) - h5e.call(e, r) && kM(t, r, e[r]); + p5e.call(e, r) && PM(t, r, e[r]); + if (OM) + for (var r of OM(e)) + m5e.call(e, r) && PM(t, r, e[r]); return t; }; - var d5e = (t, e) => u5e(t, l5e(e)); - function p5e(t, e = "-") { + var g5e = (t, e) => h5e(t, d5e(e)); + function y5e(t, e = "-") { const r = {}, n = "relay" + e; return Object.keys(t).forEach((i) => { if (i.startsWith(n)) { @@ -80730,77 +80761,77 @@ ${gz(e, r)}`); } }), r; } - function CM(t) { + function RM(t) { t = t.includes("wc://") ? t.replace("wc://", "") : t, t = t.includes("wc:") ? t.replace("wc:", "") : t; - const e = t.indexOf(":"), r = t.indexOf("?") !== -1 ? t.indexOf("?") : void 0, n = t.substring(0, e), i = t.substring(e + 1, r).split("@"), s = typeof r < "u" ? t.substring(r) : "", o = Vd.parse(s), a = typeof o.methods == "string" ? o.methods.split(",") : void 0; - return { protocol: n, topic: m5e(i[0]), version: parseInt(i[1], 10), symKey: o.symKey, relay: p5e(o), methods: a, expiryTimestamp: o.expiryTimestamp ? parseInt(o.expiryTimestamp, 10) : void 0 }; + const e = t.indexOf(":"), r = t.indexOf("?") !== -1 ? t.indexOf("?") : void 0, n = t.substring(0, e), i = t.substring(e + 1, r).split("@"), s = typeof r < "u" ? t.substring(r) : "", o = jd.parse(s), a = typeof o.methods == "string" ? o.methods.split(",") : void 0; + return { protocol: n, topic: b5e(i[0]), version: parseInt(i[1], 10), symKey: o.symKey, relay: y5e(o), methods: a, expiryTimestamp: o.expiryTimestamp ? parseInt(o.expiryTimestamp, 10) : void 0 }; } - function m5e(t) { + function b5e(t) { return t.startsWith("//") ? t.substring(2) : t; } - function g5e(t, e = "-") { + function w5e(t, e = "-") { const r = "relay", n = {}; return Object.keys(t).forEach((i) => { const s = r + e + i; t[i] && (n[s] = t[i]); }), n; } - function y5e(t) { - return `${t.protocol}:${t.topic}@${t.version}?` + Vd.stringify(RM(d5e(RM({ symKey: t.symKey }, g5e(t.relay)), { expiryTimestamp: t.expiryTimestamp }), t.methods ? { methods: t.methods.join(",") } : {})); + function v5e(t) { + return `${t.protocol}:${t.topic}@${t.version}?` + jd.stringify(kM(g5e(kM({ symKey: t.symKey }, w5e(t.relay)), { expiryTimestamp: t.expiryTimestamp }), t.methods ? { methods: t.methods.join(",") } : {})); } - function ch(t) { + function ah(t) { const e = []; return t.forEach((r) => { const [n, i] = r.split(":"); e.push(`${n}:${i}`); }), e; } - function b5e(t) { + function x5e(t) { const e = []; return Object.values(t).forEach((r) => { - e.push(...ch(r.accounts)); + e.push(...ah(r.accounts)); }), e; } - function w5e(t, e) { + function _5e(t, e) { const r = []; return Object.values(t).forEach((n) => { - ch(n.accounts).includes(e) && r.push(...n.methods); + ah(n.accounts).includes(e) && r.push(...n.methods); }), r; } - function v5e(t, e) { + function E5e(t, e) { const r = []; return Object.values(t).forEach((n) => { - ch(n.accounts).includes(e) && r.push(...n.events); + ah(n.accounts).includes(e) && r.push(...n.events); }), r; } - function x5e(t) { + function S5e(t) { const e = {}; return t == null || t.forEach((r) => { const [n, i] = r.split(":"); e[n] || (e[n] = { accounts: [], chains: [], events: [] }), e[n].accounts.push(r), e[n].chains.push(`${n}:${i}`); }), e; } - function DM(t, e) { + function CM(t, e) { e = e.map((n) => n.replace("did:pkh:", "")); - const r = x5e(e); + const r = S5e(e); for (const [n, i] of Object.entries(r)) - i.methods ? i.methods = $ye(i.methods, t) : i.methods = t, i.events = ["chainChanged", "accountsChanged"]; + i.methods ? i.methods = rbe(i.methods, t) : i.methods = t, i.events = ["chainChanged", "accountsChanged"]; return r; } - var _5e = { INVALID_METHOD: { message: "Invalid method.", code: 1001 }, INVALID_EVENT: { message: "Invalid event.", code: 1002 }, INVALID_UPDATE_REQUEST: { message: "Invalid update request.", code: 1003 }, INVALID_EXTEND_REQUEST: { message: "Invalid extend request.", code: 1004 }, INVALID_SESSION_SETTLE_REQUEST: { message: "Invalid session settle request.", code: 1005 }, UNAUTHORIZED_METHOD: { message: "Unauthorized method.", code: 3001 }, UNAUTHORIZED_EVENT: { message: "Unauthorized event.", code: 3002 }, UNAUTHORIZED_UPDATE_REQUEST: { message: "Unauthorized update request.", code: 3003 }, UNAUTHORIZED_EXTEND_REQUEST: { message: "Unauthorized extend request.", code: 3004 }, USER_REJECTED: { message: "User rejected.", code: 5e3 }, USER_REJECTED_CHAINS: { message: "User rejected chains.", code: 5001 }, USER_REJECTED_METHODS: { message: "User rejected methods.", code: 5002 }, USER_REJECTED_EVENTS: { message: "User rejected events.", code: 5003 }, UNSUPPORTED_CHAINS: { message: "Unsupported chains.", code: 5100 }, UNSUPPORTED_METHODS: { message: "Unsupported methods.", code: 5101 }, UNSUPPORTED_EVENTS: { message: "Unsupported events.", code: 5102 }, UNSUPPORTED_ACCOUNTS: { message: "Unsupported accounts.", code: 5103 }, UNSUPPORTED_NAMESPACE_KEY: { message: "Unsupported namespace key.", code: 5104 }, USER_DISCONNECTED: { message: "User disconnected.", code: 6e3 }, SESSION_SETTLEMENT_FAILED: { message: "Session settlement failed.", code: 7e3 }, WC_METHOD_UNSUPPORTED: { message: "Unsupported wc_ method.", code: 10001 } }; - var E5e = { NOT_INITIALIZED: { message: "Not initialized.", code: 1 }, NO_MATCHING_KEY: { message: "No matching key.", code: 2 }, RESTORE_WILL_OVERRIDE: { message: "Restore will override.", code: 3 }, RESUBSCRIBED: { message: "Resubscribed.", code: 4 }, MISSING_OR_INVALID: { message: "Missing or invalid.", code: 5 }, EXPIRED: { message: "Expired.", code: 6 }, UNKNOWN_TYPE: { message: "Unknown type.", code: 7 }, MISMATCHED_TOPIC: { message: "Mismatched topic.", code: 8 }, NON_CONFORMING_NAMESPACES: { message: "Non conforming namespaces.", code: 9 } }; + var M5e = { INVALID_METHOD: { message: "Invalid method.", code: 1001 }, INVALID_EVENT: { message: "Invalid event.", code: 1002 }, INVALID_UPDATE_REQUEST: { message: "Invalid update request.", code: 1003 }, INVALID_EXTEND_REQUEST: { message: "Invalid extend request.", code: 1004 }, INVALID_SESSION_SETTLE_REQUEST: { message: "Invalid session settle request.", code: 1005 }, UNAUTHORIZED_METHOD: { message: "Unauthorized method.", code: 3001 }, UNAUTHORIZED_EVENT: { message: "Unauthorized event.", code: 3002 }, UNAUTHORIZED_UPDATE_REQUEST: { message: "Unauthorized update request.", code: 3003 }, UNAUTHORIZED_EXTEND_REQUEST: { message: "Unauthorized extend request.", code: 3004 }, USER_REJECTED: { message: "User rejected.", code: 5e3 }, USER_REJECTED_CHAINS: { message: "User rejected chains.", code: 5001 }, USER_REJECTED_METHODS: { message: "User rejected methods.", code: 5002 }, USER_REJECTED_EVENTS: { message: "User rejected events.", code: 5003 }, UNSUPPORTED_CHAINS: { message: "Unsupported chains.", code: 5100 }, UNSUPPORTED_METHODS: { message: "Unsupported methods.", code: 5101 }, UNSUPPORTED_EVENTS: { message: "Unsupported events.", code: 5102 }, UNSUPPORTED_ACCOUNTS: { message: "Unsupported accounts.", code: 5103 }, UNSUPPORTED_NAMESPACE_KEY: { message: "Unsupported namespace key.", code: 5104 }, USER_DISCONNECTED: { message: "User disconnected.", code: 6e3 }, SESSION_SETTLEMENT_FAILED: { message: "Session settlement failed.", code: 7e3 }, WC_METHOD_UNSUPPORTED: { message: "Unsupported wc_ method.", code: 10001 } }; + var A5e = { NOT_INITIALIZED: { message: "Not initialized.", code: 1 }, NO_MATCHING_KEY: { message: "No matching key.", code: 2 }, RESTORE_WILL_OVERRIDE: { message: "Restore will override.", code: 3 }, RESUBSCRIBED: { message: "Resubscribed.", code: 4 }, MISSING_OR_INVALID: { message: "Missing or invalid.", code: 5 }, EXPIRED: { message: "Expired.", code: 6 }, UNKNOWN_TYPE: { message: "Unknown type.", code: 7 }, MISMATCHED_TOPIC: { message: "Mismatched topic.", code: 8 }, NON_CONFORMING_NAMESPACES: { message: "Non conforming namespaces.", code: 9 } }; function it(t, e) { - const { message: r, code: n } = E5e[t]; + const { message: r, code: n } = A5e[t]; return { message: e ? `${r} ${e}` : r, code: n }; } function xr(t, e) { - const { message: r, code: n } = _5e[t]; + const { message: r, code: n } = M5e[t]; return { message: e ? `${r} ${e}` : r, code: n }; } function D0(t, e) { return Array.isArray(t) ? typeof e < "u" && t.length ? t.every(e) : true : false; } - function zm(t) { + function Fm(t) { return Object.getPrototypeOf(t) === Object.prototype && Object.keys(t).length; } function _i(t) { @@ -80809,31 +80840,31 @@ ${gz(e, r)}`); function en(t, e) { return e && _i(t) ? true : typeof t == "string" && !!t.trim().length; } - function a9(t, e) { + function o9(t, e) { return e && _i(t) ? true : typeof t == "number" && !isNaN(t); } - function S5e(t, e) { + function T5e(t, e) { const { requiredNamespaces: r } = e, n = Object.keys(t.namespaces), i = Object.keys(r); let s = true; return Bu(i, n) ? (n.forEach((o) => { - const { accounts: a, methods: c, events: u } = t.namespaces[o], f = ch(a), p = r[o]; - (!Bu(gB(o, p), f) || !Bu(p.methods, c) || !Bu(p.events, u)) && (s = false); + const { accounts: a, methods: c, events: u } = t.namespaces[o], f = ah(a), p = r[o]; + (!Bu(yB(o, p), f) || !Bu(p.methods, c) || !Bu(p.events, u)) && (s = false); }), s) : false; } - function Fm(t) { + function Hm(t) { return en(t, false) && t.includes(":") ? t.split(":").length === 2 : false; } - function M5e(t) { + function N5e(t) { if (en(t, false) && t.includes(":")) { const e = t.split(":"); if (e.length === 3) { const r = e[0] + ":" + e[1]; - return !!e[2] && Fm(r); + return !!e[2] && Hm(r); } } return false; } - function A5e(t) { + function I5e(t) { if (en(t, false)) try { return typeof new URL(t) < "u"; @@ -80842,125 +80873,125 @@ ${gz(e, r)}`); } return false; } - function T5e(t) { + function O5e(t) { var e; return (e = t == null ? void 0 : t.proposer) == null ? void 0 : e.publicKey; } - function N5e(t) { + function P5e(t) { return t == null ? void 0 : t.topic; } - function I5e(t, e) { + function k5e(t, e) { let r = null; return en(t == null ? void 0 : t.publicKey, false) || (r = it("MISSING_OR_INVALID", `${e} controller public key should be a string`)), r; } - function LM(t) { + function DM(t) { let e = true; return D0(t) ? t.length && (e = t.every((r) => en(r, false))) : e = false, e; } - function O5e(t, e, r) { + function R5e(t, e, r) { let n = null; return D0(e) && e.length ? e.forEach((i) => { - n || Fm(i) || (n = xr("UNSUPPORTED_CHAINS", `${r}, chain ${i} should be a string and conform to "namespace:chainId" format`)); - }) : Fm(t) || (n = xr("UNSUPPORTED_CHAINS", `${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)), n; + n || Hm(i) || (n = xr("UNSUPPORTED_CHAINS", `${r}, chain ${i} should be a string and conform to "namespace:chainId" format`)); + }) : Hm(t) || (n = xr("UNSUPPORTED_CHAINS", `${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)), n; } - function P5e(t, e, r) { + function C5e(t, e, r) { let n = null; return Object.entries(t).forEach(([i, s]) => { if (n) return; - const o = O5e(i, gB(i, s), `${e} ${r}`); + const o = R5e(i, yB(i, s), `${e} ${r}`); o && (n = o); }), n; } - function k5e(t, e) { + function D5e(t, e) { let r = null; return D0(t) ? t.forEach((n) => { - r || M5e(n) || (r = xr("UNSUPPORTED_ACCOUNTS", `${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`)); + r || N5e(n) || (r = xr("UNSUPPORTED_ACCOUNTS", `${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`)); }) : r = xr("UNSUPPORTED_ACCOUNTS", `${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`), r; } - function R5e(t, e) { + function L5e(t, e) { let r = null; return Object.values(t).forEach((n) => { if (r) return; - const i = k5e(n == null ? void 0 : n.accounts, `${e} namespace`); + const i = D5e(n == null ? void 0 : n.accounts, `${e} namespace`); i && (r = i); }), r; } - function C5e(t, e) { + function B5e(t, e) { let r = null; - return LM(t == null ? void 0 : t.methods) ? LM(t == null ? void 0 : t.events) || (r = xr("UNSUPPORTED_EVENTS", `${e}, events should be an array of strings or empty array for no events`)) : r = xr("UNSUPPORTED_METHODS", `${e}, methods should be an array of strings or empty array for no methods`), r; + return DM(t == null ? void 0 : t.methods) ? DM(t == null ? void 0 : t.events) || (r = xr("UNSUPPORTED_EVENTS", `${e}, events should be an array of strings or empty array for no events`)) : r = xr("UNSUPPORTED_METHODS", `${e}, methods should be an array of strings or empty array for no methods`), r; } - function cU(t, e) { + function uU(t, e) { let r = null; return Object.values(t).forEach((n) => { if (r) return; - const i = C5e(n, `${e}, namespace`); + const i = B5e(n, `${e}, namespace`); i && (r = i); }), r; } - function D5e(t, e, r) { + function U5e(t, e, r) { let n = null; - if (t && zm(t)) { - const i = cU(t, e); + if (t && Fm(t)) { + const i = uU(t, e); i && (n = i); - const s = P5e(t, e, r); + const s = C5e(t, e, r); s && (n = s); } else n = it("MISSING_OR_INVALID", `${e}, ${r} should be an object with data`); return n; } - function c3(t, e) { + function a3(t, e) { let r = null; - if (t && zm(t)) { - const n = cU(t, e); + if (t && Fm(t)) { + const n = uU(t, e); n && (r = n); - const i = R5e(t, e); + const i = L5e(t, e); i && (r = i); } else r = it("MISSING_OR_INVALID", `${e}, namespaces should be an object with data`); return r; } - function uU(t) { + function lU(t) { return en(t.protocol, true); } - function L5e(t, e) { + function j5e(t, e) { let r = false; return e && !t ? r = true : t && D0(t) && t.length && t.forEach((n) => { - r = uU(n); + r = lU(n); }), r; } - function B5e(t) { + function V5e(t) { return typeof t == "number"; } - function Bi(t) { + function Li(t) { return typeof t < "u" && typeof t !== null; } - function U5e(t) { - return !(!t || typeof t != "object" || !t.code || !a9(t.code, false) || !t.message || !en(t.message, false)); + function z5e(t) { + return !(!t || typeof t != "object" || !t.code || !o9(t.code, false) || !t.message || !en(t.message, false)); } - function j5e(t) { + function F5e(t) { return !(_i(t) || !en(t.method, false)); } - function V5e(t) { - return !(_i(t) || _i(t.result) && _i(t.error) || !a9(t.id, false) || !en(t.jsonrpc, false)); + function H5e(t) { + return !(_i(t) || _i(t.result) && _i(t.error) || !o9(t.id, false) || !en(t.jsonrpc, false)); } - function z5e(t) { + function q5e(t) { return !(_i(t) || !en(t.name, false)); } - function BM(t, e) { - return !(!Fm(e) || !b5e(t).includes(e)); + function LM(t, e) { + return !(!Hm(e) || !x5e(t).includes(e)); } - function F5e(t, e, r) { - return en(r, false) ? w5e(t, e).includes(r) : false; + function W5e(t, e, r) { + return en(r, false) ? _5e(t, e).includes(r) : false; } - function H5e(t, e, r) { - return en(r, false) ? v5e(t, e).includes(r) : false; + function G5e(t, e, r) { + return en(r, false) ? E5e(t, e).includes(r) : false; } - function UM(t, e, r) { + function BM(t, e, r) { let n = null; - const i = q5e(t), s = W5e(e), o = Object.keys(i), a = Object.keys(s), c = jM(Object.keys(t)), u = jM(Object.keys(e)), f = c.filter((p) => !u.includes(p)); + const i = K5e(t), s = X5e(e), o = Object.keys(i), a = Object.keys(s), c = UM(Object.keys(t)), u = UM(Object.keys(e)), f = c.filter((p) => !u.includes(p)); return f.length && (n = it("NON_CONFORMING_NAMESPACES", `${r} namespaces keys don't satisfy requiredNamespaces. Required: ${f.toString()} Received: ${Object.keys(e).toString()}`)), Bu(o, a) || (n = it("NON_CONFORMING_NAMESPACES", `${r} namespaces chains don't satisfy required namespaces. @@ -80968,7 +80999,7 @@ ${gz(e, r)}`); Approved: ${a.toString()}`)), Object.keys(e).forEach((p) => { if (!p.includes(":") || n) return; - const b = ch(e[p].accounts); + const b = ah(e[p].accounts); b.includes(p) || (n = it("NON_CONFORMING_NAMESPACES", `${r} namespaces accounts don't satisfy namespace accounts for ${p} Required: ${p} Approved: ${b.toString()}`)); @@ -80976,7 +81007,7 @@ ${gz(e, r)}`); n || (Bu(i[p].methods, s[p].methods) ? Bu(i[p].events, s[p].events) || (n = it("NON_CONFORMING_NAMESPACES", `${r} namespaces events don't satisfy namespace events for ${p}`)) : n = it("NON_CONFORMING_NAMESPACES", `${r} namespaces methods don't satisfy namespace methods for ${p}`)); }), n; } - function q5e(t) { + function K5e(t) { const e = {}; return Object.keys(t).forEach((r) => { var n; @@ -80985,140 +81016,140 @@ ${gz(e, r)}`); }); }), e; } - function jM(t) { + function UM(t) { return [...new Set(t.map((e) => e.includes(":") ? e.split(":")[0] : e))]; } - function W5e(t) { + function X5e(t) { const e = {}; return Object.keys(t).forEach((r) => { if (r.includes(":")) e[r] = t[r]; else { - const n = ch(t[r].accounts); + const n = ah(t[r].accounts); n == null || n.forEach((i) => { e[i] = { accounts: t[r].accounts.filter((s) => s.includes(`${i}:`)), methods: t[r].methods, events: t[r].events }; }); } }), e; } - function G5e(t, e) { - return a9(t, false) && t <= e.max && t >= e.min; + function Y5e(t, e) { + return o9(t, false) && t <= e.max && t >= e.min; } - function VM() { + function jM() { const t = k0(); return new Promise((e) => { switch (t) { case is.browser: - e(K5e()); + e(Z5e()); break; case is.reactNative: - e(X5e()); + e(J5e()); break; case is.node: - e(Y5e()); + e(Q5e()); break; default: e(true); } }); } - function K5e() { - return nh() && (navigator == null ? void 0 : navigator.onLine); + function Z5e() { + return rh() && (navigator == null ? void 0 : navigator.onLine); } - async function X5e() { - if (rh() && typeof global < "u" && global != null && global.NetInfo) { + async function J5e() { + if (th() && typeof global < "u" && global != null && global.NetInfo) { const t = await (global == null ? void 0 : global.NetInfo.fetch()); return t == null ? void 0 : t.isConnected; } return true; } - function Y5e() { + function Q5e() { return true; } - function Z5e(t) { + function $5e(t) { switch (k0()) { case is.browser: - J5e(t); + eve(t); break; case is.reactNative: - Q5e(t); + tve(t); break; } } - function J5e(t) { - !rh() && nh() && (window.addEventListener("online", () => t(true)), window.addEventListener("offline", () => t(false))); + function eve(t) { + !th() && rh() && (window.addEventListener("online", () => t(true)), window.addEventListener("offline", () => t(false))); } - function Q5e(t) { - rh() && typeof global < "u" && global != null && global.NetInfo && (global == null || global.NetInfo.addEventListener((e) => t(e == null ? void 0 : e.isConnected))); + function tve(t) { + th() && typeof global < "u" && global != null && global.NetInfo && (global == null || global.NetInfo.addEventListener((e) => t(e == null ? void 0 : e.isConnected))); } - var u3 = {}; - var Lh = class { + var c3 = {}; + var Dh = class { static get(e) { - return u3[e]; + return c3[e]; } static set(e, r) { - u3[e] = r; + c3[e] = r; } static delete(e) { - delete u3[e]; - } - }; - var $5e = "PARSE_ERROR"; - var eve = "INVALID_REQUEST"; - var tve = "METHOD_NOT_FOUND"; - var rve = "INVALID_PARAMS"; - var lU = "INTERNAL_ERROR"; - var c9 = "SERVER_ERROR"; - var nve = [-32700, -32600, -32601, -32602, -32603]; - var ad = { - [$5e]: { code: -32700, message: "Parse error" }, - [eve]: { code: -32600, message: "Invalid Request" }, - [tve]: { code: -32601, message: "Method not found" }, - [rve]: { code: -32602, message: "Invalid params" }, - [lU]: { code: -32603, message: "Internal error" }, - [c9]: { code: -32e3, message: "Server error" } - }; - var fU = c9; - function ive(t) { - return nve.includes(t); - } - function zM(t) { - return Object.keys(ad).includes(t) ? ad[t] : ad[fU]; - } - function sve(t) { - const e = Object.values(ad).find((r) => r.code === t); - return e || ad[fU]; - } - function ove(t, e, r) { + delete c3[e]; + } + }; + var rve = "PARSE_ERROR"; + var nve = "INVALID_REQUEST"; + var ive = "METHOD_NOT_FOUND"; + var sve = "INVALID_PARAMS"; + var fU = "INTERNAL_ERROR"; + var a9 = "SERVER_ERROR"; + var ove = [-32700, -32600, -32601, -32602, -32603]; + var od = { + [rve]: { code: -32700, message: "Parse error" }, + [nve]: { code: -32600, message: "Invalid Request" }, + [ive]: { code: -32601, message: "Method not found" }, + [sve]: { code: -32602, message: "Invalid params" }, + [fU]: { code: -32603, message: "Internal error" }, + [a9]: { code: -32e3, message: "Server error" } + }; + var hU = a9; + function ave(t) { + return ove.includes(t); + } + function VM(t) { + return Object.keys(od).includes(t) ? od[t] : od[hU]; + } + function cve(t) { + const e = Object.values(od).find((r) => r.code === t); + return e || od[hU]; + } + function uve(t, e, r) { return t.message.includes("getaddrinfo ENOTFOUND") || t.message.includes("connect ECONNREFUSED") ? new Error(`Unavailable ${r} RPC url at ${e}`) : t; } - var hU = {}; - var dv = function(t, e) { - return dv = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { + var dU = {}; + var hv = function(t, e) { + return hv = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { r.__proto__ = n; } || function(r, n) { for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]); - }, dv(t, e); + }, hv(t, e); }; - function ave(t, e) { - dv(t, e); + function lve(t, e) { + hv(t, e); function r() { this.constructor = t; } t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r()); } - var pv = function() { - return pv = Object.assign || function(e) { + var dv = function() { + return dv = Object.assign || function(e) { for (var r, n = 1, i = arguments.length; n < i; n++) { r = arguments[n]; for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]); } return e; - }, pv.apply(this, arguments); + }, dv.apply(this, arguments); }; - function cve(t, e) { + function fve(t, e) { var r = {}; for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]); @@ -81127,7 +81158,7 @@ ${gz(e, r)}`); e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (r[n[i]] = t[n[i]]); return r; } - function uve(t, e, r, n) { + function hve(t, e, r, n) { var i = arguments.length, s = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, o; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(t, e, r, n); @@ -81136,16 +81167,16 @@ ${gz(e, r)}`); (o = t[a]) && (s = (i < 3 ? o(s) : i > 3 ? o(e, r, s) : o(e, r)) || s); return i > 3 && s && Object.defineProperty(e, r, s), s; } - function lve(t, e) { + function dve(t, e) { return function(r, n) { e(r, n, t); }; } - function fve(t, e) { + function pve(t, e) { if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(t, e); } - function hve(t, e, r, n) { + function mve(t, e, r, n) { function i(s) { return s instanceof r ? s : new r(function(o) { o(s); @@ -81172,7 +81203,7 @@ ${gz(e, r)}`); u((n = n.apply(t, e || [])).next()); }); } - function dve(t, e) { + function gve(t, e) { var r = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -81237,14 +81268,14 @@ ${gz(e, r)}`); return { value: u[0] ? u[1] : void 0, done: true }; } } - function pve(t, e, r, n) { + function yve(t, e, r, n) { n === void 0 && (n = r), t[n] = e[r]; } - function mve(t, e) { + function bve(t, e) { for (var r in t) r !== "default" && !e.hasOwnProperty(r) && (e[r] = t[r]); } - function mv(t) { + function pv(t) { var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0; if (r) return r.call(t); @@ -81256,7 +81287,7 @@ ${gz(e, r)}`); }; throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); } - function dU(t, e) { + function pU(t, e) { var r = typeof Symbol == "function" && t[Symbol.iterator]; if (!r) return t; @@ -81276,12 +81307,12 @@ ${gz(e, r)}`); } return s; } - function gve() { + function wve() { for (var t = [], e = 0; e < arguments.length; e++) - t = t.concat(dU(arguments[e])); + t = t.concat(pU(arguments[e])); return t; } - function yve() { + function vve() { for (var t = 0, e = 0, r = arguments.length; e < r; e++) t += arguments[e].length; for (var n = Array(t), i = 0, e = 0; e < r; e++) @@ -81289,10 +81320,10 @@ ${gz(e, r)}`); n[i] = s[o]; return n; } - function qd(t) { - return this instanceof qd ? (this.v = t, this) : new qd(t); + function Hd(t) { + return this instanceof Hd ? (this.v = t, this) : new Hd(t); } - function bve(t, e, r) { + function xve(t, e, r) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var n = r.apply(t, e || []), i, s = []; @@ -81314,7 +81345,7 @@ ${gz(e, r)}`); } } function c(b) { - b.value instanceof qd ? Promise.resolve(b.value.v).then(u, f) : p(s[0][2], b); + b.value instanceof Hd ? Promise.resolve(b.value.v).then(u, f) : p(s[0][2], b); } function u(b) { a("next", b); @@ -81326,7 +81357,7 @@ ${gz(e, r)}`); b(E), s.shift(), s.length && a(s[0][0], s[0][1]); } } - function wve(t) { + function _ve(t) { var e, r; return e = {}, n("next"), n("throw", function(i) { throw i; @@ -81335,15 +81366,15 @@ ${gz(e, r)}`); }, e; function n(i, s) { e[i] = t[i] ? function(o) { - return (r = !r) ? { value: qd(t[i](o)), done: i === "return" } : s ? s(o) : o; + return (r = !r) ? { value: Hd(t[i](o)), done: i === "return" } : s ? s(o) : o; } : s; } } - function vve(t) { + function Eve(t) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var e = t[Symbol.asyncIterator], r; - return e ? e.call(t) : (t = typeof mv == "function" ? mv(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { + return e ? e.call(t) : (t = typeof pv == "function" ? pv(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { return this; }, r); function n(s) { @@ -81359,10 +81390,10 @@ ${gz(e, r)}`); }, o); } } - function xve(t, e) { + function Sve(t, e) { return Object.defineProperty ? Object.defineProperty(t, "raw", { value: e }) : t.raw = e, t; } - function _ve(t) { + function Mve(t) { if (t && t.__esModule) return t; var e = {}; @@ -81371,170 +81402,170 @@ ${gz(e, r)}`); Object.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e.default = t, e; } - function Eve(t) { + function Ave(t) { return t && t.__esModule ? t : { default: t }; } - function Sve(t, e) { + function Tve(t, e) { if (!e.has(t)) throw new TypeError("attempted to get private field on non-instance"); return e.get(t); } - function Mve(t, e, r) { + function Nve(t, e, r) { if (!e.has(t)) throw new TypeError("attempted to set private field on non-instance"); return e.set(t, r), r; } - var Ave = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Ive = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, get __assign() { - return pv; - }, - __asyncDelegator: wve, - __asyncGenerator: bve, - __asyncValues: vve, - __await: qd, - __awaiter: hve, - __classPrivateFieldGet: Sve, - __classPrivateFieldSet: Mve, - __createBinding: pve, - __decorate: uve, - __exportStar: mve, - __extends: ave, - __generator: dve, - __importDefault: Eve, - __importStar: _ve, - __makeTemplateObject: xve, - __metadata: fve, - __param: lve, - __read: dU, - __rest: cve, - __spread: gve, - __spreadArrays: yve, - __values: mv + return dv; + }, + __asyncDelegator: _ve, + __asyncGenerator: xve, + __asyncValues: Eve, + __await: Hd, + __awaiter: mve, + __classPrivateFieldGet: Tve, + __classPrivateFieldSet: Nve, + __createBinding: yve, + __decorate: hve, + __exportStar: bve, + __extends: lve, + __generator: gve, + __importDefault: Ave, + __importStar: Mve, + __makeTemplateObject: Sve, + __metadata: pve, + __param: dve, + __read: pU, + __rest: fve, + __spread: wve, + __spreadArrays: vve, + __values: pv }, Symbol.toStringTag, { value: "Module" })); - var Tve = /* @__PURE__ */ fn(Ave); - var Ea = {}; - var FM; - function Nve() { - if (FM) - return Ea; - FM = 1, Object.defineProperty(Ea, "__esModule", { value: true }), Ea.isBrowserCryptoAvailable = Ea.getSubtleCrypto = Ea.getBrowerCrypto = void 0; + var Ove = /* @__PURE__ */ fn(Ive); + var xa = {}; + var zM; + function Pve() { + if (zM) + return xa; + zM = 1, Object.defineProperty(xa, "__esModule", { value: true }), xa.isBrowserCryptoAvailable = xa.getSubtleCrypto = xa.getBrowerCrypto = void 0; function t() { return (Lt == null ? void 0 : Lt.crypto) || (Lt == null ? void 0 : Lt.msCrypto) || {}; } - Ea.getBrowerCrypto = t; + xa.getBrowerCrypto = t; function e() { const n = t(); return n.subtle || n.webkitSubtle; } - Ea.getSubtleCrypto = e; + xa.getSubtleCrypto = e; function r() { return !!t() && !!e(); } - return Ea.isBrowserCryptoAvailable = r, Ea; + return xa.isBrowserCryptoAvailable = r, xa; } - var Sa = {}; - var HM; - function Ive() { - if (HM) - return Sa; - HM = 1, Object.defineProperty(Sa, "__esModule", { value: true }), Sa.isBrowser = Sa.isNode = Sa.isReactNative = void 0; + var _a = {}; + var FM; + function kve() { + if (FM) + return _a; + FM = 1, Object.defineProperty(_a, "__esModule", { value: true }), _a.isBrowser = _a.isNode = _a.isReactNative = void 0; function t() { return typeof document > "u" && typeof navigator < "u" && navigator.product === "ReactNative"; } - Sa.isReactNative = t; + _a.isReactNative = t; function e() { return typeof process < "u" && typeof process.versions < "u" && typeof process.versions.node < "u"; } - Sa.isNode = e; + _a.isNode = e; function r() { return !t() && !e(); } - return Sa.isBrowser = r, Sa; + return _a.isBrowser = r, _a; } (function(t) { Object.defineProperty(t, "__esModule", { value: true }); - const e = Tve; - e.__exportStar(Nve(), t), e.__exportStar(Ive(), t); - })(hU); - function Dc(t = 3) { + const e = Ove; + e.__exportStar(Pve(), t), e.__exportStar(kve(), t); + })(dU); + function Rc(t = 3) { const e = Date.now() * Math.pow(10, t), r = Math.floor(Math.random() * Math.pow(10, t)); return e + r; } function ju(t = 6) { - return BigInt(Dc(t)); + return BigInt(Rc(t)); } function _f(t, e, r) { return { - id: r || Dc(), + id: r || Rc(), jsonrpc: "2.0", method: t, params: e }; } - function u9(t, e) { + function c9(t, e) { return { id: t, jsonrpc: "2.0", result: e }; } - function l9(t, e, r) { + function u9(t, e, r) { return { id: t, jsonrpc: "2.0", - error: Ove(e, r) + error: Rve(e, r) }; } - function Ove(t, e) { - return typeof t > "u" ? zM(lU) : (typeof t == "string" && (t = Object.assign(Object.assign({}, zM(c9)), { message: t })), typeof e < "u" && (t.data = e), ive(t.code) && (t = sve(t.code)), t); + function Rve(t, e) { + return typeof t > "u" ? VM(fU) : (typeof t == "string" && (t = Object.assign(Object.assign({}, VM(a9)), { message: t })), typeof e < "u" && (t.data = e), ave(t.code) && (t = cve(t.code)), t); } - var Pve = class { + var Cve = class { }; - var kve = class extends Pve { + var Dve = class extends Cve { constructor() { super(); } }; - var Rve = class extends kve { + var Lve = class extends Dve { constructor(e) { super(); } }; - var Cve = "^wss?:"; - function Dve(t) { + var Bve = "^wss?:"; + function Uve(t) { const e = t.match(new RegExp(/^\w+:/, "gi")); if (!(!e || !e.length)) return e[0]; } - function Lve(t, e) { - const r = Dve(t); + function jve(t, e) { + const r = Uve(t); return typeof r > "u" ? false : new RegExp(e).test(r); } - function qM(t) { - return Lve(t, Cve); + function HM(t) { + return jve(t, Bve); } - function Bve(t) { + function Vve(t) { return new RegExp("wss?://localhost(:d{2,5})?").test(t); } - function pU(t) { + function mU(t) { return typeof t == "object" && "id" in t && "jsonrpc" in t && t.jsonrpc === "2.0"; } - function f9(t) { - return pU(t) && "method" in t; + function l9(t) { + return mU(t) && "method" in t; } - function C2(t) { - return pU(t) && (Bo(t) || Rs(t)); + function D2(t) { + return mU(t) && (Lo(t) || Rs(t)); } - function Bo(t) { + function Lo(t) { return "result" in t; } function Rs(t) { return "error" in t; } - var Uve = class extends Rve { + var zve = class extends Lve { constructor(e) { - super(e), this.events = new xo.EventEmitter(), this.hasRegisteredEventListeners = false, this.connection = this.setConnection(e), this.connection.connected && this.registerEventListeners(); + super(e), this.events = new vo.EventEmitter(), this.hasRegisteredEventListeners = false, this.connection = this.setConnection(e), this.connection.connected && this.registerEventListeners(); } async connect(e = this.connection) { await this.open(e); @@ -81579,7 +81610,7 @@ ${gz(e, r)}`); return e; } onPayload(e) { - this.events.emit("payload", e), C2(e) ? this.events.emit(`${e.id}`, e) : this.events.emit("message", { type: e.method, data: e.params }); + this.events.emit("payload", e), D2(e) ? this.events.emit(`${e.id}`, e) : this.events.emit("message", { type: e.method, data: e.params }); } onClose(e) { e && e.code === 3e3 && this.events.emit("error", new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason ? `(${e.reason})` : ""}`)), this.events.emit("disconnect"); @@ -81594,14 +81625,14 @@ ${gz(e, r)}`); this.hasRegisteredEventListeners || (this.connection.on("payload", (e) => this.onPayload(e)), this.connection.on("close", (e) => this.onClose(e)), this.connection.on("error", (e) => this.events.emit("error", e)), this.connection.on("register_error", (e) => this.onClose()), this.hasRegisteredEventListeners = true); } }; - var jve = () => typeof WebSocket < "u" ? WebSocket : typeof global < "u" && typeof global.WebSocket < "u" ? global.WebSocket : typeof window < "u" && typeof window.WebSocket < "u" ? window.WebSocket : typeof self < "u" && typeof self.WebSocket < "u" ? self.WebSocket : require_browser(); - var Vve = () => typeof WebSocket < "u" || typeof global < "u" && typeof global.WebSocket < "u" || typeof window < "u" && typeof window.WebSocket < "u" || typeof self < "u" && typeof self.WebSocket < "u"; - var WM = (t) => t.split("?")[0]; - var GM = 10; - var zve = jve(); - var Fve = class { + var Fve = () => typeof WebSocket < "u" ? WebSocket : typeof global < "u" && typeof global.WebSocket < "u" ? global.WebSocket : typeof window < "u" && typeof window.WebSocket < "u" ? window.WebSocket : typeof self < "u" && typeof self.WebSocket < "u" ? self.WebSocket : require_browser(); + var Hve = () => typeof WebSocket < "u" || typeof global < "u" && typeof global.WebSocket < "u" || typeof window < "u" && typeof window.WebSocket < "u" || typeof self < "u" && typeof self.WebSocket < "u"; + var qM = (t) => t.split("?")[0]; + var WM = 10; + var qve = Fve(); + var Wve = class { constructor(e) { - if (this.url = e, this.events = new xo.EventEmitter(), this.registering = false, !qM(e)) + if (this.url = e, this.events = new vo.EventEmitter(), this.registering = false, !HM(e)) throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`); this.url = e; } @@ -81646,7 +81677,7 @@ ${gz(e, r)}`); } } register(e = this.url) { - if (!qM(e)) + if (!HM(e)) throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`); if (this.registering) { const r = this.events.getMaxListeners(); @@ -81661,8 +81692,8 @@ ${gz(e, r)}`); }); } return this.url = e, this.registering = true, new Promise((r, n) => { - const i = new URLSearchParams(e).get("origin"), s = hU.isReactNative() ? { headers: { origin: i } } : { rejectUnauthorized: !Bve(e) }, o = new zve(e, [], s); - Vve() ? o.onerror = (a) => { + const i = new URLSearchParams(e).get("origin"), s = dU.isReactNative() ? { headers: { origin: i } } : { rejectUnauthorized: !Vve(e) }, o = new qve(e, [], s); + Hve() ? o.onerror = (a) => { const c = a; n(this.emitError(c.error)); } : o.on("error", (a) => { @@ -81681,26 +81712,26 @@ ${gz(e, r)}`); onPayload(e) { if (typeof e.data > "u") return; - const r = typeof e.data == "string" ? E2(e.data) : e.data; + const r = typeof e.data == "string" ? S2(e.data) : e.data; this.events.emit("payload", r); } onError(e, r) { - const n = this.parseError(r), i = n.message || n.toString(), s = l9(e, i); + const n = this.parseError(r), i = n.message || n.toString(), s = u9(e, i); this.events.emit("payload", s); } parseError(e, r = this.url) { - return ove(e, WM(r), "WS"); + return uve(e, qM(r), "WS"); } resetMaxListeners() { - this.events.getMaxListeners() > GM && this.events.setMaxListeners(GM); + this.events.getMaxListeners() > WM && this.events.setMaxListeners(WM); } emitError(e) { - const r = this.parseError(new Error((e == null ? void 0 : e.message) || `WebSocket connection failed for host: ${WM(this.url)}`)); + const r = this.parseError(new Error((e == null ? void 0 : e.message) || `WebSocket connection failed for host: ${qM(this.url)}`)); return this.events.emit("register_error", r), r; } }; - var Hm = { exports: {} }; - Hm.exports; + var qm = { exports: {} }; + qm.exports; (function(t, e) { var r = 200, n = "__lodash_hash_undefined__", i = 1, s = 2, o = 9007199254740991, a = "[object Arguments]", c = "[object Array]", u = "[object AsyncFunction]", f = "[object Boolean]", p = "[object Date]", b = "[object Error]", E = "[object Function]", _ = "[object GeneratorFunction]", N = "[object Map]", k = "[object Number]", F = "[object Null]", L = "[object Object]", D = "[object Promise]", q = "[object Proxy]", W = "[object RegExp]", z = "[object Set]", T = "[object String]", I = "[object Symbol]", H = "[object Undefined]", X = "[object WeakMap]", V = "[object ArrayBuffer]", S = "[object DataView]", d = "[object Float32Array]", l = "[object Float64Array]", h = "[object Int8Array]", y = "[object Int16Array]", x = "[object Int32Array]", v = "[object Uint8Array]", M = "[object Uint8ClampedArray]", w = "[object Uint16Array]", g = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, Q = /^(?:0|[1-9]\d*)$/, A = {}; A[d] = A[l] = A[h] = A[y] = A[x] = A[v] = A[M] = A[w] = A[g] = true, A[a] = A[c] = A[V] = A[f] = A[S] = A[p] = A[b] = A[E] = A[N] = A[k] = A[L] = A[W] = A[z] = A[T] = A[X] = false; @@ -81710,55 +81741,55 @@ ${gz(e, r)}`); } catch { } }(), ie = ae && ae.isTypedArray; - function Z(ue, _e) { - for (var Fe = -1, xt = ue == null ? 0 : ue.length, Sr = 0, jt = []; ++Fe < xt; ) { - var Gr = ue[Fe]; - _e(Gr, Fe, ue) && (jt[Sr++] = Gr); + function Z(ue, xe) { + for (var Fe = -1, wt = ue == null ? 0 : ue.length, Sr = 0, jt = []; ++Fe < wt; ) { + var Wr = ue[Fe]; + xe(Wr, Fe, ue) && (jt[Sr++] = Wr); } return jt; } - function ce(ue, _e) { - for (var Fe = -1, xt = _e.length, Sr = ue.length; ++Fe < xt; ) - ue[Sr + Fe] = _e[Fe]; + function ce(ue, xe) { + for (var Fe = -1, wt = xe.length, Sr = ue.length; ++Fe < wt; ) + ue[Sr + Fe] = xe[Fe]; return ue; } - function oe(ue, _e) { - for (var Fe = -1, xt = ue == null ? 0 : ue.length; ++Fe < xt; ) - if (_e(ue[Fe], Fe, ue)) + function oe(ue, xe) { + for (var Fe = -1, wt = ue == null ? 0 : ue.length; ++Fe < wt; ) + if (xe(ue[Fe], Fe, ue)) return true; return false; } - function me(ue, _e) { - for (var Fe = -1, xt = Array(ue); ++Fe < ue; ) - xt[Fe] = _e(Fe); - return xt; + function me(ue, xe) { + for (var Fe = -1, wt = Array(ue); ++Fe < ue; ) + wt[Fe] = xe(Fe); + return wt; } function pe(ue) { - return function(_e) { - return ue(_e); + return function(xe) { + return ue(xe); }; } - function se(ue, _e) { - return ue.has(_e); + function se(ue, xe) { + return ue.has(xe); } - function le(ue, _e) { - return ue == null ? void 0 : ue[_e]; + function le(ue, xe) { + return ue == null ? void 0 : ue[xe]; } function be(ue) { - var _e = -1, Fe = Array(ue.size); - return ue.forEach(function(xt, Sr) { - Fe[++_e] = [Sr, xt]; + var xe = -1, Fe = Array(ue.size); + return ue.forEach(function(wt, Sr) { + Fe[++xe] = [Sr, wt]; }), Fe; } - function ye(ue, _e) { + function ye(ue, xe) { return function(Fe) { - return ue(_e(Fe)); + return ue(xe(Fe)); }; } function Ee(ue) { - var _e = -1, Fe = Array(ue.size); - return ue.forEach(function(xt) { - Fe[++_e] = xt; + var xe = -1, Fe = Array(ue.size); + return ue.forEach(function(wt) { + Fe[++xe] = wt; }), Fe; } var Te = Array.prototype, C = Function.prototype, O = Object.prototype, B = j["__core-js_shared__"], $ = C.toString, te = O.hasOwnProperty, J = function() { @@ -81766,72 +81797,72 @@ ${gz(e, r)}`); return ue ? "Symbol(src)_1." + ue : ""; }(), ne = O.toString, fe = RegExp( "^" + $.call(te).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ), ge = Y ? j.Buffer : void 0, de = j.Symbol, ve = j.Uint8Array, Ae = O.propertyIsEnumerable, Ne = Te.splice, De = de ? de.toStringTag : void 0, ut = Object.getOwnPropertySymbols, Ve = ge ? ge.isBuffer : void 0, Ze = ye(Object.keys, Object), Ge = Dl(j, "DataView"), ke = Dl(j, "Map"), Re = Dl(j, "Promise"), Je = Dl(j, "Set"), Me = Dl(j, "WeakMap"), Pe = Dl(Object, "create"), et = hu(Ge), Ce = hu(ke), ze = hu(Re), nt = hu(Je), qe = hu(Me), Ke = de ? de.prototype : void 0, at = Ke ? Ke.valueOf : void 0; + ), ge = Y ? j.Buffer : void 0, de = j.Symbol, ve = j.Uint8Array, Ae = O.propertyIsEnumerable, Ne = Te.splice, De = de ? de.toStringTag : void 0, ut = Object.getOwnPropertySymbols, Ve = ge ? ge.isBuffer : void 0, Ze = ye(Object.keys, Object), Ge = Dl(j, "DataView"), ke = Dl(j, "Map"), Re = Dl(j, "Promise"), Je = Dl(j, "Set"), Me = Dl(j, "WeakMap"), Oe = Dl(Object, "create"), et = fu(Ge), Ce = fu(ke), ze = fu(Re), nt = fu(Je), qe = fu(Me), Ke = de ? de.prototype : void 0, at = Ke ? Ke.valueOf : void 0; function We(ue) { - var _e = -1, Fe = ue == null ? 0 : ue.length; - for (this.clear(); ++_e < Fe; ) { - var xt = ue[_e]; - this.set(xt[0], xt[1]); + var xe = -1, Fe = ue == null ? 0 : ue.length; + for (this.clear(); ++xe < Fe; ) { + var wt = ue[xe]; + this.set(wt[0], wt[1]); } } - function $e() { - this.__data__ = Pe ? Pe(null) : {}, this.size = 0; + function Qe() { + this.__data__ = Oe ? Oe(null) : {}, this.size = 0; } function dt(ue) { - var _e = this.has(ue) && delete this.__data__[ue]; - return this.size -= _e ? 1 : 0, _e; + var xe = this.has(ue) && delete this.__data__[ue]; + return this.size -= xe ? 1 : 0, xe; } function ft(ue) { - var _e = this.__data__; - if (Pe) { - var Fe = _e[ue]; + var xe = this.__data__; + if (Oe) { + var Fe = xe[ue]; return Fe === n ? void 0 : Fe; } - return te.call(_e, ue) ? _e[ue] : void 0; + return te.call(xe, ue) ? xe[ue] : void 0; } function ht(ue) { - var _e = this.__data__; - return Pe ? _e[ue] !== void 0 : te.call(_e, ue); + var xe = this.__data__; + return Oe ? xe[ue] !== void 0 : te.call(xe, ue); } - function Mt(ue, _e) { + function Mt(ue, xe) { var Fe = this.__data__; - return this.size += this.has(ue) ? 0 : 1, Fe[ue] = Pe && _e === void 0 ? n : _e, this; + return this.size += this.has(ue) ? 0 : 1, Fe[ue] = Oe && xe === void 0 ? n : xe, this; } - We.prototype.clear = $e, We.prototype.delete = dt, We.prototype.get = ft, We.prototype.has = ht, We.prototype.set = Mt; + We.prototype.clear = Qe, We.prototype.delete = dt, We.prototype.get = ft, We.prototype.has = ht, We.prototype.set = Mt; function rt(ue) { - var _e = -1, Fe = ue == null ? 0 : ue.length; - for (this.clear(); ++_e < Fe; ) { - var xt = ue[_e]; - this.set(xt[0], xt[1]); + var xe = -1, Fe = ue == null ? 0 : ue.length; + for (this.clear(); ++xe < Fe; ) { + var wt = ue[xe]; + this.set(wt[0], wt[1]); } } function _t() { this.__data__ = [], this.size = 0; } function gr(ue) { - var _e = this.__data__, Fe = j0(_e, ue); + var xe = this.__data__, Fe = j0(xe, ue); if (Fe < 0) return false; - var xt = _e.length - 1; - return Fe == xt ? _e.pop() : Ne.call(_e, Fe, 1), --this.size, true; + var wt = xe.length - 1; + return Fe == wt ? xe.pop() : Ne.call(xe, Fe, 1), --this.size, true; } function yr(ue) { - var _e = this.__data__, Fe = j0(_e, ue); - return Fe < 0 ? void 0 : _e[Fe][1]; + var xe = this.__data__, Fe = j0(xe, ue); + return Fe < 0 ? void 0 : xe[Fe][1]; } function br(ue) { return j0(this.__data__, ue) > -1; } - function wr(ue, _e) { - var Fe = this.__data__, xt = j0(Fe, ue); - return xt < 0 ? (++this.size, Fe.push([ue, _e])) : Fe[xt][1] = _e, this; + function wr(ue, xe) { + var Fe = this.__data__, wt = j0(Fe, ue); + return wt < 0 ? (++this.size, Fe.push([ue, xe])) : Fe[wt][1] = xe, this; } rt.prototype.clear = _t, rt.prototype.delete = gr, rt.prototype.get = yr, rt.prototype.has = br, rt.prototype.set = wr; function tr(ue) { - var _e = -1, Fe = ue == null ? 0 : ue.length; - for (this.clear(); ++_e < Fe; ) { - var xt = ue[_e]; - this.set(xt[0], xt[1]); + var xe = -1, Fe = ue == null ? 0 : ue.length; + for (this.clear(); ++xe < Fe; ) { + var wt = ue[xe]; + this.set(wt[0], wt[1]); } } function Dn() { @@ -81842,8 +81873,8 @@ ${gz(e, r)}`); }; } function Ln(ue) { - var _e = V0(this, ue).delete(ue); - return this.size -= _e ? 1 : 0, _e; + var xe = V0(this, ue).delete(ue); + return this.size -= xe ? 1 : 0, xe; } function Bn(ue) { return V0(this, ue).get(ue); @@ -81851,15 +81882,15 @@ ${gz(e, r)}`); function Un(ue) { return V0(this, ue).has(ue); } - function jn(ue, _e) { - var Fe = V0(this, ue), xt = Fe.size; - return Fe.set(ue, _e), this.size += Fe.size == xt ? 0 : 1, this; + function jn(ue, xe) { + var Fe = V0(this, ue), wt = Fe.size; + return Fe.set(ue, xe), this.size += Fe.size == wt ? 0 : 1, this; } tr.prototype.clear = Dn, tr.prototype.delete = Ln, tr.prototype.get = Bn, tr.prototype.has = Un, tr.prototype.set = jn; function rn(ue) { - var _e = -1, Fe = ue == null ? 0 : ue.length; - for (this.__data__ = new tr(); ++_e < Fe; ) - this.add(ue[_e]); + var xe = -1, Fe = ue == null ? 0 : ue.length; + for (this.__data__ = new tr(); ++xe < Fe; ) + this.add(ue[xe]); } function Vn(ue) { return this.__data__.set(ue, n), this; @@ -81869,15 +81900,15 @@ ${gz(e, r)}`); } rn.prototype.add = rn.prototype.push = Vn, rn.prototype.has = zn; function Tr(ue) { - var _e = this.__data__ = new rt(ue); - this.size = _e.size; + var xe = this.__data__ = new rt(ue); + this.size = xe.size; } function Fn() { this.__data__ = new rt(), this.size = 0; } function Hn(ue) { - var _e = this.__data__, Fe = _e.delete(ue); - return this.size = _e.size, Fe; + var xe = this.__data__, Fe = xe.delete(ue); + return this.size = xe.size, Fe; } function qn(ue) { return this.__data__.get(ue); @@ -81885,208 +81916,208 @@ ${gz(e, r)}`); function Ji(ue) { return this.__data__.has(ue); } - function ga(ue, _e) { + function pa(ue, xe) { var Fe = this.__data__; if (Fe instanceof rt) { - var xt = Fe.__data__; - if (!ke || xt.length < r - 1) - return xt.push([ue, _e]), this.size = ++Fe.size, this; - Fe = this.__data__ = new tr(xt); - } - return Fe.set(ue, _e), this.size = Fe.size, this; - } - Tr.prototype.clear = Fn, Tr.prototype.delete = Hn, Tr.prototype.get = qn, Tr.prototype.has = Ji, Tr.prototype.set = ga; - function lj(ue, _e) { - var Fe = z0(ue), xt = !Fe && Mj(ue), Sr = !Fe && !xt && W2(ue), jt = !Fe && !xt && !Sr && P9(ue), Gr = Fe || xt || Sr || jt, _n = Gr ? me(ue.length, String) : [], Wn = _n.length; - for (var Lr in ue) - (_e || te.call(ue, Lr)) && !(Gr && (Lr == "length" || Sr && (Lr == "offset" || Lr == "parent") || jt && (Lr == "buffer" || Lr == "byteLength" || Lr == "byteOffset") || vj(Lr, Wn))) && _n.push(Lr); + var wt = Fe.__data__; + if (!ke || wt.length < r - 1) + return wt.push([ue, xe]), this.size = ++Fe.size, this; + Fe = this.__data__ = new tr(wt); + } + return Fe.set(ue, xe), this.size = Fe.size, this; + } + Tr.prototype.clear = Fn, Tr.prototype.delete = Hn, Tr.prototype.get = qn, Tr.prototype.has = Ji, Tr.prototype.set = pa; + function hj(ue, xe) { + var Fe = z0(ue), wt = !Fe && Tj(ue), Sr = !Fe && !wt && q2(ue), jt = !Fe && !wt && !Sr && O9(ue), Wr = Fe || wt || Sr || jt, _n = Wr ? me(ue.length, String) : [], Wn = _n.length; + for (var Dr in ue) + (xe || te.call(ue, Dr)) && !(Wr && (Dr == "length" || Sr && (Dr == "offset" || Dr == "parent") || jt && (Dr == "buffer" || Dr == "byteLength" || Dr == "byteOffset") || _j(Dr, Wn))) && _n.push(Dr); return _n; } - function j0(ue, _e) { + function j0(ue, xe) { for (var Fe = ue.length; Fe--; ) - if (T9(ue[Fe][0], _e)) + if (A9(ue[Fe][0], xe)) return Fe; return -1; } - function fj(ue, _e, Fe) { - var xt = _e(ue); - return z0(ue) ? xt : ce(xt, Fe(ue)); + function dj(ue, xe, Fe) { + var wt = xe(ue); + return z0(ue) ? wt : ce(wt, Fe(ue)); } - function uh(ue) { - return ue == null ? ue === void 0 ? H : F : De && De in Object(ue) ? bj(ue) : Sj(ue); + function ch(ue) { + return ue == null ? ue === void 0 ? H : F : De && De in Object(ue) ? vj(ue) : Aj(ue); } - function E9(ue) { - return lh(ue) && uh(ue) == a; + function _9(ue) { + return uh(ue) && ch(ue) == a; } - function S9(ue, _e, Fe, xt, Sr) { - return ue === _e ? true : ue == null || _e == null || !lh(ue) && !lh(_e) ? ue !== ue && _e !== _e : hj(ue, _e, Fe, xt, S9, Sr); + function E9(ue, xe, Fe, wt, Sr) { + return ue === xe ? true : ue == null || xe == null || !uh(ue) && !uh(xe) ? ue !== ue && xe !== xe : pj(ue, xe, Fe, wt, E9, Sr); } - function hj(ue, _e, Fe, xt, Sr, jt) { - var Gr = z0(ue), _n = z0(_e), Wn = Gr ? c : pc(ue), Lr = _n ? c : pc(_e); - Wn = Wn == a ? L : Wn, Lr = Lr == a ? L : Lr; - var Qi = Wn == L, zs = Lr == L, si = Wn == Lr; - if (si && W2(ue)) { - if (!W2(_e)) + function pj(ue, xe, Fe, wt, Sr, jt) { + var Wr = z0(ue), _n = z0(xe), Wn = Wr ? c : hc(ue), Dr = _n ? c : hc(xe); + Wn = Wn == a ? L : Wn, Dr = Dr == a ? L : Dr; + var Qi = Wn == L, Vs = Dr == L, si = Wn == Dr; + if (si && q2(ue)) { + if (!q2(xe)) return false; - Gr = true, Qi = false; + Wr = true, Qi = false; } if (si && !Qi) - return jt || (jt = new Tr()), Gr || P9(ue) ? M9(ue, _e, Fe, xt, Sr, jt) : gj(ue, _e, Wn, Fe, xt, Sr, jt); + return jt || (jt = new Tr()), Wr || O9(ue) ? S9(ue, xe, Fe, wt, Sr, jt) : bj(ue, xe, Wn, Fe, wt, Sr, jt); if (!(Fe & i)) { - var ds = Qi && te.call(ue, "__wrapped__"), ps = zs && te.call(_e, "__wrapped__"); + var ds = Qi && te.call(ue, "__wrapped__"), ps = Vs && te.call(xe, "__wrapped__"); if (ds || ps) { - var mc = ds ? ue.value() : ue, ya = ps ? _e.value() : _e; - return jt || (jt = new Tr()), Sr(mc, ya, Fe, xt, jt); + var dc = ds ? ue.value() : ue, ma = ps ? xe.value() : xe; + return jt || (jt = new Tr()), Sr(dc, ma, Fe, wt, jt); } } - return si ? (jt || (jt = new Tr()), yj(ue, _e, Fe, xt, Sr, jt)) : false; + return si ? (jt || (jt = new Tr()), wj(ue, xe, Fe, wt, Sr, jt)) : false; } - function dj(ue) { - if (!O9(ue) || _j(ue)) + function mj(ue) { + if (!I9(ue) || Sj(ue)) return false; - var _e = N9(ue) ? fe : P; - return _e.test(hu(ue)); + var xe = T9(ue) ? fe : P; + return xe.test(fu(ue)); } - function pj(ue) { - return lh(ue) && I9(ue.length) && !!A[uh(ue)]; + function gj(ue) { + return uh(ue) && N9(ue.length) && !!A[ch(ue)]; } - function mj(ue) { - if (!Ej(ue)) + function yj(ue) { + if (!Mj(ue)) return Ze(ue); - var _e = []; + var xe = []; for (var Fe in Object(ue)) - te.call(ue, Fe) && Fe != "constructor" && _e.push(Fe); - return _e; + te.call(ue, Fe) && Fe != "constructor" && xe.push(Fe); + return xe; } - function M9(ue, _e, Fe, xt, Sr, jt) { - var Gr = Fe & i, _n = ue.length, Wn = _e.length; - if (_n != Wn && !(Gr && Wn > _n)) + function S9(ue, xe, Fe, wt, Sr, jt) { + var Wr = Fe & i, _n = ue.length, Wn = xe.length; + if (_n != Wn && !(Wr && Wn > _n)) return false; - var Lr = jt.get(ue); - if (Lr && jt.get(_e)) - return Lr == _e; - var Qi = -1, zs = true, si = Fe & s ? new rn() : void 0; - for (jt.set(ue, _e), jt.set(_e, ue); ++Qi < _n; ) { - var ds = ue[Qi], ps = _e[Qi]; - if (xt) - var mc = Gr ? xt(ps, ds, Qi, _e, ue, jt) : xt(ds, ps, Qi, ue, _e, jt); - if (mc !== void 0) { - if (mc) + var Dr = jt.get(ue); + if (Dr && jt.get(xe)) + return Dr == xe; + var Qi = -1, Vs = true, si = Fe & s ? new rn() : void 0; + for (jt.set(ue, xe), jt.set(xe, ue); ++Qi < _n; ) { + var ds = ue[Qi], ps = xe[Qi]; + if (wt) + var dc = Wr ? wt(ps, ds, Qi, xe, ue, jt) : wt(ds, ps, Qi, ue, xe, jt); + if (dc !== void 0) { + if (dc) continue; - zs = false; + Vs = false; break; } if (si) { - if (!oe(_e, function(ya, du) { - if (!se(si, du) && (ds === ya || Sr(ds, ya, Fe, xt, jt))) - return si.push(du); + if (!oe(xe, function(ma, hu) { + if (!se(si, hu) && (ds === ma || Sr(ds, ma, Fe, wt, jt))) + return si.push(hu); })) { - zs = false; + Vs = false; break; } - } else if (!(ds === ps || Sr(ds, ps, Fe, xt, jt))) { - zs = false; + } else if (!(ds === ps || Sr(ds, ps, Fe, wt, jt))) { + Vs = false; break; } } - return jt.delete(ue), jt.delete(_e), zs; + return jt.delete(ue), jt.delete(xe), Vs; } - function gj(ue, _e, Fe, xt, Sr, jt, Gr) { + function bj(ue, xe, Fe, wt, Sr, jt, Wr) { switch (Fe) { case S: - if (ue.byteLength != _e.byteLength || ue.byteOffset != _e.byteOffset) + if (ue.byteLength != xe.byteLength || ue.byteOffset != xe.byteOffset) return false; - ue = ue.buffer, _e = _e.buffer; + ue = ue.buffer, xe = xe.buffer; case V: - return !(ue.byteLength != _e.byteLength || !jt(new ve(ue), new ve(_e))); + return !(ue.byteLength != xe.byteLength || !jt(new ve(ue), new ve(xe))); case f: case p: case k: - return T9(+ue, +_e); + return A9(+ue, +xe); case b: - return ue.name == _e.name && ue.message == _e.message; + return ue.name == xe.name && ue.message == xe.message; case W: case T: - return ue == _e + ""; + return ue == xe + ""; case N: var _n = be; case z: - var Wn = xt & i; - if (_n || (_n = Ee), ue.size != _e.size && !Wn) + var Wn = wt & i; + if (_n || (_n = Ee), ue.size != xe.size && !Wn) return false; - var Lr = Gr.get(ue); - if (Lr) - return Lr == _e; - xt |= s, Gr.set(ue, _e); - var Qi = M9(_n(ue), _n(_e), xt, Sr, jt, Gr); - return Gr.delete(ue), Qi; + var Dr = Wr.get(ue); + if (Dr) + return Dr == xe; + wt |= s, Wr.set(ue, xe); + var Qi = S9(_n(ue), _n(xe), wt, Sr, jt, Wr); + return Wr.delete(ue), Qi; case I: if (at) - return at.call(ue) == at.call(_e); + return at.call(ue) == at.call(xe); } return false; } - function yj(ue, _e, Fe, xt, Sr, jt) { - var Gr = Fe & i, _n = A9(ue), Wn = _n.length, Lr = A9(_e), Qi = Lr.length; - if (Wn != Qi && !Gr) + function wj(ue, xe, Fe, wt, Sr, jt) { + var Wr = Fe & i, _n = M9(ue), Wn = _n.length, Dr = M9(xe), Qi = Dr.length; + if (Wn != Qi && !Wr) return false; - for (var zs = Wn; zs--; ) { - var si = _n[zs]; - if (!(Gr ? si in _e : te.call(_e, si))) + for (var Vs = Wn; Vs--; ) { + var si = _n[Vs]; + if (!(Wr ? si in xe : te.call(xe, si))) return false; } var ds = jt.get(ue); - if (ds && jt.get(_e)) - return ds == _e; + if (ds && jt.get(xe)) + return ds == xe; var ps = true; - jt.set(ue, _e), jt.set(_e, ue); - for (var mc = Gr; ++zs < Wn; ) { - si = _n[zs]; - var ya = ue[si], du = _e[si]; - if (xt) - var k9 = Gr ? xt(du, ya, si, _e, ue, jt) : xt(ya, du, si, ue, _e, jt); - if (!(k9 === void 0 ? ya === du || Sr(ya, du, Fe, xt, jt) : k9)) { + jt.set(ue, xe), jt.set(xe, ue); + for (var dc = Wr; ++Vs < Wn; ) { + si = _n[Vs]; + var ma = ue[si], hu = xe[si]; + if (wt) + var P9 = Wr ? wt(hu, ma, si, xe, ue, jt) : wt(ma, hu, si, ue, xe, jt); + if (!(P9 === void 0 ? ma === hu || Sr(ma, hu, Fe, wt, jt) : P9)) { ps = false; break; } - mc || (mc = si == "constructor"); + dc || (dc = si == "constructor"); } - if (ps && !mc) { - var F0 = ue.constructor, H0 = _e.constructor; - F0 != H0 && "constructor" in ue && "constructor" in _e && !(typeof F0 == "function" && F0 instanceof F0 && typeof H0 == "function" && H0 instanceof H0) && (ps = false); + if (ps && !dc) { + var F0 = ue.constructor, H0 = xe.constructor; + F0 != H0 && "constructor" in ue && "constructor" in xe && !(typeof F0 == "function" && F0 instanceof F0 && typeof H0 == "function" && H0 instanceof H0) && (ps = false); } - return jt.delete(ue), jt.delete(_e), ps; + return jt.delete(ue), jt.delete(xe), ps; } - function A9(ue) { - return fj(ue, Nj, wj); + function M9(ue) { + return dj(ue, Oj, xj); } - function V0(ue, _e) { + function V0(ue, xe) { var Fe = ue.__data__; - return xj(_e) ? Fe[typeof _e == "string" ? "string" : "hash"] : Fe.map; + return Ej(xe) ? Fe[typeof xe == "string" ? "string" : "hash"] : Fe.map; } - function Dl(ue, _e) { - var Fe = le(ue, _e); - return dj(Fe) ? Fe : void 0; + function Dl(ue, xe) { + var Fe = le(ue, xe); + return mj(Fe) ? Fe : void 0; } - function bj(ue) { - var _e = te.call(ue, De), Fe = ue[De]; + function vj(ue) { + var xe = te.call(ue, De), Fe = ue[De]; try { ue[De] = void 0; - var xt = true; + var wt = true; } catch { } var Sr = ne.call(ue); - return xt && (_e ? ue[De] = Fe : delete ue[De]), Sr; + return wt && (xe ? ue[De] = Fe : delete ue[De]), Sr; } - var wj = ut ? function(ue) { - return ue == null ? [] : (ue = Object(ue), Z(ut(ue), function(_e) { - return Ae.call(ue, _e); + var xj = ut ? function(ue) { + return ue == null ? [] : (ue = Object(ue), Z(ut(ue), function(xe) { + return Ae.call(ue, xe); })); - } : Ij, pc = uh; - (Ge && pc(new Ge(new ArrayBuffer(1))) != S || ke && pc(new ke()) != N || Re && pc(Re.resolve()) != D || Je && pc(new Je()) != z || Me && pc(new Me()) != X) && (pc = function(ue) { - var _e = uh(ue), Fe = _e == L ? ue.constructor : void 0, xt = Fe ? hu(Fe) : ""; - if (xt) - switch (xt) { + } : Pj, hc = ch; + (Ge && hc(new Ge(new ArrayBuffer(1))) != S || ke && hc(new ke()) != N || Re && hc(Re.resolve()) != D || Je && hc(new Je()) != z || Me && hc(new Me()) != X) && (hc = function(ue) { + var xe = ch(ue), Fe = xe == L ? ue.constructor : void 0, wt = Fe ? fu(Fe) : ""; + if (wt) + switch (wt) { case et: return S; case Ce: @@ -82098,26 +82129,26 @@ ${gz(e, r)}`); case qe: return X; } - return _e; + return xe; }); - function vj(ue, _e) { - return _e = _e ?? o, !!_e && (typeof ue == "number" || Q.test(ue)) && ue > -1 && ue % 1 == 0 && ue < _e; + function _j(ue, xe) { + return xe = xe ?? o, !!xe && (typeof ue == "number" || Q.test(ue)) && ue > -1 && ue % 1 == 0 && ue < xe; } - function xj(ue) { - var _e = typeof ue; - return _e == "string" || _e == "number" || _e == "symbol" || _e == "boolean" ? ue !== "__proto__" : ue === null; + function Ej(ue) { + var xe = typeof ue; + return xe == "string" || xe == "number" || xe == "symbol" || xe == "boolean" ? ue !== "__proto__" : ue === null; } - function _j(ue) { + function Sj(ue) { return !!J && J in ue; } - function Ej(ue) { - var _e = ue && ue.constructor, Fe = typeof _e == "function" && _e.prototype || O; + function Mj(ue) { + var xe = ue && ue.constructor, Fe = typeof xe == "function" && xe.prototype || O; return ue === Fe; } - function Sj(ue) { + function Aj(ue) { return ne.call(ue); } - function hu(ue) { + function fu(ue) { if (ue != null) { try { return $.call(ue); @@ -82130,52 +82161,52 @@ ${gz(e, r)}`); } return ""; } - function T9(ue, _e) { - return ue === _e || ue !== ue && _e !== _e; + function A9(ue, xe) { + return ue === xe || ue !== ue && xe !== xe; } - var Mj = E9(function() { + var Tj = _9(function() { return arguments; - }()) ? E9 : function(ue) { - return lh(ue) && te.call(ue, "callee") && !Ae.call(ue, "callee"); + }()) ? _9 : function(ue) { + return uh(ue) && te.call(ue, "callee") && !Ae.call(ue, "callee"); }, z0 = Array.isArray; - function Aj(ue) { - return ue != null && I9(ue.length) && !N9(ue); + function Nj(ue) { + return ue != null && N9(ue.length) && !T9(ue); } - var W2 = Ve || Oj; - function Tj(ue, _e) { - return S9(ue, _e); + var q2 = Ve || kj; + function Ij(ue, xe) { + return E9(ue, xe); } - function N9(ue) { - if (!O9(ue)) + function T9(ue) { + if (!I9(ue)) return false; - var _e = uh(ue); - return _e == E || _e == _ || _e == u || _e == q; + var xe = ch(ue); + return xe == E || xe == _ || xe == u || xe == q; } - function I9(ue) { + function N9(ue) { return typeof ue == "number" && ue > -1 && ue % 1 == 0 && ue <= o; } - function O9(ue) { - var _e = typeof ue; - return ue != null && (_e == "object" || _e == "function"); + function I9(ue) { + var xe = typeof ue; + return ue != null && (xe == "object" || xe == "function"); } - function lh(ue) { + function uh(ue) { return ue != null && typeof ue == "object"; } - var P9 = ie ? pe(ie) : pj; - function Nj(ue) { - return Aj(ue) ? lj(ue) : mj(ue); + var O9 = ie ? pe(ie) : gj; + function Oj(ue) { + return Nj(ue) ? hj(ue) : yj(ue); } - function Ij() { + function Pj() { return []; } - function Oj() { + function kj() { return false; } - t.exports = Tj; - })(Hm, Hm.exports); - var Hve = Hm.exports; - var qve = /* @__PURE__ */ nc(Hve); - function Wve(t, e) { + t.exports = Ij; + })(qm, qm.exports); + var Gve = qm.exports; + var Kve = /* @__PURE__ */ tc(Gve); + function Xve(t, e) { return e = e || {}, new Promise(function(r, n) { var i = new XMLHttpRequest(), s = [], o = [], a = {}, c = function() { return { ok: (i.status / 100 | 0) == 2, statusText: i.statusText, status: i.status, url: i.responseURL, text: function() { @@ -82203,14 +82234,14 @@ ${gz(e, r)}`); i.send(e.body || null); }); } - var Gve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + var Yve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Wve + default: Xve }, Symbol.toStringTag, { value: "Module" })); - var KM = /* @__PURE__ */ fn(Gve); - var Kve = self.fetch || (self.fetch = KM.default || KM); - var Xve = /* @__PURE__ */ nc(Kve); - function Yve(t, e) { + var GM = /* @__PURE__ */ fn(Yve); + var Zve = self.fetch || (self.fetch = GM.default || GM); + var Jve = /* @__PURE__ */ tc(Zve); + function Qve(t, e) { if (t.length >= 255) throw new TypeError("Alphabet too long"); for (var r = new Uint8Array(256), n = 0; n < r.length; n++) @@ -82278,9 +82309,9 @@ ${gz(e, r)}`); } return { encode: p, decodeUnsafe: b, decode: E }; } - var Zve = Yve; - var Jve = Zve; - var mU = (t) => { + var $ve = Qve; + var e4e = $ve; + var gU = (t) => { if (t instanceof Uint8Array && t.constructor.name === "Uint8Array") return t; if (t instanceof ArrayBuffer) @@ -82289,9 +82320,9 @@ ${gz(e, r)}`); return new Uint8Array(t.buffer, t.byteOffset, t.byteLength); throw new Error("Unknown type, must be binary type"); }; - var Qve = (t) => new TextEncoder().encode(t); - var $ve = (t) => new TextDecoder().decode(t); - var e4e = class { + var t4e = (t) => new TextEncoder().encode(t); + var r4e = (t) => new TextDecoder().decode(t); + var n4e = class { constructor(e, r, n) { this.name = e, this.prefix = r, this.baseEncode = n; } @@ -82301,7 +82332,7 @@ ${gz(e, r)}`); throw Error("Unknown type, must be binary type"); } }; - var t4e = class { + var i4e = class { constructor(e, r, n) { if (this.name = e, this.prefix = r, r.codePointAt(0) === void 0) throw new Error("Invalid prefix character"); @@ -82316,15 +82347,15 @@ ${gz(e, r)}`); throw Error("Can only multibase decode strings"); } or(e) { - return gU(this, e); + return yU(this, e); } }; - var r4e = class { + var s4e = class { constructor(e) { this.decoders = e; } or(e) { - return gU(this, e); + return yU(this, e); } decode(e) { const r = e[0], n = this.decoders[r]; @@ -82333,10 +82364,10 @@ ${gz(e, r)}`); throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`); } }; - var gU = (t, e) => new r4e({ ...t.decoders || { [t.prefix]: t }, ...e.decoders || { [e.prefix]: e } }); - var n4e = class { + var yU = (t, e) => new s4e({ ...t.decoders || { [t.prefix]: t }, ...e.decoders || { [e.prefix]: e } }); + var o4e = class { constructor(e, r, n, i) { - this.name = e, this.prefix = r, this.baseEncode = n, this.baseDecode = i, this.encoder = new e4e(e, r, n), this.decoder = new t4e(e, r, i); + this.name = e, this.prefix = r, this.baseEncode = n, this.baseDecode = i, this.encoder = new n4e(e, r, n), this.decoder = new i4e(e, r, i); } encode(e) { return this.encoder.encode(e); @@ -82345,12 +82376,12 @@ ${gz(e, r)}`); return this.decoder.decode(e); } }; - var D2 = ({ name: t, prefix: e, encode: r, decode: n }) => new n4e(t, e, r, n); + var L2 = ({ name: t, prefix: e, encode: r, decode: n }) => new o4e(t, e, r, n); var L0 = ({ prefix: t, name: e, alphabet: r }) => { - const { encode: n, decode: i } = Jve(r, e); - return D2({ prefix: t, name: e, encode: n, decode: (s) => mU(i(s)) }); + const { encode: n, decode: i } = e4e(r, e); + return L2({ prefix: t, name: e, encode: n, decode: (s) => gU(i(s)) }); }; - var i4e = (t, e, r, n) => { + var a4e = (t, e, r, n) => { const i = {}; for (let f = 0; f < e.length; ++f) i[e[f]] = f; @@ -82369,7 +82400,7 @@ ${gz(e, r)}`); throw new SyntaxError("Unexpected end of data"); return o; }; - var s4e = (t, e, r) => { + var c4e = (t, e, r) => { const n = e[e.length - 1] === "=", i = (1 << r) - 1; let s = "", o = 0, a = 0; for (let c = 0; c < t.length; ++c) @@ -82380,214 +82411,214 @@ ${gz(e, r)}`); s += "="; return s; }; - var ii = ({ name: t, prefix: e, bitsPerChar: r, alphabet: n }) => D2({ prefix: e, name: t, encode(i) { - return s4e(i, n, r); + var ii = ({ name: t, prefix: e, bitsPerChar: r, alphabet: n }) => L2({ prefix: e, name: t, encode(i) { + return c4e(i, n, r); }, decode(i) { - return i4e(i, n, r, t); + return a4e(i, n, r, t); } }); - var o4e = D2({ prefix: "\0", name: "identity", encode: (t) => $ve(t), decode: (t) => Qve(t) }); - var a4e = Object.freeze({ __proto__: null, identity: o4e }); - var c4e = ii({ prefix: "0", name: "base2", alphabet: "01", bitsPerChar: 1 }); - var u4e = Object.freeze({ __proto__: null, base2: c4e }); - var l4e = ii({ prefix: "7", name: "base8", alphabet: "01234567", bitsPerChar: 3 }); - var f4e = Object.freeze({ __proto__: null, base8: l4e }); - var h4e = L0({ prefix: "9", name: "base10", alphabet: "0123456789" }); - var d4e = Object.freeze({ __proto__: null, base10: h4e }); - var p4e = ii({ prefix: "f", name: "base16", alphabet: "0123456789abcdef", bitsPerChar: 4 }); - var m4e = ii({ prefix: "F", name: "base16upper", alphabet: "0123456789ABCDEF", bitsPerChar: 4 }); - var g4e = Object.freeze({ __proto__: null, base16: p4e, base16upper: m4e }); - var y4e = ii({ prefix: "b", name: "base32", alphabet: "abcdefghijklmnopqrstuvwxyz234567", bitsPerChar: 5 }); - var b4e = ii({ prefix: "B", name: "base32upper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", bitsPerChar: 5 }); - var w4e = ii({ prefix: "c", name: "base32pad", alphabet: "abcdefghijklmnopqrstuvwxyz234567=", bitsPerChar: 5 }); - var v4e = ii({ prefix: "C", name: "base32padupper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=", bitsPerChar: 5 }); - var x4e = ii({ prefix: "v", name: "base32hex", alphabet: "0123456789abcdefghijklmnopqrstuv", bitsPerChar: 5 }); - var _4e = ii({ prefix: "V", name: "base32hexupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV", bitsPerChar: 5 }); - var E4e = ii({ prefix: "t", name: "base32hexpad", alphabet: "0123456789abcdefghijklmnopqrstuv=", bitsPerChar: 5 }); - var S4e = ii({ prefix: "T", name: "base32hexpadupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=", bitsPerChar: 5 }); - var M4e = ii({ prefix: "h", name: "base32z", alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769", bitsPerChar: 5 }); - var A4e = Object.freeze({ __proto__: null, base32: y4e, base32upper: b4e, base32pad: w4e, base32padupper: v4e, base32hex: x4e, base32hexupper: _4e, base32hexpad: E4e, base32hexpadupper: S4e, base32z: M4e }); - var T4e = L0({ prefix: "k", name: "base36", alphabet: "0123456789abcdefghijklmnopqrstuvwxyz" }); - var N4e = L0({ prefix: "K", name: "base36upper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" }); - var I4e = Object.freeze({ __proto__: null, base36: T4e, base36upper: N4e }); - var O4e = L0({ name: "base58btc", prefix: "z", alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }); - var P4e = L0({ name: "base58flickr", prefix: "Z", alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" }); - var k4e = Object.freeze({ __proto__: null, base58btc: O4e, base58flickr: P4e }); - var R4e = ii({ prefix: "m", name: "base64", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bitsPerChar: 6 }); - var C4e = ii({ prefix: "M", name: "base64pad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", bitsPerChar: 6 }); - var D4e = ii({ prefix: "u", name: "base64url", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", bitsPerChar: 6 }); - var L4e = ii({ prefix: "U", name: "base64urlpad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=", bitsPerChar: 6 }); - var B4e = Object.freeze({ __proto__: null, base64: R4e, base64pad: C4e, base64url: D4e, base64urlpad: L4e }); - var yU = Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"); - var U4e = yU.reduce((t, e, r) => (t[r] = e, t), []); - var j4e = yU.reduce((t, e, r) => (t[e.codePointAt(0)] = r, t), []); - function V4e(t) { - return t.reduce((e, r) => (e += U4e[r], e), ""); - } - function z4e(t) { + var u4e = L2({ prefix: "\0", name: "identity", encode: (t) => r4e(t), decode: (t) => t4e(t) }); + var l4e = Object.freeze({ __proto__: null, identity: u4e }); + var f4e = ii({ prefix: "0", name: "base2", alphabet: "01", bitsPerChar: 1 }); + var h4e = Object.freeze({ __proto__: null, base2: f4e }); + var d4e = ii({ prefix: "7", name: "base8", alphabet: "01234567", bitsPerChar: 3 }); + var p4e = Object.freeze({ __proto__: null, base8: d4e }); + var m4e = L0({ prefix: "9", name: "base10", alphabet: "0123456789" }); + var g4e = Object.freeze({ __proto__: null, base10: m4e }); + var y4e = ii({ prefix: "f", name: "base16", alphabet: "0123456789abcdef", bitsPerChar: 4 }); + var b4e = ii({ prefix: "F", name: "base16upper", alphabet: "0123456789ABCDEF", bitsPerChar: 4 }); + var w4e = Object.freeze({ __proto__: null, base16: y4e, base16upper: b4e }); + var v4e = ii({ prefix: "b", name: "base32", alphabet: "abcdefghijklmnopqrstuvwxyz234567", bitsPerChar: 5 }); + var x4e = ii({ prefix: "B", name: "base32upper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", bitsPerChar: 5 }); + var _4e = ii({ prefix: "c", name: "base32pad", alphabet: "abcdefghijklmnopqrstuvwxyz234567=", bitsPerChar: 5 }); + var E4e = ii({ prefix: "C", name: "base32padupper", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=", bitsPerChar: 5 }); + var S4e = ii({ prefix: "v", name: "base32hex", alphabet: "0123456789abcdefghijklmnopqrstuv", bitsPerChar: 5 }); + var M4e = ii({ prefix: "V", name: "base32hexupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV", bitsPerChar: 5 }); + var A4e = ii({ prefix: "t", name: "base32hexpad", alphabet: "0123456789abcdefghijklmnopqrstuv=", bitsPerChar: 5 }); + var T4e = ii({ prefix: "T", name: "base32hexpadupper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=", bitsPerChar: 5 }); + var N4e = ii({ prefix: "h", name: "base32z", alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769", bitsPerChar: 5 }); + var I4e = Object.freeze({ __proto__: null, base32: v4e, base32upper: x4e, base32pad: _4e, base32padupper: E4e, base32hex: S4e, base32hexupper: M4e, base32hexpad: A4e, base32hexpadupper: T4e, base32z: N4e }); + var O4e = L0({ prefix: "k", name: "base36", alphabet: "0123456789abcdefghijklmnopqrstuvwxyz" }); + var P4e = L0({ prefix: "K", name: "base36upper", alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" }); + var k4e = Object.freeze({ __proto__: null, base36: O4e, base36upper: P4e }); + var R4e = L0({ name: "base58btc", prefix: "z", alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }); + var C4e = L0({ name: "base58flickr", prefix: "Z", alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" }); + var D4e = Object.freeze({ __proto__: null, base58btc: R4e, base58flickr: C4e }); + var L4e = ii({ prefix: "m", name: "base64", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bitsPerChar: 6 }); + var B4e = ii({ prefix: "M", name: "base64pad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", bitsPerChar: 6 }); + var U4e = ii({ prefix: "u", name: "base64url", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", bitsPerChar: 6 }); + var j4e = ii({ prefix: "U", name: "base64urlpad", alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=", bitsPerChar: 6 }); + var V4e = Object.freeze({ __proto__: null, base64: L4e, base64pad: B4e, base64url: U4e, base64urlpad: j4e }); + var bU = Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"); + var z4e = bU.reduce((t, e, r) => (t[r] = e, t), []); + var F4e = bU.reduce((t, e, r) => (t[e.codePointAt(0)] = r, t), []); + function H4e(t) { + return t.reduce((e, r) => (e += z4e[r], e), ""); + } + function q4e(t) { const e = []; for (const r of t) { - const n = j4e[r.codePointAt(0)]; + const n = F4e[r.codePointAt(0)]; if (n === void 0) throw new Error(`Non-base256emoji character: ${r}`); e.push(n); } return new Uint8Array(e); } - var F4e = D2({ prefix: "\u{1F680}", name: "base256emoji", encode: V4e, decode: z4e }); - var H4e = Object.freeze({ __proto__: null, base256emoji: F4e }); - var q4e = bU; - var XM = 128; - var W4e = 127; - var G4e = ~W4e; - var K4e = Math.pow(2, 31); - function bU(t, e, r) { + var W4e = L2({ prefix: "\u{1F680}", name: "base256emoji", encode: H4e, decode: q4e }); + var G4e = Object.freeze({ __proto__: null, base256emoji: W4e }); + var K4e = wU; + var KM = 128; + var X4e = 127; + var Y4e = ~X4e; + var Z4e = Math.pow(2, 31); + function wU(t, e, r) { e = e || [], r = r || 0; - for (var n = r; t >= K4e; ) - e[r++] = t & 255 | XM, t /= 128; - for (; t & G4e; ) - e[r++] = t & 255 | XM, t >>>= 7; - return e[r] = t | 0, bU.bytes = r - n + 1, e; - } - var X4e = gv; - var Y4e = 128; - var YM = 127; - function gv(t, n) { + for (var n = r; t >= Z4e; ) + e[r++] = t & 255 | KM, t /= 128; + for (; t & Y4e; ) + e[r++] = t & 255 | KM, t >>>= 7; + return e[r] = t | 0, wU.bytes = r - n + 1, e; + } + var J4e = mv; + var Q4e = 128; + var XM = 127; + function mv(t, n) { var r = 0, n = n || 0, i = 0, s = n, o, a = t.length; do { if (s >= a) - throw gv.bytes = 0, new RangeError("Could not decode varint"); - o = t[s++], r += i < 28 ? (o & YM) << i : (o & YM) * Math.pow(2, i), i += 7; - } while (o >= Y4e); - return gv.bytes = s - n, r; - } - var Z4e = Math.pow(2, 7); - var J4e = Math.pow(2, 14); - var Q4e = Math.pow(2, 21); - var $4e = Math.pow(2, 28); - var e8e = Math.pow(2, 35); - var t8e = Math.pow(2, 42); - var r8e = Math.pow(2, 49); - var n8e = Math.pow(2, 56); - var i8e = Math.pow(2, 63); - var s8e = function(t) { - return t < Z4e ? 1 : t < J4e ? 2 : t < Q4e ? 3 : t < $4e ? 4 : t < e8e ? 5 : t < t8e ? 6 : t < r8e ? 7 : t < n8e ? 8 : t < i8e ? 9 : 10; - }; - var o8e = { encode: q4e, decode: X4e, encodingLength: s8e }; - var wU = o8e; - var ZM = (t, e, r = 0) => (wU.encode(t, e, r), e); - var JM = (t) => wU.encodingLength(t); - var yv = (t, e) => { - const r = e.byteLength, n = JM(t), i = n + JM(r), s = new Uint8Array(i + r); - return ZM(t, s, 0), ZM(r, s, n), s.set(e, i), new a8e(t, r, e, s); - }; - var a8e = class { + throw mv.bytes = 0, new RangeError("Could not decode varint"); + o = t[s++], r += i < 28 ? (o & XM) << i : (o & XM) * Math.pow(2, i), i += 7; + } while (o >= Q4e); + return mv.bytes = s - n, r; + } + var $4e = Math.pow(2, 7); + var e8e = Math.pow(2, 14); + var t8e = Math.pow(2, 21); + var r8e = Math.pow(2, 28); + var n8e = Math.pow(2, 35); + var i8e = Math.pow(2, 42); + var s8e = Math.pow(2, 49); + var o8e = Math.pow(2, 56); + var a8e = Math.pow(2, 63); + var c8e = function(t) { + return t < $4e ? 1 : t < e8e ? 2 : t < t8e ? 3 : t < r8e ? 4 : t < n8e ? 5 : t < i8e ? 6 : t < s8e ? 7 : t < o8e ? 8 : t < a8e ? 9 : 10; + }; + var u8e = { encode: K4e, decode: J4e, encodingLength: c8e }; + var vU = u8e; + var YM = (t, e, r = 0) => (vU.encode(t, e, r), e); + var ZM = (t) => vU.encodingLength(t); + var gv = (t, e) => { + const r = e.byteLength, n = ZM(t), i = n + ZM(r), s = new Uint8Array(i + r); + return YM(t, s, 0), YM(r, s, n), s.set(e, i), new l8e(t, r, e, s); + }; + var l8e = class { constructor(e, r, n, i) { this.code = e, this.size = r, this.digest = n, this.bytes = i; } }; - var vU = ({ name: t, code: e, encode: r }) => new c8e(t, e, r); - var c8e = class { + var xU = ({ name: t, code: e, encode: r }) => new f8e(t, e, r); + var f8e = class { constructor(e, r, n) { this.name = e, this.code = r, this.encode = n; } digest(e) { if (e instanceof Uint8Array) { const r = this.encode(e); - return r instanceof Uint8Array ? yv(this.code, r) : r.then((n) => yv(this.code, n)); + return r instanceof Uint8Array ? gv(this.code, r) : r.then((n) => gv(this.code, n)); } else throw Error("Unknown type, must be binary type"); } }; - var xU = (t) => async (e) => new Uint8Array(await crypto.subtle.digest(t, e)); - var u8e = vU({ name: "sha2-256", code: 18, encode: xU("SHA-256") }); - var l8e = vU({ name: "sha2-512", code: 19, encode: xU("SHA-512") }); - var f8e = Object.freeze({ __proto__: null, sha256: u8e, sha512: l8e }); - var _U = 0; - var h8e = "identity"; - var EU = mU; - var d8e = (t) => yv(_U, EU(t)); - var p8e = { code: _U, name: h8e, encode: EU, digest: d8e }; - var m8e = Object.freeze({ __proto__: null, identity: p8e }); + var _U = (t) => async (e) => new Uint8Array(await crypto.subtle.digest(t, e)); + var h8e = xU({ name: "sha2-256", code: 18, encode: _U("SHA-256") }); + var d8e = xU({ name: "sha2-512", code: 19, encode: _U("SHA-512") }); + var p8e = Object.freeze({ __proto__: null, sha256: h8e, sha512: d8e }); + var EU = 0; + var m8e = "identity"; + var SU = gU; + var g8e = (t) => gv(EU, SU(t)); + var y8e = { code: EU, name: m8e, encode: SU, digest: g8e }; + var b8e = Object.freeze({ __proto__: null, identity: y8e }); new TextEncoder(), new TextDecoder(); - var QM = { ...a4e, ...u4e, ...f4e, ...d4e, ...g4e, ...A4e, ...I4e, ...k4e, ...B4e, ...H4e }; - ({ ...f8e, ...m8e }); - function g8e(t = 0) { + var JM = { ...l4e, ...h4e, ...p4e, ...g4e, ...w4e, ...I4e, ...k4e, ...D4e, ...V4e, ...G4e }; + ({ ...p8e, ...b8e }); + function w8e(t = 0) { return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? globalThis.Buffer.allocUnsafe(t) : new Uint8Array(t); } - function SU(t, e, r, n) { + function MU(t, e, r, n) { return { name: t, prefix: e, encoder: { name: t, prefix: e, encode: r }, decoder: { decode: n } }; } - var $M = SU("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); - var l3 = SU("ascii", "a", (t) => { + var QM = MU("utf8", "u", (t) => "u" + new TextDecoder("utf8").decode(t), (t) => new TextEncoder().encode(t.substring(1))); + var u3 = MU("ascii", "a", (t) => { let e = "a"; for (let r = 0; r < t.length; r++) e += String.fromCharCode(t[r]); return e; }, (t) => { t = t.substring(1); - const e = g8e(t.length); + const e = w8e(t.length); for (let r = 0; r < t.length; r++) e[r] = t.charCodeAt(r); return e; }); - var y8e = { utf8: $M, "utf-8": $M, hex: QM.base16, latin1: l3, ascii: l3, binary: l3, ...QM }; - function b8e(t, e = "utf8") { - const r = y8e[e]; + var v8e = { utf8: QM, "utf-8": QM, hex: JM.base16, latin1: u3, ascii: u3, binary: u3, ...JM }; + function x8e(t, e = "utf8") { + const r = v8e[e]; if (!r) throw new Error(`Unsupported encoding "${e}"`); return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? globalThis.Buffer.from(t, "utf8") : r.decoder.decode(`${r.prefix}${t}`); } - var MU = "wc"; - var w8e = 2; - var h9 = "core"; - var ru = `${MU}@2:${h9}:`; - var v8e = { name: h9, logger: "error" }; - var x8e = { database: ":memory:" }; - var _8e = "crypto"; - var eA = "client_ed25519_seed"; - var E8e = yt.ONE_DAY; - var S8e = "keychain"; - var M8e = "0.3"; - var A8e = "messages"; - var T8e = "0.3"; - var N8e = yt.SIX_HOURS; - var I8e = "publisher"; - var AU = "irn"; - var O8e = "error"; - var TU = "wss://relay.walletconnect.org"; - var P8e = "relayer"; - var Vi = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }; - var k8e = "_subscription"; + var AU = "wc"; + var _8e = 2; + var f9 = "core"; + var eu = `${AU}@2:${f9}:`; + var E8e = { name: f9, logger: "error" }; + var S8e = { database: ":memory:" }; + var M8e = "crypto"; + var $M = "client_ed25519_seed"; + var A8e = gt.ONE_DAY; + var T8e = "keychain"; + var N8e = "0.3"; + var I8e = "messages"; + var O8e = "0.3"; + var P8e = gt.SIX_HOURS; + var k8e = "publisher"; + var TU = "irn"; + var R8e = "error"; + var NU = "wss://relay.walletconnect.org"; + var C8e = "relayer"; + var ji = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }; + var D8e = "_subscription"; var Es = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }; - var R8e = 0.1; - var C8e = "2.14.0"; - var D8e = 1e4; - var L8e = "0.3"; - var B8e = "WALLETCONNECT_CLIENT_ID"; - var Uo = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }; - var U8e = "subscription"; + var L8e = 0.1; + var B8e = "2.14.0"; + var U8e = 1e4; var j8e = "0.3"; - var V8e = yt.FIVE_SECONDS * 1e3; - var z8e = "pairing"; + var V8e = "WALLETCONNECT_CLIENT_ID"; + var Bo = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }; + var z8e = "subscription"; var F8e = "0.3"; - var Bh = { wc_pairingDelete: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 1e3 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 1001 } }, wc_pairingPing: { req: { ttl: yt.THIRTY_SECONDS, prompt: false, tag: 1002 }, res: { ttl: yt.THIRTY_SECONDS, prompt: false, tag: 1003 } }, unregistered_method: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 0 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 0 } } }; + var H8e = gt.FIVE_SECONDS * 1e3; + var q8e = "pairing"; + var W8e = "0.3"; + var Lh = { wc_pairingDelete: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 1e3 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 1001 } }, wc_pairingPing: { req: { ttl: gt.THIRTY_SECONDS, prompt: false, tag: 1002 }, res: { ttl: gt.THIRTY_SECONDS, prompt: false, tag: 1003 } }, unregistered_method: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 0 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 0 } } }; var hf = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }; - var Ys = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }; - var H8e = "history"; - var q8e = "0.3"; - var W8e = "expirer"; + var Xs = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }; + var G8e = "history"; + var K8e = "0.3"; + var X8e = "expirer"; var Is = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }; - var G8e = "0.3"; - var f3 = "verify-api"; - var K8e = "https://verify.walletconnect.com"; - var NU = "https://verify.walletconnect.org"; - var Zh = NU; - var X8e = [K8e, NU]; - var Y8e = "echo"; - var Z8e = "https://echo.walletconnect.com"; - var J8e = class { + var Y8e = "0.3"; + var l3 = "verify-api"; + var Z8e = "https://verify.walletconnect.com"; + var IU = "https://verify.walletconnect.org"; + var Yh = IU; + var J8e = [Z8e, IU]; + var Q8e = "echo"; + var $8e = "https://echo.walletconnect.com"; + var exe = class { constructor(e, r) { - this.core = e, this.logger = r, this.keychain = /* @__PURE__ */ new Map(), this.name = S8e, this.version = M8e, this.initialized = false, this.storagePrefix = ru, this.init = async () => { + this.core = e, this.logger = r, this.keychain = /* @__PURE__ */ new Map(), this.name = T8e, this.version = N8e, this.initialized = false, this.storagePrefix = eu, this.init = async () => { if (!this.initialized) { const n = await this.getKeyChain(); typeof n < "u" && (this.keychain = n), this.initialized = true; @@ -82613,11 +82644,11 @@ ${gz(e, r)}`); return this.storagePrefix + this.version + this.core.customStoragePrefix + "//" + this.name; } async setKeyChain(e) { - await this.core.storage.setItem(this.storageKey, bB(e)); + await this.core.storage.setItem(this.storageKey, wB(e)); } async getKeyChain() { const e = await this.core.storage.getItem(this.storageKey); - return typeof e < "u" ? wB(e) : void 0; + return typeof e < "u" ? vB(e) : void 0; } async persist() { await this.setKeyChain(this.keychain); @@ -82629,29 +82660,29 @@ ${gz(e, r)}`); } } }; - var Q8e = class { + var txe = class { constructor(e, r, n) { - this.core = e, this.logger = r, this.name = _8e, this.randomSessionIdentifier = fv(), this.initialized = false, this.init = async () => { + this.core = e, this.logger = r, this.name = M8e, this.randomSessionIdentifier = lv(), this.initialized = false, this.init = async () => { this.initialized || (await this.keychain.init(), this.initialized = true); }, this.hasKeys = (i) => (this.isInitialized(), this.keychain.has(i)), this.getClientId = async () => { this.isInitialized(); - const i = await this.getClientSeed(), s = VS(i); - return iB(s.publicKey); + const i = await this.getClientSeed(), s = jS(i); + return sB(s.publicKey); }, this.generateKeyPair = () => { this.isInitialized(); - const i = e5e(); + const i = n5e(); return this.setPrivateKey(i.publicKey, i.privateKey); }, this.signJWT = async (i) => { this.isInitialized(); - const s = await this.getClientSeed(), o = VS(s), a = this.randomSessionIdentifier; - return await X2e(a, i, E8e, o); + const s = await this.getClientSeed(), o = jS(s), a = this.randomSessionIdentifier; + return await J2e(a, i, A8e, o); }, this.generateSharedKey = (i, s, o) => { this.isInitialized(); - const a = this.getPrivateKey(i), c = t5e(a, s); + const a = this.getPrivateKey(i), c = i5e(a, s); return this.setSymKey(c, o); }, this.setSymKey = async (i, s) => { this.isInitialized(); - const o = s || w1(i); + const o = s || v1(i); return await this.keychain.set(o, i), o; }, this.deleteKeyPair = async (i) => { this.isInitialized(), await this.keychain.del(i); @@ -82659,33 +82690,33 @@ ${gz(e, r)}`); this.isInitialized(), await this.keychain.del(i); }, this.encode = async (i, s, o) => { this.isInitialized(); - const a = aU(o), c = ul(s); - if (OM(a)) { + const a = cU(o), c = ul(s); + if (IM(a)) { const b = a.senderPublicKey, E = a.receiverPublicKey; i = await this.generateSharedKey(b, E); } const u = this.getSymKey(i), { type: f, senderPublicKey: p } = a; - return n5e({ type: f, symKey: u, message: c, senderPublicKey: p }); + return o5e({ type: f, symKey: u, message: c, senderPublicKey: p }); }, this.decode = async (i, s, o) => { this.isInitialized(); - const a = o5e(s, o); - if (OM(a)) { + const a = u5e(s, o); + if (IM(a)) { const c = a.receiverPublicKey, u = a.senderPublicKey; i = await this.generateSharedKey(c, u); } try { - const c = this.getSymKey(i), u = i5e({ symKey: c, encoded: s }); - return E2(u); + const c = this.getSymKey(i), u = a5e({ symKey: c, encoded: s }); + return S2(u); } catch (c) { this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`), this.logger.error(c); } }, this.getPayloadType = (i) => { - const s = Vm(i); + const s = zm(i); return C0(s.type); }, this.getPayloadSenderPublicKey = (i) => { - const s = Vm(i); - return s.senderPublicKey ? js(s.senderPublicKey, Si) : void 0; - }, this.core = e, this.logger = Zi(r, this.name), this.keychain = n || new J8e(this.core, this.logger); + const s = zm(i); + return s.senderPublicKey ? Us(s.senderPublicKey, Si) : void 0; + }, this.core = e, this.logger = Zi(r, this.name), this.keychain = n || new exe(this.core, this.logger); } get context() { return Yi(this.logger); @@ -82699,11 +82730,11 @@ ${gz(e, r)}`); async getClientSeed() { let e = ""; try { - e = this.keychain.get(eA); + e = this.keychain.get($M); } catch { - e = fv(), await this.keychain.set(eA, e); + e = lv(), await this.keychain.set($M, e); } - return b8e(e, "base16"); + return x8e(e, "base16"); } getSymKey(e) { return this.keychain.get(e); @@ -82715,9 +82746,9 @@ ${gz(e, r)}`); } } }; - var $8e = class extends ege { + var rxe = class extends nge { constructor(e, r) { - super(e, r), this.logger = e, this.core = r, this.messages = /* @__PURE__ */ new Map(), this.name = A8e, this.version = T8e, this.initialized = false, this.storagePrefix = ru, this.init = async () => { + super(e, r), this.logger = e, this.core = r, this.messages = /* @__PURE__ */ new Map(), this.name = I8e, this.version = O8e, this.initialized = false, this.storagePrefix = eu, this.init = async () => { if (!this.initialized) { this.logger.trace("Initialized"); try { @@ -82753,11 +82784,11 @@ ${gz(e, r)}`); return this.storagePrefix + this.version + this.core.customStoragePrefix + "//" + this.name; } async setRelayerMessages(e) { - await this.core.storage.setItem(this.storageKey, bB(e)); + await this.core.storage.setItem(this.storageKey, wB(e)); } async getRelayerMessages() { const e = await this.core.storage.getItem(this.storageKey); - return typeof e < "u" ? wB(e) : void 0; + return typeof e < "u" ? vB(e) : void 0; } async persist() { await this.setRelayerMessages(this.messages); @@ -82769,12 +82800,12 @@ ${gz(e, r)}`); } } }; - var exe = class extends tge { + var nxe = class extends ige { constructor(e, r) { - super(e, r), this.relayer = e, this.logger = r, this.events = new xo.EventEmitter(), this.name = I8e, this.queue = /* @__PURE__ */ new Map(), this.publishTimeout = yt.toMiliseconds(yt.ONE_MINUTE), this.failedPublishTimeout = yt.toMiliseconds(yt.ONE_SECOND), this.needsTransportRestart = false, this.publish = async (n, i, s) => { + super(e, r), this.relayer = e, this.logger = r, this.events = new vo.EventEmitter(), this.name = k8e, this.queue = /* @__PURE__ */ new Map(), this.publishTimeout = gt.toMiliseconds(gt.ONE_MINUTE), this.failedPublishTimeout = gt.toMiliseconds(gt.ONE_SECOND), this.needsTransportRestart = false, this.publish = async (n, i, s) => { var o; this.logger.debug("Publishing Payload"), this.logger.trace({ type: "method", method: "publish", params: { topic: n, message: i, opts: s } }); - const a = (s == null ? void 0 : s.ttl) || N8e, c = hv(s), u = (s == null ? void 0 : s.prompt) || false, f = (s == null ? void 0 : s.tag) || 0, p = (s == null ? void 0 : s.id) || ju().toString(), b = { topic: n, message: i, opts: { ttl: a, relay: c, prompt: u, tag: f, id: p } }, E = `Failed to publish payload, please try again. id:${p} tag:${f}`, _ = Date.now(); + const a = (s == null ? void 0 : s.ttl) || P8e, c = fv(s), u = (s == null ? void 0 : s.prompt) || false, f = (s == null ? void 0 : s.tag) || 0, p = (s == null ? void 0 : s.id) || ju().toString(), b = { topic: n, message: i, opts: { ttl: a, relay: c, prompt: u, tag: f, id: p } }, E = `Failed to publish payload, please try again. id:${p} tag:${f}`, _ = Date.now(); let N, k = 1; try { for (; N === void 0; ) { @@ -82782,7 +82813,7 @@ ${gz(e, r)}`); throw new Error(E); this.logger.trace({ id: p, attempts: k }, `publisher.publish - attempt ${k}`), N = await await wf(this.rpcPublish(n, i, a, c, u, f, p).catch((F) => this.logger.warn(F)), this.publishTimeout, E), k++, N || await new Promise((F) => setTimeout(F, this.failedPublishTimeout)); } - this.relayer.events.emit(Vi.publish, b), this.logger.debug("Successfully Published Payload"), this.logger.trace({ type: "method", method: "publish", params: { id: p, topic: n, message: i, opts: s } }); + this.relayer.events.emit(ji.publish, b), this.logger.debug("Successfully Published Payload"), this.logger.trace({ type: "method", method: "publish", params: { id: p, topic: n, message: i, opts: s } }); } catch (F) { if (this.logger.debug("Failed to Publish Payload"), this.logger.error(F), (o = s == null ? void 0 : s.internal) != null && o.throwOnFailedPublish) throw F; @@ -82803,7 +82834,7 @@ ${gz(e, r)}`); } rpcPublish(e, r, n, i, s, o, a) { var c, u, f, p; - const b = { method: Yh(i.protocol).publish, params: { topic: e, message: r, ttl: n, prompt: s, tag: o }, id: a }; + const b = { method: Xh(i.protocol).publish, params: { topic: e, message: r, ttl: n, prompt: s, tag: o }, id: a }; return _i((c = b.params) == null ? void 0 : c.prompt) && ((u = b.params) == null || delete u.prompt), _i((f = b.params) == null ? void 0 : f.tag) && ((p = b.params) == null || delete p.tag), this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "message", direction: "outgoing", request: b }), this.relayer.request(b); } removeRequestFromQueue(e) { @@ -82818,16 +82849,16 @@ ${gz(e, r)}`); registerEventListeners() { this.relayer.core.heartbeat.on(N0.pulse, () => { if (this.needsTransportRestart) { - this.needsTransportRestart = false, this.relayer.events.emit(Vi.connection_stalled); + this.needsTransportRestart = false, this.relayer.events.emit(ji.connection_stalled); return; } this.checkQueue(); - }), this.relayer.on(Vi.message_ack, (e) => { + }), this.relayer.on(ji.message_ack, (e) => { this.removeRequestFromQueue(e.id.toString()); }); } }; - var txe = class { + var ixe = class { constructor() { this.map = /* @__PURE__ */ new Map(), this.set = (e, r) => { const n = this.get(e); @@ -82856,30 +82887,30 @@ ${gz(e, r)}`); return Array.from(this.map.keys()); } }; - var rxe = Object.defineProperty; - var nxe = Object.defineProperties; - var ixe = Object.getOwnPropertyDescriptors; - var tA = Object.getOwnPropertySymbols; - var sxe = Object.prototype.hasOwnProperty; - var oxe = Object.prototype.propertyIsEnumerable; - var rA = (t, e, r) => e in t ? rxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var Uh = (t, e) => { + var sxe = Object.defineProperty; + var oxe = Object.defineProperties; + var axe = Object.getOwnPropertyDescriptors; + var eA = Object.getOwnPropertySymbols; + var cxe = Object.prototype.hasOwnProperty; + var uxe = Object.prototype.propertyIsEnumerable; + var tA = (t, e, r) => e in t ? sxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var Bh = (t, e) => { for (var r in e || (e = {})) - sxe.call(e, r) && rA(t, r, e[r]); - if (tA) - for (var r of tA(e)) - oxe.call(e, r) && rA(t, r, e[r]); + cxe.call(e, r) && tA(t, r, e[r]); + if (eA) + for (var r of eA(e)) + uxe.call(e, r) && tA(t, r, e[r]); return t; }; - var h3 = (t, e) => nxe(t, ixe(e)); - var axe = class extends ige { + var f3 = (t, e) => oxe(t, axe(e)); + var lxe = class extends age { constructor(e, r) { - super(e, r), this.relayer = e, this.logger = r, this.subscriptions = /* @__PURE__ */ new Map(), this.topicMap = new txe(), this.events = new xo.EventEmitter(), this.name = U8e, this.version = j8e, this.pending = /* @__PURE__ */ new Map(), this.cached = [], this.initialized = false, this.pendingSubscriptionWatchLabel = "pending_sub_watch_label", this.pollingInterval = 20, this.storagePrefix = ru, this.subscribeTimeout = yt.toMiliseconds(yt.ONE_MINUTE), this.restartInProgress = false, this.batchSubscribeTopicsLimit = 500, this.pendingBatchMessages = [], this.init = async () => { + super(e, r), this.relayer = e, this.logger = r, this.subscriptions = /* @__PURE__ */ new Map(), this.topicMap = new ixe(), this.events = new vo.EventEmitter(), this.name = z8e, this.version = F8e, this.pending = /* @__PURE__ */ new Map(), this.cached = [], this.initialized = false, this.pendingSubscriptionWatchLabel = "pending_sub_watch_label", this.pollingInterval = 20, this.storagePrefix = eu, this.subscribeTimeout = gt.toMiliseconds(gt.ONE_MINUTE), this.restartInProgress = false, this.batchSubscribeTopicsLimit = 500, this.pendingBatchMessages = [], this.init = async () => { this.initialized || (this.logger.trace("Initialized"), this.registerEventListeners(), this.clientId = await this.relayer.core.crypto.getClientId()); }, this.subscribe = async (n, i) => { await this.restartToComplete(), this.isInitialized(), this.logger.debug("Subscribing Topic"), this.logger.trace({ type: "method", method: "subscribe", params: { topic: n, opts: i } }); try { - const s = hv(i), o = { topic: n, relay: s }; + const s = fv(i), o = { topic: n, relay: s }; this.pending.set(n, o); const a = await this.rpcSubscribe(n, s); return typeof a == "string" && (this.onSubscribe(a, o), this.logger.debug("Successfully Subscribed Topic"), this.logger.trace({ type: "method", method: "subscribe", params: { topic: n, opts: i } })), a; @@ -82893,10 +82924,10 @@ ${gz(e, r)}`); return true; const i = `${this.pendingSubscriptionWatchLabel}_${n}`; return await new Promise((s, o) => { - const a = new yt.Watch(); + const a = new gt.Watch(); a.start(i); const c = setInterval(() => { - !this.pending.has(n) && this.topics.includes(n) && (clearInterval(c), a.stop(i), s(true)), a.elapsed(i) >= V8e && (clearInterval(c), a.stop(i), o(new Error("Subscription resolution timeout"))); + !this.pending.has(n) && this.topics.includes(n) && (clearInterval(c), a.stop(i), s(true)), a.elapsed(i) >= H8e && (clearInterval(c), a.stop(i), o(new Error("Subscription resolution timeout"))); }, this.pollingInterval); }).catch(() => false); }, this.on = (n, i) => { @@ -82954,7 +82985,7 @@ ${gz(e, r)}`); async unsubscribeById(e, r, n) { this.logger.debug("Unsubscribing Topic"), this.logger.trace({ type: "method", method: "unsubscribe", params: { topic: e, id: r, opts: n } }); try { - const i = hv(n); + const i = fv(n); await this.rpcUnsubscribe(e, r, i); const s = xr("USER_DISCONNECTED", `${this.name}, ${e}`); await this.onUnsubscribe(e, r, s), this.logger.debug("Successfully Unsubscribed Topic"), this.logger.trace({ type: "method", method: "unsubscribe", params: { topic: e, id: r, opts: n } }); @@ -82963,49 +82994,49 @@ ${gz(e, r)}`); } } async rpcSubscribe(e, r) { - const n = { method: Yh(r.protocol).subscribe, params: { topic: e } }; + const n = { method: Xh(r.protocol).subscribe, params: { topic: e } }; this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: n }); try { return await await wf(this.relayer.request(n).catch((i) => this.logger.warn(i)), this.subscribeTimeout) ? Uu(e + this.clientId) : null; } catch { - this.logger.debug("Outgoing Relay Subscribe Payload stalled"), this.relayer.events.emit(Vi.connection_stalled); + this.logger.debug("Outgoing Relay Subscribe Payload stalled"), this.relayer.events.emit(ji.connection_stalled); } return null; } async rpcBatchSubscribe(e) { if (!e.length) return; - const r = e[0].relay, n = { method: Yh(r.protocol).batchSubscribe, params: { topics: e.map((i) => i.topic) } }; + const r = e[0].relay, n = { method: Xh(r.protocol).batchSubscribe, params: { topics: e.map((i) => i.topic) } }; this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: n }); try { return await await wf(this.relayer.request(n).catch((i) => this.logger.warn(i)), this.subscribeTimeout); } catch { - this.relayer.events.emit(Vi.connection_stalled); + this.relayer.events.emit(ji.connection_stalled); } } async rpcBatchFetchMessages(e) { if (!e.length) return; - const r = e[0].relay, n = { method: Yh(r.protocol).batchFetchMessages, params: { topics: e.map((s) => s.topic) } }; + const r = e[0].relay, n = { method: Xh(r.protocol).batchFetchMessages, params: { topics: e.map((s) => s.topic) } }; this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: n }); let i; try { i = await await wf(this.relayer.request(n).catch((s) => this.logger.warn(s)), this.subscribeTimeout); } catch { - this.relayer.events.emit(Vi.connection_stalled); + this.relayer.events.emit(ji.connection_stalled); } return i; } rpcUnsubscribe(e, r, n) { - const i = { method: Yh(n.protocol).unsubscribe, params: { topic: e, id: r } }; + const i = { method: Xh(n.protocol).unsubscribe, params: { topic: e, id: r } }; return this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: i }), this.relayer.request(i); } onSubscribe(e, r) { - this.setSubscription(e, h3(Uh({}, r), { id: e })), this.pending.delete(r.topic); + this.setSubscription(e, f3(Bh({}, r), { id: e })), this.pending.delete(r.topic); } onBatchSubscribe(e) { e.length && e.forEach((r) => { - this.setSubscription(r.id, Uh({}, r)), this.pending.delete(r.topic); + this.setSubscription(r.id, Bh({}, r)), this.pending.delete(r.topic); }); } async onUnsubscribe(e, r, n) { @@ -83021,7 +83052,7 @@ ${gz(e, r)}`); this.logger.debug("Setting subscription"), this.logger.trace({ type: "method", method: "setSubscription", id: e, subscription: r }), this.addSubscription(e, r); } addSubscription(e, r) { - this.subscriptions.set(e, Uh({}, r)), this.topicMap.set(r.topic, e), this.events.emit(Uo.created, r); + this.subscriptions.set(e, Bh({}, r)), this.topicMap.set(r.topic, e), this.events.emit(Bo.created, r); } getSubscription(e) { this.logger.debug("Getting subscription"), this.logger.trace({ type: "method", method: "getSubscription", id: e }); @@ -83035,10 +83066,10 @@ ${gz(e, r)}`); deleteSubscription(e, r) { this.logger.debug("Deleting subscription"), this.logger.trace({ type: "method", method: "deleteSubscription", id: e, reason: r }); const n = this.getSubscription(e); - this.subscriptions.delete(e), this.topicMap.delete(n.topic, e), this.events.emit(Uo.deleted, h3(Uh({}, n), { reason: r })); + this.subscriptions.delete(e), this.topicMap.delete(n.topic, e), this.events.emit(Bo.deleted, f3(Bh({}, n), { reason: r })); } async persist() { - await this.setRelayerSubscriptions(this.values), this.events.emit(Uo.sync); + await this.setRelayerSubscriptions(this.values), this.events.emit(Bo.sync); } async reset() { if (this.cached.length) { @@ -83048,7 +83079,7 @@ ${gz(e, r)}`); await this.batchFetchMessages(n), await this.batchSubscribe(n); } } - this.events.emit(Uo.resubscribed); + this.events.emit(Bo.resubscribed); } async restore() { try { @@ -83068,7 +83099,7 @@ ${gz(e, r)}`); if (!e.length) return; const r = await this.rpcBatchSubscribe(e); - D0(r) && this.onBatchSubscribe(r.map((n, i) => h3(Uh({}, e[i]), { id: n }))); + D0(r) && this.onBatchSubscribe(r.map((n, i) => f3(Bh({}, e[i]), { id: n }))); } async batchFetchMessages(e) { if (!e.length) @@ -83094,11 +83125,11 @@ ${gz(e, r)}`); registerEventListeners() { this.relayer.core.heartbeat.on(N0.pulse, async () => { await this.checkPending(); - }), this.events.on(Uo.created, async (e) => { - const r = Uo.created; + }), this.events.on(Bo.created, async (e) => { + const r = Bo.created; this.logger.info(`Emitting ${r}`), this.logger.debug({ type: "event", event: r, data: e }), await this.persist(); - }), this.events.on(Uo.deleted, async (e) => { - const r = Uo.deleted; + }), this.events.on(Bo.deleted, async (e) => { + const r = Bo.deleted; this.logger.info(`Emitting ${r}`), this.logger.debug({ type: "event", event: r, data: e }), await this.persist(); }); } @@ -83116,22 +83147,22 @@ ${gz(e, r)}`); }); } }; - var cxe = Object.defineProperty; - var nA = Object.getOwnPropertySymbols; - var uxe = Object.prototype.hasOwnProperty; - var lxe = Object.prototype.propertyIsEnumerable; - var iA = (t, e, r) => e in t ? cxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var fxe = (t, e) => { + var fxe = Object.defineProperty; + var rA = Object.getOwnPropertySymbols; + var hxe = Object.prototype.hasOwnProperty; + var dxe = Object.prototype.propertyIsEnumerable; + var nA = (t, e, r) => e in t ? fxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var pxe = (t, e) => { for (var r in e || (e = {})) - uxe.call(e, r) && iA(t, r, e[r]); - if (nA) - for (var r of nA(e)) - lxe.call(e, r) && iA(t, r, e[r]); + hxe.call(e, r) && nA(t, r, e[r]); + if (rA) + for (var r of rA(e)) + dxe.call(e, r) && nA(t, r, e[r]); return t; }; - var hxe = class extends rge { + var mxe = class extends sge { constructor(e) { - super(e), this.protocol = "wc", this.version = 2, this.events = new xo.EventEmitter(), this.name = P8e, this.transportExplicitlyClosed = false, this.initialized = false, this.connectionAttemptInProgress = false, this.connectionStatusPollingInterval = 20, this.staleConnectionErrors = ["socket hang up", "stalled", "interrupted"], this.hasExperiencedNetworkDisruption = false, this.requestsInFlight = /* @__PURE__ */ new Map(), this.heartBeatTimeout = yt.toMiliseconds(yt.THIRTY_SECONDS + yt.ONE_SECOND), this.request = async (r) => { + super(e), this.protocol = "wc", this.version = 2, this.events = new vo.EventEmitter(), this.name = C8e, this.transportExplicitlyClosed = false, this.initialized = false, this.connectionAttemptInProgress = false, this.connectionStatusPollingInterval = 20, this.staleConnectionErrors = ["socket hang up", "stalled", "interrupted"], this.hasExperiencedNetworkDisruption = false, this.requestsInFlight = /* @__PURE__ */ new Map(), this.heartBeatTimeout = gt.toMiliseconds(gt.THIRTY_SECONDS + gt.ONE_SECOND), this.request = async (r) => { var n, i; this.logger.debug("Publishing Request Payload"); const s = r.id || ju().toString(); @@ -83154,7 +83185,7 @@ ${gz(e, r)}`); this.requestsInFlight.delete(s); } }, this.resetPingTimeout = () => { - if (zd()) + if (Vd()) try { clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => { var r, n, i; @@ -83166,19 +83197,19 @@ ${gz(e, r)}`); }, this.onPayloadHandler = (r) => { this.onProviderPayload(r), this.resetPingTimeout(); }, this.onConnectHandler = () => { - this.logger.trace("relayer connected"), this.startPingTimeout(), this.events.emit(Vi.connect); + this.logger.trace("relayer connected"), this.startPingTimeout(), this.events.emit(ji.connect); }, this.onDisconnectHandler = () => { this.logger.trace("relayer disconnected"), this.onProviderDisconnect(); }, this.onProviderErrorHandler = (r) => { - this.logger.error(r), this.events.emit(Vi.error, r), this.logger.info("Fatal socket error received, closing transport"), this.transportClose(); + this.logger.error(r), this.events.emit(ji.error, r), this.logger.info("Fatal socket error received, closing transport"), this.transportClose(); }, this.registerProviderListeners = () => { this.provider.on(Es.payload, this.onPayloadHandler), this.provider.on(Es.connect, this.onConnectHandler), this.provider.on(Es.disconnect, this.onDisconnectHandler), this.provider.on(Es.error, this.onProviderErrorHandler); - }, this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Zi(e.logger, this.name) : A2(Fx({ level: e.logger || O8e })), this.messages = new $8e(this.logger, e.core), this.subscriber = new axe(this, this.logger), this.publisher = new exe(this, this.logger), this.relayUrl = (e == null ? void 0 : e.relayUrl) || TU, this.projectId = e.projectId, this.bundleId = Wye(), this.provider = {}; + }, this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Zi(e.logger, this.name) : T2(zx({ level: e.logger || R8e })), this.messages = new rxe(this.logger, e.core), this.subscriber = new lxe(this, this.logger), this.publisher = new nxe(this, this.logger), this.relayUrl = (e == null ? void 0 : e.relayUrl) || NU, this.projectId = e.projectId, this.bundleId = Xye(), this.provider = {}; } async init() { this.logger.trace("Initialized"), this.registerEventListeners(), await Promise.all([this.messages.init(), this.subscriber.init()]), await this.transportOpen(), this.initialized = true, setTimeout(async () => { this.subscriber.topics.length === 0 && this.subscriber.pending.size === 0 && (this.logger.info("No topics subscribed to after init, closing transport"), await this.transportClose(), this.transportExplicitlyClosed = false); - }, D8e); + }, U8e); } get context() { return Yi(this.logger); @@ -83199,10 +83230,10 @@ ${gz(e, r)}`); this.isInitialized(); let i = ((n = this.subscriber.topicMap.get(e)) == null ? void 0 : n[0]) || "", s; const o = (a) => { - a.topic === e && (this.subscriber.off(Uo.created, o), s()); + a.topic === e && (this.subscriber.off(Bo.created, o), s()); }; return await Promise.all([new Promise((a) => { - s = a, this.subscriber.on(Uo.created, o); + s = a, this.subscriber.on(Bo.created, o); }), new Promise(async (a) => { i = await this.subscriber.subscribe(e, r) || i, a(); })]), i; @@ -83241,7 +83272,7 @@ ${gz(e, r)}`); const i = () => { this.provider.off(Es.disconnect, i), n(new Error("Connection interrupted while trying to subscribe")); }; - this.provider.on(Es.disconnect, i), await wf(this.provider.connect(), yt.toMiliseconds(yt.ONE_MINUTE), `Socket stalled when trying to connect to ${this.relayUrl}`).catch((s) => { + this.provider.on(Es.disconnect, i), await wf(this.provider.connect(), gt.toMiliseconds(gt.ONE_MINUTE), `Socket stalled when trying to connect to ${this.relayUrl}`).catch((s) => { n(s); }), this.subscriber.start().catch((s) => { this.logger.error(s), this.onDisconnectHandler(); @@ -83260,7 +83291,7 @@ ${gz(e, r)}`); this.connectionAttemptInProgress || (this.relayUrl = e || this.relayUrl, await this.confirmOnlineStateOrThrow(), await this.transportClose(), await this.transportOpen()); } async confirmOnlineStateOrThrow() { - if (!await VM()) + if (!await jM()) throw new Error("No internet connection detected. Please restart your network and try again."); } async handleBatchMessageEvents(e) { @@ -83280,7 +83311,7 @@ ${gz(e, r)}`); } startPingTimeout() { var e, r, n, i, s; - if (zd()) + if (Vd()) try { (r = (e = this.provider) == null ? void 0 : e.connection) != null && r.socket && ((s = (i = (n = this.provider) == null ? void 0 : n.connection) == null ? void 0 : i.socket) == null || s.once("ping", () => { this.resetPingTimeout(); @@ -83295,7 +83326,7 @@ ${gz(e, r)}`); async createProvider() { this.provider.connection && this.unregisterProviderListeners(); const e = await this.core.crypto.signJWT(this.relayUrl); - this.provider = new Uve(new Fve(Zye({ sdkVersion: C8e, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: true, bundleId: this.bundleId }))), this.registerProviderListeners(); + this.provider = new zve(new Wve($ye({ sdkVersion: B8e, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: true, bundleId: this.bundleId }))), this.registerProviderListeners(); } async recordMessageEvent(e) { const { topic: r, message: n } = e; @@ -83311,34 +83342,34 @@ ${gz(e, r)}`); return i && this.logger.debug(`Ignoring duplicate message: ${n}`), i; } async onProviderPayload(e) { - if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }), f9(e)) { - if (!e.method.endsWith(k8e)) + if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }), l9(e)) { + if (!e.method.endsWith(D8e)) return; const r = e.params, { topic: n, message: i, publishedAt: s } = r.data, o = { topic: n, message: i, publishedAt: s }; - this.logger.debug("Emitting Relayer Payload"), this.logger.trace(fxe({ type: "event", event: r.id }, o)), this.events.emit(r.id, o), await this.acknowledgePayload(e), await this.onMessageEvent(o); + this.logger.debug("Emitting Relayer Payload"), this.logger.trace(pxe({ type: "event", event: r.id }, o)), this.events.emit(r.id, o), await this.acknowledgePayload(e), await this.onMessageEvent(o); } else - C2(e) && this.events.emit(Vi.message_ack, e); + D2(e) && this.events.emit(ji.message_ack, e); } async onMessageEvent(e) { - await this.shouldIgnoreMessageEvent(e) || (this.events.emit(Vi.message, e), await this.recordMessageEvent(e)); + await this.shouldIgnoreMessageEvent(e) || (this.events.emit(ji.message, e), await this.recordMessageEvent(e)); } async acknowledgePayload(e) { - const r = u9(e.id, true); + const r = c9(e.id, true); await this.provider.connection.send(r); } unregisterProviderListeners() { this.provider.off(Es.payload, this.onPayloadHandler), this.provider.off(Es.connect, this.onConnectHandler), this.provider.off(Es.disconnect, this.onDisconnectHandler), this.provider.off(Es.error, this.onProviderErrorHandler), clearTimeout(this.pingTimeout); } async registerEventListeners() { - let e = await VM(); - Z5e(async (r) => { + let e = await jM(); + $5e(async (r) => { e !== r && (e = r, r ? await this.restartTransport().catch((n) => this.logger.error(n)) : (this.hasExperiencedNetworkDisruption = true, await this.transportDisconnect(), this.transportExplicitlyClosed = false)); }); } async onProviderDisconnect() { - await this.subscriber.stop(), this.requestsInFlight.clear(), clearTimeout(this.pingTimeout), this.events.emit(Vi.disconnect), this.connectionAttemptInProgress = false, !this.transportExplicitlyClosed && setTimeout(async () => { + await this.subscriber.stop(), this.requestsInFlight.clear(), clearTimeout(this.pingTimeout), this.events.emit(ji.disconnect), this.connectionAttemptInProgress = false, !this.transportExplicitlyClosed && setTimeout(async () => { await this.transportOpen().catch((e) => this.logger.error(e)); - }, yt.toMiliseconds(R8e)); + }, gt.toMiliseconds(L8e)); } isInitialized() { if (!this.initialized) { @@ -83354,30 +83385,30 @@ ${gz(e, r)}`); }), await this.transportOpen()); } }; - var dxe = Object.defineProperty; - var sA = Object.getOwnPropertySymbols; - var pxe = Object.prototype.hasOwnProperty; - var mxe = Object.prototype.propertyIsEnumerable; - var oA = (t, e, r) => e in t ? dxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var aA = (t, e) => { + var gxe = Object.defineProperty; + var iA = Object.getOwnPropertySymbols; + var yxe = Object.prototype.hasOwnProperty; + var bxe = Object.prototype.propertyIsEnumerable; + var sA = (t, e, r) => e in t ? gxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var oA = (t, e) => { for (var r in e || (e = {})) - pxe.call(e, r) && oA(t, r, e[r]); - if (sA) - for (var r of sA(e)) - mxe.call(e, r) && oA(t, r, e[r]); + yxe.call(e, r) && sA(t, r, e[r]); + if (iA) + for (var r of iA(e)) + bxe.call(e, r) && sA(t, r, e[r]); return t; }; - var Cl = class extends nge { - constructor(e, r, n, i = ru, s = void 0) { - super(e, r, n, i), this.core = e, this.logger = r, this.name = n, this.map = /* @__PURE__ */ new Map(), this.version = L8e, this.cached = [], this.initialized = false, this.storagePrefix = ru, this.recentlyDeleted = [], this.recentlyDeletedLimit = 200, this.init = async () => { + var Cl = class extends oge { + constructor(e, r, n, i = eu, s = void 0) { + super(e, r, n, i), this.core = e, this.logger = r, this.name = n, this.map = /* @__PURE__ */ new Map(), this.version = j8e, this.cached = [], this.initialized = false, this.storagePrefix = eu, this.recentlyDeleted = [], this.recentlyDeletedLimit = 200, this.init = async () => { this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((o) => { - this.getKey && o !== null && !_i(o) ? this.map.set(this.getKey(o), o) : T5e(o) ? this.map.set(o.id, o) : N5e(o) && this.map.set(o.topic, o); + this.getKey && o !== null && !_i(o) ? this.map.set(this.getKey(o), o) : O5e(o) ? this.map.set(o.id, o) : P5e(o) && this.map.set(o.topic, o); }), this.cached = [], this.initialized = true); }, this.set = async (o, a) => { this.isInitialized(), this.map.has(o) ? await this.update(o, a) : (this.logger.debug("Setting value"), this.logger.trace({ type: "method", method: "set", key: o, value: a }), this.map.set(o, a), await this.persist()); - }, this.get = (o) => (this.isInitialized(), this.logger.debug("Getting value"), this.logger.trace({ type: "method", method: "get", key: o }), this.getData(o)), this.getAll = (o) => (this.isInitialized(), o ? this.values.filter((a) => Object.keys(o).every((c) => qve(a[c], o[c]))) : this.values), this.update = async (o, a) => { + }, this.get = (o) => (this.isInitialized(), this.logger.debug("Getting value"), this.logger.trace({ type: "method", method: "get", key: o }), this.getData(o)), this.getAll = (o) => (this.isInitialized(), o ? this.values.filter((a) => Object.keys(o).every((c) => Kve(a[c], o[c]))) : this.values), this.update = async (o, a) => { this.isInitialized(), this.logger.debug("Updating value"), this.logger.trace({ type: "method", method: "update", key: o, update: a }); - const c = aA(aA({}, this.getData(o)), a); + const c = oA(oA({}, this.getData(o)), a); this.map.set(o, c), await this.persist(); }, this.delete = async (o, a) => { this.isInitialized(), this.map.has(o) && (this.logger.debug("Deleting value"), this.logger.trace({ type: "method", method: "delete", key: o, reason: a }), this.map.delete(o), this.addToRecentlyDeleted(o), await this.persist()); @@ -83443,34 +83474,34 @@ ${gz(e, r)}`); } } }; - var gxe = class { + var wxe = class { constructor(e, r) { - this.core = e, this.logger = r, this.name = z8e, this.version = F8e, this.events = new DL(), this.initialized = false, this.storagePrefix = ru, this.ignoredPayloadTypes = [Xa], this.registeredMethods = [], this.init = async () => { + this.core = e, this.logger = r, this.name = q8e, this.version = W8e, this.events = new LL(), this.initialized = false, this.storagePrefix = eu, this.ignoredPayloadTypes = [Ga], this.registeredMethods = [], this.init = async () => { this.initialized || (await this.pairings.init(), await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.initialized = true, this.logger.trace("Initialized")); }, this.register = ({ methods: n }) => { this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...n])]; }, this.create = async (n) => { this.isInitialized(); - const i = fv(), s = await this.core.crypto.setSymKey(i), o = Xn(yt.FIVE_MINUTES), a = { protocol: AU }, c = { topic: s, expiry: o, relay: a, active: false }, u = y5e({ protocol: this.core.protocol, version: this.core.version, topic: s, symKey: i, relay: a, expiryTimestamp: o, methods: n == null ? void 0 : n.methods }); + const i = lv(), s = await this.core.crypto.setSymKey(i), o = Xn(gt.FIVE_MINUTES), a = { protocol: TU }, c = { topic: s, expiry: o, relay: a, active: false }, u = v5e({ protocol: this.core.protocol, version: this.core.version, topic: s, symKey: i, relay: a, expiryTimestamp: o, methods: n == null ? void 0 : n.methods }); return this.core.expirer.set(s, o), await this.pairings.set(s, c), await this.core.relayer.subscribe(s), { topic: s, uri: u }; }, this.pair = async (n) => { this.isInitialized(), this.isValidPair(n); - const { topic: i, symKey: s, relay: o, expiryTimestamp: a, methods: c } = CM(n.uri); + const { topic: i, symKey: s, relay: o, expiryTimestamp: a, methods: c } = RM(n.uri); let u; if (this.pairings.keys.includes(i) && (u = this.pairings.get(i), u.active)) throw new Error(`Pairing already exists: ${i}. Please try again with a new connection URI.`); - const f = a || Xn(yt.FIVE_MINUTES), p = { topic: i, relay: o, expiry: f, active: false, methods: c }; + const f = a || Xn(gt.FIVE_MINUTES), p = { topic: i, relay: o, expiry: f, active: false, methods: c }; return this.core.expirer.set(i, f), await this.pairings.set(i, p), n.activatePairing && await this.activate({ topic: i }), this.events.emit(hf.create, p), this.core.crypto.keychain.has(i) || await this.core.crypto.setSymKey(s, i), await this.core.relayer.subscribe(i, { relay: o }), p; }, this.activate = async ({ topic: n }) => { this.isInitialized(); - const i = Xn(yt.THIRTY_DAYS); + const i = Xn(gt.THIRTY_DAYS); this.core.expirer.set(n, i), await this.pairings.update(n, { active: true, expiry: i }); }, this.ping = async (n) => { this.isInitialized(), await this.isValidPing(n); const { topic: i } = n; if (this.pairings.keys.includes(i)) { - const s = await this.sendRequest(i, "wc_pairingPing", {}), { done: o, resolve: a, reject: c } = Iu(); - this.events.once(Wt("pairing_ping", s), ({ error: u }) => { + const s = await this.sendRequest(i, "wc_pairingPing", {}), { done: o, resolve: a, reject: c } = Nu(); + this.events.once(qt("pairing_ping", s), ({ error: u }) => { u ? c(u) : a(); }), await o(); } @@ -83483,18 +83514,18 @@ ${gz(e, r)}`); const { topic: i } = n; this.pairings.keys.includes(i) && (await this.sendRequest(i, "wc_pairingDelete", xr("USER_DISCONNECTED")), await this.deletePairing(i)); }, this.sendRequest = async (n, i, s) => { - const o = _f(i, s), a = await this.core.crypto.encode(n, o), c = Bh[i].req; + const o = _f(i, s), a = await this.core.crypto.encode(n, o), c = Lh[i].req; return this.core.history.set(n, o), this.core.relayer.publish(n, a, c), o.id; }, this.sendResult = async (n, i, s) => { - const o = u9(n, s), a = await this.core.crypto.encode(i, o), c = await this.core.history.get(i, n), u = Bh[c.request.method].res; + const o = c9(n, s), a = await this.core.crypto.encode(i, o), c = await this.core.history.get(i, n), u = Lh[c.request.method].res; await this.core.relayer.publish(i, a, u), await this.core.history.resolve(o); }, this.sendError = async (n, i, s) => { - const o = l9(n, s), a = await this.core.crypto.encode(i, o), c = await this.core.history.get(i, n), u = Bh[c.request.method] ? Bh[c.request.method].res : Bh.unregistered_method.res; + const o = u9(n, s), a = await this.core.crypto.encode(i, o), c = await this.core.history.get(i, n), u = Lh[c.request.method] ? Lh[c.request.method].res : Lh.unregistered_method.res; await this.core.relayer.publish(i, a, u), await this.core.history.resolve(o); }, this.deletePairing = async (n, i) => { await this.core.relayer.unsubscribe(n), await Promise.all([this.pairings.delete(n, xr("USER_DISCONNECTED")), this.core.crypto.deleteSymKey(n), i ? Promise.resolve() : this.core.expirer.del(n)]); }, this.cleanup = async () => { - const n = this.pairings.getAll().filter((i) => Cc(i.expiry)); + const n = this.pairings.getAll().filter((i) => kc(i.expiry)); await Promise.all(n.map((i) => this.deletePairing(i.topic))); }, this.onRelayEventRequest = (n) => { const { topic: i, payload: s } = n; @@ -83524,7 +83555,7 @@ ${gz(e, r)}`); }, this.onPairingPingResponse = (n, i) => { const { id: s } = i; setTimeout(() => { - Bo(i) ? this.events.emit(Wt("pairing_ping", s), {}) : Rs(i) && this.events.emit(Wt("pairing_ping", s), { error: i.error }); + Lo(i) ? this.events.emit(qt("pairing_ping", s), {}) : Rs(i) && this.events.emit(qt("pairing_ping", s), { error: i.error }); }, 500); }, this.onPairingDeleteRequest = async (n, i) => { const { id: s } = i; @@ -83547,15 +83578,15 @@ ${gz(e, r)}`); this.registeredMethods.includes(n) || this.logger.error(xr("WC_METHOD_UNSUPPORTED", n)); }, this.isValidPair = (n) => { var i; - if (!Bi(n)) { + if (!Li(n)) { const { message: o } = it("MISSING_OR_INVALID", `pair() params: ${n}`); throw new Error(o); } - if (!A5e(n.uri)) { + if (!I5e(n.uri)) { const { message: o } = it("MISSING_OR_INVALID", `pair() uri: ${n.uri}`); throw new Error(o); } - const s = CM(n.uri); + const s = RM(n.uri); if (!((i = s == null ? void 0 : s.relay) != null && i.protocol)) { const { message: o } = it("MISSING_OR_INVALID", "pair() uri#relay-protocol"); throw new Error(o); @@ -83564,19 +83595,19 @@ ${gz(e, r)}`); const { message: o } = it("MISSING_OR_INVALID", "pair() uri#symKey"); throw new Error(o); } - if (s != null && s.expiryTimestamp && yt.toMiliseconds(s == null ? void 0 : s.expiryTimestamp) < Date.now()) { + if (s != null && s.expiryTimestamp && gt.toMiliseconds(s == null ? void 0 : s.expiryTimestamp) < Date.now()) { const { message: o } = it("EXPIRED", "pair() URI has expired. Please try again with a new connection URI."); throw new Error(o); } }, this.isValidPing = async (n) => { - if (!Bi(n)) { + if (!Li(n)) { const { message: s } = it("MISSING_OR_INVALID", `ping() params: ${n}`); throw new Error(s); } const { topic: i } = n; await this.isValidPairingTopic(i); }, this.isValidDisconnect = async (n) => { - if (!Bi(n)) { + if (!Li(n)) { const { message: s } = it("MISSING_OR_INVALID", `disconnect() params: ${n}`); throw new Error(s); } @@ -83591,7 +83622,7 @@ ${gz(e, r)}`); const { message: i } = it("NO_MATCHING_KEY", `pairing topic doesn't exist: ${n}`); throw new Error(i); } - if (Cc(this.pairings.get(n).expiry)) { + if (kc(this.pairings.get(n).expiry)) { await this.deletePairing(n); const { message: i } = it("EXPIRED", `pairing topic: ${n}`); throw new Error(i); @@ -83608,13 +83639,13 @@ ${gz(e, r)}`); } } registerRelayerEvents() { - this.core.relayer.on(Vi.message, async (e) => { + this.core.relayer.on(ji.message, async (e) => { const { topic: r, message: n } = e; if (!this.pairings.keys.includes(r) || this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n))) return; const i = await this.core.crypto.decode(r, n); try { - f9(i) ? (this.core.history.set(r, i), this.onRelayEventRequest({ topic: r, payload: i })) : C2(i) && (await this.core.history.resolve(i), await this.onRelayEventResponse({ topic: r, payload: i }), this.core.history.delete(r, i.id)); + l9(i) ? (this.core.history.set(r, i), this.onRelayEventRequest({ topic: r, payload: i })) : D2(i) && (await this.core.history.resolve(i), await this.onRelayEventResponse({ topic: r, payload: i }), this.core.history.delete(r, i.id)); } catch (s) { this.logger.error(s); } @@ -83622,31 +83653,31 @@ ${gz(e, r)}`); } registerExpirerEvents() { this.core.expirer.on(Is.expired, async (e) => { - const { topic: r } = xB(e.target); + const { topic: r } = _B(e.target); r && this.pairings.keys.includes(r) && (await this.deletePairing(r, true), this.events.emit(hf.expire, { topic: r })); }); } }; - var yxe = class extends $me { + var vxe = class extends rge { constructor(e, r) { - super(e, r), this.core = e, this.logger = r, this.records = /* @__PURE__ */ new Map(), this.events = new xo.EventEmitter(), this.name = H8e, this.version = q8e, this.cached = [], this.initialized = false, this.storagePrefix = ru, this.init = async () => { + super(e, r), this.core = e, this.logger = r, this.records = /* @__PURE__ */ new Map(), this.events = new vo.EventEmitter(), this.name = G8e, this.version = K8e, this.cached = [], this.initialized = false, this.storagePrefix = eu, this.init = async () => { this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((n) => this.records.set(n.id, n)), this.cached = [], this.registerEventListeners(), this.initialized = true); }, this.set = (n, i, s) => { if (this.isInitialized(), this.logger.debug("Setting JSON-RPC request history record"), this.logger.trace({ type: "method", method: "set", topic: n, request: i, chainId: s }), this.records.has(i.id)) return; - const o = { id: i.id, topic: n, request: { method: i.method, params: i.params || null }, chainId: s, expiry: Xn(yt.THIRTY_DAYS) }; - this.records.set(o.id, o), this.persist(), this.events.emit(Ys.created, o); + const o = { id: i.id, topic: n, request: { method: i.method, params: i.params || null }, chainId: s, expiry: Xn(gt.THIRTY_DAYS) }; + this.records.set(o.id, o), this.persist(), this.events.emit(Xs.created, o); }, this.resolve = async (n) => { if (this.isInitialized(), this.logger.debug("Updating JSON-RPC response history record"), this.logger.trace({ type: "method", method: "update", response: n }), !this.records.has(n.id)) return; const i = await this.getRecord(n.id); - typeof i.response > "u" && (i.response = Rs(n) ? { error: n.error } : { result: n.result }, this.records.set(i.id, i), this.persist(), this.events.emit(Ys.updated, i)); + typeof i.response > "u" && (i.response = Rs(n) ? { error: n.error } : { result: n.result }, this.records.set(i.id, i), this.persist(), this.events.emit(Xs.updated, i)); }, this.get = async (n, i) => (this.isInitialized(), this.logger.debug("Getting record"), this.logger.trace({ type: "method", method: "get", topic: n, id: i }), await this.getRecord(i)), this.delete = (n, i) => { this.isInitialized(), this.logger.debug("Deleting record"), this.logger.trace({ type: "method", method: "delete", id: i }), this.values.forEach((s) => { if (s.topic === n) { if (typeof i < "u" && s.id !== i) return; - this.records.delete(s.id), this.events.emit(Ys.deleted, s); + this.records.delete(s.id), this.events.emit(Xs.deleted, s); } }), this.persist(); }, this.exists = async (n, i) => (this.isInitialized(), this.records.has(i) ? (await this.getRecord(i)).topic === n : false), this.on = (n, i) => { @@ -83699,7 +83730,7 @@ ${gz(e, r)}`); return r; } async persist() { - await this.setJsonRpcRecords(this.values), this.events.emit(Ys.sync); + await this.setJsonRpcRecords(this.values), this.events.emit(Xs.sync); } async restore() { try { @@ -83716,14 +83747,14 @@ ${gz(e, r)}`); } } registerEventListeners() { - this.events.on(Ys.created, (e) => { - const r = Ys.created; + this.events.on(Xs.created, (e) => { + const r = Xs.created; this.logger.info(`Emitting ${r}`), this.logger.debug({ type: "event", event: r, record: e }); - }), this.events.on(Ys.updated, (e) => { - const r = Ys.updated; + }), this.events.on(Xs.updated, (e) => { + const r = Xs.updated; this.logger.info(`Emitting ${r}`), this.logger.debug({ type: "event", event: r, record: e }); - }), this.events.on(Ys.deleted, (e) => { - const r = Ys.deleted; + }), this.events.on(Xs.deleted, (e) => { + const r = Xs.deleted; this.logger.info(`Emitting ${r}`), this.logger.debug({ type: "event", event: r, record: e }); }), this.core.heartbeat.on(N0.pulse, () => { this.cleanup(); @@ -83734,7 +83765,7 @@ ${gz(e, r)}`); this.isInitialized(); let e = false; this.records.forEach((r) => { - yt.toMiliseconds(r.expiry || 0) - Date.now() <= 0 && (this.logger.info(`Deleting expired history log: ${r.id}`), this.records.delete(r.id), this.events.emit(Ys.deleted, r, false), e = true); + gt.toMiliseconds(r.expiry || 0) - Date.now() <= 0 && (this.logger.info(`Deleting expired history log: ${r.id}`), this.records.delete(r.id), this.events.emit(Xs.deleted, r, false), e = true); }), e && this.persist(); } catch (e) { this.logger.warn(e); @@ -83747,9 +83778,9 @@ ${gz(e, r)}`); } } }; - var bxe = class extends sge { + var xxe = class extends cge { constructor(e, r) { - super(e, r), this.core = e, this.logger = r, this.expirations = /* @__PURE__ */ new Map(), this.events = new xo.EventEmitter(), this.name = W8e, this.version = G8e, this.cached = [], this.initialized = false, this.storagePrefix = ru, this.init = async () => { + super(e, r), this.core = e, this.logger = r, this.expirations = /* @__PURE__ */ new Map(), this.events = new vo.EventEmitter(), this.name = X8e, this.version = Y8e, this.cached = [], this.initialized = false, this.storagePrefix = eu, this.init = async () => { this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((n) => this.expirations.set(n.target, n)), this.cached = [], this.registerEventListeners(), this.initialized = true); }, this.has = (n) => { try { @@ -83798,9 +83829,9 @@ ${gz(e, r)}`); } formatTarget(e) { if (typeof e == "string") - return Jye(e); + return ebe(e); if (typeof e == "number") - return Qye(e); + return tbe(e); const { message: r } = it("UNKNOWN_TYPE", `Target type: ${typeof e}`); throw new Error(r); } @@ -83837,7 +83868,7 @@ ${gz(e, r)}`); } checkExpiry(e, r) { const { expiry: n } = r; - yt.toMiliseconds(n) - Date.now() <= 0 && this.expire(e, r); + gt.toMiliseconds(n) - Date.now() <= 0 && this.expire(e, r); } expire(e, r) { this.expirations.delete(e), this.events.emit(Is.expired, { target: e, expiration: r }); @@ -83864,10 +83895,10 @@ ${gz(e, r)}`); } } }; - var wxe = class extends oge { + var _xe = class extends uge { constructor(e, r) { - super(e, r), this.projectId = e, this.logger = r, this.name = f3, this.initialized = false, this.queue = [], this.verifyDisabled = false, this.init = async (n) => { - if (this.verifyDisabled || rh() || !nh()) + super(e, r), this.projectId = e, this.logger = r, this.name = l3, this.initialized = false, this.queue = [], this.verifyDisabled = false, this.init = async (n) => { + if (this.verifyDisabled || th() || !rh()) return; const i = this.getVerifyUrl(n == null ? void 0 : n.verifyUrl); this.verifyUrl !== i && this.removeIframe(), this.verifyUrl = i; @@ -83885,7 +83916,7 @@ ${gz(e, r)}`); return this.fetchAttestation(n.attestationId, i); }, this.fetchAttestation = async (n, i) => { this.logger.info(`resolving attestation: ${n} from url: ${i}`); - const s = this.startAbortTimer(yt.ONE_SECOND * 5), o = await fetch(`${i}/attestation/${n}`, { signal: this.abortController.signal }); + const s = this.startAbortTimer(gt.ONE_SECOND * 5), o = await fetch(`${i}/attestation/${n}`, { signal: this.abortController.signal }); return clearTimeout(s), o.status === 200 ? await o.json() : void 0; }, this.addToQueue = (n) => { this.queue.push(n); @@ -83905,67 +83936,67 @@ ${gz(e, r)}`); s.data === "verify_ready" && (this.onInit(), window.removeEventListener("message", i), n()); }; await Promise.race([new Promise((s) => { - const o = document.getElementById(f3); + const o = document.getElementById(l3); if (o) return this.iframe = o, this.onInit(), s(); window.addEventListener("message", i); const a = document.createElement("iframe"); - a.id = f3, a.src = `${this.verifyUrl}/${this.projectId}`, a.style.display = "none", document.body.append(a), this.iframe = a, n = s; + a.id = l3, a.src = `${this.verifyUrl}/${this.projectId}`, a.style.display = "none", document.body.append(a), this.iframe = a, n = s; }), new Promise((s, o) => setTimeout(() => { window.removeEventListener("message", i), o("verify iframe load timeout"); - }, yt.toMiliseconds(yt.FIVE_SECONDS)))]); + }, gt.toMiliseconds(gt.FIVE_SECONDS)))]); }, this.onInit = () => { this.initialized = true, this.processQueue(); }, this.removeIframe = () => { this.iframe && (this.iframe.remove(), this.iframe = void 0, this.initialized = false); }, this.getVerifyUrl = (n) => { - let i = n || Zh; - return X8e.includes(i) || (this.logger.info(`verify url: ${i}, not included in trusted list, assigning default: ${Zh}`), i = Zh), i; - }, this.logger = Zi(r, this.name), this.verifyUrl = Zh, this.abortController = new AbortController(), this.isDevEnv = zd() && process.env.IS_VITEST; + let i = n || Yh; + return J8e.includes(i) || (this.logger.info(`verify url: ${i}, not included in trusted list, assigning default: ${Yh}`), i = Yh), i; + }, this.logger = Zi(r, this.name), this.verifyUrl = Yh, this.abortController = new AbortController(), this.isDevEnv = Vd() && process.env.IS_VITEST; } get context() { return Yi(this.logger); } startAbortTimer(e) { - return this.abortController = new AbortController(), setTimeout(() => this.abortController.abort(), yt.toMiliseconds(e)); + return this.abortController = new AbortController(), setTimeout(() => this.abortController.abort(), gt.toMiliseconds(e)); } }; - var vxe = class extends age { + var Exe = class extends lge { constructor(e, r) { - super(e, r), this.projectId = e, this.logger = r, this.context = Y8e, this.registerDeviceToken = async (n) => { - const { clientId: i, token: s, notificationType: o, enableEncrypted: a = false } = n, c = `${Z8e}/${this.projectId}/clients`; - await Xve(c, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ client_id: i, type: o, token: s, always_raw: a }) }); + super(e, r), this.projectId = e, this.logger = r, this.context = Q8e, this.registerDeviceToken = async (n) => { + const { clientId: i, token: s, notificationType: o, enableEncrypted: a = false } = n, c = `${$8e}/${this.projectId}/clients`; + await Jve(c, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ client_id: i, type: o, token: s, always_raw: a }) }); }, this.logger = Zi(r, this.context); } }; - var xxe = Object.defineProperty; - var cA = Object.getOwnPropertySymbols; - var _xe = Object.prototype.hasOwnProperty; - var Exe = Object.prototype.propertyIsEnumerable; - var uA = (t, e, r) => e in t ? xxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; - var lA = (t, e) => { + var Sxe = Object.defineProperty; + var aA = Object.getOwnPropertySymbols; + var Mxe = Object.prototype.hasOwnProperty; + var Axe = Object.prototype.propertyIsEnumerable; + var cA = (t, e, r) => e in t ? Sxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var uA = (t, e) => { for (var r in e || (e = {})) - _xe.call(e, r) && uA(t, r, e[r]); - if (cA) - for (var r of cA(e)) - Exe.call(e, r) && uA(t, r, e[r]); + Mxe.call(e, r) && cA(t, r, e[r]); + if (aA) + for (var r of aA(e)) + Axe.call(e, r) && cA(t, r, e[r]); return t; }; - var d9 = class extends Qme { + var h9 = class extends tge { constructor(e) { var r; - super(e), this.protocol = MU, this.version = w8e, this.name = h9, this.events = new xo.EventEmitter(), this.initialized = false, this.on = (o, a) => this.events.on(o, a), this.once = (o, a) => this.events.once(o, a), this.off = (o, a) => this.events.off(o, a), this.removeListener = (o, a) => this.events.removeListener(o, a), this.projectId = e == null ? void 0 : e.projectId, this.relayUrl = (e == null ? void 0 : e.relayUrl) || TU, this.customStoragePrefix = e != null && e.customStoragePrefix ? `:${e.customStoragePrefix}` : ""; - const n = Fx({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : v8e.logger }), { logger: i, chunkLoggerController: s } = Jme({ opts: n, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger }); + super(e), this.protocol = AU, this.version = _8e, this.name = f9, this.events = new vo.EventEmitter(), this.initialized = false, this.on = (o, a) => this.events.on(o, a), this.once = (o, a) => this.events.once(o, a), this.off = (o, a) => this.events.off(o, a), this.removeListener = (o, a) => this.events.removeListener(o, a), this.projectId = e == null ? void 0 : e.projectId, this.relayUrl = (e == null ? void 0 : e.relayUrl) || NU, this.customStoragePrefix = e != null && e.customStoragePrefix ? `:${e.customStoragePrefix}` : ""; + const n = zx({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : E8e.logger }), { logger: i, chunkLoggerController: s } = ege({ opts: n, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger }); this.logChunkController = s, (r = this.logChunkController) != null && r.downloadLogsBlobInBrowser && (window.downloadLogsBlobInBrowser = async () => { var o, a; (o = this.logChunkController) != null && o.downloadLogsBlobInBrowser && ((a = this.logChunkController) == null || a.downloadLogsBlobInBrowser({ clientId: await this.crypto.getClientId() })); - }), this.logger = Zi(i, this.name), this.heartbeat = new Eme(), this.crypto = new Q8e(this, this.logger, e == null ? void 0 : e.keychain), this.history = new yxe(this, this.logger), this.expirer = new bxe(this, this.logger), this.storage = e != null && e.storage ? e.storage : new K1e(lA(lA({}, x8e), e == null ? void 0 : e.storageOptions)), this.relayer = new hxe({ core: this, logger: this.logger, relayUrl: this.relayUrl, projectId: this.projectId }), this.pairing = new gxe(this, this.logger), this.verify = new wxe(this.projectId || "", this.logger), this.echoClient = new vxe(this.projectId || "", this.logger); + }), this.logger = Zi(i, this.name), this.heartbeat = new Ame(), this.crypto = new txe(this, this.logger, e == null ? void 0 : e.keychain), this.history = new vxe(this, this.logger), this.expirer = new xxe(this, this.logger), this.storage = e != null && e.storage ? e.storage : new Z1e(uA(uA({}, S8e), e == null ? void 0 : e.storageOptions)), this.relayer = new mxe({ core: this, logger: this.logger, relayUrl: this.relayUrl, projectId: this.projectId }), this.pairing = new wxe(this, this.logger), this.verify = new _xe(this.projectId || "", this.logger), this.echoClient = new Exe(this.projectId || "", this.logger); } static async init(e) { - const r = new d9(e); + const r = new h9(e); await r.initialize(); const n = await r.crypto.getClientId(); - return await r.storage.setItem(B8e, n), r; + return await r.storage.setItem(V8e, n), r; } get context() { return Yi(this.logger); @@ -83986,55 +84017,55 @@ ${gz(e, r)}`); } } }; - var Sxe = d9; - var IU = "wc"; - var OU = 2; - var PU = "client"; - var p9 = `${IU}@${OU}:${PU}:`; - var d3 = { name: PU, logger: "error", controller: false, relayUrl: "wss://relay.walletconnect.com" }; - var fA = "WALLETCONNECT_DEEPLINK_CHOICE"; - var Mxe = "proposal"; - var Axe = "Proposal expired"; - var Txe = "session"; - var Gl = yt.SEVEN_DAYS; - var Nxe = "engine"; - var Kn = { wc_sessionPropose: { req: { ttl: yt.FIVE_MINUTES, prompt: true, tag: 1100 }, res: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1101 }, reject: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1120 }, autoReject: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1121 } }, wc_sessionSettle: { req: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1102 }, res: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 1104 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 1105 } }, wc_sessionExtend: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 1106 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 1107 } }, wc_sessionRequest: { req: { ttl: yt.FIVE_MINUTES, prompt: true, tag: 1108 }, res: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1109 } }, wc_sessionEvent: { req: { ttl: yt.FIVE_MINUTES, prompt: true, tag: 1110 }, res: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1111 } }, wc_sessionDelete: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 1112 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 1113 } }, wc_sessionPing: { req: { ttl: yt.ONE_DAY, prompt: false, tag: 1114 }, res: { ttl: yt.ONE_DAY, prompt: false, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: yt.ONE_HOUR, prompt: true, tag: 1116 }, res: { ttl: yt.ONE_HOUR, prompt: false, tag: 1117 }, reject: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1118 }, autoReject: { ttl: yt.FIVE_MINUTES, prompt: false, tag: 1119 } } }; - var p3 = { min: yt.FIVE_MINUTES, max: yt.SEVEN_DAYS }; - var Po = { idle: "IDLE", active: "ACTIVE" }; - var Ixe = "request"; - var Oxe = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"]; - var Pxe = "wc"; - var kxe = "auth"; - var Rxe = "authKeys"; - var Cxe = "pairingTopics"; - var Dxe = "requests"; - var L2 = `${Pxe}@${1.5}:${kxe}:`; - var v1 = `${L2}:PUB_KEY`; - var Lxe = Object.defineProperty; - var Bxe = Object.defineProperties; - var Uxe = Object.getOwnPropertyDescriptors; - var hA = Object.getOwnPropertySymbols; - var jxe = Object.prototype.hasOwnProperty; - var Vxe = Object.prototype.propertyIsEnumerable; - var dA = (t, e, r) => e in t ? Lxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; + var Txe = h9; + var OU = "wc"; + var PU = 2; + var kU = "client"; + var d9 = `${OU}@${PU}:${kU}:`; + var h3 = { name: kU, logger: "error", controller: false, relayUrl: "wss://relay.walletconnect.com" }; + var lA = "WALLETCONNECT_DEEPLINK_CHOICE"; + var Nxe = "proposal"; + var Ixe = "Proposal expired"; + var Oxe = "session"; + var Gl = gt.SEVEN_DAYS; + var Pxe = "engine"; + var Kn = { wc_sessionPropose: { req: { ttl: gt.FIVE_MINUTES, prompt: true, tag: 1100 }, res: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1101 }, reject: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1120 }, autoReject: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1121 } }, wc_sessionSettle: { req: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1102 }, res: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 1104 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 1105 } }, wc_sessionExtend: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 1106 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 1107 } }, wc_sessionRequest: { req: { ttl: gt.FIVE_MINUTES, prompt: true, tag: 1108 }, res: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1109 } }, wc_sessionEvent: { req: { ttl: gt.FIVE_MINUTES, prompt: true, tag: 1110 }, res: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1111 } }, wc_sessionDelete: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 1112 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 1113 } }, wc_sessionPing: { req: { ttl: gt.ONE_DAY, prompt: false, tag: 1114 }, res: { ttl: gt.ONE_DAY, prompt: false, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: gt.ONE_HOUR, prompt: true, tag: 1116 }, res: { ttl: gt.ONE_HOUR, prompt: false, tag: 1117 }, reject: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1118 }, autoReject: { ttl: gt.FIVE_MINUTES, prompt: false, tag: 1119 } } }; + var d3 = { min: gt.FIVE_MINUTES, max: gt.SEVEN_DAYS }; + var Oo = { idle: "IDLE", active: "ACTIVE" }; + var kxe = "request"; + var Rxe = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"]; + var Cxe = "wc"; + var Dxe = "auth"; + var Lxe = "authKeys"; + var Bxe = "pairingTopics"; + var Uxe = "requests"; + var B2 = `${Cxe}@${1.5}:${Dxe}:`; + var x1 = `${B2}:PUB_KEY`; + var jxe = Object.defineProperty; + var Vxe = Object.defineProperties; + var zxe = Object.getOwnPropertyDescriptors; + var fA = Object.getOwnPropertySymbols; + var Fxe = Object.prototype.hasOwnProperty; + var Hxe = Object.prototype.propertyIsEnumerable; + var hA = (t, e, r) => e in t ? jxe(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r; var pn = (t, e) => { for (var r in e || (e = {})) - jxe.call(e, r) && dA(t, r, e[r]); - if (hA) - for (var r of hA(e)) - Vxe.call(e, r) && dA(t, r, e[r]); + Fxe.call(e, r) && hA(t, r, e[r]); + if (fA) + for (var r of fA(e)) + Hxe.call(e, r) && hA(t, r, e[r]); return t; }; - var Tu = (t, e) => Bxe(t, Uxe(e)); - var zxe = class extends uge { + var Au = (t, e) => Vxe(t, zxe(e)); + var qxe = class extends hge { constructor(e) { - super(e), this.name = Nxe, this.events = new DL(), this.initialized = false, this.requestQueue = { state: Po.idle, queue: [] }, this.sessionRequestQueue = { state: Po.idle, queue: [] }, this.requestQueueDelay = yt.ONE_SECOND, this.expectedPairingMethodMap = /* @__PURE__ */ new Map(), this.recentlyDeletedMap = /* @__PURE__ */ new Map(), this.recentlyDeletedLimit = 200, this.relayMessageCache = [], this.init = async () => { + super(e), this.name = Pxe, this.events = new LL(), this.initialized = false, this.requestQueue = { state: Oo.idle, queue: [] }, this.sessionRequestQueue = { state: Oo.idle, queue: [] }, this.requestQueueDelay = gt.ONE_SECOND, this.expectedPairingMethodMap = /* @__PURE__ */ new Map(), this.recentlyDeletedMap = /* @__PURE__ */ new Map(), this.recentlyDeletedLimit = 200, this.relayMessageCache = [], this.init = async () => { this.initialized || (await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.registerPairingEvents(), this.client.core.pairing.register({ methods: Object.keys(Kn) }), this.initialized = true, setTimeout(() => { this.sessionRequestQueue.queue = this.getPendingSessionRequests(), this.processSessionRequestQueue(); - }, yt.toMiliseconds(this.requestQueueDelay))); + }, gt.toMiliseconds(this.requestQueueDelay))); }, this.connect = async (r) => { await this.isInitialized(); - const n = Tu(pn({}, r), { requiredNamespaces: r.requiredNamespaces || {}, optionalNamespaces: r.optionalNamespaces || {} }); + const n = Au(pn({}, r), { requiredNamespaces: r.requiredNamespaces || {}, optionalNamespaces: r.optionalNamespaces || {} }); await this.isValidConnect(n); const { pairingTopic: i, requiredNamespaces: s, optionalNamespaces: o, sessionProperties: a, relays: c } = n; let u = i, f, p = false; @@ -84051,13 +84082,13 @@ ${gz(e, r)}`); const { message: q } = it("NO_MATCHING_KEY", `connect() pairing topic: ${u}`); throw new Error(q); } - const b = await this.client.core.crypto.generateKeyPair(), E = Kn.wc_sessionPropose.req.ttl || yt.FIVE_MINUTES, _ = Xn(E), N = pn({ requiredNamespaces: s, optionalNamespaces: o, relays: c ?? [{ protocol: AU }], proposer: { publicKey: b, metadata: this.client.metadata }, expiryTimestamp: _, pairingTopic: u }, a && { sessionProperties: a }), { reject: k, resolve: F, done: L } = Iu(E, Axe); - this.events.once(Wt("session_connect"), async ({ error: q, session: W }) => { + const b = await this.client.core.crypto.generateKeyPair(), E = Kn.wc_sessionPropose.req.ttl || gt.FIVE_MINUTES, _ = Xn(E), N = pn({ requiredNamespaces: s, optionalNamespaces: o, relays: c ?? [{ protocol: TU }], proposer: { publicKey: b, metadata: this.client.metadata }, expiryTimestamp: _, pairingTopic: u }, a && { sessionProperties: a }), { reject: k, resolve: F, done: L } = Nu(E, Ixe); + this.events.once(qt("session_connect"), async ({ error: q, session: W }) => { if (q) k(q); else if (W) { W.self.publicKey = b; - const z = Tu(pn({}, W), { pairingTopic: N.pairingTopic, requiredNamespaces: N.requiredNamespaces, optionalNamespaces: N.optionalNamespaces }); + const z = Au(pn({}, W), { pairingTopic: N.pairingTopic, requiredNamespaces: N.requiredNamespaces, optionalNamespaces: N.optionalNamespaces }); await this.client.session.set(W.topic, z), await this.setExpiry(W.topic, W.expiry), u && await this.client.core.pairing.updateMetadata({ topic: u, metadata: W.peer.metadata }), this.cleanupDuplicatePairings(z), F(z); } }); @@ -84086,7 +84117,7 @@ ${gz(e, r)}`); } const { pairingTopic: u, proposer: f, requiredNamespaces: p, optionalNamespaces: b } = c, E = await this.client.core.crypto.generateKeyPair(), _ = f.publicKey, N = await this.client.core.crypto.generateSharedKey(E, _), k = pn(pn({ relay: { protocol: i ?? "irn" }, namespaces: s, controller: { publicKey: E, metadata: this.client.metadata }, expiry: Xn(Gl) }, o && { sessionProperties: o }), a && { sessionConfig: a }); await this.client.core.relayer.subscribe(N); - const F = Tu(pn({}, k), { topic: N, requiredNamespaces: p, optionalNamespaces: b, pairingTopic: u, acknowledged: false, self: k.controller, peer: { publicKey: f.publicKey, metadata: f.metadata }, controller: E }); + const F = Au(pn({}, k), { topic: N, requiredNamespaces: p, optionalNamespaces: b, pairingTopic: u, acknowledged: false, self: k.controller, peer: { publicKey: f.publicKey, metadata: f.metadata }, controller: E }); await this.client.session.set(N, F); try { await this.sendResult({ id: n, topic: u, result: { relay: { protocol: i ?? "irn" }, responderPublicKey: E }, throwOnFailedPublish: true }), await this.sendRequest({ topic: N, method: "wc_sessionSettle", params: k, throwOnFailedPublish: true }); @@ -84116,8 +84147,8 @@ ${gz(e, r)}`); } catch (p) { throw this.client.logger.error("update() -> isValidUpdate() failed"), p; } - const { topic: n, namespaces: i } = r, { done: s, resolve: o, reject: a } = Iu(), c = Dc(), u = ju().toString(), f = this.client.session.get(n).namespaces; - return this.events.once(Wt("session_update", c), ({ error: p }) => { + const { topic: n, namespaces: i } = r, { done: s, resolve: o, reject: a } = Nu(), c = Rc(), u = ju().toString(), f = this.client.session.get(n).namespaces; + return this.events.once(qt("session_update", c), ({ error: p }) => { p ? a(p) : o(); }), await this.client.session.update(n, { namespaces: i }), await this.sendRequest({ topic: n, method: "wc_sessionUpdate", params: { namespaces: i }, throwOnFailedPublish: true, clientRpcId: c, relayRpcId: u }).catch((p) => { this.client.logger.error(p), this.client.session.update(n, { namespaces: f }), a(p); @@ -84129,8 +84160,8 @@ ${gz(e, r)}`); } catch (c) { throw this.client.logger.error("extend() -> isValidExtend() failed"), c; } - const { topic: n } = r, i = Dc(), { done: s, resolve: o, reject: a } = Iu(); - return this.events.once(Wt("session_extend", i), ({ error: c }) => { + const { topic: n } = r, i = Rc(), { done: s, resolve: o, reject: a } = Nu(); + return this.events.once(qt("session_extend", i), ({ error: c }) => { c ? a(c) : o(); }), await this.setExpiry(n, Xn(Gl)), this.sendRequest({ topic: n, method: "wc_sessionExtend", params: {}, clientRpcId: i, throwOnFailedPublish: true }).catch((c) => { a(c); @@ -84142,23 +84173,23 @@ ${gz(e, r)}`); } catch (E) { throw this.client.logger.error("request() -> isValidRequest() failed"), E; } - const { chainId: n, request: i, topic: s, expiry: o = Kn.wc_sessionRequest.req.ttl } = r, a = this.client.session.get(s), c = Dc(), u = ju().toString(), { done: f, resolve: p, reject: b } = Iu(o, "Request expired. Please try again."); - return this.events.once(Wt("session_request", c), ({ error: E, result: _ }) => { + const { chainId: n, request: i, topic: s, expiry: o = Kn.wc_sessionRequest.req.ttl } = r, a = this.client.session.get(s), c = Rc(), u = ju().toString(), { done: f, resolve: p, reject: b } = Nu(o, "Request expired. Please try again."); + return this.events.once(qt("session_request", c), ({ error: E, result: _ }) => { E ? b(E) : p(_); }), await Promise.all([new Promise(async (E) => { - await this.sendRequest({ clientRpcId: c, relayRpcId: u, topic: s, method: "wc_sessionRequest", params: { request: Tu(pn({}, i), { expiryTimestamp: Xn(o) }), chainId: n }, expiry: o, throwOnFailedPublish: true }).catch((_) => b(_)), this.client.events.emit("session_request_sent", { topic: s, request: i, chainId: n, id: c }), E(); + await this.sendRequest({ clientRpcId: c, relayRpcId: u, topic: s, method: "wc_sessionRequest", params: { request: Au(pn({}, i), { expiryTimestamp: Xn(o) }), chainId: n }, expiry: o, throwOnFailedPublish: true }).catch((_) => b(_)), this.client.events.emit("session_request_sent", { topic: s, request: i, chainId: n, id: c }), E(); }), new Promise(async (E) => { var _; if (!((_ = a.sessionConfig) != null && _.disableDeepLink)) { - const N = await tbe(this.client.core.storage, fA); - ebe({ id: c, topic: s, wcDeepLink: N }); + const N = await ibe(this.client.core.storage, lA); + nbe({ id: c, topic: s, wcDeepLink: N }); } E(); }), f()]).then((E) => E[2]); }, this.respond = async (r) => { await this.isInitialized(), await this.isValidRespond(r); const { topic: n, response: i } = r, { id: s } = i; - Bo(i) ? await this.sendResult({ id: s, topic: n, result: i.result, throwOnFailedPublish: true }) : Rs(i) && await this.sendError({ id: s, topic: n, error: i.error }), this.cleanupAfterResponse(r); + Lo(i) ? await this.sendResult({ id: s, topic: n, result: i.result, throwOnFailedPublish: true }) : Rs(i) && await this.sendError({ id: s, topic: n, error: i.error }), this.cleanupAfterResponse(r); }, this.ping = async (r) => { await this.isInitialized(); try { @@ -84168,8 +84199,8 @@ ${gz(e, r)}`); } const { topic: n } = r; if (this.client.session.keys.includes(n)) { - const i = Dc(), s = ju().toString(), { done: o, resolve: a, reject: c } = Iu(); - this.events.once(Wt("session_ping", i), ({ error: u }) => { + const i = Rc(), s = ju().toString(), { done: o, resolve: a, reject: c } = Nu(); + this.events.once(qt("session_ping", i), ({ error: u }) => { u ? c(u) : a(); }), await Promise.all([this.sendRequest({ topic: n, method: "wc_sessionPing", params: {}, throwOnFailedPublish: true, clientRpcId: i, relayRpcId: s }), o()]); } else @@ -84189,18 +84220,18 @@ ${gz(e, r)}`); const { message: i } = it("MISMATCHED_TOPIC", `Session or pairing topic not found: ${n}`); throw new Error(i); } - }, this.find = (r) => (this.isInitialized(), this.client.session.getAll().filter((n) => S5e(n, r))), this.getPendingSessionRequests = () => this.client.pendingRequest.getAll(), this.authenticate = async (r) => { + }, this.find = (r) => (this.isInitialized(), this.client.session.getAll().filter((n) => T5e(n, r))), this.getPendingSessionRequests = () => this.client.pendingRequest.getAll(), this.authenticate = async (r) => { this.isInitialized(), this.isValidAuthenticate(r); const { chains: n, statement: i = "", uri: s, domain: o, nonce: a, type: c, exp: u, nbf: f, methods: p = [], expiry: b } = r, E = [...r.resources || []], { topic: _, uri: N } = await this.client.core.pairing.create({ methods: ["wc_sessionAuthenticate"] }); this.client.logger.info({ message: "Generated new pairing", pairing: { topic: _, uri: N } }); - const k = await this.client.core.crypto.generateKeyPair(), F = w1(k); - if (await Promise.all([this.client.auth.authKeys.set(v1, { responseTopic: F, publicKey: k }), this.client.auth.pairingTopics.set(F, { topic: F, pairingTopic: _ })]), await this.client.core.relayer.subscribe(F), this.client.logger.info(`sending request to new pairing topic: ${_}`), p.length > 0) { - const { namespace: d } = Gb(n[0]); - let l = Xwe(d, "request", p); - b1(E) && (l = Zwe(l, E.pop())), E.push(l); - } - const L = b && b > Kn.wc_sessionAuthenticate.req.ttl ? b : Kn.wc_sessionAuthenticate.req.ttl, D = { authPayload: { type: c ?? "caip122", chains: n, statement: i, aud: s, domain: o, version: "1", nonce: a, iat: (/* @__PURE__ */ new Date()).toISOString(), exp: u, nbf: f, resources: E }, requester: { publicKey: k, metadata: this.client.metadata }, expiryTimestamp: Xn(L) }, q = { eip155: { chains: n, methods: [.../* @__PURE__ */ new Set(["personal_sign", ...p])], events: ["chainChanged", "accountsChanged"] } }, W = { requiredNamespaces: {}, optionalNamespaces: q, relays: [{ protocol: "irn" }], pairingTopic: _, proposer: { publicKey: k, metadata: this.client.metadata }, expiryTimestamp: Xn(Kn.wc_sessionPropose.req.ttl) }, { done: z, resolve: T, reject: I } = Iu(L, "Request expired"), H = async ({ error: d, session: l }) => { - if (this.events.off(Wt("session_request", V), X), d) + const k = await this.client.core.crypto.generateKeyPair(), F = v1(k); + if (await Promise.all([this.client.auth.authKeys.set(x1, { responseTopic: F, publicKey: k }), this.client.auth.pairingTopics.set(F, { topic: F, pairingTopic: _ })]), await this.client.core.relayer.subscribe(F), this.client.logger.info(`sending request to new pairing topic: ${_}`), p.length > 0) { + const { namespace: d } = Wb(n[0]); + let l = Jwe(d, "request", p); + w1(E) && (l = $we(l, E.pop())), E.push(l); + } + const L = b && b > Kn.wc_sessionAuthenticate.req.ttl ? b : Kn.wc_sessionAuthenticate.req.ttl, D = { authPayload: { type: c ?? "caip122", chains: n, statement: i, aud: s, domain: o, version: "1", nonce: a, iat: (/* @__PURE__ */ new Date()).toISOString(), exp: u, nbf: f, resources: E }, requester: { publicKey: k, metadata: this.client.metadata }, expiryTimestamp: Xn(L) }, q = { eip155: { chains: n, methods: [.../* @__PURE__ */ new Set(["personal_sign", ...p])], events: ["chainChanged", "accountsChanged"] } }, W = { requiredNamespaces: {}, optionalNamespaces: q, relays: [{ protocol: "irn" }], pairingTopic: _, proposer: { publicKey: k, metadata: this.client.metadata }, expiryTimestamp: Xn(Kn.wc_sessionPropose.req.ttl) }, { done: z, resolve: T, reject: I } = Nu(L, "Request expired"), H = async ({ error: d, session: l }) => { + if (this.events.off(qt("session_request", V), X), d) I(d); else if (l) { l.self.publicKey = k, await this.client.session.set(l.topic, l), await this.setExpiry(l.topic, l.expiry), _ && await this.client.core.pairing.updateMetadata({ topic: _, metadata: l.peer.metadata }); @@ -84210,15 +84241,15 @@ ${gz(e, r)}`); }, X = async (d) => { if (await this.deletePendingAuthRequest(V, { message: "fulfilled", code: 0 }), d.error) { const w = xr("WC_METHOD_UNSUPPORTED", "wc_sessionAuthenticate"); - return d.error.code === w.code ? void 0 : (this.events.off(Wt("session_connect"), H), I(d.error.message)); + return d.error.code === w.code ? void 0 : (this.events.off(qt("session_connect"), H), I(d.error.message)); } - await this.deleteProposal(S), this.events.off(Wt("session_connect"), H); + await this.deleteProposal(S), this.events.off(qt("session_connect"), H); const { cacaos: l, responder: h } = d.result, y = [], x = []; for (const w of l) { - await AM({ cacao: w, projectId: this.client.core.projectId }) || (this.client.logger.error(w, "Signature verification failed"), I(xr("SESSION_SETTLEMENT_FAILED", "Signature verification failed"))); - const { p: g } = w, m = b1(g.resources), P = [MM(g.iss)], Q = jm(g.iss); + await MM({ cacao: w, projectId: this.client.core.projectId }) || (this.client.logger.error(w, "Signature verification failed"), I(xr("SESSION_SETTLEMENT_FAILED", "Signature verification failed"))); + const { p: g } = w, m = w1(g.resources), P = [SM(g.iss)], Q = Vm(g.iss); if (m) { - const A = TM(m), K = NM(m); + const A = AM(m), K = TM(m); y.push(...A), P.push(...K); } for (const A of P) @@ -84226,29 +84257,29 @@ ${gz(e, r)}`); } const v = await this.client.core.crypto.generateSharedKey(k, h.publicKey); let M; - y.length > 0 && (M = { topic: v, acknowledged: true, self: { publicKey: k, metadata: this.client.metadata }, peer: h, controller: h.publicKey, expiry: Xn(Gl), requiredNamespaces: {}, optionalNamespaces: {}, relay: { protocol: "irn" }, pairingTopic: _, namespaces: DM([...new Set(y)], [...new Set(x)]) }, await this.client.core.relayer.subscribe(v), await this.client.session.set(v, M), _ && await this.client.core.pairing.updateMetadata({ topic: _, metadata: h.metadata }), M = this.client.session.get(v)), T({ auths: l, session: M }); - }, V = Dc(), S = Dc(); - this.events.once(Wt("session_connect"), H), this.events.once(Wt("session_request", V), X); + y.length > 0 && (M = { topic: v, acknowledged: true, self: { publicKey: k, metadata: this.client.metadata }, peer: h, controller: h.publicKey, expiry: Xn(Gl), requiredNamespaces: {}, optionalNamespaces: {}, relay: { protocol: "irn" }, pairingTopic: _, namespaces: CM([...new Set(y)], [...new Set(x)]) }, await this.client.core.relayer.subscribe(v), await this.client.session.set(v, M), _ && await this.client.core.pairing.updateMetadata({ topic: _, metadata: h.metadata }), M = this.client.session.get(v)), T({ auths: l, session: M }); + }, V = Rc(), S = Rc(); + this.events.once(qt("session_connect"), H), this.events.once(qt("session_request", V), X); try { await Promise.all([this.sendRequest({ topic: _, method: "wc_sessionAuthenticate", params: D, expiry: r.expiry, throwOnFailedPublish: true, clientRpcId: V }), this.sendRequest({ topic: _, method: "wc_sessionPropose", params: W, expiry: Kn.wc_sessionPropose.req.ttl, throwOnFailedPublish: true, clientRpcId: S })]); } catch (d) { - throw this.events.off(Wt("session_connect"), H), this.events.off(Wt("session_request", V), X), d; + throw this.events.off(qt("session_connect"), H), this.events.off(qt("session_request", V), X), d; } - return await this.setProposal(S, pn({ id: S }, W)), await this.setAuthRequest(V, { request: Tu(pn({}, D), { verifyContext: {} }), pairingTopic: _ }), { uri: N, response: z }; + return await this.setProposal(S, pn({ id: S }, W)), await this.setAuthRequest(V, { request: Au(pn({}, D), { verifyContext: {} }), pairingTopic: _ }), { uri: N, response: z }; }, this.approveSessionAuthenticate = async (r) => { this.isInitialized(); const { id: n, auths: i } = r, s = this.getPendingAuthRequest(n); if (!s) throw new Error(`Could not find pending auth request with id ${n}`); - const o = s.requester.publicKey, a = await this.client.core.crypto.generateKeyPair(), c = w1(o), u = { type: Xa, receiverPublicKey: o, senderPublicKey: a }, f = [], p = []; + const o = s.requester.publicKey, a = await this.client.core.crypto.generateKeyPair(), c = v1(o), u = { type: Ga, receiverPublicKey: o, senderPublicKey: a }, f = [], p = []; for (const _ of i) { - if (!await AM({ cacao: _, projectId: this.client.core.projectId })) { + if (!await MM({ cacao: _, projectId: this.client.core.projectId })) { const D = xr("SESSION_SETTLEMENT_FAILED", "Signature verification failed"); throw await this.sendError({ id: n, topic: c, error: D, encodeOpts: u }), new Error(D.message); } - const { p: N } = _, k = b1(N.resources), F = [MM(N.iss)], L = jm(N.iss); + const { p: N } = _, k = w1(N.resources), F = [SM(N.iss)], L = Vm(N.iss); if (k) { - const D = TM(k), q = NM(k); + const D = AM(k), q = TM(k); f.push(...D), F.push(...q); } for (const D of F) @@ -84256,18 +84287,18 @@ ${gz(e, r)}`); } const b = await this.client.core.crypto.generateSharedKey(a, o); let E; - return (f == null ? void 0 : f.length) > 0 && (E = { topic: b, acknowledged: true, self: { publicKey: a, metadata: this.client.metadata }, peer: { publicKey: o, metadata: s.requester.metadata }, controller: o, expiry: Xn(Gl), authentication: i, requiredNamespaces: {}, optionalNamespaces: {}, relay: { protocol: "irn" }, pairingTopic: s.pairingTopic, namespaces: DM([...new Set(f)], [...new Set(p)]) }, await this.client.core.relayer.subscribe(b), await this.client.session.set(b, E), await this.client.core.pairing.updateMetadata({ topic: s.pairingTopic, metadata: s.requester.metadata })), await this.sendResult({ topic: c, id: n, result: { cacaos: i, responder: { publicKey: a, metadata: this.client.metadata } }, encodeOpts: u, throwOnFailedPublish: true }), await this.client.auth.requests.delete(n, { message: "fulfilled", code: 0 }), await this.client.core.pairing.activate({ topic: s.pairingTopic }), { session: E }; + return (f == null ? void 0 : f.length) > 0 && (E = { topic: b, acknowledged: true, self: { publicKey: a, metadata: this.client.metadata }, peer: { publicKey: o, metadata: s.requester.metadata }, controller: o, expiry: Xn(Gl), authentication: i, requiredNamespaces: {}, optionalNamespaces: {}, relay: { protocol: "irn" }, pairingTopic: s.pairingTopic, namespaces: CM([...new Set(f)], [...new Set(p)]) }, await this.client.core.relayer.subscribe(b), await this.client.session.set(b, E), await this.client.core.pairing.updateMetadata({ topic: s.pairingTopic, metadata: s.requester.metadata })), await this.sendResult({ topic: c, id: n, result: { cacaos: i, responder: { publicKey: a, metadata: this.client.metadata } }, encodeOpts: u, throwOnFailedPublish: true }), await this.client.auth.requests.delete(n, { message: "fulfilled", code: 0 }), await this.client.core.pairing.activate({ topic: s.pairingTopic }), { session: E }; }, this.rejectSessionAuthenticate = async (r) => { await this.isInitialized(); const { id: n, reason: i } = r, s = this.getPendingAuthRequest(n); if (!s) throw new Error(`Could not find pending auth request with id ${n}`); - const o = s.requester.publicKey, a = await this.client.core.crypto.generateKeyPair(), c = w1(o), u = { type: Xa, receiverPublicKey: o, senderPublicKey: a }; + const o = s.requester.publicKey, a = await this.client.core.crypto.generateKeyPair(), c = v1(o), u = { type: Ga, receiverPublicKey: o, senderPublicKey: a }; await this.sendError({ id: n, topic: c, error: i, encodeOpts: u, rpcOpts: Kn.wc_sessionAuthenticate.reject }), await this.client.auth.requests.delete(n, { message: "rejected", code: 0 }), await this.client.proposal.delete(n, xr("USER_DISCONNECTED")); }, this.formatAuthMessage = (r) => { this.isInitialized(); const { request: n, iss: i } = r; - return nU(n, i); + return iU(n, i); }, this.processRelayMessageCache = () => { setTimeout(async () => { if (this.relayMessageCache.length !== 0) @@ -84295,13 +84326,13 @@ ${gz(e, r)}`); }, this.deleteSession = async (r) => { var n; const { topic: i, expirerHasDeleted: s = false, emitEvent: o = true, id: a = 0 } = r, { self: c } = this.client.session.get(i); - await this.client.core.relayer.unsubscribe(i), await this.client.session.delete(i, xr("USER_DISCONNECTED")), this.addToRecentlyDeleted(i, "session"), this.client.core.crypto.keychain.has(c.publicKey) && await this.client.core.crypto.deleteKeyPair(c.publicKey), this.client.core.crypto.keychain.has(i) && await this.client.core.crypto.deleteSymKey(i), s || this.client.core.expirer.del(i), this.client.core.storage.removeItem(fA).catch((u) => this.client.logger.warn(u)), this.getPendingSessionRequests().forEach((u) => { + await this.client.core.relayer.unsubscribe(i), await this.client.session.delete(i, xr("USER_DISCONNECTED")), this.addToRecentlyDeleted(i, "session"), this.client.core.crypto.keychain.has(c.publicKey) && await this.client.core.crypto.deleteKeyPair(c.publicKey), this.client.core.crypto.keychain.has(i) && await this.client.core.crypto.deleteSymKey(i), s || this.client.core.expirer.del(i), this.client.core.storage.removeItem(lA).catch((u) => this.client.logger.warn(u)), this.getPendingSessionRequests().forEach((u) => { u.topic === i && this.deletePendingSessionRequest(u.id, xr("USER_DISCONNECTED")); - }), i === ((n = this.sessionRequestQueue.queue[0]) == null ? void 0 : n.topic) && (this.sessionRequestQueue.state = Po.idle), o && this.client.events.emit("session_delete", { id: a, topic: i }); + }), i === ((n = this.sessionRequestQueue.queue[0]) == null ? void 0 : n.topic) && (this.sessionRequestQueue.state = Oo.idle), o && this.client.events.emit("session_delete", { id: a, topic: i }); }, this.deleteProposal = async (r, n) => { await Promise.all([this.client.proposal.delete(r, xr("USER_DISCONNECTED")), n ? Promise.resolve() : this.client.core.expirer.del(r)]), this.addToRecentlyDeleted(r, "proposal"); }, this.deletePendingSessionRequest = async (r, n, i = false) => { - await Promise.all([this.client.pendingRequest.delete(r, n), i ? Promise.resolve() : this.client.core.expirer.del(r)]), this.addToRecentlyDeleted(r, "request"), this.sessionRequestQueue.queue = this.sessionRequestQueue.queue.filter((s) => s.id !== r), i && (this.sessionRequestQueue.state = Po.idle, this.client.events.emit("session_request_expire", { id: r })); + await Promise.all([this.client.pendingRequest.delete(r, n), i ? Promise.resolve() : this.client.core.expirer.del(r)]), this.addToRecentlyDeleted(r, "request"), this.sessionRequestQueue.queue = this.sessionRequestQueue.queue.filter((s) => s.id !== r), i && (this.sessionRequestQueue.state = Oo.idle, this.client.events.emit("session_request_expire", { id: r })); }, this.deletePendingAuthRequest = async (r, n, i = false) => { await Promise.all([this.client.auth.requests.delete(r, n), i ? Promise.resolve() : this.client.core.expirer.del(r)]); }, this.setExpiry = async (r, n) => { @@ -84316,7 +84347,7 @@ ${gz(e, r)}`); this.client.core.expirer.set(n, a), await this.client.pendingRequest.set(n, { id: n, topic: i, params: s, verifyContext: o }); }, this.sendRequest = async (r) => { const { topic: n, method: i, params: s, expiry: o, relayRpcId: a, clientRpcId: c, throwOnFailedPublish: u } = r, f = _f(i, s, c); - if (nh() && Oxe.includes(i)) { + if (rh() && Rxe.includes(i)) { const E = Uu(JSON.stringify(f)); this.client.core.verify.register({ attestationId: E }); } @@ -84327,9 +84358,9 @@ ${gz(e, r)}`); throw await this.cleanup(), this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`), E; } const b = Kn[i].req; - return o && (b.ttl = o), a && (b.id = a), this.client.core.history.set(n, f), u ? (b.internal = Tu(pn({}, b.internal), { throwOnFailedPublish: true }), await this.client.core.relayer.publish(n, p, b)) : this.client.core.relayer.publish(n, p, b).catch((E) => this.client.logger.error(E)), f.id; + return o && (b.ttl = o), a && (b.id = a), this.client.core.history.set(n, f), u ? (b.internal = Au(pn({}, b.internal), { throwOnFailedPublish: true }), await this.client.core.relayer.publish(n, p, b)) : this.client.core.relayer.publish(n, p, b).catch((E) => this.client.logger.error(E)), f.id; }, this.sendResult = async (r) => { - const { id: n, topic: i, result: s, throwOnFailedPublish: o, encodeOpts: a } = r, c = u9(n, s); + const { id: n, topic: i, result: s, throwOnFailedPublish: o, encodeOpts: a } = r, c = c9(n, s); let u; try { u = await this.client.core.crypto.encode(i, c, a); @@ -84343,9 +84374,9 @@ ${gz(e, r)}`); throw this.client.logger.error(`sendResult() -> history.get(${i}, ${n}) failed`), b; } const p = Kn[f.request.method].res; - o ? (p.internal = Tu(pn({}, p.internal), { throwOnFailedPublish: true }), await this.client.core.relayer.publish(i, u, p)) : this.client.core.relayer.publish(i, u, p).catch((b) => this.client.logger.error(b)), await this.client.core.history.resolve(c); + o ? (p.internal = Au(pn({}, p.internal), { throwOnFailedPublish: true }), await this.client.core.relayer.publish(i, u, p)) : this.client.core.relayer.publish(i, u, p).catch((b) => this.client.logger.error(b)), await this.client.core.history.resolve(c); }, this.sendError = async (r) => { - const { id: n, topic: i, error: s, encodeOpts: o, rpcOpts: a } = r, c = l9(n, s); + const { id: n, topic: i, error: s, encodeOpts: o, rpcOpts: a } = r, c = u9(n, s); let u; try { u = await this.client.core.crypto.encode(i, c, o); @@ -84364,19 +84395,19 @@ ${gz(e, r)}`); const r = [], n = []; this.client.session.getAll().forEach((i) => { let s = false; - Cc(i.expiry) && (s = true), this.client.core.crypto.keychain.has(i.topic) || (s = true), s && r.push(i.topic); + kc(i.expiry) && (s = true), this.client.core.crypto.keychain.has(i.topic) || (s = true), s && r.push(i.topic); }), this.client.proposal.getAll().forEach((i) => { - Cc(i.expiryTimestamp) && n.push(i.id); + kc(i.expiryTimestamp) && n.push(i.id); }), await Promise.all([...r.map((i) => this.deleteSession({ topic: i })), ...n.map((i) => this.deleteProposal(i))]); }, this.onRelayEventRequest = async (r) => { this.requestQueue.queue.push(r), await this.processRequestsQueue(); }, this.processRequestsQueue = async () => { - if (this.requestQueue.state === Po.active) { + if (this.requestQueue.state === Oo.active) { this.client.logger.info("Request queue already active, skipping..."); return; } for (this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`); this.requestQueue.queue.length > 0; ) { - this.requestQueue.state = Po.active; + this.requestQueue.state = Oo.active; const r = this.requestQueue.queue.shift(); if (r) try { @@ -84385,7 +84416,7 @@ ${gz(e, r)}`); this.client.logger.warn(n); } } - this.requestQueue.state = Po.idle; + this.requestQueue.state = Oo.idle; }, this.processRequest = async (r) => { const { topic: n, payload: i } = r, s = i.method; if (!this.shouldIgnorePairingRequest({ topic: n, requestMethod: s })) @@ -84450,7 +84481,7 @@ ${gz(e, r)}`); } }, this.onSessionProposeResponse = async (r, n) => { const { id: i } = n; - if (Bo(n)) { + if (Lo(n)) { const { result: s } = n; this.client.logger.trace({ type: "method", method: "onSessionProposeResponse", result: s }); const o = this.client.proposal.get(i); @@ -84465,10 +84496,10 @@ ${gz(e, r)}`); this.client.logger.trace({ type: "method", method: "onSessionProposeResponse", subscriptionId: f }), await this.client.core.pairing.activate({ topic: r }); } else if (Rs(n)) { await this.client.proposal.delete(i, xr("USER_DISCONNECTED")); - const s = Wt("session_connect"); + const s = qt("session_connect"); if (this.events.listenerCount(s) === 0) throw new Error(`emitting ${s} without any listeners, 954`); - this.events.emit(Wt("session_connect"), { error: n.error }); + this.events.emit(qt("session_connect"), { error: n.error }); } }, this.onSessionSettleRequest = async (r, n) => { const { id: i, params: s } = n; @@ -84476,39 +84507,39 @@ ${gz(e, r)}`); this.isValidSessionSettleRequest(s); const { relay: o, controller: a, expiry: c, namespaces: u, sessionProperties: f, sessionConfig: p } = n.params, b = pn(pn({ topic: r, relay: o, expiry: c, namespaces: u, acknowledged: true, pairingTopic: "", requiredNamespaces: {}, optionalNamespaces: {}, controller: a.publicKey, self: { publicKey: "", metadata: this.client.metadata }, peer: { publicKey: a.publicKey, metadata: a.metadata } }, f && { sessionProperties: f }), p && { sessionConfig: p }); await this.sendResult({ id: n.id, topic: r, result: true, throwOnFailedPublish: true }); - const E = Wt("session_connect"); + const E = qt("session_connect"); if (this.events.listenerCount(E) === 0) throw new Error(`emitting ${E} without any listeners 997`); - this.events.emit(Wt("session_connect"), { session: b }); + this.events.emit(qt("session_connect"), { session: b }); } catch (o) { await this.sendError({ id: i, topic: r, error: o }), this.client.logger.error(o); } }, this.onSessionSettleResponse = async (r, n) => { const { id: i } = n; - Bo(n) ? (await this.client.session.update(r, { acknowledged: true }), this.events.emit(Wt("session_approve", i), {})) : Rs(n) && (await this.client.session.delete(r, xr("USER_DISCONNECTED")), this.events.emit(Wt("session_approve", i), { error: n.error })); + Lo(n) ? (await this.client.session.update(r, { acknowledged: true }), this.events.emit(qt("session_approve", i), {})) : Rs(n) && (await this.client.session.delete(r, xr("USER_DISCONNECTED")), this.events.emit(qt("session_approve", i), { error: n.error })); }, this.onSessionUpdateRequest = async (r, n) => { const { params: i, id: s } = n; try { - const o = `${r}_session_update`, a = Lh.get(o); + const o = `${r}_session_update`, a = Dh.get(o); if (a && this.isRequestOutOfSync(a, s)) { this.client.logger.info(`Discarding out of sync request - ${s}`), this.sendError({ id: s, topic: r, error: xr("INVALID_UPDATE_REQUEST") }); return; } this.isValidUpdate(pn({ topic: r }, i)); try { - Lh.set(o, s), await this.client.session.update(r, { namespaces: i.namespaces }), await this.sendResult({ id: s, topic: r, result: true, throwOnFailedPublish: true }); + Dh.set(o, s), await this.client.session.update(r, { namespaces: i.namespaces }), await this.sendResult({ id: s, topic: r, result: true, throwOnFailedPublish: true }); } catch (c) { - throw Lh.delete(o), c; + throw Dh.delete(o), c; } this.client.events.emit("session_update", { id: s, topic: r, params: i }); } catch (o) { await this.sendError({ id: s, topic: r, error: o }), this.client.logger.error(o); } }, this.isRequestOutOfSync = (r, n) => parseInt(n.toString().slice(0, -3)) <= parseInt(r.toString().slice(0, -3)), this.onSessionUpdateResponse = (r, n) => { - const { id: i } = n, s = Wt("session_update", i); + const { id: i } = n, s = qt("session_update", i); if (this.events.listenerCount(s) === 0) throw new Error(`emitting ${s} without any listeners`); - Bo(n) ? this.events.emit(Wt("session_update", i), {}) : Rs(n) && this.events.emit(Wt("session_update", i), { error: n.error }); + Lo(n) ? this.events.emit(qt("session_update", i), {}) : Rs(n) && this.events.emit(qt("session_update", i), { error: n.error }); }, this.onSessionExtendRequest = async (r, n) => { const { id: i } = n; try { @@ -84517,10 +84548,10 @@ ${gz(e, r)}`); await this.sendError({ id: i, topic: r, error: s }), this.client.logger.error(s); } }, this.onSessionExtendResponse = (r, n) => { - const { id: i } = n, s = Wt("session_extend", i); + const { id: i } = n, s = qt("session_extend", i); if (this.events.listenerCount(s) === 0) throw new Error(`emitting ${s} without any listeners`); - Bo(n) ? this.events.emit(Wt("session_extend", i), {}) : Rs(n) && this.events.emit(Wt("session_extend", i), { error: n.error }); + Lo(n) ? this.events.emit(qt("session_extend", i), {}) : Rs(n) && this.events.emit(qt("session_extend", i), { error: n.error }); }, this.onSessionPingRequest = async (r, n) => { const { id: i } = n; try { @@ -84529,17 +84560,17 @@ ${gz(e, r)}`); await this.sendError({ id: i, topic: r, error: s }), this.client.logger.error(s); } }, this.onSessionPingResponse = (r, n) => { - const { id: i } = n, s = Wt("session_ping", i); + const { id: i } = n, s = qt("session_ping", i); if (this.events.listenerCount(s) === 0) throw new Error(`emitting ${s} without any listeners`); setTimeout(() => { - Bo(n) ? this.events.emit(Wt("session_ping", i), {}) : Rs(n) && this.events.emit(Wt("session_ping", i), { error: n.error }); + Lo(n) ? this.events.emit(qt("session_ping", i), {}) : Rs(n) && this.events.emit(qt("session_ping", i), { error: n.error }); }, 500); }, this.onSessionDeleteRequest = async (r, n) => { const { id: i } = n; try { this.isValidDisconnect({ topic: r, reason: n.params }), await Promise.all([new Promise((s) => { - this.client.core.relayer.once(Vi.publish, async () => { + this.client.core.relayer.once(ji.publish, async () => { s(await this.deleteSession({ topic: r, id: i })); }); }), this.sendResult({ id: i, topic: r, result: true, throwOnFailedPublish: true }), this.cleanupPendingSentRequestsForTopic({ topic: r, error: xr("USER_DISCONNECTED") })]); @@ -84557,50 +84588,50 @@ ${gz(e, r)}`); await this.sendError({ id: s, topic: r, error: a }), this.client.logger.error(a); } }, this.onSessionRequestResponse = (r, n) => { - const { id: i } = n, s = Wt("session_request", i); + const { id: i } = n, s = qt("session_request", i); if (this.events.listenerCount(s) === 0) throw new Error(`emitting ${s} without any listeners`); - Bo(n) ? this.events.emit(Wt("session_request", i), { result: n.result }) : Rs(n) && this.events.emit(Wt("session_request", i), { error: n.error }); + Lo(n) ? this.events.emit(qt("session_request", i), { result: n.result }) : Rs(n) && this.events.emit(qt("session_request", i), { error: n.error }); }, this.onSessionEventRequest = async (r, n) => { const { id: i, params: s } = n; try { - const o = `${r}_session_event_${s.event.name}`, a = Lh.get(o); + const o = `${r}_session_event_${s.event.name}`, a = Dh.get(o); if (a && this.isRequestOutOfSync(a, i)) { this.client.logger.info(`Discarding out of sync request - ${i}`); return; } - this.isValidEmit(pn({ topic: r }, s)), this.client.events.emit("session_event", { id: i, topic: r, params: s }), Lh.set(o, i); + this.isValidEmit(pn({ topic: r }, s)), this.client.events.emit("session_event", { id: i, topic: r, params: s }), Dh.set(o, i); } catch (o) { await this.sendError({ id: i, topic: r, error: o }), this.client.logger.error(o); } }, this.onSessionAuthenticateResponse = (r, n) => { const { id: i } = n; - this.client.logger.trace({ type: "method", method: "onSessionAuthenticateResponse", topic: r, payload: n }), Bo(n) ? this.events.emit(Wt("session_request", i), { result: n.result }) : Rs(n) && this.events.emit(Wt("session_request", i), { error: n.error }); + this.client.logger.trace({ type: "method", method: "onSessionAuthenticateResponse", topic: r, payload: n }), Lo(n) ? this.events.emit(qt("session_request", i), { result: n.result }) : Rs(n) && this.events.emit(qt("session_request", i), { error: n.error }); }, this.onSessionAuthenticateRequest = async (r, n) => { try { const { requester: i, authPayload: s, expiryTimestamp: o } = n.params, a = Uu(JSON.stringify(n)), c = await this.getVerifyContext(a, this.client.metadata), u = { requester: i, pairingTopic: r, id: n.id, authPayload: s, verifyContext: c, expiryTimestamp: o }; await this.setAuthRequest(n.id, { request: u, pairingTopic: r }), this.client.events.emit("session_authenticate", { topic: r, params: n.params, id: n.id, verifyContext: c }); } catch (i) { this.client.logger.error(i); - const s = n.params.requester.publicKey, o = await this.client.core.crypto.generateKeyPair(), a = { type: Xa, receiverPublicKey: s, senderPublicKey: o }; + const s = n.params.requester.publicKey, o = await this.client.core.crypto.generateKeyPair(), a = { type: Ga, receiverPublicKey: s, senderPublicKey: o }; await this.sendError({ id: n.id, topic: r, error: i, encodeOpts: a, rpcOpts: Kn.wc_sessionAuthenticate.autoReject }); } }, this.addSessionRequestToSessionRequestQueue = (r) => { this.sessionRequestQueue.queue.push(r); }, this.cleanupAfterResponse = (r) => { this.deletePendingSessionRequest(r.response.id, { message: "fulfilled", code: 0 }), setTimeout(() => { - this.sessionRequestQueue.state = Po.idle, this.processSessionRequestQueue(); - }, yt.toMiliseconds(this.requestQueueDelay)); + this.sessionRequestQueue.state = Oo.idle, this.processSessionRequestQueue(); + }, gt.toMiliseconds(this.requestQueueDelay)); }, this.cleanupPendingSentRequestsForTopic = ({ topic: r, error: n }) => { const i = this.client.core.history.pending; i.length > 0 && i.filter((s) => s.topic === r && s.request.method === "wc_sessionRequest").forEach((s) => { - const o = s.request.id, a = Wt("session_request", o); + const o = s.request.id, a = qt("session_request", o); if (this.events.listenerCount(a) === 0) throw new Error(`emitting ${a} without any listeners`); - this.events.emit(Wt("session_request", s.request.id), { error: n }); + this.events.emit(qt("session_request", s.request.id), { error: n }); }); }, this.processSessionRequestQueue = () => { - if (this.sessionRequestQueue.state === Po.active) { + if (this.sessionRequestQueue.state === Oo.active) { this.client.logger.info("session request queue is already active."); return; } @@ -84610,7 +84641,7 @@ ${gz(e, r)}`); return; } try { - this.sessionRequestQueue.state = Po.active, this.emitSessionRequest(r); + this.sessionRequestQueue.state = Oo.active, this.emitSessionRequest(r); } catch (n) { this.client.logger.error(n); } @@ -84622,29 +84653,29 @@ ${gz(e, r)}`); const n = this.client.proposal.getAll().find((i) => i.pairingTopic === r.topic); n && this.onSessionProposeRequest(r.topic, _f("wc_sessionPropose", { requiredNamespaces: n.requiredNamespaces, optionalNamespaces: n.optionalNamespaces, relays: n.relays, proposer: n.proposer, sessionProperties: n.sessionProperties }, n.id)); }, this.isValidConnect = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: c } = it("MISSING_OR_INVALID", `connect() params: ${JSON.stringify(r)}`); throw new Error(c); } const { pairingTopic: n, requiredNamespaces: i, optionalNamespaces: s, sessionProperties: o, relays: a } = r; - if (_i(n) || await this.isValidPairingTopic(n), !L5e(a, true)) { + if (_i(n) || await this.isValidPairingTopic(n), !j5e(a, true)) { const { message: c } = it("MISSING_OR_INVALID", `connect() relays: ${a}`); throw new Error(c); } - !_i(i) && zm(i) !== 0 && this.validateNamespaces(i, "requiredNamespaces"), !_i(s) && zm(s) !== 0 && this.validateNamespaces(s, "optionalNamespaces"), _i(o) || this.validateSessionProps(o, "sessionProperties"); + !_i(i) && Fm(i) !== 0 && this.validateNamespaces(i, "requiredNamespaces"), !_i(s) && Fm(s) !== 0 && this.validateNamespaces(s, "optionalNamespaces"), _i(o) || this.validateSessionProps(o, "sessionProperties"); }, this.validateNamespaces = (r, n) => { - const i = D5e(r, "connect()", n); + const i = U5e(r, "connect()", n); if (i) throw new Error(i.message); }, this.isValidApprove = async (r) => { - if (!Bi(r)) + if (!Li(r)) throw new Error(it("MISSING_OR_INVALID", `approve() params: ${r}`).message); const { id: n, namespaces: i, relayProtocol: s, sessionProperties: o } = r; this.checkRecentlyDeleted(n), await this.isValidProposalId(n); - const a = this.client.proposal.get(n), c = c3(i, "approve()"); + const a = this.client.proposal.get(n), c = a3(i, "approve()"); if (c) throw new Error(c.message); - const u = UM(a.requiredNamespaces, i, "approve()"); + const u = BM(a.requiredNamespaces, i, "approve()"); if (u) throw new Error(u.message); if (!en(s, true)) { @@ -84653,82 +84684,82 @@ ${gz(e, r)}`); } _i(o) || this.validateSessionProps(o, "sessionProperties"); }, this.isValidReject = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: s } = it("MISSING_OR_INVALID", `reject() params: ${r}`); throw new Error(s); } const { id: n, reason: i } = r; - if (this.checkRecentlyDeleted(n), await this.isValidProposalId(n), !U5e(i)) { + if (this.checkRecentlyDeleted(n), await this.isValidProposalId(n), !z5e(i)) { const { message: s } = it("MISSING_OR_INVALID", `reject() reason: ${JSON.stringify(i)}`); throw new Error(s); } }, this.isValidSessionSettleRequest = (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: u } = it("MISSING_OR_INVALID", `onSessionSettleRequest() params: ${r}`); throw new Error(u); } const { relay: n, controller: i, namespaces: s, expiry: o } = r; - if (!uU(n)) { + if (!lU(n)) { const { message: u } = it("MISSING_OR_INVALID", "onSessionSettleRequest() relay protocol should be a string"); throw new Error(u); } - const a = I5e(i, "onSessionSettleRequest()"); + const a = k5e(i, "onSessionSettleRequest()"); if (a) throw new Error(a.message); - const c = c3(s, "onSessionSettleRequest()"); + const c = a3(s, "onSessionSettleRequest()"); if (c) throw new Error(c.message); - if (Cc(o)) { + if (kc(o)) { const { message: u } = it("EXPIRED", "onSessionSettleRequest()"); throw new Error(u); } }, this.isValidUpdate = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: c } = it("MISSING_OR_INVALID", `update() params: ${r}`); throw new Error(c); } const { topic: n, namespaces: i } = r; this.checkRecentlyDeleted(n), await this.isValidSessionTopic(n); - const s = this.client.session.get(n), o = c3(i, "update()"); + const s = this.client.session.get(n), o = a3(i, "update()"); if (o) throw new Error(o.message); - const a = UM(s.requiredNamespaces, i, "update()"); + const a = BM(s.requiredNamespaces, i, "update()"); if (a) throw new Error(a.message); }, this.isValidExtend = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: i } = it("MISSING_OR_INVALID", `extend() params: ${r}`); throw new Error(i); } const { topic: n } = r; this.checkRecentlyDeleted(n), await this.isValidSessionTopic(n); }, this.isValidRequest = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: c } = it("MISSING_OR_INVALID", `request() params: ${r}`); throw new Error(c); } const { topic: n, request: i, chainId: s, expiry: o } = r; this.checkRecentlyDeleted(n), await this.isValidSessionTopic(n); const { namespaces: a } = this.client.session.get(n); - if (!BM(a, s)) { + if (!LM(a, s)) { const { message: c } = it("MISSING_OR_INVALID", `request() chainId: ${s}`); throw new Error(c); } - if (!j5e(i)) { + if (!F5e(i)) { const { message: c } = it("MISSING_OR_INVALID", `request() ${JSON.stringify(i)}`); throw new Error(c); } - if (!F5e(a, s, i.method)) { + if (!W5e(a, s, i.method)) { const { message: c } = it("MISSING_OR_INVALID", `request() method: ${i.method}`); throw new Error(c); } - if (o && !G5e(o, p3)) { - const { message: c } = it("MISSING_OR_INVALID", `request() expiry: ${o}. Expiry must be a number (in seconds) between ${p3.min} and ${p3.max}`); + if (o && !Y5e(o, d3)) { + const { message: c } = it("MISSING_OR_INVALID", `request() expiry: ${o}. Expiry must be a number (in seconds) between ${d3.min} and ${d3.max}`); throw new Error(c); } }, this.isValidRespond = async (r) => { var n; - if (!Bi(r)) { + if (!Li(r)) { const { message: o } = it("MISSING_OR_INVALID", `respond() params: ${r}`); throw new Error(o); } @@ -84738,39 +84769,39 @@ ${gz(e, r)}`); } catch (o) { throw (n = r == null ? void 0 : r.response) != null && n.id && this.cleanupAfterResponse(r), o; } - if (!V5e(s)) { + if (!H5e(s)) { const { message: o } = it("MISSING_OR_INVALID", `respond() response: ${JSON.stringify(s)}`); throw new Error(o); } }, this.isValidPing = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: i } = it("MISSING_OR_INVALID", `ping() params: ${r}`); throw new Error(i); } const { topic: n } = r; await this.isValidSessionOrPairingTopic(n); }, this.isValidEmit = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: a } = it("MISSING_OR_INVALID", `emit() params: ${r}`); throw new Error(a); } const { topic: n, event: i, chainId: s } = r; await this.isValidSessionTopic(n); const { namespaces: o } = this.client.session.get(n); - if (!BM(o, s)) { + if (!LM(o, s)) { const { message: a } = it("MISSING_OR_INVALID", `emit() chainId: ${s}`); throw new Error(a); } - if (!z5e(i)) { + if (!q5e(i)) { const { message: a } = it("MISSING_OR_INVALID", `emit() event: ${JSON.stringify(i)}`); throw new Error(a); } - if (!H5e(o, s, i.name)) { + if (!G5e(o, s, i.name)) { const { message: a } = it("MISSING_OR_INVALID", `emit() event: ${JSON.stringify(i)}`); throw new Error(a); } }, this.isValidDisconnect = async (r) => { - if (!Bi(r)) { + if (!Li(r)) { const { message: i } = it("MISSING_OR_INVALID", `disconnect() params: ${r}`); throw new Error(i); } @@ -84786,13 +84817,13 @@ ${gz(e, r)}`); throw new Error("domain is required parameter"); if (!en(o, false)) throw new Error("nonce is required parameter"); - if ([...new Set(n.map((c) => Gb(c).namespace))].length > 1) + if ([...new Set(n.map((c) => Wb(c).namespace))].length > 1) throw new Error("Multi-namespace requests are not supported. Please request single namespace only."); - const { namespace: a } = Gb(n[0]); + const { namespace: a } = Wb(n[0]); if (a !== "eip155") throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains."); }, this.getVerifyContext = async (r, n) => { - const i = { verified: { verifyUrl: n.verifyUrl || Zh, validation: "UNKNOWN", origin: n.url || "" } }; + const i = { verified: { verifyUrl: n.verifyUrl || Yh, validation: "UNKNOWN", origin: n.url || "" } }; try { const s = await this.client.core.verify.resolve({ attestationId: r, verifyUrl: n.verifyUrl }); s && (i.verified.origin = s.origin, i.verified.isScam = s.isScam, i.verified.validation = s.origin === new URL(n.url).origin ? "VALID" : "INVALID"); @@ -84836,21 +84867,21 @@ ${gz(e, r)}`); await this.client.core.relayer.confirmOnlineStateOrThrow(); } registerRelayerEvents() { - this.client.core.relayer.on(Vi.message, (e) => { + this.client.core.relayer.on(ji.message, (e) => { !this.initialized || this.relayMessageCache.length > 0 ? this.relayMessageCache.push(e) : this.onRelayMessage(e); }); } async onRelayMessage(e) { - const { topic: r, message: n } = e, { publicKey: i } = this.client.auth.authKeys.keys.includes(v1) ? this.client.auth.authKeys.get(v1) : { responseTopic: void 0, publicKey: void 0 }, s = await this.client.core.crypto.decode(r, n, { receiverPublicKey: i }); + const { topic: r, message: n } = e, { publicKey: i } = this.client.auth.authKeys.keys.includes(x1) ? this.client.auth.authKeys.get(x1) : { responseTopic: void 0, publicKey: void 0 }, s = await this.client.core.crypto.decode(r, n, { receiverPublicKey: i }); try { - f9(s) ? (this.client.core.history.set(r, s), this.onRelayEventRequest({ topic: r, payload: s })) : C2(s) ? (await this.client.core.history.resolve(s), await this.onRelayEventResponse({ topic: r, payload: s }), this.client.core.history.delete(r, s.id)) : this.onRelayEventUnknownPayload({ topic: r, payload: s }); + l9(s) ? (this.client.core.history.set(r, s), this.onRelayEventRequest({ topic: r, payload: s })) : D2(s) ? (await this.client.core.history.resolve(s), await this.onRelayEventResponse({ topic: r, payload: s }), this.client.core.history.delete(r, s.id)) : this.onRelayEventUnknownPayload({ topic: r, payload: s }); } catch (o) { this.client.logger.error(o); } } registerExpirerEvents() { this.client.core.expirer.on(Is.expired, async (e) => { - const { topic: r, id: n } = xB(e.target); + const { topic: r, id: n } = _B(e.target); if (n && this.client.pendingRequest.keys.includes(n)) return await this.deletePendingSessionRequest(n, it("EXPIRED"), true); if (n && this.client.auth.requests.keys.includes(n)) @@ -84872,7 +84903,7 @@ ${gz(e, r)}`); const { message: r } = it("NO_MATCHING_KEY", `pairing topic doesn't exist: ${e}`); throw new Error(r); } - if (Cc(this.client.core.pairing.pairings.get(e).expiry)) { + if (kc(this.client.core.pairing.pairings.get(e).expiry)) { const { message: r } = it("EXPIRED", `pairing topic: ${e}`); throw new Error(r); } @@ -84886,7 +84917,7 @@ ${gz(e, r)}`); const { message: r } = it("NO_MATCHING_KEY", `session topic doesn't exist: ${e}`); throw new Error(r); } - if (Cc(this.client.session.get(e).expiry)) { + if (kc(this.client.session.get(e).expiry)) { await this.deleteSession({ topic: e }); const { message: r } = it("EXPIRED", `session topic: ${e}`); throw new Error(r); @@ -84910,7 +84941,7 @@ ${gz(e, r)}`); } } async isValidProposalId(e) { - if (!B5e(e)) { + if (!V5e(e)) { const { message: r } = it("MISSING_OR_INVALID", `proposal id should be a number: ${e}`); throw new Error(r); } @@ -84918,54 +84949,54 @@ ${gz(e, r)}`); const { message: r } = it("NO_MATCHING_KEY", `proposal id doesn't exist: ${e}`); throw new Error(r); } - if (Cc(this.client.proposal.get(e).expiryTimestamp)) { + if (kc(this.client.proposal.get(e).expiryTimestamp)) { await this.deleteProposal(e); const { message: r } = it("EXPIRED", `proposal id: ${e}`); throw new Error(r); } } }; - var Fxe = class extends Cl { + var Wxe = class extends Cl { constructor(e, r) { - super(e, r, Mxe, p9), this.core = e, this.logger = r; + super(e, r, Nxe, d9), this.core = e, this.logger = r; } }; - var Hxe = class extends Cl { + var Gxe = class extends Cl { constructor(e, r) { - super(e, r, Txe, p9), this.core = e, this.logger = r; + super(e, r, Oxe, d9), this.core = e, this.logger = r; } }; - var qxe = class extends Cl { + var Kxe = class extends Cl { constructor(e, r) { - super(e, r, Ixe, p9, (n) => n.id), this.core = e, this.logger = r; + super(e, r, kxe, d9, (n) => n.id), this.core = e, this.logger = r; } }; - var Wxe = class extends Cl { + var Xxe = class extends Cl { constructor(e, r) { - super(e, r, Rxe, L2, () => v1), this.core = e, this.logger = r; + super(e, r, Lxe, B2, () => x1), this.core = e, this.logger = r; } }; - var Gxe = class extends Cl { + var Yxe = class extends Cl { constructor(e, r) { - super(e, r, Cxe, L2), this.core = e, this.logger = r; + super(e, r, Bxe, B2), this.core = e, this.logger = r; } }; - var Kxe = class extends Cl { + var Zxe = class extends Cl { constructor(e, r) { - super(e, r, Dxe, L2, (n) => n.id), this.core = e, this.logger = r; + super(e, r, Uxe, B2, (n) => n.id), this.core = e, this.logger = r; } }; - var Xxe = class { + var Jxe = class { constructor(e, r) { - this.core = e, this.logger = r, this.authKeys = new Wxe(this.core, this.logger), this.pairingTopics = new Gxe(this.core, this.logger), this.requests = new Kxe(this.core, this.logger); + this.core = e, this.logger = r, this.authKeys = new Xxe(this.core, this.logger), this.pairingTopics = new Yxe(this.core, this.logger), this.requests = new Zxe(this.core, this.logger); } async init() { await this.authKeys.init(), await this.pairingTopics.init(), await this.requests.init(); } }; - var m9 = class extends cge { + var p9 = class extends fge { constructor(e) { - super(e), this.protocol = IU, this.version = OU, this.name = d3.name, this.events = new xo.EventEmitter(), this.on = (n, i) => this.events.on(n, i), this.once = (n, i) => this.events.once(n, i), this.off = (n, i) => this.events.off(n, i), this.removeListener = (n, i) => this.events.removeListener(n, i), this.removeAllListeners = (n) => this.events.removeAllListeners(n), this.connect = async (n) => { + super(e), this.protocol = OU, this.version = PU, this.name = h3.name, this.events = new vo.EventEmitter(), this.on = (n, i) => this.events.on(n, i), this.once = (n, i) => this.events.once(n, i), this.off = (n, i) => this.events.off(n, i), this.removeListener = (n, i) => this.events.removeListener(n, i), this.removeAllListeners = (n) => this.events.removeAllListeners(n), this.connect = async (n) => { try { return await this.engine.connect(n); } catch (i) { @@ -85067,12 +85098,12 @@ ${gz(e, r)}`); } catch (i) { throw this.logger.error(i.message), i; } - }, this.name = (e == null ? void 0 : e.name) || d3.name, this.metadata = (e == null ? void 0 : e.metadata) || yB(), this.signConfig = e == null ? void 0 : e.signConfig; - const r = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : A2(Fx({ level: (e == null ? void 0 : e.logger) || d3.logger })); - this.core = (e == null ? void 0 : e.core) || new Sxe(e), this.logger = Zi(r, this.name), this.session = new Hxe(this.core, this.logger), this.proposal = new Fxe(this.core, this.logger), this.pendingRequest = new qxe(this.core, this.logger), this.engine = new zxe(this), this.auth = new Xxe(this.core, this.logger); + }, this.name = (e == null ? void 0 : e.name) || h3.name, this.metadata = (e == null ? void 0 : e.metadata) || bB(), this.signConfig = e == null ? void 0 : e.signConfig; + const r = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : T2(zx({ level: (e == null ? void 0 : e.logger) || h3.logger })); + this.core = (e == null ? void 0 : e.core) || new Txe(e), this.logger = Zi(r, this.name), this.session = new Gxe(this.core, this.logger), this.proposal = new Wxe(this.core, this.logger), this.pendingRequest = new Kxe(this.core, this.logger), this.engine = new qxe(this), this.auth = new Jxe(this.core, this.logger); } static async init(e) { - const r = new m9(e); + const r = new p9(e); return await r.initialize(), r; } get context() { @@ -85090,82 +85121,82 @@ ${gz(e, r)}`); } } }; - var kU = "b20768c469f63321e52923a168155240"; - var Yxe = "wss://relay.walletconnect.com"; - var Zxe = "error"; - var Jxe = async (t) => await m9.init({ - logger: Zxe, - relayUrl: Yxe, - projectId: kU, - metadata: t || yB() + var RU = "b20768c469f63321e52923a168155240"; + var Qxe = "wss://relay.walletconnect.com"; + var $xe = "error"; + var e9e = async (t) => await p9.init({ + logger: $xe, + relayUrl: Qxe, + projectId: RU, + metadata: t || bB() }); var V7e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ExtensionsIdents: rX, + ExtensionsIdents: iX, REEF_EASY_WALLET_IDENT: zO, - REEF_EXTENSION_IDENT: Xo, - REEF_INJECTED_EVENT: Y3, - REEF_SNAP_IDENT: $h, + REEF_EXTENSION_IDENT: Ko, + REEF_INJECTED_EVENT: X3, + REEF_SNAP_IDENT: Qh, REEF_WALLET_CONNECT_IDENT: FO, - ReefSignerStatus: ji, - ReefVM: Ko, - SELECTED_EXTENSION_IDENT: ax, - SNAP_ID: c0, - WC_DEFAULT_METHODS: Ld, - WC_MAINNET_CHAIN_ID: jx, - WC_PROJECT_ID: kU, - WC_TESTNET_CHAIN_ID: AL, + ReefSignerStatus: Ui, + ReefVM: Go, + SELECTED_EXTENSION_IDENT: ox, + SNAP_ID: u0, + WC_DEFAULT_METHODS: Dd, + WC_MAINNET_CHAIN_ID: Ux, + WC_PROJECT_ID: RU, + WC_TESTNET_CHAIN_ID: TL, connectSnap: GO, genesisHashToWcChainId: Bf, - getSnap: Z3, + getSnap: Y3, getSnaps: WO, - getWcRequiredNamespaces: i1e, - initWcClient: Jxe, + getWcRequiredNamespaces: a1e, + initWcClient: e9e, injectExtension: HO, - injectWcAsExtension: c1e, - isInjected: e8, + injectWcAsExtension: f1e, + isInjected: $4, isInjectionStarted: qO, get isWeb3Injected() { return DR; }, - sendToSnap: sX, - startInjection: nX, + sendToSnap: aX, + startInjection: sX, web3Accounts: LR, - web3AccountsSubscribe: _le, - web3Enable: xle, + web3AccountsSubscribe: Sle, + web3Enable: Ele, get web3EnablePromise() { - return oa; + return sa; }, - web3FromAddress: Ele, - web3FromSource: x0, - web3ListRpcProviders: Sle, - web3UseRpcProvider: Mle + web3FromAddress: Mle, + web3FromSource: _0, + web3ListRpcProviders: Ale, + web3UseRpcProvider: Tle }, Symbol.toStringTag, { value: "Module" })); - var RU = new tc( + var CU = new ru( 1 ); - var CU = RU.asObservable(); - CU.subscribe( + var DU = CU.asObservable(); + DU.subscribe( (t) => console.log("SELECTED EXTENSION=", t) ); - var LU = new tc(1); - var BU = new Xc(null); - var UU = new Er(); - var VU = new Er(); - var zU = (t) => VU.next(t); - var Qxe = (t) => { + var BU = new ru(1); + var UU = new Gc(null); + var jU = new Er(); + var zU = new Er(); + var FU = (t) => zU.next(t); + var t9e = (t) => { const e = "ipfs://"; return t != null && t.startsWith(e) ? t.substring(e.length) : null; }; - function FU(t) { + function HU(t) { return `https://reef.infura-ipfs.io/ipfs/${t}`; } - var HU = (t, e) => { - const r = Qxe(t); - return r ? e ? e(r) : FU(r) : null; + var qU = (t, e) => { + const r = t9e(t); + return r ? e ? e(r) : HU(r) : null; }; - var qU = (t, e, r) => { - const n = HU(t, r); + var WU = (t, e, r) => { + const n = qU(t, r); if (n) return n; const i = "{id}"; @@ -85179,15 +85210,15 @@ ${gz(e, r)}`); } return t; }; - var $xe = (t, e, r) => { + var r9e = (t, e, r) => { const n = t != null && t.image ? t.image : t.toString(); return { - iconUrl: qU(n, e, r), + iconUrl: WU(n, e, r), name: t.name, mimetype: t.mimetype }; }; - var WU = async (t, e, r) => { + var GU = async (t, e, r) => { if (!t) return Promise.resolve(null); try { @@ -85196,46 +85227,46 @@ ${gz(e, r)}`); n, e ); - return await (n.some((o) => o.name === "uri") ? i.uri(t.nftId) : i.tokenURI(t.nftId).catch((o) => console.log("error getting contract uri"))).then((o) => qU(o, t, r)).then(A0.get).then((o) => $xe(o.data, t, r)).then((o) => ({ ...t, ...o })); + return await (n.some((o) => o.name === "uri") ? i.uri(t.nftId) : i.tokenURI(t.nftId).catch((o) => console.log("error getting contract uri"))).then((o) => WU(o, t, r)).then(A0.get).then((o) => r9e(o.data, t, r)).then((o) => ({ ...t, ...o })); } catch (n) { throw console.log("ERROR getResolveNftPromise=", n), new Error(n.message); } }; - var e9e = (t, e, r) => t != null && t.length ? ZA( - t.map((n) => WU(n, e, r)) - ) : xe([]); - var t9e = (t, e, r) => { + var n9e = (t, e, r) => t != null && t.length ? YA( + t.map((n) => GU(n, e, r)) + ) : _e([]); + var i9e = (t, e, r) => { if (!t || !t.length || !e) - return xe([]); + return _e([]); const n = t.map( - (i) => xe(i).pipe( - Oe( - (s) => WU(s, e, r) + (i) => _e(i).pipe( + Pe( + (s) => GU(s, e, r) ), we( - (s) => bt(s, gt.COMPLETE_DATA, "Url resolved") + (s) => xt(s, vt.COMPLETE_DATA, "Url resolved") ), - Yt((s) => (console.log("ERROR resolving nft img=", s), xe( - bt( + $t((s) => (console.log("ERROR resolving nft img=", s), _e( + xt( i, - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Url resolve error.", "iconUrl" ) ))), - Cr( - bt( + Qr( + xt( i, - gt.PARTIAL_DATA_LOADING, + vt.PARTIAL_DATA_LOADING, "Resolving url.", "iconUrl" ) ) ) ); - return Qe(n); + return $e(n); }; - var r9e = ` + var s9e = ` query signer_nfts($accountId: String) { tokenHolders( orderBy: balance_DESC @@ -85259,35 +85290,35 @@ ${gz(e, r)}`); } } `; - var n9e = (t) => ({ - query: r9e, + var o9e = (t) => ({ + query: s9e, variables: { accountId: t } }); + var p3 = /* @__PURE__ */ new Map(); var m3 = /* @__PURE__ */ new Map(); - var g3 = /* @__PURE__ */ new Map(); - var i9e = async (t = Xo) => { - if (!m3.has(t)) { - const e = await x0(t).then((r) => r == null ? void 0 : r.signer).catch((r) => console.error("getAccountSigner error =", r)); - e || console.warn("Can not get signer for source=" + t), e && m3.set(t, e); + var a9e = async (t = Ko) => { + if (!p3.has(t)) { + const e = await _0(t).then((r) => r == null ? void 0 : r.signer).catch((r) => console.error("getAccountSigner error =", r)); + e || console.warn("Can not get signer for source=" + t), e && p3.set(t, e); } - return m3.get(t); + return p3.get(t); }; - var B2 = async ({ address: t, source: e }, r) => { - const n = BU.getValue() || e; - return s9e(t, r, n); + var U2 = async ({ address: t, source: e }, r) => { + const n = UU.getValue() || e; + return c9e(t, r, n); }; - var s9e = async (t, e, r) => { + var c9e = async (t, e, r) => { let n = r; - return (!r || typeof r == "string") && (n = await i9e(r.toString())), g3.has(t) || g3.set( + return (!r || typeof r == "string") && (n = await a9e(r.toString())), m3.has(t) || m3.set( t, - n ? new a9e( + n ? new l9e( e, t, - new o9e(n) + new u9e(n) ) : void 0 - ), g3.get(t); + ), m3.get(t); }; - var o9e = class { + var u9e = class { constructor(e) { this.sigKey = e; } @@ -85305,7 +85336,7 @@ ${gz(e, r)}`); return (r = this.sigKey) != null && r.signRaw ? this.sigKey.signRaw(e) : Promise.reject("ReefSigningKeyWrapper - not implemented"); } }; - var a9e = class extends xl.Signer { + var l9e = class extends xl.Signer { constructor(e, r, n) { super(e, r, n); } @@ -85313,9 +85344,9 @@ ${gz(e, r)}`); return super.sendTransaction(e); } }; - function c9e(t) { + function f9e(t) { return t.pipe( - t0( + r0( (e, r) => r.status.value === "error" ? { isConnected: r.isConnected, status: r.status, @@ -85330,89 +85361,89 @@ ${gz(e, r)}`); status: { value: "disconnected", timestamp: (/* @__PURE__ */ new Date()).getTime() } } ), - Cr({ + Qr({ isConnected: false, status: { value: "disconnected", timestamp: (/* @__PURE__ */ new Date()).getTime() } }), - qt(1) + Wt(1) ); } - var GU = new Er(); - var u9e = c9e(GU); - async function l9e(t, e) { + var KU = new Er(); + var h9e = f9e(KU); + async function d9e(t, e) { var r; try { return { provider: await (((r = t.options) == null ? void 0 : r.initProvider) || BR)( t.rpcUrl, - GU, + KU, e ), network: t }; } catch (n) { return console.log("ERR connectProvider=", n.message), { provider: void 0, network: t }; } } - var g9 = su.pipe( - Lv($f), - zf( + var m9 = iu.pipe( + Dv(Qf), + t0( (t, [e, r]) => { var n; return ((n = t.network) == null ? void 0 : n.rpcUrl) === e.rpcUrl && t.provider && t.provider.api.isConnected ? Promise.resolve(t) : new Promise( (i, s) => { - dm(t.provider).catch((o) => { + pm(t.provider).catch((o) => { console.log("Error disconnecting provider=", o.message); }).finally(() => { - i(l9e(e, S3)); + i(d9e(e, E3)); }); } ); }, { provider: void 0, network: void 0 } ), - Wr((t) => !!t.provider && !!t.network), + qr((t) => !!t.provider && !!t.network), we((t) => t), - ca((t, e) => t.network.rpcUrl === e.network.rpcUrl), - f9e((t) => t ? dm(t.provider) : null), - qt(1) + ec((t, e) => t.network.rpcUrl === e.network.rpcUrl), + p9e((t) => t ? pm(t.provider) : null), + Wt(1) ); - var B0 = g9.pipe( + var B0 = m9.pipe( we((t) => t.provider), - qt(1) + Wt(1) ); - var y9 = B0.pipe( - Cr(void 0), - qt(1) + var XU = B0.pipe( + Qr(void 0), + Wt(1) ); - function f9e(t) { + function p9e(t) { return (e) => Qd(() => { let r; return e.pipe( - Us((n) => r = n), - Vv(() => t(r)) + Bs((n) => r = n), + jv(() => t(r)) ); }); } - var h9e = (t) => { + var m9e = (t) => { if (!t.graphqlExplorerUrl) return; const e = t.graphqlExplorerUrl.startsWith("http") ? t.graphqlExplorerUrl.replace("http", "ws") : t.graphqlExplorerUrl, r = t.graphqlExplorerUrl.startsWith("ws") ? t.graphqlExplorerUrl.replace("ws", "http") : t.graphqlExplorerUrl; return { ws: e, http: r }; }; - var d9e = (t, e) => { + var g9e = (t, e) => { const r = JSON.stringify(e); return t.post("", r, { headers: { "Content-Type": "application/json" } }); }; - var p9e = su.pipe( - we(h9e), - qt(1) + var y9e = iu.pipe( + we(m9e), + Wt(1) ); - var wo = (t, e) => Fr(d9e(t, e).then((r) => r.data)); - var b9; - var g9e = (t) => t.map( + var bo = (t, e) => zr(g9e(t, e).then((r) => r.data)); + var g9; + var w9e = (t) => t.map( ({ balance: e, nftId: r, token: { id: n, type: i } }) => ({ contractType: i, - balance: Ai.from(e), + balance: Jn.from(e), nftId: r, symbol: "", decimals: 0, @@ -85421,51 +85452,51 @@ ${gz(e, r)}`); name: "" }) ); - var y9e = ([ + var v9e = ([ t, e, r, n - ]) => !e || !t ? xe( - bt( + ]) => !e || !t ? _e( + xt( [], - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Signer not set" ) - ) : wo(t, n9e(e.data.address)).pipe( + ) : bo(t, o9e(e.data.address)).pipe( we((i) => { var s; if ((s = i == null ? void 0 : i.data) != null && s.tokenHolders) return i.data.tokenHolders; - if (Zf(i)) + if (p2(i)) return i; throw new Error("Could not load data."); }), - we((i) => g9e(i)), - Oe( - (i) => Qe([xe(i), y9]).pipe( - Oe( + we((i) => w9e(i)), + Pe( + (i) => $e([_e(i), XU]).pipe( + Pe( (s) => { const [o, a] = s; - return a ? Fr(B2(e.data, a)).pipe( - Oe((u) => u ? t9e( + return a ? zr(U2(e.data, a)).pipe( + Pe((u) => u ? i9e( o, u, - b9 - ) : xe( + g9 + ) : _e( o.map( - (f) => bt( + (f) => xt( f, - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Could not create Signer." ) ) )) - ) : xe( + ) : _e( o.map( - (u) => bt( + (u) => xt( u, - gt.PARTIAL_DATA_LOADING, + vt.PARTIAL_DATA_LOADING, "Provider not connected." ) ) @@ -85474,182 +85505,30 @@ ${gz(e, r)}`); ), we( (s) => { - const o = p2(s); + const o = m2(s); let a = o.some( - (c) => c === gt.PARTIAL_DATA_LOADING + (c) => c === vt.PARTIAL_DATA_LOADING ) ? "Resolving nft urls." : ""; - return s.length || (a = "No nfts found", o.push(gt.COMPLETE_DATA)), bt(s, o, a); + return s.length || (a = "No nfts found", o.push(vt.COMPLETE_DATA)), xt(s, o, a); } ) ) ), - Yt( - (i) => xe(bt([], gt.ERROR, i.message)) + $t( + (i) => _e(xt([], vt.ERROR, i.message)) ) ); - var U2 = LU.pipe( - Wr((t) => !!t), - we( - (t) => t.map((e) => { - var i; - let r = ((i = e.meta) == null ? void 0 : i.source) || e.source; - r || (r = Xo, console.log("No extension source set for account=", e)); - let n = e.meta ? e.meta : { source: r }; - return { address: e.address, ...n }; - }) - ), - qt(1) - ); - function KU(t, e, r) { - return U2.pipe( - we( - (n) => bt( - n.map( - (i) => bt( - i, - gt.ERROR, - e + t.message, - "balance" - ) - ), - gt.ERROR, - e + t.message, - r - ) - ) - ); - } - var w9e = (t) => { - const e = t[1]; - return xe(t).pipe( - Oe((r) => { - if (!r[0]) { - const i = r[1]; - return Zm(xe(i), Pv).pipe( - we( - (s) => bt( - s.map( - (o) => bt( - o, - gt.PARTIAL_DATA_LOADING, - "Connecting to chain.", - "balance" - ) - ), - gt.PARTIAL_DATA_LOADING, - "Connecting to chain and loading balances." - ) - ) - ); - } - return xe(r).pipe( - zf( - (i, [s, o]) => { - i.unsub && i.unsub(); - const a = o.map((c) => c.address).reduce((c, u) => (c.indexOf(u) < 0 && c.push(u), c), []); - return s.api.query.system.account.multi(a, (c) => { - const u = c.map(({ data: f }, p) => ({ - address: a[p], - balance: f.free.toString() - })); - i.balancesByAddressSubj.next({ - balances: u, - signers: o - }); - }).then((c) => (i.unsub = c, i)); - }, - { - unsub: null, - balancesByAddressSubj: new tc(1) - } - ), - ca( - (i, s) => i.balancesByAddressSubj !== s.balancesByAddressSubj - ), - Oe( - (i) => i.balancesByAddressSubj.pipe( - Cr( - bt( - e.map( - (s) => bt( - s, - gt.PARTIAL_DATA_LOADING, - "Loading balace", - "balance" - ) - ), - gt.PARTIAL_DATA_LOADING, - "Loading chain balances." - ) - ), - Yt( - (s) => xe( - bt( - e.map( - (o) => bt( - o, - gt.ERROR, - "ERROR loading chain balance = " + s.message, - "balance" - ) - ), - gt.ERROR, - "Error loading balance from chain = " + s.message, - "balance" - ) - ) - ) - ) - ) - ); - }) - ); - }; - var v9e = Qe([y9, U2]).pipe( - Oe((t) => w9e(t)), - we( - (t) => { - if (Zf(t)) - return t; - const e = t, r = e.signers.map((n) => { - const i = e.balances.find( - (s) => s.address === n.address - ); - return i && (!n.balance || !Ai.from(i.balance).eq(n.balance)) ? { - ...n, - balance: Ai.from(i.balance) - } : n; - }).map( - (n) => bt( - n, - gt.COMPLETE_DATA, - "Balance set", - "balance" - ) - ); - return bt( - r, - gt.COMPLETE_DATA, - "Balance set" - ); - } - ), - Yt( - (t) => KU(t, "Error chain balance=", "balance") - ), - qt(1) - ); - var w9 = /* @__PURE__ */ ((t) => (t[t.ACCOUNT_NATIVE_BALANCE = 0] = "ACCOUNT_NATIVE_BALANCE", t[t.ACCOUNT_TOKENS = 1] = "ACCOUNT_TOKENS", t[t.ACCOUNT_EVM_BINDING = 2] = "ACCOUNT_EVM_BINDING", t))(w9 || {}); - var x9e = (t, e) => { + var y9 = /* @__PURE__ */ ((t) => (t[t.ACCOUNT_NATIVE_BALANCE = 0] = "ACCOUNT_NATIVE_BALANCE", t[t.ACCOUNT_TOKENS = 1] = "ACCOUNT_TOKENS", t[t.ACCOUNT_EVM_BINDING = 2] = "ACCOUNT_EVM_BINDING", t))(y9 || {}); + var _9e = (t, e) => { const r = e.filter((n) => n.type === t); return r.length === 0 ? null : r.some((n) => !n.address) ? [] : r.map((n) => n.address); }; - var _9e = (t) => (t == null ? void 0 : t.length) === 0; - var E9e = (t, e, r) => { - const n = x9e(t, e); - return _9e(n) ? r : r.filter((i) => n == null ? void 0 : n.some((s) => s === i.address)); + var E9e = (t) => (t == null ? void 0 : t.length) === 0; + var S9e = (t, e, r) => { + const n = _9e(t, e); + return E9e(n) ? r : r.filter((i) => n == null ? void 0 : n.some((s) => s === i.address)); }; - var y3 = (t = [], e, r) => { + var g3 = (t = [], e, r) => { if (!r && !t.length || !e || !e.length) return t; const n = t.map( @@ -85661,22 +85540,22 @@ ${gz(e, r)}`); n.some((s) => s.data.address === i.data.address) || n.push(i); }), n; }; - var S9e = (t, e, r = []) => { + var M9e = (t, e, r = []) => { if (!r.length) return Promise.resolve([]); - const n = E9e( - w9.ACCOUNT_EVM_BINDING, + const n = S9e( + y9.ACCOUNT_EVM_BINDING, t, r.map((i) => i.data) ); return Promise.all( n.map( async (i) => { - const s = await B2(i, e); + const s = await U2(i, e); if (!s) - return bt( + return xt( i, - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "ERROR: Can not get account signer." ); const o = await s.isClaimed(), a = o ? await s.queryEvmAddress() : ""; @@ -85686,41 +85565,54 @@ ${gz(e, r)}`); ).then( (i) => i.map( (s, o) => { - if (Zf(s)) + if (p2(s)) return s; const a = n[o]; - return bt( + return xt( { ...a, ...s }, - gt.COMPLETE_DATA + vt.COMPLETE_DATA ); } ) ); }; - var M9e = UU.pipe( - Wr((t) => !!t.updateActions.length), - Kv(U2, B0), - zf( + var b9 = BU.pipe( + qr((t) => !!t), + we( + (t) => t.map((e) => { + var i; + let r = ((i = e.meta) == null ? void 0 : i.source) || e.source; + r || (r = Ko, console.log("No extension source set for account=", e)); + let n = e.meta ? e.meta : { source: r }; + return { address: e.address, name: e.name, ...n }; + }) + ), + Wt(1) + ); + var A9e = jU.pipe( + qr((t) => !!t.updateActions.length), + Gv(b9, B0), + t0( (t, [e, r, n]) => { - const i = y3( + const i = g3( r.map( - (s) => bt(s, gt.COMPLETE_DATA) + (s) => xt(s, vt.COMPLETE_DATA) ), t.allUpdated ); - return xe(e.updateActions || []).pipe( - Oe( - (s) => S9e( + return _e(e.updateActions || []).pipe( + Pe( + (s) => M9e( s, n, i ).then((o) => ({ - all: y3( + all: g3( i, o, true ), - allUpdated: y3( + allUpdated: g3( t.allUpdated, o, true @@ -85736,156 +85628,183 @@ ${gz(e, r)}`); lastUpdated: [] } ), - Wr((t) => !!t.lastUpdated.length), - we((t) => bt(t.all, gt.COMPLETE_DATA)), - Yt( - (t) => xe(bt([], gt.ERROR, t.message)) + qr((t) => !!t.lastUpdated.length), + we((t) => xt(t.all, vt.COMPLETE_DATA)), + $t( + (t) => _e(xt([], vt.ERROR, t.message)) ), - Cr(bt([], gt.LOADING)), - qt(1) + Qr(xt([], vt.LOADING)), + Wt(1) ); - var ec = Zm( - p9e + function N9e(t, e, r) { + return b9.pipe( + we( + (n) => xt( + n.map( + (i) => xt( + i, + vt.ERROR, + e + t.message, + "balance" + ) + ), + vt.ERROR, + e + t.message, + r + ) + ) + ); + } + var Qa = Ov( + y9e ).pipe( we( (t) => t ? A0.create({ baseURL: t.http }) : void 0 ), - Wr((t) => !!t), - qt(1) + qr((t) => !!t), + Wt(1) ); - var XU = ` - query evmAddresses($accountIds: [String!]!) { + var YU = ` + query evmIndexedAccount($accountIds: [String!]!) { accounts(where: { id_in: $accountIds }, orderBy: timestamp_DESC) { id evmAddress + freeBalance + lockedBalance + availableBalance } } `; - var T9e = (t) => ({ - query: XU, + var I9e = (t) => ({ + query: YU, variables: { accountIds: t } }); - function N9e(t) { - return t.data.accounts.map( + function O9e(t) { + return t == null ? void 0 : t.map( (e) => ({ address: e.id, isEvmClaimed: !!e.evmAddress, - evm_address: e.evmAddress + evmAddress: e.evmAddress, + balance: Jn.from(e.availableBalance || 0), + freeBalance: Jn.from(e.availableBalance || 0), + availableBalance: Jn.from(e.freeBalance || 0), + lockedBalance: Jn.from(e.lockedBalance || 0) }) ); } - var I9e = Qe([ec, U2]).pipe( - Oe(([t, e]) => { + var P9e = $e([Qa, b9]).pipe( + Pe(([t, e]) => { if (!e) - return xe( - bt( + return _e( + xt( [], - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Signer not set" ) ); const r = e.map((n) => n.address); return Yf(r, [ - as.REEF_BIND_TX + qi.REEF_BIND_TX, + qi.REEF20_TRANSFER ]).pipe( - Cr(true), - Oe((n) => wo(t, T9e(r))) + Qr(true), + Pe( + (n) => bo( + t, + I9e(r) + ) + ), + we((n) => { + var i; + return { + reefAccounts: e, + indexedAccsData: O9e((i = n.data) == null ? void 0 : i.accounts) + }; + }) ); }), - we((t) => { - var e; - if ((e = t == null ? void 0 : t.data) != null && e.accounts) - return bt( - N9e(t), - gt.COMPLETE_DATA, + we( + (t) => { + var e; + return xt( + (e = t.reefAccounts) == null ? void 0 : e.map( + (r) => xt( + { + ...r, + ...t.indexedAccsData.find( + (n) => n.address === r.address + ) + }, + vt.COMPLETE_DATA + ) + ), + vt.COMPLETE_DATA, "Indexed evm address loaded" ); - if (Zf(t)) - return t; - throw new Error("No result from EVM_ADDRESS_UPDATE_GQL"); - }), - Yt((t) => (console.log("ERROR indexedAccountValues$=", t.message), xe(bt([], gt.ERROR, t.message)))), - Cr(bt([], gt.LOADING)), - qt(1) + } + ), + $t((t) => (console.log("ERROR indexedAccountValues$=", t.message), _e(xt([], vt.ERROR, t.message)))), + Qr(xt([], vt.LOADING)), + Wt(1) ); - var O9e = Qe([ - v9e, - M9e, - I9e + var k9e = $e([ + A9e, + P9e ]).pipe( - t0( - (t, [e, r, n]) => { - let i = []; - return t.lastlocallyUpdated !== r ? i = r.data.map( - (s) => bt( - { - address: s.data.address, - isEvmClaimed: s.data.isEvmClaimed, - evmAddress: s.data.evmAddress - }, - s.getStatusList() - ) - ) : t.lastIndexed !== n ? i = n.data.map( - (s) => bt( - { - address: s.address, - isEvmClaimed: !!s.evm_address, - evmAddress: s.evm_address - }, - n.getStatusList() - ) - ) : i = t.lastSigners.data.map( - (s) => bt( - { - address: s.data.address, - isEvmClaimed: s.data.isEvmClaimed, - evmAddress: s.data.evmAddress - }, - s.getStatusList() - ) - ), i.forEach((s) => { - const o = e.data.find( - (a) => a.data.address === s.data.address - ); - if (o) { - const a = "isEvmClaimed", c = o.getStatusList().filter((u) => u.propName != a); - s.getStatusList().forEach((u) => { - c.push({ - propName: a, - code: u.code - }); - }), s.hasStatus(gt.COMPLETE_DATA) && (o.data.isEvmClaimed = !!s.data.isEvmClaimed, o.data.evmAddress = s.data.evmAddress), o.setStatus(c); - } - }), { - signers: e, - lastlocallyUpdated: r, - lastIndexed: n, - lastSigners: e + r0( + (t, [e, r]) => { + let n = xt( + [], + vt.NOT_SET + ); + return t.lastlocallyUpdated !== e && (n = xt( + r.data.map((i) => { + const s = e.data.find( + (o) => o.data.address === i.data.address + ); + return s ? xt( + { ...i.data, ...s.data }, + s.getStatusList() + ) : i; + }), + e.getStatusList().concat(r.getStatusList()) + )), t.lastIndexed !== r && (n = xt(r.data, r.getStatusList())), { + signers: n, + lastlocallyUpdated: e, + lastIndexed: r }; }, { - signers: bt([], gt.LOADING), - lastlocallyUpdated: bt([], gt.LOADING), - lastIndexed: bt([], gt.LOADING), - lastSigners: bt([], gt.LOADING) + signers: xt( + [], + vt.LOADING + ), + lastlocallyUpdated: xt( + [], + vt.LOADING + ), + lastIndexed: xt( + [], + vt.LOADING + ) } ), we( (t) => t.signers ), - Yt( - (t) => KU(t, "Error signers updated data =") + $t( + (t) => N9e(t, "Error signers updated data =") ), - qt(1) + Wt(1) ); - var j2 = O9e; - var bv = (t) => `${+t}`.replace( + var j2 = k9e; + var yv = (t) => `${+t}`.replace( /(-?)(\d*)\.?(\d*)e([+-]\d+)/, (e, r, n, i, s) => s < 0 ? `${r}0.${Array(1 - s - n.length).join("0")}${n}${i}` : r + n + i + Array(s - i.length + 1).join("0") ); - var k9e = (t) => { + var C9e = (t) => { const e = t.findIndex( (r) => r.data.address === Ls ); @@ -85895,9 +85814,9 @@ ${gz(e, r)}`); ...t.slice(e + 1, t.length) ] : t; }; - var R9e = ([t, e, r]) => { + var D9e = ([t, e, r]) => { const n = t.data.map((i) => { - const s = i.data.address === Ls, o = bt( + const s = i.data.address === Ls, o = xt( { ...i.data, price: s ? e.data : 0 @@ -85905,9 +85824,9 @@ ${gz(e, r)}`); i.getStatusList() ); if (!s && i.hasStatus( - gt.COMPLETE_DATA + vt.COMPLETE_DATA )) { - const a = g0e( + const a = b0e( i.data, r, e @@ -85923,23 +85842,23 @@ ${gz(e, r)}`); } return o; }); - return bt( + return xt( n, - n.length ? p2(n) : t.getStatusList() + n.length ? m2(n) : t.getStatusList() ); }; - var C9e = (t, e) => { + var L9e = (t, e) => { if (!t) throw new Error(e); }; - var U9e = (t) => { + var V9e = (t) => { const e = t.split("").reduce((r, n) => { const i = parseInt(n, 10); return Number.isNaN(i) ? r : r + i; }, 0).toString(10); return parseInt(e.substring(e.length - 1), 10); }; - var j9e = [ + var z9e = [ '', '', '', @@ -85951,13 +85870,13 @@ ${gz(e, r)}`); '', '' ]; - var v9 = (t = "") => { + var w9 = (t = "") => { if (t === Ls) return Lf.iconUrl; - const e = U9e(t), r = e > -1 && e < 10 ? e : e % 10; - return `data:image/svg+xml;base64,${btoa(j9e[r])}`; + const e = V9e(t), r = e > -1 && e < 10 ? e : e % 10; + return `data:image/svg+xml;base64,${btoa(z9e[r])}`; }; - var V9e = ` + var F9e = ` query tokens_query($accountId: String!) { tokenHolders( where: { @@ -85978,13 +85897,13 @@ ${gz(e, r)}`); } } `; - var z9e = (t) => ({ - query: V9e, + var H9e = (t) => ({ + query: F9e, variables: { accountId: t } }); - var F9e = ` + var q9e = ` query contract_data_query($addresses: [String!]!) { verifiedContracts(where: { id_in: $addresses }, limit: 300) { id @@ -85992,19 +85911,19 @@ ${gz(e, r)}`); } } `; - var ZU = (t) => ({ - query: F9e, + var JU = (t) => ({ + query: q9e, variables: { addresses: t } }); - var W9e = (t, e) => { + var K9e = (t, e) => { if (!e.length) - return xe([]); + return _e([]); const r = e.reduce( (n, i) => (n.indexOf(i) < 0 && n.push(i), n), [] ); - return wo(t, ZU(r)).pipe( - sa(1), + return bo(t, JU(r)).pipe( + ia(1), we((n) => n.data.verifiedContracts.map( (i) => { var s, o, a, c; @@ -86014,103 +85933,105 @@ ${gz(e, r)}`); decimals: ((o = i.contractData) == null ? void 0 : o.decimals) || 18, name: (a = i.contractData) == null ? void 0 : a.name, symbol: (c = i.contractData) == null ? void 0 : c.symbol, - balance: Ai.from(0) + balance: Jn.from(0) }; } )), - qt(1), - Yt((n) => (console.log("fetchTokensData ERROR=", n), xe([]))) + Wt(1), + $t((n) => (console.log("fetchTokensData ERROR=", n), _e([]))) ); }; - function pA(t) { + function dA(t) { return (e) => ({ tokens: t.map( (n) => { const i = e.find( (s) => s.address === n.address ); - return i ? bt( + return i ? xt( { ...i, - balance: Ai.from(bv(n.balance)) + balance: Jn.from(yv(n.balance)) }, - gt.COMPLETE_DATA, + vt.COMPLETE_DATA, "Contract data set" - ) : bt( + ) : xt( { ...n }, - gt.PARTIAL_DATA_LOADING, + vt.PARTIAL_DATA_LOADING, "Loading contract data" ); } ), contractData: e }); } - var G9e = (t) => (e, r) => { + var X9e = (t) => (e, r) => { const n = r.filter((i) => !e.contractData.some((s) => s.address === i.address)).map((i) => i.address); - return W9e(t, n).pipe( + return K9e(t, n).pipe( Cn( - (i) => xe( + (i) => _e( i ? i.concat(e.contractData) : e.contractData ) ), - Cn((i) => xe( - pA(r)(i) + Cn((i) => _e( + dA(r)(i) ).pipe( - Cr( - pA(r)(e.contractData) + Qr( + dA(r)(e.contractData) ) )), - Yt((i) => (console.log( + $t((i) => (console.log( "tokenBalancesWithContractDataCache_sdo ERROR=", i.message - ), xe({ tokens: [], contractData: e.contractData }))), - qt(1) + ), _e({ tokens: [], contractData: e.contractData }))), + Wt(1) ); }; - var K9e = (t) => t.map((e) => (e.data.iconUrl = e.data.iconUrl ? HU(e.data.iconUrl) ?? e.data.iconUrl : v9(e.data.address), e)); - var X9e = (t, e) => { - if (!e || e.lte(Ai.from("0"))) + var Y9e = (t) => t.map((e) => (e.data.iconUrl = e.data.iconUrl ? qU(e.data.iconUrl) ?? e.data.iconUrl : w9(e.data.address), e)); + var Z9e = (t, e) => { + if (!e || e.freeBalance == null || e.freeBalance.lte(Jn.from("0"))) return t; const r = t.data.find((n) => n.data.address === Ls); - return r && (r.data.balance = e), t; + return r && (r.data.balance = e.freeBalance, r.data.lockedBalance = e.lockedBalance), t; }; - var Y9e = ([ + var J9e = ([ t, e, - r, - n - ]) => e ? wo(t, z9e(e.data.address)).pipe( - we((i) => { - var s; - if ((s = i == null ? void 0 : i.data) != null && s.tokenHolders) - return i.data.tokenHolders.map( - (o) => ({ - address: o.token.id, - balance: o.balance + r + ]) => e ? bo( + t, + H9e(e.data.address) + ).pipe( + we((n) => { + var i; + if ((i = n == null ? void 0 : n.data) != null && i.tokenHolders) + return n.data.tokenHolders.map( + (s) => ({ + address: s.token.id, + balance: s.balance }) ); - if (Zf(i)) - return i; + if (p2(n)) + return n; throw new Error("No result from SIGNER_TOKENS_GQL"); }), - zf(G9e(t), { + t0(X9e(t), { tokens: [], contractData: [QD()] }), we( - (i) => K9e(i.tokens) + (n) => Y9e(n.tokens) ), - we(k9e), - we((i) => bt(i, p2(i))), - Yt((i) => (console.log("loadAccountTokens 1 ERROR=", i), xe(bt([], gt.ERROR, i.message)))), - qt(1) - ) : xe( - bt( + we(C9e), + we((n) => xt(n, m2(n))), + $t((n) => (console.log("loadAccountTokens 1 ERROR=", n), _e(xt([], vt.ERROR, n.message)))), + Wt(1) + ) : _e( + xt( [], - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "Signer not set" ) ); - var x9 = VU.asObservable().pipe(Cr(void 0), ca(), qt(1)); - Qe([j2, x9]).pipe(sa(1)).subscribe( + var v9 = zU.asObservable().pipe(Qr(void 0), ec(), Wt(1)); + $e([j2, v9]).pipe(ia(1)).subscribe( ([t, e]) => { let r = e; try { @@ -86119,16 +86040,16 @@ ${gz(e, r)}`); } if (!r) { const n = t && t.data && t.data[0] ? t.data[0].data : void 0; - zU(r || (n == null ? void 0 : n.address)); + FU(r || (n == null ? void 0 : n.address)); } } ); - var V2 = Qe([x9, j2]).pipe( + var qd = $e([v9, j2]).pipe( we( (t) => { var i; const [e, r] = t; - if (!e || !r || !((i = r.data) != null && i.length)) + if (!e && (!r || !((i = r.data) != null && i.length))) return; let n = r.data.find( (s) => s.data.address === e @@ -86141,21 +86062,22 @@ ${gz(e, r)}`); ); } catch { } - return n ? bt( + return n ? xt( { ...n.data }, n.getStatusList() ) : void 0; } ), - Yt((t) => (console.log("selectedAccount_status$ ERROR=", t.message), xe(void 0))), - qt(1) + $t((t) => (console.log("selectedAccount_status$ ERROR=", t.message), _e(void 0))), + Wt(1) ); - var dc = V2.pipe( - Wr((t) => !!t), - ca((t, e) => t.data.address === e.data.address), - qt(1) + var fc = qd.pipe( + qr((t) => !!t), + ec((t, e) => t.data.address === e.data.address), + Pe((t) => qd), + Wt(1) ); - var Z9e = [ + var Q9e = [ { inputs: [ { @@ -86348,8 +86270,8 @@ ${gz(e, r)}`); type: "function" } ]; - var J9e = (t, e) => new d2(t, Z9e, e); - var Q9e = [ + var $9e = (t, e) => new d2(t, Q9e, e); + var e6e = [ { inputs: [], payable: false, @@ -86989,18 +86911,18 @@ ${gz(e, r)}`); type: "function" } ]; - var $9e = async (t, e, r, n) => await J9e(n, r).getPair(t, e); - var e6e = async (t, e, r, n) => { - const i = await $9e( + var t6e = async (t, e, r, n) => await $9e(n, r).getPair(t, e); + var r6e = async (t, e, r, n) => { + const i = await t6e( t.address, e.address, r, n ); - C9e(i !== Ox, "Pool does not exist!"); + L9e(i !== Ix, "Pool does not exist!"); const s = new d2( i, - Q9e, + e6e, r ), o = await s.decimals(), a = await s.getReserves(), c = await s.totalSupply(), u = await s.balanceOf(await r.getAddress()), f = await s.token1(), [p, b] = t.address !== f ? [a[0], a[1]] : [a[1], a[0]], E = p.mul(u).div(c), _ = b.mul(u).div(c); return { @@ -87014,45 +86936,45 @@ ${gz(e, r)}`); token2: { ...e, balance: _ } }; }; - var cd = /* @__PURE__ */ new Map(); - var t6e = aa(0, 42e4); - function r6e(t, e) { - return cd.has(`${t.address}-${e.address}`) || cd.has(`${t.address}-${e.address}`); + var ad = /* @__PURE__ */ new Map(); + var n6e = oa(0, 42e4); + function i6e(t, e) { + return ad.has(`${t.address}-${e.address}`) || ad.has(`${t.address}-${e.address}`); } - var n6e = (t, e, r) => { + var s6e = (t, e, r) => { const n = Lf; - if (!r6e(t, n)) { - const i = t6e.pipe( - Oe(() => e6e(t, n, e, r)), - we((s) => bt(s, gt.COMPLETE_DATA)), - Yt((s) => xe( - bt( + if (!i6e(t, n)) { + const i = n6e.pipe( + Pe(() => r6e(t, n, e, r)), + we((s) => xt(s, vt.COMPLETE_DATA)), + $t((s) => _e( + xt( { token1: t, token2: n }, - gt.ERROR, + vt.ERROR, "Loading pool error:" + s.message ) )), - qt(1), - Cr( - bt( + Wt(1), + Qr( + xt( { token1: t, token2: n }, - gt.LOADING, + vt.LOADING, "Loading pool data." ) ) ); - cd.set(`${t.address}-${n.address}`, i); + ad.set(`${t.address}-${n.address}`, i); } - return cd.get(`${t.address}-${n.address}`) || cd.get(`${n.address}-${t.address}`); + return ad.get(`${t.address}-${n.address}`) || ad.get(`${n.address}-${t.address}`); }; - var i6e = (t, e, r) => { - const n = t.filter((i) => i.data.address !== Ls).map((i) => i.hasStatus(gt.COMPLETE_DATA) ? n6e(i.data, e, r) : xe(bt(null, i.getStatusList()))); - return Qe(n).pipe(qt(1)); + var o6e = (t, e, r) => { + const n = t.filter((i) => i.data.address !== Ls).map((i) => i.hasStatus(vt.COMPLETE_DATA) ? s6e(i.data, e, r) : _e(xt(null, i.getStatusList()))); + return $e(n).pipe(Wt(1)); }; - var JU = ` + var QU = ` query transferHistory($accountId: String!) { transfers( where: { @@ -87096,18 +87018,18 @@ ${gz(e, r)}`); } } `; - var s6e = (t) => ({ - query: JU, + var a6e = (t) => ({ + query: QU, variables: { accountId: t } }); - var a6e = (t, e, r, n = Za.mainnet) => `${n.reefscanUrl}/transfer/${t}/${e}/${r}`; - var c6e = (t, e) => { + var u6e = (t, e, r, n = Xa.mainnet) => `${n.reefscanUrl}/transfer/${t}/${e}/${r}`; + var l6e = (t, e) => { const r = t.map( - (n) => "contractType" in n && (n.contractType === Kc.ERC1155 || n.contractType === Kc.ERC721) ? n : null + (n) => "contractType" in n && (n.contractType === Wc.ERC1155 || n.contractType === Wc.ERC721) ? n : null ); - return r.filter((n) => !!n).length ? xe(r).pipe( - Oe( - (n) => e9e(n, e, b9) + return r.filter((n) => !!n).length ? _e(r).pipe( + Pe( + (n) => n9e(n, e, g9) ), we((n) => { const i = []; @@ -87115,20 +87037,20 @@ ${gz(e, r)}`); i.push(s || t[o]); }), i; }) - ) : xe(t); + ) : _e(t); }; - var u6e = (t) => { + var f6e = (t) => { var e, r, n, i, s; - return t.token.type === Kc.ERC20 ? { + return t.token.type === Wc.ERC20 ? { address: t.token.id, - balance: Ai.from(bv(t.amount)), + balance: Jn.from(yv(t.amount)), name: ((e = t.token.contractData) == null ? void 0 : e.name) || t.token.name, symbol: (r = t.token.contractData) == null ? void 0 : r.symbol, decimals: ((n = t.token.contractData) == null ? void 0 : n.decimals) || 18, - iconUrl: ((i = t.token.contractData) == null ? void 0 : i.iconUrl) || v9(t.token.id) + iconUrl: ((i = t.token.contractData) == null ? void 0 : i.iconUrl) || w9(t.token.id) } : { address: t.token.id, - balance: Ai.from(bv(t.amount)), + balance: Jn.from(yv(t.amount)), name: ((s = t.token.contractData) == null ? void 0 : s.name) || t.token.name, symbol: "", decimals: 0, @@ -87137,7 +87059,7 @@ ${gz(e, r)}`); contractType: t.token.type }; }; - var l6e = (t, e, r) => t.map( + var h6e = (t, e, r) => t.map( (n) => { var i; return { @@ -87145,8 +87067,8 @@ ${gz(e, r)}`); to: n.to.id, inbound: !!e.evmAddress && n.to.evmAddress === e.evmAddress || n.to.id === e.address, timestamp: n.timestamp, - token: u6e(n), - url: a6e( + token: f6e(n), + url: u6e( n.blockHeight, n.extrinsicIndex, n.eventIndex, @@ -87166,26 +87088,26 @@ ${gz(e, r)}`); }; } ); - var f6e = ([ + var d6e = ([ t, e, r, n, i, s - ]) => e ? wo(t, s6e(e.data.address)).pipe( + ]) => e ? bo(t, a6e(e.data.address)).pipe( we((o) => { var a; if ((a = o == null ? void 0 : o.data) != null && a.transfers) return o.data.transfers; throw new Error("Could not load data."); }), - we((o) => l6e(o, e.data, r)), - Oe((o) => { - const a = o.map((u) => u.token), c = Fr(B2(e.data, n)); - return Fr(c).pipe( - Oe( - (u) => u ? c6e(a, u) : [] + we((o) => h6e(o, e.data, r)), + Pe((o) => { + const a = o.map((u) => u.token), c = zr(U2(e.data, n)); + return zr(c).pipe( + Pe( + (u) => u ? l6e(a, u) : [] ), we( (u) => u.map((f, p) => ({ @@ -87195,228 +87117,220 @@ ${gz(e, r)}`); ) ); }) - ) : xe([]); - var h6e = dc.pipe( - Oe( + ) : _e([]); + fc.pipe( + Pe( (t) => Yf( [t.data.address], - [as.REEF20_TRANSFER] + [qi.REEF20_TRANSFER] ) ), we(() => true), gl() ); - var d6e = dc.pipe( - Oe( + var p6e = fc.pipe( + Pe( (t) => Yf( [t.data.address], - [as.REEF_NFT_TRANSFER] + [qi.REEF_NFT_TRANSFER] ) ), we(() => true), gl() ); - var p6e = dc.pipe( - Oe( + var m6e = fc.pipe( + Pe( (t) => Yf( [t.data.address], [ - as.REEF_NFT_TRANSFER, - as.REEF20_TRANSFER + qi.REEF_NFT_TRANSFER, + qi.REEF20_TRANSFER ] ) ), we(() => true), gl() ); - var U0 = Qe([ - su, - dc, - $f - ]).pipe(qt(1)); - var m6e = V2.pipe( + var U0 = $e([ + iu, + fc, + Qf + ]).pipe(Wt(1)); + qd.pipe( we((t) => t == null ? void 0 : t.data.balance), - Wr((t) => !!t && t.gt(Ai.from("0"))), - Cr(void 0), - qt(1) + qr((t) => !!t && t.gt(Jn.from("0"))), + Qr(void 0), + Wt(1) ); - var F2 = Qe([ - ec, - dc, - $f, - h6e.pipe(Cr(true)) + var z2 = $e([ + Qa, + fc, + Qf ]).pipe( - Oe((t) => { - const [e, r, n, i] = t; + Pe((t) => { + const [e, r, n] = t; return Yf( [r.data.address], - [as.REEF20_TRANSFER] + [qi.REEF20_TRANSFER] ).pipe( - Cr(true), - Oe((s) => Y9e(t).pipe( - Oe( - (o) => Qe([ - xe(o), - m6e - ]).pipe( - we( - (a) => X9e(a[0], a[1]) - ) - ) + Qr(true), + Pe((i) => J9e(t).pipe( + we( + (s) => Z9e(s, r.data) ), - Yt((o) => (console.log("ERROR2 selectedTokenBalances_status$=", o), xe(bt([], gt.ERROR, o.message)))) + $t((s) => (console.log("ERROR2 selectedTokenBalances_status$=", s), _e(xt([], vt.ERROR, s.message)))) )), - Yt((s) => (console.log("ERROR0 selectedTokenBalances_status$=", s), xe(bt([], gt.ERROR, s.message)))) + $t((i) => (console.log("ERROR0 selectedTokenBalances_status$=", i), _e(xt([], vt.ERROR, i.message)))) ); }), - iu( + nu( U0.pipe( - we(() => bt([], gt.LOADING)) + we(() => xt([], vt.LOADING)) ) ), - Yt((t) => (console.log("ERROR1 selectedTokenBalances_status$=", t.message), xe(bt([], gt.ERROR, t.message)))), - qt(1) + $t((t) => (console.log("ERROR1 selectedTokenBalances_status$=", t.message), _e(xt([], vt.ERROR, t.message)))), + Wt(1) ); - var $U = Qe([ - F2, - g9, - dc + var ej = $e([ + z2, + m9, + fc ]).pipe( - Oe( + Pe( (t) => { const [e, r, n] = t; - return n ? Fr( - B2(n.data, r.provider) + return n ? zr( + U2(n.data, r.provider) ).pipe( - Oe( - (i) => i6e( + Pe( + (i) => o6e( e.data, i, - ux(r.network).factoryAddress + cx(r.network).factoryAddress ).pipe( we( - (s) => bt( + (s) => xt( s || [], - s != null && s.length ? p2(s) : gt.NOT_SET + s != null && s.length ? m2(s) : vt.NOT_SET ) ) ) ) - ) : xe( - bt( + ) : _e( + xt( [], - gt.MISSING_INPUT_VALUES, + vt.MISSING_INPUT_VALUES, "No pools signer" ) ); } ), - iu( + nu( U0.pipe( - we(() => bt([], gt.LOADING)) + we(() => xt([], vt.LOADING)) ) ), - qt(1) + Wt(1) ); - var ej = Qe([ - F2, - SL, - $U + var tj = $e([ + z2, + ML, + ej ]).pipe( - we(R9e), - iu( + we(D9e), + nu( U0.pipe( - we(() => bt([], gt.LOADING)) + we(() => xt([], vt.LOADING)) ) ), - Yt((t) => (console.log("ERROR selectedTokenPrices_status$", t.message), xe(bt([], gt.ERROR, t.message)))), - qt(1) + $t((t) => (console.log("ERROR selectedTokenPrices_status$", t.message), _e(xt([], vt.ERROR, t.message)))), + Wt(1) ); - var tj = Qe([ - ec, - dc, - $f, - d6e.pipe(Cr(true)) + var rj = $e([ + Qa, + fc, + Qf, + p6e.pipe(Qr(true)) ]).pipe( - Oe((t) => y9e(t)), - iu( + Pe((t) => v9e(t)), + nu( U0.pipe( - we(() => bt([], gt.LOADING)) + we(() => xt([], vt.LOADING)) ) ), - Yt( - (t) => xe(bt([], gt.ERROR, t.message)) + $t( + (t) => _e(xt([], vt.ERROR, t.message)) ), - qt(1) + Wt(1) ); - var rj = Qe([ - ec, - dc, - su, + var nj = $e([ + Qa, + fc, + iu, B0, - $f, - p6e.pipe(Cr(true)) + Qf, + m6e.pipe(Qr(true)) ]).pipe( - Oe(f6e), + Pe(d6e), we( - (t) => bt(t, gt.COMPLETE_DATA, "History loaded") + (t) => xt(t, vt.COMPLETE_DATA, "History loaded") ), - iu( + nu( U0.pipe( - we(() => bt([], gt.LOADING)) + we(() => xt([], vt.LOADING)) ) ), - Yt((t, e) => (console.log("selectedTransactionHistory_status$ ERR=", t.message), xe(bt([], gt.ERROR, t.message)))), - qt(1) + $t((t, e) => (console.log("selectedTransactionHistory_status$ ERR=", t.message), _e(xt([], vt.ERROR, t.message)))), + Wt(1) ); - var g6e = H2(j2); - var y6e = nj(V2); - var b6e = H2(F2); - var w6e = H2(tj); - var v6e = H2(ej); - var x6e = nj(rj); - function nj(t) { + var g6e = F2(j2); + var y6e = ij(qd); + var b6e = F2(z2); + var w6e = F2(rj); + var v6e = F2(tj); + var x6e = ij(nj); + function ij(t) { return t.pipe( we((e) => { if (e) { - if (e.hasStatus(gt.COMPLETE_DATA)) + if (e.hasStatus(vt.COMPLETE_DATA)) return e.data; - if (!(m2([e]) < gt.MISSING_INPUT_VALUES)) + if (!(g2([e]) < vt.MISSING_INPUT_VALUES)) return null; } }), - ca(), - qt(1) + ec(), + Wt(1) ); } - function H2(t) { + function F2(t) { return t.pipe( we((e) => { - if (e.hasStatus(gt.COMPLETE_DATA)) + if (e.hasStatus(vt.COMPLETE_DATA)) return e.data.map((r) => r.data); - if (!(m2(e.data) < gt.MISSING_INPUT_VALUES)) + if (!(g2(e.data) < vt.MISSING_INPUT_VALUES)) return null; }), - ca(), - qt(1) + ec(), + Wt(1) ); } var Ei = /* @__PURE__ */ ((t) => (t.SIGNATURE_REQUEST = "SIGNATURE_REQUEST", t.SIGNED = "SIGNED", t.BROADCAST = "BROADCAST", t.INCLUDED_IN_BLOCK = "INCLUDED_IN_BLOCK", t.BLOCK_FINALIZED = "BLOCK_FINALIZED", t.BLOCK_NOT_FINALIZED = "BLOCK_NOT_FINALIZED", t.ENDED = "ENDED", t))(Ei || {}); - var q2 = new Er(); - var _9 = new Er(); - var _6e = _9.pipe( + var H2 = new Er(); + var x9 = new Er(); + var _6e = x9.pipe( Cn((t) => t), - Fv(q2), - Yt((t) => (console.log("ERRRRRR", t), xe({ + zv(H2), + $t((t) => (console.log("ERRRRRR", t), _e({ txIdent: t.txIdent, txStage: Ei.ENDED }))), - t0( + r0( (t, e) => e.txStage == Ei.BLOCK_NOT_FINALIZED || e.txStage == Ei.BLOCK_FINALIZED || e.txStage == Ei.ENDED ? (t.delete(e.txIdent), t) : (t.set(e.txIdent, e), t), /* @__PURE__ */ new Map() ), - Us((t) => console.log("new list", Array.from(t.keys()).length)), - qt(1) + Bs((t) => console.log("new list", Array.from(t.keys()).length)), + Wt(1) ); // src/injectExtension.ts @@ -87695,8 +87609,8 @@ ${gz(e, r)}`); }; } function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v10) { - resolve({ value: v10, done: d }); + Promise.resolve(v).then(function(v5) { + resolve({ value: v5, done: d }); }, reject); } } diff --git a/lib/js/packages/reef-mobile-js/dist/index.js b/lib/js/packages/reef-mobile-js/dist/index.js index 6879070d..a433f508 100644 --- a/lib/js/packages/reef-mobile-js/dist/index.js +++ b/lib/js/packages/reef-mobile-js/dist/index.js @@ -48,9 +48,9 @@ } }); - // node_modules/ws/browser.js + // ../../node_modules/ws/browser.js var require_browser = __commonJS({ - "node_modules/ws/browser.js"(exports2, module2) { + "../../node_modules/ws/browser.js"(exports2, module2) { "use strict"; module2.exports = function() { throw new Error( @@ -3080,15 +3080,15 @@ ErrorCode2["ACTION_REJECTED"] = "ACTION_REJECTED"; })(ErrorCode = exports2.ErrorCode || (exports2.ErrorCode = {})); var HEX = "0123456789abcdef"; - var Logger46 = function() { - function Logger47(version27) { + var Logger42 = function() { + function Logger43(version23) { Object.defineProperty(this, "version", { enumerable: true, - value: version27, + value: version23, writable: false }); } - Logger47.prototype._log = function(logLevel, args) { + Logger43.prototype._log = function(logLevel, args) { var level = logLevel.toLowerCase(); if (LogLevels[level] == null) { this.throwArgumentError("invalid log level name", "logLevel", logLevel); @@ -3098,33 +3098,33 @@ } console.log.apply(console, args); }; - Logger47.prototype.debug = function() { + Logger43.prototype.debug = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.DEBUG, args); + this._log(Logger43.levels.DEBUG, args); }; - Logger47.prototype.info = function() { + Logger43.prototype.info = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.INFO, args); + this._log(Logger43.levels.INFO, args); }; - Logger47.prototype.warn = function() { + Logger43.prototype.warn = function() { var args = []; for (var _i2 = 0; _i2 < arguments.length; _i2++) { args[_i2] = arguments[_i2]; } - this._log(Logger47.levels.WARNING, args); + this._log(Logger43.levels.WARNING, args); }; - Logger47.prototype.makeError = function(message, code, params) { + Logger43.prototype.makeError = function(message, code, params) { if (_censorErrors) { return this.makeError("censored error", code, {}); } if (!code) { - code = Logger47.errors.UNKNOWN_ERROR; + code = Logger43.errors.UNKNOWN_ERROR; } if (!params) { params = {}; @@ -3195,39 +3195,39 @@ }); return error; }; - Logger47.prototype.throwError = function(message, code, params) { + Logger43.prototype.throwError = function(message, code, params) { throw this.makeError(message, code, params); }; - Logger47.prototype.throwArgumentError = function(message, name6, value) { - return this.throwError(message, Logger47.errors.INVALID_ARGUMENT, { + Logger43.prototype.throwArgumentError = function(message, name6, value) { + return this.throwError(message, Logger43.errors.INVALID_ARGUMENT, { argument: name6, value }); }; - Logger47.prototype.assert = function(condition, message, code, params) { + Logger43.prototype.assert = function(condition, message, code, params) { if (!!condition) { return; } this.throwError(message, code, params); }; - Logger47.prototype.assertArgument = function(condition, message, name6, value) { + Logger43.prototype.assertArgument = function(condition, message, name6, value) { if (!!condition) { return; } this.throwArgumentError(message, name6, value); }; - Logger47.prototype.checkNormalize = function(message) { + Logger43.prototype.checkNormalize = function(message) { if (message == null) { message = "platform missing String.prototype.normalize"; } if (_normalizeError) { - this.throwError("platform missing String.prototype.normalize", Logger47.errors.UNSUPPORTED_OPERATION, { + this.throwError("platform missing String.prototype.normalize", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", form: _normalizeError }); } }; - Logger47.prototype.checkSafeUint53 = function(value, message) { + Logger43.prototype.checkSafeUint53 = function(value, message) { if (typeof value !== "number") { return; } @@ -3235,60 +3235,60 @@ message = "value not safe"; } if (value < 0 || value >= 9007199254740991) { - this.throwError(message, Logger47.errors.NUMERIC_FAULT, { + this.throwError(message, Logger43.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "out-of-safe-range", value }); } if (value % 1) { - this.throwError(message, Logger47.errors.NUMERIC_FAULT, { + this.throwError(message, Logger43.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "non-integer", value }); } }; - Logger47.prototype.checkArgumentCount = function(count, expectedCount, message) { + Logger43.prototype.checkArgumentCount = function(count, expectedCount, message) { if (message) { message = ": " + message; } else { message = ""; } if (count < expectedCount) { - this.throwError("missing argument" + message, Logger47.errors.MISSING_ARGUMENT, { + this.throwError("missing argument" + message, Logger43.errors.MISSING_ARGUMENT, { count, expectedCount }); } if (count > expectedCount) { - this.throwError("too many arguments" + message, Logger47.errors.UNEXPECTED_ARGUMENT, { + this.throwError("too many arguments" + message, Logger43.errors.UNEXPECTED_ARGUMENT, { count, expectedCount }); } }; - Logger47.prototype.checkNew = function(target, kind) { + Logger43.prototype.checkNew = function(target, kind) { if (target === Object || target == null) { - this.throwError("missing new", Logger47.errors.MISSING_NEW, { name: kind.name }); + this.throwError("missing new", Logger43.errors.MISSING_NEW, { name: kind.name }); } }; - Logger47.prototype.checkAbstract = function(target, kind) { + Logger43.prototype.checkAbstract = function(target, kind) { if (target === kind) { - this.throwError("cannot instantiate abstract class " + JSON.stringify(kind.name) + " directly; use a sub-class", Logger47.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: "new" }); + this.throwError("cannot instantiate abstract class " + JSON.stringify(kind.name) + " directly; use a sub-class", Logger43.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: "new" }); } else if (target === Object || target == null) { - this.throwError("missing new", Logger47.errors.MISSING_NEW, { name: kind.name }); + this.throwError("missing new", Logger43.errors.MISSING_NEW, { name: kind.name }); } }; - Logger47.globalLogger = function() { + Logger43.globalLogger = function() { if (!_globalLogger) { - _globalLogger = new Logger47(_version_1.version); + _globalLogger = new Logger43(_version_1.version); } return _globalLogger; }; - Logger47.setCensorship = function(censorship, permanent) { + Logger43.setCensorship = function(censorship, permanent) { if (!censorship && permanent) { - this.globalLogger().throwError("cannot permanently disable censorship", Logger47.errors.UNSUPPORTED_OPERATION, { + this.globalLogger().throwError("cannot permanently disable censorship", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } @@ -3296,29 +3296,29 @@ if (!censorship) { return; } - this.globalLogger().throwError("error censorship permanent", Logger47.errors.UNSUPPORTED_OPERATION, { + this.globalLogger().throwError("error censorship permanent", Logger43.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }); } _censorErrors = !!censorship; _permanentCensorErrors = !!permanent; }; - Logger47.setLogLevel = function(logLevel) { + Logger43.setLogLevel = function(logLevel) { var level = LogLevels[logLevel.toLowerCase()]; if (level == null) { - Logger47.globalLogger().warn("invalid log level - " + logLevel); + Logger43.globalLogger().warn("invalid log level - " + logLevel); return; } _logLevel = level; }; - Logger47.from = function(version27) { - return new Logger47(version27); + Logger43.from = function(version23) { + return new Logger43(version23); }; - Logger47.errors = ErrorCode; - Logger47.levels = LogLevel2; - return Logger47; + Logger43.errors = ErrorCode; + Logger43.levels = LogLevel2; + return Logger43; }(); - exports2.Logger = Logger46; + exports2.Logger = Logger42; } }); @@ -3340,7 +3340,7 @@ exports2.joinSignature = exports2.splitSignature = exports2.hexZeroPad = exports2.hexStripZeros = exports2.hexValue = exports2.hexConcat = exports2.hexDataSlice = exports2.hexDataLength = exports2.hexlify = exports2.isHexString = exports2.zeroPad = exports2.stripZeros = exports2.concat = exports2.arrayify = exports2.isBytes = exports2.isBytesLike = void 0; var logger_1 = require_lib(); var _version_1 = require_version2(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); function isHexable(value) { return !!value.toHexString; } @@ -3354,10 +3354,10 @@ }; return array; } - function isBytesLike5(value) { - return isHexString12(value) && !(value.length % 2) || isBytes8(value); + function isBytesLike4(value) { + return isHexString11(value) && !(value.length % 2) || isBytes8(value); } - exports2.isBytesLike = isBytesLike5; + exports2.isBytesLike = isBytesLike4; function isInteger(value) { return typeof value === "number" && value == value && value % 1 === 0; } @@ -3383,12 +3383,12 @@ return true; } exports2.isBytes = isBytes8; - function arrayify27(value, options) { + function arrayify24(value, options) { if (!options) { options = {}; } if (typeof value === "number") { - logger46.checkSafeUint53(value, "invalid arrayify value"); + logger42.checkSafeUint53(value, "invalid arrayify value"); var result = []; while (value) { result.unshift(value & 255); @@ -3405,7 +3405,7 @@ if (isHexable(value)) { value = value.toHexString(); } - if (isHexString12(value)) { + if (isHexString11(value)) { var hex8 = value.substring(2); if (hex8.length % 2) { if (options.hexPad === "left") { @@ -3413,7 +3413,7 @@ } else if (options.hexPad === "right") { hex8 += "0"; } else { - logger46.throwArgumentError("hex data is odd-length", "value", value); + logger42.throwArgumentError("hex data is odd-length", "value", value); } } var result = []; @@ -3425,12 +3425,12 @@ if (isBytes8(value)) { return addSlice(new Uint8Array(value)); } - return logger46.throwArgumentError("invalid arrayify value", "value", value); + return logger42.throwArgumentError("invalid arrayify value", "value", value); } - exports2.arrayify = arrayify27; - function concat13(items) { + exports2.arrayify = arrayify24; + function concat12(items) { var objects = items.map(function(item) { - return arrayify27(item); + return arrayify24(item); }); var length = objects.reduce(function(accum, item) { return accum + item.length; @@ -3442,9 +3442,9 @@ }, 0); return addSlice(result); } - exports2.concat = concat13; - function stripZeros4(value) { - var result = arrayify27(value); + exports2.concat = concat12; + function stripZeros3(value) { + var result = arrayify24(value); if (result.length === 0) { return result; } @@ -3457,18 +3457,18 @@ } return result; } - exports2.stripZeros = stripZeros4; + exports2.stripZeros = stripZeros3; function zeroPad4(value, length) { - value = arrayify27(value); + value = arrayify24(value); if (value.length > length) { - logger46.throwArgumentError("value out of range", "value", arguments[0]); + logger42.throwArgumentError("value out of range", "value", arguments[0]); } var result = new Uint8Array(length); result.set(value, length - value.length); return addSlice(result); } exports2.zeroPad = zeroPad4; - function isHexString12(value, length) { + function isHexString11(value, length) { if (typeof value !== "string" || !value.match(/^0x[0-9A-Fa-f]*$/)) { return false; } @@ -3477,14 +3477,14 @@ } return true; } - exports2.isHexString = isHexString12; + exports2.isHexString = isHexString11; var HexCharacters = "0123456789abcdef"; - function hexlify21(value, options) { + function hexlify20(value, options) { if (!options) { options = {}; } if (typeof value === "number") { - logger46.checkSafeUint53(value, "invalid hexlify value"); + logger42.checkSafeUint53(value, "invalid hexlify value"); var hex8 = ""; while (value) { hex8 = HexCharacters[value & 15] + hex8; @@ -3511,14 +3511,14 @@ if (isHexable(value)) { return value.toHexString(); } - if (isHexString12(value)) { + if (isHexString11(value)) { if (value.length % 2) { if (options.hexPad === "left") { value = "0x0" + value.substring(2); } else if (options.hexPad === "right") { value += "0"; } else { - logger46.throwArgumentError("hex data is odd-length", "value", value); + logger42.throwArgumentError("hex data is odd-length", "value", value); } } return value.toLowerCase(); @@ -3531,23 +3531,23 @@ } return result; } - return logger46.throwArgumentError("invalid hexlify value", "value", value); + return logger42.throwArgumentError("invalid hexlify value", "value", value); } - exports2.hexlify = hexlify21; - function hexDataLength7(data) { + exports2.hexlify = hexlify20; + function hexDataLength6(data) { if (typeof data !== "string") { - data = hexlify21(data); - } else if (!isHexString12(data) || data.length % 2) { + data = hexlify20(data); + } else if (!isHexString11(data) || data.length % 2) { return null; } return (data.length - 2) / 2; } - exports2.hexDataLength = hexDataLength7; - function hexDataSlice9(data, offset, endOffset) { + exports2.hexDataLength = hexDataLength6; + function hexDataSlice8(data, offset, endOffset) { if (typeof data !== "string") { - data = hexlify21(data); - } else if (!isHexString12(data) || data.length % 2) { - logger46.throwArgumentError("invalid hexData", "value", data); + data = hexlify20(data); + } else if (!isHexString11(data) || data.length % 2) { + logger42.throwArgumentError("invalid hexData", "value", data); } offset = 2 + 2 * offset; if (endOffset != null) { @@ -3555,17 +3555,17 @@ } return "0x" + data.substring(offset); } - exports2.hexDataSlice = hexDataSlice9; + exports2.hexDataSlice = hexDataSlice8; function hexConcat6(items) { var result = "0x"; items.forEach(function(item) { - result += hexlify21(item).substring(2); + result += hexlify20(item).substring(2); }); return result; } exports2.hexConcat = hexConcat6; function hexValue6(value) { - var trimmed = hexStripZeros2(hexlify21(value, { hexPad: "left" })); + var trimmed = hexStripZeros2(hexlify20(value, { hexPad: "left" })); if (trimmed === "0x") { return "0x0"; } @@ -3574,10 +3574,10 @@ exports2.hexValue = hexValue6; function hexStripZeros2(value) { if (typeof value !== "string") { - value = hexlify21(value); + value = hexlify20(value); } - if (!isHexString12(value)) { - logger46.throwArgumentError("invalid hex string", "value", value); + if (!isHexString11(value)) { + logger42.throwArgumentError("invalid hex string", "value", value); } value = value.substring(2); var offset = 0; @@ -3589,12 +3589,12 @@ exports2.hexStripZeros = hexStripZeros2; function hexZeroPad11(value, length) { if (typeof value !== "string") { - value = hexlify21(value); - } else if (!isHexString12(value)) { - logger46.throwArgumentError("invalid hex string", "value", value); + value = hexlify20(value); + } else if (!isHexString11(value)) { + logger42.throwArgumentError("invalid hex string", "value", value); } if (value.length > 2 * length + 2) { - logger46.throwArgumentError("value out of range", "value", arguments[1]); + logger42.throwArgumentError("value out of range", "value", arguments[1]); } while (value.length < 2 * length + 2) { value = "0x0" + value.substring(2); @@ -3612,32 +3612,32 @@ yParityAndS: "0x", compact: "0x" }; - if (isBytesLike5(signature2)) { - var bytes5 = arrayify27(signature2); + if (isBytesLike4(signature2)) { + var bytes5 = arrayify24(signature2); if (bytes5.length === 64) { result.v = 27 + (bytes5[32] >> 7); bytes5[32] &= 127; - result.r = hexlify21(bytes5.slice(0, 32)); - result.s = hexlify21(bytes5.slice(32, 64)); + result.r = hexlify20(bytes5.slice(0, 32)); + result.s = hexlify20(bytes5.slice(32, 64)); } else if (bytes5.length === 65) { - result.r = hexlify21(bytes5.slice(0, 32)); - result.s = hexlify21(bytes5.slice(32, 64)); + result.r = hexlify20(bytes5.slice(0, 32)); + result.s = hexlify20(bytes5.slice(32, 64)); result.v = bytes5[64]; } else { - logger46.throwArgumentError("invalid signature string", "signature", signature2); + logger42.throwArgumentError("invalid signature string", "signature", signature2); } if (result.v < 27) { if (result.v === 0 || result.v === 1) { result.v += 27; } else { - logger46.throwArgumentError("signature invalid v byte", "signature", signature2); + logger42.throwArgumentError("signature invalid v byte", "signature", signature2); } } result.recoveryParam = 1 - result.v % 2; if (result.recoveryParam) { bytes5[32] |= 128; } - result._vs = hexlify21(bytes5.slice(32, 64)); + result._vs = hexlify20(bytes5.slice(32, 64)); } else { result.r = signature2.r; result.s = signature2.s; @@ -3645,25 +3645,25 @@ result.recoveryParam = signature2.recoveryParam; result._vs = signature2._vs; if (result._vs != null) { - var vs_1 = zeroPad4(arrayify27(result._vs), 32); - result._vs = hexlify21(vs_1); + var vs_1 = zeroPad4(arrayify24(result._vs), 32); + result._vs = hexlify20(vs_1); var recoveryParam = vs_1[0] >= 128 ? 1 : 0; if (result.recoveryParam == null) { result.recoveryParam = recoveryParam; } else if (result.recoveryParam !== recoveryParam) { - logger46.throwArgumentError("signature recoveryParam mismatch _vs", "signature", signature2); + logger42.throwArgumentError("signature recoveryParam mismatch _vs", "signature", signature2); } vs_1[0] &= 127; - var s = hexlify21(vs_1); + var s = hexlify20(vs_1); if (result.s == null) { result.s = s; } else if (result.s !== s) { - logger46.throwArgumentError("signature v mismatch _vs", "signature", signature2); + logger42.throwArgumentError("signature v mismatch _vs", "signature", signature2); } } if (result.recoveryParam == null) { if (result.v == null) { - logger46.throwArgumentError("signature missing v and recoveryParam", "signature", signature2); + logger42.throwArgumentError("signature missing v and recoveryParam", "signature", signature2); } else if (result.v === 0 || result.v === 1) { result.recoveryParam = result.v; } else { @@ -3675,38 +3675,38 @@ } else { var recId = result.v === 0 || result.v === 1 ? result.v : 1 - result.v % 2; if (result.recoveryParam !== recId) { - logger46.throwArgumentError("signature recoveryParam mismatch v", "signature", signature2); + logger42.throwArgumentError("signature recoveryParam mismatch v", "signature", signature2); } } } - if (result.r == null || !isHexString12(result.r)) { - logger46.throwArgumentError("signature missing or invalid r", "signature", signature2); + if (result.r == null || !isHexString11(result.r)) { + logger42.throwArgumentError("signature missing or invalid r", "signature", signature2); } else { result.r = hexZeroPad11(result.r, 32); } - if (result.s == null || !isHexString12(result.s)) { - logger46.throwArgumentError("signature missing or invalid s", "signature", signature2); + if (result.s == null || !isHexString11(result.s)) { + logger42.throwArgumentError("signature missing or invalid s", "signature", signature2); } else { result.s = hexZeroPad11(result.s, 32); } - var vs2 = arrayify27(result.s); + var vs2 = arrayify24(result.s); if (vs2[0] >= 128) { - logger46.throwArgumentError("signature s out of range", "signature", signature2); + logger42.throwArgumentError("signature s out of range", "signature", signature2); } if (result.recoveryParam) { vs2[0] |= 128; } - var _vs = hexlify21(vs2); + var _vs = hexlify20(vs2); if (result._vs) { - if (!isHexString12(result._vs)) { - logger46.throwArgumentError("signature invalid _vs", "signature", signature2); + if (!isHexString11(result._vs)) { + logger42.throwArgumentError("signature invalid _vs", "signature", signature2); } result._vs = hexZeroPad11(result._vs, 32); } if (result._vs == null) { result._vs = _vs; } else if (result._vs !== _vs) { - logger46.throwArgumentError("signature _vs mismatch v and s", "signature", signature2); + logger42.throwArgumentError("signature _vs mismatch v and s", "signature", signature2); } } result.yParityAndS = result._vs; @@ -3716,7 +3716,7 @@ exports2.splitSignature = splitSignature4; function joinSignature3(signature2) { signature2 = splitSignature4(signature2); - return hexlify21(concat13([ + return hexlify20(concat12([ signature2.r, signature2.s, signature2.recoveryParam ? "0x1c" : "0x1b" @@ -3750,18 +3750,18 @@ var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version3(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var _constructorGuard4 = {}; var MAX_SAFE = 9007199254740991; function isBigNumberish(value) { - return value != null && (BigNumber19.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || (0, bytes_1.isHexString)(value) || typeof value === "bigint" || (0, bytes_1.isBytes)(value)); + return value != null && (BigNumber18.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || (0, bytes_1.isHexString)(value) || typeof value === "bigint" || (0, bytes_1.isBytes)(value)); } exports2.isBigNumberish = isBigNumberish; var _warnedToStringRadix = false; - var BigNumber19 = function() { - function BigNumber20(constructorGuard, hex8) { + var BigNumber18 = function() { + function BigNumber19(constructorGuard, hex8) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot call constructor directly; use BigNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot call constructor directly; use BigNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }); } @@ -3769,158 +3769,158 @@ this._isBigNumber = true; Object.freeze(this); } - BigNumber20.prototype.fromTwos = function(value) { - return toBigNumber(toBN(this).fromTwos(value)); + BigNumber19.prototype.fromTwos = function(value) { + return toBigNumber(toBN2(this).fromTwos(value)); }; - BigNumber20.prototype.toTwos = function(value) { - return toBigNumber(toBN(this).toTwos(value)); + BigNumber19.prototype.toTwos = function(value) { + return toBigNumber(toBN2(this).toTwos(value)); }; - BigNumber20.prototype.abs = function() { + BigNumber19.prototype.abs = function() { if (this._hex[0] === "-") { - return BigNumber20.from(this._hex.substring(1)); + return BigNumber19.from(this._hex.substring(1)); } return this; }; - BigNumber20.prototype.add = function(other) { - return toBigNumber(toBN(this).add(toBN(other))); + BigNumber19.prototype.add = function(other) { + return toBigNumber(toBN2(this).add(toBN2(other))); }; - BigNumber20.prototype.sub = function(other) { - return toBigNumber(toBN(this).sub(toBN(other))); + BigNumber19.prototype.sub = function(other) { + return toBigNumber(toBN2(this).sub(toBN2(other))); }; - BigNumber20.prototype.div = function(other) { - var o = BigNumber20.from(other); + BigNumber19.prototype.div = function(other) { + var o = BigNumber19.from(other); if (o.isZero()) { throwFault("division-by-zero", "div"); } - return toBigNumber(toBN(this).div(toBN(other))); + return toBigNumber(toBN2(this).div(toBN2(other))); }; - BigNumber20.prototype.mul = function(other) { - return toBigNumber(toBN(this).mul(toBN(other))); + BigNumber19.prototype.mul = function(other) { + return toBigNumber(toBN2(this).mul(toBN2(other))); }; - BigNumber20.prototype.mod = function(other) { - var value = toBN(other); + BigNumber19.prototype.mod = function(other) { + var value = toBN2(other); if (value.isNeg()) { throwFault("division-by-zero", "mod"); } - return toBigNumber(toBN(this).umod(value)); + return toBigNumber(toBN2(this).umod(value)); }; - BigNumber20.prototype.pow = function(other) { - var value = toBN(other); + BigNumber19.prototype.pow = function(other) { + var value = toBN2(other); if (value.isNeg()) { throwFault("negative-power", "pow"); } - return toBigNumber(toBN(this).pow(value)); + return toBigNumber(toBN2(this).pow(value)); }; - BigNumber20.prototype.and = function(other) { - var value = toBN(other); + BigNumber19.prototype.and = function(other) { + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "and"); } - return toBigNumber(toBN(this).and(value)); + return toBigNumber(toBN2(this).and(value)); }; - BigNumber20.prototype.or = function(other) { - var value = toBN(other); + BigNumber19.prototype.or = function(other) { + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "or"); } - return toBigNumber(toBN(this).or(value)); + return toBigNumber(toBN2(this).or(value)); }; - BigNumber20.prototype.xor = function(other) { - var value = toBN(other); + BigNumber19.prototype.xor = function(other) { + var value = toBN2(other); if (this.isNegative() || value.isNeg()) { throwFault("unbound-bitwise-result", "xor"); } - return toBigNumber(toBN(this).xor(value)); + return toBigNumber(toBN2(this).xor(value)); }; - BigNumber20.prototype.mask = function(value) { + BigNumber19.prototype.mask = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "mask"); } - return toBigNumber(toBN(this).maskn(value)); + return toBigNumber(toBN2(this).maskn(value)); }; - BigNumber20.prototype.shl = function(value) { + BigNumber19.prototype.shl = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shl"); } - return toBigNumber(toBN(this).shln(value)); + return toBigNumber(toBN2(this).shln(value)); }; - BigNumber20.prototype.shr = function(value) { + BigNumber19.prototype.shr = function(value) { if (this.isNegative() || value < 0) { throwFault("negative-width", "shr"); } - return toBigNumber(toBN(this).shrn(value)); + return toBigNumber(toBN2(this).shrn(value)); }; - BigNumber20.prototype.eq = function(other) { - return toBN(this).eq(toBN(other)); + BigNumber19.prototype.eq = function(other) { + return toBN2(this).eq(toBN2(other)); }; - BigNumber20.prototype.lt = function(other) { - return toBN(this).lt(toBN(other)); + BigNumber19.prototype.lt = function(other) { + return toBN2(this).lt(toBN2(other)); }; - BigNumber20.prototype.lte = function(other) { - return toBN(this).lte(toBN(other)); + BigNumber19.prototype.lte = function(other) { + return toBN2(this).lte(toBN2(other)); }; - BigNumber20.prototype.gt = function(other) { - return toBN(this).gt(toBN(other)); + BigNumber19.prototype.gt = function(other) { + return toBN2(this).gt(toBN2(other)); }; - BigNumber20.prototype.gte = function(other) { - return toBN(this).gte(toBN(other)); + BigNumber19.prototype.gte = function(other) { + return toBN2(this).gte(toBN2(other)); }; - BigNumber20.prototype.isNegative = function() { + BigNumber19.prototype.isNegative = function() { return this._hex[0] === "-"; }; - BigNumber20.prototype.isZero = function() { - return toBN(this).isZero(); + BigNumber19.prototype.isZero = function() { + return toBN2(this).isZero(); }; - BigNumber20.prototype.toNumber = function() { + BigNumber19.prototype.toNumber = function() { try { - return toBN(this).toNumber(); + return toBN2(this).toNumber(); } catch (error) { throwFault("overflow", "toNumber", this.toString()); } return null; }; - BigNumber20.prototype.toBigInt = function() { + BigNumber19.prototype.toBigInt = function() { try { return BigInt(this.toString()); } catch (e) { } - return logger46.throwError("this platform does not support BigInt", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + return logger42.throwError("this platform does not support BigInt", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { value: this.toString() }); }; - BigNumber20.prototype.toString = function() { + BigNumber19.prototype.toString = function() { if (arguments.length > 0) { if (arguments[0] === 10) { if (!_warnedToStringRadix) { _warnedToStringRadix = true; - logger46.warn("BigNumber.toString does not accept any parameters; base-10 is assumed"); + logger42.warn("BigNumber.toString does not accept any parameters; base-10 is assumed"); } } else if (arguments[0] === 16) { - logger46.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); + logger42.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); } else { - logger46.throwError("BigNumber.toString does not accept parameters", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); + logger42.throwError("BigNumber.toString does not accept parameters", logger_1.Logger.errors.UNEXPECTED_ARGUMENT, {}); } } - return toBN(this).toString(10); + return toBN2(this).toString(10); }; - BigNumber20.prototype.toHexString = function() { + BigNumber19.prototype.toHexString = function() { return this._hex; }; - BigNumber20.prototype.toJSON = function(key2) { + BigNumber19.prototype.toJSON = function(key2) { return { type: "BigNumber", hex: this.toHexString() }; }; - BigNumber20.from = function(value) { - if (value instanceof BigNumber20) { + BigNumber19.from = function(value) { + if (value instanceof BigNumber19) { return value; } if (typeof value === "string") { if (value.match(/^-?0x[0-9a-f]+$/i)) { - return new BigNumber20(_constructorGuard4, toHex2(value)); + return new BigNumber19(_constructorGuard4, toHex2(value)); } if (value.match(/^-?[0-9]+$/)) { - return new BigNumber20(_constructorGuard4, toHex2(new BN7(value))); + return new BigNumber19(_constructorGuard4, toHex2(new BN7(value))); } - return logger46.throwArgumentError("invalid BigNumber string", "value", value); + return logger42.throwArgumentError("invalid BigNumber string", "value", value); } if (typeof value === "number") { if (value % 1) { @@ -3929,20 +3929,20 @@ if (value >= MAX_SAFE || value <= -MAX_SAFE) { throwFault("overflow", "BigNumber.from", value); } - return BigNumber20.from(String(value)); + return BigNumber19.from(String(value)); } var anyValue = value; if (typeof anyValue === "bigint") { - return BigNumber20.from(anyValue.toString()); + return BigNumber19.from(anyValue.toString()); } if ((0, bytes_1.isBytes)(anyValue)) { - return BigNumber20.from((0, bytes_1.hexlify)(anyValue)); + return BigNumber19.from((0, bytes_1.hexlify)(anyValue)); } if (anyValue) { if (anyValue.toHexString) { var hex8 = anyValue.toHexString(); if (typeof hex8 === "string") { - return BigNumber20.from(hex8); + return BigNumber19.from(hex8); } } else { var hex8 = anyValue._hex; @@ -3951,19 +3951,19 @@ } if (typeof hex8 === "string") { if ((0, bytes_1.isHexString)(hex8) || hex8[0] === "-" && (0, bytes_1.isHexString)(hex8.substring(1))) { - return BigNumber20.from(hex8); + return BigNumber19.from(hex8); } } } } - return logger46.throwArgumentError("invalid BigNumber value", "value", value); + return logger42.throwArgumentError("invalid BigNumber value", "value", value); }; - BigNumber20.isBigNumber = function(value) { + BigNumber19.isBigNumber = function(value) { return !!(value && value._isBigNumber); }; - return BigNumber20; + return BigNumber19; }(); - exports2.BigNumber = BigNumber19; + exports2.BigNumber = BigNumber18; function toHex2(value) { if (typeof value !== "string") { return toHex2(value.toString(16)); @@ -3971,7 +3971,7 @@ if (value[0] === "-") { value = value.substring(1); if (value[0] === "-") { - logger46.throwArgumentError("invalid hex", "value", value); + logger42.throwArgumentError("invalid hex", "value", value); } value = toHex2(value); if (value === "0x00") { @@ -3994,10 +3994,10 @@ return value; } function toBigNumber(value) { - return BigNumber19.from(toHex2(value)); + return BigNumber18.from(toHex2(value)); } - function toBN(value) { - var hex8 = BigNumber19.from(value).toHexString(); + function toBN2(value) { + var hex8 = BigNumber18.from(value).toHexString(); if (hex8[0] === "-") { return new BN7("-" + hex8.substring(3), 16); } @@ -4008,16 +4008,16 @@ if (value != null) { params.value = value; } - return logger46.throwError(fault, logger_1.Logger.errors.NUMERIC_FAULT, params); + return logger42.throwError(fault, logger_1.Logger.errors.NUMERIC_FAULT, params); } - function _base36To162(value) { + function _base36To16(value) { return new BN7(value, 36).toString(16); } - exports2._base36To16 = _base36To162; - function _base16To362(value) { + exports2._base36To16 = _base36To16; + function _base16To36(value) { return new BN7(value, 16).toString(36); } - exports2._base16To36 = _base16To362; + exports2._base16To36 = _base16To36; } }); @@ -4030,7 +4030,7 @@ var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version3(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var bignumber_1 = require_bignumber(); var _constructorGuard4 = {}; var Zero4 = bignumber_1.BigNumber.from(0); @@ -4040,7 +4040,7 @@ if (value !== void 0) { params.value = value; } - return logger46.throwError(message, logger_1.Logger.errors.NUMERIC_FAULT, params); + return logger42.throwError(message, logger_1.Logger.errors.NUMERIC_FAULT, params); } var zeros = "0"; while (zeros.length < 256) { @@ -4056,7 +4056,7 @@ if (typeof decimals === "number" && decimals >= 0 && decimals <= 256 && !(decimals % 1)) { return "1" + zeros.substring(0, decimals); } - return logger46.throwArgumentError("invalid decimal size", "decimals", decimals); + return logger42.throwArgumentError("invalid decimal size", "decimals", decimals); } function formatFixed2(value, decimals) { if (decimals == null) { @@ -4091,18 +4091,18 @@ } var multiplier = getMultiplier(decimals); if (typeof value !== "string" || !value.match(/^-?[0-9.]+$/)) { - logger46.throwArgumentError("invalid decimal value", "value", value); + logger42.throwArgumentError("invalid decimal value", "value", value); } var negative = value.substring(0, 1) === "-"; if (negative) { value = value.substring(1); } if (value === ".") { - logger46.throwArgumentError("missing value", "value", value); + logger42.throwArgumentError("missing value", "value", value); } var comps = value.split("."); if (comps.length > 2) { - logger46.throwArgumentError("too many decimal points", "value", value); + logger42.throwArgumentError("too many decimal points", "value", value); } var whole = comps[0], fraction = comps[1]; if (!whole) { @@ -4135,7 +4135,7 @@ var FixedFormat = function() { function FixedFormat2(constructorGuard, signed2, width, decimals) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot use FixedFormat constructor; use FixedFormat.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot use FixedFormat constructor; use FixedFormat.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }); } @@ -4163,7 +4163,7 @@ } else { var match = value.match(/^(u?)fixed([0-9]+)x([0-9]+)$/); if (!match) { - logger46.throwArgumentError("invalid fixed format", "format", value); + logger42.throwArgumentError("invalid fixed format", "format", value); } signed2 = match[1] !== "u"; width = parseInt(match[2]); @@ -4175,7 +4175,7 @@ return defaultValue; } if (typeof value[key2] !== type) { - logger46.throwArgumentError("invalid fixed format (" + key2 + " not " + type + ")", "format." + key2, value[key2]); + logger42.throwArgumentError("invalid fixed format (" + key2 + " not " + type + ")", "format." + key2, value[key2]); } return value[key2]; }; @@ -4184,10 +4184,10 @@ decimals = check("decimals", "number", decimals); } if (width % 8) { - logger46.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", width); + logger42.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", width); } if (decimals > 80) { - logger46.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", decimals); + logger42.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", decimals); } return new FixedFormat2(_constructorGuard4, signed2, width, decimals); }; @@ -4197,7 +4197,7 @@ var FixedNumber2 = function() { function FixedNumber3(constructorGuard, hex8, value, format) { if (constructorGuard !== _constructorGuard4) { - logger46.throwError("cannot use FixedNumber constructor; use FixedNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("cannot use FixedNumber constructor; use FixedNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }); } @@ -4209,7 +4209,7 @@ } FixedNumber3.prototype._checkFormat = function(other) { if (this.format.name !== other.format.name) { - logger46.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", other); + logger42.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", other); } }; FixedNumber3.prototype.addUnsafe = function(other) { @@ -4269,7 +4269,7 @@ comps.push("0"); } if (decimals < 0 || decimals > 80 || decimals % 1) { - logger46.throwArgumentError("invalid decimal count", "decimals", decimals); + logger42.throwArgumentError("invalid decimal count", "decimals", decimals); } if (comps[1].length <= decimals) { return this; @@ -4292,7 +4292,7 @@ return this._hex; } if (width % 8) { - logger46.throwArgumentError("invalid byte width", "width", width); + logger42.throwArgumentError("invalid byte width", "width", width); } var hex8 = bignumber_1.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(width).toHexString(); return (0, bytes_1.hexZeroPad)(hex8, width / 8); @@ -4365,7 +4365,7 @@ throw error; } } - return logger46.throwArgumentError("invalid FixedNumber value", "value", value); + return logger42.throwArgumentError("invalid FixedNumber value", "value", value); }; FixedNumber3.isFixedNumber = function(value) { return !!(value && value._isFixedNumber); @@ -4424,7 +4424,7 @@ var __propKey; var __setFunctionName; var __metadata; - var __awaiter18; + var __awaiter16; var __generator2; var __exportStar; var __values2; @@ -4584,7 +4584,7 @@ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); }; - __awaiter18 = function(thisArg, _arguments, P, generator) { + __awaiter16 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -4966,7 +4966,7 @@ exporter("__propKey", __propKey); exporter("__setFunctionName", __setFunctionName); exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter18); + exporter("__awaiter", __awaiter16); exporter("__generator", __generator2); exporter("__exportStar", __exportStar); exporter("__createBinding", __createBinding); @@ -5184,13 +5184,13 @@ } return all.map((d) => ` ${fmt(d.version.padEnd(max2), d).join(" ")}`).join("\n"); } - function formatInfo(version27, { name: name6 }) { + function formatInfo(version23, { name: name6 }) { return [ - version27, + version23, name6 ]; } - function formatVersion(version27, { path, type }) { + function formatVersion(version23, { path, type }) { let extracted; if (path && path.length >= 5) { const nmIndex = path.indexOf("node_modules"); @@ -5199,7 +5199,7 @@ extracted = ""; } return [ - `${`${type || ""}`.padStart(3)} ${version27}`, + `${`${type || ""}`.padStart(3)} ${version23}`, extracted ]; } @@ -5220,22 +5220,22 @@ ${DEDUPE} ${formatDisplay(all, fmt)}`); } - function detectPackage({ name: name6, path, type, version: version27 }, pathOrFn, deps = []) { + function detectPackage({ name: name6, path, type, version: version23 }, pathOrFn, deps = []) { if (!name6.startsWith("@polkadot")) { throw new Error(`Invalid package descriptor ${name6}`); } const entry = getEntry(name6); - entry.push({ path: getPath(path, pathOrFn), type, version: version27 }); - const entriesSameVersion = entry.every((e) => e.version === version27); + entry.push({ path: getPath(path, pathOrFn), type, version: version23 }); + const entriesSameVersion = entry.every((e) => e.version === version23); const esmCjsWarningDisabled = x_global_1.xglobal.process?.env?.[exports2.POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG] === "1"; const multipleEntries = entry.length !== 1; const disableWarnings = esmCjsWarningDisabled && entriesSameVersion; if (multipleEntries && !disableWarnings) { warn(`${name6} has multiple versions, ensure that there is only one installed.`, entry, formatVersion); } else { - const mismatches = deps.filter((d) => d && d.version !== version27); + const mismatches = deps.filter((d) => d && d.version !== version23); if (mismatches.length) { - warn(`${name6} requires direct dependencies exactly matching version ${version27}.`, mismatches, formatInfo); + warn(`${name6} requires direct dependencies exactly matching version ${version23}.`, mismatches, formatInfo); } } } @@ -11022,7 +11022,7 @@ ${formatDisplay(all, fmt)}`); isNaN(maxSize) ? -1 : maxSize ]; } - function logger46(origin) { + function logger42(origin) { const type = `${origin.toUpperCase()}:`.padStart(16); const [isDebug, maxSize] = parseEnv2(origin.toLowerCase()); return { @@ -11033,7 +11033,7 @@ ${formatDisplay(all, fmt)}`); warn: (...values) => apply2("warn", type, values) }; } - exports2.logger = logger46; + exports2.logger = logger42; } }); @@ -11049,7 +11049,7 @@ ${formatDisplay(all, fmt)}`); } function memoize(fn2, { getInstanceId = defaultGetId } = {}) { const cache = {}; - const memoized = (...args) => { + const memoized2 = (...args) => { const stringParams = (0, stringify_js_1.stringify)(args); const instanceId = getInstanceId(); if (!cache[instanceId]) { @@ -11060,14 +11060,14 @@ ${formatDisplay(all, fmt)}`); } return cache[instanceId][stringParams]; }; - memoized.unmemoize = (...args) => { + memoized2.unmemoize = (...args) => { const stringParams = (0, stringify_js_1.stringify)(args); const instanceId = getInstanceId(); if (cache[instanceId]?.[stringParams] !== void 0) { delete cache[instanceId][stringParams]; } }; - return memoized; + return memoized2; } exports2.memoize = memoize; } @@ -15276,11 +15276,11 @@ ${formatDisplay(all, fmt)}`); return (0, _bridge.resultU8a)(); }); exports2.hmacSha512 = hmacSha5122; - var keccak2564 = (0, _bridge.withWasm)((wasm2, data) => { + var keccak25613 = (0, _bridge.withWasm)((wasm2, data) => { wasm2.ext_keccak256(8, ...(0, _bridge.allocU8a)(data)); return (0, _bridge.resultU8a)(); }); - exports2.keccak256 = keccak2564; + exports2.keccak256 = keccak25613; var keccak5122 = (0, _bridge.withWasm)((wasm2, data) => { wasm2.ext_keccak512(8, ...(0, _bridge.allocU8a)(data)); return (0, _bridge.resultU8a)(); @@ -19667,14 +19667,15 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/utils.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/utils.js var require_utils2 = __commonJS({ - "../../node_modules/@noble/curves/abstract/utils.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.bitMask = void 0; + exports2.notImplemented = exports2.bitMask = void 0; exports2.isBytes = isBytes8; exports2.abytes = abytes2; + exports2.abool = abool2; exports2.bytesToHex = bytesToHex3; exports2.numberToHexUnpadded = numberToHexUnpadded3; exports2.hexToNumber = hexToNumber3; @@ -19688,11 +19689,14 @@ ${formatDisplay(all, fmt)}`); exports2.concatBytes = concatBytes4; exports2.equalBytes = equalBytes2; exports2.utf8ToBytes = utf8ToBytes5; + exports2.inRange = inRange2; + exports2.aInRange = aInRange2; exports2.bitLen = bitLen2; exports2.bitGet = bitGet2; exports2.bitSet = bitSet2; exports2.createHmacDrbg = createHmacDrbg2; exports2.validateObject = validateObject2; + exports2.memoized = memoized2; var _0n10 = /* @__PURE__ */ BigInt(0); var _1n10 = /* @__PURE__ */ BigInt(1); var _2n8 = /* @__PURE__ */ BigInt(2); @@ -19703,6 +19707,10 @@ ${formatDisplay(all, fmt)}`); if (!isBytes8(item)) throw new Error("Uint8Array expected"); } + function abool2(title, value) { + if (typeof value !== "boolean") + throw new Error(`${title} must be valid boolean, got "${value}".`); + } var hexes4 = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0")); function bytesToHex3(bytes5) { abytes2(bytes5); @@ -19812,6 +19820,14 @@ ${formatDisplay(all, fmt)}`); throw new Error(`utf8ToBytes expected string, got ${typeof str2}`); return new Uint8Array(new TextEncoder().encode(str2)); } + var isPosBig2 = (n) => typeof n === "bigint" && _0n10 <= n; + function inRange2(n, min, max2) { + return isPosBig2(n) && isPosBig2(min) && isPosBig2(max2) && min <= n && n < max2; + } + function aInRange2(title, n, min, max2) { + if (!inRange2(n, min, max2)) + throw new Error(`expected valid ${title}: ${min} <= n < ${max2}, got ${typeof n} ${n}`); + } function bitLen2(n) { let len; for (len = 0; n > _0n10; n >>= _1n10, len += 1) @@ -19905,12 +19921,27 @@ ${formatDisplay(all, fmt)}`); checkField(fieldName, type, true); return object; } + var notImplemented2 = () => { + throw new Error("not implemented"); + }; + exports2.notImplemented = notImplemented2; + function memoized2(fn2) { + const map2 = /* @__PURE__ */ new WeakMap(); + return (arg, ...args) => { + const val = map2.get(arg); + if (val !== void 0) + return val; + const computed = fn2(arg, ...args); + map2.set(arg, computed); + return computed; + }; + } } }); - // ../../node_modules/@noble/curves/abstract/modular.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/modular.js var require_modular = __commonJS({ - "../../node_modules/@noble/curves/abstract/modular.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/modular.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.isNegativeLE = void 0; @@ -19924,6 +19955,7 @@ ${formatDisplay(all, fmt)}`); exports2.FpPow = FpPow2; exports2.FpInvertBatch = FpInvertBatch2; exports2.FpDiv = FpDiv; + exports2.FpLegendre = FpLegendre; exports2.FpIsSquare = FpIsSquare; exports2.nLength = nLength2; exports2.Field = Field2; @@ -20128,10 +20160,14 @@ ${formatDisplay(all, fmt)}`); function FpDiv(f10, lhs, rhs) { return f10.mul(lhs, typeof rhs === "bigint" ? invert3(rhs, f10.ORDER) : f10.inv(rhs)); } + function FpLegendre(order) { + const legendreConst = (order - _1n10) / _2n8; + return (f10, x) => f10.pow(x, legendreConst); + } function FpIsSquare(f10) { - const legendreConst = (f10.ORDER - _1n10) / _2n8; + const legendre = FpLegendre(f10.ORDER); return (x) => { - const p = f10.pow(x, legendreConst); + const p = legendre(f10, x); return f10.eql(p, f10.ZERO) || f10.eql(p, f10.ONE); }; } @@ -20231,9 +20267,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/curve.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/curve.js var require_curve = __commonJS({ - "../../node_modules/@noble/curves/abstract/curve.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/curve.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.wNAF = wNAF2; @@ -20242,12 +20278,19 @@ ${formatDisplay(all, fmt)}`); var utils_js_1 = require_utils2(); var _0n10 = BigInt(0); var _1n10 = BigInt(1); + var pointPrecomputes3 = /* @__PURE__ */ new WeakMap(); + var pointWindowSizes2 = /* @__PURE__ */ new WeakMap(); function wNAF2(c, bits2) { const constTimeNegate = (condition, item) => { const neg3 = item.negate(); return condition ? neg3 : item; }; + const validateW = (W) => { + if (!Number.isSafeInteger(W) || W <= 0 || W > bits2) + throw new Error(`Wrong window size=${W}, should be [1..${bits2}]`); + }; const opts = (W) => { + validateW(W); const windows = Math.ceil(bits2 / W) + 1; const windowSize = 2 ** (W - 1); return { windows, windowSize }; @@ -20308,16 +20351,20 @@ ${formatDisplay(all, fmt)}`); } return { p, f: f10 }; }, - wNAFCached(P, precomputesMap, n, transform) { - const W = P._WINDOW_SIZE || 1; - let comp = precomputesMap.get(P); + wNAFCached(P, n, transform) { + const W = pointWindowSizes2.get(P) || 1; + let comp = pointPrecomputes3.get(P); if (!comp) { comp = this.precomputeWindow(P, W); - if (W !== 1) { - precomputesMap.set(P, transform(comp)); - } + if (W !== 1) + pointPrecomputes3.set(P, transform(comp)); } return this.wNAF(W, comp, n); + }, + setWindowSize(P, W) { + validateW(W); + pointWindowSizes2.set(P, W); + pointPrecomputes3.delete(P); } }; } @@ -20341,9 +20388,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/weierstrass.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/weierstrass.js var require_weierstrass = __commonJS({ - "../../node_modules/@noble/curves/abstract/weierstrass.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/weierstrass.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DER = void 0; @@ -20355,6 +20402,12 @@ ${formatDisplay(all, fmt)}`); var mod3 = require_modular(); var ut = require_utils2(); var utils_js_1 = require_utils2(); + function validateSigVerOpts2(opts) { + if (opts.lowS !== void 0) + (0, utils_js_1.abool)("lowS", opts.lowS); + if (opts.prehash !== void 0) + (0, utils_js_1.abool)("prehash", opts.prehash); + } function validatePointOpts2(curve) { const opts = (0, curve_js_1.validateBasic)(curve); ut.validateObject(opts, { @@ -20458,14 +20511,10 @@ ${formatDisplay(all, fmt)}`); if (!Fp3.eql(Fp3.sqr(CURVE2.Gy), weierstrassEquation(CURVE2.Gx))) throw new Error("bad generator point: equation left != right"); function isWithinCurveOrder2(num) { - return typeof num === "bigint" && _0n10 < num && num < CURVE2.n; - } - function assertGE(num) { - if (!isWithinCurveOrder2(num)) - throw new Error("Expected valid bigint: 0 < bigint < curve.n"); + return ut.inRange(num, _1n10, CURVE2.n); } function normPrivateKeyToScalar(key2) { - const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n } = CURVE2; + const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N11 } = CURVE2; if (lengths && typeof key2 !== "bigint") { if (ut.isBytes(key2)) key2 = ut.bytesToHex(key2); @@ -20480,15 +20529,47 @@ ${formatDisplay(all, fmt)}`); throw new Error(`private key must be ${nByteLength} bytes, hex or bigint, not ${typeof key2}`); } if (wrapPrivateKey) - num = mod3.mod(num, n); - assertGE(num); + num = mod3.mod(num, N11); + ut.aInRange("private key", num, _1n10, N11); return num; } - const pointPrecomputes2 = /* @__PURE__ */ new Map(); function assertPrjPoint(other) { if (!(other instanceof Point4)) throw new Error("ProjectivePoint expected"); } + const toAffineMemo = (0, utils_js_1.memoized)((p, iz2) => { + const { px: x, py: y, pz: z } = p; + if (Fp3.eql(z, Fp3.ONE)) + return { x, y }; + const is0 = p.is0(); + if (iz2 == null) + iz2 = is0 ? Fp3.ONE : Fp3.inv(z); + const ax2 = Fp3.mul(x, iz2); + const ay2 = Fp3.mul(y, iz2); + const zz2 = Fp3.mul(z, iz2); + if (is0) + return { x: Fp3.ZERO, y: Fp3.ZERO }; + if (!Fp3.eql(zz2, Fp3.ONE)) + throw new Error("invZ was invalid"); + return { x: ax2, y: ay2 }; + }); + const assertValidMemo = (0, utils_js_1.memoized)((p) => { + if (p.is0()) { + if (CURVE2.allowInfinityPoint && !Fp3.is0(p.py)) + return; + throw new Error("bad point: ZERO"); + } + const { x, y } = p.toAffine(); + if (!Fp3.isValid(x) || !Fp3.isValid(y)) + throw new Error("bad point: x or y not FE"); + const left = Fp3.sqr(y); + const right = weierstrassEquation(x); + if (!Fp3.eql(left, right)) + throw new Error("bad point: equation left != right"); + if (!p.isTorsionFree()) + throw new Error("bad point: not in prime-order subgroup"); + return true; + }); class Point4 { constructor(px2, py2, pz2) { this.px = px2; @@ -20500,6 +20581,7 @@ ${formatDisplay(all, fmt)}`); throw new Error("y required"); if (pz2 == null || !Fp3.isValid(pz2)) throw new Error("z required"); + Object.freeze(this); } static fromAffine(p) { const { x, y } = p || {}; @@ -20531,24 +20613,10 @@ ${formatDisplay(all, fmt)}`); return Point4.BASE.multiply(normPrivateKeyToScalar(privateKey)); } _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes2.delete(this); + wnaf.setWindowSize(this, windowSize); } assertValidity() { - if (this.is0()) { - if (CURVE2.allowInfinityPoint && !Fp3.is0(this.py)) - return; - throw new Error("bad point: ZERO"); - } - const { x, y } = this.toAffine(); - if (!Fp3.isValid(x) || !Fp3.isValid(y)) - throw new Error("bad point: x or y not FE"); - const left = Fp3.sqr(y); - const right = weierstrassEquation(x); - if (!Fp3.eql(left, right)) - throw new Error("bad point: equation left != right"); - if (!this.isTorsionFree()) - throw new Error("bad point: not in prime-order subgroup"); + assertValidMemo(this); } hasEvenY() { const { y } = this.toAffine(); @@ -20661,22 +20729,19 @@ ${formatDisplay(all, fmt)}`); return this.equals(Point4.ZERO); } wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes2, n, (comp) => { - const toInv = Fp3.invertBatch(comp.map((p) => p.pz)); - return comp.map((p, i) => p.toAffine(toInv[i])).map(Point4.fromAffine); - }); + return wnaf.wNAFCached(this, n, Point4.normalizeZ); } - multiplyUnsafe(n) { + multiplyUnsafe(sc2) { + ut.aInRange("scalar", sc2, _0n10, CURVE2.n); const I = Point4.ZERO; - if (n === _0n10) + if (sc2 === _0n10) return I; - assertGE(n); - if (n === _1n10) + if (sc2 === _1n10) return this; const { endo } = CURVE2; if (!endo) - return wnaf.unsafeLadder(this, n); - let { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(n); + return wnaf.unsafeLadder(this, sc2); + let { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(sc2); let k1p = I; let k2p = I; let d = this; @@ -20697,12 +20762,11 @@ ${formatDisplay(all, fmt)}`); return k1p.add(k2p); } multiply(scalar) { - assertGE(scalar); - let n = scalar; + const { endo, n: N11 } = CURVE2; + ut.aInRange("scalar", scalar, _1n10, N11); let point3, fake; - const { endo } = CURVE2; if (endo) { - const { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(n); + const { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(scalar); let { p: k1p, f: f1p } = this.wNAF(k12); let { p: k2p, f: f2p } = this.wNAF(k22); k1p = wnaf.constTimeNegate(k1neg, k1p); @@ -20711,7 +20775,7 @@ ${formatDisplay(all, fmt)}`); point3 = k1p.add(k2p); fake = f1p.add(f2p); } else { - const { p, f: f10 } = this.wNAF(n); + const { p, f: f10 } = this.wNAF(scalar); point3 = p; fake = f10; } @@ -20724,18 +20788,7 @@ ${formatDisplay(all, fmt)}`); return sum.is0() ? void 0 : sum; } toAffine(iz2) { - const { px: x, py: y, pz: z } = this; - const is0 = this.is0(); - if (iz2 == null) - iz2 = is0 ? Fp3.ONE : Fp3.inv(z); - const ax2 = Fp3.mul(x, iz2); - const ay2 = Fp3.mul(y, iz2); - const zz2 = Fp3.mul(z, iz2); - if (is0) - return { x: Fp3.ZERO, y: Fp3.ZERO }; - if (!Fp3.eql(zz2, Fp3.ONE)) - throw new Error("invZ was invalid"); - return { x: ax2, y: ay2 }; + return toAffineMemo(this, iz2); } isTorsionFree() { const { h: cofactor, isTorsionFree } = CURVE2; @@ -20754,10 +20807,12 @@ ${formatDisplay(all, fmt)}`); return this.multiplyUnsafe(CURVE2.h); } toRawBytes(isCompressed = true) { + (0, utils_js_1.abool)("isCompressed", isCompressed); this.assertValidity(); return toBytes4(Point4, this, isCompressed); } toHex(isCompressed = true) { + (0, utils_js_1.abool)("isCompressed", isCompressed); return ut.bytesToHex(this.toRawBytes(isCompressed)); } } @@ -20791,9 +20846,6 @@ ${formatDisplay(all, fmt)}`); const { Fp: Fp3, n: CURVE_ORDER } = CURVE2; const compressedLen = Fp3.BYTES + 1; const uncompressedLen = 2 * Fp3.BYTES + 1; - function isValidFieldElement2(num) { - return _0n10 < num && num < Fp3.ORDER; - } function modN(a) { return mod3.mod(a, CURVE_ORDER); } @@ -20806,6 +20858,7 @@ ${formatDisplay(all, fmt)}`); const a = point3.toAffine(); const x = Fp3.toBytes(a.x); const cat = ut.concatBytes; + (0, utils_js_1.abool)("isCompressed", isCompressed); if (isCompressed) { return cat(Uint8Array.from([point3.hasEvenY() ? 2 : 3]), x); } else { @@ -20818,7 +20871,7 @@ ${formatDisplay(all, fmt)}`); const tail = bytes5.subarray(1); if (len === compressedLen && (head === 2 || head === 3)) { const x = ut.bytesToNumberBE(tail); - if (!isValidFieldElement2(x)) + if (!ut.inRange(x, _1n10, Fp3.ORDER)) throw new Error("Point is not on curve"); const y22 = weierstrassEquation(x); let y; @@ -20868,10 +20921,8 @@ ${formatDisplay(all, fmt)}`); return new Signature3(r10, s); } assertValidity() { - if (!isWithinCurveOrder2(this.r)) - throw new Error("r must be 0 < r < CURVE.n"); - if (!isWithinCurveOrder2(this.s)) - throw new Error("s must be 0 < s < CURVE.n"); + ut.aInRange("r", this.r, _1n10, CURVE_ORDER); + ut.aInRange("s", this.s, _1n10, CURVE_ORDER); } addRecoveryBit(recovery) { return new Signature3(this.r, this.s, recovery); @@ -20967,10 +21018,7 @@ ${formatDisplay(all, fmt)}`); }; const ORDER_MASK = ut.bitMask(CURVE2.nBitLength); function int2octets2(num) { - if (typeof num !== "bigint") - throw new Error("bigint expected"); - if (!(_0n10 <= num && num < ORDER_MASK)) - throw new Error(`bigint expected < 2^${CURVE2.nBitLength}`); + ut.aInRange(`num < 2^${CURVE2.nBitLength}`, num, _0n10, ORDER_MASK); return ut.numberToBytesBE(num, CURVE2.nByteLength); } function prepSig(msgHash, privateKey, opts = defaultSigOpts) { @@ -20981,6 +21029,7 @@ ${formatDisplay(all, fmt)}`); if (lowS == null) lowS = true; msgHash = (0, utils_js_1.ensureBytes)("msgHash", msgHash); + validateSigVerOpts2(opts); if (prehash) msgHash = (0, utils_js_1.ensureBytes)("prehashed msgHash", hash8(msgHash)); const h1int = bits2int_modN(msgHash); @@ -21029,6 +21078,7 @@ ${formatDisplay(all, fmt)}`); publicKey = (0, utils_js_1.ensureBytes)("publicKey", publicKey); if ("strict" in opts) throw new Error("options.strict was renamed to lowS"); + validateSigVerOpts2(opts); const { lowS, prehash } = opts; let _sig = void 0; let P; @@ -21181,9 +21231,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/_shortw_utils.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/_shortw_utils.js var require_shortw_utils = __commonJS({ - "../../node_modules/@noble/curves/_shortw_utils.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/_shortw_utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getHash = getHash2; @@ -21205,9 +21255,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/hash-to-curve.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/hash-to-curve.js var require_hash_to_curve = __commonJS({ - "../../node_modules/@noble/curves/abstract/hash-to-curve.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/hash-to-curve.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.expand_message_xmd = expand_message_xmd; @@ -21354,9 +21404,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/secp256k1.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/secp256k1.js var require_secp256k1 = __commonJS({ - "../../node_modules/@noble/curves/secp256k1.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/secp256k1.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.encodeToCurve = exports2.hashToCurve = exports2.schnorr = exports2.secp256k1 = void 0; @@ -21431,8 +21481,6 @@ ${formatDisplay(all, fmt)}`); } }, sha256_1.sha256); var _0n10 = BigInt(0); - var fe = (x) => typeof x === "bigint" && _0n10 < x && x < secp256k1P2; - var ge = (x) => typeof x === "bigint" && _0n10 < x && x < secp256k1N2; var TAGGED_HASH_PREFIXES2 = {}; function taggedHash(tag, ...messages) { let tagP = TAGGED_HASH_PREFIXES2[tag]; @@ -21456,8 +21504,7 @@ ${formatDisplay(all, fmt)}`); return { scalar, bytes: pointToBytes(p) }; } function lift_x(x) { - if (!fe(x)) - throw new Error("bad x: need 0 < x < p"); + (0, utils_js_1.aInRange)("x", x, _1n10, secp256k1P2); const xx2 = modP(x * x); const c = modP(xx2 * x + BigInt(7)); let y = sqrtMod3(c); @@ -21467,8 +21514,9 @@ ${formatDisplay(all, fmt)}`); p.assertValidity(); return p; } + var num = utils_js_1.bytesToNumberBE; function challenge(...args) { - return modN((0, utils_js_1.bytesToNumberBE)(taggedHash("BIP0340/challenge", ...args))); + return modN(num(taggedHash("BIP0340/challenge", ...args))); } function schnorrGetPublicKey(privateKey) { return schnorrGetExtPubKey(privateKey).bytes; @@ -21477,9 +21525,9 @@ ${formatDisplay(all, fmt)}`); const m = (0, utils_js_1.ensureBytes)("message", message); const { bytes: px2, scalar: d } = schnorrGetExtPubKey(privateKey); const a = (0, utils_js_1.ensureBytes)("auxRand", auxRand, 32); - const t = numTo32b2(d ^ (0, utils_js_1.bytesToNumberBE)(taggedHash("BIP0340/aux", a))); + const t = numTo32b2(d ^ num(taggedHash("BIP0340/aux", a))); const rand2 = taggedHash("BIP0340/nonce", t, px2, m); - const k_2 = modN((0, utils_js_1.bytesToNumberBE)(rand2)); + const k_2 = modN(num(rand2)); if (k_2 === _0n10) throw new Error("sign failed: k is zero"); const { bytes: rx2, scalar: k } = schnorrGetExtPubKey(k_2); @@ -21496,12 +21544,12 @@ ${formatDisplay(all, fmt)}`); const m = (0, utils_js_1.ensureBytes)("message", message); const pub = (0, utils_js_1.ensureBytes)("publicKey", publicKey, 32); try { - const P = lift_x((0, utils_js_1.bytesToNumberBE)(pub)); - const r10 = (0, utils_js_1.bytesToNumberBE)(sig.subarray(0, 32)); - if (!fe(r10)) + const P = lift_x(num(pub)); + const r10 = num(sig.subarray(0, 32)); + if (!(0, utils_js_1.inRange)(r10, _1n10, secp256k1P2)) return false; - const s = (0, utils_js_1.bytesToNumberBE)(sig.subarray(32, 64)); - if (!ge(s)) + const s = num(sig.subarray(32, 64)); + if (!(0, utils_js_1.inRange)(s, _1n10, secp256k1N2)) return false; const e = challenge(numTo32b2(r10), pointToBytes(P), m); const R = GmulAdd(P, s, modN(-e)); @@ -21985,9 +22033,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/edwards.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/edwards.js var require_edwards = __commonJS({ - "../../node_modules/@noble/curves/abstract/edwards.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/edwards.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.twistedEdwards = twistedEdwards; @@ -22029,40 +22077,63 @@ ${formatDisplay(all, fmt)}`); }); const adjustScalarBytes = CURVE2.adjustScalarBytes || ((bytes5) => bytes5); const domain = CURVE2.domain || ((data, ctx, phflag) => { + (0, utils_js_1.abool)("phflag", phflag); if (ctx.length || phflag) throw new Error("Contexts/pre-hash are not supported"); return data; }); - const inBig = (n) => typeof n === "bigint" && _0n10 < n; - const inRange = (n, max2) => inBig(n) && inBig(max2) && n < max2; - const in0MaskRange = (n) => n === _0n10 || inRange(n, MASK); - function assertInRange(n, max2) { - if (inRange(n, max2)) - return n; - throw new Error(`Expected valid scalar < ${max2}, got ${typeof n} ${n}`); - } - function assertGE0(n) { - return n === _0n10 ? n : assertInRange(n, CURVE_ORDER); - } - const pointPrecomputes2 = /* @__PURE__ */ new Map(); - function isPoint(other) { + function aCoordinate(title, n) { + ut.aInRange("coordinate " + title, n, _0n10, MASK); + } + function assertPoint(other) { if (!(other instanceof Point4)) throw new Error("ExtendedPoint expected"); } + const toAffineMemo = (0, utils_js_1.memoized)((p, iz2) => { + const { ex: x, ey: y, ez: z } = p; + const is0 = p.is0(); + if (iz2 == null) + iz2 = is0 ? _8n3 : Fp3.inv(z); + const ax2 = modP(x * iz2); + const ay2 = modP(y * iz2); + const zz2 = modP(z * iz2); + if (is0) + return { x: _0n10, y: _1n10 }; + if (zz2 !== _1n10) + throw new Error("invZ was invalid"); + return { x: ax2, y: ay2 }; + }); + const assertValidMemo = (0, utils_js_1.memoized)((p) => { + const { a, d } = CURVE2; + if (p.is0()) + throw new Error("bad point: ZERO"); + const { ex: X, ey: Y, ez: Z10, et: T } = p; + const X22 = modP(X * X); + const Y22 = modP(Y * Y); + const Z22 = modP(Z10 * Z10); + const Z42 = modP(Z22 * Z22); + const aX2 = modP(X22 * a); + const left = modP(Z22 * modP(aX2 + Y22)); + const right = modP(Z42 + modP(d * modP(X22 * Y22))); + if (left !== right) + throw new Error("bad point: equation left != right (1)"); + const XY2 = modP(X * Y); + const ZT2 = modP(Z10 * T); + if (XY2 !== ZT2) + throw new Error("bad point: equation left != right (2)"); + return true; + }); class Point4 { constructor(ex2, ey2, ez2, et) { this.ex = ex2; this.ey = ey2; this.ez = ez2; this.et = et; - if (!in0MaskRange(ex2)) - throw new Error("x required"); - if (!in0MaskRange(ey2)) - throw new Error("y required"); - if (!in0MaskRange(ez2)) - throw new Error("z required"); - if (!in0MaskRange(et)) - throw new Error("t required"); + aCoordinate("x", ex2); + aCoordinate("y", ey2); + aCoordinate("z", ez2); + aCoordinate("t", et); + Object.freeze(this); } get x() { return this.toAffine().x; @@ -22074,8 +22145,8 @@ ${formatDisplay(all, fmt)}`); if (p instanceof Point4) throw new Error("extended point not allowed"); const { x, y } = p || {}; - if (!in0MaskRange(x) || !in0MaskRange(y)) - throw new Error("invalid affine point"); + aCoordinate("x", x); + aCoordinate("y", y); return new Point4(x, y, _1n10, modP(x * y)); } static normalizeZ(points) { @@ -22083,30 +22154,13 @@ ${formatDisplay(all, fmt)}`); return points.map((p, i) => p.toAffine(toInv[i])).map(Point4.fromAffine); } _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes2.delete(this); + wnaf.setWindowSize(this, windowSize); } assertValidity() { - const { a, d } = CURVE2; - if (this.is0()) - throw new Error("bad point: ZERO"); - const { ex: X, ey: Y, ez: Z10, et: T } = this; - const X22 = modP(X * X); - const Y22 = modP(Y * Y); - const Z22 = modP(Z10 * Z10); - const Z42 = modP(Z22 * Z22); - const aX2 = modP(X22 * a); - const left = modP(Z22 * modP(aX2 + Y22)); - const right = modP(Z42 + modP(d * modP(X22 * Y22))); - if (left !== right) - throw new Error("bad point: equation left != right (1)"); - const XY2 = modP(X * Y); - const ZT2 = modP(Z10 * T); - if (XY2 !== ZT2) - throw new Error("bad point: equation left != right (2)"); + assertValidMemo(this); } equals(other) { - isPoint(other); + assertPoint(other); const { ex: X12, ey: Y12, ez: Z12 } = this; const { ex: X22, ey: Y22, ez: Z22 } = other; const X1Z2 = modP(X12 * Z22); @@ -22140,7 +22194,7 @@ ${formatDisplay(all, fmt)}`); return new Point4(X32, Y32, Z32, T32); } add(other) { - isPoint(other); + assertPoint(other); const { a, d } = CURVE2; const { ex: X12, ey: Y12, ez: Z12, et: T12 } = this; const { ex: X22, ey: Y22, ez: Z22, et: T22 } = other; @@ -22179,14 +22233,17 @@ ${formatDisplay(all, fmt)}`); return this.add(other.negate()); } wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes2, n, Point4.normalizeZ); + return wnaf.wNAFCached(this, n, Point4.normalizeZ); } multiply(scalar) { - const { p, f: f10 } = this.wNAF(assertInRange(scalar, CURVE_ORDER)); + const n = scalar; + ut.aInRange("scalar", n, _1n10, CURVE_ORDER); + const { p, f: f10 } = this.wNAF(n); return Point4.normalizeZ([p, f10])[0]; } multiplyUnsafe(scalar) { - let n = assertGE0(scalar); + const n = scalar; + ut.aInRange("scalar", n, _0n10, CURVE_ORDER); if (n === _0n10) return I; if (this.equals(I) || n === _1n10) @@ -22202,18 +22259,7 @@ ${formatDisplay(all, fmt)}`); return wnaf.unsafeLadder(this, CURVE_ORDER).is0(); } toAffine(iz2) { - const { ex: x, ey: y, ez: z } = this; - const is0 = this.is0(); - if (iz2 == null) - iz2 = is0 ? _8n3 : Fp3.inv(z); - const ax2 = modP(x * iz2); - const ay2 = modP(y * iz2); - const zz2 = modP(z * iz2); - if (is0) - return { x: _0n10, y: _1n10 }; - if (zz2 !== _1n10) - throw new Error("invZ was invalid"); - return { x: ax2, y: ay2 }; + return toAffineMemo(this, iz2); } clearCofactor() { const { h: cofactor2 } = CURVE2; @@ -22225,17 +22271,13 @@ ${formatDisplay(all, fmt)}`); const { d, a } = CURVE2; const len = Fp3.BYTES; hex8 = (0, utils_js_1.ensureBytes)("pointHex", hex8, len); + (0, utils_js_1.abool)("zip215", zip215); const normed = hex8.slice(); const lastByte = hex8[len - 1]; normed[len - 1] = lastByte & ~128; const y = ut.bytesToNumberLE(normed); - if (y === _0n10) { - } else { - if (zip215) - assertInRange(y, MASK); - else - assertInRange(y, Fp3.ORDER); - } + const max2 = zip215 ? MASK : Fp3.ORDER; + ut.aInRange("pointHex.y", y, _0n10, max2); const y22 = modP(y * y); const u = modP(y22 - _1n10); const v = modP(d * y22 - a); @@ -22300,7 +22342,7 @@ ${formatDisplay(all, fmt)}`); const R = G.multiply(r10).toRawBytes(); const k = hashDomainToScalar(options.context, R, pointBytes, msg); const s = modN(r10 + k * scalar); - assertGE0(s); + ut.aInRange("signature.s", s, _0n10, CURVE_ORDER); const res = ut.concatBytes(R, ut.numberToBytesLE(s, Fp3.BYTES)); return (0, utils_js_1.ensureBytes)("result", res, nByteLength * 2); } @@ -22310,6 +22352,8 @@ ${formatDisplay(all, fmt)}`); const len = Fp3.BYTES; sig = (0, utils_js_1.ensureBytes)("signature", sig, 2 * len); msg = (0, utils_js_1.ensureBytes)("message", msg); + if (zip215 !== void 0) + (0, utils_js_1.abool)("zip215", zip215); if (prehash) msg = prehash(msg); const s = ut.bytesToNumberLE(sig.slice(len, 2 * len)); @@ -22349,9 +22393,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/abstract/montgomery.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/montgomery.js var require_montgomery = __commonJS({ - "../../node_modules/@noble/curves/abstract/montgomery.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/abstract/montgomery.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.montgomery = montgomery; @@ -22387,15 +22431,11 @@ ${formatDisplay(all, fmt)}`); x_3 = modP(x_3 + dummy); return [x_2, x_3]; } - function assertFieldElement(n) { - if (typeof n === "bigint" && _0n10 <= n && n < P) - return n; - throw new Error("Expected valid scalar 0 < scalar < CURVE.P"); - } const a24 = (CURVE2.a - BigInt(2)) / BigInt(4); - function montgomeryLadder(pointU, scalar) { - const u = assertFieldElement(pointU); - const k = assertFieldElement(scalar); + function montgomeryLadder(u, scalar) { + (0, utils_js_1.aInRange)("u", u, _0n10, P); + (0, utils_js_1.aInRange)("scalar", scalar, _0n10, P); + const k = scalar; const x_1 = u; let x_2 = _1n10; let z_2 = _0n10; @@ -22478,9 +22518,9 @@ ${formatDisplay(all, fmt)}`); } }); - // ../../node_modules/@noble/curves/ed25519.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/ed25519.js var require_ed25519 = __commonJS({ - "../../node_modules/@noble/curves/ed25519.js"(exports2) { + "../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/ed25519.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.hash_to_ristretto255 = exports2.hashToRistretto255 = exports2.RistrettoPoint = exports2.encodeToCurve = exports2.hashToCurve = exports2.edwardsToMontgomery = exports2.x25519 = exports2.ed25519ph = exports2.ed25519ctx = exports2.ed25519 = exports2.ED25519_TORSION_SUBGROUP = void 0; @@ -26122,7 +26162,7 @@ ${formatDisplay(all, fmt)}`); var bytes_1 = require_lib2(); var logger_1 = require_lib(); var _version_1 = require_version4(); - var logger46 = new logger_1.Logger(_version_1.version); + var logger42 = new logger_1.Logger(_version_1.version); var UnicodeNormalizationForm4; (function(UnicodeNormalizationForm5) { UnicodeNormalizationForm5["current"] = ""; @@ -26142,7 +26182,7 @@ ${formatDisplay(all, fmt)}`); Utf8ErrorReason3["OVERLONG"] = "overlong representation"; })(Utf8ErrorReason2 = exports2.Utf8ErrorReason || (exports2.Utf8ErrorReason = {})); function errorFunc(reason, offset, bytes5, output4, badCodepoint) { - return logger46.throwArgumentError("invalid codepoint at offset " + offset + "; " + reason, "bytes", bytes5); + return logger42.throwArgumentError("invalid codepoint at offset " + offset + "; " + reason, "bytes", bytes5); } function ignoreFunc(reason, offset, bytes5, output4, badCodepoint) { if (reason === Utf8ErrorReason2.BAD_PREFIX || reason === Utf8ErrorReason2.UNEXPECTED_CONTINUE) { @@ -26245,7 +26285,7 @@ ${formatDisplay(all, fmt)}`); form = UnicodeNormalizationForm4.current; } if (form != UnicodeNormalizationForm4.current) { - logger46.checkNormalize(); + logger42.checkNormalize(); str2 = str2.normalize(form); } var result = []; @@ -26601,7 +26641,7 @@ ${formatDisplay(all, fmt)}`); var require_utils3 = __commonJS({ "../../node_modules/@reef-chain/evm-provider/utils.js"(exports2) { "use strict"; - var __awaiter18 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -26695,7 +26735,7 @@ ${formatDisplay(all, fmt)}`); }); } exports2.handleTxResponse = handleTxResponse; - function toBN(bigNumberis = 0) { + function toBN2(bigNumberis = 0) { if ((0, util_1.isU8a)(bigNumberis)) { return (0, util_1.u8aToBn)(bigNumberis); } @@ -26711,7 +26751,7 @@ ${formatDisplay(all, fmt)}`); } return new bn_js_1.default(bigNumberis); } - exports2.toBN = toBN; + exports2.toBN = toBN2; function dataToString(bytes5) { if ((0, util_1.isBuffer)(bytes5)) { return (0, util_1.u8aToHex)((0, util_1.bufferToU8a)(bytes5)); @@ -26744,7 +26784,7 @@ ${formatDisplay(all, fmt)}`); } exports2.isMainnet = isMainnet; function resolveEvmAddress(provider, nativeAddressOrName) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { const resolved = yield nativeAddressOrName; if (resolved.length === 42) { return resolved; @@ -26755,7 +26795,7 @@ ${formatDisplay(all, fmt)}`); } exports2.resolveEvmAddress = resolveEvmAddress; function resolveAddress(provider, evmAddressOrName) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { const resolved = yield evmAddressOrName; if (isSubstrateAddress2(resolved)) { return resolved; @@ -26766,7 +26806,7 @@ ${formatDisplay(all, fmt)}`); } exports2.resolveAddress = resolveAddress; function buildPayload(provider, signerAddress, tx2) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { try { const lastHeader = yield provider.api.rpc.chain.getHeader(); const blockNumber = provider.api.registry.createType("BlockNumber", lastHeader.number.toNumber()); @@ -26777,7 +26817,7 @@ ${formatDisplay(all, fmt)}`); const resources = yield provider.estimateResources(tx2); const gasLimit = resources.gas.mul(31).div(10); const storageLimit = resources.storage.mul(31).div(10); - const extrinsic = provider.api.tx.evm.call(tx2.to, tx2.data, toBN(tx2.value), toBN(gasLimit), toBN(storageLimit.isNegative() ? 0 : storageLimit)); + const extrinsic = provider.api.tx.evm.call(tx2.to, tx2.data, toBN2(tx2.value), toBN2(gasLimit), toBN2(storageLimit.isNegative() ? 0 : storageLimit)); const method = provider.api.createType("Call", extrinsic); const era = provider.api.registry.createType("ExtrinsicEra", { current: lastHeader.number.toNumber(), @@ -26817,7 +26857,7 @@ ${formatDisplay(all, fmt)}`); } exports2.buildPayload = buildPayload; function sendSignedTransaction(provider, signerAddress, tx2, payload, extrinsic, signature2) { - return __awaiter18(this, void 0, void 0, function* () { + return __awaiter16(this, void 0, void 0, function* () { extrinsic.addSignature(signerAddress, signature2, payload); const txResult = yield new Promise((resolve, reject) => { extrinsic.send((result) => { @@ -26850,6 +26890,255 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@ethersproject/properties/lib/_version.js + var require_version5 = __commonJS({ + "../../node_modules/@ethersproject/properties/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "properties/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/properties/lib/index.js + var require_lib7 = __commonJS({ + "../../node_modules/@ethersproject/properties/lib/index.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Description = exports2.deepCopy = exports2.shallowCopy = exports2.checkProperties = exports2.resolveProperties = exports2.getStatic = exports2.defineReadOnly = void 0; + var logger_1 = require_lib(); + var _version_1 = require_version5(); + var logger42 = new logger_1.Logger(_version_1.version); + function defineReadOnly23(object, name6, value) { + Object.defineProperty(object, name6, { + enumerable: true, + value, + writable: false + }); + } + exports2.defineReadOnly = defineReadOnly23; + function getStatic7(ctor, key2) { + for (var i = 0; i < 32; i++) { + if (ctor[key2]) { + return ctor[key2]; + } + if (!ctor.prototype || typeof ctor.prototype !== "object") { + break; + } + ctor = Object.getPrototypeOf(ctor.prototype).constructor; + } + return null; + } + exports2.getStatic = getStatic7; + function resolveProperties7(object) { + return __awaiter16(this, void 0, void 0, function() { + var promises, results; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + promises = Object.keys(object).map(function(key2) { + var value = object[key2]; + return Promise.resolve(value).then(function(v) { + return { key: key2, value: v }; + }); + }); + return [4, Promise.all(promises)]; + case 1: + results = _a2.sent(); + return [2, results.reduce(function(accum, result) { + accum[result.key] = result.value; + return accum; + }, {})]; + } + }); + }); + } + exports2.resolveProperties = resolveProperties7; + function checkProperties4(object, properties) { + if (!object || typeof object !== "object") { + logger42.throwArgumentError("invalid object", "object", object); + } + Object.keys(object).forEach(function(key2) { + if (!properties[key2]) { + logger42.throwArgumentError("invalid object key - " + key2, "transaction:" + key2, object); + } + }); + } + exports2.checkProperties = checkProperties4; + function shallowCopy8(object) { + var result = {}; + for (var key2 in object) { + result[key2] = object[key2]; + } + return result; + } + exports2.shallowCopy = shallowCopy8; + var opaque = { bigint: true, boolean: true, "function": true, number: true, string: true }; + function _isFrozen(object) { + if (object === void 0 || object === null || opaque[typeof object]) { + return true; + } + if (Array.isArray(object) || typeof object === "object") { + if (!Object.isFrozen(object)) { + return false; + } + var keys = Object.keys(object); + for (var i = 0; i < keys.length; i++) { + var value = null; + try { + value = object[keys[i]]; + } catch (error) { + continue; + } + if (!_isFrozen(value)) { + return false; + } + } + return true; + } + return logger42.throwArgumentError("Cannot deepCopy " + typeof object, "object", object); + } + function _deepCopy(object) { + if (_isFrozen(object)) { + return object; + } + if (Array.isArray(object)) { + return Object.freeze(object.map(function(item) { + return deepCopy9(item); + })); + } + if (typeof object === "object") { + var result = {}; + for (var key2 in object) { + var value = object[key2]; + if (value === void 0) { + continue; + } + defineReadOnly23(result, key2, deepCopy9(value)); + } + return result; + } + return logger42.throwArgumentError("Cannot deepCopy " + typeof object, "object", object); + } + function deepCopy9(object) { + return _deepCopy(object); + } + exports2.deepCopy = deepCopy9; + var Description5 = function() { + function Description6(info) { + for (var key2 in info) { + this[key2] = deepCopy9(info[key2]); + } + } + return Description6; + }(); + exports2.Description = Description5; + } + }); + // ../../node_modules/js-sha3/src/sha3.js var require_sha32 = __commonJS({ "../../node_modules/js-sha3/src/sha3.js"(exports2, module2) { @@ -27499,6 +27788,806 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@ethersproject/keccak256/lib/index.js + var require_lib8 = __commonJS({ + "../../node_modules/@ethersproject/keccak256/lib/index.js"(exports2) { + "use strict"; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.keccak256 = void 0; + var js_sha3_1 = __importDefault(require_sha32()); + var bytes_1 = require_lib2(); + function keccak25613(data) { + return "0x" + js_sha3_1.default.keccak_256((0, bytes_1.arrayify)(data)); + } + exports2.keccak256 = keccak25613; + } + }); + + // ../../node_modules/@ethersproject/rlp/lib/_version.js + var require_version6 = __commonJS({ + "../../node_modules/@ethersproject/rlp/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "rlp/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/rlp/lib/index.js + var require_lib9 = __commonJS({ + "../../node_modules/@ethersproject/rlp/lib/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decode = exports2.encode = void 0; + var bytes_1 = require_lib2(); + var logger_1 = require_lib(); + var _version_1 = require_version6(); + var logger42 = new logger_1.Logger(_version_1.version); + function arrayifyInteger(value) { + var result = []; + while (value) { + result.unshift(value & 255); + value >>= 8; + } + return result; + } + function unarrayifyInteger(data, offset, length) { + var result = 0; + for (var i = 0; i < length; i++) { + result = result * 256 + data[offset + i]; + } + return result; + } + function _encode2(object) { + if (Array.isArray(object)) { + var payload_1 = []; + object.forEach(function(child) { + payload_1 = payload_1.concat(_encode2(child)); + }); + if (payload_1.length <= 55) { + payload_1.unshift(192 + payload_1.length); + return payload_1; + } + var length_1 = arrayifyInteger(payload_1.length); + length_1.unshift(247 + length_1.length); + return length_1.concat(payload_1); + } + if (!(0, bytes_1.isBytesLike)(object)) { + logger42.throwArgumentError("RLP object must be BytesLike", "object", object); + } + var data = Array.prototype.slice.call((0, bytes_1.arrayify)(object)); + if (data.length === 1 && data[0] <= 127) { + return data; + } else if (data.length <= 55) { + data.unshift(128 + data.length); + return data; + } + var length = arrayifyInteger(data.length); + length.unshift(183 + length.length); + return length.concat(data); + } + function encode5(object) { + return (0, bytes_1.hexlify)(_encode2(object)); + } + exports2.encode = encode5; + function _decodeChildren(data, offset, childOffset, length) { + var result = []; + while (childOffset < offset + 1 + length) { + var decoded = _decode(data, childOffset); + result.push(decoded.result); + childOffset += decoded.consumed; + if (childOffset > offset + 1 + length) { + logger42.throwError("child data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + } + return { consumed: 1 + length, result }; + } + function _decode(data, offset) { + if (data.length === 0) { + logger42.throwError("data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + if (data[offset] >= 248) { + var lengthLength = data[offset] - 247; + if (offset + 1 + lengthLength > data.length) { + logger42.throwError("data short segment too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var length_2 = unarrayifyInteger(data, offset + 1, lengthLength); + if (offset + 1 + lengthLength + length_2 > data.length) { + logger42.throwError("data long segment too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length_2); + } else if (data[offset] >= 192) { + var length_3 = data[offset] - 192; + if (offset + 1 + length_3 > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + return _decodeChildren(data, offset, offset + 1, length_3); + } else if (data[offset] >= 184) { + var lengthLength = data[offset] - 183; + if (offset + 1 + lengthLength > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var length_4 = unarrayifyInteger(data, offset + 1, lengthLength); + if (offset + 1 + lengthLength + length_4 > data.length) { + logger42.throwError("data array too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var result = (0, bytes_1.hexlify)(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length_4)); + return { consumed: 1 + lengthLength + length_4, result }; + } else if (data[offset] >= 128) { + var length_5 = data[offset] - 128; + if (offset + 1 + length_5 > data.length) { + logger42.throwError("data too short", logger_1.Logger.errors.BUFFER_OVERRUN, {}); + } + var result = (0, bytes_1.hexlify)(data.slice(offset + 1, offset + 1 + length_5)); + return { consumed: 1 + length_5, result }; + } + return { consumed: 1, result: (0, bytes_1.hexlify)(data[offset]) }; + } + function decode4(data) { + var bytes5 = (0, bytes_1.arrayify)(data); + var decoded = _decode(bytes5, 0); + if (decoded.consumed !== bytes5.length) { + logger42.throwArgumentError("invalid rlp data", "data", data); + } + return decoded.result; + } + exports2.decode = decode4; + } + }); + + // ../../node_modules/@ethersproject/address/lib/_version.js + var require_version7 = __commonJS({ + "../../node_modules/@ethersproject/address/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "address/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/address/lib/index.js + var require_lib10 = __commonJS({ + "../../node_modules/@ethersproject/address/lib/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getCreate2Address = exports2.getContractAddress = exports2.getIcapAddress = exports2.isAddress = exports2.getAddress = void 0; + var bytes_1 = require_lib2(); + var bignumber_1 = require_lib3(); + var keccak256_1 = require_lib8(); + var rlp_1 = require_lib9(); + var logger_1 = require_lib(); + var _version_1 = require_version7(); + var logger42 = new logger_1.Logger(_version_1.version); + function getChecksumAddress(address) { + if (!(0, bytes_1.isHexString)(address, 20)) { + logger42.throwArgumentError("invalid address", "address", address); + } + address = address.toLowerCase(); + var chars2 = address.substring(2).split(""); + var expanded = new Uint8Array(40); + for (var i10 = 0; i10 < 40; i10++) { + expanded[i10] = chars2[i10].charCodeAt(0); + } + var hashed = (0, bytes_1.arrayify)((0, keccak256_1.keccak256)(expanded)); + for (var i10 = 0; i10 < 40; i10 += 2) { + if (hashed[i10 >> 1] >> 4 >= 8) { + chars2[i10] = chars2[i10].toUpperCase(); + } + if ((hashed[i10 >> 1] & 15) >= 8) { + chars2[i10 + 1] = chars2[i10 + 1].toUpperCase(); + } + } + return "0x" + chars2.join(""); + } + var MAX_SAFE_INTEGER2 = 9007199254740991; + function log10(x) { + if (Math.log10) { + return Math.log10(x); + } + return Math.log(x) / Math.LN10; + } + var ibanLookup = {}; + for (i = 0; i < 10; i++) { + ibanLookup[String(i)] = String(i); + } + var i; + for (i = 0; i < 26; i++) { + ibanLookup[String.fromCharCode(65 + i)] = String(10 + i); + } + var i; + var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER2)); + function ibanChecksum(address) { + address = address.toUpperCase(); + address = address.substring(4) + address.substring(0, 2) + "00"; + var expanded = address.split("").map(function(c) { + return ibanLookup[c]; + }).join(""); + while (expanded.length >= safeDigits) { + var block = expanded.substring(0, safeDigits); + expanded = parseInt(block, 10) % 97 + expanded.substring(block.length); + } + var checksum = String(98 - parseInt(expanded, 10) % 97); + while (checksum.length < 2) { + checksum = "0" + checksum; + } + return checksum; + } + function getAddress12(address) { + var result = null; + if (typeof address !== "string") { + logger42.throwArgumentError("invalid address", "address", address); + } + if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { + if (address.substring(0, 2) !== "0x") { + address = "0x" + address; + } + result = getChecksumAddress(address); + if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { + logger42.throwArgumentError("bad address checksum", "address", address); + } + } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { + if (address.substring(2, 4) !== ibanChecksum(address)) { + logger42.throwArgumentError("bad icap checksum", "address", address); + } + result = (0, bignumber_1._base36To16)(address.substring(4)); + while (result.length < 40) { + result = "0" + result; + } + result = getChecksumAddress("0x" + result); + } else { + logger42.throwArgumentError("invalid address", "address", address); + } + return result; + } + exports2.getAddress = getAddress12; + function isAddress2(address) { + try { + getAddress12(address); + return true; + } catch (error) { + } + return false; + } + exports2.isAddress = isAddress2; + function getIcapAddress2(address) { + var base36 = (0, bignumber_1._base16To36)(getAddress12(address).substring(2)).toUpperCase(); + while (base36.length < 30) { + base36 = "0" + base36; + } + return "XE" + ibanChecksum("XE00" + base36) + base36; + } + exports2.getIcapAddress = getIcapAddress2; + function getContractAddress4(transaction) { + var from2 = null; + try { + from2 = getAddress12(transaction.from); + } catch (error) { + logger42.throwArgumentError("missing from address", "transaction", transaction); + } + var nonce = (0, bytes_1.stripZeros)((0, bytes_1.arrayify)(bignumber_1.BigNumber.from(transaction.nonce).toHexString())); + return getAddress12((0, bytes_1.hexDataSlice)((0, keccak256_1.keccak256)((0, rlp_1.encode)([from2, nonce])), 12)); + } + exports2.getContractAddress = getContractAddress4; + function getCreate2Address2(from2, salt, initCodeHash) { + if ((0, bytes_1.hexDataLength)(salt) !== 32) { + logger42.throwArgumentError("salt must be 32 bytes", "salt", salt); + } + if ((0, bytes_1.hexDataLength)(initCodeHash) !== 32) { + logger42.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash); + } + return getAddress12((0, bytes_1.hexDataSlice)((0, keccak256_1.keccak256)((0, bytes_1.concat)(["0xff", getAddress12(from2), salt, initCodeHash])), 12)); + } + exports2.getCreate2Address = getCreate2Address2; + } + }); + + // ../../node_modules/@ethersproject/abstract-signer/lib/_version.js + var require_version8 = __commonJS({ + "../../node_modules/@ethersproject/abstract-signer/lib/_version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.version = void 0; + exports2.version = "abstract-signer/5.7.0"; + } + }); + + // ../../node_modules/@ethersproject/abstract-signer/lib/index.js + var require_lib11 = __commonJS({ + "../../node_modules/@ethersproject/abstract-signer/lib/index.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VoidSigner = exports2.Signer = void 0; + var properties_1 = require_lib7(); + var logger_1 = require_lib(); + var _version_1 = require_version8(); + var logger42 = new logger_1.Logger(_version_1.version); + var allowedTransactionKeys4 = [ + "accessList", + "ccipReadEnabled", + "chainId", + "customData", + "data", + "from", + "gasLimit", + "gasPrice", + "maxFeePerGas", + "maxPriorityFeePerGas", + "nonce", + "to", + "type", + "value" + ]; + var forwardErrors = [ + logger_1.Logger.errors.INSUFFICIENT_FUNDS, + logger_1.Logger.errors.NONCE_EXPIRED, + logger_1.Logger.errors.REPLACEMENT_UNDERPRICED + ]; + var Signer6 = function() { + function Signer7() { + var _newTarget = this.constructor; + logger42.checkAbstract(_newTarget, Signer7); + (0, properties_1.defineReadOnly)(this, "_isSigner", true); + } + Signer7.prototype.getBalance = function(blockTag) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getBalance"); + return [4, this.provider.getBalance(this.getAddress(), blockTag)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getTransactionCount = function(blockTag) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getTransactionCount"); + return [4, this.provider.getTransactionCount(this.getAddress(), blockTag)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.estimateGas = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("estimateGas"); + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + return [4, this.provider.estimateGas(tx2)]; + case 2: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.call = function(transaction, blockTag) { + return __awaiter16(this, void 0, void 0, function() { + var tx2; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("call"); + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + return [4, this.provider.call(tx2, blockTag)]; + case 2: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.sendTransaction = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2, signedTx; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("sendTransaction"); + return [4, this.populateTransaction(transaction)]; + case 1: + tx2 = _a2.sent(); + return [4, this.signTransaction(tx2)]; + case 2: + signedTx = _a2.sent(); + return [4, this.provider.sendTransaction(signedTx)]; + case 3: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getChainId = function() { + return __awaiter16(this, void 0, void 0, function() { + var network3; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getChainId"); + return [4, this.provider.getNetwork()]; + case 1: + network3 = _a2.sent(); + return [2, network3.chainId]; + } + }); + }); + }; + Signer7.prototype.getGasPrice = function() { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getGasPrice"); + return [4, this.provider.getGasPrice()]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.getFeeData = function() { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("getFeeData"); + return [4, this.provider.getFeeData()]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.resolveName = function(name6) { + return __awaiter16(this, void 0, void 0, function() { + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + this._checkProvider("resolveName"); + return [4, this.provider.resolveName(name6)]; + case 1: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype.checkTransaction = function(transaction) { + for (var key2 in transaction) { + if (allowedTransactionKeys4.indexOf(key2) === -1) { + logger42.throwArgumentError("invalid transaction key: " + key2, "transaction", transaction); + } + } + var tx2 = (0, properties_1.shallowCopy)(transaction); + if (tx2.from == null) { + tx2.from = this.getAddress(); + } else { + tx2.from = Promise.all([ + Promise.resolve(tx2.from), + this.getAddress() + ]).then(function(result) { + if (result[0].toLowerCase() !== result[1].toLowerCase()) { + logger42.throwArgumentError("from address mismatch", "transaction", transaction); + } + return result[0]; + }); + } + return tx2; + }; + Signer7.prototype.populateTransaction = function(transaction) { + return __awaiter16(this, void 0, void 0, function() { + var tx2, hasEip1559, feeData, gasPrice; + var _this = this; + return __generator2(this, function(_a2) { + switch (_a2.label) { + case 0: + return [4, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))]; + case 1: + tx2 = _a2.sent(); + if (tx2.to != null) { + tx2.to = Promise.resolve(tx2.to).then(function(to2) { + return __awaiter16(_this, void 0, void 0, function() { + var address; + return __generator2(this, function(_a3) { + switch (_a3.label) { + case 0: + if (to2 == null) { + return [2, null]; + } + return [4, this.resolveName(to2)]; + case 1: + address = _a3.sent(); + if (address == null) { + logger42.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); + } + return [2, address]; + } + }); + }); + }); + tx2.to.catch(function(error) { + }); + } + hasEip1559 = tx2.maxFeePerGas != null || tx2.maxPriorityFeePerGas != null; + if (tx2.gasPrice != null && (tx2.type === 2 || hasEip1559)) { + logger42.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction); + } else if ((tx2.type === 0 || tx2.type === 1) && hasEip1559) { + logger42.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction); + } + if (!((tx2.type === 2 || tx2.type == null) && (tx2.maxFeePerGas != null && tx2.maxPriorityFeePerGas != null))) + return [3, 2]; + tx2.type = 2; + return [3, 5]; + case 2: + if (!(tx2.type === 0 || tx2.type === 1)) + return [3, 3]; + if (tx2.gasPrice == null) { + tx2.gasPrice = this.getGasPrice(); + } + return [3, 5]; + case 3: + return [4, this.getFeeData()]; + case 4: + feeData = _a2.sent(); + if (tx2.type == null) { + if (feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null) { + tx2.type = 2; + if (tx2.gasPrice != null) { + gasPrice = tx2.gasPrice; + delete tx2.gasPrice; + tx2.maxFeePerGas = gasPrice; + tx2.maxPriorityFeePerGas = gasPrice; + } else { + if (tx2.maxFeePerGas == null) { + tx2.maxFeePerGas = feeData.maxFeePerGas; + } + if (tx2.maxPriorityFeePerGas == null) { + tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; + } + } + } else if (feeData.gasPrice != null) { + if (hasEip1559) { + logger42.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "populateTransaction" + }); + } + if (tx2.gasPrice == null) { + tx2.gasPrice = feeData.gasPrice; + } + tx2.type = 0; + } else { + logger42.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "signer.getFeeData" + }); + } + } else if (tx2.type === 2) { + if (tx2.maxFeePerGas == null) { + tx2.maxFeePerGas = feeData.maxFeePerGas; + } + if (tx2.maxPriorityFeePerGas == null) { + tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; + } + } + _a2.label = 5; + case 5: + if (tx2.nonce == null) { + tx2.nonce = this.getTransactionCount("pending"); + } + if (tx2.gasLimit == null) { + tx2.gasLimit = this.estimateGas(tx2).catch(function(error) { + if (forwardErrors.indexOf(error.code) >= 0) { + throw error; + } + return logger42.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + error, + tx: tx2 + }); + }); + } + if (tx2.chainId == null) { + tx2.chainId = this.getChainId(); + } else { + tx2.chainId = Promise.all([ + Promise.resolve(tx2.chainId), + this.getChainId() + ]).then(function(results) { + if (results[1] !== 0 && results[0] !== results[1]) { + logger42.throwArgumentError("chainId address mismatch", "transaction", transaction); + } + return results[0]; + }); + } + return [4, (0, properties_1.resolveProperties)(tx2)]; + case 6: + return [2, _a2.sent()]; + } + }); + }); + }; + Signer7.prototype._checkProvider = function(operation) { + if (!this.provider) { + logger42.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: operation || "_checkProvider" + }); + } + }; + Signer7.isSigner = function(value) { + return !!(value && value._isSigner); + }; + return Signer7; + }(); + exports2.Signer = Signer6; + var VoidSigner3 = function(_super) { + __extends2(VoidSigner4, _super); + function VoidSigner4(address, provider) { + var _this = _super.call(this) || this; + (0, properties_1.defineReadOnly)(_this, "address", address); + (0, properties_1.defineReadOnly)(_this, "provider", provider || null); + return _this; + } + VoidSigner4.prototype.getAddress = function() { + return Promise.resolve(this.address); + }; + VoidSigner4.prototype._fail = function(message, operation) { + return Promise.resolve().then(function() { + logger42.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation }); + }); + }; + VoidSigner4.prototype.signMessage = function(message) { + return this._fail("VoidSigner cannot sign messages", "signMessage"); + }; + VoidSigner4.prototype.signTransaction = function(transaction) { + return this._fail("VoidSigner cannot sign transactions", "signTransaction"); + }; + VoidSigner4.prototype._signTypedData = function(domain, types2, value) { + return this._fail("VoidSigner cannot sign typed data", "signTypedData"); + }; + VoidSigner4.prototype.connect = function(provider) { + return new VoidSigner4(this.address, provider); + }; + return VoidSigner4; + }(Signer6); + exports2.VoidSigner = VoidSigner3; + } + }); + // ../../node_modules/@ethersproject/signing-key/node_modules/bn.js/lib/bn.js var require_bn8 = __commonJS({ "../../node_modules/@ethersproject/signing-key/node_modules/bn.js/lib/bn.js"(exports2, module2) { @@ -33297,6 +34386,56906 @@ ${formatDisplay(all, fmt)}`); } }); + // ../../node_modules/@reef-chain/evm-provider/Signer.js + var require_Signer = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/Signer.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Signer = void 0; + var abstract_signer_1 = require_lib11(); + var address_1 = require_lib10(); + var bignumber_1 = require_lib3(); + var bytes_1 = require_lib2(); + var logger_1 = require_lib(); + var properties_1 = require_lib7(); + var strings_1 = require_lib6(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var utils_12 = require_utils3(); + var logger42 = new logger_1.Logger("evm-provider"); + var Signer6 = class extends abstract_signer_1.Signer { + constructor(provider, address, signingKey) { + super(); + (0, properties_1.defineReadOnly)(this, "provider", provider); + (0, properties_1.defineReadOnly)(this, "signingKey", signingKey); + this.provider.api.setSigner(signingKey); + if (typeof address === "string" && (0, util_crypto_1.isEthereumAddress)(address)) { + logger42.throwError("expect substrate address"); + } else { + try { + (0, util_crypto_1.decodeAddress)(address); + (0, properties_1.defineReadOnly)(this, "_substrateAddress", address); + } catch (_a2) { + logger42.throwArgumentError("invalid address", "address", address); + } + } + } + connect(provider) { + return logger42.throwError("cannot alter JSON-RPC Signer connection", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "connect" + }); + } + isClaimed(evmAddress) { + return __awaiter16(this, void 0, void 0, function* () { + const rpcEvmAddress = yield this.queryEvmAddress(); + if (!rpcEvmAddress) + return false; + if (!evmAddress) + return true; + if (rpcEvmAddress === evmAddress) { + return true; + } + return logger42.throwError("An evm account already exists to bind to this account"); + }); + } + getAddress() { + return __awaiter16(this, void 0, void 0, function* () { + const address = yield this.queryEvmAddress(); + if (address) { + return address; + } else { + return this.computeDefaultEvmAddress(); + } + }); + } + queryEvmAddress() { + return __awaiter16(this, void 0, void 0, function* () { + const address = yield this.provider.api.query.evmAccounts.evmAddresses(this._substrateAddress); + if (!address.isEmpty) { + const evmAddress = (0, address_1.getAddress)(address.toString()); + return evmAddress; + } + return ""; + }); + } + computeDefaultEvmAddress() { + const address = this._substrateAddress; + const publicKey = (0, util_crypto_1.decodeAddress)(address); + const isStartWithEvm = (0, util_1.u8aEq)("evm:", publicKey.slice(0, 4)); + if (isStartWithEvm) { + return (0, address_1.getAddress)((0, util_1.u8aToHex)(publicKey.slice(4, 24))); + } + return (0, address_1.getAddress)((0, util_1.u8aToHex)((0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)("evm:", publicKey), 256).slice(0, 20))); + } + getSubstrateAddress() { + return __awaiter16(this, void 0, void 0, function* () { + return this._substrateAddress; + }); + } + claimEvmAccount(evmAddress) { + return __awaiter16(this, void 0, void 0, function* () { + const isConnented = yield this.isClaimed(evmAddress); + if (isConnented) + return; + const publicKey = (0, util_crypto_1.decodeAddress)(this._substrateAddress); + const data = "Reef evm:" + Buffer.from(publicKey).toString("hex"); + const signature2 = yield this._signMessage(evmAddress, data); + const extrinsic = this.provider.api.tx.evmAccounts.claimAccount(evmAddress, signature2); + yield extrinsic.signAsync(this._substrateAddress); + yield new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve(); + }).catch(({ message, result: result2 }) => { + if (message === "evmAccounts.AccountIdHasMapped") { + resolve(); + } + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + claimDefaultAccount() { + return __awaiter16(this, void 0, void 0, function* () { + const extrinsic = this.provider.api.tx.evmAccounts.claimDefaultAccount(); + yield extrinsic.signAsync(this._substrateAddress); + yield new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve(); + }).catch(({ message, result: result2 }) => { + if (message === "evmAccounts.AccountIdHasMapped") { + resolve(); + } + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + getBalance(blockTag) { + return this.provider.getBalance(this._substrateAddress, blockTag); + } + signTransaction(transaction) { + return logger42.throwError("signing transactions is unsupported", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "signTransaction" + }); + } + sendTransaction(_transaction) { + return __awaiter16(this, void 0, void 0, function* () { + this._checkProvider("sendTransaction"); + const signerAddress = yield this.getSubstrateAddress(); + const evmAddress = yield this.getAddress(); + const transaction = Object.assign({ from: evmAddress }, _transaction); + const resources = yield this.provider.estimateResources(transaction); + const gasLimit = resources.gas.mul(31).div(10); + let storageLimit; + if (transaction.customData) { + if ("storageLimit" in transaction.customData) { + storageLimit = transaction.customData.storageLimit; + if ((0, util_1.isNumber)(storageLimit)) { + storageLimit = bignumber_1.BigNumber.from(storageLimit); + } + } + } else { + storageLimit = resources.storage.mul(31).div(10); + } + let totalLimit = yield transaction.gasLimit; + if (totalLimit === null || totalLimit === void 0) { + totalLimit = gasLimit.add(storageLimit); + } + transaction.gasLimit = totalLimit; + const tx2 = yield this.populateTransaction(transaction); + const data = tx2.data; + const from2 = tx2.from; + if (!data) { + return logger42.throwError("Request data not found"); + } + if (!from2) { + return logger42.throwError("Request from not found"); + } + let extrinsic; + if (!tx2.to) { + extrinsic = this.provider.api.tx.evm.create(tx2.data, (0, utils_12.toBN)(tx2.value), (0, utils_12.toBN)(gasLimit), (0, utils_12.toBN)(storageLimit.isNegative() ? 0 : storageLimit)); + } else { + extrinsic = this.provider.api.tx.evm.call(tx2.to, tx2.data, (0, utils_12.toBN)(tx2.value), (0, utils_12.toBN)(gasLimit), (0, utils_12.toBN)(storageLimit.isNegative() ? 0 : storageLimit)); + } + yield extrinsic.signAsync(signerAddress); + return new Promise((resolve, reject) => { + extrinsic.send((result) => { + (0, utils_12.handleTxResponse)(result, this.provider.api).then(() => { + resolve({ + hash: extrinsic.hash.toHex(), + from: from2 || "", + confirmations: 0, + nonce: (0, utils_12.toBN)(tx2.nonce).toNumber(), + gasLimit: bignumber_1.BigNumber.from(tx2.gasLimit || "0"), + gasPrice: bignumber_1.BigNumber.from(0), + data: (0, utils_12.dataToString)(data), + value: bignumber_1.BigNumber.from(tx2.value || "0"), + chainId: 13939, + wait: (confirmations) => { + return this.provider._resolveTransactionReceipt(extrinsic.hash.toHex(), result.status.asInBlock.toHex(), from2); + } + }); + }).catch(({ message, result: result2 }) => { + reject(message); + }); + }).catch((error) => { + reject(error && error.message); + }); + }); + }); + } + signMessage(message) { + return __awaiter16(this, void 0, void 0, function* () { + const evmAddress = yield this.queryEvmAddress(); + return this._signMessage(evmAddress, message); + }); + } + _signMessage(evmAddress, message) { + return __awaiter16(this, void 0, void 0, function* () { + if (!evmAddress) { + return logger42.throwError("No binding evm address"); + } + const messagePrefix2 = "Ethereum Signed Message:\n"; + if (typeof message === "string") { + message = (0, strings_1.toUtf8Bytes)(message); + } + const msg = (0, util_1.u8aToHex)((0, bytes_1.concat)([ + (0, strings_1.toUtf8Bytes)(messagePrefix2), + (0, strings_1.toUtf8Bytes)(String(message.length)), + message + ])); + if (!this.signingKey.signRaw) { + return logger42.throwError("Need to implement signRaw method"); + } + const result = yield this.signingKey.signRaw({ + address: evmAddress, + data: msg, + type: "bytes" + }); + return (0, bytes_1.joinSignature)(result.signature); + }); + } + _signTypedData(domain, types2, value) { + return __awaiter16(this, void 0, void 0, function* () { + return logger42.throwError("_signTypedData is unsupported", logger_1.Logger.errors.UNSUPPORTED_OPERATION, { + operation: "_signTypedData" + }); + }); + } + }; + exports2.Signer = Signer6; + } + }); + + // ../../node_modules/@babel/runtime/helpers/typeof.js + var require_typeof = __commonJS({ + "../../node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) { + function _typeof(o) { + "@babel/helpers - typeof"; + return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o10) { + return typeof o10; + } : function(o10) { + return o10 && "function" == typeof Symbol && o10.constructor === Symbol && o10 !== Symbol.prototype ? "symbol" : typeof o10; + }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof(o); + } + module2.exports = _typeof, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/toPrimitive.js + var require_toPrimitive = __commonJS({ + "../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports2, module2) { + var _typeof = require_typeof()["default"]; + function toPrimitive(t, r10) { + if ("object" != _typeof(t) || !t) + return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r10 || "default"); + if ("object" != _typeof(i)) + return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r10 ? String : Number)(t); + } + module2.exports = toPrimitive, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/toPropertyKey.js + var require_toPropertyKey = __commonJS({ + "../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports2, module2) { + var _typeof = require_typeof()["default"]; + var toPrimitive = require_toPrimitive(); + function toPropertyKey(t) { + var i = toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + module2.exports = toPropertyKey, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@babel/runtime/helpers/defineProperty.js + var require_defineProperty = __commonJS({ + "../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports2, module2) { + var toPropertyKey = require_toPropertyKey(); + function _defineProperty(e, r10, t) { + return (r10 = toPropertyKey(r10)) in e ? Object.defineProperty(e, r10, { + value: t, + enumerable: true, + configurable: true, + writable: true + }) : e[r10] = t, e; + } + module2.exports = _defineProperty, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/packageInfo.js + var require_packageInfo12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-derive", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/packageDetect.js + var require_packageDetect = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo12(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, []); + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/packageInfo.js + var require_packageInfo13 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-provider", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/packageInfo.js + var require_packageInfo14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/packageInfo.js + var require_packageInfo15 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-core", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/packageDetect.js + var require_packageDetect2 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo13(); + var packageInfo_2 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo15(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isFunction.js + var require_isFunction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isFunction.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isFunction = void 0; + function isFunction6(value) { + return typeof value === "function"; + } + exports2.isFunction = isFunction6; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js + var require_createErrorClass = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createErrorClass = void 0; + function createErrorClass2(createImpl) { + var _super = function(instance) { + Error.call(instance); + instance.stack = new Error().stack; + }; + var ctorFunc = createImpl(_super); + ctorFunc.prototype = Object.create(Error.prototype); + ctorFunc.prototype.constructor = ctorFunc; + return ctorFunc; + } + exports2.createErrorClass = createErrorClass2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js + var require_UnsubscriptionError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UnsubscriptionError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.UnsubscriptionError = createErrorClass_1.createErrorClass(function(_super) { + return function UnsubscriptionErrorImpl(errors2) { + _super(this); + this.message = errors2 ? errors2.length + " errors occurred during unsubscription:\n" + errors2.map(function(err, i) { + return i + 1 + ") " + err.toString(); + }).join("\n ") : ""; + this.name = "UnsubscriptionError"; + this.errors = errors2; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/arrRemove.js + var require_arrRemove = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.arrRemove = void 0; + function arrRemove2(arr, item) { + if (arr) { + var index = arr.indexOf(item); + 0 <= index && arr.splice(index, 1); + } + } + exports2.arrRemove = arrRemove2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subscription.js + var require_Subscription = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subscription.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isSubscription = exports2.EMPTY_SUBSCRIPTION = exports2.Subscription = void 0; + var isFunction_1 = require_isFunction(); + var UnsubscriptionError_1 = require_UnsubscriptionError(); + var arrRemove_1 = require_arrRemove(); + var Subscription2 = function() { + function Subscription3(initialTeardown) { + this.initialTeardown = initialTeardown; + this.closed = false; + this._parentage = null; + this._finalizers = null; + } + Subscription3.prototype.unsubscribe = function() { + var e_1, _a2, e_2, _b2; + var errors2; + if (!this.closed) { + this.closed = true; + var _parentage = this._parentage; + if (_parentage) { + this._parentage = null; + if (Array.isArray(_parentage)) { + try { + for (var _parentage_1 = __values2(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { + var parent_1 = _parentage_1_1.value; + parent_1.remove(this); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (_parentage_1_1 && !_parentage_1_1.done && (_a2 = _parentage_1.return)) + _a2.call(_parentage_1); + } finally { + if (e_1) + throw e_1.error; + } + } + } else { + _parentage.remove(this); + } + } + var initialFinalizer = this.initialTeardown; + if (isFunction_1.isFunction(initialFinalizer)) { + try { + initialFinalizer(); + } catch (e) { + errors2 = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e]; + } + } + var _finalizers = this._finalizers; + if (_finalizers) { + this._finalizers = null; + try { + for (var _finalizers_1 = __values2(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { + var finalizer = _finalizers_1_1.value; + try { + execFinalizer2(finalizer); + } catch (err) { + errors2 = errors2 !== null && errors2 !== void 0 ? errors2 : []; + if (err instanceof UnsubscriptionError_1.UnsubscriptionError) { + errors2 = __spreadArray2(__spreadArray2([], __read2(errors2)), __read2(err.errors)); + } else { + errors2.push(err); + } + } + } + } catch (e_2_1) { + e_2 = { error: e_2_1 }; + } finally { + try { + if (_finalizers_1_1 && !_finalizers_1_1.done && (_b2 = _finalizers_1.return)) + _b2.call(_finalizers_1); + } finally { + if (e_2) + throw e_2.error; + } + } + } + if (errors2) { + throw new UnsubscriptionError_1.UnsubscriptionError(errors2); + } + } + }; + Subscription3.prototype.add = function(teardown) { + var _a2; + if (teardown && teardown !== this) { + if (this.closed) { + execFinalizer2(teardown); + } else { + if (teardown instanceof Subscription3) { + if (teardown.closed || teardown._hasParent(this)) { + return; + } + teardown._addParent(this); + } + (this._finalizers = (_a2 = this._finalizers) !== null && _a2 !== void 0 ? _a2 : []).push(teardown); + } + } + }; + Subscription3.prototype._hasParent = function(parent) { + var _parentage = this._parentage; + return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent); + }; + Subscription3.prototype._addParent = function(parent) { + var _parentage = this._parentage; + this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; + }; + Subscription3.prototype._removeParent = function(parent) { + var _parentage = this._parentage; + if (_parentage === parent) { + this._parentage = null; + } else if (Array.isArray(_parentage)) { + arrRemove_1.arrRemove(_parentage, parent); + } + }; + Subscription3.prototype.remove = function(teardown) { + var _finalizers = this._finalizers; + _finalizers && arrRemove_1.arrRemove(_finalizers, teardown); + if (teardown instanceof Subscription3) { + teardown._removeParent(this); + } + }; + Subscription3.EMPTY = function() { + var empty = new Subscription3(); + empty.closed = true; + return empty; + }(); + return Subscription3; + }(); + exports2.Subscription = Subscription2; + exports2.EMPTY_SUBSCRIPTION = Subscription2.EMPTY; + function isSubscription2(value) { + return value instanceof Subscription2 || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe); + } + exports2.isSubscription = isSubscription2; + function execFinalizer2(finalizer) { + if (isFunction_1.isFunction(finalizer)) { + finalizer(); + } else { + finalizer.unsubscribe(); + } + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/config.js + var require_config = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/config.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.config = void 0; + exports2.config = { + onUnhandledError: null, + onStoppedNotification: null, + Promise: void 0, + useDeprecatedSynchronousErrorHandling: false, + useDeprecatedNextContext: false + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js + var require_timeoutProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeoutProvider = void 0; + exports2.timeoutProvider = { + setTimeout: function(handler, timeout) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + var delegate = exports2.timeoutProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { + return delegate.setTimeout.apply(delegate, __spreadArray2([handler, timeout], __read2(args))); + } + return setTimeout.apply(void 0, __spreadArray2([handler, timeout], __read2(args))); + }, + clearTimeout: function(handle) { + var delegate = exports2.timeoutProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js + var require_reportUnhandledError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.reportUnhandledError = void 0; + var config_1 = require_config(); + var timeoutProvider_1 = require_timeoutProvider(); + function reportUnhandledError2(err) { + timeoutProvider_1.timeoutProvider.setTimeout(function() { + var onUnhandledError = config_1.config.onUnhandledError; + if (onUnhandledError) { + onUnhandledError(err); + } else { + throw err; + } + }); + } + exports2.reportUnhandledError = reportUnhandledError2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/noop.js + var require_noop2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/noop.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.noop = void 0; + function noop3() { + } + exports2.noop = noop3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/NotificationFactories.js + var require_NotificationFactories = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/NotificationFactories.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createNotification = exports2.nextNotification = exports2.errorNotification = exports2.COMPLETE_NOTIFICATION = void 0; + exports2.COMPLETE_NOTIFICATION = function() { + return createNotification2("C", void 0, void 0); + }(); + function errorNotification2(error) { + return createNotification2("E", void 0, error); + } + exports2.errorNotification = errorNotification2; + function nextNotification2(value) { + return createNotification2("N", value, void 0); + } + exports2.nextNotification = nextNotification2; + function createNotification2(kind, value, error) { + return { + kind, + value, + error + }; + } + exports2.createNotification = createNotification2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/errorContext.js + var require_errorContext = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/errorContext.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.captureError = exports2.errorContext = void 0; + var config_1 = require_config(); + var context2 = null; + function errorContext2(cb2) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + var isRoot = !context2; + if (isRoot) { + context2 = { errorThrown: false, error: null }; + } + cb2(); + if (isRoot) { + var _a2 = context2, errorThrown = _a2.errorThrown, error = _a2.error; + context2 = null; + if (errorThrown) { + throw error; + } + } + } else { + cb2(); + } + } + exports2.errorContext = errorContext2; + function captureError3(err) { + if (config_1.config.useDeprecatedSynchronousErrorHandling && context2) { + context2.errorThrown = true; + context2.error = err; + } + } + exports2.captureError = captureError3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subscriber.js + var require_Subscriber = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subscriber.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EMPTY_OBSERVER = exports2.SafeSubscriber = exports2.Subscriber = void 0; + var isFunction_1 = require_isFunction(); + var Subscription_1 = require_Subscription(); + var config_1 = require_config(); + var reportUnhandledError_1 = require_reportUnhandledError(); + var noop_1 = require_noop2(); + var NotificationFactories_1 = require_NotificationFactories(); + var timeoutProvider_1 = require_timeoutProvider(); + var errorContext_1 = require_errorContext(); + var Subscriber2 = function(_super) { + __extends2(Subscriber3, _super); + function Subscriber3(destination) { + var _this = _super.call(this) || this; + _this.isStopped = false; + if (destination) { + _this.destination = destination; + if (Subscription_1.isSubscription(destination)) { + destination.add(_this); + } + } else { + _this.destination = exports2.EMPTY_OBSERVER; + } + return _this; + } + Subscriber3.create = function(next, error, complete) { + return new SafeSubscriber2(next, error, complete); + }; + Subscriber3.prototype.next = function(value) { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.nextNotification(value), this); + } else { + this._next(value); + } + }; + Subscriber3.prototype.error = function(err) { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.errorNotification(err), this); + } else { + this.isStopped = true; + this._error(err); + } + }; + Subscriber3.prototype.complete = function() { + if (this.isStopped) { + handleStoppedNotification2(NotificationFactories_1.COMPLETE_NOTIFICATION, this); + } else { + this.isStopped = true; + this._complete(); + } + }; + Subscriber3.prototype.unsubscribe = function() { + if (!this.closed) { + this.isStopped = true; + _super.prototype.unsubscribe.call(this); + this.destination = null; + } + }; + Subscriber3.prototype._next = function(value) { + this.destination.next(value); + }; + Subscriber3.prototype._error = function(err) { + try { + this.destination.error(err); + } finally { + this.unsubscribe(); + } + }; + Subscriber3.prototype._complete = function() { + try { + this.destination.complete(); + } finally { + this.unsubscribe(); + } + }; + return Subscriber3; + }(Subscription_1.Subscription); + exports2.Subscriber = Subscriber2; + var _bind2 = Function.prototype.bind; + function bind2(fn2, thisArg) { + return _bind2.call(fn2, thisArg); + } + var ConsumerObserver2 = function() { + function ConsumerObserver3(partialObserver) { + this.partialObserver = partialObserver; + } + ConsumerObserver3.prototype.next = function(value) { + var partialObserver = this.partialObserver; + if (partialObserver.next) { + try { + partialObserver.next(value); + } catch (error) { + handleUnhandledError2(error); + } + } + }; + ConsumerObserver3.prototype.error = function(err) { + var partialObserver = this.partialObserver; + if (partialObserver.error) { + try { + partialObserver.error(err); + } catch (error) { + handleUnhandledError2(error); + } + } else { + handleUnhandledError2(err); + } + }; + ConsumerObserver3.prototype.complete = function() { + var partialObserver = this.partialObserver; + if (partialObserver.complete) { + try { + partialObserver.complete(); + } catch (error) { + handleUnhandledError2(error); + } + } + }; + return ConsumerObserver3; + }(); + var SafeSubscriber2 = function(_super) { + __extends2(SafeSubscriber3, _super); + function SafeSubscriber3(observerOrNext, error, complete) { + var _this = _super.call(this) || this; + var partialObserver; + if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) { + partialObserver = { + next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0, + error: error !== null && error !== void 0 ? error : void 0, + complete: complete !== null && complete !== void 0 ? complete : void 0 + }; + } else { + var context_1; + if (_this && config_1.config.useDeprecatedNextContext) { + context_1 = Object.create(observerOrNext); + context_1.unsubscribe = function() { + return _this.unsubscribe(); + }; + partialObserver = { + next: observerOrNext.next && bind2(observerOrNext.next, context_1), + error: observerOrNext.error && bind2(observerOrNext.error, context_1), + complete: observerOrNext.complete && bind2(observerOrNext.complete, context_1) + }; + } else { + partialObserver = observerOrNext; + } + } + _this.destination = new ConsumerObserver2(partialObserver); + return _this; + } + return SafeSubscriber3; + }(Subscriber2); + exports2.SafeSubscriber = SafeSubscriber2; + function handleUnhandledError2(error) { + if (config_1.config.useDeprecatedSynchronousErrorHandling) { + errorContext_1.captureError(error); + } else { + reportUnhandledError_1.reportUnhandledError(error); + } + } + function defaultErrorHandler2(err) { + throw err; + } + function handleStoppedNotification2(notification, subscriber) { + var onStoppedNotification = config_1.config.onStoppedNotification; + onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function() { + return onStoppedNotification(notification, subscriber); + }); + } + exports2.EMPTY_OBSERVER = { + closed: true, + next: noop_1.noop, + error: defaultErrorHandler2, + complete: noop_1.noop + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/symbol/observable.js + var require_observable2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/symbol/observable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observable = void 0; + exports2.observable = function() { + return typeof Symbol === "function" && Symbol.observable || "@@observable"; + }(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/identity.js + var require_identity = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/identity.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.identity = void 0; + function identity3(x) { + return x; + } + exports2.identity = identity3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/pipe.js + var require_pipe = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/pipe.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pipeFromArray = exports2.pipe = void 0; + var identity_1 = require_identity(); + function pipe2() { + var fns = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + fns[_i2] = arguments[_i2]; + } + return pipeFromArray2(fns); + } + exports2.pipe = pipe2; + function pipeFromArray2(fns) { + if (fns.length === 0) { + return identity_1.identity; + } + if (fns.length === 1) { + return fns[0]; + } + return function piped(input) { + return fns.reduce(function(prev, fn2) { + return fn2(prev); + }, input); + }; + } + exports2.pipeFromArray = pipeFromArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Observable.js + var require_Observable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Observable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Observable = void 0; + var Subscriber_1 = require_Subscriber(); + var Subscription_1 = require_Subscription(); + var observable_1 = require_observable2(); + var pipe_1 = require_pipe(); + var config_1 = require_config(); + var isFunction_1 = require_isFunction(); + var errorContext_1 = require_errorContext(); + var Observable3 = function() { + function Observable4(subscribe) { + if (subscribe) { + this._subscribe = subscribe; + } + } + Observable4.prototype.lift = function(operator) { + var observable2 = new Observable4(); + observable2.source = this; + observable2.operator = operator; + return observable2; + }; + Observable4.prototype.subscribe = function(observerOrNext, error, complete) { + var _this = this; + var subscriber = isSubscriber2(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete); + errorContext_1.errorContext(function() { + var _a2 = _this, operator = _a2.operator, source = _a2.source; + subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber)); + }); + return subscriber; + }; + Observable4.prototype._trySubscribe = function(sink) { + try { + return this._subscribe(sink); + } catch (err) { + sink.error(err); + } + }; + Observable4.prototype.forEach = function(next, promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor2(promiseCtor); + return new promiseCtor(function(resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function(value) { + try { + next(value); + } catch (err) { + reject(err); + subscriber.unsubscribe(); + } + }, + error: reject, + complete: resolve + }); + _this.subscribe(subscriber); + }); + }; + Observable4.prototype._subscribe = function(subscriber) { + var _a2; + return (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber); + }; + Observable4.prototype[observable_1.observable] = function() { + return this; + }; + Observable4.prototype.pipe = function() { + var operations = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + operations[_i2] = arguments[_i2]; + } + return pipe_1.pipeFromArray(operations)(this); + }; + Observable4.prototype.toPromise = function(promiseCtor) { + var _this = this; + promiseCtor = getPromiseCtor2(promiseCtor); + return new promiseCtor(function(resolve, reject) { + var value; + _this.subscribe(function(x) { + return value = x; + }, function(err) { + return reject(err); + }, function() { + return resolve(value); + }); + }); + }; + Observable4.create = function(subscribe) { + return new Observable4(subscribe); + }; + return Observable4; + }(); + exports2.Observable = Observable3; + function getPromiseCtor2(promiseCtor) { + var _a2; + return (_a2 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config_1.config.Promise) !== null && _a2 !== void 0 ? _a2 : Promise; + } + function isObserver2(value) { + return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete); + } + function isSubscriber2(value) { + return value && value instanceof Subscriber_1.Subscriber || isObserver2(value) && Subscription_1.isSubscription(value); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/lift.js + var require_lift = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/lift.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.operate = exports2.hasLift = void 0; + var isFunction_1 = require_isFunction(); + function hasLift2(source) { + return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift); + } + exports2.hasLift = hasLift2; + function operate2(init2) { + return function(source) { + if (hasLift2(source)) { + return source.lift(function(liftedSource) { + try { + return init2(liftedSource, this); + } catch (err) { + this.error(err); + } + }); + } + throw new TypeError("Unable to lift unknown Observable type"); + }; + } + exports2.operate = operate2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js + var require_OperatorSubscriber = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OperatorSubscriber = exports2.createOperatorSubscriber = void 0; + var Subscriber_1 = require_Subscriber(); + function createOperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize) { + return new OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize); + } + exports2.createOperatorSubscriber = createOperatorSubscriber2; + var OperatorSubscriber2 = function(_super) { + __extends2(OperatorSubscriber3, _super); + function OperatorSubscriber3(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { + var _this = _super.call(this, destination) || this; + _this.onFinalize = onFinalize; + _this.shouldUnsubscribe = shouldUnsubscribe; + _this._next = onNext ? function(value) { + try { + onNext(value); + } catch (err) { + destination.error(err); + } + } : _super.prototype._next; + _this._error = onError ? function(err) { + try { + onError(err); + } catch (err2) { + destination.error(err2); + } finally { + this.unsubscribe(); + } + } : _super.prototype._error; + _this._complete = onComplete ? function() { + try { + onComplete(); + } catch (err) { + destination.error(err); + } finally { + this.unsubscribe(); + } + } : _super.prototype._complete; + return _this; + } + OperatorSubscriber3.prototype.unsubscribe = function() { + var _a2; + if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { + var closed_1 = this.closed; + _super.prototype.unsubscribe.call(this); + !closed_1 && ((_a2 = this.onFinalize) === null || _a2 === void 0 ? void 0 : _a2.call(this)); + } + }; + return OperatorSubscriber3; + }(Subscriber_1.Subscriber); + exports2.OperatorSubscriber = OperatorSubscriber2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/refCount.js + var require_refCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/refCount.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.refCount = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function refCount() { + return lift_1.operate(function(source, subscriber) { + var connection = null; + source._refCount++; + var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, void 0, function() { + if (!source || source._refCount <= 0 || 0 < --source._refCount) { + connection = null; + return; + } + var sharedConnection = source._connection; + var conn = connection; + connection = null; + if (sharedConnection && (!conn || sharedConnection === conn)) { + sharedConnection.unsubscribe(); + } + subscriber.unsubscribe(); + }); + source.subscribe(refCounter); + if (!refCounter.closed) { + connection = source.connect(); + } + }); + } + exports2.refCount = refCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js + var require_ConnectableObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ConnectableObservable = void 0; + var Observable_1 = require_Observable(); + var Subscription_1 = require_Subscription(); + var refCount_1 = require_refCount(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var lift_1 = require_lift(); + var ConnectableObservable = function(_super) { + __extends2(ConnectableObservable2, _super); + function ConnectableObservable2(source, subjectFactory) { + var _this = _super.call(this) || this; + _this.source = source; + _this.subjectFactory = subjectFactory; + _this._subject = null; + _this._refCount = 0; + _this._connection = null; + if (lift_1.hasLift(source)) { + _this.lift = source.lift; + } + return _this; + } + ConnectableObservable2.prototype._subscribe = function(subscriber) { + return this.getSubject().subscribe(subscriber); + }; + ConnectableObservable2.prototype.getSubject = function() { + var subject2 = this._subject; + if (!subject2 || subject2.isStopped) { + this._subject = this.subjectFactory(); + } + return this._subject; + }; + ConnectableObservable2.prototype._teardown = function() { + this._refCount = 0; + var _connection = this._connection; + this._subject = this._connection = null; + _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); + }; + ConnectableObservable2.prototype.connect = function() { + var _this = this; + var connection = this._connection; + if (!connection) { + connection = this._connection = new Subscription_1.Subscription(); + var subject_1 = this.getSubject(); + connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, void 0, function() { + _this._teardown(); + subject_1.complete(); + }, function(err) { + _this._teardown(); + subject_1.error(err); + }, function() { + return _this._teardown(); + }))); + if (connection.closed) { + this._connection = null; + connection = Subscription_1.Subscription.EMPTY; + } + } + return connection; + }; + ConnectableObservable2.prototype.refCount = function() { + return refCount_1.refCount()(this); + }; + return ConnectableObservable2; + }(Observable_1.Observable); + exports2.ConnectableObservable = ConnectableObservable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js + var require_performanceTimestampProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.performanceTimestampProvider = void 0; + exports2.performanceTimestampProvider = { + now: function() { + return (exports2.performanceTimestampProvider.delegate || performance).now(); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js + var require_animationFrameProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrameProvider = void 0; + var Subscription_1 = require_Subscription(); + exports2.animationFrameProvider = { + schedule: function(callback) { + var request = requestAnimationFrame; + var cancel = cancelAnimationFrame; + var delegate = exports2.animationFrameProvider.delegate; + if (delegate) { + request = delegate.requestAnimationFrame; + cancel = delegate.cancelAnimationFrame; + } + var handle = request(function(timestamp) { + cancel = void 0; + callback(timestamp); + }); + return new Subscription_1.Subscription(function() { + return cancel === null || cancel === void 0 ? void 0 : cancel(handle); + }); + }, + requestAnimationFrame: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray2([], __read2(args))); + }, + cancelAnimationFrame: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.animationFrameProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray2([], __read2(args))); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js + var require_animationFrames = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrames = void 0; + var Observable_1 = require_Observable(); + var performanceTimestampProvider_1 = require_performanceTimestampProvider(); + var animationFrameProvider_1 = require_animationFrameProvider(); + function animationFrames(timestampProvider) { + return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; + } + exports2.animationFrames = animationFrames; + function animationFramesFactory(timestampProvider) { + return new Observable_1.Observable(function(subscriber) { + var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider; + var start = provider.now(); + var id4 = 0; + var run = function() { + if (!subscriber.closed) { + id4 = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) { + id4 = 0; + var now2 = provider.now(); + subscriber.next({ + timestamp: timestampProvider ? now2 : timestamp, + elapsed: now2 - start + }); + run(); + }); + } + }; + run(); + return function() { + if (id4) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id4); + } + }; + }); + } + var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js + var require_ObjectUnsubscribedError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ObjectUnsubscribedError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function(_super) { + return function ObjectUnsubscribedErrorImpl() { + _super(this); + this.name = "ObjectUnsubscribedError"; + this.message = "object unsubscribed"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Subject.js + var require_Subject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Subject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnonymousSubject = exports2.Subject = void 0; + var Observable_1 = require_Observable(); + var Subscription_1 = require_Subscription(); + var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError(); + var arrRemove_1 = require_arrRemove(); + var errorContext_1 = require_errorContext(); + var Subject3 = function(_super) { + __extends2(Subject4, _super); + function Subject4() { + var _this = _super.call(this) || this; + _this.closed = false; + _this.currentObservers = null; + _this.observers = []; + _this.isStopped = false; + _this.hasError = false; + _this.thrownError = null; + return _this; + } + Subject4.prototype.lift = function(operator) { + var subject2 = new AnonymousSubject2(this, this); + subject2.operator = operator; + return subject2; + }; + Subject4.prototype._throwIfClosed = function() { + if (this.closed) { + throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError(); + } + }; + Subject4.prototype.next = function(value) { + var _this = this; + errorContext_1.errorContext(function() { + var e_1, _a2; + _this._throwIfClosed(); + if (!_this.isStopped) { + if (!_this.currentObservers) { + _this.currentObservers = Array.from(_this.observers); + } + try { + for (var _b2 = __values2(_this.currentObservers), _c2 = _b2.next(); !_c2.done; _c2 = _b2.next()) { + var observer = _c2.value; + observer.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (_c2 && !_c2.done && (_a2 = _b2.return)) + _a2.call(_b2); + } finally { + if (e_1) + throw e_1.error; + } + } + } + }); + }; + Subject4.prototype.error = function(err) { + var _this = this; + errorContext_1.errorContext(function() { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.hasError = _this.isStopped = true; + _this.thrownError = err; + var observers = _this.observers; + while (observers.length) { + observers.shift().error(err); + } + } + }); + }; + Subject4.prototype.complete = function() { + var _this = this; + errorContext_1.errorContext(function() { + _this._throwIfClosed(); + if (!_this.isStopped) { + _this.isStopped = true; + var observers = _this.observers; + while (observers.length) { + observers.shift().complete(); + } + } + }); + }; + Subject4.prototype.unsubscribe = function() { + this.isStopped = this.closed = true; + this.observers = this.currentObservers = null; + }; + Object.defineProperty(Subject4.prototype, "observed", { + get: function() { + var _a2; + return ((_a2 = this.observers) === null || _a2 === void 0 ? void 0 : _a2.length) > 0; + }, + enumerable: false, + configurable: true + }); + Subject4.prototype._trySubscribe = function(subscriber) { + this._throwIfClosed(); + return _super.prototype._trySubscribe.call(this, subscriber); + }; + Subject4.prototype._subscribe = function(subscriber) { + this._throwIfClosed(); + this._checkFinalizedStatuses(subscriber); + return this._innerSubscribe(subscriber); + }; + Subject4.prototype._innerSubscribe = function(subscriber) { + var _this = this; + var _a2 = this, hasError = _a2.hasError, isStopped = _a2.isStopped, observers = _a2.observers; + if (hasError || isStopped) { + return Subscription_1.EMPTY_SUBSCRIPTION; + } + this.currentObservers = null; + observers.push(subscriber); + return new Subscription_1.Subscription(function() { + _this.currentObservers = null; + arrRemove_1.arrRemove(observers, subscriber); + }); + }; + Subject4.prototype._checkFinalizedStatuses = function(subscriber) { + var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, isStopped = _a2.isStopped; + if (hasError) { + subscriber.error(thrownError); + } else if (isStopped) { + subscriber.complete(); + } + }; + Subject4.prototype.asObservable = function() { + var observable2 = new Observable_1.Observable(); + observable2.source = this; + return observable2; + }; + Subject4.create = function(destination, source) { + return new AnonymousSubject2(destination, source); + }; + return Subject4; + }(Observable_1.Observable); + exports2.Subject = Subject3; + var AnonymousSubject2 = function(_super) { + __extends2(AnonymousSubject3, _super); + function AnonymousSubject3(destination, source) { + var _this = _super.call(this) || this; + _this.destination = destination; + _this.source = source; + return _this; + } + AnonymousSubject3.prototype.next = function(value) { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, value); + }; + AnonymousSubject3.prototype.error = function(err) { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, err); + }; + AnonymousSubject3.prototype.complete = function() { + var _a2, _b2; + (_b2 = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a2); + }; + AnonymousSubject3.prototype._subscribe = function(subscriber) { + var _a2, _b2; + return (_b2 = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : Subscription_1.EMPTY_SUBSCRIPTION; + }; + return AnonymousSubject3; + }(Subject3); + exports2.AnonymousSubject = AnonymousSubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js + var require_BehaviorSubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BehaviorSubject = void 0; + var Subject_1 = require_Subject(); + var BehaviorSubject2 = function(_super) { + __extends2(BehaviorSubject3, _super); + function BehaviorSubject3(_value) { + var _this = _super.call(this) || this; + _this._value = _value; + return _this; + } + Object.defineProperty(BehaviorSubject3.prototype, "value", { + get: function() { + return this.getValue(); + }, + enumerable: false, + configurable: true + }); + BehaviorSubject3.prototype._subscribe = function(subscriber) { + var subscription = _super.prototype._subscribe.call(this, subscriber); + !subscription.closed && subscriber.next(this._value); + return subscription; + }; + BehaviorSubject3.prototype.getValue = function() { + var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, _value = _a2._value; + if (hasError) { + throw thrownError; + } + this._throwIfClosed(); + return _value; + }; + BehaviorSubject3.prototype.next = function(value) { + _super.prototype.next.call(this, this._value = value); + }; + return BehaviorSubject3; + }(Subject_1.Subject); + exports2.BehaviorSubject = BehaviorSubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js + var require_dateTimestampProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dateTimestampProvider = void 0; + exports2.dateTimestampProvider = { + now: function() { + return (exports2.dateTimestampProvider.delegate || Date).now(); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/ReplaySubject.js + var require_ReplaySubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ReplaySubject = void 0; + var Subject_1 = require_Subject(); + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var ReplaySubject2 = function(_super) { + __extends2(ReplaySubject3, _super); + function ReplaySubject3(_bufferSize, _windowTime, _timestampProvider) { + if (_bufferSize === void 0) { + _bufferSize = Infinity; + } + if (_windowTime === void 0) { + _windowTime = Infinity; + } + if (_timestampProvider === void 0) { + _timestampProvider = dateTimestampProvider_1.dateTimestampProvider; + } + var _this = _super.call(this) || this; + _this._bufferSize = _bufferSize; + _this._windowTime = _windowTime; + _this._timestampProvider = _timestampProvider; + _this._buffer = []; + _this._infiniteTimeWindow = true; + _this._infiniteTimeWindow = _windowTime === Infinity; + _this._bufferSize = Math.max(1, _bufferSize); + _this._windowTime = Math.max(1, _windowTime); + return _this; + } + ReplaySubject3.prototype.next = function(value) { + var _a2 = this, isStopped = _a2.isStopped, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow, _timestampProvider = _a2._timestampProvider, _windowTime = _a2._windowTime; + if (!isStopped) { + _buffer.push(value); + !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); + } + this._trimBuffer(); + _super.prototype.next.call(this, value); + }; + ReplaySubject3.prototype._subscribe = function(subscriber) { + this._throwIfClosed(); + this._trimBuffer(); + var subscription = this._innerSubscribe(subscriber); + var _a2 = this, _infiniteTimeWindow = _a2._infiniteTimeWindow, _buffer = _a2._buffer; + var copy = _buffer.slice(); + for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { + subscriber.next(copy[i]); + } + this._checkFinalizedStatuses(subscriber); + return subscription; + }; + ReplaySubject3.prototype._trimBuffer = function() { + var _a2 = this, _bufferSize = _a2._bufferSize, _timestampProvider = _a2._timestampProvider, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow; + var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; + _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); + if (!_infiniteTimeWindow) { + var now2 = _timestampProvider.now(); + var last2 = 0; + for (var i = 1; i < _buffer.length && _buffer[i] <= now2; i += 2) { + last2 = i; + } + last2 && _buffer.splice(0, last2 + 1); + } + }; + return ReplaySubject3; + }(Subject_1.Subject); + exports2.ReplaySubject = ReplaySubject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/AsyncSubject.js + var require_AsyncSubject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncSubject = void 0; + var Subject_1 = require_Subject(); + var AsyncSubject = function(_super) { + __extends2(AsyncSubject2, _super); + function AsyncSubject2() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this._value = null; + _this._hasValue = false; + _this._isComplete = false; + return _this; + } + AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) { + var _a2 = this, hasError = _a2.hasError, _hasValue = _a2._hasValue, _value = _a2._value, thrownError = _a2.thrownError, isStopped = _a2.isStopped, _isComplete = _a2._isComplete; + if (hasError) { + subscriber.error(thrownError); + } else if (isStopped || _isComplete) { + _hasValue && subscriber.next(_value); + subscriber.complete(); + } + }; + AsyncSubject2.prototype.next = function(value) { + if (!this.isStopped) { + this._value = value; + this._hasValue = true; + } + }; + AsyncSubject2.prototype.complete = function() { + var _a2 = this, _hasValue = _a2._hasValue, _value = _a2._value, _isComplete = _a2._isComplete; + if (!_isComplete) { + this._isComplete = true; + _hasValue && _super.prototype.next.call(this, _value); + _super.prototype.complete.call(this); + } + }; + return AsyncSubject2; + }(Subject_1.Subject); + exports2.AsyncSubject = AsyncSubject; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/Action.js + var require_Action = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Action = void 0; + var Subscription_1 = require_Subscription(); + var Action2 = function(_super) { + __extends2(Action3, _super); + function Action3(scheduler, work) { + return _super.call(this) || this; + } + Action3.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + return this; + }; + return Action3; + }(Subscription_1.Subscription); + exports2.Action = Action2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js + var require_intervalProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.intervalProvider = void 0; + exports2.intervalProvider = { + setInterval: function(handler, timeout) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + var delegate = exports2.intervalProvider.delegate; + if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { + return delegate.setInterval.apply(delegate, __spreadArray2([handler, timeout], __read2(args))); + } + return setInterval.apply(void 0, __spreadArray2([handler, timeout], __read2(args))); + }, + clearInterval: function(handle) { + var delegate = exports2.intervalProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js + var require_AsyncAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncAction = void 0; + var Action_1 = require_Action(); + var intervalProvider_1 = require_intervalProvider(); + var arrRemove_1 = require_arrRemove(); + var AsyncAction2 = function(_super) { + __extends2(AsyncAction3, _super); + function AsyncAction3(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.pending = false; + return _this; + } + AsyncAction3.prototype.schedule = function(state, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (this.closed) { + return this; + } + this.state = state; + var id4 = this.id; + var scheduler = this.scheduler; + if (id4 != null) { + this.id = this.recycleAsyncId(scheduler, id4, delay); + } + this.pending = true; + this.delay = delay; + this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay); + return this; + }; + AsyncAction3.prototype.requestAsyncId = function(scheduler, _id, delay) { + if (delay === void 0) { + delay = 0; + } + return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); + }; + AsyncAction3.prototype.recycleAsyncId = function(_scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay != null && this.delay === delay && this.pending === false) { + return id4; + } + if (id4 != null) { + intervalProvider_1.intervalProvider.clearInterval(id4); + } + return void 0; + }; + AsyncAction3.prototype.execute = function(state, delay) { + if (this.closed) { + return new Error("executing a cancelled action"); + } + this.pending = false; + var error = this._execute(state, delay); + if (error) { + return error; + } else if (this.pending === false && this.id != null) { + this.id = this.recycleAsyncId(this.scheduler, this.id, null); + } + }; + AsyncAction3.prototype._execute = function(state, _delay) { + var errored = false; + var errorValue; + try { + this.work(state); + } catch (e) { + errored = true; + errorValue = e ? e : new Error("Scheduled action threw falsy error"); + } + if (errored) { + this.unsubscribe(); + return errorValue; + } + }; + AsyncAction3.prototype.unsubscribe = function() { + if (!this.closed) { + var _a2 = this, id4 = _a2.id, scheduler = _a2.scheduler; + var actions = scheduler.actions; + this.work = this.state = this.scheduler = null; + this.pending = false; + arrRemove_1.arrRemove(actions, this); + if (id4 != null) { + this.id = this.recycleAsyncId(scheduler, id4, null); + } + this.delay = null; + _super.prototype.unsubscribe.call(this); + } + }; + return AsyncAction3; + }(Action_1.Action); + exports2.AsyncAction = AsyncAction2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/Immediate.js + var require_Immediate = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/Immediate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TestTools = exports2.Immediate = void 0; + var nextHandle = 1; + var resolved; + var activeHandles = {}; + function findAndClearHandle(handle) { + if (handle in activeHandles) { + delete activeHandles[handle]; + return true; + } + return false; + } + exports2.Immediate = { + setImmediate: function(cb2) { + var handle = nextHandle++; + activeHandles[handle] = true; + if (!resolved) { + resolved = Promise.resolve(); + } + resolved.then(function() { + return findAndClearHandle(handle) && cb2(); + }); + return handle; + }, + clearImmediate: function(handle) { + findAndClearHandle(handle); + } + }; + exports2.TestTools = { + pending: function() { + return Object.keys(activeHandles).length; + } + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js + var require_immediateProvider = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.immediateProvider = void 0; + var Immediate_1 = require_Immediate(); + var setImmediate2 = Immediate_1.Immediate.setImmediate; + var clearImmediate = Immediate_1.Immediate.clearImmediate; + exports2.immediateProvider = { + setImmediate: function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var delegate = exports2.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate2).apply(void 0, __spreadArray2([], __read2(args))); + }, + clearImmediate: function(handle) { + var delegate = exports2.immediateProvider.delegate; + return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); + }, + delegate: void 0 + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js + var require_AsapAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsapAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var immediateProvider_1 = require_immediateProvider(); + var AsapAction = function(_super) { + __extends2(AsapAction2, _super); + function AsapAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + AsapAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0))); + }; + AsapAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id4, delay); + } + var actions = scheduler.actions; + if (id4 != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id4) { + immediateProvider_1.immediateProvider.clearImmediate(id4); + if (scheduler._scheduled === id4) { + scheduler._scheduled = void 0; + } + } + return void 0; + }; + return AsapAction2; + }(AsyncAction_1.AsyncAction); + exports2.AsapAction = AsapAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Scheduler.js + var require_Scheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Scheduler.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Scheduler = void 0; + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var Scheduler2 = function() { + function Scheduler3(schedulerActionCtor, now2) { + if (now2 === void 0) { + now2 = Scheduler3.now; + } + this.schedulerActionCtor = schedulerActionCtor; + this.now = now2; + } + Scheduler3.prototype.schedule = function(work, delay, state) { + if (delay === void 0) { + delay = 0; + } + return new this.schedulerActionCtor(this, work).schedule(state, delay); + }; + Scheduler3.now = dateTimestampProvider_1.dateTimestampProvider.now; + return Scheduler3; + }(); + exports2.Scheduler = Scheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js + var require_AsyncScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsyncScheduler = void 0; + var Scheduler_1 = require_Scheduler(); + var AsyncScheduler2 = function(_super) { + __extends2(AsyncScheduler3, _super); + function AsyncScheduler3(SchedulerAction, now2) { + if (now2 === void 0) { + now2 = Scheduler_1.Scheduler.now; + } + var _this = _super.call(this, SchedulerAction, now2) || this; + _this.actions = []; + _this._active = false; + return _this; + } + AsyncScheduler3.prototype.flush = function(action) { + var actions = this.actions; + if (this._active) { + actions.push(action); + return; + } + var error; + this._active = true; + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while (action = actions.shift()); + this._active = false; + if (error) { + while (action = actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AsyncScheduler3; + }(Scheduler_1.Scheduler); + exports2.AsyncScheduler = AsyncScheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js + var require_AsapScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AsapScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var AsapScheduler = function(_super) { + __extends2(AsapScheduler2, _super); + function AsapScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + AsapScheduler2.prototype.flush = function(action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = void 0; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AsapScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.AsapScheduler = AsapScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/asap.js + var require_asap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.asap = exports2.asapScheduler = void 0; + var AsapAction_1 = require_AsapAction(); + var AsapScheduler_1 = require_AsapScheduler(); + exports2.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction); + exports2.asap = exports2.asapScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/async.js + var require_async = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/async.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.async = exports2.asyncScheduler = void 0; + var AsyncAction_1 = require_AsyncAction(); + var AsyncScheduler_1 = require_AsyncScheduler(); + exports2.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction); + exports2.async = exports2.asyncScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js + var require_QueueAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.QueueAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var QueueAction = function(_super) { + __extends2(QueueAction2, _super); + function QueueAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + QueueAction2.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay > 0) { + return _super.prototype.schedule.call(this, state, delay); + } + this.delay = delay; + this.state = state; + this.scheduler.flush(this); + return this; + }; + QueueAction2.prototype.execute = function(state, delay) { + return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); + }; + QueueAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay != null && delay > 0 || delay == null && this.delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.flush(this); + return 0; + }; + return QueueAction2; + }(AsyncAction_1.AsyncAction); + exports2.QueueAction = QueueAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js + var require_QueueScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.QueueScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var QueueScheduler = function(_super) { + __extends2(QueueScheduler2, _super); + function QueueScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + return QueueScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.QueueScheduler = QueueScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/queue.js + var require_queue = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.queue = exports2.queueScheduler = void 0; + var QueueAction_1 = require_QueueAction(); + var QueueScheduler_1 = require_QueueScheduler(); + exports2.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction); + exports2.queue = exports2.queueScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js + var require_AnimationFrameAction = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnimationFrameAction = void 0; + var AsyncAction_1 = require_AsyncAction(); + var animationFrameProvider_1 = require_animationFrameProvider(); + var AnimationFrameAction = function(_super) { + __extends2(AnimationFrameAction2, _super); + function AnimationFrameAction2(scheduler, work) { + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + return _this; + } + AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + if (delay !== null && delay > 0) { + return _super.prototype.requestAsyncId.call(this, scheduler, id4, delay); + } + scheduler.actions.push(this); + return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function() { + return scheduler.flush(void 0); + })); + }; + AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + var _a2; + if (delay === void 0) { + delay = 0; + } + if (delay != null ? delay > 0 : this.delay > 0) { + return _super.prototype.recycleAsyncId.call(this, scheduler, id4, delay); + } + var actions = scheduler.actions; + if (id4 != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id4) { + animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id4); + scheduler._scheduled = void 0; + } + return void 0; + }; + return AnimationFrameAction2; + }(AsyncAction_1.AsyncAction); + exports2.AnimationFrameAction = AnimationFrameAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js + var require_AnimationFrameScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AnimationFrameScheduler = void 0; + var AsyncScheduler_1 = require_AsyncScheduler(); + var AnimationFrameScheduler = function(_super) { + __extends2(AnimationFrameScheduler2, _super); + function AnimationFrameScheduler2() { + return _super !== null && _super.apply(this, arguments) || this; + } + AnimationFrameScheduler2.prototype.flush = function(action) { + this._active = true; + var flushId = this._scheduled; + this._scheduled = void 0; + var actions = this.actions; + var error; + action = action || actions.shift(); + do { + if (error = action.execute(action.state, action.delay)) { + break; + } + } while ((action = actions[0]) && action.id === flushId && actions.shift()); + this._active = false; + if (error) { + while ((action = actions[0]) && action.id === flushId && actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + return AnimationFrameScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.AnimationFrameScheduler = AnimationFrameScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js + var require_animationFrame = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.animationFrame = exports2.animationFrameScheduler = void 0; + var AnimationFrameAction_1 = require_AnimationFrameAction(); + var AnimationFrameScheduler_1 = require_AnimationFrameScheduler(); + exports2.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction); + exports2.animationFrame = exports2.animationFrameScheduler; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js + var require_VirtualTimeScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"(exports2) { + "use strict"; + var __extends2 = exports2 && exports2.__extends || function() { + var extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d10, b5) { + d10.__proto__ = b5; + } || function(d10, b5) { + for (var p in b5) + if (Object.prototype.hasOwnProperty.call(b5, p)) + d10[p] = b5[p]; + }; + return extendStatics2(d, b); + }; + return function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics2(d, b); + function __2() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__2.prototype = b.prototype, new __2()); + }; + }(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VirtualAction = exports2.VirtualTimeScheduler = void 0; + var AsyncAction_1 = require_AsyncAction(); + var Subscription_1 = require_Subscription(); + var AsyncScheduler_1 = require_AsyncScheduler(); + var VirtualTimeScheduler = function(_super) { + __extends2(VirtualTimeScheduler2, _super); + function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) { + if (schedulerActionCtor === void 0) { + schedulerActionCtor = VirtualAction; + } + if (maxFrames === void 0) { + maxFrames = Infinity; + } + var _this = _super.call(this, schedulerActionCtor, function() { + return _this.frame; + }) || this; + _this.maxFrames = maxFrames; + _this.frame = 0; + _this.index = -1; + return _this; + } + VirtualTimeScheduler2.prototype.flush = function() { + var _a2 = this, actions = _a2.actions, maxFrames = _a2.maxFrames; + var error; + var action; + while ((action = actions[0]) && action.delay <= maxFrames) { + actions.shift(); + this.frame = action.delay; + if (error = action.execute(action.state, action.delay)) { + break; + } + } + if (error) { + while (action = actions.shift()) { + action.unsubscribe(); + } + throw error; + } + }; + VirtualTimeScheduler2.frameTimeFactor = 10; + return VirtualTimeScheduler2; + }(AsyncScheduler_1.AsyncScheduler); + exports2.VirtualTimeScheduler = VirtualTimeScheduler; + var VirtualAction = function(_super) { + __extends2(VirtualAction2, _super); + function VirtualAction2(scheduler, work, index) { + if (index === void 0) { + index = scheduler.index += 1; + } + var _this = _super.call(this, scheduler, work) || this; + _this.scheduler = scheduler; + _this.work = work; + _this.index = index; + _this.active = true; + _this.index = scheduler.index = index; + return _this; + } + VirtualAction2.prototype.schedule = function(state, delay) { + if (delay === void 0) { + delay = 0; + } + if (Number.isFinite(delay)) { + if (!this.id) { + return _super.prototype.schedule.call(this, state, delay); + } + this.active = false; + var action = new VirtualAction2(this.scheduler, this.work); + this.add(action); + return action.schedule(state, delay); + } else { + return Subscription_1.Subscription.EMPTY; + } + }; + VirtualAction2.prototype.requestAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + this.delay = scheduler.frame + delay; + var actions = scheduler.actions; + actions.push(this); + actions.sort(VirtualAction2.sortActions); + return 1; + }; + VirtualAction2.prototype.recycleAsyncId = function(scheduler, id4, delay) { + if (delay === void 0) { + delay = 0; + } + return void 0; + }; + VirtualAction2.prototype._execute = function(state, delay) { + if (this.active === true) { + return _super.prototype._execute.call(this, state, delay); + } + }; + VirtualAction2.sortActions = function(a, b) { + if (a.delay === b.delay) { + if (a.index === b.index) { + return 0; + } else if (a.index > b.index) { + return 1; + } else { + return -1; + } + } else if (a.delay > b.delay) { + return 1; + } else { + return -1; + } + }; + return VirtualAction2; + }(AsyncAction_1.AsyncAction); + exports2.VirtualAction = VirtualAction; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/empty.js + var require_empty3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/empty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.empty = exports2.EMPTY = void 0; + var Observable_1 = require_Observable(); + exports2.EMPTY = new Observable_1.Observable(function(subscriber) { + return subscriber.complete(); + }); + function empty(scheduler) { + return scheduler ? emptyScheduled(scheduler) : exports2.EMPTY; + } + exports2.empty = empty; + function emptyScheduled(scheduler) { + return new Observable_1.Observable(function(subscriber) { + return scheduler.schedule(function() { + return subscriber.complete(); + }); + }); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isScheduler.js + var require_isScheduler = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isScheduler = void 0; + var isFunction_1 = require_isFunction(); + function isScheduler2(value) { + return value && isFunction_1.isFunction(value.schedule); + } + exports2.isScheduler = isScheduler2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/args.js + var require_args = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/args.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.popNumber = exports2.popScheduler = exports2.popResultSelector = void 0; + var isFunction_1 = require_isFunction(); + var isScheduler_1 = require_isScheduler(); + function last2(arr) { + return arr[arr.length - 1]; + } + function popResultSelector2(args) { + return isFunction_1.isFunction(last2(args)) ? args.pop() : void 0; + } + exports2.popResultSelector = popResultSelector2; + function popScheduler2(args) { + return isScheduler_1.isScheduler(last2(args)) ? args.pop() : void 0; + } + exports2.popScheduler = popScheduler2; + function popNumber(args, defaultValue) { + return typeof last2(args) === "number" ? args.pop() : defaultValue; + } + exports2.popNumber = popNumber; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js + var require_isArrayLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isArrayLike = void 0; + exports2.isArrayLike = function(x) { + return x && typeof x.length === "number" && typeof x !== "function"; + }; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isPromise.js + var require_isPromise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isPromise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isPromise = void 0; + var isFunction_1 = require_isFunction(); + function isPromise2(value) { + return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then); + } + exports2.isPromise = isPromise2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js + var require_isInteropObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isInteropObservable = void 0; + var observable_1 = require_observable2(); + var isFunction_1 = require_isFunction(); + function isInteropObservable2(input) { + return isFunction_1.isFunction(input[observable_1.observable]); + } + exports2.isInteropObservable = isInteropObservable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js + var require_isAsyncIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isAsyncIterable = void 0; + var isFunction_1 = require_isFunction(); + function isAsyncIterable2(obj) { + return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); + } + exports2.isAsyncIterable = isAsyncIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js + var require_throwUnobservableError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createInvalidObservableTypeError = void 0; + function createInvalidObservableTypeError2(input) { + return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); + } + exports2.createInvalidObservableTypeError = createInvalidObservableTypeError2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/symbol/iterator.js + var require_iterator = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.iterator = exports2.getSymbolIterator = void 0; + function getSymbolIterator2() { + if (typeof Symbol !== "function" || !Symbol.iterator) { + return "@@iterator"; + } + return Symbol.iterator; + } + exports2.getSymbolIterator = getSymbolIterator2; + exports2.iterator = getSymbolIterator2(); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isIterable.js + var require_isIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isIterable = void 0; + var iterator_1 = require_iterator(); + var isFunction_1 = require_isFunction(); + function isIterable2(input) { + return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]); + } + exports2.isIterable = isIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js + var require_isReadableStreamLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js"(exports2) { + "use strict"; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + var __await2 = exports2 && exports2.__await || function(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); + }; + var __asyncGenerator2 = exports2 && exports2.__asyncGenerator || function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r10) { + r10.value instanceof __await2 ? Promise.resolve(r10.value.v).then(fulfill, reject) : settle(q[0][2], r10); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f10, v) { + if (f10(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isReadableStreamLike = exports2.readableStreamLikeToAsyncGenerator = void 0; + var isFunction_1 = require_isFunction(); + function readableStreamLikeToAsyncGenerator2(readableStream) { + return __asyncGenerator2(this, arguments, function readableStreamLikeToAsyncGenerator_1() { + var reader, _a2, value, done; + return __generator2(this, function(_b2) { + switch (_b2.label) { + case 0: + reader = readableStream.getReader(); + _b2.label = 1; + case 1: + _b2.trys.push([1, , 9, 10]); + _b2.label = 2; + case 2: + if (false) + return [3, 8]; + return [4, __await2(reader.read())]; + case 3: + _a2 = _b2.sent(), value = _a2.value, done = _a2.done; + if (!done) + return [3, 5]; + return [4, __await2(void 0)]; + case 4: + return [2, _b2.sent()]; + case 5: + return [4, __await2(value)]; + case 6: + return [4, _b2.sent()]; + case 7: + _b2.sent(); + return [3, 2]; + case 8: + return [3, 10]; + case 9: + reader.releaseLock(); + return [7]; + case 10: + return [2]; + } + }); + }); + } + exports2.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator2; + function isReadableStreamLike2(obj) { + return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); + } + exports2.isReadableStreamLike = isReadableStreamLike2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js + var require_innerFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + var __asyncValues2 = exports2 && exports2.__asyncValues || function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v5) { + resolve({ value: v5, done: d }); + }, reject); + } + }; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromReadableStreamLike = exports2.fromAsyncIterable = exports2.fromIterable = exports2.fromPromise = exports2.fromArrayLike = exports2.fromInteropObservable = exports2.innerFrom = void 0; + var isArrayLike_1 = require_isArrayLike(); + var isPromise_1 = require_isPromise(); + var Observable_1 = require_Observable(); + var isInteropObservable_1 = require_isInteropObservable(); + var isAsyncIterable_1 = require_isAsyncIterable(); + var throwUnobservableError_1 = require_throwUnobservableError(); + var isIterable_1 = require_isIterable(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + var isFunction_1 = require_isFunction(); + var reportUnhandledError_1 = require_reportUnhandledError(); + var observable_1 = require_observable2(); + function innerFrom2(input) { + if (input instanceof Observable_1.Observable) { + return input; + } + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return fromInteropObservable2(input); + } + if (isArrayLike_1.isArrayLike(input)) { + return fromArrayLike2(input); + } + if (isPromise_1.isPromise(input)) { + return fromPromise2(input); + } + if (isAsyncIterable_1.isAsyncIterable(input)) { + return fromAsyncIterable2(input); + } + if (isIterable_1.isIterable(input)) { + return fromIterable2(input); + } + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return fromReadableStreamLike2(input); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); + } + exports2.innerFrom = innerFrom2; + function fromInteropObservable2(obj) { + return new Observable_1.Observable(function(subscriber) { + var obs = obj[observable_1.observable](); + if (isFunction_1.isFunction(obs.subscribe)) { + return obs.subscribe(subscriber); + } + throw new TypeError("Provided object does not correctly implement Symbol.observable"); + }); + } + exports2.fromInteropObservable = fromInteropObservable2; + function fromArrayLike2(array) { + return new Observable_1.Observable(function(subscriber) { + for (var i = 0; i < array.length && !subscriber.closed; i++) { + subscriber.next(array[i]); + } + subscriber.complete(); + }); + } + exports2.fromArrayLike = fromArrayLike2; + function fromPromise2(promise) { + return new Observable_1.Observable(function(subscriber) { + promise.then(function(value) { + if (!subscriber.closed) { + subscriber.next(value); + subscriber.complete(); + } + }, function(err) { + return subscriber.error(err); + }).then(null, reportUnhandledError_1.reportUnhandledError); + }); + } + exports2.fromPromise = fromPromise2; + function fromIterable2(iterable) { + return new Observable_1.Observable(function(subscriber) { + var e_1, _a2; + try { + for (var iterable_1 = __values2(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { + var value = iterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return; + } + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (iterable_1_1 && !iterable_1_1.done && (_a2 = iterable_1.return)) + _a2.call(iterable_1); + } finally { + if (e_1) + throw e_1.error; + } + } + subscriber.complete(); + }); + } + exports2.fromIterable = fromIterable2; + function fromAsyncIterable2(asyncIterable) { + return new Observable_1.Observable(function(subscriber) { + process3(asyncIterable, subscriber).catch(function(err) { + return subscriber.error(err); + }); + }); + } + exports2.fromAsyncIterable = fromAsyncIterable2; + function fromReadableStreamLike2(readableStream) { + return fromAsyncIterable2(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream)); + } + exports2.fromReadableStreamLike = fromReadableStreamLike2; + function process3(asyncIterable, subscriber) { + var asyncIterable_1, asyncIterable_1_1; + var e_2, _a2; + return __awaiter16(this, void 0, void 0, function() { + var value, e_2_1; + return __generator2(this, function(_b2) { + switch (_b2.label) { + case 0: + _b2.trys.push([0, 5, 6, 11]); + asyncIterable_1 = __asyncValues2(asyncIterable); + _b2.label = 1; + case 1: + return [4, asyncIterable_1.next()]; + case 2: + if (!(asyncIterable_1_1 = _b2.sent(), !asyncIterable_1_1.done)) + return [3, 4]; + value = asyncIterable_1_1.value; + subscriber.next(value); + if (subscriber.closed) { + return [2]; + } + _b2.label = 3; + case 3: + return [3, 1]; + case 4: + return [3, 11]; + case 5: + e_2_1 = _b2.sent(); + e_2 = { error: e_2_1 }; + return [3, 11]; + case 6: + _b2.trys.push([6, , 9, 10]); + if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a2 = asyncIterable_1.return))) + return [3, 8]; + return [4, _a2.call(asyncIterable_1)]; + case 7: + _b2.sent(); + _b2.label = 8; + case 8: + return [3, 10]; + case 9: + if (e_2) + throw e_2.error; + return [7]; + case 10: + return [7]; + case 11: + subscriber.complete(); + return [2]; + } + }); + }); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js + var require_executeSchedule = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.executeSchedule = void 0; + function executeSchedule2(parentSubscription, scheduler, work, delay, repeat) { + if (delay === void 0) { + delay = 0; + } + if (repeat === void 0) { + repeat = false; + } + var scheduleSubscription = scheduler.schedule(function() { + work(); + if (repeat) { + parentSubscription.add(this.schedule(null, delay)); + } else { + this.unsubscribe(); + } + }, delay); + parentSubscription.add(scheduleSubscription); + if (!repeat) { + return scheduleSubscription; + } + } + exports2.executeSchedule = executeSchedule2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/observeOn.js + var require_observeOn = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observeOn = void 0; + var executeSchedule_1 = require_executeSchedule(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function observeOn2(scheduler, delay) { + if (delay === void 0) { + delay = 0; + } + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.next(value); + }, delay); + }, function() { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.complete(); + }, delay); + }, function(err) { + return executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + return subscriber.error(err); + }, delay); + })); + }); + } + exports2.observeOn = observeOn2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js + var require_subscribeOn = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeOn = void 0; + var lift_1 = require_lift(); + function subscribeOn2(scheduler, delay) { + if (delay === void 0) { + delay = 0; + } + return lift_1.operate(function(source, subscriber) { + subscriber.add(scheduler.schedule(function() { + return source.subscribe(subscriber); + }, delay)); + }); + } + exports2.subscribeOn = subscribeOn2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js + var require_scheduleObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleObservable = void 0; + var innerFrom_1 = require_innerFrom(); + var observeOn_1 = require_observeOn(); + var subscribeOn_1 = require_subscribeOn(); + function scheduleObservable2(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + } + exports2.scheduleObservable = scheduleObservable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js + var require_schedulePromise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.schedulePromise = void 0; + var innerFrom_1 = require_innerFrom(); + var observeOn_1 = require_observeOn(); + var subscribeOn_1 = require_subscribeOn(); + function schedulePromise2(input, scheduler) { + return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + } + exports2.schedulePromise = schedulePromise2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js + var require_scheduleArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleArray = void 0; + var Observable_1 = require_Observable(); + function scheduleArray2(input, scheduler) { + return new Observable_1.Observable(function(subscriber) { + var i = 0; + return scheduler.schedule(function() { + if (i === input.length) { + subscriber.complete(); + } else { + subscriber.next(input[i++]); + if (!subscriber.closed) { + this.schedule(); + } + } + }); + }); + } + exports2.scheduleArray = scheduleArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js + var require_scheduleIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleIterable = void 0; + var Observable_1 = require_Observable(); + var iterator_1 = require_iterator(); + var isFunction_1 = require_isFunction(); + var executeSchedule_1 = require_executeSchedule(); + function scheduleIterable2(input, scheduler) { + return new Observable_1.Observable(function(subscriber) { + var iterator2; + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + iterator2 = input[iterator_1.iterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + var _a2; + var value; + var done; + try { + _a2 = iterator2.next(), value = _a2.value, done = _a2.done; + } catch (err) { + subscriber.error(err); + return; + } + if (done) { + subscriber.complete(); + } else { + subscriber.next(value); + } + }, 0, true); + }); + return function() { + return isFunction_1.isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return(); + }; + }); + } + exports2.scheduleIterable = scheduleIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js + var require_scheduleAsyncIterable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleAsyncIterable = void 0; + var Observable_1 = require_Observable(); + var executeSchedule_1 = require_executeSchedule(); + function scheduleAsyncIterable2(input, scheduler) { + if (!input) { + throw new Error("Iterable cannot be null"); + } + return new Observable_1.Observable(function(subscriber) { + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + var iterator2 = input[Symbol.asyncIterator](); + executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + iterator2.next().then(function(result) { + if (result.done) { + subscriber.complete(); + } else { + subscriber.next(result.value); + } + }); + }, 0, true); + }); + }); + } + exports2.scheduleAsyncIterable = scheduleAsyncIterable2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js + var require_scheduleReadableStreamLike = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduleReadableStreamLike = void 0; + var scheduleAsyncIterable_1 = require_scheduleAsyncIterable(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + function scheduleReadableStreamLike2(input, scheduler) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler); + } + exports2.scheduleReadableStreamLike = scheduleReadableStreamLike2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js + var require_scheduled = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scheduled = void 0; + var scheduleObservable_1 = require_scheduleObservable(); + var schedulePromise_1 = require_schedulePromise(); + var scheduleArray_1 = require_scheduleArray(); + var scheduleIterable_1 = require_scheduleIterable(); + var scheduleAsyncIterable_1 = require_scheduleAsyncIterable(); + var isInteropObservable_1 = require_isInteropObservable(); + var isPromise_1 = require_isPromise(); + var isArrayLike_1 = require_isArrayLike(); + var isIterable_1 = require_isIterable(); + var isAsyncIterable_1 = require_isAsyncIterable(); + var throwUnobservableError_1 = require_throwUnobservableError(); + var isReadableStreamLike_1 = require_isReadableStreamLike(); + var scheduleReadableStreamLike_1 = require_scheduleReadableStreamLike(); + function scheduled2(input, scheduler) { + if (input != null) { + if (isInteropObservable_1.isInteropObservable(input)) { + return scheduleObservable_1.scheduleObservable(input, scheduler); + } + if (isArrayLike_1.isArrayLike(input)) { + return scheduleArray_1.scheduleArray(input, scheduler); + } + if (isPromise_1.isPromise(input)) { + return schedulePromise_1.schedulePromise(input, scheduler); + } + if (isAsyncIterable_1.isAsyncIterable(input)) { + return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler); + } + if (isIterable_1.isIterable(input)) { + return scheduleIterable_1.scheduleIterable(input, scheduler); + } + if (isReadableStreamLike_1.isReadableStreamLike(input)) { + return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler); + } + } + throw throwUnobservableError_1.createInvalidObservableTypeError(input); + } + exports2.scheduled = scheduled2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/from.js + var require_from = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/from.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.from = void 0; + var scheduled_1 = require_scheduled(); + var innerFrom_1 = require_innerFrom(); + function from2(input, scheduler) { + return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input); + } + exports2.from = from2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/of.js + var require_of = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/of.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.of = void 0; + var args_1 = require_args(); + var from_1 = require_from(); + function of4() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + return from_1.from(args, scheduler); + } + exports2.of = of4; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/throwError.js + var require_throwError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/throwError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throwError = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + function throwError(errorOrErrorFactory, scheduler) { + var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() { + return errorOrErrorFactory; + }; + var init2 = function(subscriber) { + return subscriber.error(errorFactory()); + }; + return new Observable_1.Observable(scheduler ? function(subscriber) { + return scheduler.schedule(init2, 0, subscriber); + } : init2); + } + exports2.throwError = throwError; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/Notification.js + var require_Notification = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/Notification.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.observeNotification = exports2.Notification = exports2.NotificationKind = void 0; + var empty_1 = require_empty3(); + var of_1 = require_of(); + var throwError_1 = require_throwError(); + var isFunction_1 = require_isFunction(); + var NotificationKind; + (function(NotificationKind2) { + NotificationKind2["NEXT"] = "N"; + NotificationKind2["ERROR"] = "E"; + NotificationKind2["COMPLETE"] = "C"; + })(NotificationKind = exports2.NotificationKind || (exports2.NotificationKind = {})); + var Notification = function() { + function Notification2(kind, value, error) { + this.kind = kind; + this.value = value; + this.error = error; + this.hasValue = kind === "N"; + } + Notification2.prototype.observe = function(observer) { + return observeNotification(this, observer); + }; + Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) { + var _a2 = this, kind = _a2.kind, value = _a2.value, error = _a2.error; + return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); + }; + Notification2.prototype.accept = function(nextOrObserver, error, complete) { + var _a2; + return isFunction_1.isFunction((_a2 = nextOrObserver) === null || _a2 === void 0 ? void 0 : _a2.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete); + }; + Notification2.prototype.toObservable = function() { + var _a2 = this, kind = _a2.kind, value = _a2.value, error = _a2.error; + var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() { + return error; + }) : kind === "C" ? empty_1.EMPTY : 0; + if (!result) { + throw new TypeError("Unexpected notification kind " + kind); + } + return result; + }; + Notification2.createNext = function(value) { + return new Notification2("N", value); + }; + Notification2.createError = function(err) { + return new Notification2("E", void 0, err); + }; + Notification2.createComplete = function() { + return Notification2.completeNotification; + }; + Notification2.completeNotification = new Notification2("C"); + return Notification2; + }(); + exports2.Notification = Notification; + function observeNotification(notification, observer) { + var _a2, _b2, _c2; + var _d2 = notification, kind = _d2.kind, value = _d2.value, error = _d2.error; + if (typeof kind !== "string") { + throw new TypeError('Invalid notification, missing "kind"'); + } + kind === "N" ? (_a2 = observer.next) === null || _a2 === void 0 ? void 0 : _a2.call(observer, value) : kind === "E" ? (_b2 = observer.error) === null || _b2 === void 0 ? void 0 : _b2.call(observer, error) : (_c2 = observer.complete) === null || _c2 === void 0 ? void 0 : _c2.call(observer); + } + exports2.observeNotification = observeNotification; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isObservable.js + var require_isObservable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isObservable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isObservable = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + function isObservable(obj) { + return !!obj && (obj instanceof Observable_1.Observable || isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe)); + } + exports2.isObservable = isObservable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/EmptyError.js + var require_EmptyError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EmptyError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.EmptyError = createErrorClass_1.createErrorClass(function(_super) { + return function EmptyErrorImpl() { + _super(this); + this.name = "EmptyError"; + this.message = "no elements in sequence"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/lastValueFrom.js + var require_lastValueFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lastValueFrom = void 0; + var EmptyError_1 = require_EmptyError(); + function lastValueFrom(source, config7) { + var hasConfig = typeof config7 === "object"; + return new Promise(function(resolve, reject) { + var _hasValue = false; + var _value; + source.subscribe({ + next: function(value) { + _value = value; + _hasValue = true; + }, + error: reject, + complete: function() { + if (_hasValue) { + resolve(_value); + } else if (hasConfig) { + resolve(config7.defaultValue); + } else { + reject(new EmptyError_1.EmptyError()); + } + } + }); + }); + } + exports2.lastValueFrom = lastValueFrom; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/firstValueFrom.js + var require_firstValueFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.firstValueFrom = void 0; + var EmptyError_1 = require_EmptyError(); + var Subscriber_1 = require_Subscriber(); + function firstValueFrom2(source, config7) { + var hasConfig = typeof config7 === "object"; + return new Promise(function(resolve, reject) { + var subscriber = new Subscriber_1.SafeSubscriber({ + next: function(value) { + resolve(value); + subscriber.unsubscribe(); + }, + error: reject, + complete: function() { + if (hasConfig) { + resolve(config7.defaultValue); + } else { + reject(new EmptyError_1.EmptyError()); + } + } + }); + source.subscribe(subscriber); + }); + } + exports2.firstValueFrom = firstValueFrom2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js + var require_ArgumentOutOfRangeError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ArgumentOutOfRangeError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function(_super) { + return function ArgumentOutOfRangeErrorImpl() { + _super(this); + this.name = "ArgumentOutOfRangeError"; + this.message = "argument out of range"; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js + var require_NotFoundError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.NotFoundError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.NotFoundError = createErrorClass_1.createErrorClass(function(_super) { + return function NotFoundErrorImpl(message) { + _super(this); + this.name = "NotFoundError"; + this.message = message; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/SequenceError.js + var require_SequenceError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SequenceError = void 0; + var createErrorClass_1 = require_createErrorClass(); + exports2.SequenceError = createErrorClass_1.createErrorClass(function(_super) { + return function SequenceErrorImpl(message) { + _super(this); + this.name = "SequenceError"; + this.message = message; + }; + }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/isDate.js + var require_isDate = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/isDate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isValidDate = void 0; + function isValidDate(value) { + return value instanceof Date && !isNaN(value); + } + exports2.isValidDate = isValidDate; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeout.js + var require_timeout = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeout.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeout = exports2.TimeoutError = void 0; + var async_1 = require_async(); + var isDate_1 = require_isDate(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var createErrorClass_1 = require_createErrorClass(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var executeSchedule_1 = require_executeSchedule(); + exports2.TimeoutError = createErrorClass_1.createErrorClass(function(_super) { + return function TimeoutErrorImpl(info) { + if (info === void 0) { + info = null; + } + _super(this); + this.message = "Timeout has occurred"; + this.name = "TimeoutError"; + this.info = info; + }; + }); + function timeout(config7, schedulerArg) { + var _a2 = isDate_1.isValidDate(config7) ? { first: config7 } : typeof config7 === "number" ? { each: config7 } : config7, first = _a2.first, each = _a2.each, _b2 = _a2.with, _with = _b2 === void 0 ? timeoutErrorFactory : _b2, _c2 = _a2.scheduler, scheduler = _c2 === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c2, _d2 = _a2.meta, meta2 = _d2 === void 0 ? null : _d2; + if (first == null && each == null) { + throw new TypeError("No timeout provided."); + } + return lift_1.operate(function(source, subscriber) { + var originalSourceSubscription; + var timerSubscription; + var lastValue = null; + var seen = 0; + var startTimer = function(delay) { + timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function() { + try { + originalSourceSubscription.unsubscribe(); + innerFrom_1.innerFrom(_with({ + meta: meta2, + lastValue, + seen + })).subscribe(subscriber); + } catch (err) { + subscriber.error(err); + } + }, delay); + }; + originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + seen++; + subscriber.next(lastValue = value); + each > 0 && startTimer(each); + }, void 0, void 0, function() { + if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { + timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); + } + lastValue = null; + })); + !seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each); + }); + } + exports2.timeout = timeout; + function timeoutErrorFactory(info) { + throw new exports2.TimeoutError(info); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/map.js + var require_map = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/map.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.map = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function map2(project, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + subscriber.next(project.call(thisArg, value, index++)); + })); + }); + } + exports2.map = map2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js + var require_mapOneOrManyArgs = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapOneOrManyArgs = void 0; + var map_1 = require_map(); + var isArray4 = Array.isArray; + function callOrApply2(fn2, args) { + return isArray4(args) ? fn2.apply(void 0, __spreadArray2([], __read2(args))) : fn2(args); + } + function mapOneOrManyArgs2(fn2) { + return map_1.map(function(args) { + return callOrApply2(fn2, args); + }); + } + exports2.mapOneOrManyArgs = mapOneOrManyArgs2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js + var require_bindCallbackInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindCallbackInternals = void 0; + var isScheduler_1 = require_isScheduler(); + var Observable_1 = require_Observable(); + var subscribeOn_1 = require_subscribeOn(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var observeOn_1 = require_observeOn(); + var AsyncSubject_1 = require_AsyncSubject(); + function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { + if (resultSelector) { + if (isScheduler_1.isScheduler(resultSelector)) { + scheduler = resultSelector; + } else { + return function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler).apply(this, args).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + }; + } + } + if (scheduler) { + return function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return bindCallbackInternals(isNodeStyle, callbackFunc).apply(this, args).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); + }; + } + return function() { + var _this = this; + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var subject2 = new AsyncSubject_1.AsyncSubject(); + var uninitialized = true; + return new Observable_1.Observable(function(subscriber) { + var subs = subject2.subscribe(subscriber); + if (uninitialized) { + uninitialized = false; + var isAsync_1 = false; + var isComplete_1 = false; + callbackFunc.apply(_this, __spreadArray2(__spreadArray2([], __read2(args)), [ + function() { + var results = []; + for (var _i3 = 0; _i3 < arguments.length; _i3++) { + results[_i3] = arguments[_i3]; + } + if (isNodeStyle) { + var err = results.shift(); + if (err != null) { + subject2.error(err); + return; + } + } + subject2.next(1 < results.length ? results : results[0]); + isComplete_1 = true; + if (isAsync_1) { + subject2.complete(); + } + } + ])); + if (isComplete_1) { + subject2.complete(); + } + isAsync_1 = true; + } + return subs; + }); + }; + } + exports2.bindCallbackInternals = bindCallbackInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js + var require_bindCallback = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindCallback = void 0; + var bindCallbackInternals_1 = require_bindCallbackInternals(); + function bindCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); + } + exports2.bindCallback = bindCallback; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js + var require_bindNodeCallback = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bindNodeCallback = void 0; + var bindCallbackInternals_1 = require_bindCallbackInternals(); + function bindNodeCallback(callbackFunc, resultSelector, scheduler) { + return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); + } + exports2.bindNodeCallback = bindNodeCallback; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js + var require_argsArgArrayOrObject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.argsArgArrayOrObject = void 0; + var isArray4 = Array.isArray; + var getPrototypeOf2 = Object.getPrototypeOf; + var objectProto2 = Object.prototype; + var getKeys2 = Object.keys; + function argsArgArrayOrObject2(args) { + if (args.length === 1) { + var first_1 = args[0]; + if (isArray4(first_1)) { + return { args: first_1, keys: null }; + } + if (isPOJO2(first_1)) { + var keys = getKeys2(first_1); + return { + args: keys.map(function(key2) { + return first_1[key2]; + }), + keys + }; + } + } + return { args, keys: null }; + } + exports2.argsArgArrayOrObject = argsArgArrayOrObject2; + function isPOJO2(obj) { + return obj && typeof obj === "object" && getPrototypeOf2(obj) === objectProto2; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/createObject.js + var require_createObject = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/createObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createObject = void 0; + function createObject2(keys, values) { + return keys.reduce(function(result, key2, i) { + return result[key2] = values[i], result; + }, {}); + } + exports2.createObject = createObject2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js + var require_combineLatest = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestInit = exports2.combineLatest = void 0; + var Observable_1 = require_Observable(); + var argsArgArrayOrObject_1 = require_argsArgArrayOrObject(); + var from_1 = require_from(); + var identity_1 = require_identity(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var args_1 = require_args(); + var createObject_1 = require_createObject(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var executeSchedule_1 = require_executeSchedule(); + function combineLatest3() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var resultSelector = args_1.popResultSelector(args); + var _a2 = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a2.args, keys = _a2.keys; + if (observables.length === 0) { + return from_1.from([], scheduler); + } + var result = new Observable_1.Observable(combineLatestInit2(observables, scheduler, keys ? function(values) { + return createObject_1.createObject(keys, values); + } : identity_1.identity)); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; + } + exports2.combineLatest = combineLatest3; + function combineLatestInit2(observables, scheduler, valueTransform) { + if (valueTransform === void 0) { + valueTransform = identity_1.identity; + } + return function(subscriber) { + maybeSchedule2(scheduler, function() { + var length = observables.length; + var values = new Array(length); + var active = length; + var remainingFirstValues = length; + var _loop_1 = function(i10) { + maybeSchedule2(scheduler, function() { + var source = from_1.from(observables[i10], scheduler); + var hasFirstValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + values[i10] = value; + if (!hasFirstValue) { + hasFirstValue = true; + remainingFirstValues--; + } + if (!remainingFirstValues) { + subscriber.next(valueTransform(values.slice())); + } + }, function() { + if (!--active) { + subscriber.complete(); + } + })); + }, subscriber); + }; + for (var i = 0; i < length; i++) { + _loop_1(i); + } + }, subscriber); + }; + } + exports2.combineLatestInit = combineLatestInit2; + function maybeSchedule2(scheduler, execute, subscription) { + if (scheduler) { + executeSchedule_1.executeSchedule(subscription, scheduler, execute); + } else { + execute(); + } + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js + var require_mergeInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeInternals = void 0; + var innerFrom_1 = require_innerFrom(); + var executeSchedule_1 = require_executeSchedule(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { + var buffer = []; + var active = 0; + var index = 0; + var isComplete = false; + var checkComplete = function() { + if (isComplete && !buffer.length && !active) { + subscriber.complete(); + } + }; + var outerNext = function(value) { + return active < concurrent ? doInnerSub(value) : buffer.push(value); + }; + var doInnerSub = function(value) { + expand && subscriber.next(value); + active++; + var innerComplete = false; + innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) { + onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); + if (expand) { + outerNext(innerValue); + } else { + subscriber.next(innerValue); + } + }, function() { + innerComplete = true; + }, void 0, function() { + if (innerComplete) { + try { + active--; + var _loop_1 = function() { + var bufferedValue = buffer.shift(); + if (innerSubScheduler) { + executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function() { + return doInnerSub(bufferedValue); + }); + } else { + doInnerSub(bufferedValue); + } + }; + while (buffer.length && active < concurrent) { + _loop_1(); + } + checkComplete(); + } catch (err) { + subscriber.error(err); + } + } + })); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function() { + isComplete = true; + checkComplete(); + })); + return function() { + additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); + }; + } + exports2.mergeInternals = mergeInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js + var require_mergeMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeMap = void 0; + var map_1 = require_map(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + var isFunction_1 = require_isFunction(); + function mergeMap(project, resultSelector, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap(function(a, i) { + return map_1.map(function(b, ii2) { + return resultSelector(a, b, i, ii2); + })(innerFrom_1.innerFrom(project(a, i))); + }, concurrent); + } else if (typeof resultSelector === "number") { + concurrent = resultSelector; + } + return lift_1.operate(function(source, subscriber) { + return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent); + }); + } + exports2.mergeMap = mergeMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js + var require_mergeAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeAll = void 0; + var mergeMap_1 = require_mergeMap(); + var identity_1 = require_identity(); + function mergeAll(concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + return mergeMap_1.mergeMap(identity_1.identity, concurrent); + } + exports2.mergeAll = mergeAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatAll.js + var require_concatAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatAll = void 0; + var mergeAll_1 = require_mergeAll(); + function concatAll() { + return mergeAll_1.mergeAll(1); + } + exports2.concatAll = concatAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/concat.js + var require_concat2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/concat.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concat = void 0; + var concatAll_1 = require_concatAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function concat12() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args))); + } + exports2.concat = concat12; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/defer.js + var require_defer = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/defer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defer = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + function defer(observableFactory) { + return new Observable_1.Observable(function(subscriber) { + innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber); + }); + } + exports2.defer = defer; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/connectable.js + var require_connectable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/connectable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.connectable = void 0; + var Subject_1 = require_Subject(); + var Observable_1 = require_Observable(); + var defer_1 = require_defer(); + var DEFAULT_CONFIG = { + connector: function() { + return new Subject_1.Subject(); + }, + resetOnDisconnect: true + }; + function connectable(source, config7) { + if (config7 === void 0) { + config7 = DEFAULT_CONFIG; + } + var connection = null; + var connector = config7.connector, _a2 = config7.resetOnDisconnect, resetOnDisconnect = _a2 === void 0 ? true : _a2; + var subject2 = connector(); + var result = new Observable_1.Observable(function(subscriber) { + return subject2.subscribe(subscriber); + }); + result.connect = function() { + if (!connection || connection.closed) { + connection = defer_1.defer(function() { + return source; + }).subscribe(subject2); + if (resetOnDisconnect) { + connection.add(function() { + return subject2 = connector(); + }); + } + } + return connection; + }; + return result; + } + exports2.connectable = connectable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js + var require_forkJoin = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.forkJoin = void 0; + var Observable_1 = require_Observable(); + var argsArgArrayOrObject_1 = require_argsArgArrayOrObject(); + var innerFrom_1 = require_innerFrom(); + var args_1 = require_args(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var createObject_1 = require_createObject(); + function forkJoin() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + var _a2 = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a2.args, keys = _a2.keys; + var result = new Observable_1.Observable(function(subscriber) { + var length = sources.length; + if (!length) { + subscriber.complete(); + return; + } + var values = new Array(length); + var remainingCompletions = length; + var remainingEmissions = length; + var _loop_1 = function(sourceIndex2) { + var hasValue = false; + innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (!hasValue) { + hasValue = true; + remainingEmissions--; + } + values[sourceIndex2] = value; + }, function() { + return remainingCompletions--; + }, void 0, function() { + if (!remainingCompletions || !hasValue) { + if (!remainingEmissions) { + subscriber.next(keys ? createObject_1.createObject(keys, values) : values); + } + subscriber.complete(); + } + })); + }; + for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { + _loop_1(sourceIndex); + } + }); + return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; + } + exports2.forkJoin = forkJoin; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js + var require_fromEvent = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromEvent = void 0; + var innerFrom_1 = require_innerFrom(); + var Observable_1 = require_Observable(); + var mergeMap_1 = require_mergeMap(); + var isArrayLike_1 = require_isArrayLike(); + var isFunction_1 = require_isFunction(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var nodeEventEmitterMethods = ["addListener", "removeListener"]; + var eventTargetMethods = ["addEventListener", "removeEventListener"]; + var jqueryMethods = ["on", "off"]; + function fromEvent(target, eventName, options, resultSelector) { + if (isFunction_1.isFunction(options)) { + resultSelector = options; + options = void 0; + } + if (resultSelector) { + return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + var _a2 = __read2(isEventTarget(target) ? eventTargetMethods.map(function(methodName) { + return function(handler) { + return target[methodName](eventName, handler, options); + }; + }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add6 = _a2[0], remove2 = _a2[1]; + if (!add6) { + if (isArrayLike_1.isArrayLike(target)) { + return mergeMap_1.mergeMap(function(subTarget) { + return fromEvent(subTarget, eventName, options); + })(innerFrom_1.innerFrom(target)); + } + } + if (!add6) { + throw new TypeError("Invalid event target"); + } + return new Observable_1.Observable(function(subscriber) { + var handler = function() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return subscriber.next(1 < args.length ? args : args[0]); + }; + add6(handler); + return function() { + return remove2(handler); + }; + }); + } + exports2.fromEvent = fromEvent; + function toCommonHandlerRegistry(target, eventName) { + return function(methodName) { + return function(handler) { + return target[methodName](eventName, handler); + }; + }; + } + function isNodeStyleEventEmitter(target) { + return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener); + } + function isJQueryStyleEventEmitter(target) { + return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off); + } + function isEventTarget(target) { + return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js + var require_fromEventPattern = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromEventPattern = void 0; + var Observable_1 = require_Observable(); + var isFunction_1 = require_isFunction(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + function fromEventPattern(addHandler, removeHandler, resultSelector) { + if (resultSelector) { + return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); + } + return new Observable_1.Observable(function(subscriber) { + var handler = function() { + var e = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + e[_i2] = arguments[_i2]; + } + return subscriber.next(e.length === 1 ? e[0] : e); + }; + var retValue = addHandler(handler); + return isFunction_1.isFunction(removeHandler) ? function() { + return removeHandler(handler, retValue); + } : void 0; + }); + } + exports2.fromEventPattern = fromEventPattern; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/generate.js + var require_generate2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/generate.js"(exports2) { + "use strict"; + var __generator2 = exports2 && exports2.__generator || function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f10, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op2) { + if (f10) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f10 = 1, y && (t = op2[0] & 2 ? y["return"] : op2[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op2[1])).done) + return t; + if (y = 0, t) + op2 = [op2[0] & 2, t.value]; + switch (op2[0]) { + case 0: + case 1: + t = op2; + break; + case 4: + _.label++; + return { value: op2[1], done: false }; + case 5: + _.label++; + y = op2[1]; + op2 = [0]; + continue; + case 7: + op2 = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op2[0] === 6 || op2[0] === 2)) { + _ = 0; + continue; + } + if (op2[0] === 3 && (!t || op2[1] > t[0] && op2[1] < t[3])) { + _.label = op2[1]; + break; + } + if (op2[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op2; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op2); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op2 = body.call(thisArg, _); + } catch (e) { + op2 = [6, e]; + y = 0; + } finally { + f10 = t = 0; + } + if (op2[0] & 5) + throw op2[1]; + return { value: op2[0] ? op2[1] : void 0, done: true }; + } + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.generate = void 0; + var identity_1 = require_identity(); + var isScheduler_1 = require_isScheduler(); + var defer_1 = require_defer(); + var scheduleIterable_1 = require_scheduleIterable(); + function generate3(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { + var _a2, _b2; + var resultSelector; + var initialState; + if (arguments.length === 1) { + _a2 = initialStateOrOptions, initialState = _a2.initialState, condition = _a2.condition, iterate = _a2.iterate, _b2 = _a2.resultSelector, resultSelector = _b2 === void 0 ? identity_1.identity : _b2, scheduler = _a2.scheduler; + } else { + initialState = initialStateOrOptions; + if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) { + resultSelector = identity_1.identity; + scheduler = resultSelectorOrScheduler; + } else { + resultSelector = resultSelectorOrScheduler; + } + } + function gen3() { + var state; + return __generator2(this, function(_a3) { + switch (_a3.label) { + case 0: + state = initialState; + _a3.label = 1; + case 1: + if (!(!condition || condition(state))) + return [3, 4]; + return [4, resultSelector(state)]; + case 2: + _a3.sent(); + _a3.label = 3; + case 3: + state = iterate(state); + return [3, 1]; + case 4: + return [2]; + } + }); + } + return defer_1.defer(scheduler ? function() { + return scheduleIterable_1.scheduleIterable(gen3(), scheduler); + } : gen3); + } + exports2.generate = generate3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/iif.js + var require_iif = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/iif.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.iif = void 0; + var defer_1 = require_defer(); + function iif(condition, trueResult, falseResult) { + return defer_1.defer(function() { + return condition() ? trueResult : falseResult; + }); + } + exports2.iif = iif; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/timer.js + var require_timer = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/timer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timer = void 0; + var Observable_1 = require_Observable(); + var async_1 = require_async(); + var isScheduler_1 = require_isScheduler(); + var isDate_1 = require_isDate(); + function timer2(dueTime, intervalOrScheduler, scheduler) { + if (dueTime === void 0) { + dueTime = 0; + } + if (scheduler === void 0) { + scheduler = async_1.async; + } + var intervalDuration = -1; + if (intervalOrScheduler != null) { + if (isScheduler_1.isScheduler(intervalOrScheduler)) { + scheduler = intervalOrScheduler; + } else { + intervalDuration = intervalOrScheduler; + } + } + return new Observable_1.Observable(function(subscriber) { + var due2 = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; + if (due2 < 0) { + due2 = 0; + } + var n = 0; + return scheduler.schedule(function() { + if (!subscriber.closed) { + subscriber.next(n++); + if (0 <= intervalDuration) { + this.schedule(void 0, intervalDuration); + } else { + subscriber.complete(); + } + } + }, due2); + }); + } + exports2.timer = timer2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/interval.js + var require_interval = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/interval.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.interval = void 0; + var async_1 = require_async(); + var timer_1 = require_timer(); + function interval(period, scheduler) { + if (period === void 0) { + period = 0; + } + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + if (period < 0) { + period = 0; + } + return timer_1.timer(period, period, scheduler); + } + exports2.interval = interval; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/merge.js + var require_merge = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/merge.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.merge = void 0; + var mergeAll_1 = require_mergeAll(); + var innerFrom_1 = require_innerFrom(); + var empty_1 = require_empty3(); + var args_1 = require_args(); + var from_1 = require_from(); + function merge() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + var sources = args; + return !sources.length ? empty_1.EMPTY : sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler)); + } + exports2.merge = merge; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/never.js + var require_never = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/never.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.never = exports2.NEVER = void 0; + var Observable_1 = require_Observable(); + var noop_1 = require_noop2(); + exports2.NEVER = new Observable_1.Observable(noop_1.noop); + function never() { + return exports2.NEVER; + } + exports2.never = never; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js + var require_argsOrArgArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.argsOrArgArray = void 0; + var isArray4 = Array.isArray; + function argsOrArgArray2(args) { + return args.length === 1 && isArray4(args[0]) ? args[0] : args; + } + exports2.argsOrArgArray = argsOrArgArray2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js + var require_onErrorResumeNext = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.onErrorResumeNext = void 0; + var Observable_1 = require_Observable(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function onErrorResumeNext() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return new Observable_1.Observable(function(subscriber) { + var sourceIndex = 0; + var subscribeNext = function() { + if (sourceIndex < nextSources.length) { + var nextSource = void 0; + try { + nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]); + } catch (err) { + subscribeNext(); + return; + } + var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop); + nextSource.subscribe(innerSubscriber); + innerSubscriber.add(subscribeNext); + } else { + subscriber.complete(); + } + }; + subscribeNext(); + }); + } + exports2.onErrorResumeNext = onErrorResumeNext; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/pairs.js + var require_pairs = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/pairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairs = void 0; + var from_1 = require_from(); + function pairs(obj, scheduler) { + return from_1.from(Object.entries(obj), scheduler); + } + exports2.pairs = pairs; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/util/not.js + var require_not = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/util/not.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.not = void 0; + function not(pred, thisArg) { + return function(value, index) { + return !pred.call(thisArg, value, index); + }; + } + exports2.not = not; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/filter.js + var require_filter2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/filter.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filter = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function filter(predicate, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return predicate.call(thisArg, value, index++) && subscriber.next(value); + })); + }); + } + exports2.filter = filter; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/partition.js + var require_partition = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/partition.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.partition = void 0; + var not_1 = require_not(); + var filter_1 = require_filter2(); + var innerFrom_1 = require_innerFrom(); + function partition(source, predicate, thisArg) { + return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))]; + } + exports2.partition = partition; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/race.js + var require_race = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/race.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.raceInit = exports2.race = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function race() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + sources = argsOrArgArray_1.argsOrArgArray(sources); + return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources)); + } + exports2.race = race; + function raceInit(sources) { + return function(subscriber) { + var subscriptions = []; + var _loop_1 = function(i10) { + subscriptions.push(innerFrom_1.innerFrom(sources[i10]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (subscriptions) { + for (var s = 0; s < subscriptions.length; s++) { + s !== i10 && subscriptions[s].unsubscribe(); + } + subscriptions = null; + } + subscriber.next(value); + }))); + }; + for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { + _loop_1(i); + } + }; + } + exports2.raceInit = raceInit; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/range.js + var require_range2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/range.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.range = void 0; + var Observable_1 = require_Observable(); + var empty_1 = require_empty3(); + function range(start, count, scheduler) { + if (count == null) { + count = start; + start = 0; + } + if (count <= 0) { + return empty_1.EMPTY; + } + var end = count + start; + return new Observable_1.Observable(scheduler ? function(subscriber) { + var n = start; + return scheduler.schedule(function() { + if (n < end) { + subscriber.next(n++); + this.schedule(); + } else { + subscriber.complete(); + } + }); + } : function(subscriber) { + var n = start; + while (n < end && !subscriber.closed) { + subscriber.next(n++); + } + subscriber.complete(); + }); + } + exports2.range = range; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/using.js + var require_using = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/using.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.using = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var empty_1 = require_empty3(); + function using(resourceFactory, observableFactory) { + return new Observable_1.Observable(function(subscriber) { + var resource = resourceFactory(); + var result = observableFactory(resource); + var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY; + source.subscribe(subscriber); + return function() { + if (resource) { + resource.unsubscribe(); + } + }; + }); + } + exports2.using = using; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/zip.js + var require_zip2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/zip.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zip = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var empty_1 = require_empty3(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var args_1 = require_args(); + function zip() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + var sources = argsOrArgArray_1.argsOrArgArray(args); + return sources.length ? new Observable_1.Observable(function(subscriber) { + var buffers = sources.map(function() { + return []; + }); + var completed = sources.map(function() { + return false; + }); + subscriber.add(function() { + buffers = completed = null; + }); + var _loop_1 = function(sourceIndex2) { + innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + buffers[sourceIndex2].push(value); + if (buffers.every(function(buffer) { + return buffer.length; + })) { + var result = buffers.map(function(buffer) { + return buffer.shift(); + }); + subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray2([], __read2(result))) : result); + if (buffers.some(function(buffer, i) { + return !buffer.length && completed[i]; + })) { + subscriber.complete(); + } + } + }, function() { + completed[sourceIndex2] = true; + !buffers[sourceIndex2].length && subscriber.complete(); + })); + }; + for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { + _loop_1(sourceIndex); + } + return function() { + buffers = completed = null; + }; + }) : empty_1.EMPTY; + } + exports2.zip = zip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/types.js + var require_types = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/audit.js + var require_audit = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/audit.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.audit = void 0; + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function audit(durationSelector) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var isComplete = false; + var endDuration = function() { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + isComplete && subscriber.complete(); + }; + var cleanupDuration = function() { + durationSubscriber = null; + isComplete && subscriber.complete(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + lastValue = value; + if (!durationSubscriber) { + innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration)); + } + }, function() { + isComplete = true; + (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); + })); + }); + } + exports2.audit = audit; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/auditTime.js + var require_auditTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.auditTime = void 0; + var async_1 = require_async(); + var audit_1 = require_audit(); + var timer_1 = require_timer(); + function auditTime(duration, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return audit_1.audit(function() { + return timer_1.timer(duration, scheduler); + }); + } + exports2.auditTime = auditTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/buffer.js + var require_buffer4 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/buffer.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.buffer = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function buffer(closingNotifier) { + return lift_1.operate(function(source, subscriber) { + var currentBuffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return currentBuffer.push(value); + }, function() { + subscriber.next(currentBuffer); + subscriber.complete(); + })); + innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + var b = currentBuffer; + currentBuffer = []; + subscriber.next(b); + }, noop_1.noop)); + return function() { + currentBuffer = null; + }; + }); + } + exports2.buffer = buffer; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js + var require_bufferCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferCount = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + function bufferCount(bufferSize, startBufferEvery) { + if (startBufferEvery === void 0) { + startBufferEvery = null; + } + startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; + return lift_1.operate(function(source, subscriber) { + var buffers = []; + var count = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2, e_2, _b2; + var toEmit = null; + if (count++ % startBufferEvery === 0) { + buffers.push([]); + } + try { + for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + if (bufferSize <= buffer.length) { + toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; + toEmit.push(buffer); + } + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a2 = buffers_1.return)) + _a2.call(buffers_1); + } finally { + if (e_1) + throw e_1.error; + } + } + if (toEmit) { + try { + for (var toEmit_1 = __values2(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { + var buffer = toEmit_1_1.value; + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + } + } catch (e_2_1) { + e_2 = { error: e_2_1 }; + } finally { + try { + if (toEmit_1_1 && !toEmit_1_1.done && (_b2 = toEmit_1.return)) + _b2.call(toEmit_1); + } finally { + if (e_2) + throw e_2.error; + } + } + } + }, function() { + var e_3, _a2; + try { + for (var buffers_2 = __values2(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { + var buffer = buffers_2_1.value; + subscriber.next(buffer); + } + } catch (e_3_1) { + e_3 = { error: e_3_1 }; + } finally { + try { + if (buffers_2_1 && !buffers_2_1.done && (_a2 = buffers_2.return)) + _a2.call(buffers_2); + } finally { + if (e_3) + throw e_3.error; + } + } + subscriber.complete(); + }, void 0, function() { + buffers = null; + })); + }); + } + exports2.bufferCount = bufferCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js + var require_bufferTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferTime = void 0; + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + var async_1 = require_async(); + var args_1 = require_args(); + var executeSchedule_1 = require_executeSchedule(); + function bufferTime(bufferTimeSpan) { + var _a2, _b2; + var otherArgs = []; + for (var _i2 = 1; _i2 < arguments.length; _i2++) { + otherArgs[_i2 - 1] = arguments[_i2]; + } + var scheduler = (_a2 = args_1.popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : async_1.asyncScheduler; + var bufferCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null; + var maxBufferSize = otherArgs[1] || Infinity; + return lift_1.operate(function(source, subscriber) { + var bufferRecords = []; + var restartOnEmit = false; + var emit = function(record) { + var buffer = record.buffer, subs = record.subs; + subs.unsubscribe(); + arrRemove_1.arrRemove(bufferRecords, record); + subscriber.next(buffer); + restartOnEmit && startBuffer(); + }; + var startBuffer = function() { + if (bufferRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var buffer = []; + var record_1 = { + buffer, + subs + }; + bufferRecords.push(record_1); + executeSchedule_1.executeSchedule(subs, scheduler, function() { + return emit(record_1); + }, bufferTimeSpan); + } + }; + if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); + } else { + restartOnEmit = true; + } + startBuffer(); + var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a3; + var recordsCopy = bufferRecords.slice(); + try { + for (var recordsCopy_1 = __values2(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { + var record = recordsCopy_1_1.value; + var buffer = record.buffer; + buffer.push(value); + maxBufferSize <= buffer.length && emit(record); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a3 = recordsCopy_1.return)) + _a3.call(recordsCopy_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { + subscriber.next(bufferRecords.shift().buffer); + } + bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); + subscriber.complete(); + subscriber.unsubscribe(); + }, void 0, function() { + return bufferRecords = null; + }); + source.subscribe(bufferTimeSubscriber); + }); + } + exports2.bufferTime = bufferTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js + var require_bufferToggle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferToggle = void 0; + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var arrRemove_1 = require_arrRemove(); + function bufferToggle(openings, closingSelector) { + return lift_1.operate(function(source, subscriber) { + var buffers = []; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) { + var buffer = []; + buffers.push(buffer); + var closingSubscription = new Subscription_1.Subscription(); + var emitBuffer = function() { + arrRemove_1.arrRemove(buffers, buffer); + subscriber.next(buffer); + closingSubscription.unsubscribe(); + }; + closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + try { + for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { + var buffer = buffers_1_1.value; + buffer.push(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffers_1_1 && !buffers_1_1.done && (_a2 = buffers_1.return)) + _a2.call(buffers_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (buffers.length > 0) { + subscriber.next(buffers.shift()); + } + subscriber.complete(); + })); + }); + } + exports2.bufferToggle = bufferToggle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js + var require_bufferWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bufferWhen = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function bufferWhen(closingSelector) { + return lift_1.operate(function(source, subscriber) { + var buffer = null; + var closingSubscriber = null; + var openBuffer = function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + var b = buffer; + buffer = []; + b && subscriber.next(b); + innerFrom_1.innerFrom(closingSelector()).subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop)); + }; + openBuffer(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); + }, function() { + buffer && subscriber.next(buffer); + subscriber.complete(); + }, void 0, function() { + return buffer = closingSubscriber = null; + })); + }); + } + exports2.bufferWhen = bufferWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/catchError.js + var require_catchError = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/catchError.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.catchError = void 0; + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var lift_1 = require_lift(); + function catchError3(selector) { + return lift_1.operate(function(source, subscriber) { + var innerSub = null; + var syncUnsub = false; + var handledResult; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) { + handledResult = innerFrom_1.innerFrom(selector(err, catchError3(selector)(source))); + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } else { + syncUnsub = true; + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + handledResult.subscribe(subscriber); + } + }); + } + exports2.catchError = catchError3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js + var require_scanInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scanInternals = void 0; + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { + return function(source, subscriber) { + var hasState = hasSeed; + var state = seed; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var i = index++; + state = hasState ? accumulator(state, value, i) : (hasState = true, value); + emitOnNext && subscriber.next(state); + }, emitBeforeComplete && function() { + hasState && subscriber.next(state); + subscriber.complete(); + })); + }; + } + exports2.scanInternals = scanInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/reduce.js + var require_reduce = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/reduce.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.reduce = void 0; + var scanInternals_1 = require_scanInternals(); + var lift_1 = require_lift(); + function reduce(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true)); + } + exports2.reduce = reduce; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/toArray.js + var require_toArray = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/toArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toArray = void 0; + var reduce_1 = require_reduce(); + var lift_1 = require_lift(); + var arrReducer = function(arr, value) { + return arr.push(value), arr; + }; + function toArray() { + return lift_1.operate(function(source, subscriber) { + reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber); + }); + } + exports2.toArray = toArray; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js + var require_joinAllInternals = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.joinAllInternals = void 0; + var identity_1 = require_identity(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var pipe_1 = require_pipe(); + var mergeMap_1 = require_mergeMap(); + var toArray_1 = require_toArray(); + function joinAllInternals(joinFn, project) { + return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function(sources) { + return joinFn(sources); + }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity); + } + exports2.joinAllInternals = joinAllInternals; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js + var require_combineLatestAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestAll = void 0; + var combineLatest_1 = require_combineLatest(); + var joinAllInternals_1 = require_joinAllInternals(); + function combineLatestAll(project) { + return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project); + } + exports2.combineLatestAll = combineLatestAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineAll.js + var require_combineAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineAll = void 0; + var combineLatestAll_1 = require_combineLatestAll(); + exports2.combineAll = combineLatestAll_1.combineLatestAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js + var require_combineLatest2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatest = void 0; + var combineLatest_1 = require_combineLatest(); + var lift_1 = require_lift(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var mapOneOrManyArgs_1 = require_mapOneOrManyArgs(); + var pipe_1 = require_pipe(); + var args_1 = require_args(); + function combineLatest3() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var resultSelector = args_1.popResultSelector(args); + return resultSelector ? pipe_1.pipe(combineLatest3.apply(void 0, __spreadArray2([], __read2(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) { + combineLatest_1.combineLatestInit(__spreadArray2([source], __read2(argsOrArgArray_1.argsOrArgArray(args))))(subscriber); + }); + } + exports2.combineLatest = combineLatest3; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js + var require_combineLatestWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineLatestWith = void 0; + var combineLatest_1 = require_combineLatest2(); + function combineLatestWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return combineLatest_1.combineLatest.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.combineLatestWith = combineLatestWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMap.js + var require_concatMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatMap = void 0; + var mergeMap_1 = require_mergeMap(); + var isFunction_1 = require_isFunction(); + function concatMap(project, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1); + } + exports2.concatMap = concatMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js + var require_concatMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatMapTo = void 0; + var concatMap_1 = require_concatMap(); + var isFunction_1 = require_isFunction(); + function concatMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function() { + return innerObservable; + }, resultSelector) : concatMap_1.concatMap(function() { + return innerObservable; + }); + } + exports2.concatMapTo = concatMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concat.js + var require_concat3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concat.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concat = void 0; + var lift_1 = require_lift(); + var concatAll_1 = require_concatAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function concat12() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + return lift_1.operate(function(source, subscriber) { + concatAll_1.concatAll()(from_1.from(__spreadArray2([source], __read2(args)), scheduler)).subscribe(subscriber); + }); + } + exports2.concat = concat12; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/concatWith.js + var require_concatWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.concatWith = void 0; + var concat_1 = require_concat3(); + function concatWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return concat_1.concat.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.concatWith = concatWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js + var require_fromSubscribable = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromSubscribable = void 0; + var Observable_1 = require_Observable(); + function fromSubscribable(subscribable) { + return new Observable_1.Observable(function(subscriber) { + return subscribable.subscribe(subscriber); + }); + } + exports2.fromSubscribable = fromSubscribable; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/connect.js + var require_connect = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/connect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.connect = void 0; + var Subject_1 = require_Subject(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var fromSubscribable_1 = require_fromSubscribable(); + var DEFAULT_CONFIG = { + connector: function() { + return new Subject_1.Subject(); + } + }; + function connect(selector, config7) { + if (config7 === void 0) { + config7 = DEFAULT_CONFIG; + } + var connector = config7.connector; + return lift_1.operate(function(source, subscriber) { + var subject2 = connector(); + innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject2))).subscribe(subscriber); + subscriber.add(source.subscribe(subject2)); + }); + } + exports2.connect = connect; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/count.js + var require_count = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/count.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.count = void 0; + var reduce_1 = require_reduce(); + function count(predicate) { + return reduce_1.reduce(function(total, value, i) { + return !predicate || predicate(value, i) ? total + 1 : total; + }, 0); + } + exports2.count = count; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/debounce.js + var require_debounce = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/debounce.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.debounce = void 0; + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function debounce(durationSelector) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + var durationSubscriber = null; + var emit = function() { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + durationSubscriber = null; + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); + hasValue = true; + lastValue = value; + durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop); + innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber); + }, function() { + emit(); + subscriber.complete(); + }, void 0, function() { + lastValue = durationSubscriber = null; + })); + }); + } + exports2.debounce = debounce; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js + var require_debounceTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.debounceTime = void 0; + var async_1 = require_async(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function debounceTime2(dueTime, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return lift_1.operate(function(source, subscriber) { + var activeTask = null; + var lastValue = null; + var lastTime = null; + var emit = function() { + if (activeTask) { + activeTask.unsubscribe(); + activeTask = null; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }; + function emitWhenIdle() { + var targetTime = lastTime + dueTime; + var now2 = scheduler.now(); + if (now2 < targetTime) { + activeTask = this.schedule(void 0, targetTime - now2); + subscriber.add(activeTask); + return; + } + emit(); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + lastValue = value; + lastTime = scheduler.now(); + if (!activeTask) { + activeTask = scheduler.schedule(emitWhenIdle, dueTime); + subscriber.add(activeTask); + } + }, function() { + emit(); + subscriber.complete(); + }, void 0, function() { + lastValue = activeTask = null; + })); + }); + } + exports2.debounceTime = debounceTime2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js + var require_defaultIfEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultIfEmpty = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function defaultIfEmpty(defaultValue) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + subscriber.next(value); + }, function() { + if (!hasValue) { + subscriber.next(defaultValue); + } + subscriber.complete(); + })); + }); + } + exports2.defaultIfEmpty = defaultIfEmpty; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/take.js + var require_take = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/take.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.take = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function take2(count) { + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (++seen <= count) { + subscriber.next(value); + if (count <= seen) { + subscriber.complete(); + } + } + })); + }); + } + exports2.take = take2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js + var require_ignoreElements = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ignoreElements = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + function ignoreElements() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop)); + }); + } + exports2.ignoreElements = ignoreElements; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mapTo.js + var require_mapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapTo = void 0; + var map_1 = require_map(); + function mapTo(value) { + return map_1.map(function() { + return value; + }); + } + exports2.mapTo = mapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js + var require_delayWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.delayWhen = void 0; + var concat_1 = require_concat2(); + var take_1 = require_take(); + var ignoreElements_1 = require_ignoreElements(); + var mapTo_1 = require_mapTo(); + var mergeMap_1 = require_mergeMap(); + var innerFrom_1 = require_innerFrom(); + function delayWhen(delayDurationSelector, subscriptionDelay) { + if (subscriptionDelay) { + return function(source) { + return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); + }; + } + return mergeMap_1.mergeMap(function(value, index) { + return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value)); + }); + } + exports2.delayWhen = delayWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/delay.js + var require_delay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/delay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.delay = void 0; + var async_1 = require_async(); + var delayWhen_1 = require_delayWhen(); + var timer_1 = require_timer(); + function delay(due2, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + var duration = timer_1.timer(due2, scheduler); + return delayWhen_1.delayWhen(function() { + return duration; + }); + } + exports2.delay = delay; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js + var require_dematerialize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dematerialize = void 0; + var Notification_1 = require_Notification(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function dematerialize() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(notification) { + return Notification_1.observeNotification(notification, subscriber); + })); + }); + } + exports2.dematerialize = dematerialize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinct.js + var require_distinct = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinct = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function distinct(keySelector, flushes) { + return lift_1.operate(function(source, subscriber) { + var distinctKeys = /* @__PURE__ */ new Set(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var key2 = keySelector ? keySelector(value) : value; + if (!distinctKeys.has(key2)) { + distinctKeys.add(key2); + subscriber.next(value); + } + })); + flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return distinctKeys.clear(); + }, noop_1.noop)); + }); + } + exports2.distinct = distinct; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js + var require_distinctUntilChanged = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinctUntilChanged = void 0; + var identity_1 = require_identity(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function distinctUntilChanged(comparator, keySelector) { + if (keySelector === void 0) { + keySelector = identity_1.identity; + } + comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; + return lift_1.operate(function(source, subscriber) { + var previousKey; + var first = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var currentKey = keySelector(value); + if (first || !comparator(previousKey, currentKey)) { + first = false; + previousKey = currentKey; + subscriber.next(value); + } + })); + }); + } + exports2.distinctUntilChanged = distinctUntilChanged; + function defaultCompare(a, b) { + return a === b; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js + var require_distinctUntilKeyChanged = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.distinctUntilKeyChanged = void 0; + var distinctUntilChanged_1 = require_distinctUntilChanged(); + function distinctUntilKeyChanged(key2, compare2) { + return distinctUntilChanged_1.distinctUntilChanged(function(x, y) { + return compare2 ? compare2(x[key2], y[key2]) : x[key2] === y[key2]; + }); + } + exports2.distinctUntilKeyChanged = distinctUntilKeyChanged; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js + var require_throwIfEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throwIfEmpty = void 0; + var EmptyError_1 = require_EmptyError(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function throwIfEmpty(errorFactory) { + if (errorFactory === void 0) { + errorFactory = defaultErrorFactory; + } + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + subscriber.next(value); + }, function() { + return hasValue ? subscriber.complete() : subscriber.error(errorFactory()); + })); + }); + } + exports2.throwIfEmpty = throwIfEmpty; + function defaultErrorFactory() { + return new EmptyError_1.EmptyError(); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/elementAt.js + var require_elementAt = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.elementAt = void 0; + var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError(); + var filter_1 = require_filter2(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var take_1 = require_take(); + function elementAt(index, defaultValue) { + if (index < 0) { + throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); + } + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(filter_1.filter(function(v, i) { + return i === index; + }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); + })); + }; + } + exports2.elementAt = elementAt; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/endWith.js + var require_endWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.endWith = void 0; + var concat_1 = require_concat2(); + var of_1 = require_of(); + function endWith() { + var values = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + values[_i2] = arguments[_i2]; + } + return function(source) { + return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray2([], __read2(values)))); + }; + } + exports2.endWith = endWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/every.js + var require_every = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/every.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.every = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function every(predicate, thisArg) { + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (!predicate.call(thisArg, value, index++, source)) { + subscriber.next(false); + subscriber.complete(); + } + }, function() { + subscriber.next(true); + subscriber.complete(); + })); + }); + } + exports2.every = every; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js + var require_exhaustMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaustMap = void 0; + var map_1 = require_map(); + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function exhaustMap(project, resultSelector) { + if (resultSelector) { + return function(source) { + return source.pipe(exhaustMap(function(a, i) { + return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function(b, ii2) { + return resultSelector(a, b, i, ii2); + })); + })); + }; + } + return lift_1.operate(function(source, subscriber) { + var index = 0; + var innerSub = null; + var isComplete = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(outerValue) { + if (!innerSub) { + innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + innerSub = null; + isComplete && subscriber.complete(); + }); + innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub); + } + }, function() { + isComplete = true; + !innerSub && subscriber.complete(); + })); + }); + } + exports2.exhaustMap = exhaustMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js + var require_exhaustAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaustAll = void 0; + var exhaustMap_1 = require_exhaustMap(); + var identity_1 = require_identity(); + function exhaustAll() { + return exhaustMap_1.exhaustMap(identity_1.identity); + } + exports2.exhaustAll = exhaustAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/exhaust.js + var require_exhaust = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/exhaust.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.exhaust = void 0; + var exhaustAll_1 = require_exhaustAll(); + exports2.exhaust = exhaustAll_1.exhaustAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/expand.js + var require_expand2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/expand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.expand = void 0; + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + function expand(project, concurrent, scheduler) { + if (concurrent === void 0) { + concurrent = Infinity; + } + concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; + return lift_1.operate(function(source, subscriber) { + return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, void 0, true, scheduler); + }); + } + exports2.expand = expand; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/finalize.js + var require_finalize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/finalize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.finalize = void 0; + var lift_1 = require_lift(); + function finalize(callback) { + return lift_1.operate(function(source, subscriber) { + try { + source.subscribe(subscriber); + } finally { + subscriber.add(callback); + } + }); + } + exports2.finalize = finalize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/find.js + var require_find = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/find.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createFind = exports2.find = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function find(predicate, thisArg) { + return lift_1.operate(createFind(predicate, thisArg, "value")); + } + exports2.find = find; + function createFind(predicate, thisArg, emit) { + var findIndex = emit === "index"; + return function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var i = index++; + if (predicate.call(thisArg, value, i, source)) { + subscriber.next(findIndex ? i : value); + subscriber.complete(); + } + }, function() { + subscriber.next(findIndex ? -1 : void 0); + subscriber.complete(); + })); + }; + } + exports2.createFind = createFind; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/findIndex.js + var require_findIndex = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.findIndex = void 0; + var lift_1 = require_lift(); + var find_1 = require_find(); + function findIndex(predicate, thisArg) { + return lift_1.operate(find_1.createFind(predicate, thisArg, "index")); + } + exports2.findIndex = findIndex; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/first.js + var require_first = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/first.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.first = void 0; + var EmptyError_1 = require_EmptyError(); + var filter_1 = require_filter2(); + var take_1 = require_take(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var identity_1 = require_identity(); + function first(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(predicate ? filter_1.filter(function(v, i) { + return predicate(v, i, source); + }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new EmptyError_1.EmptyError(); + })); + }; + } + exports2.first = first; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/groupBy.js + var require_groupBy = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.groupBy = void 0; + var Observable_1 = require_Observable(); + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function groupBy(keySelector, elementOrOptions, duration, connector) { + return lift_1.operate(function(source, subscriber) { + var element; + if (!elementOrOptions || typeof elementOrOptions === "function") { + element = elementOrOptions; + } else { + duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector; + } + var groups = /* @__PURE__ */ new Map(); + var notify = function(cb2) { + groups.forEach(cb2); + cb2(subscriber); + }; + var handleError = function(err) { + return notify(function(consumer) { + return consumer.error(err); + }); + }; + var activeGroups = 0; + var teardownAttempted = false; + var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function(value) { + try { + var key_1 = keySelector(value); + var group_1 = groups.get(key_1); + if (!group_1) { + groups.set(key_1, group_1 = connector ? connector() : new Subject_1.Subject()); + var grouped = createGroupedObservable(key_1, group_1); + subscriber.next(grouped); + if (duration) { + var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function() { + group_1.complete(); + durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); + }, void 0, void 0, function() { + return groups.delete(key_1); + }); + groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); + } + } + group_1.next(element ? element(value) : value); + } catch (err) { + handleError(err); + } + }, function() { + return notify(function(consumer) { + return consumer.complete(); + }); + }, handleError, function() { + return groups.clear(); + }, function() { + teardownAttempted = true; + return activeGroups === 0; + }); + source.subscribe(groupBySourceSubscriber); + function createGroupedObservable(key2, groupSubject) { + var result = new Observable_1.Observable(function(groupSubscriber) { + activeGroups++; + var innerSub = groupSubject.subscribe(groupSubscriber); + return function() { + innerSub.unsubscribe(); + --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); + }; + }); + result.key = key2; + return result; + } + }); + } + exports2.groupBy = groupBy; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js + var require_isEmpty = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isEmpty = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function isEmpty() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + subscriber.next(false); + subscriber.complete(); + }, function() { + subscriber.next(true); + subscriber.complete(); + })); + }); + } + exports2.isEmpty = isEmpty; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeLast.js + var require_takeLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeLast = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function takeLast(count) { + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var buffer = []; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + buffer.push(value); + count < buffer.length && buffer.shift(); + }, function() { + var e_1, _a2; + try { + for (var buffer_1 = __values2(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { + var value = buffer_1_1.value; + subscriber.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (buffer_1_1 && !buffer_1_1.done && (_a2 = buffer_1.return)) + _a2.call(buffer_1); + } finally { + if (e_1) + throw e_1.error; + } + } + subscriber.complete(); + }, void 0, function() { + buffer = null; + })); + }); + } + exports2.takeLast = takeLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/last.js + var require_last = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/last.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.last = void 0; + var EmptyError_1 = require_EmptyError(); + var filter_1 = require_filter2(); + var takeLast_1 = require_takeLast(); + var throwIfEmpty_1 = require_throwIfEmpty(); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + var identity_1 = require_identity(); + function last2(predicate, defaultValue) { + var hasDefaultValue = arguments.length >= 2; + return function(source) { + return source.pipe(predicate ? filter_1.filter(function(v, i) { + return predicate(v, i, source); + }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() { + return new EmptyError_1.EmptyError(); + })); + }; + } + exports2.last = last2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/materialize.js + var require_materialize = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/materialize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.materialize = void 0; + var Notification_1 = require_Notification(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function materialize() { + return lift_1.operate(function(source, subscriber) { + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + subscriber.next(Notification_1.Notification.createNext(value)); + }, function() { + subscriber.next(Notification_1.Notification.createComplete()); + subscriber.complete(); + }, function(err) { + subscriber.next(Notification_1.Notification.createError(err)); + subscriber.complete(); + })); + }); + } + exports2.materialize = materialize; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/max.js + var require_max = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/max.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.max = void 0; + var reduce_1 = require_reduce(); + var isFunction_1 = require_isFunction(); + function max2(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) { + return comparer(x, y) > 0 ? x : y; + } : function(x, y) { + return x > y ? x : y; + }); + } + exports2.max = max2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/flatMap.js + var require_flatMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/flatMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flatMap = void 0; + var mergeMap_1 = require_mergeMap(); + exports2.flatMap = mergeMap_1.mergeMap; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js + var require_mergeMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeMapTo = void 0; + var mergeMap_1 = require_mergeMap(); + var isFunction_1 = require_isFunction(); + function mergeMapTo(innerObservable, resultSelector, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + if (isFunction_1.isFunction(resultSelector)) { + return mergeMap_1.mergeMap(function() { + return innerObservable; + }, resultSelector, concurrent); + } + if (typeof resultSelector === "number") { + concurrent = resultSelector; + } + return mergeMap_1.mergeMap(function() { + return innerObservable; + }, concurrent); + } + exports2.mergeMapTo = mergeMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js + var require_mergeScan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeScan = void 0; + var lift_1 = require_lift(); + var mergeInternals_1 = require_mergeInternals(); + function mergeScan(accumulator, seed, concurrent) { + if (concurrent === void 0) { + concurrent = Infinity; + } + return lift_1.operate(function(source, subscriber) { + var state = seed; + return mergeInternals_1.mergeInternals(source, subscriber, function(value, index) { + return accumulator(state, value, index); + }, concurrent, function(value) { + state = value; + }, false, void 0, function() { + return state = null; + }); + }); + } + exports2.mergeScan = mergeScan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/merge.js + var require_merge2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/merge.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.merge = void 0; + var lift_1 = require_lift(); + var argsOrArgArray_1 = require_argsOrArgArray(); + var mergeAll_1 = require_mergeAll(); + var args_1 = require_args(); + var from_1 = require_from(); + function merge() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(args); + var concurrent = args_1.popNumber(args, Infinity); + args = argsOrArgArray_1.argsOrArgArray(args); + return lift_1.operate(function(source, subscriber) { + mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray2([source], __read2(args)), scheduler)).subscribe(subscriber); + }); + } + exports2.merge = merge; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js + var require_mergeWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeWith = void 0; + var merge_1 = require_merge2(); + function mergeWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return merge_1.merge.apply(void 0, __spreadArray2([], __read2(otherSources))); + } + exports2.mergeWith = mergeWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/min.js + var require_min3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/min.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.min = void 0; + var reduce_1 = require_reduce(); + var isFunction_1 = require_isFunction(); + function min(comparer) { + return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) { + return comparer(x, y) < 0 ? x : y; + } : function(x, y) { + return x < y ? x : y; + }); + } + exports2.min = min; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/multicast.js + var require_multicast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/multicast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.multicast = void 0; + var ConnectableObservable_1 = require_ConnectableObservable(); + var isFunction_1 = require_isFunction(); + var connect_1 = require_connect(); + function multicast(subjectOrSubjectFactory, selector) { + var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() { + return subjectOrSubjectFactory; + }; + if (isFunction_1.isFunction(selector)) { + return connect_1.connect(selector, { + connector: subjectFactory + }); + } + return function(source) { + return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory); + }; + } + exports2.multicast = multicast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js + var require_onErrorResumeNextWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.onErrorResumeNext = exports2.onErrorResumeNextWith = void 0; + var argsOrArgArray_1 = require_argsOrArgArray(); + var onErrorResumeNext_1 = require_onErrorResumeNext(); + function onErrorResumeNextWith() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + var nextSources = argsOrArgArray_1.argsOrArgArray(sources); + return function(source) { + return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray2([source], __read2(nextSources))); + }; + } + exports2.onErrorResumeNextWith = onErrorResumeNextWith; + exports2.onErrorResumeNext = onErrorResumeNextWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/pairwise.js + var require_pairwise = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairwise = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function pairwise() { + return lift_1.operate(function(source, subscriber) { + var prev; + var hasPrev = false; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var p = prev; + prev = value; + hasPrev && subscriber.next([p, value]); + hasPrev = true; + })); + }); + } + exports2.pairwise = pairwise; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/pluck.js + var require_pluck = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/pluck.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pluck = void 0; + var map_1 = require_map(); + function pluck() { + var properties = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + properties[_i2] = arguments[_i2]; + } + var length = properties.length; + if (length === 0) { + throw new Error("list of properties cannot be empty."); + } + return map_1.map(function(x) { + var currentProp = x; + for (var i = 0; i < length; i++) { + var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; + if (typeof p !== "undefined") { + currentProp = p; + } else { + return void 0; + } + } + return currentProp; + }); + } + exports2.pluck = pluck; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publish.js + var require_publish = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publish.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publish = void 0; + var Subject_1 = require_Subject(); + var multicast_1 = require_multicast(); + var connect_1 = require_connect(); + function publish(selector) { + return selector ? function(source) { + return connect_1.connect(selector)(source); + } : function(source) { + return multicast_1.multicast(new Subject_1.Subject())(source); + }; + } + exports2.publish = publish; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js + var require_publishBehavior = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishBehavior = void 0; + var BehaviorSubject_1 = require_BehaviorSubject(); + var ConnectableObservable_1 = require_ConnectableObservable(); + function publishBehavior(initialValue) { + return function(source) { + var subject2 = new BehaviorSubject_1.BehaviorSubject(initialValue); + return new ConnectableObservable_1.ConnectableObservable(source, function() { + return subject2; + }); + }; + } + exports2.publishBehavior = publishBehavior; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishLast.js + var require_publishLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishLast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishLast = void 0; + var AsyncSubject_1 = require_AsyncSubject(); + var ConnectableObservable_1 = require_ConnectableObservable(); + function publishLast() { + return function(source) { + var subject2 = new AsyncSubject_1.AsyncSubject(); + return new ConnectableObservable_1.ConnectableObservable(source, function() { + return subject2; + }); + }; + } + exports2.publishLast = publishLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js + var require_publishReplay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.publishReplay = void 0; + var ReplaySubject_1 = require_ReplaySubject(); + var multicast_1 = require_multicast(); + var isFunction_1 = require_isFunction(); + function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { + if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) { + timestampProvider = selectorOrScheduler; + } + var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : void 0; + return function(source) { + return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); + }; + } + exports2.publishReplay = publishReplay; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/raceWith.js + var require_raceWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.raceWith = void 0; + var race_1 = require_race(); + var lift_1 = require_lift(); + var identity_1 = require_identity(); + function raceWith() { + var otherSources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherSources[_i2] = arguments[_i2]; + } + return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) { + race_1.raceInit(__spreadArray2([source], __read2(otherSources)))(subscriber); + }); + } + exports2.raceWith = raceWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/repeat.js + var require_repeat = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/repeat.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.repeat = void 0; + var empty_1 = require_empty3(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var timer_1 = require_timer(); + function repeat(countOrConfig) { + var _a2; + var count = Infinity; + var delay; + if (countOrConfig != null) { + if (typeof countOrConfig === "object") { + _a2 = countOrConfig.count, count = _a2 === void 0 ? Infinity : _a2, delay = countOrConfig.delay; + } else { + count = countOrConfig; + } + } + return count <= 0 ? function() { + return empty_1.EMPTY; + } : lift_1.operate(function(source, subscriber) { + var soFar = 0; + var sourceSub; + var resubscribe = function() { + sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); + sourceSub = null; + if (delay != null) { + var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + notifierSubscriber_1.unsubscribe(); + subscribeToSource(); + }); + notifier.subscribe(notifierSubscriber_1); + } else { + subscribeToSource(); + } + }; + var subscribeToSource = function() { + var syncUnsub = false; + sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + if (++soFar < count) { + if (sourceSub) { + resubscribe(); + } else { + syncUnsub = true; + } + } else { + subscriber.complete(); + } + })); + if (syncUnsub) { + resubscribe(); + } + }; + subscribeToSource(); + }); + } + exports2.repeat = repeat; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js + var require_repeatWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.repeatWhen = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function repeatWhen(notifier) { + return lift_1.operate(function(source, subscriber) { + var innerSub; + var syncResub = false; + var completions$; + var isNotifierComplete = false; + var isMainComplete = false; + var checkComplete = function() { + return isMainComplete && isNotifierComplete && (subscriber.complete(), true); + }; + var getCompletionSubject = function() { + if (!completions$) { + completions$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + if (innerSub) { + subscribeForRepeatWhen(); + } else { + syncResub = true; + } + }, function() { + isNotifierComplete = true; + checkComplete(); + })); + } + return completions$; + }; + var subscribeForRepeatWhen = function() { + isMainComplete = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() { + isMainComplete = true; + !checkComplete() && getCompletionSubject().next(); + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRepeatWhen(); + } + }; + subscribeForRepeatWhen(); + }); + } + exports2.repeatWhen = repeatWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/retry.js + var require_retry = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/retry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.retry = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var identity_1 = require_identity(); + var timer_1 = require_timer(); + var innerFrom_1 = require_innerFrom(); + function retry(configOrCount) { + if (configOrCount === void 0) { + configOrCount = Infinity; + } + var config7; + if (configOrCount && typeof configOrCount === "object") { + config7 = configOrCount; + } else { + config7 = { + count: configOrCount + }; + } + var _a2 = config7.count, count = _a2 === void 0 ? Infinity : _a2, delay = config7.delay, _b2 = config7.resetOnSuccess, resetOnSuccess = _b2 === void 0 ? false : _b2; + return count <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) { + var soFar = 0; + var innerSub; + var subscribeForRetry = function() { + var syncUnsub = false; + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (resetOnSuccess) { + soFar = 0; + } + subscriber.next(value); + }, void 0, function(err) { + if (soFar++ < count) { + var resub_1 = function() { + if (innerSub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } else { + syncUnsub = true; + } + }; + if (delay != null) { + var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar)); + var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + notifierSubscriber_1.unsubscribe(); + resub_1(); + }, function() { + subscriber.complete(); + }); + notifier.subscribe(notifierSubscriber_1); + } else { + resub_1(); + } + } else { + subscriber.error(err); + } + })); + if (syncUnsub) { + innerSub.unsubscribe(); + innerSub = null; + subscribeForRetry(); + } + }; + subscribeForRetry(); + }); + } + exports2.retry = retry; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js + var require_retryWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.retryWhen = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function retryWhen(notifier) { + return lift_1.operate(function(source, subscriber) { + var innerSub; + var syncResub = false; + var errors$; + var subscribeForRetryWhen = function() { + innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) { + if (!errors$) { + errors$ = new Subject_1.Subject(); + innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return innerSub ? subscribeForRetryWhen() : syncResub = true; + })); + } + if (errors$) { + errors$.next(err); + } + })); + if (syncResub) { + innerSub.unsubscribe(); + innerSub = null; + syncResub = false; + subscribeForRetryWhen(); + } + }; + subscribeForRetryWhen(); + }); + } + exports2.retryWhen = retryWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sample.js + var require_sample = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sample.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sample = void 0; + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var noop_1 = require_noop2(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function sample(notifier) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var lastValue = null; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + lastValue = value; + })); + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + if (hasValue) { + hasValue = false; + var value = lastValue; + lastValue = null; + subscriber.next(value); + } + }, noop_1.noop)); + }); + } + exports2.sample = sample; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js + var require_sampleTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sampleTime = void 0; + var async_1 = require_async(); + var sample_1 = require_sample(); + var interval_1 = require_interval(); + function sampleTime(period, scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return sample_1.sample(interval_1.interval(period, scheduler)); + } + exports2.sampleTime = sampleTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/scan.js + var require_scan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/scan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scan = void 0; + var lift_1 = require_lift(); + var scanInternals_1 = require_scanInternals(); + function scan(accumulator, seed) { + return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true)); + } + exports2.scan = scan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js + var require_sequenceEqual = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sequenceEqual = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function sequenceEqual(compareTo, comparator) { + if (comparator === void 0) { + comparator = function(a, b) { + return a === b; + }; + } + return lift_1.operate(function(source, subscriber) { + var aState = createState(); + var bState = createState(); + var emit = function(isEqual) { + subscriber.next(isEqual); + subscriber.complete(); + }; + var createSubscriber = function(selfState, otherState) { + var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(a) { + var buffer = otherState.buffer, complete = otherState.complete; + if (buffer.length === 0) { + complete ? emit(false) : selfState.buffer.push(a); + } else { + !comparator(a, buffer.shift()) && emit(false); + } + }, function() { + selfState.complete = true; + var complete = otherState.complete, buffer = otherState.buffer; + complete && emit(buffer.length === 0); + sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); + }); + return sequenceEqualSubscriber; + }; + source.subscribe(createSubscriber(aState, bState)); + innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); + }); + } + exports2.sequenceEqual = sequenceEqual; + function createState() { + return { + buffer: [], + complete: false + }; + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/share.js + var require_share = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/share.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.share = void 0; + var innerFrom_1 = require_innerFrom(); + var Subject_1 = require_Subject(); + var Subscriber_1 = require_Subscriber(); + var lift_1 = require_lift(); + function share2(options) { + if (options === void 0) { + options = {}; + } + var _a2 = options.connector, connector = _a2 === void 0 ? function() { + return new Subject_1.Subject(); + } : _a2, _b2 = options.resetOnError, resetOnError = _b2 === void 0 ? true : _b2, _c2 = options.resetOnComplete, resetOnComplete = _c2 === void 0 ? true : _c2, _d2 = options.resetOnRefCountZero, resetOnRefCountZero = _d2 === void 0 ? true : _d2; + return function(wrapperSource) { + var connection; + var resetConnection; + var subject2; + var refCount = 0; + var hasCompleted = false; + var hasErrored = false; + var cancelReset = function() { + resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); + resetConnection = void 0; + }; + var reset = function() { + cancelReset(); + connection = subject2 = void 0; + hasCompleted = hasErrored = false; + }; + var resetAndUnsubscribe = function() { + var conn = connection; + reset(); + conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); + }; + return lift_1.operate(function(source, subscriber) { + refCount++; + if (!hasErrored && !hasCompleted) { + cancelReset(); + } + var dest = subject2 = subject2 !== null && subject2 !== void 0 ? subject2 : connector(); + subscriber.add(function() { + refCount--; + if (refCount === 0 && !hasErrored && !hasCompleted) { + resetConnection = handleReset2(resetAndUnsubscribe, resetOnRefCountZero); + } + }); + dest.subscribe(subscriber); + if (!connection && refCount > 0) { + connection = new Subscriber_1.SafeSubscriber({ + next: function(value) { + return dest.next(value); + }, + error: function(err) { + hasErrored = true; + cancelReset(); + resetConnection = handleReset2(reset, resetOnError, err); + dest.error(err); + }, + complete: function() { + hasCompleted = true; + cancelReset(); + resetConnection = handleReset2(reset, resetOnComplete); + dest.complete(); + } + }); + innerFrom_1.innerFrom(source).subscribe(connection); + } + })(wrapperSource); + }; + } + exports2.share = share2; + function handleReset2(reset, on2) { + var args = []; + for (var _i2 = 2; _i2 < arguments.length; _i2++) { + args[_i2 - 2] = arguments[_i2]; + } + if (on2 === true) { + reset(); + return; + } + if (on2 === false) { + return; + } + var onSubscriber = new Subscriber_1.SafeSubscriber({ + next: function() { + onSubscriber.unsubscribe(); + reset(); + } + }); + return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray2([], __read2(args)))).subscribe(onSubscriber); + } + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js + var require_shareReplay = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.shareReplay = void 0; + var ReplaySubject_1 = require_ReplaySubject(); + var share_1 = require_share(); + function shareReplay2(configOrBufferSize, windowTime, scheduler) { + var _a2, _b2, _c2; + var bufferSize; + var refCount = false; + if (configOrBufferSize && typeof configOrBufferSize === "object") { + _a2 = configOrBufferSize.bufferSize, bufferSize = _a2 === void 0 ? Infinity : _a2, _b2 = configOrBufferSize.windowTime, windowTime = _b2 === void 0 ? Infinity : _b2, _c2 = configOrBufferSize.refCount, refCount = _c2 === void 0 ? false : _c2, scheduler = configOrBufferSize.scheduler; + } else { + bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity; + } + return share_1.share({ + connector: function() { + return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); + }, + resetOnError: true, + resetOnComplete: false, + resetOnRefCountZero: refCount + }); + } + exports2.shareReplay = shareReplay2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/single.js + var require_single = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/single.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.single = void 0; + var EmptyError_1 = require_EmptyError(); + var SequenceError_1 = require_SequenceError(); + var NotFoundError_1 = require_NotFoundError(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function single(predicate) { + return lift_1.operate(function(source, subscriber) { + var hasValue = false; + var singleValue; + var seenValue = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + seenValue = true; + if (!predicate || predicate(value, index++, source)) { + hasValue && subscriber.error(new SequenceError_1.SequenceError("Too many matching values")); + hasValue = true; + singleValue = value; + } + }, function() { + if (hasValue) { + subscriber.next(singleValue); + subscriber.complete(); + } else { + subscriber.error(seenValue ? new NotFoundError_1.NotFoundError("No matching values") : new EmptyError_1.EmptyError()); + } + })); + }); + } + exports2.single = single; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skip.js + var require_skip = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skip.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skip = void 0; + var filter_1 = require_filter2(); + function skip(count) { + return filter_1.filter(function(_, index) { + return count <= index; + }); + } + exports2.skip = skip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipLast.js + var require_skipLast = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipLast = void 0; + var identity_1 = require_identity(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function skipLast(skipCount) { + return skipCount <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) { + var ring = new Array(skipCount); + var seen = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var valueIndex = seen++; + if (valueIndex < skipCount) { + ring[valueIndex] = value; + } else { + var index = valueIndex % skipCount; + var oldValue = ring[index]; + ring[index] = value; + subscriber.next(oldValue); + } + })); + return function() { + ring = null; + }; + }); + } + exports2.skipLast = skipLast; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js + var require_skipUntil = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipUntil = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var noop_1 = require_noop2(); + function skipUntil(notifier) { + return lift_1.operate(function(source, subscriber) { + var taking = false; + var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); + taking = true; + }, noop_1.noop); + innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return taking && subscriber.next(value); + })); + }); + } + exports2.skipUntil = skipUntil; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js + var require_skipWhile = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.skipWhile = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function skipWhile(predicate) { + return lift_1.operate(function(source, subscriber) { + var taking = false; + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); + })); + }); + } + exports2.skipWhile = skipWhile; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/startWith.js + var require_startWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/startWith.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.startWith = void 0; + var concat_1 = require_concat2(); + var args_1 = require_args(); + var lift_1 = require_lift(); + function startWith2() { + var values = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + values[_i2] = arguments[_i2]; + } + var scheduler = args_1.popScheduler(values); + return lift_1.operate(function(source, subscriber) { + (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber); + }); + } + exports2.startWith = startWith2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMap.js + var require_switchMap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchMap = void 0; + var innerFrom_1 = require_innerFrom(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function switchMap2(project, resultSelector) { + return lift_1.operate(function(source, subscriber) { + var innerSubscriber = null; + var index = 0; + var isComplete = false; + var checkComplete = function() { + return isComplete && !innerSubscriber && subscriber.complete(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); + var innerIndex = 0; + var outerIndex = index++; + innerFrom_1.innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) { + return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); + }, function() { + innerSubscriber = null; + checkComplete(); + })); + }, function() { + isComplete = true; + checkComplete(); + })); + }); + } + exports2.switchMap = switchMap2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchAll.js + var require_switchAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchAll = void 0; + var switchMap_1 = require_switchMap(); + var identity_1 = require_identity(); + function switchAll() { + return switchMap_1.switchMap(identity_1.identity); + } + exports2.switchAll = switchAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js + var require_switchMapTo = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchMapTo = void 0; + var switchMap_1 = require_switchMap(); + var isFunction_1 = require_isFunction(); + function switchMapTo(innerObservable, resultSelector) { + return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function() { + return innerObservable; + }, resultSelector) : switchMap_1.switchMap(function() { + return innerObservable; + }); + } + exports2.switchMapTo = switchMapTo; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/switchScan.js + var require_switchScan = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.switchScan = void 0; + var switchMap_1 = require_switchMap(); + var lift_1 = require_lift(); + function switchScan(accumulator, seed) { + return lift_1.operate(function(source, subscriber) { + var state = seed; + switchMap_1.switchMap(function(value, index) { + return accumulator(state, value, index); + }, function(_, innerValue) { + return state = innerValue, innerValue; + })(source).subscribe(subscriber); + return function() { + state = null; + }; + }); + } + exports2.switchScan = switchScan; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js + var require_takeUntil = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeUntil = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var noop_1 = require_noop2(); + function takeUntil(notifier) { + return lift_1.operate(function(source, subscriber) { + innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + return subscriber.complete(); + }, noop_1.noop)); + !subscriber.closed && source.subscribe(subscriber); + }); + } + exports2.takeUntil = takeUntil; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js + var require_takeWhile = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.takeWhile = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function takeWhile(predicate, inclusive) { + if (inclusive === void 0) { + inclusive = false; + } + return lift_1.operate(function(source, subscriber) { + var index = 0; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var result = predicate(value, index++); + (result || inclusive) && subscriber.next(value); + !result && subscriber.complete(); + })); + }); + } + exports2.takeWhile = takeWhile; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/tap.js + var require_tap = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/tap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.tap = void 0; + var isFunction_1 = require_isFunction(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var identity_1 = require_identity(); + function tap2(observerOrNext, error, complete) { + var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext; + return tapObserver ? lift_1.operate(function(source, subscriber) { + var _a2; + (_a2 = tapObserver.subscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver); + var isUnsub = true; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var _a3; + (_a3 = tapObserver.next) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, value); + subscriber.next(value); + }, function() { + var _a3; + isUnsub = false; + (_a3 = tapObserver.complete) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver); + subscriber.complete(); + }, function(err) { + var _a3; + isUnsub = false; + (_a3 = tapObserver.error) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, err); + subscriber.error(err); + }, function() { + var _a3, _b2; + if (isUnsub) { + (_a3 = tapObserver.unsubscribe) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver); + } + (_b2 = tapObserver.finalize) === null || _b2 === void 0 ? void 0 : _b2.call(tapObserver); + })); + }) : identity_1.identity; + } + exports2.tap = tap2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throttle.js + var require_throttle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throttle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throttle = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function throttle(durationSelector, config7) { + return lift_1.operate(function(source, subscriber) { + var _a2 = config7 !== null && config7 !== void 0 ? config7 : {}, _b2 = _a2.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a2.trailing, trailing = _c2 === void 0 ? false : _c2; + var hasValue = false; + var sendValue = null; + var throttled = null; + var isComplete = false; + var endThrottling = function() { + throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); + throttled = null; + if (trailing) { + send(); + isComplete && subscriber.complete(); + } + }; + var cleanupThrottling = function() { + throttled = null; + isComplete && subscriber.complete(); + }; + var startThrottle = function(value) { + return throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)); + }; + var send = function() { + if (hasValue) { + hasValue = false; + var value = sendValue; + sendValue = null; + subscriber.next(value); + !isComplete && startThrottle(value); + } + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + hasValue = true; + sendValue = value; + !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); + }, function() { + isComplete = true; + !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); + })); + }); + } + exports2.throttle = throttle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js + var require_throttleTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.throttleTime = void 0; + var async_1 = require_async(); + var throttle_1 = require_throttle(); + var timer_1 = require_timer(); + function throttleTime(duration, scheduler, config7) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + var duration$ = timer_1.timer(duration, scheduler); + return throttle_1.throttle(function() { + return duration$; + }, config7); + } + exports2.throttleTime = throttleTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js + var require_timeInterval = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TimeInterval = exports2.timeInterval = void 0; + var async_1 = require_async(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function timeInterval(scheduler) { + if (scheduler === void 0) { + scheduler = async_1.asyncScheduler; + } + return lift_1.operate(function(source, subscriber) { + var last2 = scheduler.now(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var now2 = scheduler.now(); + var interval = now2 - last2; + last2 = now2; + subscriber.next(new TimeInterval(value, interval)); + })); + }); + } + exports2.timeInterval = timeInterval; + var TimeInterval = function() { + function TimeInterval2(value, interval) { + this.value = value; + this.interval = interval; + } + return TimeInterval2; + }(); + exports2.TimeInterval = TimeInterval; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js + var require_timeoutWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timeoutWith = void 0; + var async_1 = require_async(); + var isDate_1 = require_isDate(); + var timeout_1 = require_timeout(); + function timeoutWith(due2, withObservable, scheduler) { + var first; + var each; + var _with; + scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async; + if (isDate_1.isValidDate(due2)) { + first = due2; + } else if (typeof due2 === "number") { + each = due2; + } + if (withObservable) { + _with = function() { + return withObservable; + }; + } else { + throw new TypeError("No observable provided to switch to"); + } + if (first == null && each == null) { + throw new TypeError("No timeout provided."); + } + return timeout_1.timeout({ + first, + each, + scheduler, + with: _with + }); + } + exports2.timeoutWith = timeoutWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/timestamp.js + var require_timestamp = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.timestamp = void 0; + var dateTimestampProvider_1 = require_dateTimestampProvider(); + var map_1 = require_map(); + function timestamp(timestampProvider) { + if (timestampProvider === void 0) { + timestampProvider = dateTimestampProvider_1.dateTimestampProvider; + } + return map_1.map(function(value) { + return { value, timestamp: timestampProvider.now() }; + }); + } + exports2.timestamp = timestamp; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/window.js + var require_window = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/window.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.window = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var innerFrom_1 = require_innerFrom(); + function window2(windowBoundaries) { + return lift_1.operate(function(source, subscriber) { + var windowSubject = new Subject_1.Subject(); + subscriber.next(windowSubject.asObservable()); + var errorHandler = function(err) { + windowSubject.error(err); + subscriber.error(err); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); + }, function() { + windowSubject.complete(); + subscriber.complete(); + }, errorHandler)); + innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() { + windowSubject.complete(); + subscriber.next(windowSubject = new Subject_1.Subject()); + }, noop_1.noop, errorHandler)); + return function() { + windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); + windowSubject = null; + }; + }); + } + exports2.window = window2; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowCount.js + var require_windowCount = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowCount = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + function windowCount(windowSize, startWindowEvery) { + if (startWindowEvery === void 0) { + startWindowEvery = 0; + } + var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; + return lift_1.operate(function(source, subscriber) { + var windows = [new Subject_1.Subject()]; + var starts = []; + var count = 0; + subscriber.next(windows[0].asObservable()); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + try { + for (var windows_1 = __values2(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { + var window_1 = windows_1_1.value; + window_1.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (windows_1_1 && !windows_1_1.done && (_a2 = windows_1.return)) + _a2.call(windows_1); + } finally { + if (e_1) + throw e_1.error; + } + } + var c = count - windowSize + 1; + if (c >= 0 && c % startEvery === 0) { + windows.shift().complete(); + } + if (++count % startEvery === 0) { + var window_2 = new Subject_1.Subject(); + windows.push(window_2); + subscriber.next(window_2.asObservable()); + } + }, function() { + while (windows.length > 0) { + windows.shift().complete(); + } + subscriber.complete(); + }, function(err) { + while (windows.length > 0) { + windows.shift().error(err); + } + subscriber.error(err); + }, function() { + starts = null; + windows = null; + })); + }); + } + exports2.windowCount = windowCount; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowTime.js + var require_windowTime = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowTime = void 0; + var Subject_1 = require_Subject(); + var async_1 = require_async(); + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var arrRemove_1 = require_arrRemove(); + var args_1 = require_args(); + var executeSchedule_1 = require_executeSchedule(); + function windowTime(windowTimeSpan) { + var _a2, _b2; + var otherArgs = []; + for (var _i2 = 1; _i2 < arguments.length; _i2++) { + otherArgs[_i2 - 1] = arguments[_i2]; + } + var scheduler = (_a2 = args_1.popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : async_1.asyncScheduler; + var windowCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null; + var maxWindowSize = otherArgs[1] || Infinity; + return lift_1.operate(function(source, subscriber) { + var windowRecords = []; + var restartOnClose = false; + var closeWindow = function(record) { + var window2 = record.window, subs = record.subs; + window2.complete(); + subs.unsubscribe(); + arrRemove_1.arrRemove(windowRecords, record); + restartOnClose && startWindow(); + }; + var startWindow = function() { + if (windowRecords) { + var subs = new Subscription_1.Subscription(); + subscriber.add(subs); + var window_1 = new Subject_1.Subject(); + var record_1 = { + window: window_1, + subs, + seen: 0 + }; + windowRecords.push(record_1); + subscriber.next(window_1.asObservable()); + executeSchedule_1.executeSchedule(subs, scheduler, function() { + return closeWindow(record_1); + }, windowTimeSpan); + } + }; + if (windowCreationInterval !== null && windowCreationInterval >= 0) { + executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); + } else { + restartOnClose = true; + } + startWindow(); + var loop = function(cb2) { + return windowRecords.slice().forEach(cb2); + }; + var terminate = function(cb2) { + loop(function(_a3) { + var window2 = _a3.window; + return cb2(window2); + }); + cb2(subscriber); + subscriber.unsubscribe(); + }; + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + loop(function(record) { + record.window.next(value); + maxWindowSize <= ++record.seen && closeWindow(record); + }); + }, function() { + return terminate(function(consumer) { + return consumer.complete(); + }); + }, function(err) { + return terminate(function(consumer) { + return consumer.error(err); + }); + })); + return function() { + windowRecords = null; + }; + }); + } + exports2.windowTime = windowTime; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js + var require_windowToggle = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(exports2) { + "use strict"; + var __values2 = exports2 && exports2.__values || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowToggle = void 0; + var Subject_1 = require_Subject(); + var Subscription_1 = require_Subscription(); + var lift_1 = require_lift(); + var innerFrom_1 = require_innerFrom(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var noop_1 = require_noop2(); + var arrRemove_1 = require_arrRemove(); + function windowToggle(openings, closingSelector) { + return lift_1.operate(function(source, subscriber) { + var windows = []; + var handleError = function(err) { + while (0 < windows.length) { + windows.shift().error(err); + } + subscriber.error(err); + }; + innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) { + var window2 = new Subject_1.Subject(); + windows.push(window2); + var closingSubscription = new Subscription_1.Subscription(); + var closeWindow = function() { + arrRemove_1.arrRemove(windows, window2); + window2.complete(); + closingSubscription.unsubscribe(); + }; + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue)); + } catch (err) { + handleError(err); + return; + } + subscriber.next(window2.asObservable()); + closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError))); + }, noop_1.noop)); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + var e_1, _a2; + var windowsCopy = windows.slice(); + try { + for (var windowsCopy_1 = __values2(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { + var window_1 = windowsCopy_1_1.value; + window_1.next(value); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a2 = windowsCopy_1.return)) + _a2.call(windowsCopy_1); + } finally { + if (e_1) + throw e_1.error; + } + } + }, function() { + while (0 < windows.length) { + windows.shift().complete(); + } + subscriber.complete(); + }, handleError, function() { + while (0 < windows.length) { + windows.shift().unsubscribe(); + } + })); + }); + } + exports2.windowToggle = windowToggle; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js + var require_windowWhen = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.windowWhen = void 0; + var Subject_1 = require_Subject(); + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + function windowWhen(closingSelector) { + return lift_1.operate(function(source, subscriber) { + var window2; + var closingSubscriber; + var handleError = function(err) { + window2.error(err); + subscriber.error(err); + }; + var openWindow = function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window2 === null || window2 === void 0 ? void 0 : window2.complete(); + window2 = new Subject_1.Subject(); + subscriber.next(window2.asObservable()); + var closingNotifier; + try { + closingNotifier = innerFrom_1.innerFrom(closingSelector()); + } catch (err) { + handleError(err); + return; + } + closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError)); + }; + openWindow(); + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + return window2.next(value); + }, function() { + window2.complete(); + subscriber.complete(); + }, handleError, function() { + closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); + window2 = null; + })); + }); + } + exports2.windowWhen = windowWhen; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js + var require_withLatestFrom = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.withLatestFrom = void 0; + var lift_1 = require_lift(); + var OperatorSubscriber_1 = require_OperatorSubscriber(); + var innerFrom_1 = require_innerFrom(); + var identity_1 = require_identity(); + var noop_1 = require_noop2(); + var args_1 = require_args(); + function withLatestFrom() { + var inputs = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + inputs[_i2] = arguments[_i2]; + } + var project = args_1.popResultSelector(inputs); + return lift_1.operate(function(source, subscriber) { + var len = inputs.length; + var otherValues = new Array(len); + var hasValue = inputs.map(function() { + return false; + }); + var ready = false; + var _loop_1 = function(i10) { + innerFrom_1.innerFrom(inputs[i10]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + otherValues[i10] = value; + if (!ready && !hasValue[i10]) { + hasValue[i10] = true; + (ready = hasValue.every(identity_1.identity)) && (hasValue = null); + } + }, noop_1.noop)); + }; + for (var i = 0; i < len; i++) { + _loop_1(i); + } + source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) { + if (ready) { + var values = __spreadArray2([value], __read2(otherValues)); + subscriber.next(project ? project.apply(void 0, __spreadArray2([], __read2(values))) : values); + } + })); + }); + } + exports2.withLatestFrom = withLatestFrom; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zipAll.js + var require_zipAll = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zipAll = void 0; + var zip_1 = require_zip2(); + var joinAllInternals_1 = require_joinAllInternals(); + function zipAll(project) { + return joinAllInternals_1.joinAllInternals(zip_1.zip, project); + } + exports2.zipAll = zipAll; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zip.js + var require_zip3 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zip.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zip = void 0; + var zip_1 = require_zip2(); + var lift_1 = require_lift(); + function zip() { + var sources = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + sources[_i2] = arguments[_i2]; + } + return lift_1.operate(function(source, subscriber) { + zip_1.zip.apply(void 0, __spreadArray2([source], __read2(sources))).subscribe(subscriber); + }); + } + exports2.zip = zip; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/zipWith.js + var require_zipWith = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.zipWith = void 0; + var zip_1 = require_zip3(); + function zipWith() { + var otherInputs = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + otherInputs[_i2] = arguments[_i2]; + } + return zip_1.zip.apply(void 0, __spreadArray2([], __read2(otherInputs))); + } + exports2.zipWith = zipWith; + } + }); + + // ../../node_modules/rxjs/dist/cjs/index.js + var require_cjs7 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/index.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + Object.defineProperty(o, k22, { enumerable: true, get: function() { + return m[k]; + } }); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding(exports3, m, p); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.interval = exports2.iif = exports2.generate = exports2.fromEventPattern = exports2.fromEvent = exports2.from = exports2.forkJoin = exports2.empty = exports2.defer = exports2.connectable = exports2.concat = exports2.combineLatest = exports2.bindNodeCallback = exports2.bindCallback = exports2.UnsubscriptionError = exports2.TimeoutError = exports2.SequenceError = exports2.ObjectUnsubscribedError = exports2.NotFoundError = exports2.EmptyError = exports2.ArgumentOutOfRangeError = exports2.firstValueFrom = exports2.lastValueFrom = exports2.isObservable = exports2.identity = exports2.noop = exports2.pipe = exports2.NotificationKind = exports2.Notification = exports2.Subscriber = exports2.Subscription = exports2.Scheduler = exports2.VirtualAction = exports2.VirtualTimeScheduler = exports2.animationFrameScheduler = exports2.animationFrame = exports2.queueScheduler = exports2.queue = exports2.asyncScheduler = exports2.async = exports2.asapScheduler = exports2.asap = exports2.AsyncSubject = exports2.ReplaySubject = exports2.BehaviorSubject = exports2.Subject = exports2.animationFrames = exports2.observable = exports2.ConnectableObservable = exports2.Observable = void 0; + exports2.filter = exports2.expand = exports2.exhaustMap = exports2.exhaustAll = exports2.exhaust = exports2.every = exports2.endWith = exports2.elementAt = exports2.distinctUntilKeyChanged = exports2.distinctUntilChanged = exports2.distinct = exports2.dematerialize = exports2.delayWhen = exports2.delay = exports2.defaultIfEmpty = exports2.debounceTime = exports2.debounce = exports2.count = exports2.connect = exports2.concatWith = exports2.concatMapTo = exports2.concatMap = exports2.concatAll = exports2.combineLatestWith = exports2.combineLatestAll = exports2.combineAll = exports2.catchError = exports2.bufferWhen = exports2.bufferToggle = exports2.bufferTime = exports2.bufferCount = exports2.buffer = exports2.auditTime = exports2.audit = exports2.config = exports2.NEVER = exports2.EMPTY = exports2.scheduled = exports2.zip = exports2.using = exports2.timer = exports2.throwError = exports2.range = exports2.race = exports2.partition = exports2.pairs = exports2.onErrorResumeNext = exports2.of = exports2.never = exports2.merge = void 0; + exports2.switchMap = exports2.switchAll = exports2.subscribeOn = exports2.startWith = exports2.skipWhile = exports2.skipUntil = exports2.skipLast = exports2.skip = exports2.single = exports2.shareReplay = exports2.share = exports2.sequenceEqual = exports2.scan = exports2.sampleTime = exports2.sample = exports2.refCount = exports2.retryWhen = exports2.retry = exports2.repeatWhen = exports2.repeat = exports2.reduce = exports2.raceWith = exports2.publishReplay = exports2.publishLast = exports2.publishBehavior = exports2.publish = exports2.pluck = exports2.pairwise = exports2.onErrorResumeNextWith = exports2.observeOn = exports2.multicast = exports2.min = exports2.mergeWith = exports2.mergeScan = exports2.mergeMapTo = exports2.mergeMap = exports2.flatMap = exports2.mergeAll = exports2.max = exports2.materialize = exports2.mapTo = exports2.map = exports2.last = exports2.isEmpty = exports2.ignoreElements = exports2.groupBy = exports2.first = exports2.findIndex = exports2.find = exports2.finalize = void 0; + exports2.zipWith = exports2.zipAll = exports2.withLatestFrom = exports2.windowWhen = exports2.windowToggle = exports2.windowTime = exports2.windowCount = exports2.window = exports2.toArray = exports2.timestamp = exports2.timeoutWith = exports2.timeout = exports2.timeInterval = exports2.throwIfEmpty = exports2.throttleTime = exports2.throttle = exports2.tap = exports2.takeWhile = exports2.takeUntil = exports2.takeLast = exports2.take = exports2.switchScan = exports2.switchMapTo = void 0; + var Observable_1 = require_Observable(); + Object.defineProperty(exports2, "Observable", { enumerable: true, get: function() { + return Observable_1.Observable; + } }); + var ConnectableObservable_1 = require_ConnectableObservable(); + Object.defineProperty(exports2, "ConnectableObservable", { enumerable: true, get: function() { + return ConnectableObservable_1.ConnectableObservable; + } }); + var observable_1 = require_observable2(); + Object.defineProperty(exports2, "observable", { enumerable: true, get: function() { + return observable_1.observable; + } }); + var animationFrames_1 = require_animationFrames(); + Object.defineProperty(exports2, "animationFrames", { enumerable: true, get: function() { + return animationFrames_1.animationFrames; + } }); + var Subject_1 = require_Subject(); + Object.defineProperty(exports2, "Subject", { enumerable: true, get: function() { + return Subject_1.Subject; + } }); + var BehaviorSubject_1 = require_BehaviorSubject(); + Object.defineProperty(exports2, "BehaviorSubject", { enumerable: true, get: function() { + return BehaviorSubject_1.BehaviorSubject; + } }); + var ReplaySubject_1 = require_ReplaySubject(); + Object.defineProperty(exports2, "ReplaySubject", { enumerable: true, get: function() { + return ReplaySubject_1.ReplaySubject; + } }); + var AsyncSubject_1 = require_AsyncSubject(); + Object.defineProperty(exports2, "AsyncSubject", { enumerable: true, get: function() { + return AsyncSubject_1.AsyncSubject; + } }); + var asap_1 = require_asap(); + Object.defineProperty(exports2, "asap", { enumerable: true, get: function() { + return asap_1.asap; + } }); + Object.defineProperty(exports2, "asapScheduler", { enumerable: true, get: function() { + return asap_1.asapScheduler; + } }); + var async_1 = require_async(); + Object.defineProperty(exports2, "async", { enumerable: true, get: function() { + return async_1.async; + } }); + Object.defineProperty(exports2, "asyncScheduler", { enumerable: true, get: function() { + return async_1.asyncScheduler; + } }); + var queue_1 = require_queue(); + Object.defineProperty(exports2, "queue", { enumerable: true, get: function() { + return queue_1.queue; + } }); + Object.defineProperty(exports2, "queueScheduler", { enumerable: true, get: function() { + return queue_1.queueScheduler; + } }); + var animationFrame_1 = require_animationFrame(); + Object.defineProperty(exports2, "animationFrame", { enumerable: true, get: function() { + return animationFrame_1.animationFrame; + } }); + Object.defineProperty(exports2, "animationFrameScheduler", { enumerable: true, get: function() { + return animationFrame_1.animationFrameScheduler; + } }); + var VirtualTimeScheduler_1 = require_VirtualTimeScheduler(); + Object.defineProperty(exports2, "VirtualTimeScheduler", { enumerable: true, get: function() { + return VirtualTimeScheduler_1.VirtualTimeScheduler; + } }); + Object.defineProperty(exports2, "VirtualAction", { enumerable: true, get: function() { + return VirtualTimeScheduler_1.VirtualAction; + } }); + var Scheduler_1 = require_Scheduler(); + Object.defineProperty(exports2, "Scheduler", { enumerable: true, get: function() { + return Scheduler_1.Scheduler; + } }); + var Subscription_1 = require_Subscription(); + Object.defineProperty(exports2, "Subscription", { enumerable: true, get: function() { + return Subscription_1.Subscription; + } }); + var Subscriber_1 = require_Subscriber(); + Object.defineProperty(exports2, "Subscriber", { enumerable: true, get: function() { + return Subscriber_1.Subscriber; + } }); + var Notification_1 = require_Notification(); + Object.defineProperty(exports2, "Notification", { enumerable: true, get: function() { + return Notification_1.Notification; + } }); + Object.defineProperty(exports2, "NotificationKind", { enumerable: true, get: function() { + return Notification_1.NotificationKind; + } }); + var pipe_1 = require_pipe(); + Object.defineProperty(exports2, "pipe", { enumerable: true, get: function() { + return pipe_1.pipe; + } }); + var noop_1 = require_noop2(); + Object.defineProperty(exports2, "noop", { enumerable: true, get: function() { + return noop_1.noop; + } }); + var identity_1 = require_identity(); + Object.defineProperty(exports2, "identity", { enumerable: true, get: function() { + return identity_1.identity; + } }); + var isObservable_1 = require_isObservable(); + Object.defineProperty(exports2, "isObservable", { enumerable: true, get: function() { + return isObservable_1.isObservable; + } }); + var lastValueFrom_1 = require_lastValueFrom(); + Object.defineProperty(exports2, "lastValueFrom", { enumerable: true, get: function() { + return lastValueFrom_1.lastValueFrom; + } }); + var firstValueFrom_1 = require_firstValueFrom(); + Object.defineProperty(exports2, "firstValueFrom", { enumerable: true, get: function() { + return firstValueFrom_1.firstValueFrom; + } }); + var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError(); + Object.defineProperty(exports2, "ArgumentOutOfRangeError", { enumerable: true, get: function() { + return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; + } }); + var EmptyError_1 = require_EmptyError(); + Object.defineProperty(exports2, "EmptyError", { enumerable: true, get: function() { + return EmptyError_1.EmptyError; + } }); + var NotFoundError_1 = require_NotFoundError(); + Object.defineProperty(exports2, "NotFoundError", { enumerable: true, get: function() { + return NotFoundError_1.NotFoundError; + } }); + var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError(); + Object.defineProperty(exports2, "ObjectUnsubscribedError", { enumerable: true, get: function() { + return ObjectUnsubscribedError_1.ObjectUnsubscribedError; + } }); + var SequenceError_1 = require_SequenceError(); + Object.defineProperty(exports2, "SequenceError", { enumerable: true, get: function() { + return SequenceError_1.SequenceError; + } }); + var timeout_1 = require_timeout(); + Object.defineProperty(exports2, "TimeoutError", { enumerable: true, get: function() { + return timeout_1.TimeoutError; + } }); + var UnsubscriptionError_1 = require_UnsubscriptionError(); + Object.defineProperty(exports2, "UnsubscriptionError", { enumerable: true, get: function() { + return UnsubscriptionError_1.UnsubscriptionError; + } }); + var bindCallback_1 = require_bindCallback(); + Object.defineProperty(exports2, "bindCallback", { enumerable: true, get: function() { + return bindCallback_1.bindCallback; + } }); + var bindNodeCallback_1 = require_bindNodeCallback(); + Object.defineProperty(exports2, "bindNodeCallback", { enumerable: true, get: function() { + return bindNodeCallback_1.bindNodeCallback; + } }); + var combineLatest_1 = require_combineLatest(); + Object.defineProperty(exports2, "combineLatest", { enumerable: true, get: function() { + return combineLatest_1.combineLatest; + } }); + var concat_1 = require_concat2(); + Object.defineProperty(exports2, "concat", { enumerable: true, get: function() { + return concat_1.concat; + } }); + var connectable_1 = require_connectable(); + Object.defineProperty(exports2, "connectable", { enumerable: true, get: function() { + return connectable_1.connectable; + } }); + var defer_1 = require_defer(); + Object.defineProperty(exports2, "defer", { enumerable: true, get: function() { + return defer_1.defer; + } }); + var empty_1 = require_empty3(); + Object.defineProperty(exports2, "empty", { enumerable: true, get: function() { + return empty_1.empty; + } }); + var forkJoin_1 = require_forkJoin(); + Object.defineProperty(exports2, "forkJoin", { enumerable: true, get: function() { + return forkJoin_1.forkJoin; + } }); + var from_1 = require_from(); + Object.defineProperty(exports2, "from", { enumerable: true, get: function() { + return from_1.from; + } }); + var fromEvent_1 = require_fromEvent(); + Object.defineProperty(exports2, "fromEvent", { enumerable: true, get: function() { + return fromEvent_1.fromEvent; + } }); + var fromEventPattern_1 = require_fromEventPattern(); + Object.defineProperty(exports2, "fromEventPattern", { enumerable: true, get: function() { + return fromEventPattern_1.fromEventPattern; + } }); + var generate_1 = require_generate2(); + Object.defineProperty(exports2, "generate", { enumerable: true, get: function() { + return generate_1.generate; + } }); + var iif_1 = require_iif(); + Object.defineProperty(exports2, "iif", { enumerable: true, get: function() { + return iif_1.iif; + } }); + var interval_1 = require_interval(); + Object.defineProperty(exports2, "interval", { enumerable: true, get: function() { + return interval_1.interval; + } }); + var merge_1 = require_merge(); + Object.defineProperty(exports2, "merge", { enumerable: true, get: function() { + return merge_1.merge; + } }); + var never_1 = require_never(); + Object.defineProperty(exports2, "never", { enumerable: true, get: function() { + return never_1.never; + } }); + var of_1 = require_of(); + Object.defineProperty(exports2, "of", { enumerable: true, get: function() { + return of_1.of; + } }); + var onErrorResumeNext_1 = require_onErrorResumeNext(); + Object.defineProperty(exports2, "onErrorResumeNext", { enumerable: true, get: function() { + return onErrorResumeNext_1.onErrorResumeNext; + } }); + var pairs_1 = require_pairs(); + Object.defineProperty(exports2, "pairs", { enumerable: true, get: function() { + return pairs_1.pairs; + } }); + var partition_1 = require_partition(); + Object.defineProperty(exports2, "partition", { enumerable: true, get: function() { + return partition_1.partition; + } }); + var race_1 = require_race(); + Object.defineProperty(exports2, "race", { enumerable: true, get: function() { + return race_1.race; + } }); + var range_1 = require_range2(); + Object.defineProperty(exports2, "range", { enumerable: true, get: function() { + return range_1.range; + } }); + var throwError_1 = require_throwError(); + Object.defineProperty(exports2, "throwError", { enumerable: true, get: function() { + return throwError_1.throwError; + } }); + var timer_1 = require_timer(); + Object.defineProperty(exports2, "timer", { enumerable: true, get: function() { + return timer_1.timer; + } }); + var using_1 = require_using(); + Object.defineProperty(exports2, "using", { enumerable: true, get: function() { + return using_1.using; + } }); + var zip_1 = require_zip2(); + Object.defineProperty(exports2, "zip", { enumerable: true, get: function() { + return zip_1.zip; + } }); + var scheduled_1 = require_scheduled(); + Object.defineProperty(exports2, "scheduled", { enumerable: true, get: function() { + return scheduled_1.scheduled; + } }); + var empty_2 = require_empty3(); + Object.defineProperty(exports2, "EMPTY", { enumerable: true, get: function() { + return empty_2.EMPTY; + } }); + var never_2 = require_never(); + Object.defineProperty(exports2, "NEVER", { enumerable: true, get: function() { + return never_2.NEVER; + } }); + __exportStar(require_types(), exports2); + var config_1 = require_config(); + Object.defineProperty(exports2, "config", { enumerable: true, get: function() { + return config_1.config; + } }); + var audit_1 = require_audit(); + Object.defineProperty(exports2, "audit", { enumerable: true, get: function() { + return audit_1.audit; + } }); + var auditTime_1 = require_auditTime(); + Object.defineProperty(exports2, "auditTime", { enumerable: true, get: function() { + return auditTime_1.auditTime; + } }); + var buffer_1 = require_buffer4(); + Object.defineProperty(exports2, "buffer", { enumerable: true, get: function() { + return buffer_1.buffer; + } }); + var bufferCount_1 = require_bufferCount(); + Object.defineProperty(exports2, "bufferCount", { enumerable: true, get: function() { + return bufferCount_1.bufferCount; + } }); + var bufferTime_1 = require_bufferTime(); + Object.defineProperty(exports2, "bufferTime", { enumerable: true, get: function() { + return bufferTime_1.bufferTime; + } }); + var bufferToggle_1 = require_bufferToggle(); + Object.defineProperty(exports2, "bufferToggle", { enumerable: true, get: function() { + return bufferToggle_1.bufferToggle; + } }); + var bufferWhen_1 = require_bufferWhen(); + Object.defineProperty(exports2, "bufferWhen", { enumerable: true, get: function() { + return bufferWhen_1.bufferWhen; + } }); + var catchError_1 = require_catchError(); + Object.defineProperty(exports2, "catchError", { enumerable: true, get: function() { + return catchError_1.catchError; + } }); + var combineAll_1 = require_combineAll(); + Object.defineProperty(exports2, "combineAll", { enumerable: true, get: function() { + return combineAll_1.combineAll; + } }); + var combineLatestAll_1 = require_combineLatestAll(); + Object.defineProperty(exports2, "combineLatestAll", { enumerable: true, get: function() { + return combineLatestAll_1.combineLatestAll; + } }); + var combineLatestWith_1 = require_combineLatestWith(); + Object.defineProperty(exports2, "combineLatestWith", { enumerable: true, get: function() { + return combineLatestWith_1.combineLatestWith; + } }); + var concatAll_1 = require_concatAll(); + Object.defineProperty(exports2, "concatAll", { enumerable: true, get: function() { + return concatAll_1.concatAll; + } }); + var concatMap_1 = require_concatMap(); + Object.defineProperty(exports2, "concatMap", { enumerable: true, get: function() { + return concatMap_1.concatMap; + } }); + var concatMapTo_1 = require_concatMapTo(); + Object.defineProperty(exports2, "concatMapTo", { enumerable: true, get: function() { + return concatMapTo_1.concatMapTo; + } }); + var concatWith_1 = require_concatWith(); + Object.defineProperty(exports2, "concatWith", { enumerable: true, get: function() { + return concatWith_1.concatWith; + } }); + var connect_1 = require_connect(); + Object.defineProperty(exports2, "connect", { enumerable: true, get: function() { + return connect_1.connect; + } }); + var count_1 = require_count(); + Object.defineProperty(exports2, "count", { enumerable: true, get: function() { + return count_1.count; + } }); + var debounce_1 = require_debounce(); + Object.defineProperty(exports2, "debounce", { enumerable: true, get: function() { + return debounce_1.debounce; + } }); + var debounceTime_1 = require_debounceTime(); + Object.defineProperty(exports2, "debounceTime", { enumerable: true, get: function() { + return debounceTime_1.debounceTime; + } }); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + Object.defineProperty(exports2, "defaultIfEmpty", { enumerable: true, get: function() { + return defaultIfEmpty_1.defaultIfEmpty; + } }); + var delay_1 = require_delay(); + Object.defineProperty(exports2, "delay", { enumerable: true, get: function() { + return delay_1.delay; + } }); + var delayWhen_1 = require_delayWhen(); + Object.defineProperty(exports2, "delayWhen", { enumerable: true, get: function() { + return delayWhen_1.delayWhen; + } }); + var dematerialize_1 = require_dematerialize(); + Object.defineProperty(exports2, "dematerialize", { enumerable: true, get: function() { + return dematerialize_1.dematerialize; + } }); + var distinct_1 = require_distinct(); + Object.defineProperty(exports2, "distinct", { enumerable: true, get: function() { + return distinct_1.distinct; + } }); + var distinctUntilChanged_1 = require_distinctUntilChanged(); + Object.defineProperty(exports2, "distinctUntilChanged", { enumerable: true, get: function() { + return distinctUntilChanged_1.distinctUntilChanged; + } }); + var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged(); + Object.defineProperty(exports2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return distinctUntilKeyChanged_1.distinctUntilKeyChanged; + } }); + var elementAt_1 = require_elementAt(); + Object.defineProperty(exports2, "elementAt", { enumerable: true, get: function() { + return elementAt_1.elementAt; + } }); + var endWith_1 = require_endWith(); + Object.defineProperty(exports2, "endWith", { enumerable: true, get: function() { + return endWith_1.endWith; + } }); + var every_1 = require_every(); + Object.defineProperty(exports2, "every", { enumerable: true, get: function() { + return every_1.every; + } }); + var exhaust_1 = require_exhaust(); + Object.defineProperty(exports2, "exhaust", { enumerable: true, get: function() { + return exhaust_1.exhaust; + } }); + var exhaustAll_1 = require_exhaustAll(); + Object.defineProperty(exports2, "exhaustAll", { enumerable: true, get: function() { + return exhaustAll_1.exhaustAll; + } }); + var exhaustMap_1 = require_exhaustMap(); + Object.defineProperty(exports2, "exhaustMap", { enumerable: true, get: function() { + return exhaustMap_1.exhaustMap; + } }); + var expand_1 = require_expand2(); + Object.defineProperty(exports2, "expand", { enumerable: true, get: function() { + return expand_1.expand; + } }); + var filter_1 = require_filter2(); + Object.defineProperty(exports2, "filter", { enumerable: true, get: function() { + return filter_1.filter; + } }); + var finalize_1 = require_finalize(); + Object.defineProperty(exports2, "finalize", { enumerable: true, get: function() { + return finalize_1.finalize; + } }); + var find_1 = require_find(); + Object.defineProperty(exports2, "find", { enumerable: true, get: function() { + return find_1.find; + } }); + var findIndex_1 = require_findIndex(); + Object.defineProperty(exports2, "findIndex", { enumerable: true, get: function() { + return findIndex_1.findIndex; + } }); + var first_1 = require_first(); + Object.defineProperty(exports2, "first", { enumerable: true, get: function() { + return first_1.first; + } }); + var groupBy_1 = require_groupBy(); + Object.defineProperty(exports2, "groupBy", { enumerable: true, get: function() { + return groupBy_1.groupBy; + } }); + var ignoreElements_1 = require_ignoreElements(); + Object.defineProperty(exports2, "ignoreElements", { enumerable: true, get: function() { + return ignoreElements_1.ignoreElements; + } }); + var isEmpty_1 = require_isEmpty(); + Object.defineProperty(exports2, "isEmpty", { enumerable: true, get: function() { + return isEmpty_1.isEmpty; + } }); + var last_1 = require_last(); + Object.defineProperty(exports2, "last", { enumerable: true, get: function() { + return last_1.last; + } }); + var map_1 = require_map(); + Object.defineProperty(exports2, "map", { enumerable: true, get: function() { + return map_1.map; + } }); + var mapTo_1 = require_mapTo(); + Object.defineProperty(exports2, "mapTo", { enumerable: true, get: function() { + return mapTo_1.mapTo; + } }); + var materialize_1 = require_materialize(); + Object.defineProperty(exports2, "materialize", { enumerable: true, get: function() { + return materialize_1.materialize; + } }); + var max_1 = require_max(); + Object.defineProperty(exports2, "max", { enumerable: true, get: function() { + return max_1.max; + } }); + var mergeAll_1 = require_mergeAll(); + Object.defineProperty(exports2, "mergeAll", { enumerable: true, get: function() { + return mergeAll_1.mergeAll; + } }); + var flatMap_1 = require_flatMap(); + Object.defineProperty(exports2, "flatMap", { enumerable: true, get: function() { + return flatMap_1.flatMap; + } }); + var mergeMap_1 = require_mergeMap(); + Object.defineProperty(exports2, "mergeMap", { enumerable: true, get: function() { + return mergeMap_1.mergeMap; + } }); + var mergeMapTo_1 = require_mergeMapTo(); + Object.defineProperty(exports2, "mergeMapTo", { enumerable: true, get: function() { + return mergeMapTo_1.mergeMapTo; + } }); + var mergeScan_1 = require_mergeScan(); + Object.defineProperty(exports2, "mergeScan", { enumerable: true, get: function() { + return mergeScan_1.mergeScan; + } }); + var mergeWith_1 = require_mergeWith(); + Object.defineProperty(exports2, "mergeWith", { enumerable: true, get: function() { + return mergeWith_1.mergeWith; + } }); + var min_1 = require_min3(); + Object.defineProperty(exports2, "min", { enumerable: true, get: function() { + return min_1.min; + } }); + var multicast_1 = require_multicast(); + Object.defineProperty(exports2, "multicast", { enumerable: true, get: function() { + return multicast_1.multicast; + } }); + var observeOn_1 = require_observeOn(); + Object.defineProperty(exports2, "observeOn", { enumerable: true, get: function() { + return observeOn_1.observeOn; + } }); + var onErrorResumeNextWith_1 = require_onErrorResumeNextWith(); + Object.defineProperty(exports2, "onErrorResumeNextWith", { enumerable: true, get: function() { + return onErrorResumeNextWith_1.onErrorResumeNextWith; + } }); + var pairwise_1 = require_pairwise(); + Object.defineProperty(exports2, "pairwise", { enumerable: true, get: function() { + return pairwise_1.pairwise; + } }); + var pluck_1 = require_pluck(); + Object.defineProperty(exports2, "pluck", { enumerable: true, get: function() { + return pluck_1.pluck; + } }); + var publish_1 = require_publish(); + Object.defineProperty(exports2, "publish", { enumerable: true, get: function() { + return publish_1.publish; + } }); + var publishBehavior_1 = require_publishBehavior(); + Object.defineProperty(exports2, "publishBehavior", { enumerable: true, get: function() { + return publishBehavior_1.publishBehavior; + } }); + var publishLast_1 = require_publishLast(); + Object.defineProperty(exports2, "publishLast", { enumerable: true, get: function() { + return publishLast_1.publishLast; + } }); + var publishReplay_1 = require_publishReplay(); + Object.defineProperty(exports2, "publishReplay", { enumerable: true, get: function() { + return publishReplay_1.publishReplay; + } }); + var raceWith_1 = require_raceWith(); + Object.defineProperty(exports2, "raceWith", { enumerable: true, get: function() { + return raceWith_1.raceWith; + } }); + var reduce_1 = require_reduce(); + Object.defineProperty(exports2, "reduce", { enumerable: true, get: function() { + return reduce_1.reduce; + } }); + var repeat_1 = require_repeat(); + Object.defineProperty(exports2, "repeat", { enumerable: true, get: function() { + return repeat_1.repeat; + } }); + var repeatWhen_1 = require_repeatWhen(); + Object.defineProperty(exports2, "repeatWhen", { enumerable: true, get: function() { + return repeatWhen_1.repeatWhen; + } }); + var retry_1 = require_retry(); + Object.defineProperty(exports2, "retry", { enumerable: true, get: function() { + return retry_1.retry; + } }); + var retryWhen_1 = require_retryWhen(); + Object.defineProperty(exports2, "retryWhen", { enumerable: true, get: function() { + return retryWhen_1.retryWhen; + } }); + var refCount_1 = require_refCount(); + Object.defineProperty(exports2, "refCount", { enumerable: true, get: function() { + return refCount_1.refCount; + } }); + var sample_1 = require_sample(); + Object.defineProperty(exports2, "sample", { enumerable: true, get: function() { + return sample_1.sample; + } }); + var sampleTime_1 = require_sampleTime(); + Object.defineProperty(exports2, "sampleTime", { enumerable: true, get: function() { + return sampleTime_1.sampleTime; + } }); + var scan_1 = require_scan(); + Object.defineProperty(exports2, "scan", { enumerable: true, get: function() { + return scan_1.scan; + } }); + var sequenceEqual_1 = require_sequenceEqual(); + Object.defineProperty(exports2, "sequenceEqual", { enumerable: true, get: function() { + return sequenceEqual_1.sequenceEqual; + } }); + var share_1 = require_share(); + Object.defineProperty(exports2, "share", { enumerable: true, get: function() { + return share_1.share; + } }); + var shareReplay_1 = require_shareReplay(); + Object.defineProperty(exports2, "shareReplay", { enumerable: true, get: function() { + return shareReplay_1.shareReplay; + } }); + var single_1 = require_single(); + Object.defineProperty(exports2, "single", { enumerable: true, get: function() { + return single_1.single; + } }); + var skip_1 = require_skip(); + Object.defineProperty(exports2, "skip", { enumerable: true, get: function() { + return skip_1.skip; + } }); + var skipLast_1 = require_skipLast(); + Object.defineProperty(exports2, "skipLast", { enumerable: true, get: function() { + return skipLast_1.skipLast; + } }); + var skipUntil_1 = require_skipUntil(); + Object.defineProperty(exports2, "skipUntil", { enumerable: true, get: function() { + return skipUntil_1.skipUntil; + } }); + var skipWhile_1 = require_skipWhile(); + Object.defineProperty(exports2, "skipWhile", { enumerable: true, get: function() { + return skipWhile_1.skipWhile; + } }); + var startWith_1 = require_startWith(); + Object.defineProperty(exports2, "startWith", { enumerable: true, get: function() { + return startWith_1.startWith; + } }); + var subscribeOn_1 = require_subscribeOn(); + Object.defineProperty(exports2, "subscribeOn", { enumerable: true, get: function() { + return subscribeOn_1.subscribeOn; + } }); + var switchAll_1 = require_switchAll(); + Object.defineProperty(exports2, "switchAll", { enumerable: true, get: function() { + return switchAll_1.switchAll; + } }); + var switchMap_1 = require_switchMap(); + Object.defineProperty(exports2, "switchMap", { enumerable: true, get: function() { + return switchMap_1.switchMap; + } }); + var switchMapTo_1 = require_switchMapTo(); + Object.defineProperty(exports2, "switchMapTo", { enumerable: true, get: function() { + return switchMapTo_1.switchMapTo; + } }); + var switchScan_1 = require_switchScan(); + Object.defineProperty(exports2, "switchScan", { enumerable: true, get: function() { + return switchScan_1.switchScan; + } }); + var take_1 = require_take(); + Object.defineProperty(exports2, "take", { enumerable: true, get: function() { + return take_1.take; + } }); + var takeLast_1 = require_takeLast(); + Object.defineProperty(exports2, "takeLast", { enumerable: true, get: function() { + return takeLast_1.takeLast; + } }); + var takeUntil_1 = require_takeUntil(); + Object.defineProperty(exports2, "takeUntil", { enumerable: true, get: function() { + return takeUntil_1.takeUntil; + } }); + var takeWhile_1 = require_takeWhile(); + Object.defineProperty(exports2, "takeWhile", { enumerable: true, get: function() { + return takeWhile_1.takeWhile; + } }); + var tap_1 = require_tap(); + Object.defineProperty(exports2, "tap", { enumerable: true, get: function() { + return tap_1.tap; + } }); + var throttle_1 = require_throttle(); + Object.defineProperty(exports2, "throttle", { enumerable: true, get: function() { + return throttle_1.throttle; + } }); + var throttleTime_1 = require_throttleTime(); + Object.defineProperty(exports2, "throttleTime", { enumerable: true, get: function() { + return throttleTime_1.throttleTime; + } }); + var throwIfEmpty_1 = require_throwIfEmpty(); + Object.defineProperty(exports2, "throwIfEmpty", { enumerable: true, get: function() { + return throwIfEmpty_1.throwIfEmpty; + } }); + var timeInterval_1 = require_timeInterval(); + Object.defineProperty(exports2, "timeInterval", { enumerable: true, get: function() { + return timeInterval_1.timeInterval; + } }); + var timeout_2 = require_timeout(); + Object.defineProperty(exports2, "timeout", { enumerable: true, get: function() { + return timeout_2.timeout; + } }); + var timeoutWith_1 = require_timeoutWith(); + Object.defineProperty(exports2, "timeoutWith", { enumerable: true, get: function() { + return timeoutWith_1.timeoutWith; + } }); + var timestamp_1 = require_timestamp(); + Object.defineProperty(exports2, "timestamp", { enumerable: true, get: function() { + return timestamp_1.timestamp; + } }); + var toArray_1 = require_toArray(); + Object.defineProperty(exports2, "toArray", { enumerable: true, get: function() { + return toArray_1.toArray; + } }); + var window_1 = require_window(); + Object.defineProperty(exports2, "window", { enumerable: true, get: function() { + return window_1.window; + } }); + var windowCount_1 = require_windowCount(); + Object.defineProperty(exports2, "windowCount", { enumerable: true, get: function() { + return windowCount_1.windowCount; + } }); + var windowTime_1 = require_windowTime(); + Object.defineProperty(exports2, "windowTime", { enumerable: true, get: function() { + return windowTime_1.windowTime; + } }); + var windowToggle_1 = require_windowToggle(); + Object.defineProperty(exports2, "windowToggle", { enumerable: true, get: function() { + return windowToggle_1.windowToggle; + } }); + var windowWhen_1 = require_windowWhen(); + Object.defineProperty(exports2, "windowWhen", { enumerable: true, get: function() { + return windowWhen_1.windowWhen; + } }); + var withLatestFrom_1 = require_withLatestFrom(); + Object.defineProperty(exports2, "withLatestFrom", { enumerable: true, get: function() { + return withLatestFrom_1.withLatestFrom; + } }); + var zipAll_1 = require_zipAll(); + Object.defineProperty(exports2, "zipAll", { enumerable: true, get: function() { + return zipAll_1.zipAll; + } }); + var zipWith_1 = require_zipWith(); + Object.defineProperty(exports2, "zipWith", { enumerable: true, get: function() { + return zipWith_1.zipWith; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/packageInfo.js + var require_packageInfo16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-codec", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/packageInfo.js + var require_packageInfo17 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-create", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/packageDetect.js + var require_packageDetect3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo16(); + var packageInfo_2 = require_packageInfo17(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo14(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/hashers.js + var require_hashers = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/hashers.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllHashers = void 0; + exports2.AllHashers = { + Blake2_128: null, + Blake2_256: null, + Blake2_128Concat: null, + Twox128: null, + Twox256: null, + Twox64Concat: null, + Identity: null + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/runtime.js + var require_runtime = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var META_V1_TO_V22 = { + metadata: { + description: "Returns the metadata of a runtime", + params: [], + type: "OpaqueMetadata" + } + }; + exports2.runtime = { + Metadata: [ + { + methods: { + metadata_at_version: { + description: "Returns the metadata at a given version.", + params: [ + { + name: "version", + type: "u32" + } + ], + type: "Option" + }, + metadata_versions: { + description: "Returns the supported metadata versions.", + params: [], + type: "Vec" + }, + ...META_V1_TO_V22 + }, + version: 2 + }, + { + methods: { + ...META_V1_TO_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v9.js + var require_v9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v9.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v9 = void 0; + exports2.v9 = { + ErrorMetadataV9: { + name: "Text", + docs: "Vec" + }, + EventMetadataV9: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + FunctionArgumentMetadataV9: { + name: "Text", + type: "Type" + }, + FunctionMetadataV9: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + MetadataV9: { + modules: "Vec" + }, + ModuleConstantMetadataV9: { + name: "Text", + type: "Type", + value: "Bytes", + docs: "Vec" + }, + ModuleMetadataV9: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryMetadataV9: { + name: "Text", + modifier: "StorageEntryModifierV9", + type: "StorageEntryTypeV9", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryModifierV9: { + _enum: ["Optional", "Default", "Required"] + }, + StorageEntryTypeV9: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV9", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV9", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV9" + } + } + }, + StorageHasherV9: { + _enum: { + Blake2_128: null, + Blake2_256: null, + Twox128: null, + Twox256: null, + Twox64Concat: null + } + }, + StorageMetadataV9: { + prefix: "Text", + items: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v10.js + var require_v10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v10.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v10 = void 0; + exports2.v10 = { + ErrorMetadataV10: "ErrorMetadataV9", + EventMetadataV10: "EventMetadataV9", + FunctionArgumentMetadataV10: "FunctionArgumentMetadataV9", + FunctionMetadataV10: "FunctionMetadataV9", + MetadataV10: { + modules: "Vec" + }, + ModuleConstantMetadataV10: "ModuleConstantMetadataV9", + ModuleMetadataV10: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryModifierV10: "StorageEntryModifierV9", + StorageEntryMetadataV10: { + name: "Text", + modifier: "StorageEntryModifierV10", + type: "StorageEntryTypeV10", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV10: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV10", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV10", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV10" + } + } + }, + StorageMetadataV10: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV10: { + _enum: { + Blake2_128: null, + Blake2_256: null, + Blake2_128Concat: null, + Twox128: null, + Twox256: null, + Twox64Concat: null + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v11.js + var require_v11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v11.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v11 = void 0; + var hashers_js_1 = require_hashers(); + exports2.v11 = { + ErrorMetadataV11: "ErrorMetadataV10", + EventMetadataV11: "EventMetadataV10", + ExtrinsicMetadataV11: { + version: "u8", + signedExtensions: "Vec" + }, + FunctionArgumentMetadataV11: "FunctionArgumentMetadataV10", + FunctionMetadataV11: "FunctionMetadataV10", + MetadataV11: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV11" + }, + ModuleConstantMetadataV11: "ModuleConstantMetadataV10", + ModuleMetadataV11: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec" + }, + StorageEntryModifierV11: "StorageEntryModifierV10", + StorageEntryMetadataV11: { + name: "Text", + modifier: "StorageEntryModifierV11", + type: "StorageEntryTypeV11", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV11: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV11", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV11", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV11" + } + } + }, + StorageMetadataV11: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV11: { + _enum: hashers_js_1.AllHashers + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v12.js + var require_v12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v12.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v12 = void 0; + exports2.v12 = { + ErrorMetadataV12: "ErrorMetadataV11", + EventMetadataV12: "EventMetadataV11", + ExtrinsicMetadataV12: "ExtrinsicMetadataV11", + FunctionArgumentMetadataV12: "FunctionArgumentMetadataV11", + FunctionMetadataV12: "FunctionMetadataV11", + MetadataV12: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV12" + }, + ModuleConstantMetadataV12: "ModuleConstantMetadataV11", + ModuleMetadataV12: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec", + index: "u8" + }, + StorageEntryModifierV12: "StorageEntryModifierV11", + StorageEntryMetadataV12: "StorageEntryMetadataV11", + StorageEntryTypeV12: "StorageEntryTypeV11", + StorageMetadataV12: "StorageMetadataV11", + StorageHasherV12: "StorageHasherV11" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v13.js + var require_v13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v13.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v13 = void 0; + exports2.v13 = { + ErrorMetadataV13: "ErrorMetadataV12", + EventMetadataV13: "EventMetadataV12", + ExtrinsicMetadataV13: "ExtrinsicMetadataV12", + FunctionArgumentMetadataV13: "FunctionArgumentMetadataV12", + FunctionMetadataV13: "FunctionMetadataV12", + MetadataV13: { + modules: "Vec", + extrinsic: "ExtrinsicMetadataV13" + }, + ModuleConstantMetadataV13: "ModuleConstantMetadataV12", + ModuleMetadataV13: { + name: "Text", + storage: "Option", + calls: "Option>", + events: "Option>", + constants: "Vec", + errors: "Vec", + index: "u8" + }, + StorageEntryModifierV13: "StorageEntryModifierV12", + StorageEntryMetadataV13: { + name: "Text", + modifier: "StorageEntryModifierV13", + type: "StorageEntryTypeV13", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryTypeV13: { + _enum: { + Plain: "Type", + Map: { + hasher: "StorageHasherV13", + key: "Type", + value: "Type", + linked: "bool" + }, + DoubleMap: { + hasher: "StorageHasherV13", + key1: "Type", + key2: "Type", + value: "Type", + key2Hasher: "StorageHasherV13" + }, + NMap: { + keyVec: "Vec", + hashers: "Vec", + value: "Type" + } + } + }, + StorageMetadataV13: { + prefix: "Text", + items: "Vec" + }, + StorageHasherV13: "StorageHasherV12" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v1.js + var require_v1 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v1 = exports2.Si1Variant = void 0; + exports2.Si1Variant = { + name: "Text", + fields: "Vec", + index: "u8", + docs: "Vec" + }; + exports2.v1 = { + Si1Field: { + name: "Option", + type: "Si1LookupTypeId", + typeName: "Option", + docs: "Vec" + }, + Si1LookupTypeId: "Compact", + Si1Path: "Si0Path", + Si1Type: { + path: "Si1Path", + params: "Vec", + def: "Si1TypeDef", + docs: "Vec" + }, + Si1TypeDef: { + _enum: { + Composite: "Si1TypeDefComposite", + Variant: "Si1TypeDefVariant", + Sequence: "Si1TypeDefSequence", + Array: "Si1TypeDefArray", + Tuple: "Si1TypeDefTuple", + Primitive: "Si1TypeDefPrimitive", + Compact: "Si1TypeDefCompact", + BitSequence: "Si1TypeDefBitSequence", + HistoricMetaCompat: "Type" + } + }, + Si1TypeDefArray: { + len: "u32", + type: "Si1LookupTypeId" + }, + Si1TypeDefBitSequence: { + bitStoreType: "Si1LookupTypeId", + bitOrderType: "Si1LookupTypeId" + }, + Si1TypeDefCompact: { + type: "Si1LookupTypeId" + }, + Si1TypeDefComposite: { + fields: "Vec" + }, + Si1TypeDefPrimitive: "Si0TypeDefPrimitive", + Si1TypeDefSequence: { + type: "Si1LookupTypeId" + }, + Si1TypeDefTuple: "Vec", + Si1TypeParameter: { + name: "Text", + type: "Option" + }, + Si1TypeDefVariant: { + variants: "Vec" + }, + Si1Variant: exports2.Si1Variant + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v14.js + var require_v14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v14.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v14 = void 0; + var v1_js_1 = require_v1(); + exports2.v14 = { + PortableTypeV14: { + id: "Si1LookupTypeId", + type: "Si1Type" + }, + ErrorMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + EventMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + FunctionArgumentMetadataV14: { + name: "Text", + type: "Type", + typeName: "Option" + }, + FunctionMetadataV14: { + ...v1_js_1.Si1Variant, + args: "Vec" + }, + ExtrinsicMetadataV14: { + type: "SiLookupTypeId", + version: "u8", + signedExtensions: "Vec" + }, + MetadataV14: { + lookup: "PortableRegistry", + pallets: "Vec", + extrinsic: "ExtrinsicMetadataV14", + type: "SiLookupTypeId" + }, + PalletCallMetadataV14: { + type: "SiLookupTypeId" + }, + PalletConstantMetadataV14: { + name: "Text", + type: "SiLookupTypeId", + value: "Bytes", + docs: "Vec" + }, + PalletErrorMetadataV14: { + type: "SiLookupTypeId" + }, + PalletEventMetadataV14: { + type: "SiLookupTypeId" + }, + PalletMetadataV14: { + name: "Text", + storage: "Option", + calls: "Option", + events: "Option", + constants: "Vec", + errors: "Option", + index: "u8" + }, + PalletStorageMetadataV14: { + prefix: "Text", + items: "Vec" + }, + SignedExtensionMetadataV14: { + identifier: "Text", + type: "SiLookupTypeId", + additionalSigned: "SiLookupTypeId" + }, + StorageEntryMetadataV14: { + name: "Text", + modifier: "StorageEntryModifierV14", + type: "StorageEntryTypeV14", + fallback: "Bytes", + docs: "Vec" + }, + StorageEntryModifierV14: "StorageEntryModifierV13", + StorageEntryTypeV14: { + _enum: { + Plain: "SiLookupTypeId", + Map: { + hashers: "Vec", + key: "SiLookupTypeId", + value: "SiLookupTypeId" + } + } + }, + StorageHasherV14: "StorageHasherV13" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/v15.js + var require_v15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/v15.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v15 = void 0; + exports2.v15 = { + CustomMetadata15: { + map: "BTreeMap" + }, + CustomValueMetadata15: { + type: "SiLookupTypeId", + value: "Bytes" + }, + ExtrinsicMetadataV15: { + version: "u8", + addressType: "SiLookupTypeId", + callType: "SiLookupTypeId", + signatureType: "SiLookupTypeId", + extraType: "SiLookupTypeId", + signedExtensions: "Vec" + }, + OuterEnums15: { + callType: "SiLookupTypeId", + eventType: "SiLookupTypeId", + errorType: "SiLookupTypeId" + }, + PalletMetadataV15: { + name: "Text", + storage: "Option", + calls: "Option", + events: "Option", + constants: "Vec", + errors: "Option", + index: "u8", + docs: "Vec" + }, + RuntimeApiMetadataV15: { + name: "Text", + methods: "Vec", + docs: "Vec" + }, + RuntimeApiMethodMetadataV15: { + name: "Text", + inputs: "Vec", + output: "SiLookupTypeId", + docs: "Vec" + }, + RuntimeApiMethodParamMetadataV15: { + name: "Text", + type: "SiLookupTypeId" + }, + MetadataV15: { + lookup: "PortableRegistry", + pallets: "Vec", + extrinsic: "ExtrinsicMetadataV15", + type: "SiLookupTypeId", + apis: "Vec", + outerEnums: "OuterEnums15", + custom: "CustomMetadata15" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/metadata/definitions.js + var require_definitions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/metadata/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllHashers = void 0; + var hashers_js_1 = require_hashers(); + Object.defineProperty(exports2, "AllHashers", { enumerable: true, get: function() { + return hashers_js_1.AllHashers; + } }); + var runtime_js_1 = require_runtime(); + var v9_js_1 = require_v9(); + var v10_js_1 = require_v10(); + var v11_js_1 = require_v11(); + var v12_js_1 = require_v12(); + var v13_js_1 = require_v13(); + var v14_js_1 = require_v14(); + var v15_js_1 = require_v15(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...v9_js_1.v9, + ...v10_js_1.v10, + ...v11_js_1.v11, + ...v12_js_1.v12, + ...v13_js_1.v13, + ...v14_js_1.v14, + ...v15_js_1.v15, + ErrorMetadataLatest: "ErrorMetadataV14", + EventMetadataLatest: "EventMetadataV14", + ExtrinsicMetadataLatest: "ExtrinsicMetadataV15", + FunctionArgumentMetadataLatest: "FunctionArgumentMetadataV14", + FunctionMetadataLatest: "FunctionMetadataV14", + MetadataLatest: "MetadataV15", + PalletCallMetadataLatest: "PalletCallMetadataV14", + PalletConstantMetadataLatest: "PalletConstantMetadataV14", + PalletErrorMetadataLatest: "PalletErrorMetadataV14", + PalletEventMetadataLatest: "PalletEventMetadataV14", + PalletMetadataLatest: "PalletMetadataV15", + PalletStorageMetadataLatest: "PalletStorageMetadataV14", + PortableType: "PortableTypeV14", + RuntimeApiMetadataLatest: "RuntimeApiMetadataV15", + SignedExtensionMetadataLatest: "SignedExtensionMetadataV14", + StorageEntryMetadataLatest: "StorageEntryMetadataV14", + StorageEntryModifierLatest: "StorageEntryModifierV14", + StorageEntryTypeLatest: "StorageEntryTypeV14", + StorageHasher: "StorageHasherV14", + OpaqueMetadata: "Opaque", + MetadataAll: { + _enum: { + V0: "DoNotConstruct", + V1: "DoNotConstruct", + V2: "DoNotConstruct", + V3: "DoNotConstruct", + V4: "DoNotConstruct", + V5: "DoNotConstruct", + V6: "DoNotConstruct", + V7: "DoNotConstruct", + V8: "DoNotConstruct", + V9: "MetadataV9", + V10: "MetadataV10", + V11: "MetadataV11", + V12: "MetadataV12", + V13: "MetadataV13", + V14: "MetadataV14", + V15: "MetadataV15" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/runtime/runtime.js + var require_runtime2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/runtime/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var CORE_V1_TO_V42 = { + execute_block: { + description: "Execute the given block.", + params: [ + { + name: "block", + type: "Block" + } + ], + type: "Null" + } + }; + var CORE_V1_TO_V22 = { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersionPre3" + } + }; + var CORE_V2_TO_V42 = { + initialize_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + } + }; + var CORE_V4_VERSION2 = { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersion" + } + }; + var CORE_V4_TO_V52 = { + ...CORE_V1_TO_V42, + initialize_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "ExtrinsicInclusionMode" + } + }; + exports2.runtime = { + Core: [ + { + methods: { + ...CORE_V4_VERSION2, + ...CORE_V4_TO_V52 + }, + version: 5 + }, + { + methods: { + ...CORE_V4_VERSION2, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 4 + }, + { + methods: { + version: { + description: "Returns the version of the runtime.", + params: [], + type: "RuntimeVersionPre4" + }, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 3 + }, + { + methods: { + ...CORE_V1_TO_V22, + ...CORE_V1_TO_V42, + ...CORE_V2_TO_V42 + }, + version: 2 + }, + { + methods: { + initialise_block: { + description: "Initialize a block with the given header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + }, + ...CORE_V1_TO_V22, + ...CORE_V1_TO_V42 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/runtime/definitions.js + var require_definitions2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/runtime/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.knownOrigins = void 0; + var runtime_js_1 = require_runtime2(); + var numberTypes2 = { + Fixed64: "Int<64, Fixed64>", + FixedI64: "Int<64, FixedI64>", + FixedU64: "UInt<64, FixedU64>", + Fixed128: "Int<128, Fixed128>", + FixedI128: "Int<128, FixedI128>", + FixedU128: "UInt<128, FixedU128>", + I32F32: "Int<64, I32F32>", + U32F32: "UInt<64, U32F32>", + PerU16: "UInt<16, PerU16>", + Perbill: "UInt<32, Perbill>", + Percent: "UInt<8, Percent>", + Permill: "UInt<32, Permill>", + Perquintill: "UInt<64, Perquintill>" + }; + exports2.knownOrigins = { + Council: "CollectiveOrigin", + System: "SystemOrigin", + TechnicalCommittee: "CollectiveOrigin", + Xcm: "XcmOrigin", + XcmPallet: "XcmOrigin", + Authority: "AuthorityOrigin", + GeneralCouncil: "CollectiveOrigin" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...numberTypes2, + AccountId: "AccountId32", + AccountId20: "GenericEthereumAccountId", + AccountId32: "GenericAccountId32", + AccountId33: "GenericAccountId33", + AccountIdOf: "AccountId", + AccountIndex: "GenericAccountIndex", + Address: "MultiAddress", + AssetId: "u32", + Balance: "UInt<128, Balance>", + BalanceOf: "Balance", + Block: "GenericBlock", + BlockNumber: "u32", + BlockNumberFor: "BlockNumber", + BlockNumberOf: "BlockNumber", + Call: "GenericCall", + CallHash: "Hash", + CallHashOf: "CallHash", + ChangesTrieConfiguration: { + digestInterval: "u32", + digestLevels: "u32" + }, + ChangesTrieSignal: { + _enum: { + NewConfiguration: "Option" + } + }, + ConsensusEngineId: "GenericConsensusEngineId", + CodecHash: "Hash", + CrateVersion: { + major: "u16", + minor: "u8", + patch: "u8" + }, + Digest: { + logs: "Vec" + }, + DigestItem: { + _enum: { + Other: "Bytes", + AuthoritiesChange: "Vec", + ChangesTrieRoot: "Hash", + SealV0: "SealV0", + Consensus: "Consensus", + Seal: "Seal", + PreRuntime: "PreRuntime", + ChangesTrieSignal: "ChangesTrieSignal", + RuntimeEnvironmentUpdated: "Null" + } + }, + ExtrinsicsWeight: { + normal: "Weight", + operational: "Weight" + }, + H32: "[u8; 4; H32]", + H64: "[u8; 8; H64]", + H128: "[u8; 16; H128]", + H160: "[u8; 20; H160]", + H256: "[u8; 32; H256]", + H512: "[u8; 64; H512]", + H1024: "[u8; 128; H1024]", + H2048: "[u8; 256; H2048]", + Hash: "H256", + Header: { + parentHash: "Hash", + number: "Compact", + stateRoot: "Hash", + extrinsicsRoot: "Hash", + digest: "Digest" + }, + HeaderPartial: { + parentHash: "Hash", + number: "BlockNumber" + }, + IndicesLookupSource: "GenericLookupSource", + Index: "u32", + Justification: "(ConsensusEngineId, EncodedJustification)", + EncodedJustification: "Bytes", + Justifications: "Vec", + KeyValue: "(StorageKey, StorageData)", + KeyTypeId: "u32", + LockIdentifier: "[u8; 8]", + LookupSource: "MultiAddress", + LookupTarget: "AccountId", + ModuleId: "LockIdentifier", + MultiAddress: "GenericMultiAddress", + MultiSigner: { + _enum: { + Ed25519: "[u8; 32]", + Sr25519: "[u8; 32]", + Ecdsa: "[u8; 33]" + } + }, + Moment: "UInt<64, Moment>", + OpaqueCall: "Bytes", + Origin: "DoNotConstruct", + OriginCaller: { + _enum: { + System: "SystemOrigin" + } + }, + PalletId: "LockIdentifier", + PalletsOrigin: "OriginCaller", + PalletVersion: { + major: "u16", + minor: "u8", + patch: "u8" + }, + Pays: { + _enum: ["Yes", "No"] + }, + Phantom: "Null", + PhantomData: "Null", + Releases: { + _enum: ["V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8", "V9", "V10"] + }, + RuntimeCall: "Call", + RuntimeEvent: "Event", + RuntimeDbWeight: { + read: "Weight", + write: "Weight" + }, + SignedBlock: "SignedBlockWithJustifications", + SignedBlockWithJustification: { + block: "Block", + justification: "Option" + }, + SignedBlockWithJustifications: { + block: "Block", + justifications: "Option" + }, + Slot: "u64", + SlotDuration: "u64", + StorageData: "Bytes", + StorageInfo: { + palletName: "Bytes", + storage_name: "Bytes", + prefix: "Bytes", + maxValues: "Option", + maxSize: "Option" + }, + StorageProof: { + trieNodes: "Vec" + }, + TransactionPriority: "u64", + TransactionLongevity: "u64", + TransactionTag: "Bytes", + TransactionInfo: { + _alias: { + dataSize: "size" + }, + chunkRoot: "H256", + contentHash: "H256", + dataSize: "u32", + blockChunks: "u32" + }, + TransactionStorageProof: { + chunk: "Vec", + proof: "Vec>" + }, + ValidatorId: "AccountId", + ValidatorIdOf: "ValidatorId", + WeightV0: "u32", + WeightV1: "u64", + WeightV2: { + refTime: "Compact", + proofSize: "Compact" + }, + Weight: "WeightV2", + WeightMultiplier: "Fixed64", + PreRuntime: "(ConsensusEngineId, Bytes)", + SealV0: "(u64, Signature)", + Seal: "(ConsensusEngineId, Bytes)", + Consensus: "(ConsensusEngineId, Bytes)", + ExtrinsicInclusionMode: { + _enum: ["AllExtrinsics", "OnlyInherents"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v0.js + var require_v0 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/v0.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v0 = void 0; + exports2.v0 = { + Si0Field: { + name: "Option", + type: "Si0LookupTypeId", + typeName: "Option", + docs: "Vec" + }, + Si0LookupTypeId: "u32", + Si0Path: "Vec", + Si0Type: { + path: "Si0Path", + params: "Vec", + def: "Si0TypeDef" + }, + Si0TypeDef: { + _enum: { + Composite: "Si0TypeDefComposite", + Variant: "Si0TypeDefVariant", + Sequence: "Si0TypeDefSequence", + Array: "Si0TypeDefArray", + Tuple: "Si0TypeDefTuple", + Primitive: "Si0TypeDefPrimitive", + Compact: "Si0TypeDefCompact", + Phantom: "Si0TypeDefPhantom", + BitSequence: "Si0TypeDefBitSequence" + } + }, + Si0TypeDefArray: { + len: "u32", + type: "Si0LookupTypeId" + }, + Si0TypeDefBitSequence: { + bitStoreType: "Si0LookupTypeId", + bitOrderType: "Si0LookupTypeId" + }, + Si0TypeDefCompact: { + type: "Si0LookupTypeId" + }, + Si0TypeDefComposite: { + fields: "Vec" + }, + Si0TypeDefPhantom: "Null", + Si0TypeDefVariant: { + variants: "Vec" + }, + Si0TypeDefPrimitive: { + _enum: ["Bool", "Char", "Str", "U8", "U16", "U32", "U64", "U128", "U256", "I8", "I16", "I32", "I64", "I128", "I256"] + }, + Si0TypeDefSequence: { + type: "Si0LookupTypeId" + }, + Si0TypeDefTuple: "Vec", + Si0TypeParameter: { + name: "Text", + type: "Option" + }, + Si0Variant: { + name: "Text", + fields: "Vec", + index: "Option", + discriminant: "Option", + docs: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/definitions.js + var require_definitions3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scaleInfo/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var v0_js_1 = require_v0(); + var v1_js_1 = require_v1(); + exports2.default = { + rpc: {}, + types: { + ...v0_js_1.v0, + ...v1_js_1.v1, + SiField: "Si1Field", + SiLookupTypeId: "Si1LookupTypeId", + SiPath: "Si1Path", + SiType: "Si1Type", + SiTypeDef: "Si1TypeDef", + SiTypeDefArray: "Si1TypeDefArray", + SiTypeDefBitSequence: "Si1TypeDefBitSequence", + SiTypeDefCompact: "Si1TypeDefCompact", + SiTypeDefComposite: "Si1TypeDefComposite", + SiTypeDefPrimitive: "Si1TypeDefPrimitive", + SiTypeDefSequence: "Si1TypeDefSequence", + SiTypeDefTuple: "Si1TypeDefTuple", + SiTypeParameter: "Si1TypeParameter", + SiTypeDefVariant: "Si1TypeDefVariant", + SiVariant: "Si1Variant" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/essentials.js + var require_essentials = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/essentials.js"(exports2) { + "use strict"; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.scaleInfo = exports2.runtime = exports2.metadata = void 0; + var definitions_js_1 = require_definitions(); + Object.defineProperty(exports2, "metadata", { enumerable: true, get: function() { + return __importDefault(definitions_js_1).default; + } }); + var definitions_js_2 = require_definitions2(); + Object.defineProperty(exports2, "runtime", { enumerable: true, get: function() { + return __importDefault(definitions_js_2).default; + } }); + var definitions_js_3 = require_definitions3(); + Object.defineProperty(exports2, "scaleInfo", { enumerable: true, get: function() { + return __importDefault(definitions_js_3).default; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/runtime.js + var require_runtime3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AssetConversionApi: [ + { + methods: { + get_reserves: { + description: "Get pool reserves", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + } + ], + type: "Option<(Balance,Balance)>" + }, + quote_price_exact_tokens_for_tokens: { + description: "Quote price: exact tokens for tokens", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + }, + { + name: "amount", + type: "u128" + }, + { + name: "include_fee", + type: "bool" + } + ], + type: "Option<(Balance)>" + }, + quote_price_tokens_for_exact_tokens: { + description: "Quote price: tokens for exact tokens", + params: [ + { + name: "asset1", + type: "StagingXcmV3MultiLocation" + }, + { + name: "asset2", + type: "StagingXcmV3MultiLocation" + }, + { + name: "amount", + type: "u128" + }, + { + name: "include_fee", + type: "bool" + } + ], + type: "Option<(Balance)>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/definitions.js + var require_definitions4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assetConversion/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime3(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + TAssetConversion: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assets/runtime.js + var require_runtime4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assets/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AssetsApi: [ + { + methods: { + account_balances: { + description: "Return the current set of authorities.", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Vec<(u32, TAssetBalance)>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/assets/definitions.js + var require_definitions5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/assets/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime4(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + AssetApprovalKey: { + owner: "AccountId", + delegate: "AccountId" + }, + AssetApproval: { + amount: "TAssetBalance", + deposit: "TAssetDepositBalance" + }, + AssetBalance: { + balance: "TAssetBalance", + isFrozen: "bool", + isSufficient: "bool" + }, + AssetDestroyWitness: { + accounts: "Compact", + sufficients: "Compact", + approvals: "Compact" + }, + AssetDetails: { + owner: "AccountId", + issuer: "AccountId", + admin: "AccountId", + freezer: "AccountId", + supply: "TAssetBalance", + deposit: "TAssetDepositBalance", + minBalance: "TAssetBalance", + isSufficient: "bool", + accounts: "u32", + sufficients: "u32", + approvals: "u32", + isFrozen: "bool" + }, + AssetMetadata: { + deposit: "TAssetDepositBalance", + name: "Vec", + symbol: "Vec", + decimals: "u8", + isFrozen: "bool" + }, + TAssetBalance: "u64", + TAssetDepositBalance: "BalanceOf" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/aura/runtime.js + var require_runtime5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/aura/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuraApi: [ + { + methods: { + authorities: { + description: "Return the current set of authorities.", + params: [], + type: "Vec" + }, + slot_duration: { + description: "Returns the slot duration for Aura.", + params: [], + type: "SlotDuration" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/aura/definitions.js + var require_definitions6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/aura/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime5(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + RawAuraPreDigest: { + slotNumber: "u64" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/authorship/definitions.js + var require_definitions7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/authorship/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + UncleEntryItem: { + _enum: { + InclusionHeight: "BlockNumber", + Uncle: "(Hash, Option)" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/rpc.js + var require_rpc = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + epochAuthorship: { + description: "Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore", + isUnsafe: true, + params: [], + type: "HashMap" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/runtime.js + var require_runtime6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var V1_V2_SHARED2 = { + current_epoch: { + description: "Returns information regarding the current epoch.", + params: [], + type: "Epoch" + }, + current_epoch_start: { + description: "Returns the slot that started the current epoch.", + params: [], + type: "Slot" + }, + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the current epoch.", + params: [ + { + name: "slot", + type: "Slot" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + next_epoch: { + description: "Returns information regarding the next epoch (which was already previously announced).", + params: [], + type: "Epoch" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "BabeEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + } + }; + exports2.runtime = { + BabeApi: [ + { + methods: { + configuration: { + description: "Return the genesis configuration for BABE. The configuration is only read on genesis.", + params: [], + type: "BabeGenesisConfiguration" + }, + ...V1_V2_SHARED2 + }, + version: 2 + }, + { + methods: { + configuration: { + description: "Return the configuration for BABE. Version 1.", + params: [], + type: "BabeGenesisConfigurationV1" + }, + ...V1_V2_SHARED2 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/babe/definitions.js + var require_definitions8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/babe/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc(); + var runtime_js_1 = require_runtime6(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AllowedSlots: { + _enum: ["PrimarySlots", "PrimaryAndSecondaryPlainSlots", "PrimaryAndSecondaryVRFSlots"] + }, + BabeAuthorityWeight: "u64", + BabeEpochConfiguration: { + c: "(u64, u64)", + allowedSlots: "AllowedSlots" + }, + BabeBlockWeight: "u32", + BabeEquivocationProof: { + offender: "AuthorityId", + slotNumber: "SlotNumber", + firstHeader: "Header", + secondHeader: "Header" + }, + BabeGenesisConfiguration: { + slotDuration: "u64", + epochLength: "u64", + c: "(u64, u64)", + genesisAuthorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Randomness", + allowedSlots: "AllowedSlots" + }, + BabeGenesisConfigurationV1: { + slotDuration: "u64", + epochLength: "u64", + c: "(u64, u64)", + genesisAuthorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Randomness", + secondarySlots: "bool" + }, + BabeWeight: "u64", + MaybeRandomness: "Option", + MaybeVrf: "Option", + Epoch: { + epochIndex: "u64", + startSlot: "Slot", + duration: "u64", + authorities: "Vec<(AuthorityId, BabeAuthorityWeight)>", + randomness: "Hash", + config: "BabeEpochConfiguration" + }, + EpochAuthorship: { + primary: "Vec", + secondary: "Vec", + secondary_vrf: "Vec" + }, + NextConfigDescriptor: { + _enum: { + V0: "Null", + V1: "NextConfigDescriptorV1" + } + }, + NextConfigDescriptorV1: { + c: "(u64, u64)", + allowedSlots: "AllowedSlots" + }, + OpaqueKeyOwnershipProof: "Bytes", + Randomness: "Hash", + RawBabePreDigest: { + _enum: { + Phantom: "Null", + Primary: "RawBabePreDigestPrimary", + SecondaryPlain: "RawBabePreDigestSecondaryPlain", + SecondaryVRF: "RawBabePreDigestSecondaryVRF" + } + }, + RawBabePreDigestPrimary: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestSecondaryPlain: { + authorityIndex: "u32", + slotNumber: "SlotNumber" + }, + RawBabePreDigestSecondaryVRF: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestTo159: { + _enum: { + Primary: "RawBabePreDigestPrimaryTo159", + Secondary: "RawBabePreDigestSecondaryTo159" + } + }, + RawBabePreDigestPrimaryTo159: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + weight: "BabeBlockWeight", + vrfOutput: "VrfOutput", + vrfProof: "VrfProof" + }, + RawBabePreDigestSecondaryTo159: { + authorityIndex: "u32", + slotNumber: "SlotNumber", + weight: "BabeBlockWeight" + }, + RawBabePreDigestCompat: { + _enum: { + Zero: "u32", + One: "u32", + Two: "u32", + Three: "u32" + } + }, + SlotNumber: "u64", + VrfData: "[u8; 32]", + VrfOutput: "[u8; 32]", + VrfProof: "[u8; 64]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/balances/definitions.js + var require_definitions9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/balances/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AccountData: { + free: "Balance", + reserved: "Balance", + miscFrozen: "Balance", + feeFrozen: "Balance" + }, + BalanceLockTo212: { + id: "LockIdentifier", + amount: "Balance", + until: "BlockNumber", + reasons: "WithdrawReasons" + }, + BalanceLock: { + id: "LockIdentifier", + amount: "Balance", + reasons: "Reasons" + }, + BalanceStatus: { + _enum: ["Free", "Reserved"] + }, + Reasons: { + _enum: ["Fee", "Misc", "All"] + }, + ReserveData: { + id: "ReserveIdentifier", + amount: "Balance" + }, + ReserveIdentifier: "[u8; 8]", + VestingSchedule: { + offset: "Balance", + perBlock: "Balance", + startingBlock: "BlockNumber" + }, + WithdrawReasons: { + _set: { + TransactionPayment: 1, + Transfer: 2, + Reserve: 4, + Fee: 8, + Tip: 16 + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/rpc.js + var require_rpc2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getFinalizedHead: { + description: "Returns hash of the latest BEEFY finalized block as seen by this client.", + params: [], + type: "H256" + }, + subscribeJustifications: { + description: "Returns the block most recently finalized by BEEFY, alongside its justification.", + params: [], + pubsub: [ + "justifications", + "subscribeJustifications", + "unsubscribeJustifications" + ], + type: "BeefyVersionedFinalityProof" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/runtime.js + var require_runtime7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var BEEFY_V1_V32 = { + beefy_genesis: { + description: "Return the block number where BEEFY consensus is enabled/started", + params: [], + type: "Option" + }, + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the given set.", + params: [ + { + name: "setId", + type: "ValidatorSetId" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "BeefyEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + }, + validator_set: { + description: "Return the current active BEEFY validator set", + params: [], + type: "Option" + } + }; + var BEEFY_MMR_V12 = { + authority_set_proof: { + description: "Return the currently active BEEFY authority set proof.", + params: [], + type: "BeefyAuthoritySet" + }, + next_authority_set_proof: { + description: "Return the next/queued BEEFY authority set proof.", + params: [], + type: "BeefyNextAuthoritySet" + } + }; + exports2.runtime = { + BeefyApi: [ + { + methods: BEEFY_V1_V32, + version: 3 + }, + { + methods: BEEFY_V1_V32, + version: 2 + }, + { + methods: BEEFY_V1_V32, + version: 1 + } + ], + BeefyMmrApi: [ + { + methods: BEEFY_MMR_V12, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/beefy/definitions.js + var require_definitions10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/beefy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc2(); + var runtime_js_1 = require_runtime7(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + BeefyAuthoritySet: { + id: "u64", + len: "u32", + root: "H256" + }, + BeefyCommitment: { + payload: "BeefyPayload", + blockNumber: "BlockNumber", + validatorSetId: "ValidatorSetId" + }, + BeefyId: "[u8; 33]", + BeefyEquivocationProof: { + first: "BeefyVoteMessage", + second: "BeefyVoteMessage" + }, + BeefyCompactSignedCommitment: { + commitment: "BeefyCommitment", + signaturesFrom: "Vec", + validatorSetLen: "u32", + signaturesCompact: "Vec" + }, + BeefySignedCommitment: { + commitment: "BeefyCommitment", + signatures: "Vec>" + }, + BeefyVersionedFinalityProof: { + _enum: { + V0: "Null", + V1: "BeefyCompactSignedCommitment" + } + }, + BeefyNextAuthoritySet: { + id: "u64", + len: "u32", + root: "H256" + }, + BeefyPayload: "Vec<(BeefyPayloadId, Bytes)>", + BeefyPayloadId: "[u8;2]", + BeefyVoteMessage: { + commitment: "BeefyCommitment", + id: "AuthorityId", + signature: "Signature" + }, + MmrRootHash: "H256", + ValidatorSetId: "u64", + ValidatorSet: { + validators: "Vec", + id: "ValidatorSetId" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/benchmark/runtime.js + var require_runtime8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/benchmark/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + Benchmark: [ + { + methods: { + benchmark_metadata: { + description: "Get the benchmark metadata available for this runtime.", + params: [ + { + name: "extra", + type: "bool" + } + ], + type: "(Vec, Vec)" + }, + dispatch_benchmark: { + description: "Dispatch the given benchmark.", + params: [ + { + name: "config", + type: "BenchmarkConfig" + } + ], + type: "Result, Text>" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/benchmark/definitions.js + var require_definitions11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/benchmark/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime8(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + BenchmarkBatch: { + pallet: "Text", + instance: "Text", + benchmark: "Text", + results: "Vec" + }, + BenchmarkConfig: { + pallet: "Bytes", + benchmark: "Bytes", + selectedComponents: "Vec<(BenchmarkParameter, u32)>", + verify: "bool", + internalRepeats: "u32" + }, + BenchmarkList: { + pallet: "Bytes", + instance: "Bytes", + benchmarks: "Vec" + }, + BenchmarkMetadata: { + name: "Bytes", + components: "Vec<(BenchmarkParameter, u32, u32)>" + }, + BenchmarkParameter: { + _enum: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] + }, + BenchmarkResult: { + components: "Vec<(BenchmarkParameter, u32)>", + extrinsicTime: "u128", + storageRootTime: "u128", + reads: "u32", + repeatReads: "u32", + writes: "u32", + repeatWrites: "u32", + proofSize: "u32", + benchKeys: "Vec<(Vec, u32, u32, bool)>" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/runtime.js + var require_runtime9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var BB_V2_TO_V42 = { + random_seed: { + description: "Generate a random seed.", + params: [], + type: "Hash" + } + }; + var BB_V2_TO_V52 = { + apply_extrinsic: { + description: "Apply the given extrinsic.", + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "ApplyExtrinsicResultPre6" + } + }; + var BB_V2_TO_V62 = { + check_inherents: { + description: "Check that the inherents are valid.", + params: [ + { + name: "block", + type: "Block" + }, + { + name: "data", + type: "InherentData" + } + ], + type: "CheckInherentsResult" + }, + inherent_extrinsics: { + description: "Generate inherent extrinsics.", + params: [ + { + name: "inherent", + type: "InherentData" + } + ], + type: "Vec" + } + }; + var BB_V3_TO_V62 = { + finalize_block: { + description: "Finish the current block.", + params: [], + type: "Header" + } + }; + exports2.runtime = { + BlockBuilder: [ + { + methods: { + apply_extrinsic: { + description: "Apply the given extrinsic.", + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "ApplyExtrinsicResult" + }, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 6 + }, + { + methods: { + ...BB_V2_TO_V52, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 5 + }, + { + methods: { + ...BB_V2_TO_V42, + ...BB_V2_TO_V52, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 4 + }, + { + methods: { + ...BB_V2_TO_V42, + ...BB_V2_TO_V62, + ...BB_V3_TO_V62 + }, + version: 3 + }, + { + methods: { + finalise_block: { + description: "Finish the current block.", + params: [], + type: "Header" + }, + ...BB_V2_TO_V42, + ...BB_V2_TO_V62 + }, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/definitions.js + var require_definitions12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/blockbuilder/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime9(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + CheckInherentsResult: { + okay: "bool", + fatalError: "bool", + errors: "InherentData" + }, + InherentData: { + data: "BTreeMap" + }, + InherentIdentifier: "[u8; 8]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/collective/definitions.js + var require_definitions13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/collective/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + CollectiveOrigin: { + _enum: { + Members: "(MemberCount, MemberCount)", + Member: "AccountId" + } + }, + MemberCount: "u32", + ProposalIndex: "u32", + VotesTo230: { + index: "ProposalIndex", + threshold: "MemberCount", + ayes: "Vec", + nays: "Vec" + }, + Votes: { + index: "ProposalIndex", + threshold: "MemberCount", + ayes: "Vec", + nays: "Vec", + end: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/consensus/definitions.js + var require_definitions14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/consensus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AuthorityId: "AccountId", + RawVRFOutput: "[u8; 32]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/rpc.js + var require_rpc3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + call: { + deprecated: "Use the runtime interface `api.call.contractsApi.call` instead", + description: "Executes a call to a contract", + params: [ + { + name: "callRequest", + type: "ContractCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ContractExecResult" + }, + getStorage: { + deprecated: "Use the runtime interface `api.call.contractsApi.getStorage` instead", + description: "Returns the value under a specified storage key in a contract", + params: [ + { + name: "address", + type: "AccountId" + }, + { + name: "key", + type: "H256" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Option" + }, + instantiate: { + deprecated: "Use the runtime interface `api.call.contractsApi.instantiate` instead", + description: "Instantiate a new contract", + params: [ + { + name: "request", + type: "InstantiateRequestV1" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ContractInstantiateResult" + }, + rentProjection: { + deprecated: "Not available in newer versions of the contracts interfaces", + description: "Returns the projected time a given contract will be able to sustain paying its rent", + params: [ + { + name: "address", + type: "AccountId" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Option" + }, + uploadCode: { + deprecated: "Use the runtime interface `api.call.contractsApi.uploadCode` instead", + description: "Upload new code without instantiating a contract from it", + endpoint: "contracts_upload_code", + params: [ + { + name: "uploadRequest", + type: "CodeUploadRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "CodeUploadResult" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/runtime.js + var require_runtime10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var SHARED_V1_V22 = { + get_storage: { + description: "Query a given storage key in a given contract.", + params: [ + { + name: "address", + type: "AccountId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + upload_code: { + description: "Upload new code without instantiating a contract from it.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "code", + type: "Bytes" + }, + { + name: "storageDepositLimit", + type: "Option" + } + ], + type: "CodeUploadResult" + } + }; + exports2.runtime = { + ContractsApi: [ + { + methods: { + call: { + description: "Perform a call from a specified account to a given contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "dest", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "Option" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "inputData", + type: "Vec" + } + ], + type: "ContractExecResult" + }, + instantiate: { + description: "Instantiate a new contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "Option" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "code", + type: "CodeSource" + }, + { + name: "data", + type: "Bytes" + }, + { + name: "salt", + type: "Bytes" + } + ], + type: "ContractInstantiateResult" + }, + ...SHARED_V1_V22 + }, + version: 2 + }, + { + methods: { + call: { + description: "Perform a call from a specified account to a given contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "dest", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "u64" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "inputData", + type: "Vec" + } + ], + type: "ContractExecResultU64" + }, + instantiate: { + description: "Instantiate a new contract.", + params: [ + { + name: "origin", + type: "AccountId" + }, + { + name: "value", + type: "Balance" + }, + { + name: "gasLimit", + type: "u64" + }, + { + name: "storageDepositLimit", + type: "Option" + }, + { + name: "code", + type: "CodeSource" + }, + { + name: "data", + type: "Bytes" + }, + { + name: "salt", + type: "Bytes" + } + ], + type: "ContractInstantiateResultU64" + }, + ...SHARED_V1_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contracts/definitions.js + var require_definitions15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contracts/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc3(); + var runtime_js_1 = require_runtime10(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AliveContractInfo: { + trieId: "TrieId", + storageSize: "u32", + pairCount: "u32", + codeHash: "CodeHash", + rentAllowance: "Balance", + rentPaid: "Balance", + deductBlock: "BlockNumber", + lastWrite: "Option", + _reserved: "Option" + }, + CodeHash: "Hash", + CodeSource: { + _enum: { + Upload: "Bytes", + Existing: "Hash" + } + }, + CodeUploadRequest: { + origin: "AccountId", + code: "Bytes", + storageDepositLimit: "Option" + }, + CodeUploadResult: "Result", + CodeUploadResultValue: { + codeHash: "CodeHash", + deposit: "Balance" + }, + ContractCallRequest: { + origin: "AccountId", + dest: "AccountId", + value: "Balance", + gasLimit: "u64", + storageDepositLimit: "Option", + inputData: "Bytes" + }, + ContractExecResultSuccessTo255: { + status: "u8", + data: "Raw" + }, + ContractExecResultTo255: { + _enum: { + Success: "ContractExecResultSuccessTo255", + Error: "Null" + } + }, + ContractExecResultSuccessTo260: { + flags: "ContractReturnFlags", + data: "Bytes", + gasConsumed: "u64" + }, + ContractExecResultTo260: { + _enum: { + Success: "ContractExecResultSuccessTo260", + Error: "Null" + } + }, + ContractExecResultOk: { + flags: "ContractReturnFlags", + data: "Bytes" + }, + ContractExecResultResult: "Result", + ContractExecResultTo267: { + gasConsumed: "u64", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractExecResult: { + gasConsumed: "Weight", + gasRequired: "Weight", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractExecResultU64: { + gasConsumed: "u64", + gasRequired: "u64", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "ContractExecResultResult" + }, + ContractInfo: { + _enum: { + Alive: "AliveContractInfo", + Tombstone: "TombstoneContractInfo" + } + }, + ContractCallFlags: { + _set: { + _bitLength: 32, + ForwardInput: 1, + CloneInput: 2, + TailCall: 4, + AllowReentry: 8 + } + }, + ContractReturnFlags: { + _set: { + _bitLength: 32, + Revert: 1 + } + }, + ContractStorageKey: "[u8; 32]", + DeletedContract: { + pairCount: "u32", + trieId: "TrieId" + }, + ExecReturnValue: { + flags: "ContractReturnFlags", + data: "Bytes" + }, + Gas: "u64", + HostFnWeightsTo264: { + caller: "Weight", + address: "Weight", + gasLeft: "Weight", + balance: "Weight", + valueTransferred: "Weight", + minimumBalance: "Weight", + tombstoneDeposit: "Weight", + rentAllowance: "Weight", + blockNumber: "Weight", + now: "Weight", + weightToFee: "Weight", + gas: "Weight", + input: "Weight", + inputPerByte: "Weight", + return: "Weight", + returnPerByte: "Weight", + terminate: "Weight", + restoreTo: "Weight", + restoreToPerDelta: "Weight", + random: "Weight", + depositEvent: "Weight", + depositEventPerTopic: "Weight", + depositEventPerByte: "Weight", + setRentAllowance: "Weight", + setStorage: "Weight", + setStoragePerByte: "Weight", + clearStorage: "Weight", + getStorage: "Weight", + getStoragePerByte: "Weight", + transfer: "Weight", + call: "Weight", + callTransferSurcharge: "Weight", + callPerInputByte: "Weight", + callPerOutputByte: "Weight", + instantiate: "Weight", + instantiatePerInputByte: "Weight", + instantiatePerOutputByte: "Weight", + hashSha2256: "Weight", + hashSha2256PerByte: "Weight", + hashKeccak256: "Weight", + hashKeccak256PerByte: "Weight", + hashBlake2256: "Weight", + hashBlake2256PerByte: "Weight", + hashBlake2128: "Weight", + hashBlake2128PerByte: "Weight" + }, + HostFnWeights: { + caller: "Weight", + address: "Weight", + gasLeft: "Weight", + balance: "Weight", + valueTransferred: "Weight", + minimumBalance: "Weight", + tombstoneDeposit: "Weight", + rentAllowance: "Weight", + blockNumber: "Weight", + now: "Weight", + weightToFee: "Weight", + gas: "Weight", + input: "Weight", + inputPerByte: "Weight", + return: "Weight", + returnPerByte: "Weight", + terminate: "Weight", + terminatePerCodeByte: "Weight", + restoreTo: "Weight", + restoreToPerCallerCodeByte: "Weight", + restoreToPerTombstoneCodeByte: "Weight", + restoreToPerDelta: "Weight", + random: "Weight", + depositEvent: "Weight", + depositEventPerTopic: "Weight", + depositEventPerByte: "Weight", + setRentAllowance: "Weight", + setStorage: "Weight", + setStoragePerByte: "Weight", + clearStorage: "Weight", + getStorage: "Weight", + getStoragePerByte: "Weight", + transfer: "Weight", + call: "Weight", + callPerCodeByte: "Weight", + callTransferSurcharge: "Weight", + callPerInputByte: "Weight", + callPerOutputByte: "Weight", + instantiate: "Weight", + instantiatePerCodeByte: "Weight", + instantiatePerInputByte: "Weight", + instantiatePerOutputByte: "Weight", + instantiatePerSaltByte: "Weight", + hashSha2256: "Weight", + hashSha2256PerByte: "Weight", + hashKeccak256: "Weight", + hashKeccak256PerByte: "Weight", + hashBlake2256: "Weight", + hashBlake2256PerByte: "Weight", + hashBlake2128: "Weight", + hashBlake2128PerByte: "Weight", + rentParams: "Weight" + }, + InstantiateRequestV1: { + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + code: "Bytes", + data: "Bytes", + salt: "Bytes" + }, + InstantiateRequestV2: { + _fallback: "InstantiateRequestV1", + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + storageDepositLimit: "Option", + code: "Bytes", + data: "Bytes", + salt: "Bytes" + }, + InstantiateRequest: { + _fallback: "InstantiateRequestV2", + origin: "AccountId", + value: "Balance", + gasLimit: "Gas", + storageDepositLimit: "Option", + code: "CodeSource", + data: "Bytes", + salt: "Bytes" + }, + ContractInstantiateResultTo267: "Result", + ContractInstantiateResultTo299: "Result", + ContractInstantiateResult: { + gasConsumed: "WeightV2", + gasRequired: "WeightV2", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "InstantiateReturnValue" + }, + ContractInstantiateResultU64: { + _fallback: "ContractInstantiateResultTo299", + gasConsumed: "u64", + gasRequired: "u64", + storageDeposit: "StorageDeposit", + debugMessage: "Text", + result: "InstantiateReturnValue" + }, + InstantiateReturnValueTo267: { + result: "ExecReturnValue", + accountId: "AccountId", + rentProjection: "Option" + }, + InstantiateReturnValueOk: { + result: "ExecReturnValue", + accountId: "AccountId" + }, + InstantiateReturnValue: "Result", + InstructionWeights: { + i64const: "u32", + i64load: "u32", + i64store: "u32", + select: "u32", + rIf: "u32", + br: "u32", + brIf: "u32", + brIable: "u32", + brIablePerEntry: "u32", + call: "u32", + callIndirect: "u32", + callIndirectPerParam: "u32", + localGet: "u32", + localSet: "u32", + local_tee: "u32", + globalGet: "u32", + globalSet: "u32", + memoryCurrent: "u32", + memoryGrow: "u32", + i64clz: "u32", + i64ctz: "u32", + i64popcnt: "u32", + i64eqz: "u32", + i64extendsi32: "u32", + i64extendui32: "u32", + i32wrapi64: "u32", + i64eq: "u32", + i64ne: "u32", + i64lts: "u32", + i64ltu: "u32", + i64gts: "u32", + i64gtu: "u32", + i64les: "u32", + i64leu: "u32", + i64ges: "u32", + i64geu: "u32", + i64add: "u32", + i64sub: "u32", + i64mul: "u32", + i64divs: "u32", + i64divu: "u32", + i64rems: "u32", + i64remu: "u32", + i64and: "u32", + i64or: "u32", + i64xor: "u32", + i64shl: "u32", + i64shrs: "u32", + i64shru: "u32", + i64rotl: "u32", + i64rotr: "u32" + }, + LimitsTo264: { + eventTopics: "u32", + stackHeight: "u32", + globals: "u32", + parameters: "u32", + memoryPages: "u32", + tableSize: "u32", + brTableSize: "u32", + subjectLen: "u32", + codeSize: "u32" + }, + Limits: { + eventTopics: "u32", + stackHeight: "u32", + globals: "u32", + parameters: "u32", + memoryPages: "u32", + tableSize: "u32", + brTableSize: "u32", + subjectLen: "u32" + }, + PrefabWasmModule: { + scheduleVersion: "Compact", + initial: "Compact", + maximum: "Compact", + refcount: "Compact", + _reserved: "Option", + code: "Bytes", + originalCodeLen: "u32" + }, + RentProjection: { + _enum: { + EvictionAt: "BlockNumber", + NoEviction: "Null" + } + }, + ScheduleTo212: { + version: "u32", + putCodePerByteCost: "Gas", + growMemCost: "Gas", + regularOpCost: "Gas", + returnDataPerByteCost: "Gas", + eventDataPerByteCost: "Gas", + eventPerTopicCost: "Gas", + eventBaseCost: "Gas", + sandboxDataReadCost: "Gas", + sandboxDataWriteCost: "Gas", + maxEventTopics: "u32", + maxStackHeight: "u32", + maxMemoryPages: "u32", + enablePrintln: "bool", + maxSubjectLen: "u32" + }, + ScheduleTo258: { + version: "u32", + putCodePerByteCost: "Gas", + growMemCost: "Gas", + regularOpCost: "Gas", + returnDataPerByteCost: "Gas", + eventDataPerByteCost: "Gas", + eventPerTopicCost: "Gas", + eventBaseCost: "Gas", + sandboxDataReadCost: "Gas", + sandboxDataWriteCost: "Gas", + transferCost: "Gas", + maxEventTopics: "u32", + maxStackHeight: "u32", + maxMemoryPages: "u32", + enablePrintln: "bool", + maxSubjectLen: "u32" + }, + ScheduleTo264: { + version: "u32", + enablePrintln: "bool", + limits: "LimitsTo264", + instructionWeights: "InstructionWeights", + hostFnWeights: "HostFnWeightsTo264" + }, + Schedule: { + version: "u32", + enablePrintln: "bool", + limits: "Limits", + instructionWeights: "InstructionWeights", + hostFnWeights: "HostFnWeights" + }, + SeedOf: "Hash", + StorageDeposit: { + _enum: { + Refund: "Balance", + Charge: "Balance" + } + }, + TombstoneContractInfo: "Hash", + TrieId: "Bytes" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/democracy/definitions.js + var require_definitions16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/democracy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AllConvictions = void 0; + exports2.AllConvictions = [ + "None", + "Locked1x", + "Locked2x", + "Locked3x", + "Locked4x", + "Locked5x", + "Locked6x" + ]; + exports2.default = { + rpc: {}, + types: { + AccountVote: { + _enum: { + Standard: "AccountVoteStandard", + Split: "AccountVoteSplit" + } + }, + AccountVoteSplit: { + aye: "Balance", + nay: "Balance" + }, + AccountVoteStandard: { + vote: "Vote", + balance: "Balance" + }, + Conviction: { + _enum: exports2.AllConvictions + }, + Delegations: { + votes: "Balance", + capital: "Balance" + }, + PreimageStatus: { + _enum: { + Missing: "BlockNumber", + Available: "PreimageStatusAvailable" + } + }, + PreimageStatusAvailable: { + data: "Bytes", + provider: "AccountId", + deposit: "Balance", + since: "BlockNumber", + expiry: "Option" + }, + PriorLock: "(BlockNumber, Balance)", + PropIndex: "u32", + Proposal: "Call", + ProxyState: { + _enum: { + Open: "AccountId", + Active: "AccountId" + } + }, + ReferendumIndex: "u32", + ReferendumInfoTo239: { + end: "BlockNumber", + proposalHash: "Hash", + threshold: "VoteThreshold", + delay: "BlockNumber" + }, + ReferendumInfo: { + _enum: { + Ongoing: "ReferendumStatus", + Finished: "ReferendumInfoFinished" + } + }, + ReferendumInfoFinished: { + approved: "bool", + end: "BlockNumber" + }, + ReferendumStatus: { + end: "BlockNumber", + proposalHash: "Hash", + threshold: "VoteThreshold", + delay: "BlockNumber", + tally: "Tally" + }, + Tally: { + ayes: "Balance", + nays: "Balance", + turnout: "Balance" + }, + Voting: { + _enum: { + Direct: "VotingDirect", + Delegating: "VotingDelegating" + } + }, + VotingDirect: { + votes: "Vec", + delegations: "Delegations", + prior: "PriorLock" + }, + VotingDirectVote: "(ReferendumIndex, AccountVote)", + VotingDelegating: { + balance: "Balance", + target: "AccountId", + conviction: "Conviction", + delegations: "Delegations", + prior: "PriorLock" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/dev/rpc.js + var require_rpc4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/dev/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getBlockStats: { + description: "Reexecute the specified `block_hash` and gather statistics while doing so", + isUnsafe: true, + params: [ + { + isHistoric: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/dev/definitions.js + var require_definitions17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/dev/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc4(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + BlockStats: { + witnessLen: "u64", + witnessCompactLen: "u64", + blockLen: "u64", + blockNumExtrinsics: "u64" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/discovery/runtime.js + var require_runtime11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/discovery/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuthorityDiscoveryApi: [ + { + methods: { + authorities: { + description: "Retrieve authority identifiers of the current and next authority set.", + params: [], + type: "Vec" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/discovery/definitions.js + var require_definitions18 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/discovery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime11(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/elections/definitions.js + var require_definitions19 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/elections/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ApprovalFlag: "u32", + DefunctVoter: { + who: "AccountId", + voteCount: "Compact", + candidateCount: "Compact" + }, + Renouncing: { + _enum: { + Member: "Null", + RunnerUp: "Null", + Candidate: "Compact" + } + }, + SetIndex: "u32", + Vote: "GenericVote", + VoteIndex: "u32", + VoterInfo: { + lastActive: "VoteIndex", + lastWin: "VoteIndex", + pot: "Balance", + stake: "Balance" + }, + VoteThreshold: { + _enum: [ + "Super Majority Approve", + "Super Majority Against", + "Simple Majority" + ] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/engine/rpc.js + var require_rpc5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/engine/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + createBlock: { + description: "Instructs the manual-seal authorship task to create a new block", + params: [ + { + name: "createEmpty", + type: "bool" + }, + { + name: "finalize", + type: "bool" + }, + { + isOptional: true, + name: "parentHash", + type: "BlockHash" + } + ], + type: "CreatedBlock" + }, + finalizeBlock: { + description: "Instructs the manual-seal authorship task to finalize a block", + params: [ + { + name: "hash", + type: "BlockHash" + }, + { + isOptional: true, + name: "justification", + type: "Justification" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/engine/definitions.js + var require_definitions20 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/engine/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc5(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + CreatedBlock: { + _alias: { + blockHash: "hash" + }, + blockHash: "BlockHash", + aux: "ImportedAux" + }, + ImportedAux: { + headerOnly: "bool", + clearJustificationRequests: "bool", + needsJustification: "bool", + badJustification: "bool", + needsFinalityProof: "bool", + isNewBest: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/evm/definitions.js + var require_definitions21 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/evm/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + EvmAccount: { + nonce: "u256", + balance: "u256" + }, + EvmCallInfo: { + exitReason: "ExitReason", + value: "Bytes", + usedGas: "U256", + logs: "Vec" + }, + EvmCreateInfo: { + exitReason: "ExitReason", + value: "H160", + usedGas: "U256", + logs: "Vec" + }, + EvmCallInfoV2: { + exitReason: "ExitReason", + value: "Bytes", + usedGas: "U256", + weightInfo: "Option", + logs: "Vec" + }, + EvmCreateInfoV2: { + exitReason: "ExitReason", + value: "H160", + usedGas: "U256", + weightInfo: "Option", + logs: "Vec" + }, + EvmLog: { + address: "H160", + topics: "Vec", + data: "Bytes" + }, + EvmVicinity: { + gasPrice: "u256", + origin: "H160" + }, + EvmWeightInfo: { + refTimeLimit: "Option", + proofSizeLimit: "Option", + refTimeUsage: "Option", + proofSizeUsage: "Option" + }, + ExitError: { + _enum: { + StackUnderflow: "Null", + StackOverflow: "Null", + InvalidJump: "Null", + InvalidRange: "Null", + DesignatedInvalid: "Null", + CallTooDeep: "Null", + CreateCollision: "Null", + CreateContractLimit: "Null", + OutOfOffset: "Null", + OutOfGas: "Null", + OutOfFund: "Null", + PCUnderflow: "Null", + CreateEmpty: "Null", + Other: "Text" + } + }, + ExitFatal: { + _enum: { + NotSupported: "Null", + UnhandledInterrupt: "Null", + CallErrorAsFatal: "ExitError", + Other: "Text" + } + }, + ExitReason: { + _enum: { + Succeed: "ExitSucceed", + Error: "ExitError", + Revert: "ExitRevert", + Fatal: "ExitFatal" + } + }, + ExitRevert: { + _enum: ["Reverted"] + }, + ExitSucceed: { + _enum: ["Stopped", "Returned", "Suicided"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/extrinsics/definitions.js + var require_definitions22 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/extrinsics/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Extrinsic: "GenericExtrinsic", + ExtrinsicEra: "GenericExtrinsicEra", + ExtrinsicPayload: "GenericExtrinsicPayload", + ExtrinsicSignature: "MultiSignature", + ExtrinsicV4: "GenericExtrinsicV4", + ExtrinsicPayloadV4: "GenericExtrinsicPayloadV4", + ExtrinsicSignatureV4: "GenericExtrinsicSignatureV4", + ExtrinsicUnknown: "GenericExtrinsicUnknown", + ExtrinsicPayloadUnknown: "GenericExtrinsicPayloadUnknown", + Era: "ExtrinsicEra", + ImmortalEra: "GenericImmortalEra", + MortalEra: "GenericMortalEra", + AnySignature: "H512", + MultiSignature: { + _enum: { + Ed25519: "Ed25519Signature", + Sr25519: "Sr25519Signature", + Ecdsa: "EcdsaSignature" + } + }, + Signature: "H512", + SignerPayload: "GenericSignerPayload", + EcdsaSignature: "[u8; 65]", + Ed25519Signature: "H512", + Sr25519Signature: "H512" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/fungibles/runtime.js + var require_runtime12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/fungibles/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + FungiblesApi: [ + { + methods: { + query_account_balances: { + description: "Returns the list of all `MultiAsset` that an `AccountId` has", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Result, FungiblesAccessError>" + } + }, + version: 1 + }, + { + methods: { + query_account_balances: { + description: "Returns the list of all `MultiAsset` that an `AccountId` has", + params: [ + { + name: "account", + type: "AccountId" + } + ], + type: "Result" + } + }, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/fungibles/definitions.js + var require_definitions23 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/fungibles/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime12(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + FungiblesAccessError: { + _enum: ["AssetIdConversionFailed", "AmountToBalanceConversionFailed"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genericAsset/definitions.js + var require_definitions24 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genericAsset/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AssetOptions: { + initalIssuance: "Compact", + permissions: "PermissionLatest" + }, + Owner: { + _enum: { + None: "Null", + Address: "AccountId" + } + }, + PermissionsV1: { + update: "Owner", + mint: "Owner", + burn: "Owner" + }, + PermissionVersions: { + _enum: { + V1: "PermissionsV1" + } + }, + PermissionLatest: "PermissionsV1" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/runtime.js + var require_runtime13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + GenesisBuilder: [ + { + methods: { + build_config: { + description: "Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.", + params: [ + { + name: "json", + type: "Vec" + } + ], + type: "Result<(), GenesisBuildErr>" + }, + create_default_config: { + description: "Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.", + params: [], + type: "Vec" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/definitions.js + var require_definitions25 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/genesisBuilder/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime13(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + GenesisBuildErr: "Text" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/gilt/definitions.js + var require_definitions26 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/gilt/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ActiveGilt: { + proportion: "Perquintill", + amount: "Balance", + who: "AccountId", + expiry: "BlockNumber" + }, + ActiveGiltsTotal: { + frozen: "Balance", + proportion: "Perquintill", + index: "ActiveIndex", + target: "Perquintill" + }, + ActiveIndex: "u32", + GiltBid: { + amount: "Balance", + who: "AccountId" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/rpc.js + var require_rpc6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + proveFinality: { + description: "Prove finality for the given block number, returning the Justification for the last block in the set.", + params: [ + { + name: "blockNumber", + type: "BlockNumber" + } + ], + type: "Option" + }, + roundState: { + description: "Returns the state of the current best round state as well as the ongoing background rounds", + params: [], + type: "ReportedRoundStates" + }, + subscribeJustifications: { + description: "Subscribes to grandpa justifications", + params: [], + pubsub: [ + "justifications", + "subscribeJustifications", + "unsubscribeJustifications" + ], + type: "JustificationNotification" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/runtime.js + var require_runtime14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var GRANDPA_V2_V32 = { + generate_key_ownership_proof: { + description: "Generates a proof of key ownership for the given authority in the given set.", + params: [ + { + name: "setId", + type: "SetId" + }, + { + name: "authorityId", + type: "AuthorityId" + } + ], + type: "Option" + }, + grandpa_authorities: { + description: "Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.", + params: [], + type: "AuthorityList" + }, + submit_report_equivocation_unsigned_extrinsic: { + description: "Submits an unsigned extrinsic to report an equivocation.", + params: [ + { + name: "equivocationProof", + type: "GrandpaEquivocationProof" + }, + { + name: "keyOwnerProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + } + }; + exports2.runtime = { + GrandpaApi: [ + { + methods: { + current_set_id: { + description: "Get current GRANDPA authority set id.", + params: [], + type: "SetId" + }, + ...GRANDPA_V2_V32 + }, + version: 3 + }, + { + methods: GRANDPA_V2_V32, + version: 2 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/grandpa/definitions.js + var require_definitions27 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/grandpa/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc6(); + var runtime_js_1 = require_runtime14(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AuthorityIndex: "u64", + AuthorityList: "Vec", + AuthoritySet: { + currentAuthorities: "AuthorityList", + setId: "u64", + pendingStandardChanges: "ForkTreePendingChange", + pendingForcedChanges: "Vec", + authoritySetChanges: "AuthoritySetChanges" + }, + ForkTreePendingChange: { + roots: "Vec", + bestFinalizedNumber: "Option" + }, + ForkTreePendingChangeNode: { + hash: "BlockHash", + number: "BlockNumber", + data: "PendingChange", + children: "Vec" + }, + AuthoritySetChange: "(U64, BlockNumber)", + AuthoritySetChanges: "Vec", + AuthorityWeight: "u64", + DelayKind: { + _enum: { + Finalized: "Null", + Best: "DelayKindBest" + } + }, + DelayKindBest: { + medianLastFinalized: "BlockNumber" + }, + EncodedFinalityProofs: "Bytes", + GrandpaEquivocation: { + _enum: { + Prevote: "GrandpaEquivocationValue", + Precommit: "GrandpaEquivocationValue" + } + }, + GrandpaEquivocationProof: { + setId: "SetId", + equivocation: "GrandpaEquivocation" + }, + GrandpaEquivocationValue: { + roundNumber: "u64", + identity: "AuthorityId", + first: "(GrandpaPrevote, AuthoritySignature)", + second: "(GrandpaPrevote, AuthoritySignature)" + }, + GrandpaPrevote: { + targetHash: "Hash", + targetNumber: "BlockNumber" + }, + GrandpaCommit: { + targetHash: "BlockHash", + targetNumber: "BlockNumber", + precommits: "Vec" + }, + GrandpaPrecommit: { + targetHash: "BlockHash", + targetNumber: "BlockNumber" + }, + GrandpaSignedPrecommit: { + precommit: "GrandpaPrecommit", + signature: "AuthoritySignature", + id: "AuthorityId" + }, + GrandpaJustification: { + round: "u64", + commit: "GrandpaCommit", + votesAncestries: "Vec
" + }, + JustificationNotification: "Bytes", + KeyOwnerProof: "MembershipProof", + NextAuthority: "(AuthorityId, AuthorityWeight)", + PendingChange: { + nextAuthorities: "AuthorityList", + delay: "BlockNumber", + canonHeight: "BlockNumber", + canonHash: "BlockHash", + delayKind: "DelayKind" + }, + PendingPause: { + scheduledAt: "BlockNumber", + delay: "BlockNumber" + }, + PendingResume: { + scheduledAt: "BlockNumber", + delay: "BlockNumber" + }, + Precommits: { + currentWeight: "u32", + missing: "BTreeSet" + }, + Prevotes: { + currentWeight: "u32", + missing: "BTreeSet" + }, + ReportedRoundStates: { + setId: "u32", + best: "RoundState", + background: "Vec" + }, + RoundState: { + round: "u32", + totalWeight: "u32", + thresholdWeight: "u32", + prevotes: "Prevotes", + precommits: "Precommits" + }, + SetId: "u64", + StoredPendingChange: { + scheduledAt: "BlockNumber", + delay: "BlockNumber", + nextAuthorities: "AuthorityList" + }, + StoredState: { + _enum: { + Live: "Null", + PendingPause: "PendingPause", + Paused: "Null", + PendingResume: "PendingResume" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/identity/definitions.js + var require_definitions28 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/identity/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + IdentityFields: { + _set: { + _bitLength: 64, + Display: 1, + Legal: 2, + Web: 4, + Riot: 8, + Email: 16, + PgpFingerprint: 32, + Image: 64, + Twitter: 128 + } + }, + IdentityInfoAdditional: "(Data, Data)", + IdentityInfoTo198: { + additional: "Vec", + display: "Data", + legal: "Data", + web: "Data", + riot: "Data", + email: "Data", + pgpFingerprint: "Option", + image: "Data" + }, + IdentityInfo: { + _fallback: "IdentityInfoTo198", + additional: "Vec", + display: "Data", + legal: "Data", + web: "Data", + riot: "Data", + email: "Data", + pgpFingerprint: "Option", + image: "Data", + twitter: "Data" + }, + IdentityJudgement: { + _enum: { + Unknown: "Null", + FeePaid: "Balance", + Reasonable: "Null", + KnownGood: "Null", + OutOfDate: "Null", + LowQuality: "Null", + Erroneous: "Null" + } + }, + RegistrationJudgement: "(RegistrarIndex, IdentityJudgement)", + RegistrationTo198: { + judgements: "Vec", + deposit: "Balance", + info: "IdentityInfoTo198" + }, + Registration: { + _fallback: "RegistrationTo198", + judgements: "Vec", + deposit: "Balance", + info: "IdentityInfo" + }, + RegistrarIndex: "u32", + RegistrarInfo: { + account: "AccountId", + fee: "Balance", + fields: "IdentityFields" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/imOnline/definitions.js + var require_definitions29 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/imOnline/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AuthIndex: "u32", + AuthoritySignature: "Signature", + Heartbeat: { + blockNumber: "BlockNumber", + networkState: "OpaqueNetworkState", + sessionIndex: "SessionIndex", + authorityIndex: "AuthIndex", + validatorsLen: "u32" + }, + HeartbeatTo244: { + blockNumber: "BlockNumber", + networkState: "OpaqueNetworkState", + sessionIndex: "SessionIndex", + authorityIndex: "AuthIndex" + }, + OpaqueMultiaddr: "Opaque", + OpaquePeerId: "Opaque", + OpaqueNetworkState: { + peerId: "OpaquePeerId", + externalAddresses: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/lottery/definitions.js + var require_definitions30 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/lottery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + CallIndex: "(u8, u8)", + LotteryConfig: { + price: "Balance", + start: "BlockNumber", + length: "BlockNumber", + delay: "BlockNumber", + repeat: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mixnet/runtime.js + var require_runtime15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mixnet/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + MixnetApi: [ + { + methods: { + current_mixnodes: { + description: "Get the index and phase of the current session.", + params: [], + type: "Result" + }, + maybe_register: { + description: "Try to register a mixnode for the next session.", + params: [ + { + name: "session_index", + type: "u32" + }, + { + name: "mixnode", + type: "Mixnode" + } + ], + type: "bool" + }, + prev_mixnodes: { + description: "Get the index and phase of the current session.", + params: [], + type: "Result" + }, + session_status: { + description: "Get the index and phase of the current session.", + params: [], + type: "SessionStatus" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mixnet/definitions.js + var require_definitions31 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mixnet/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime15(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + Mixnode: { + externalAddresses: "Vec", + kxPublic: "[u8; 32]", + peerId: "[u8; 32]" + }, + MixnodesErr: { + _enum: { + InsufficientRegistrations: { + min: "u32", + num: "u32" + } + } + }, + SessionPhase: { + _enum: ["CoverToCurrent", "RequestsToCurrent", "CoverToPrev", "DisconnectFromPrev"] + }, + SessionStatus: { + currentIndex: "u32", + phase: "SessionPhase" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/rpc.js + var require_rpc7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + generateProof: { + description: "Generate MMR proof for the given block numbers.", + params: [ + { + name: "blockNumbers", + type: "Vec" + }, + { + isOptional: true, + name: "bestKnownBlockNumber", + type: "u64" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MmrLeafBatchProof" + }, + root: { + description: "Get the MMR root hash for the current best block.", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MmrHash" + }, + verifyProof: { + description: "Verify an MMR proof", + params: [ + { + name: "proof", + type: "MmrLeafBatchProof" + } + ], + type: "bool" + }, + verifyProofStateless: { + description: "Verify an MMR proof statelessly given an mmr_root", + params: [ + { + name: "root", + type: "MmrHash" + }, + { + name: "proof", + type: "MmrLeafBatchProof" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/runtime.js + var require_runtime16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var MMR_V22 = { + generate_proof: { + description: "Generate MMR proof for the given block numbers.", + params: [ + { + name: "blockNumbers", + type: "Vec" + }, + { + name: "bestKnownBlockNumber", + type: "Option" + } + ], + type: "Result<(Vec, MmrBatchProof), MmrError>" + }, + mmr_leaf_count: { + description: "Return the number of MMR blocks in the chain.", + params: [], + type: "Result" + }, + mmr_root: { + description: "Return the on-chain MMR root hash.", + params: [], + type: "Result" + }, + verify_proof: { + description: "Verify MMR proof against on-chain MMR.", + params: [ + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof_stateless: { + description: "Verify MMR proof against given root hash.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + } + }; + var MMR_V12 = { + generate_batch_proof: { + description: "Generate MMR proof for a series of leaves under given indices.", + params: [ + { + name: "leafIndices", + type: "Vec" + } + ], + type: "Result<(Vec, MmrBatchProof), MmrError>" + }, + generate_proof: { + description: "Generate MMR proof for a leaf under given index.", + params: [ + { + name: "leafIndex", + type: "MmrLeafIndex" + } + ], + type: "Result<(MmrEncodableOpaqueLeaf, MmrProof), MmrError>" + }, + mmr_root: { + description: "Return the on-chain MMR root hash.", + params: [], + type: "Result" + }, + verify_batch_proof: { + description: "Verify MMR proof against on-chain MMR for a batch of leaves.", + params: [ + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_batch_proof_stateless: { + description: "Verify MMR proof against given root hash or a batch of leaves.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaves", + type: "Vec" + }, + { + name: "proof", + type: "MmrBatchProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof: { + description: "Verify MMR proof against on-chain MMR.", + params: [ + { + name: "leaf", + type: "MmrEncodableOpaqueLeaf" + }, + { + name: "proof", + type: "MmrProof" + } + ], + type: "Result<(), MmrError>" + }, + verify_proof_stateless: { + description: "Verify MMR proof against given root hash.", + params: [ + { + name: "root", + type: "Hash" + }, + { + name: "leaf", + type: "MmrEncodableOpaqueLeaf" + }, + { + name: "proof", + type: "MmrProof" + } + ], + type: "Result<(), MmrError>" + } + }; + exports2.runtime = { + MmrApi: [ + { + methods: MMR_V22, + version: 2 + }, + { + methods: MMR_V12, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/mmr/definitions.js + var require_definitions32 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/mmr/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc7(); + var runtime_js_1 = require_runtime16(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + MmrBatchProof: { + leafIndices: "Vec", + leafCount: "MmrNodeIndex", + items: "Vec" + }, + MmrEncodableOpaqueLeaf: "Bytes", + MmrError: { + _enum: ["InvalidNumericOp", "Push", "GetRoot", "Commit", "GenerateProof", "Verify", "LeafNotFound", " PalletNotIncluded", "InvalidLeafIndex", "InvalidBestKnownBlock"] + }, + MmrHash: "Hash", + MmrLeafBatchProof: { + blockHash: "BlockHash", + leaves: "Bytes", + proof: "Bytes" + }, + MmrLeafIndex: "u64", + MmrLeafProof: { + blockHash: "BlockHash", + leaf: "Bytes", + proof: "Bytes" + }, + MmrNodeIndex: "u64", + MmrProof: { + leafIndex: "MmrLeafIndex", + leafCount: "MmrNodeIndex", + items: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nfts/runtime.js + var require_runtime17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nfts/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + NftsApi: [ + { + methods: { + attribute: { + description: "An attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + collection_attribute: { + description: "A collection attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + collection_owner: { + description: "A collection owner", + params: [ + { + name: "collection", + type: "NftCollectionId" + } + ], + type: "Option" + }, + custom_attribute: { + description: "A custom attribute", + params: [ + { + name: "account", + type: "AccountId" + }, + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + owner: { + description: "Collection owner", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + } + ], + type: "Option" + }, + system_attribute: { + description: "System attribute", + params: [ + { + name: "collection", + type: "NftCollectionId" + }, + { + name: "item", + type: "NftItemId" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nfts/definitions.js + var require_definitions33 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nfts/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime17(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + NftCollectionId: "u32", + NftItemId: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nompools/runtime.js + var require_runtime18 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nompools/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + NominationPoolsApi: [ + { + methods: { + balance_to_points: { + description: "Returns the equivalent points of `new_funds` for a given pool.", + params: [ + { + name: "poolId", + type: "NpPoolId" + }, + { + name: "newFunds", + type: "Balance" + } + ], + type: "Balance" + }, + pending_rewards: { + description: "Returns the pending rewards for the given member.", + params: [ + { + name: "member", + type: "AccountId" + } + ], + type: "Balance" + }, + points_to_balance: { + description: "Returns the equivalent balance of `points` for a given pool.", + params: [ + { + name: "poolId", + type: "NpPoolId" + }, + { + name: "points", + type: "Balance" + } + ], + type: "Balance" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nompools/definitions.js + var require_definitions34 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nompools/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime18(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + NpApiError: { + _enum: ["MemberNotFound", "OverflowInPendingRewards"] + }, + NpPoolId: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offences/definitions.js + var require_definitions35 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offences/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + DeferredOffenceOf: "(Vec, Vec, SessionIndex)", + Kind: "[u8; 16]", + OffenceDetails: { + offender: "Offender", + reporters: "Vec" + }, + Offender: "IdentificationTuple", + OpaqueTimeSlot: "Bytes", + ReportIdOf: "Hash", + Reporter: "AccountId" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/pow/runtime.js + var require_runtime19 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/pow/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + DifficultyApi: [ + { + methods: { + difficulty: { + description: "Return the target difficulty of the next block.", + params: [], + type: "Raw" + } + }, + version: 1 + } + ], + TimestampApi: [ + { + methods: { + timestamp: { + description: "API necessary for timestamp-based difficulty adjustment algorithms.", + params: [], + type: "Moment" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/pow/definitions.js + var require_definitions36 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/pow/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime19(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/proxy/definitions.js + var require_definitions37 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/proxy/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ProxyDefinition: { + delegate: "AccountId", + proxyType: "ProxyType", + delay: "BlockNumber" + }, + ProxyType: { + _enum: ["Any", "NonTransfer", "Governance", "Staking"] + }, + ProxyAnnouncement: { + real: "AccountId", + callHash: "Hash", + height: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/recovery/definitions.js + var require_definitions38 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/recovery/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ActiveRecovery: { + created: "BlockNumber", + deposit: "Balance", + friends: "Vec" + }, + RecoveryConfig: { + delayPeriod: "BlockNumber", + deposit: "Balance", + friends: "Vec", + threshold: "u16" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/scheduler/definitions.js + var require_definitions39 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/scheduler/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Period: "(BlockNumber, u32)", + Priority: "u8", + SchedulePeriod: "Period", + SchedulePriority: "Priority", + Scheduled: { + maybeId: "Option", + priority: "SchedulePriority", + call: "Call", + maybePeriodic: "Option", + origin: "PalletsOrigin" + }, + ScheduledTo254: { + maybeId: "Option", + priority: "SchedulePriority", + call: "Call", + maybePeriodic: "Option" + }, + TaskAddress: "(BlockNumber, u32)" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/session/runtime.js + var require_runtime20 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/session/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + SessionKeys: [ + { + methods: { + decode_session_keys: { + description: "Decode the given public session keys.", + params: [ + { + name: "encoded", + type: "Bytes" + } + ], + type: "Option>" + }, + generate_session_keys: { + description: "Generate a set of session keys with optionally using the given seed.", + params: [ + { + name: "seed", + type: "Option" + } + ], + type: "Bytes" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/session/definitions.js + var require_definitions40 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/session/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime20(); + var keyTypes2 = { + BeefyKey: "[u8; 33]", + Keys: "SessionKeys4", + SessionKeys1: "(AccountId)", + SessionKeys2: "(AccountId, AccountId)", + SessionKeys3: "(AccountId, AccountId, AccountId)", + SessionKeys4: "(AccountId, AccountId, AccountId, AccountId)", + SessionKeys5: "(AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys6: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys6B: "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys7: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys7B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys8: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys8B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys9: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys9B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", + SessionKeys10: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", + SessionKeys10B: "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...keyTypes2, + FullIdentification: "Exposure", + IdentificationTuple: "(ValidatorId, FullIdentification)", + MembershipProof: { + session: "SessionIndex", + trieNodes: "Vec", + validatorCount: "ValidatorCount" + }, + SessionIndex: "u32", + ValidatorCount: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/society/definitions.js + var require_definitions41 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/society/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Bid: { + who: "AccountId", + kind: "BidKind", + value: "Balance" + }, + BidKind: { + _enum: { + Deposit: "Balance", + Vouch: "(AccountId, Balance)" + } + }, + SocietyJudgement: { + _enum: ["Rebid", "Reject", "Approve"] + }, + SocietyVote: { + _enum: ["Skeptic", "Reject", "Approve"] + }, + StrikeCount: "u32", + VouchingStatus: { + _enum: ["Vouching", "Banned"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/staking/runtime.js + var require_runtime21 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/staking/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + StakingApi: [ + { + methods: { + nominations_quota: { + description: "Returns the nominations quota for a nominator with a given balance.", + params: [ + { + name: "balance", + type: "Balance" + } + ], + type: "u32" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/staking/definitions.js + var require_definitions42 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/staking/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime21(); + var deprecated2 = { + Points: "u32", + EraPoints: { + total: "Points", + individual: "Vec" + } + }; + var phragmen2 = { + CompactAssignments: "CompactAssignmentsWith16", + CompactAssignmentsWith16: { + votes1: "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>", + votes2: "Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>", + votes3: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>", + votes4: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>", + votes5: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>", + votes6: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>", + votes7: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>", + votes8: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>", + votes9: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>", + votes10: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>", + votes11: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>", + votes12: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>", + votes13: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>", + votes14: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>", + votes15: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>", + votes16: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>" + }, + CompactAssignmentsWith24: { + votes1: "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>", + votes2: "Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>", + votes3: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>", + votes4: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>", + votes5: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>", + votes6: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>", + votes7: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>", + votes8: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>", + votes9: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>", + votes10: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>", + votes11: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>", + votes12: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>", + votes13: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>", + votes14: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>", + votes15: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>", + votes16: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>", + votes17: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 16], ValidatorIndexCompact)>", + votes18: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 17], ValidatorIndexCompact)>", + votes19: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 18], ValidatorIndexCompact)>", + votes20: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 19], ValidatorIndexCompact)>", + votes21: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 20], ValidatorIndexCompact)>", + votes22: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 21], ValidatorIndexCompact)>", + votes23: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 22], ValidatorIndexCompact)>", + votes24: "Vec<(NominatorIndexCompact, [CompactScoreCompact; 23], ValidatorIndexCompact)>" + }, + CompactAssignmentsTo265: "CompactAssignmentsWith16", + CompactAssignmentsTo257: { + votes1: "Vec<(NominatorIndex, [CompactScore; 0], ValidatorIndex)>", + votes2: "Vec<(NominatorIndex, [CompactScore; 1], ValidatorIndex)>", + votes3: "Vec<(NominatorIndex, [CompactScore; 2], ValidatorIndex)>", + votes4: "Vec<(NominatorIndex, [CompactScore; 3], ValidatorIndex)>", + votes5: "Vec<(NominatorIndex, [CompactScore; 4], ValidatorIndex)>", + votes6: "Vec<(NominatorIndex, [CompactScore; 5], ValidatorIndex)>", + votes7: "Vec<(NominatorIndex, [CompactScore; 6], ValidatorIndex)>", + votes8: "Vec<(NominatorIndex, [CompactScore; 7], ValidatorIndex)>", + votes9: "Vec<(NominatorIndex, [CompactScore; 8], ValidatorIndex)>", + votes10: "Vec<(NominatorIndex, [CompactScore; 9], ValidatorIndex)>", + votes11: "Vec<(NominatorIndex, [CompactScore; 10], ValidatorIndex)>", + votes12: "Vec<(NominatorIndex, [CompactScore; 11], ValidatorIndex)>", + votes13: "Vec<(NominatorIndex, [CompactScore; 12], ValidatorIndex)>", + votes14: "Vec<(NominatorIndex, [CompactScore; 13], ValidatorIndex)>", + votes15: "Vec<(NominatorIndex, [CompactScore; 14], ValidatorIndex)>", + votes16: "Vec<(NominatorIndex, [CompactScore; 15], ValidatorIndex)>" + }, + CompactScore: "(ValidatorIndex, OffchainAccuracy)", + CompactScoreCompact: "(ValidatorIndexCompact, OffchainAccuracyCompact)", + ElectionCompute: { + _enum: ["OnChain", "Signed", "Unsigned"] + }, + ElectionPhase: { + _enum: { + Off: null, + Signed: null, + Unsigned: "(bool, BlockNumber)", + Emergency: null + } + }, + ElectionResult: { + compute: "ElectionCompute", + slotStake: "Balance", + electedStashes: "Vec", + exposures: "Vec<(AccountId, Exposure)>" + }, + ElectionScore: "[u128; 3]", + ElectionSize: { + validators: "Compact", + nominators: "Compact" + }, + ElectionStatus: { + _enum: { + Close: "Null", + Open: "BlockNumber" + } + }, + ExtendedBalance: "u128", + RawSolution: "RawSolutionWith16", + RawSolutionWith16: { + compact: "CompactAssignmentsWith16", + score: "ElectionScore", + round: "u32" + }, + RawSolutionWith24: { + compact: "CompactAssignmentsWith24", + score: "ElectionScore", + round: "u32" + }, + RawSolutionTo265: "RawSolutionWith16", + ReadySolution: { + supports: "SolutionSupports", + score: "ElectionScore", + compute: "ElectionCompute" + }, + RoundSnapshot: { + voters: "Vec<(AccountId, VoteWeight, Vec)>", + targets: "Vec" + }, + SeatHolder: { + who: "AccountId", + stake: "Balance", + deposit: "Balance" + }, + SignedSubmission: { + _fallback: "SignedSubmissionTo276", + who: "AccountId", + deposit: "Balance", + solution: "RawSolution", + reward: "Balance" + }, + SignedSubmissionTo276: { + who: "AccountId", + deposit: "Balance", + solution: "RawSolution" + }, + SignedSubmissionOf: "SignedSubmission", + SolutionOrSnapshotSize: { + voters: "Compact", + targets: "Compact" + }, + SolutionSupport: { + total: "ExtendedBalance", + voters: "Vec<(AccountId, ExtendedBalance)>" + }, + SolutionSupports: "Vec<(AccountId, SolutionSupport)>", + Supports: "SolutionSupports", + SubmissionIndicesOf: "BTreeMap", + Voter: { + votes: "Vec", + stake: "Balance", + deposit: "Balance" + }, + VoteWeight: "u64" + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...deprecated2, + ...phragmen2, + ActiveEraInfo: { + index: "EraIndex", + start: "Option" + }, + EraIndex: "u32", + EraRewardPoints: { + total: "RewardPoint", + individual: "BTreeMap" + }, + EraRewards: { + total: "u32", + rewards: "Vec" + }, + Exposure: { + total: "Compact", + own: "Compact", + others: "Vec" + }, + Forcing: { + _enum: [ + "NotForcing", + "ForceNew", + "ForceNone", + "ForceAlways" + ] + }, + IndividualExposure: { + who: "AccountId", + value: "Compact" + }, + KeyType: "AccountId", + MomentOf: "Moment", + Nominations: { + targets: "Vec", + submittedIn: "EraIndex", + suppressed: "bool" + }, + NominatorIndex: "u32", + NominatorIndexCompact: "Compact", + OffchainAccuracy: "PerU16", + OffchainAccuracyCompact: "Compact", + PhragmenScore: "[u128; 3]", + Points: "u32", + RewardDestination: { + _enum: { + Staked: "Null", + Stash: "Null", + Controller: "Null", + Account: "AccountId", + None: "Null" + } + }, + RewardPoint: "u32", + SlashJournalEntry: { + who: "AccountId", + amount: "Balance", + ownSlash: "Balance" + }, + SlashingSpansTo204: { + spanIndex: "SpanIndex", + lastStart: "EraIndex", + prior: "Vec" + }, + SlashingSpans: { + spanIndex: "SpanIndex", + lastStart: "EraIndex", + lastNonzeroSlash: "EraIndex", + prior: "Vec" + }, + SpanIndex: "u32", + SpanRecord: { + slashed: "Balance", + paidOut: "Balance" + }, + StakingLedgerTo223: { + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec" + }, + StakingLedgerTo240: { + _fallback: "StakingLedgerTo223", + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec", + lastReward: "Option" + }, + StakingLedger: { + stash: "AccountId", + total: "Compact", + active: "Compact", + unlocking: "Vec", + claimedRewards: "Vec" + }, + UnappliedSlashOther: "(AccountId, Balance)", + UnappliedSlash: { + validator: "AccountId", + own: "Balance", + others: "Vec", + reporters: "Vec", + payout: "Balance" + }, + UnlockChunk: { + value: "Compact", + era: "Compact" + }, + ValidatorIndex: "u16", + ValidatorIndexCompact: "Compact", + ValidatorPrefs: "ValidatorPrefsWithBlocked", + ValidatorPrefsWithCommission: { + commission: "Compact" + }, + ValidatorPrefsWithBlocked: { + commission: "Compact", + blocked: "bool" + }, + ValidatorPrefsTo196: { + validatorPayment: "Compact" + }, + ValidatorPrefsTo145: { + unstakeThreshold: "Compact", + validatorPayment: "Compact" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/statement/runtime.js + var require_runtime22 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/statement/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + ValidateStatement: [ + { + methods: { + valdate_statement: { + description: "Validate the statement.", + params: [ + { + name: "source", + type: "StatementStoreStatementSource" + }, + { + name: "statement", + type: "SpStatementStoreStatement" + } + ], + type: "Result" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/statement/definitions.js + var require_definitions43 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/statement/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime22(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + StatementStoreStatementSource: { + _enum: ["Chain", "Network", "Local"] + }, + StatementStoreValidStatement: { + maxCount: "u32", + maxSize: "u32" + }, + StatementStoreInvalidStatement: { + _enum: ["BadProof", "NoProof", "InternalError"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/support/definitions.js + var require_definitions44 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/support/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + WeightToFeeCoefficient: { + coeffInteger: "Balance", + coeffFrac: "Perbill", + negative: "bool", + degree: "u8" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/syncstate/rpc.js + var require_rpc8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/syncstate/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + genSyncSpec: { + description: "Returns the json-serialized chainspec running the node, with a sync state.", + endpoint: "sync_state_genSyncSpec", + params: [ + { + name: "raw", + type: "bool" + } + ], + type: "Json" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/syncstate/definitions.js + var require_definitions45 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/syncstate/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc8(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/rpc.js + var require_rpc9 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + accountNextIndex: { + alias: ["account_nextIndex"], + description: "Retrieves the next accountIndex as available on the node", + params: [ + { + name: "accountId", + type: "AccountId" + } + ], + type: "Index" + }, + addLogFilter: { + description: "Adds the supplied directives to the current log filter", + isUnsafe: true, + params: [ + { + name: "directives", + type: "Text" + } + ], + type: "Null" + }, + addReservedPeer: { + description: "Adds a reserved peer", + isUnsafe: true, + params: [ + { + name: "peer", + type: "Text" + } + ], + type: "Text" + }, + chain: { + description: "Retrieves the chain", + params: [], + type: "Text" + }, + chainType: { + description: "Retrieves the chain type", + params: [], + type: "ChainType" + }, + dryRun: { + alias: ["system_dryRunAt"], + description: "Dry run an extrinsic at a given block", + isUnsafe: true, + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ApplyExtrinsicResult" + }, + health: { + description: "Return health status of the node", + noErrorLog: true, + params: [], + type: "Health" + }, + localListenAddresses: { + description: "The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example", + params: [], + type: "Vec" + }, + localPeerId: { + description: "Returns the base58-encoded PeerId of the node", + params: [], + type: "Text" + }, + name: { + description: "Retrieves the node name", + params: [], + type: "Text" + }, + networkState: { + alias: ["system_unstable_networkState"], + description: "Returns current state of the network", + isUnsafe: true, + params: [], + type: "NetworkState" + }, + nodeRoles: { + description: "Returns the roles the node is running as", + params: [], + type: "Vec" + }, + peers: { + description: "Returns the currently connected peers", + isUnsafe: true, + params: [], + type: "Vec" + }, + properties: { + description: "Get a custom set of properties as a JSON object, defined in the chain spec", + params: [], + type: "ChainProperties" + }, + removeReservedPeer: { + description: "Remove a reserved peer", + isUnsafe: true, + params: [ + { + name: "peerId", + type: "Text" + } + ], + type: "Text" + }, + reservedPeers: { + description: "Returns the list of reserved peers", + params: [], + type: "Vec" + }, + resetLogFilter: { + description: "Resets the log filter to Substrate defaults", + isUnsafe: true, + params: [], + type: "Null" + }, + syncState: { + description: "Returns the state of the syncing of the node", + params: [], + type: "SyncState" + }, + version: { + description: "Retrieves the version of the node", + params: [], + type: "Text" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/runtime.js + var require_runtime23 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AccountNonceApi: [ + { + methods: { + account_nonce: { + description: "The API to query account nonce (aka transaction index)", + params: [ + { + name: "accountId", + type: "AccountId" + } + ], + type: "Index" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/system/definitions.js + var require_definitions46 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/system/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc9(); + var runtime_js_1 = require_runtime23(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + AccountInfo: "AccountInfoWithTripleRefCount", + AccountInfoWithRefCountU8: { + nonce: "Index", + refcount: "u8", + data: "AccountData" + }, + AccountInfoWithRefCount: { + _fallback: "AccountInfoWithRefCountU8", + nonce: "Index", + refcount: "RefCount", + data: "AccountData" + }, + AccountInfoWithDualRefCount: { + _fallback: "AccountInfoWithRefCount", + nonce: "Index", + consumers: "RefCount", + providers: "RefCount", + data: "AccountData" + }, + AccountInfoWithProviders: "AccountInfoWithDualRefCount", + AccountInfoWithTripleRefCount: { + _fallback: "AccountInfoWithDualRefCount", + nonce: "Index", + consumers: "RefCount", + providers: "RefCount", + sufficients: "RefCount", + data: "AccountData" + }, + ApplyExtrinsicResult: "Result", + ApplyExtrinsicResultPre6: "Result", + ArithmeticError: { + _enum: [ + "Underflow", + "Overflow", + "DivisionByZero" + ] + }, + BlockLength: { + max: "PerDispatchClassU32" + }, + BlockWeights: { + baseBlock: "Weight", + maxBlock: "Weight", + perClass: "PerDispatchClassWeightsPerClass" + }, + ChainProperties: "GenericChainProperties", + ChainType: { + _enum: { + Development: "Null", + Local: "Null", + Live: "Null", + Custom: "Text" + } + }, + ConsumedWeight: "PerDispatchClassWeight", + DigestOf: "Digest", + DispatchClass: { + _enum: ["Normal", "Operational", "Mandatory"] + }, + DispatchError: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModule", + ConsumerRemaining: "Null", + NoProviders: "Null", + TooManyConsumers: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError", + Exhausted: "Null", + Corruption: "Null", + Unavailable: "Null" + } + }, + DispatchErrorPre6: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModulePre6", + ConsumerRemaining: "Null", + NoProviders: "Null", + TooManyConsumers: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError" + } + }, + DispatchErrorPre6First: { + _enum: { + Other: "Null", + CannotLookup: "Null", + BadOrigin: "Null", + Module: "DispatchErrorModulePre6", + ConsumerRemaining: "Null", + NoProviders: "Null", + Token: "TokenError", + Arithmetic: "ArithmeticError", + Transactional: "TransactionalError" + } + }, + DispatchErrorModuleU8: { + index: "u8", + error: "u8" + }, + DispatchErrorModuleU8a: { + index: "u8", + error: "[u8; 4]" + }, + DispatchErrorModule: "DispatchErrorModuleU8a", + DispatchErrorModulePre6: "DispatchErrorModuleU8", + DispatchErrorTo198: { + module: "Option", + error: "u8" + }, + DispatchInfo: { + weight: "Weight", + class: "DispatchClass", + paysFee: "Pays" + }, + DispatchInfoTo190: { + weight: "Weight", + class: "DispatchClass" + }, + DispatchInfoTo244: { + weight: "Weight", + class: "DispatchClass", + paysFee: "bool" + }, + DispatchOutcome: "Result<(), DispatchError>", + DispatchOutcomePre6: "Result<(), DispatchErrorPre6>", + DispatchResult: "Result<(), DispatchError>", + DispatchResultOf: "DispatchResult", + DispatchResultTo198: "Result<(), Text>", + Event: "GenericEvent", + EventId: "[u8; 2]", + EventIndex: "u32", + EventRecord: { + phase: "Phase", + event: "Event", + topics: "Vec" + }, + Health: { + peers: "u64", + isSyncing: "bool", + shouldHavePeers: "bool" + }, + InvalidTransaction: { + _enum: { + Call: "Null", + Payment: "Null", + Future: "Null", + Stale: "Null", + BadProof: "Null", + AncientBirthBlock: "Null", + ExhaustsResources: "Null", + Custom: "u8", + BadMandatory: "Null", + MandatoryDispatch: "Null", + BadSigner: "Null" + } + }, + Key: "Bytes", + LastRuntimeUpgradeInfo: { + specVersion: "Compact", + specName: "Text" + }, + NetworkState: { + peerId: "Text", + listenedAddresses: "Vec", + externalAddresses: "Vec", + connectedPeers: "HashMap", + notConnectedPeers: "HashMap", + averageDownloadPerSec: "u64", + averageUploadPerSec: "u64", + peerset: "NetworkStatePeerset" + }, + NetworkStatePeerset: { + messageQueue: "u64", + nodes: "HashMap" + }, + NetworkStatePeersetInfo: { + connected: "bool", + reputation: "i32" + }, + NodeRole: { + _enum: { + Full: "Null", + LightClient: "Null", + Authority: "Null", + UnknownRole: "u8" + } + }, + NotConnectedPeer: { + knownAddresses: "Vec", + latestPingTime: "Option", + versionString: "Option" + }, + Peer: { + enabled: "bool", + endpoint: "PeerEndpoint", + knownAddresses: "Vec", + latestPingTime: "PeerPing", + open: "bool", + versionString: "Text" + }, + PeerEndpoint: { + listening: "PeerEndpointAddr" + }, + PeerEndpointAddr: { + _alias: { + localAddr: "local_addr", + sendBackAddr: "send_back_addr" + }, + localAddr: "Text", + sendBackAddr: "Text" + }, + PeerPing: { + nanos: "u64", + secs: "u64" + }, + PeerInfo: { + peerId: "Text", + roles: "Text", + protocolVersion: "u32", + bestHash: "Hash", + bestNumber: "BlockNumber" + }, + PerDispatchClassU32: { + normal: "u32", + operational: "u32", + mandatory: "u32" + }, + PerDispatchClassWeight: { + normal: "Weight", + operational: "Weight", + mandatory: "Weight" + }, + PerDispatchClassWeightsPerClass: { + normal: "WeightPerClass", + operational: "WeightPerClass", + mandatory: "WeightPerClass" + }, + Phase: { + _enum: { + ApplyExtrinsic: "u32", + Finalization: "Null", + Initialization: "Null" + } + }, + RawOrigin: { + _enum: { + Root: "Null", + Signed: "AccountId", + None: "Null" + } + }, + RefCount: "u32", + RefCountTo259: "u8", + SyncState: { + startingBlock: "BlockNumber", + currentBlock: "BlockNumber", + highestBlock: "Option" + }, + SystemOrigin: "RawOrigin", + TokenError: { + _enum: [ + "NoFunds", + "WouldDie", + "BelowMinimum", + "CannotCreate", + "UnknownAsset", + "Frozen", + "Unsupported", + "Underflow", + "Overflow" + ] + }, + TransactionValidityError: { + _enum: { + Invalid: "InvalidTransaction", + Unknown: "UnknownTransaction" + } + }, + TransactionalError: { + _enum: [ + "LimitReached", + "NoLayer" + ] + }, + UnknownTransaction: { + _enum: { + CannotLookup: "Null", + NoUnsignedValidator: "Null", + Custom: "u8" + } + }, + WeightPerClass: { + baseExtrinsic: "Weight", + maxExtrinsic: "Option", + maxTotal: "Option", + reserved: "Option" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/treasury/definitions.js + var require_definitions47 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/treasury/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Bounty: { + proposer: "AccountId", + value: "Balance", + fee: "Balance", + curatorDeposit: "Balance", + bond: "Balance", + status: "BountyStatus" + }, + BountyIndex: "u32", + BountyStatus: { + _enum: { + Proposed: "Null", + Approved: "Null", + Funded: "Null", + CuratorProposed: "BountyStatusCuratorProposed", + Active: "BountyStatusActive", + PendingPayout: "BountyStatusPendingPayout" + } + }, + BountyStatusActive: { + curator: "AccountId", + updateDue: "BlockNumber" + }, + BountyStatusCuratorProposed: { + curator: "AccountId" + }, + BountyStatusPendingPayout: { + curator: "AccountId", + beneficiary: "AccountId", + unlockAt: "BlockNumber" + }, + OpenTip: { + reason: "Hash", + who: "AccountId", + finder: "AccountId", + deposit: "Balance", + closes: "Option", + tips: "Vec", + findersFee: "bool" + }, + OpenTipTo225: { + reason: "Hash", + who: "AccountId", + finder: "Option", + closes: "Option", + tips: "Vec" + }, + OpenTipFinderTo225: "(AccountId, Balance)", + OpenTipTip: "(AccountId, Balance)", + TreasuryProposal: { + proposer: "AccountId", + value: "Balance", + beneficiary: "AccountId", + bond: "Balance" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txpayment/definitions.js + var require_definitions48 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txpayment/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Multiplier: "Fixed128" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txqueue/runtime.js + var require_runtime24 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txqueue/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + TaggedTransactionQueue: [ + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "source", + type: "TransactionSource" + }, + { + name: "tx", + type: "Extrinsic" + }, + { + name: "blockHash", + type: "BlockHash" + } + ], + type: "TransactionValidity" + } + }, + version: 3 + }, + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "source", + type: "TransactionSource" + }, + { + name: "tx", + type: "Extrinsic" + } + ], + type: "TransactionValidity" + } + }, + version: 2 + }, + { + methods: { + validate_transaction: { + description: "Validate the transaction.", + params: [ + { + name: "tx", + type: "Extrinsic" + } + ], + type: "TransactionValidity" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/txqueue/definitions.js + var require_definitions49 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/txqueue/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime24(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + TransactionSource: { + _enum: ["InBlock", "Local", "External"] + }, + TransactionValidity: "Result", + ValidTransaction: { + priority: "TransactionPriority", + requires: "Vec", + provides: "Vec", + longevity: "TransactionLongevity", + propagate: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/uniques/definitions.js + var require_definitions50 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/uniques/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + ClassId: "u32", + InstanceId: "u32", + DepositBalance: "Balance", + DepositBalanceOf: "Balance", + ClassDetails: { + owner: "AccountId", + issuer: "AccountId", + admin: "AccountId", + freezer: "AccountId", + totalDeposit: "DepositBalance", + freeHolding: "bool", + instances: "u32", + instanceMetadatas: "u32", + attributes: "u32", + isFrozen: "bool" + }, + DestroyWitness: { + instances: "Compact", + instanceMetadatas: "Compact", + attributes: "Compact" + }, + InstanceDetails: { + owner: "AccountId", + approved: "Option", + isFrozen: "bool", + deposit: "DepositBalance" + }, + ClassMetadata: { + deposit: "DepositBalance", + data: "Vec", + isFrozen: "bool" + }, + InstanceMetadata: { + deposit: "DepositBalance", + data: "Vec", + isFrozen: "bool" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/utility/definitions.js + var require_definitions51 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/utility/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Multisig: { + when: "Timepoint", + deposit: "Balance", + depositor: "AccountId", + approvals: "Vec" + }, + Timepoint: { + height: "BlockNumber", + index: "u32" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/vesting/definitions.js + var require_definitions52 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/vesting/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + VestingInfo: { + locked: "Balance", + perBlock: "Balance", + startingBlock: "BlockNumber" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/attestations/definitions.js + var require_definitions53 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/attestations/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + BlockAttestations: { + receipt: "CandidateReceipt", + valid: "Vec", + invalid: "Vec" + }, + IncludedBlocks: { + actualNumber: "BlockNumber", + session: "SessionIndex", + randomSeed: "H256", + activeParachains: "Vec", + paraBlocks: "Vec" + }, + MoreAttestations: {} + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/bridges/definitions.js + var require_definitions54 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/bridges/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + BridgedBlockHash: "H256", + BridgedBlockNumber: "BlockNumber", + BridgedHeader: "Header", + BridgeMessageId: "(LaneId, MessageNonce)", + CallOrigin: { + _enum: { + SourceRoot: "Null", + TargetAccount: "(AccountId, MultiSigner, MultiSignature)", + SourceAccount: "AccountId" + } + }, + ChainId: "[u8; 4]", + DeliveredMessages: { + begin: "MessageNonce", + end: "MessageNonce", + dispatchResults: "BitVec" + }, + DispatchFeePayment: { + _enum: ["AtSourceChain", "AtTargetChain"] + }, + InboundLaneData: { + relayers: "Vec", + lastConfirmedNonce: "MessageNonce" + }, + InboundRelayer: "AccountId", + InitializationData: { + header: "Header", + authorityList: "AuthorityList", + setId: "SetId", + isHalted: "bool" + }, + LaneId: "[u8; 4]", + MessageData: { + payload: "Bytes", + fee: "Balance" + }, + MessagesDeliveryProofOf: { + bridgedHeaderHash: "BlockHash", + storageProof: "Vec", + lane: "LaneId" + }, + MessageKey: { + laneId: "LaneId", + nonce: "MessageNonce" + }, + MessageNonce: "u64", + MessagesProofOf: { + bridgedHeaderHash: "BridgedBlockHash", + storageProof: "Vec", + lane: "LaneId", + noncesStart: "MessageNonce", + noncesEnd: "MessageNonce" + }, + OperatingMode: { + _enum: ["Normal", "RejectingOutboundMessages", "Halted"] + }, + OutboundLaneData: { + oldestUnprunedNonce: "MessageNonce", + latestReceivedNonce: "MessageNonce", + latestGeneratedNonce: "MessageNonce" + }, + OutboundMessageFee: "Balance", + OutboundPayload: { + specVersion: "u32", + weight: "Weight", + origin: "CallOrigin", + dispatchFeePayment: "DispatchFeePayment", + call: "Bytes" + }, + Parameter: "Null", + RelayerId: "AccountId", + UnrewardedRelayer: { + relayer: "RelayerId", + messages: "DeliveredMessages" + }, + UnrewardedRelayersState: { + unrewardedRelayer_Entries: "MessageNonce", + messagesInOldestEntry: "MessageNonce", + totalMessages: "MessageNonce" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/claims/definitions.js + var require_definitions55 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/claims/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + StatementKind: { + _enum: ["Regular", "Saft"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/crowdloan/definitions.js + var require_definitions56 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/crowdloan/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + FundIndex: "u32", + LastContribution: { + _enum: { + Never: "Null", + PreEnding: "u32", + Ending: "BlockNumber" + } + }, + FundInfo: { + depositor: "AccountId", + verifier: "Option", + deposit: "Balance", + raised: "Balance", + end: "BlockNumber", + cap: "Balance", + lastContribution: "LastContribution", + firstPeriod: "LeasePeriod", + lastPeriod: "LeasePeriod", + trieIndex: "TrieIndex" + }, + TrieIndex: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/cumulus/runtime.js + var require_runtime25 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/cumulus/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + CollectCollationInfo: [ + { + methods: { + collect_collation_info: { + description: "Collect information about a collation.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "CollationInfo" + } + }, + version: 2 + }, + { + methods: { + collect_collation_info: { + description: "Collect information about a collation.", + params: [], + type: "CollationInfoV1" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/cumulus/definitions.js + var require_definitions57 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/cumulus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime25(); + var dmpQueue2 = { + CollationInfo: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + processedDownwardMessages: "u32", + hrmpWatermark: "RelayBlockNumber", + headData: "HeadData" + }, + CollationInfoV1: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + processedDownwardMessages: "u32", + hrmpWatermark: "RelayBlockNumber" + }, + ConfigData: { + maxIndividual: "Weight" + }, + MessageId: "[u8; 32]", + OverweightIndex: "u64", + PageCounter: "u32", + PageIndexData: { + beginUsed: "PageCounter", + endUsed: "PageCounter", + overweightCount: "OverweightIndex" + } + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: dmpQueue2 + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/finality/runtime.js + var require_runtime26 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/finality/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var finalityV12 = { + methods: { + best_finalized: { + description: "Returns number and hash of the best finalized header known to the bridge module.", + params: [], + type: "(BlockNumber, Hash)" + } + }, + version: 1 + }; + exports2.runtime = { + KusamaFinalityApi: [finalityV12], + PolkadotFinalityApi: [finalityV12], + RococoFinalityApi: [finalityV12], + WestendFinalityApi: [finalityV12] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/finality/definitions.js + var require_definitions58 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/finality/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime26(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/hrmp.js + var require_hrmp = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/hrmp.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + HrmpChannel: { + maxCapacity: "u32", + maxTotalSize: "u32", + maxMessageSize: "u32", + msgCount: "u32", + totalSize: "u32", + mqcHead: "Option", + senderDeposit: "Balance", + recipientDeposit: "Balance" + }, + HrmpChannelId: { + sender: "u32", + receiver: "u32" + }, + HrmpOpenChannelRequest: { + confirmed: "bool", + age: "SessionIndex", + senderDeposit: "Balance", + maxMessageSize: "u32", + maxCapacity: "u32", + maxTotalSize: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/runtime.js + var require_runtime27 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var PH_V1_TO_V22 = { + assumed_validation_data: { + description: "Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "hash", + type: "Hash" + } + ], + type: "Option<(PersistedValidationData, ValidationCodeHash)>" + }, + availability_cores: { + description: "Yields information on all availability cores as relevant to the child block.", + params: [], + type: "Vec" + }, + candidate_events: { + description: "Get a vector of events concerning candidates that occurred within a block.", + params: [], + type: "Vec" + }, + candidate_pending_availability: { + description: "Get the receipt of a candidate pending availability.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Option" + }, + check_validation_outputs: { + description: "Checks if the given validation outputs pass the acceptance criteria.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "outputs", + type: "CandidateCommitments" + } + ], + type: "bool" + }, + dmq_contents: { + description: "Get all the pending inbound messages in the downward message queue for a para.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Vec" + }, + inbound_hrmp_channels_contents: { + description: "Get the contents of all channels addressed to the given recipient.", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Vec" + }, + on_chain_votes: { + description: "Scrape dispute relevant from on-chain, backing votes and resolved disputes.", + params: [], + type: "Option" + }, + persisted_validation_data: { + description: "Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + }, + session_index_for_child: { + description: "Returns the session index expected at a child of the block.", + params: [], + type: "SessionIndex" + }, + validation_code: { + description: "Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + }, + validation_code_by_hash: { + description: "Get the validation code from its hash.", + params: [ + { + name: "hash", + type: "ValidationCodeHash" + } + ], + type: "Option" + }, + validator_groups: { + description: "Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on", + params: [], + type: "(Vec>, GroupRotationInfo)" + }, + validators: { + description: "Get the current validators.", + params: [], + type: "Vec" + } + }; + var PH_V2_TO_V32 = { + pvfs_require_precheck: { + description: "Returns code hashes of PVFs that require pre-checking by validators in the active set.", + params: [], + type: "Vec" + }, + session_info: { + description: "Get the session info for the given session, if stored.", + params: [ + { + name: "index", + type: "SessionIndex" + } + ], + type: "Option" + }, + submit_pvf_check_statement: { + description: "Submits a PVF pre-checking statement into the transaction pool.", + params: [ + { + name: "stmt", + type: "PvfCheckStatement" + }, + { + name: "signature", + type: "ValidatorSignature" + } + ], + type: "Null" + }, + validation_code_hash: { + description: "Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.", + params: [ + { + name: "paraId", + type: "ParaId" + }, + { + name: "assumption", + type: "OccupiedCoreAssumption" + } + ], + type: "Option" + } + }; + var PH_V32 = { + disputes: { + description: "Returns all onchain disputes.", + params: [], + type: "Vec<(SessionIndex, CandidateHash, DisputeState)>" + } + }; + var PH_V42 = { + session_executor_params: { + description: "Returns execution parameters for the session.", + params: [ + { + name: "sessionIndex", + type: "SessionIndex" + } + ], + type: "Option" + } + }; + var PH_V52 = { + key_ownership_proof: { + description: "Returns a merkle proof of a validator session key", + params: [ + { + name: "validatorId", + type: "ValidatorId" + } + ], + type: "Option" + }, + submit_report_dispute_lost: { + description: "Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session", + params: [ + { + name: "disputeProof", + type: "DisputeProof" + }, + { + name: "keyOwnershipProof", + type: "OpaqueKeyOwnershipProof" + } + ], + type: "Option" + }, + unapplied_slashes: { + description: "Returns a list of validators that lost a past session dispute and need to be slashed", + params: [], + type: "Vec<(SessionIndex, CandidateHash, PendingSlashes)>" + } + }; + var PH_V62 = { + minimum_backing_votes: { + description: "Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!", + params: [], + type: "u32" + } + }; + var PH_V72 = { + async_backing_params: { + description: "Returns candidate's acceptance limitations for asynchronous backing for a relay parent", + params: [], + type: "AsyncBackingParams" + }, + para_backing_state: { + description: "Returns the state of parachain backing for a given para", + params: [ + { + name: "paraId", + type: "ParaId" + } + ], + type: "Option" + } + }; + var PH_V82 = { + disabled_validators: { + description: "Returns a list of all disabled validators at the given block", + params: [], + type: "ValidatorIndex" + } + }; + var PH_V92 = { + node_features: { + description: "Get node features. This is a staging method! Do not use on production runtimes!", + params: [], + type: "NodeFeatures" + } + }; + var PH_V102 = { + approval_voting_params: { + description: "Approval voting configuration parameters", + params: [], + type: "ApprovalVotingParams" + } + }; + exports2.runtime = { + ParachainHost: [ + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82, + ...PH_V92, + ...PH_V102 + }, + version: 10 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82, + ...PH_V92 + }, + version: 9 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72, + ...PH_V82 + }, + version: 8 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62, + ...PH_V72 + }, + version: 7 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52, + ...PH_V62 + }, + version: 6 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42, + ...PH_V52 + }, + version: 5 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32, + ...PH_V42 + }, + version: 4 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32, + ...PH_V32 + }, + version: 3 + }, + { + methods: { + ...PH_V1_TO_V22, + ...PH_V2_TO_V32 + }, + version: 2 + }, + { + methods: { + session_info: { + description: "Get the session info for the given session, if stored.", + params: [ + { + name: "index", + type: "SessionIndex" + } + ], + type: "Option" + }, + ...PH_V1_TO_V22 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/slots.js + var require_slots = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/slots.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var SlotRange102 = { + _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "OneOne", "OneTwo", "OneThree", "TwoTwo", "TwoThree", "ThreeThree"] + }; + var SlotRange2 = { + _enum: ["ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "ZeroFour", "ZeroFive", "ZeroSix", "ZeroSeven", "OneOne", "OneTwo", "OneThree", "OneFour", "OneFive", "OneSix", "OneSeven", "TwoTwo", "TwoThree", "TwoFour", "TwoFive", "TwoSix", "TwoSeven", "ThreeThree", "ThreeFour", "ThreeFive", "ThreeSix", "ThreeSeven", "FourFour", "FourFive", "FourSix", "FourSeven", "FiveFive", "FiveSix", "FiveSeven", "SixSix", "SixSeven", "SevenSeven"] + }; + var oldTypes2 = { + Bidder: { + _enum: { + New: "NewBidder", + Existing: "ParaId" + } + }, + IncomingParachain: { + _enum: { + Unset: "NewBidder", + Fixed: "IncomingParachainFixed", + Deploy: "IncomingParachainDeploy" + } + }, + IncomingParachainDeploy: { + code: "ValidationCode", + initialHeadData: "HeadData" + }, + IncomingParachainFixed: { + codeHash: "Hash", + codeSize: "u32", + initialHeadData: "HeadData" + }, + NewBidder: { + who: "AccountId", + sub: "SubId" + }, + SubId: "u32" + }; + exports2.default = { + ...oldTypes2, + AuctionIndex: "u32", + LeasePeriod: "BlockNumber", + LeasePeriodOf: "BlockNumber", + SlotRange10: SlotRange102, + SlotRange: SlotRange2, + WinningData10: `[WinningDataEntry; ${SlotRange102._enum.length}]`, + WinningData: `[WinningDataEntry; ${SlotRange2._enum.length}]`, + WinningDataEntry: "Option<(AccountId, ParaId, BalanceOf)>", + WinnersData10: "Vec", + WinnersData: "Vec", + WinnersDataTuple10: "(AccountId, ParaId, BalanceOf, SlotRange10)", + WinnersDataTuple: "(AccountId, ParaId, BalanceOf, SlotRange)" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/parachains/definitions.js + var require_definitions59 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/parachains/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var hrmp_js_1 = tslib_1.__importDefault(require_hrmp()); + var runtime_js_1 = require_runtime27(); + var slots_js_1 = tslib_1.__importDefault(require_slots()); + var proposeTypes2 = { + ParachainProposal: { + proposer: "AccountId", + genesisHead: "HeadData", + validators: "Vec", + name: "Bytes", + balance: "Balance" + }, + RegisteredParachainInfo: { + validators: "Vec", + proposer: "AccountId" + } + }; + var cumulusTypes2 = { + ServiceQuality: { + _enum: ["Ordered", "Fast"] + } + }; + var disputeTypes2 = { + DisputeLocation: { + _enum: ["Local", "Remote"] + }, + DisputeResult: { + _enum: ["Valid", "Invalid"] + }, + DisputeState: { + validatorsFor: "BitVec", + validatorsAgainst: "BitVec", + start: "BlockNumber", + concludedAt: "Option" + }, + DisputeStatement: { + _enum: { + Valid: "ValidDisputeStatementKind", + Invalid: "InvalidDisputeStatementKind" + } + }, + DisputeStatementSet: { + candidateHash: "CandidateHash", + session: "SessionIndex", + statements: "Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>" + }, + ExecutorParam: { + _enum: { + Phantom: "Null", + MaxMemoryPages: "u32", + StackLogicalMax: "u32", + StackNativeMax: "u32", + PrecheckingMaxMemory: "u64", + PvfPrepTimeout: "(PvfPrepTimeoutKind, u64)", + PvfExecTimeout: "(PvfExecTimeoutKind, u64)" + } + }, + ExecutorParamsHash: "Hash", + ExecutorParams: "Vec", + ExplicitDisputeStatement: { + valid: "bool", + candidateHash: "CandidateHash", + session: "SessionIndex" + }, + InvalidDisputeStatementKind: { + _enum: ["Explicit"] + }, + MultiDisputeStatementSet: "Vec", + PvfExecTimeoutKind: { + _enum: ["Backing", "Approval"] + }, + PvfPrepTimeoutKind: { + _enum: ["Precheck", "Lenient"] + }, + ValidDisputeStatementKind: { + _enum: { + Explicit: "Null", + BackingSeconded: "Hash", + BackingValid: "Hash", + ApprovalChecking: "Null" + } + } + }; + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: { + ...cumulusTypes2, + ...disputeTypes2, + ...hrmp_js_1.default, + ...proposeTypes2, + ...slots_js_1.default, + AbridgedCandidateReceipt: { + parachainIndex: "ParaId", + relayParent: "Hash", + headData: "HeadData", + collator: "CollatorId", + signature: "CollatorSignature", + povBlockHash: "Hash", + commitments: "CandidateCommitments" + }, + AbridgedHostConfiguration: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + maxUpwardQueueCount: "u32", + maxUpwardQueueSize: "u32", + maxUpwardMessageSize: "u32", + maxUpwardMessageNumPerCandidate: "u32", + hrmpMaxMessageNumPerCandidate: "u32", + validationUpgradeFrequency: "BlockNumber", + validationUpgradeDelay: "BlockNumber" + }, + AbridgedHrmpChannel: { + maxCapacity: "u32", + maxTotalSize: "u32", + maxMessageSize: "u32", + msgCount: "u32", + totalSize: "u32", + mqcHead: "Option" + }, + ApprovalVotingParams: { + maxApprovalCoalesceCount: "u32" + }, + AssignmentId: "AccountId", + AssignmentKind: { + _enum: { + Parachain: "Null", + Parathread: "(CollatorId, u32)" + } + }, + AsyncBackingParams: { + maxCandidateDepth: "u32", + allowedAncestryLen: "u32" + }, + AttestedCandidate: { + candidate: "AbridgedCandidateReceipt", + validityVotes: "Vec", + validatorIndices: "BitVec" + }, + AuthorityDiscoveryId: "AccountId", + AvailabilityBitfield: "BitVec", + AvailabilityBitfieldRecord: { + bitfield: "AvailabilityBitfield", + submittedTt: "BlockNumber" + }, + BackedCandidate: { + candidate: "CommittedCandidateReceipt", + validityVotes: "Vec", + validatorIndices: "BitVec" + }, + BackingState: { + constraints: "Constraints", + pendingAvailability: "Vec" + }, + BufferedSessionChange: { + applyAt: "BlockNumber", + validators: "Vec", + queued: "Vec", + sessionIndex: "SessionIndex" + }, + CandidateCommitments: { + upwardMessages: "Vec", + horizontalMessages: "Vec", + newValidationCode: "Option", + headData: "HeadData", + processedDownwardMessages: "u32", + hrmpWatermark: "BlockNumber" + }, + CandidateDescriptor: { + paraId: "ParaId", + relayParent: "RelayChainHash", + collatorId: "CollatorId", + persistedValidationDataHash: "Hash", + povHash: "Hash", + erasureRoot: "Hash", + signature: "CollatorSignature", + paraHead: "Hash", + validationCodeHash: "ValidationCodeHash" + }, + CandidateEvent: { + _enum: { + CandidateBacked: "(CandidateReceipt, HeadData, CoreIndex, GroupIndex)", + CandidateIncluded: "(CandidateReceipt, HeadData, CoreIndex, GroupIndex)", + CandidateTimedOut: "(CandidateReceipt, HeadData, CoreIndex)" + } + }, + CandidateHash: "Hash", + CandidateInfo: { + who: "AccountId", + deposit: "Balance" + }, + CandidatePendingAvailability: { + core: "CoreIndex", + hash: "CandidateHash", + descriptor: "CandidateDescriptor", + availabilityVotes: "BitVec", + backers: "BitVec", + relayParentNumber: "BlockNumber", + backedInNumber: "BlockNumber", + backingGroup: "GroupIndex" + }, + CandidateReceipt: { + descriptor: "CandidateDescriptor", + commitmentsHash: "Hash" + }, + GlobalValidationData: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + blockNumber: "BlockNumber" + }, + CollatorId: "H256", + CollatorSignature: "Signature", + CommittedCandidateReceipt: { + descriptor: "CandidateDescriptor", + commitments: "CandidateCommitments" + }, + Constraints: { + minRelayParentNumber: "BlockNumber", + maxPovSize: "u32", + maxCodeSize: "u32", + umpRemaining: "u32", + umpRemainingBytes: "u32", + maxUmpNumPerCandidate: "u32", + dmpRemainingMessages: "Vec", + hrmpInbound: "InboundHrmpLimitations", + hrmpChannelsOut: "HashMap", + maxHrmpNumPerCandidate: "u32", + requiredParent: "HeadData", + validationCodeHash: "ValidationCodeHash", + upgradeRestriction: "Option", + futureValidationCode: "Option<(BlockNumber, ValidationCodeHash)>" + }, + CoreAssignment: { + core: "CoreIndex", + paraId: "ParaId", + kind: "AssignmentKind", + groupIdx: "GroupIndex" + }, + CoreIndex: "u32", + CoreOccupied: { + _enum: { + Parathread: "ParathreadEntry", + Parachain: "Null" + } + }, + CoreState: { + _enum: { + Occupied: "OccupiedCore", + Scheduled: "ScheduledCore", + Free: "Null" + } + }, + DisputeProof: { + timeSlot: "DisputesTimeSlot", + kind: "SlashingOffenceKind", + validatorIndex: "ValidatorIndex", + validatorId: "ValidatorId" + }, + DisputesTimeSlot: { + sessionIndex: "SessionIndex", + candidateHash: "CandidateHash" + }, + DoubleVoteReport: { + identity: "ValidatorId", + first: "(Statement, ValidatorSignature)", + second: "(Statement, ValidatorSignature)", + proof: "MembershipProof", + signingContext: "SigningContext" + }, + DownwardMessage: "Bytes", + GroupIndex: "u32", + GroupRotationInfo: { + sessionStartBlock: "BlockNumber", + groupRotationFrequency: "BlockNumber", + now: "BlockNumber" + }, + GlobalValidationSchedule: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + blockNumber: "BlockNumber" + }, + HeadData: "Bytes", + HostConfiguration: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + maxUpwardQueueCount: "u32", + maxUpwardQueueSize: "u32", + maxUpwardMessageSize: "u32", + maxUpwardMessageNumPerCandidate: "u32", + hrmpMaxMessageNumPerCandidate: "u32", + validationUpgradeFrequency: "BlockNumber", + validationUpgradeDelay: "BlockNumber", + maxPovSize: "u32", + maxDownwardMessageSize: "u32", + preferredDispatchableUpwardMessagesStepWeight: "Weight", + hrmpMaxParachainOutboundChannels: "u32", + hrmpMaxParathreadOutboundChannels: "u32", + hrmpOpenRequestTtl: "u32", + hrmpSenderDeposit: "Balance", + hrmpRecipientDeposit: "Balance", + hrmpChannelMaxCapacity: "u32", + hrmpChannelMaxTotalSize: "u32", + hrmpMaxParachainInboundChannels: "u32", + hrmpMaxParathreadInboundChannels: "u32", + hrmpChannelMaxMessageSize: "u32", + codeRetentionPeriod: "BlockNumber", + parathreadCores: "u32", + parathreadRetries: "u32", + groupRotationFrequency: "BlockNumber", + chainAvailabilityPeriod: "BlockNumber", + threadAvailabilityPeriod: "BlockNumber", + schedulingLookahead: "u32", + maxValidatorsPerCore: "Option", + maxValidators: "Option", + disputePeriod: "SessionIndex", + disputePostConclusionAcceptancePeriod: "BlockNumber", + disputeMaxSpamSlots: "u32", + disputeConclusionByTimeOutPeriod: "BlockNumber", + noShowSlots: "u32", + nDelayTranches: "u32", + zerothDelayTrancheWidth: "u32", + neededApprovals: "u32", + relayVrfModuloSamples: "u32" + }, + InboundDownwardMessage: { + pubSentAt: "BlockNumber", + pubMsg: "DownwardMessage" + }, + InboundHrmpMessage: { + sentAt: "BlockNumber", + data: "Bytes" + }, + InboundHrmpLimitations: { + validWatermarks: "Vec" + }, + InboundHrmpMessages: "Vec", + LocalValidationData: { + parentHead: "HeadData", + balance: "Balance", + codeUpgradeAllowed: "Option" + }, + MessageIngestionType: { + downwardMessages: "Vec", + horizontalMessages: "BTreeMap" + }, + MessageQueueChain: "RelayChainHash", + NodeFeatures: "BitVec", + OccupiedCore: { + nextUpOnAvailable: "Option", + occupiedSince: "BlockNumber", + timeOutAt: "BlockNumber", + nextUpOnTimeOut: "Option", + availability: "BitVec", + groupResponsible: "GroupIndex", + candidateHash: "CandidateHash", + candidateDescriptor: "CandidateDescriptor" + }, + OccupiedCoreAssumption: { + _enum: ["Included,", "TimedOut", "Free"] + }, + OutboundHrmpChannelLimitations: { + bytesRemaining: "u32", + messagesRemaining: "u32" + }, + OutboundHrmpMessage: { + recipient: "u32", + data: "Bytes" + }, + PendingSlashes: { + _alias: { + slashKeys: "keys" + }, + slashKeys: "BTreeMap", + kind: "SlashingOffenceKind" + }, + ParachainDispatchOrigin: { + _enum: ["Signed", "Parachain", "Root"] + }, + ParachainInherentData: { + validationData: "PersistedValidationData", + relayChainState: "StorageProof", + downwardMessages: "Vec", + horizontalMessages: "BTreeMap" + }, + ParachainsInherentData: { + bitfields: "SignedAvailabilityBitfields", + backedCandidates: "Vec", + disputes: "MultiDisputeStatementSet", + parentHeader: "Header" + }, + ParaGenesisArgs: { + genesisHead: "Bytes", + validationCode: "Bytes", + parachain: "bool" + }, + ParaId: "u32", + ParaInfo: { + manager: "AccountId", + deposit: "Balance", + locked: "bool" + }, + ParaLifecycle: { + _enum: ["Onboarding", "Parathread", "Parachain", "UpgradingToParachain", "DowngradingToParathread", "OutgoingParathread", "OutgoingParachain"] + }, + ParaPastCodeMeta: { + upgradeTimes: "Vec", + lastPruned: "Option" + }, + ParaScheduling: { + _enum: ["Always", "Dynamic"] + }, + ParathreadClaim: "(ParaId, CollatorId)", + ParathreadClaimQueue: { + queue: "Vec", + nextCoreOffset: "u32" + }, + ParathreadEntry: { + claim: "ParathreadClaim", + retries: "u32" + }, + ParaValidatorIndex: "u32", + PersistedValidationData: { + parentHead: "HeadData", + relayParentNumber: "RelayChainBlockNumber", + relayParentStorageRoot: "Hash", + maxPovSize: "u32" + }, + PvfCheckStatement: { + accept: "bool", + subject: "ValidationCodeHash", + sessionIndex: "SessionIndex", + validatorIndex: "ParaValidatorIndex" + }, + QueuedParathread: { + claim: "ParathreadEntry", + coreOffset: "u32" + }, + RelayBlockNumber: "u32", + RelayChainBlockNumber: "RelayBlockNumber", + RelayHash: "Hash", + RelayChainHash: "RelayHash", + Remark: "[u8; 32]", + ReplacementTimes: { + expectedAt: "BlockNumber", + activatedAt: "BlockNumber" + }, + Retriable: { + _enum: { + Never: "Null", + WithRetries: "u32" + } + }, + ScheduledCore: { + paraId: "ParaId", + collator: "Option" + }, + Scheduling: { + _enum: ["Always", "Dynamic"] + }, + ScrapedOnChainVotes: { + session: "SessionIndex", + backingValidatorsPerCandidate: "Vec<(CandidateReceipt, Vec<(ParaValidatorIndex, ValidityAttestation)>)>", + disputes: "MultiDisputeStatementSet" + }, + SessionInfo: { + activeValidatorIndices: "Vec", + randomSeed: "[u8; 32]", + disputePeriod: "SessionIndex", + validators: "Vec", + discoveryKeys: "Vec", + assignmentKeys: "Vec", + validatorGroups: "Vec>", + nCores: "u32", + zerothDelayTrancheWidth: "u32", + relayVrfModuloSamples: "u32", + nDelayTranches: "u32", + noShowSlots: "u32", + neededApprovals: "u32" + }, + OldV1SessionInfo: { + validators: "Vec", + discoveryKeys: "Vec", + assignmentKeys: "Vec", + validatorGroups: "Vec>", + nCores: "u32", + zerothDelayTrancheWidth: "u32", + relayVrfModuloSamples: "u32", + nDelayTranches: "u32", + noShowSlots: "u32", + neededApprovals: "u32" + }, + SessionInfoValidatorGroup: "Vec", + SignedAvailabilityBitfield: { + payload: "BitVec", + validatorIndex: "ParaValidatorIndex", + signature: "ValidatorSignature" + }, + SignedAvailabilityBitfields: "Vec", + SigningContext: { + sessionIndex: "SessionIndex", + parentHash: "Hash" + }, + SlashingOffenceKind: { + _enum: ["ForInvalid", "AgainstValid"] + }, + Statement: { + _enum: { + Never: "Null", + Candidate: "Hash", + Valid: "Hash", + Invalid: "Hash" + } + }, + TransientValidationData: { + maxCodeSize: "u32", + maxHeadDataSize: "u32", + balance: "Balance", + codeUpgradeAllowed: "Option", + dmqLength: "u32" + }, + UpgradeGoAhead: { + _enum: ["Abort", "GoAhead"] + }, + UpgradeRestriction: { + _enum: ["Present"] + }, + UpwardMessage: "Bytes", + ValidationFunctionParams: { + maxCodeSize: "u32", + relayChainHeight: "RelayChainBlockNumber", + codeUpgradeAllowed: "Option" + }, + ValidationCode: "Bytes", + ValidationCodeHash: "Hash", + ValidationData: { + persisted: "PersistedValidationData", + transient: "TransientValidationData" + }, + ValidationDataType: { + validationData: "ValidationData", + relayChainState: "Vec" + }, + ValidatorSignature: "Signature", + ValidityAttestation: { + _enum: { + Never: "Null", + Implicit: "ValidatorSignature", + Explicit: "ValidatorSignature" + } + }, + MessagingStateSnapshot: { + relayDispatchQueueSize: "(u32, u32)", + egressChannels: "Vec" + }, + MessagingStateSnapshotEgressEntry: "(ParaId, AbridgedHrmpChannel)", + SystemInherentData: "ParachainInherentData", + VecInboundHrmpMessage: "Vec" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/poll/definitions.js + var require_definitions60 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/poll/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + Approvals: "[bool; 4]" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/purchase/definitions.js + var require_definitions61 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/purchase/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = { + rpc: {}, + types: { + AccountStatus: { + validity: "AccountValidity", + freeBalance: "Balance", + lockedBalance: "Balance", + signature: "Vec", + vat: "Permill" + }, + AccountValidity: { + _enum: ["Invalid", "Initiated", "Pending", "ValidLow", "ValidHigh", "Completed"] + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/packageDetect.js + var require_packageDetect4 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo17(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/types/registry.js + var require_registry = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/types/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/augmentRegistry.js + var require_augmentRegistry = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/augmentRegistry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry(); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/lookup.js + var require_lookup = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/lookup.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/types.js + var require_types2 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeDefInfo = void 0; + var TypeDefInfo2; + (function(TypeDefInfo3) { + TypeDefInfo3[TypeDefInfo3["BTreeMap"] = 0] = "BTreeMap"; + TypeDefInfo3[TypeDefInfo3["BTreeSet"] = 1] = "BTreeSet"; + TypeDefInfo3[TypeDefInfo3["Compact"] = 2] = "Compact"; + TypeDefInfo3[TypeDefInfo3["DoNotConstruct"] = 3] = "DoNotConstruct"; + TypeDefInfo3[TypeDefInfo3["Enum"] = 4] = "Enum"; + TypeDefInfo3[TypeDefInfo3["HashMap"] = 5] = "HashMap"; + TypeDefInfo3[TypeDefInfo3["Int"] = 6] = "Int"; + TypeDefInfo3[TypeDefInfo3["Linkage"] = 7] = "Linkage"; + TypeDefInfo3[TypeDefInfo3["Null"] = 8] = "Null"; + TypeDefInfo3[TypeDefInfo3["Option"] = 9] = "Option"; + TypeDefInfo3[TypeDefInfo3["Plain"] = 10] = "Plain"; + TypeDefInfo3[TypeDefInfo3["Range"] = 11] = "Range"; + TypeDefInfo3[TypeDefInfo3["RangeInclusive"] = 12] = "RangeInclusive"; + TypeDefInfo3[TypeDefInfo3["Result"] = 13] = "Result"; + TypeDefInfo3[TypeDefInfo3["Set"] = 14] = "Set"; + TypeDefInfo3[TypeDefInfo3["Si"] = 15] = "Si"; + TypeDefInfo3[TypeDefInfo3["Struct"] = 16] = "Struct"; + TypeDefInfo3[TypeDefInfo3["Tuple"] = 17] = "Tuple"; + TypeDefInfo3[TypeDefInfo3["UInt"] = 18] = "UInt"; + TypeDefInfo3[TypeDefInfo3["Vec"] = 19] = "Vec"; + TypeDefInfo3[TypeDefInfo3["VecFixed"] = 20] = "VecFixed"; + TypeDefInfo3[TypeDefInfo3["WrapperKeepOpaque"] = 21] = "WrapperKeepOpaque"; + TypeDefInfo3[TypeDefInfo3["WrapperOpaque"] = 22] = "WrapperOpaque"; + })(TypeDefInfo2 || (exports2.TypeDefInfo = TypeDefInfo2 = {})); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/types/index.js + var require_types3 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/types/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_augmentRegistry(); + tslib_1.__exportStar(require_lookup(), exports2); + tslib_1.__exportStar(require_types2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/packageDetect.js + var require_packageDetect5 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo16(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, []); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/util.js + var require_util2 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.hasEq = void 0; + var util_1 = require_cjs3(); + function hasEq2(o) { + return (0, util_1.isFunction)(o.eq); + } + exports2.hasEq = hasEq2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareArray.js + var require_compareArray = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareArray.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareArray = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util2(); + function compareArray2(a, b) { + if (Array.isArray(b)) { + return a.length === b.length && (0, util_1.isUndefined)(a.find((v, index) => (0, util_js_1.hasEq)(v) ? !v.eq(b[index]) : v !== b[index])); + } + return false; + } + exports2.compareArray = compareArray2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Array.js + var require_Array = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Array.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractArray = void 0; + var util_1 = require_cjs3(); + var compareArray_js_1 = require_compareArray(); + var AbstractArray2 = class extends Array { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + static get [Symbol.species]() { + return Array; + } + constructor(registry, length) { + super(length); + this.registry = registry; + } + get encodedLength() { + const count = this.length; + let total = (0, util_1.compactToU8a)(count).length; + for (let i = 0; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.length === 0; + } + get length() { + return super.length; + } + eq(other) { + return (0, compareArray_js_1.compareArray)(this, other); + } + inspect() { + return { + inner: this.inspectInner(), + outer: [(0, util_1.compactToU8a)(this.length)] + }; + } + inspectInner() { + const count = this.length; + const inner = new Array(count); + for (let i = 0; i < count; i++) { + inner[i] = this[i].inspect(); + } + return inner; + } + toArray() { + return Array.from(this); + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toHuman(isExtended, disableAscii); + } + return result; + } + toJSON() { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toJSON(); + } + return result; + } + toPrimitive(disableAscii) { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i] && this[i].toPrimitive(disableAscii); + } + return result; + } + toString() { + const count = this.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = this[i].toString(); + } + return `[${result.join(", ")}]`; + } + toU8a(isBare) { + const encoded = this.toU8aInner(); + return isBare ? (0, util_1.u8aConcatStrict)(encoded) : (0, util_1.u8aConcatStrict)([(0, util_1.compactToU8a)(this.length), ...encoded]); + } + toU8aInner(isBare) { + const count = this.length; + const encoded = new Array(count); + for (let i = 0; i < count; i++) { + encoded[i] = this[i].toU8a(isBare); + } + return encoded; + } + }; + exports2.AbstractArray = AbstractArray2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Base.js + var require_Base = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Base.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractBase = void 0; + var AbstractBase2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__raw; + constructor(registry, value, initialU8aLength) { + this.initialU8aLength = initialU8aLength; + this.__internal__raw = value; + this.registry = registry; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get inner() { + return this.__internal__raw; + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + eq(other) { + return this.__internal__raw.eq(other); + } + inspect() { + return this.__internal__raw.inspect(); + } + toHex(isLe) { + return this.__internal__raw.toHex(isLe); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.__internal__raw.toJSON(); + } + toPrimitive(disableAscii) { + return this.__internal__raw.toPrimitive(disableAscii); + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(isBare) { + return this.__internal__raw.toU8a(isBare); + } + unwrap() { + return this.__internal__raw; + } + valueOf() { + return this.__internal__raw; + } + }; + exports2.AbstractBase = AbstractBase2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/Int.js + var require_Int = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/Int.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractInt = exports2.DEFAULT_UINT_BITS = void 0; + var util_1 = require_cjs3(); + exports2.DEFAULT_UINT_BITS = 64; + var MAX_NUMBER_BITS2 = 52; + var MUL_P2 = new util_1.BN(1e4); + var FORMATTERS2 = [ + ["Perquintill", util_1.BN_QUINTILL], + ["Perbill", util_1.BN_BILLION], + ["Permill", util_1.BN_MILLION], + ["Percent", util_1.BN_HUNDRED] + ]; + function isToBn6(value) { + return (0, util_1.isFunction)(value.toBn); + } + function toPercentage2(value, divisor) { + return `${(value.mul(MUL_P2).div(divisor).toNumber() / 100).toFixed(2)}%`; + } + function decodeAbstractInt2(value, isNegative) { + if ((0, util_1.isNumber)(value)) { + if (!Number.isInteger(value) || value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER) { + throw new Error("Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1"); + } + return value; + } else if ((0, util_1.isString)(value)) { + if ((0, util_1.isHex)(value, -1, true)) { + return (0, util_1.hexToBn)(value, { isLe: false, isNegative }).toString(); + } + if (value.includes(".") || value.includes(",") || value.includes("e")) { + throw new Error("String should not contain decimal points or scientific notation"); + } + return value; + } else if ((0, util_1.isBn)(value) || (0, util_1.isBigInt)(value)) { + return value.toString(); + } else if ((0, util_1.isObject)(value)) { + if (isToBn6(value)) { + return value.toBn().toString(); + } + const keys = Object.keys(value); + if (keys.length !== 1) { + throw new Error("Unable to construct number from multi-key object"); + } + return decodeAbstractInt2(value[keys[0]], isNegative); + } else if (!value) { + return 0; + } + throw new Error(`Unable to create BN from unknown type ${typeof value}`); + } + var AbstractInt2 = class extends util_1.BN { + registry; + encodedLength; + isUnsigned; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__bitLength; + constructor(registry, value = 0, bitLength = exports2.DEFAULT_UINT_BITS, isSigned = false) { + super( + (0, util_1.isU8a)(value) ? bitLength <= 48 ? (0, util_1.u8aToNumber)(value.subarray(0, bitLength / 8), { isNegative: isSigned }) : (0, util_1.u8aToBn)(value.subarray(0, bitLength / 8), { isLe: true, isNegative: isSigned }).toString() : decodeAbstractInt2(value, isSigned) + ); + this.registry = registry; + this.__internal__bitLength = bitLength; + this.encodedLength = this.__internal__bitLength / 8; + this.initialU8aLength = this.__internal__bitLength / 8; + this.isUnsigned = !isSigned; + const isNegative = this.isNeg(); + const maxBits = bitLength - (isSigned && !isNegative ? 1 : 0); + if (isNegative && !isSigned) { + throw new Error(`${this.toRawType()}: Negative number passed to unsigned type`); + } else if (super.bitLength() > maxBits) { + throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${maxBits}`); + } + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isZero(); + } + bitLength() { + return this.__internal__bitLength; + } + eq(other) { + return super.eq((0, util_1.isHex)(other) ? (0, util_1.hexToBn)(other.toString(), { isLe: false, isNegative: !this.isUnsigned }) : (0, util_1.bnToBn)(other)); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + isMax() { + const u8a = this.toU8a().filter((b) => b === 255); + return u8a.length === this.__internal__bitLength / 8; + } + toBigInt() { + return BigInt(this.toString()); + } + toBn() { + return this; + } + toHex(isLe = false) { + return (0, util_1.bnToHex)(this, { + bitLength: this.bitLength(), + isLe, + isNegative: !this.isUnsigned + }); + } + toHuman(_isExpanded) { + const rawType = this.toRawType(); + if (rawType === "Balance") { + return this.isMax() ? "everything" : (0, util_1.formatBalance)(this, { decimals: this.registry.chainDecimals[0], withSi: true, withUnit: this.registry.chainTokens[0] }); + } + const [, divisor] = FORMATTERS2.find(([type]) => type === rawType) || []; + return divisor ? toPercentage2(this, divisor) : (0, util_1.formatNumber)(this); + } + toJSON(onlyHex = false) { + return onlyHex || this.__internal__bitLength > 128 || super.bitLength() > MAX_NUMBER_BITS2 ? this.toHex() : this.toNumber(); + } + toPrimitive() { + return super.bitLength() > MAX_NUMBER_BITS2 ? this.toString() : this.toNumber(); + } + toRawType() { + return this instanceof this.registry.createClassUnsafe("Balance") ? "Balance" : `${this.isUnsigned ? "u" : "i"}${this.bitLength()}`; + } + toString(base2) { + return super.toString(base2); + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this, { + bitLength: this.bitLength(), + isLe: true, + isNegative: !this.isUnsigned + }); + } + }; + exports2.AbstractInt = AbstractInt2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/abstract/index.js + var require_abstract = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/abstract/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AbstractInt = exports2.AbstractBase = exports2.AbstractArray = void 0; + var Array_js_1 = require_Array(); + Object.defineProperty(exports2, "AbstractArray", { enumerable: true, get: function() { + return Array_js_1.AbstractArray; + } }); + var Base_js_1 = require_Base(); + Object.defineProperty(exports2, "AbstractBase", { enumerable: true, get: function() { + return Base_js_1.AbstractBase; + } }); + var Int_js_1 = require_Int(); + Object.defineProperty(exports2, "AbstractInt", { enumerable: true, get: function() { + return Int_js_1.AbstractInt; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareMap.js + var require_compareMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareMap = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util2(); + function hasMismatch2(a, b) { + return (0, util_1.isUndefined)(a) || ((0, util_js_1.hasEq)(a) ? !a.eq(b) : a !== b); + } + function notEntry2(value) { + return !Array.isArray(value) || value.length !== 2; + } + function compareMapArray2(a, b) { + return a.size === b.length && !b.some((e) => notEntry2(e) || hasMismatch2(a.get(e[0]), e[1])); + } + function compareMap2(a, b) { + if (Array.isArray(b)) { + return compareMapArray2(a, b); + } else if (b instanceof Map) { + return compareMapArray2(a, [...b.entries()]); + } else if ((0, util_1.isObject)(b)) { + return compareMapArray2(a, Object.entries(b)); + } + return false; + } + exports2.compareMap = compareMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/compareSet.js + var require_compareSet = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/compareSet.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.compareSet = void 0; + var util_1 = require_cjs3(); + function compareSetArray2(a, b) { + return a.size === b.length && !b.some((e) => !a.has(e)); + } + function compareSet2(a, b) { + if (Array.isArray(b)) { + return compareSetArray2(a, b); + } else if (b instanceof Set) { + return compareSetArray2(a, [...b.values()]); + } else if ((0, util_1.isObject)(b)) { + return compareSetArray2(a, Object.values(b)); + } + return false; + } + exports2.compareSet = compareSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/decodeU8a.js + var require_decodeU8a = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/decodeU8a.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decodeU8aVec = exports2.decodeU8aStruct = exports2.decodeU8a = void 0; + var util_1 = require_cjs3(); + function formatFailure2(registry, fn2, _result, { message }, u8a, i, count, Type2, key2) { + let type = ""; + try { + type = `: ${new Type2(registry).toRawType()}`; + } catch { + } + return `${fn2}: failed at ${(0, util_1.u8aToHex)(u8a.subarray(0, 16))}\u2026${key2 ? ` on ${key2}` : ""} (index ${i + 1}/${count})${type}:: ${message}`; + } + function decodeU8a8(registry, result, u8a, [Types, keys]) { + const count = result.length; + let offset = 0; + let i = 0; + try { + while (i < count) { + const value = new Types[i](registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = value; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8a", result, error, u8a.subarray(offset), i, count, Types[i], keys[i])); + } + return [result, offset]; + } + exports2.decodeU8a = decodeU8a8; + function decodeU8aStruct2(registry, result, u8a, [Types, keys]) { + const count = result.length; + let offset = 0; + let i = 0; + try { + while (i < count) { + const value = new Types[i](registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = [keys[i], value]; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8aStruct", result, error, u8a.subarray(offset), i, count, Types[i], keys[i])); + } + return [result, offset]; + } + exports2.decodeU8aStruct = decodeU8aStruct2; + function decodeU8aVec2(registry, result, u8a, startAt, Type2) { + const count = result.length; + let offset = startAt; + let i = 0; + try { + while (i < count) { + const value = new Type2(registry, u8a.subarray(offset)); + offset += value.initialU8aLength || value.encodedLength; + result[i] = value; + i++; + } + } catch (error) { + throw new Error(formatFailure2(registry, "decodeU8aVec", result, error, u8a.subarray(offset), i, count, Type2)); + } + return [offset, offset - startAt]; + } + exports2.decodeU8aVec = decodeU8aVec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/sanitize.js + var require_sanitize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/sanitize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sanitize = exports2.removeWrap = exports2.removeTraits = exports2.removePairOf = exports2.removeGenerics = exports2.removeColons = exports2.removeExtensions = exports2.flattenSingleTuple = exports2.cleanupCompact = exports2.alias = exports2.findClosing = exports2.trim = void 0; + var BOUNDED2 = ["BTreeMap", "BTreeSet", "HashMap", "Vec"]; + var ALLOWED_BOXES2 = BOUNDED2.concat(["Compact", "DoNotConstruct", "Int", "Linkage", "Range", "RangeInclusive", "Result", "Opaque", "Option", "UInt", "WrapperKeepOpaque", "WrapperOpaque"]); + var BOX_PRECEDING2 = ["<", "(", "[", '"', ",", " "]; + var mappings2 = [ + alias2("::Inherent", "InherentOfflineReport", false), + alias2("VecDeque<", "Vec<", false), + cleanupCompact2(), + removeExtensions2("Bounded", true), + removeExtensions2("Weak", false), + removeTraits2(), + removePairOf2(), + removeWrap2("Box<"), + removeGenerics2(), + alias2("String", "Text"), + alias2("Vec", "Bytes"), + alias2("&\\[u8\\]", "Bytes"), + alias2("&'static\\[u8\\]", "Bytes"), + alias2("RawAddress", "Address"), + alias2("Lookup::Source", "LookupSource"), + alias2("Lookup::Target", "LookupTarget"), + alias2("exec::StorageKey", "ContractStorageKey"), + flattenSingleTuple2(), + removeColons2(), + trim2() + ]; + function trim2() { + return (value) => value.trim(); + } + exports2.trim = trim2; + function findClosing2(value, start) { + let depth = 0; + for (let i = start, count = value.length; i < count; i++) { + if (value[i] === ">") { + if (!depth) { + return i; + } + depth--; + } else if (value[i] === "<") { + depth++; + } + } + throw new Error(`Unable to find closing matching <> on '${value}' (start ${start})`); + } + exports2.findClosing = findClosing2; + function alias2(src, dest, withChecks = true) { + const from2 = new RegExp(`(^${src}|${BOX_PRECEDING2.map((box) => `\\${box}${src}`).join("|")})`, "g"); + const to2 = (src2) => { + from2.lastIndex = 0; + return withChecks && BOX_PRECEDING2.includes(src2[0]) ? `${src2[0]}${dest}` : dest; + }; + return (value) => value.replace(from2, to2); + } + exports2.alias = alias2; + function cleanupCompact2() { + return (value) => { + if (value.includes(" as HasCompact")) { + for (let i = 0, count = value.length; i < count; i++) { + if (value[i] === "<") { + const end = findClosing2(value, i + 1) - 14; + if (value.substring(end, end + 14) === " as HasCompact") { + value = `Compact<${value.substring(i + 1, end)}>`; + } + } + } + } + return value; + }; + } + exports2.cleanupCompact = cleanupCompact2; + function flattenSingleTuple2() { + const from1 = /,\)/g; + const from2 = /\(([^,]+)\)/; + return (value) => { + from1.lastIndex = 0; + return value.replace(from1, ")").replace(from2, "$1"); + }; + } + exports2.flattenSingleTuple = flattenSingleTuple2; + function replaceTagWith2(value, matcher, replacer3) { + let index = -1; + while (true) { + index = value.indexOf(matcher, index + 1); + if (index === -1) { + return value; + } + const start = index + matcher.length; + const end = findClosing2(value, start); + value = `${value.substring(0, index)}${replacer3(value.substring(start, end))}${value.substring(end + 1)}`; + } + } + function removeExtensions2(type, isSized) { + return (value) => { + for (let i = 0, count = BOUNDED2.length; i < count; i++) { + const tag = BOUNDED2[i]; + value = replaceTagWith2(value, `${type}${tag}<`, (v) => { + const parts = v.split(",").map((s) => s.trim()).filter((s) => s); + if (isSized) { + parts.pop(); + } + return `${tag}<${parts.join(",")}>`; + }); + } + return value; + }; + } + exports2.removeExtensions = removeExtensions2; + function removeColons2() { + return (value) => { + let index = 0; + while (index !== -1) { + index = value.indexOf("::"); + if (index === 0) { + value = value.substring(2); + } else if (index !== -1) { + let start = index; + while (start !== -1 && !BOX_PRECEDING2.includes(value[start])) { + start--; + } + value = `${value.substring(0, start + 1)}${value.substring(index + 2)}`; + } + } + return value; + }; + } + exports2.removeColons = removeColons2; + function removeGenerics2() { + return (value) => { + for (let i = 0, count = value.length; i < count; i++) { + if (value[i] === "<") { + const box = ALLOWED_BOXES2.find((box2) => { + const start = i - box2.length; + return start >= 0 && value.substring(start, i) === box2 && (start === 0 || BOX_PRECEDING2.includes(value[start - 1])); + }); + if (!box) { + const end = findClosing2(value, i + 1); + value = `${value.substring(0, i)}${value.substring(end + 1)}`; + } + } + } + return value; + }; + } + exports2.removeGenerics = removeGenerics2; + function removePairOf2() { + const replacer3 = (v) => `(${v},${v})`; + return (value) => replaceTagWith2(value, "PairOf<", replacer3); + } + exports2.removePairOf = removePairOf2; + function removeTraits2() { + const from1 = /\s/g; + const from2 = /(T|Self)::/g; + const from3 = /<(T|Self)asTrait>::/g; + const from4 = /::/g; + const from5 = //g; + const from6 = /::Type/g; + return (value) => { + from1.lastIndex = 0; + from2.lastIndex = 0; + from3.lastIndex = 0; + from4.lastIndex = 0; + from5.lastIndex = 0; + from6.lastIndex = 0; + return value.replace(from1, "").replace(from2, "").replace(from3, "").replace(from4, "").replace(from5, "Lookup").replace(from6, ""); + }; + } + exports2.removeTraits = removeTraits2; + function removeWrap2(check) { + const replacer3 = (v) => v; + return (value) => replaceTagWith2(value, check, replacer3); + } + exports2.removeWrap = removeWrap2; + var sanitizeMap2 = /* @__PURE__ */ new Map(); + function sanitize2(value) { + const startValue = value.toString(); + const memoized2 = sanitizeMap2.get(startValue); + if (memoized2) { + return memoized2; + } + let result = startValue; + for (let i = 0, count = mappings2.length; i < count; i++) { + result = mappings2[i](result); + } + sanitizeMap2.set(startValue, result); + return result; + } + exports2.sanitize = sanitize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/sortValues.js + var require_sortValues = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/sortValues.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sortMap = exports2.sortSet = exports2.sortAsc = void 0; + var util_1 = require_cjs3(); + function isArrayLike3(arg) { + return arg instanceof Uint8Array || Array.isArray(arg); + } + function isEnum2(arg) { + return (0, util_1.isCodec)(arg) && (0, util_1.isNumber)(arg.index) && (0, util_1.isCodec)(arg.value); + } + function isOption2(arg) { + return (0, util_1.isCodec)(arg) && (0, util_1.isBoolean)(arg.isSome) && (0, util_1.isCodec)(arg.value); + } + function isNumberLike2(arg) { + return (0, util_1.isNumber)(arg) || (0, util_1.isBn)(arg) || (0, util_1.isBigInt)(arg); + } + function sortArray2(a, b) { + let sortRes = 0; + const minLen = Math.min(a.length, b.length); + for (let i = 0; i < minLen; ++i) { + sortRes = sortAsc2(a[i], b[i]); + if (sortRes !== 0) { + return sortRes; + } + } + return a.length - b.length; + } + function checkForDuplicates2(container, seen, arg) { + if ((0, util_1.isCodec)(arg)) { + const hex8 = arg.toHex(); + if (seen.has(hex8)) { + throw new Error(`Duplicate value in ${container}: ${(0, util_1.stringify)(arg)}`); + } + seen.add(hex8); + } + return true; + } + function sortAsc2(a, b) { + if (isNumberLike2(a) && isNumberLike2(b)) { + return (0, util_1.bnToBn)(a).cmp((0, util_1.bnToBn)(b)); + } else if (a instanceof Map && b instanceof Map) { + return sortAsc2(Array.from(a.values()), Array.from(b.values())); + } else if (isEnum2(a) && isEnum2(b)) { + return sortAsc2(a.index, b.index) || sortAsc2(a.value, b.value); + } else if (isOption2(a) && isOption2(b)) { + return sortAsc2(a.isNone ? 0 : 1, b.isNone ? 0 : 1) || sortAsc2(a.value, b.value); + } else if (isArrayLike3(a) && isArrayLike3(b)) { + return sortArray2(a, b); + } else if ((0, util_1.isCodec)(a) && (0, util_1.isCodec)(b)) { + return sortAsc2(a.toU8a(true), b.toU8a(true)); + } + throw new Error(`Attempting to sort unrecognized values: ${(0, util_1.stringify)(a)} (typeof ${typeof a}) <-> ${(0, util_1.stringify)(b)} (typeof ${typeof b})`); + } + exports2.sortAsc = sortAsc2; + function sortSet2(set2) { + const seen = /* @__PURE__ */ new Set(); + return new Set(Array.from(set2).filter((value) => checkForDuplicates2("BTreeSet", seen, value)).sort(sortAsc2)); + } + exports2.sortSet = sortSet2; + function sortMap2(map2) { + const seen = /* @__PURE__ */ new Set(); + return new Map(Array.from(map2.entries()).filter(([key2]) => checkForDuplicates2("BTreeMap", seen, key2)).sort(([keyA], [keyB]) => sortAsc2(keyA, keyB))); + } + exports2.sortMap = sortMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/toConstructors.js + var require_toConstructors = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/toConstructors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapToTypeMap = exports2.typesToConstructors = exports2.typeToConstructor = void 0; + function typeToConstructor2(registry, type) { + return typeof type === "function" ? type : registry.createClassUnsafe(type); + } + exports2.typeToConstructor = typeToConstructor2; + function typesToConstructors2(registry, types2) { + const count = types2.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = typeToConstructor2(registry, types2[i]); + } + return result; + } + exports2.typesToConstructors = typesToConstructors2; + function mapToTypeMap2(registry, input) { + const entries = Object.entries(input); + const count = entries.length; + const output4 = [new Array(count), new Array(count)]; + for (let i = 0; i < count; i++) { + output4[1][i] = entries[i][0]; + output4[0][i] = typeToConstructor2(registry, entries[i][1]); + } + return output4; + } + exports2.mapToTypeMap = mapToTypeMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/typesToMap.js + var require_typesToMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/typesToMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesToMap = void 0; + function typesToMap2(registry, [Types, keys]) { + const result = {}; + for (let i = 0, count = keys.length; i < count; i++) { + result[keys[i]] = registry.getClassName(Types[i]) || new Types[i](registry).toRawType(); + } + return result; + } + exports2.typesToMap = typesToMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/utils/index.js + var require_utils5 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/utils/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesToMap = exports2.typeToConstructor = exports2.typesToConstructors = exports2.mapToTypeMap = exports2.sortSet = exports2.sortMap = exports2.sortAsc = exports2.sanitize = exports2.decodeU8aVec = exports2.decodeU8aStruct = exports2.decodeU8a = exports2.compareSet = exports2.compareMap = exports2.compareArray = void 0; + var compareArray_js_1 = require_compareArray(); + Object.defineProperty(exports2, "compareArray", { enumerable: true, get: function() { + return compareArray_js_1.compareArray; + } }); + var compareMap_js_1 = require_compareMap(); + Object.defineProperty(exports2, "compareMap", { enumerable: true, get: function() { + return compareMap_js_1.compareMap; + } }); + var compareSet_js_1 = require_compareSet(); + Object.defineProperty(exports2, "compareSet", { enumerable: true, get: function() { + return compareSet_js_1.compareSet; + } }); + var decodeU8a_js_1 = require_decodeU8a(); + Object.defineProperty(exports2, "decodeU8a", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8a; + } }); + Object.defineProperty(exports2, "decodeU8aStruct", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8aStruct; + } }); + Object.defineProperty(exports2, "decodeU8aVec", { enumerable: true, get: function() { + return decodeU8a_js_1.decodeU8aVec; + } }); + var sanitize_js_1 = require_sanitize(); + Object.defineProperty(exports2, "sanitize", { enumerable: true, get: function() { + return sanitize_js_1.sanitize; + } }); + var sortValues_js_1 = require_sortValues(); + Object.defineProperty(exports2, "sortAsc", { enumerable: true, get: function() { + return sortValues_js_1.sortAsc; + } }); + Object.defineProperty(exports2, "sortMap", { enumerable: true, get: function() { + return sortValues_js_1.sortMap; + } }); + Object.defineProperty(exports2, "sortSet", { enumerable: true, get: function() { + return sortValues_js_1.sortSet; + } }); + var toConstructors_js_1 = require_toConstructors(); + Object.defineProperty(exports2, "mapToTypeMap", { enumerable: true, get: function() { + return toConstructors_js_1.mapToTypeMap; + } }); + Object.defineProperty(exports2, "typesToConstructors", { enumerable: true, get: function() { + return toConstructors_js_1.typesToConstructors; + } }); + Object.defineProperty(exports2, "typeToConstructor", { enumerable: true, get: function() { + return toConstructors_js_1.typeToConstructor; + } }); + var typesToMap_js_1 = require_typesToMap(); + Object.defineProperty(exports2, "typesToMap", { enumerable: true, get: function() { + return typesToMap_js_1.typesToMap; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Compact.js + var require_Compact = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Compact.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Compact = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function decodeCompact2(registry, Type2, value) { + if ((0, util_1.isU8a)(value)) { + const [decodedLength, bn2] = (value[0] & 3) < 3 ? (0, util_1.compactFromU8aLim)(value) : (0, util_1.compactFromU8a)(value); + return [new Type2(registry, bn2), decodedLength]; + } else if (value instanceof Compact2) { + const raw = value.unwrap(); + return raw instanceof Type2 ? [raw, 0] : [new Type2(registry, raw), 0]; + } else if (value instanceof Type2) { + return [value, 0]; + } + return [new Type2(registry, value), 0]; + } + var Compact2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__Type; + __internal__raw; + constructor(registry, Type2, value = 0, { definition, setDefinition = util_1.identity } = {}) { + this.registry = registry; + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + const [raw, decodedLength] = decodeCompact2(registry, this.__internal__Type, value); + this.initialU8aLength = decodedLength; + this.__internal__raw = raw; + } + static with(Type2) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Compact2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + bitLength() { + return this.__internal__raw.bitLength(); + } + eq(other) { + return this.__internal__raw.eq(other instanceof Compact2 ? other.__internal__raw : other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toBigInt() { + return this.__internal__raw.toBigInt(); + } + toBn() { + return this.__internal__raw.toBn(); + } + toHex(isLe) { + return this.__internal__raw.toHex(isLe); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.__internal__raw.toJSON(); + } + toNumber() { + return this.__internal__raw.toNumber(); + } + toPrimitive(disableAscii) { + return this.__internal__raw.toPrimitive(disableAscii); + } + toRawType() { + return `Compact<${this.registry.getClassName(this.__internal__Type) || this.__internal__raw.toRawType()}>`; + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(_isBare) { + return (0, util_1.compactToU8a)(this.__internal__raw.toBn()); + } + unwrap() { + return this.__internal__raw; + } + }; + exports2.Compact = Compact2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/DoNotConstruct.js + var require_DoNotConstruct = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/DoNotConstruct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DoNotConstruct = void 0; + var DoNotConstruct2 = class { + registry; + createdAtHash; + isStorageFallback; + __internal__neverError; + constructor(registry, typeName = "DoNotConstruct") { + this.registry = registry; + this.__internal__neverError = new Error(`DoNotConstruct: Cannot construct unknown type ${typeName}`); + throw this.__internal__neverError; + } + static with(typeName) { + return class extends DoNotConstruct2 { + constructor(registry) { + super(registry, typeName); + } + }; + } + get encodedLength() { + throw this.__internal__neverError; + } + get hash() { + throw this.__internal__neverError; + } + get isEmpty() { + throw this.__internal__neverError; + } + eq() { + throw this.__internal__neverError; + } + inspect() { + throw this.__internal__neverError; + } + toHex() { + throw this.__internal__neverError; + } + toHuman() { + throw this.__internal__neverError; + } + toJSON() { + throw this.__internal__neverError; + } + toPrimitive() { + throw this.__internal__neverError; + } + toRawType() { + throw this.__internal__neverError; + } + toString() { + throw this.__internal__neverError; + } + toU8a() { + throw this.__internal__neverError; + } + }; + exports2.DoNotConstruct = DoNotConstruct2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Null.js + var require_Null = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Null.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Null = void 0; + var util_1 = require_cjs3(); + var Null2 = class { + encodedLength = 0; + isEmpty = true; + registry; + createdAtHash; + initialU8aLength = 0; + isStorageFallback; + constructor(registry) { + this.registry = registry; + } + get hash() { + throw new Error(".hash is not implemented on Null"); + } + eq(other) { + return other instanceof Null2 || (0, util_1.isNull)(other); + } + inspect() { + return {}; + } + toHex() { + return "0x"; + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return null; + } + toPrimitive() { + return null; + } + toRawType() { + return "Null"; + } + toString() { + return ""; + } + toU8a(_isBare) { + return new Uint8Array(); + } + }; + exports2.Null = Null2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Enum.js + var require_Enum = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Enum.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Enum = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var Null_js_1 = require_Null(); + function isRustEnum3(def) { + const defValues = Object.values(def); + if (defValues.some((v) => (0, util_1.isNumber)(v))) { + if (!defValues.every((v) => (0, util_1.isNumber)(v) && v >= 0 && v <= 255)) { + throw new Error("Invalid number-indexed enum definition"); + } + return false; + } + return true; + } + function extractDef2(registry, _def) { + const def = {}; + let isBasic; + let isIndexed; + if (Array.isArray(_def)) { + for (let i = 0, count = _def.length; i < count; i++) { + def[_def[i]] = { Type: Null_js_1.Null, index: i }; + } + isBasic = true; + isIndexed = false; + } else if (isRustEnum3(_def)) { + const [Types, keys] = (0, index_js_1.mapToTypeMap)(registry, _def); + for (let i = 0, count = keys.length; i < count; i++) { + def[keys[i]] = { Type: Types[i], index: i }; + } + isBasic = !Object.values(def).some(({ Type: Type2 }) => Type2 !== Null_js_1.Null); + isIndexed = false; + } else { + const entries = Object.entries(_def); + for (let i = 0, count = entries.length; i < count; i++) { + const [key2, index] = entries[i]; + def[key2] = { Type: Null_js_1.Null, index }; + } + isBasic = true; + isIndexed = true; + } + return { + def, + isBasic, + isIndexed + }; + } + function getEntryType2(def, checkIdx) { + const values = Object.values(def); + for (let i = 0, count = values.length; i < count; i++) { + const { Type: Type2, index } = values[i]; + if (index === checkIdx) { + return Type2; + } + } + throw new Error(`Unable to create Enum via index ${checkIdx}, in ${Object.keys(def).join(", ")}`); + } + function createFromU8a2(registry, def, index, value) { + const Type2 = getEntryType2(def, index); + return { + index, + value: new Type2(registry, value) + }; + } + function createFromValue2(registry, def, index = 0, value) { + const Type2 = getEntryType2(def, index); + return { + index, + value: value instanceof Type2 ? value : new Type2(registry, value) + }; + } + function decodeFromJSON2(registry, def, key2, value) { + const keys = Object.keys(def).map((k) => k.toLowerCase()); + const keyLower = key2.toLowerCase(); + const index = keys.indexOf(keyLower); + if (index === -1) { + throw new Error(`Cannot map Enum JSON, unable to find '${key2}' in ${keys.join(", ")}`); + } + try { + return createFromValue2(registry, def, Object.values(def)[index].index, value); + } catch (error) { + throw new Error(`Enum(${key2}):: ${error.message}`); + } + } + function decodeEnum2(registry, def, value, index) { + if ((0, util_1.isNumber)(index)) { + return createFromValue2(registry, def, index, value); + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + if (u8a.length) { + return createFromU8a2(registry, def, u8a[0], u8a.subarray(1)); + } + } else if (value instanceof Enum2) { + return createFromValue2(registry, def, value.index, value.value); + } else if ((0, util_1.isNumber)(value)) { + return createFromValue2(registry, def, value); + } else if ((0, util_1.isString)(value)) { + return decodeFromJSON2(registry, def, value.toString()); + } else if ((0, util_1.isObject)(value)) { + const key2 = Object.keys(value)[0]; + return decodeFromJSON2(registry, def, key2, value[key2]); + } + return createFromValue2(registry, def, Object.values(def)[0].index); + } + var Enum2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__def; + __internal__entryIndex; + __internal__indexes; + __internal__isBasic; + __internal__isIndexed; + __internal__raw; + constructor(registry, Types, value, index, { definition, setDefinition = util_1.identity } = {}) { + const { def, isBasic, isIndexed } = definition || setDefinition(extractDef2(registry, Types)); + const decoded = (0, util_1.isU8a)(value) && value.length && !(0, util_1.isNumber)(index) ? createFromU8a2(registry, def, value[0], value.subarray(1)) : decodeEnum2(registry, def, value, index); + this.registry = registry; + this.__internal__def = def; + this.__internal__isBasic = isBasic; + this.__internal__isIndexed = isIndexed; + this.__internal__indexes = Object.values(def).map(({ index: index2 }) => index2); + this.__internal__entryIndex = this.__internal__indexes.indexOf(decoded.index); + this.__internal__raw = decoded.value; + if (this.__internal__raw.initialU8aLength) { + this.initialU8aLength = 1 + this.__internal__raw.initialU8aLength; + } + } + static with(Types) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Enum2 { + static { + const keys = Array.isArray(Types) ? Types : Object.keys(Types); + const count = keys.length; + const asKeys = new Array(count); + const isKeys = new Array(count); + for (let i = 0; i < count; i++) { + const name6 = (0, util_1.stringPascalCase)(keys[i]); + asKeys[i] = `as${name6}`; + isKeys[i] = `is${name6}`; + } + (0, util_1.objectProperties)(this.prototype, isKeys, (_, i, self2) => self2.type === keys[i]); + (0, util_1.objectProperties)(this.prototype, asKeys, (k, i, self2) => { + if (self2.type !== keys[i]) { + throw new Error(`Cannot convert '${self2.type}' via ${k}`); + } + return self2.value; + }); + } + constructor(registry, value, index) { + super(registry, Types, value, index, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return 1 + this.__internal__raw.encodedLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get index() { + return this.__internal__indexes[this.__internal__entryIndex]; + } + get inner() { + return this.__internal__raw; + } + get isBasic() { + return this.__internal__isBasic; + } + get isEmpty() { + return this.__internal__raw.isEmpty; + } + get isNone() { + return this.__internal__raw instanceof Null_js_1.Null; + } + get defIndexes() { + return this.__internal__indexes; + } + get defKeys() { + return Object.keys(this.__internal__def); + } + get type() { + return this.defKeys[this.__internal__entryIndex]; + } + get value() { + return this.__internal__raw; + } + eq(other) { + if ((0, util_1.isU8a)(other)) { + return !this.toU8a().some((entry, index) => entry !== other[index]); + } else if ((0, util_1.isNumber)(other)) { + return this.toNumber() === other; + } else if (this.__internal__isBasic && (0, util_1.isString)(other)) { + return this.type === other; + } else if ((0, util_1.isHex)(other)) { + return this.toHex() === other; + } else if (other instanceof Enum2) { + return this.index === other.index && this.value.eq(other.value); + } else if ((0, util_1.isObject)(other)) { + return this.value.eq(other[this.type]); + } + return this.value.eq(other); + } + inspect() { + if (this.__internal__isBasic) { + return { outer: [new Uint8Array([this.index])] }; + } + const { inner, outer = [] } = this.__internal__raw.inspect(); + return { + inner, + outer: [new Uint8Array([this.index]), ...outer] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + return this.__internal__isBasic || this.isNone ? this.type : { [this.type]: this.__internal__raw.toHuman(isExtended, disableAscii) }; + } + toJSON() { + return this.__internal__isBasic ? this.type : { [(0, util_1.stringCamelCase)(this.type)]: this.__internal__raw.toJSON() }; + } + toNumber() { + return this.index; + } + toPrimitive(disableAscii) { + return this.__internal__isBasic ? this.type : { [(0, util_1.stringCamelCase)(this.type)]: this.__internal__raw.toPrimitive(disableAscii) }; + } + _toRawStruct() { + if (this.__internal__isBasic) { + return this.__internal__isIndexed ? this.defKeys.reduce((out, key2, index) => { + out[key2] = this.__internal__indexes[index]; + return out; + }, {}) : this.defKeys; + } + const entries = Object.entries(this.__internal__def); + return (0, index_js_1.typesToMap)(this.registry, entries.reduce((out, [key2, { Type: Type2 }], i) => { + out[0][i] = Type2; + out[1][i] = key2; + return out; + }, [new Array(entries.length), new Array(entries.length)])); + } + toRawType() { + return (0, util_1.stringify)({ _enum: this._toRawStruct() }); + } + toString() { + return this.isNone ? this.type : (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + return isBare ? this.__internal__raw.toU8a(isBare) : (0, util_1.u8aConcatStrict)([ + new Uint8Array([this.index]), + this.__internal__raw.toU8a(isBare) + ]); + } + }; + exports2.Enum = Enum2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Int.js + var require_Int2 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Int.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Int = void 0; + var Int_js_1 = require_Int(); + var Int2 = class extends Int_js_1.AbstractInt { + constructor(registry, value = 0, bitLength) { + super(registry, value, bitLength, true); + } + static with(bitLength, typeName) { + return class extends Int2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + }; + exports2.Int = Int2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Option.js + var require_Option = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Option.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Option = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var Null_js_1 = require_Null(); + var None2 = class extends Null_js_1.Null { + toRawType() { + return "None"; + } + }; + function decodeOption2(registry, Type2, value) { + if (value instanceof Type2) { + return value; + } else if (value instanceof Option2) { + if (value.value instanceof Type2) { + return value.value; + } else if (value.isNone) { + return new None2(registry); + } + return new Type2(registry, value.value); + } else if ((0, util_1.isNull)(value) || (0, util_1.isUndefined)(value) || value === "0x" || value instanceof None2) { + return new None2(registry); + } else if ((0, util_1.isU8a)(value)) { + return !value.length || value[0] === 0 ? new None2(registry) : new Type2(registry, value.subarray(1)); + } + return new Type2(registry, value); + } + var Option2 = class { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__Type; + __internal__raw; + constructor(registry, typeName, value, { definition, setDefinition = util_1.identity } = {}) { + const Type2 = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, typeName)); + const decoded = (0, util_1.isU8a)(value) && value.length && !(0, util_1.isCodec)(value) ? value[0] === 0 ? new None2(registry) : new Type2(registry, value.subarray(1)) : decodeOption2(registry, Type2, value); + this.registry = registry; + this.__internal__Type = Type2; + this.__internal__raw = decoded; + if (decoded?.initialU8aLength) { + this.initialU8aLength = 1 + decoded.initialU8aLength; + } + } + static with(Type2) { + let definition; + const setDefinition = (d) => { + definition = d; + return d; + }; + return class extends Option2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + return 1 + this.__internal__raw.encodedLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isNone; + } + get isNone() { + return this.__internal__raw instanceof None2; + } + get isSome() { + return !this.isNone; + } + get value() { + return this.__internal__raw; + } + eq(other) { + if (other instanceof Option2) { + return this.isSome === other.isSome && this.value.eq(other.value); + } + return this.value.eq(other); + } + inspect() { + if (this.isNone) { + return { outer: [new Uint8Array([0])] }; + } + const { inner, outer = [] } = this.__internal__raw.inspect(); + return { + inner, + outer: [new Uint8Array([1]), ...outer] + }; + } + toHex() { + return this.isNone ? "0x" : (0, util_1.u8aToHex)(this.toU8a().subarray(1)); + } + toHuman(isExtended, disableAscii) { + return this.__internal__raw.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.isNone ? null : this.__internal__raw.toJSON(); + } + toPrimitive(disableAscii) { + return this.isNone ? null : this.__internal__raw.toPrimitive(disableAscii); + } + toRawType(isBare) { + const wrapped = this.registry.getClassName(this.__internal__Type) || new this.__internal__Type(this.registry).toRawType(); + return isBare ? wrapped : `Option<${wrapped}>`; + } + toString() { + return this.__internal__raw.toString(); + } + toU8a(isBare) { + if (isBare) { + return this.__internal__raw.toU8a(true); + } + const u8a = new Uint8Array(this.encodedLength); + if (this.isSome) { + u8a.set([1]); + u8a.set(this.__internal__raw.toU8a(), 1); + } + return u8a; + } + unwrap() { + if (this.isNone) { + throw new Error("Option: unwrapping a None value"); + } + return this.__internal__raw; + } + unwrapOr(defaultValue) { + return this.isSome ? this.unwrap() : defaultValue; + } + unwrapOrDefault() { + return this.isSome ? this.unwrap() : new this.__internal__Type(this.registry); + } + }; + exports2.Option = Option2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Result.js + var require_Result = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Result.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Result = void 0; + var Enum_js_1 = require_Enum(); + var Result2 = class extends Enum_js_1.Enum { + constructor(registry, Ok2, Err, value) { + super(registry, { Ok: Ok2, Err }, value); + } + static with(Types) { + return class extends Result2 { + constructor(registry, value) { + super(registry, Types.Ok, Types.Err, value); + } + }; + } + get asErr() { + if (!this.isErr) { + throw new Error("Cannot extract Err value from Ok result, check isErr first"); + } + return this.value; + } + get asOk() { + if (!this.isOk) { + throw new Error("Cannot extract Ok value from Err result, check isOk first"); + } + return this.value; + } + get isEmpty() { + return this.isOk && this.value.isEmpty; + } + get isErr() { + return !this.isOk; + } + get isOk() { + return this.index === 0; + } + toRawType() { + const Types = this._toRawStruct(); + return `Result<${Types.Ok},${Types.Err}>`; + } + }; + exports2.Result = Result2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Tuple.js + var require_Tuple = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Tuple.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Tuple = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + function decodeTuple2(registry, result, value, Classes) { + if (Array.isArray(value)) { + const Types = Classes[0]; + for (let i = 0, count = Types.length; i < count; i++) { + try { + const entry = value?.[i]; + result[i] = entry instanceof Types[i] ? entry : new Types[i](registry, entry); + } catch (error) { + throw new Error(`Tuple: failed on ${i}:: ${error.message}`); + } + } + return [result, 0]; + } else if ((0, util_1.isHex)(value)) { + return (0, index_js_1.decodeU8a)(registry, result, (0, util_1.u8aToU8a)(value), Classes); + } else if (!value || !result.length) { + const Types = Classes[0]; + for (let i = 0, count = Types.length; i < count; i++) { + result[i] = new Types[i](registry); + } + return [result, 0]; + } + throw new Error(`Expected array input to Tuple decoding, found ${typeof value}: ${(0, util_1.stringify)(value)}`); + } + var Tuple2 = class extends Array_js_1.AbstractArray { + __internal__Types; + constructor(registry, Types, value, { definition, setDefinition = util_1.identity } = {}) { + const Classes = definition || setDefinition(Array.isArray(Types) ? [(0, index_js_1.typesToConstructors)(registry, Types), []] : (0, util_1.isFunction)(Types) || (0, util_1.isString)(Types) ? [[(0, index_js_1.typeToConstructor)(registry, Types)], []] : (0, index_js_1.mapToTypeMap)(registry, Types)); + super(registry, Classes[0].length); + this.initialU8aLength = ((0, util_1.isU8a)(value) ? (0, index_js_1.decodeU8a)(registry, this, value, Classes) : decodeTuple2(registry, this, value, Classes))[1]; + this.__internal__Types = Classes; + } + static with(Types) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Tuple2 { + constructor(registry, value) { + super(registry, Types, value, { definition, setDefinition }); + } + }; + } + get encodedLength() { + let total = 0; + for (let i = 0, count = this.length; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + get Types() { + return this.__internal__Types[1].length ? this.__internal__Types[1] : this.__internal__Types[0].map((T) => new T(this.registry).toRawType()); + } + inspect() { + return { + inner: this.inspectInner() + }; + } + toRawType() { + const types2 = this.__internal__Types[0].map((T) => this.registry.getClassName(T) || new T(this.registry).toRawType()); + return `(${types2.join(",")})`; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + return (0, util_1.u8aConcatStrict)(this.toU8aInner(isBare)); + } + }; + exports2.Tuple = Tuple2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/UInt.js + var require_UInt = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/UInt.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UInt = void 0; + var Int_js_1 = require_Int(); + var UInt2 = class extends Int_js_1.AbstractInt { + static with(bitLength, typeName) { + return class extends UInt2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + }; + exports2.UInt = UInt2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/Vec.js + var require_Vec = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/Vec.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Vec = exports2.decodeVec = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + var MAX_LENGTH4 = 64 * 1024; + var l15 = (0, util_1.logger)("Vec"); + function decodeVecLength2(value) { + if (Array.isArray(value)) { + return [value, value.length, 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + const [startAt, length] = (0, util_1.compactFromU8aLim)(u8a); + if (length > MAX_LENGTH4) { + throw new Error(`Vec length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } + return [u8a, length, startAt]; + } else if (!value) { + return [null, 0, 0]; + } + throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof value}: ${(0, util_1.stringify)(value)}`); + } + function decodeVec2(registry, result, value, startAt, Type2) { + if (Array.isArray(value)) { + const count = result.length; + for (let i = 0; i < count; i++) { + const entry = value[i]; + try { + result[i] = entry instanceof Type2 ? entry : new Type2(registry, entry); + } catch (error) { + l15.error(`Unable to decode on index ${i}`, error.message); + throw error; + } + } + return [0, 0]; + } else if (!value) { + return [0, 0]; + } + return (0, index_js_1.decodeU8aVec)(registry, result, (0, util_1.u8aToU8a)(value), startAt, Type2); + } + exports2.decodeVec = decodeVec2; + var Vec2 = class extends Array_js_1.AbstractArray { + __internal__Type; + constructor(registry, Type2, value = [], { definition, setDefinition = util_1.identity } = {}) { + const [decodeFrom, length, startAt] = decodeVecLength2(value); + super(registry, length); + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + this.initialU8aLength = ((0, util_1.isU8a)(decodeFrom) ? (0, index_js_1.decodeU8aVec)(registry, this, decodeFrom, startAt, this.__internal__Type) : decodeVec2(registry, this, decodeFrom, startAt, this.__internal__Type))[0]; + } + static with(Type2) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Vec2 { + constructor(registry, value) { + super(registry, Type2, value, { definition, setDefinition }); + } + }; + } + get Type() { + return this.__internal__Type.name; + } + indexOf(other) { + const check = other instanceof this.__internal__Type ? other : new this.__internal__Type(this.registry, other); + for (let i = 0, count = this.length; i < count; i++) { + if (check.eq(this[i])) { + return i; + } + } + return -1; + } + toRawType() { + return `Vec<${this.registry.getClassName(this.__internal__Type) || new this.__internal__Type(this.registry).toRawType()}>`; + } + }; + exports2.Vec = Vec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/VecAny.js + var require_VecAny = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/VecAny.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecAny = void 0; + var Array_js_1 = require_Array(); + var VecAny = class extends Array_js_1.AbstractArray { + toRawType() { + return "Vec"; + } + }; + exports2.VecAny = VecAny; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/VecFixed.js + var require_VecFixed = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/VecFixed.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecFixed = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var index_js_1 = require_utils5(); + var Vec_js_1 = require_Vec(); + var VecFixed2 = class extends Array_js_1.AbstractArray { + __internal__Type; + constructor(registry, Type2, length, value = [], { definition, setDefinition = util_1.identity } = {}) { + super(registry, length); + this.__internal__Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type2)); + this.initialU8aLength = ((0, util_1.isU8a)(value) ? (0, index_js_1.decodeU8aVec)(registry, this, value, 0, this.__internal__Type) : (0, Vec_js_1.decodeVec)(registry, this, value, 0, this.__internal__Type))[1]; + } + static with(Type2, length) { + let definition; + const setDefinition = (d) => definition = d; + return class extends VecFixed2 { + constructor(registry, value) { + super(registry, Type2, length, value, { definition, setDefinition }); + } + }; + } + get Type() { + return new this.__internal__Type(this.registry).toRawType(); + } + get encodedLength() { + let total = 0; + for (let i = 0, count = this.length; i < count; i++) { + total += this[i].encodedLength; + } + return total; + } + inspect() { + return { + inner: this.inspectInner() + }; + } + toU8a() { + const encoded = this.toU8aInner(); + return encoded.length ? (0, util_1.u8aConcatStrict)(encoded) : new Uint8Array([]); + } + toRawType() { + return `[${this.Type};${this.length}]`; + } + }; + exports2.VecFixed = VecFixed2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/base/index.js + var require_base = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/base/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.VecFixed = exports2.VecAny = exports2.Vec = exports2.UInt = exports2.Tuple = exports2.Result = exports2.Option = exports2.Null = exports2.Int = exports2.Enum = exports2.DoNotConstruct = exports2.Compact = void 0; + var Compact_js_1 = require_Compact(); + Object.defineProperty(exports2, "Compact", { enumerable: true, get: function() { + return Compact_js_1.Compact; + } }); + var DoNotConstruct_js_1 = require_DoNotConstruct(); + Object.defineProperty(exports2, "DoNotConstruct", { enumerable: true, get: function() { + return DoNotConstruct_js_1.DoNotConstruct; + } }); + var Enum_js_1 = require_Enum(); + Object.defineProperty(exports2, "Enum", { enumerable: true, get: function() { + return Enum_js_1.Enum; + } }); + var Int_js_1 = require_Int2(); + Object.defineProperty(exports2, "Int", { enumerable: true, get: function() { + return Int_js_1.Int; + } }); + var Null_js_1 = require_Null(); + Object.defineProperty(exports2, "Null", { enumerable: true, get: function() { + return Null_js_1.Null; + } }); + var Option_js_1 = require_Option(); + Object.defineProperty(exports2, "Option", { enumerable: true, get: function() { + return Option_js_1.Option; + } }); + var Result_js_1 = require_Result(); + Object.defineProperty(exports2, "Result", { enumerable: true, get: function() { + return Result_js_1.Result; + } }); + var Tuple_js_1 = require_Tuple(); + Object.defineProperty(exports2, "Tuple", { enumerable: true, get: function() { + return Tuple_js_1.Tuple; + } }); + var UInt_js_1 = require_UInt(); + Object.defineProperty(exports2, "UInt", { enumerable: true, get: function() { + return UInt_js_1.UInt; + } }); + var Vec_js_1 = require_Vec(); + Object.defineProperty(exports2, "Vec", { enumerable: true, get: function() { + return Vec_js_1.Vec; + } }); + var VecAny_js_1 = require_VecAny(); + Object.defineProperty(exports2, "VecAny", { enumerable: true, get: function() { + return VecAny_js_1.VecAny; + } }); + var VecFixed_js_1 = require_VecFixed(); + Object.defineProperty(exports2, "VecFixed", { enumerable: true, get: function() { + return VecFixed_js_1.VecFixed; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Raw.js + var require_Raw = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Raw.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Raw = void 0; + var util_1 = require_cjs3(); + var Raw2 = class extends Uint8Array { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + static get [Symbol.species]() { + return Uint8Array; + } + constructor(registry, value, initialU8aLength) { + super((0, util_1.u8aToU8a)(value)); + this.registry = registry; + this.initialU8aLength = initialU8aLength; + } + get encodedLength() { + return this.length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isAscii() { + return (0, util_1.isAscii)(this); + } + get isEmpty() { + return !this.length || (0, util_1.isUndefined)(this.find((b) => !!b)); + } + get isUtf8() { + return (0, util_1.isUtf8)(this); + } + bitLength() { + return this.length * 8; + } + eq(other) { + if (other instanceof Uint8Array) { + return this.length === other.length && !this.some((b, index) => b !== other[index]); + } + return this.eq((0, util_1.u8aToU8a)(other)); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this); + } + toHuman(_isExtended, disableAscii) { + return this.toPrimitive(disableAscii); + } + toJSON() { + return this.toHex(); + } + toPrimitive(disableAscii) { + if (!disableAscii && this.isAscii) { + const text2 = this.toUtf8(); + if ((0, util_1.isAscii)(text2)) { + return text2; + } + } + return this.toJSON(); + } + toRawType() { + return "Raw"; + } + toString() { + return this.toHex(); + } + toU8a(_isBare) { + return Uint8Array.from(this); + } + toUtf8() { + if (!this.isUtf8) { + throw new Error("The character sequence is not a valid Utf8 string"); + } + return (0, util_1.u8aToString)(this); + } + }; + exports2.Raw = Raw2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BitVec.js + var require_BitVec = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BitVec.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BitVec = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + function decodeBitVecU8a2(value) { + if (!value?.length) { + return [0, new Uint8Array()]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + Math.ceil(length / 8); + if (total > value.length) { + throw new Error(`BitVec: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [length, value.subarray(offset, total)]; + } + function decodeBitVec2(value) { + if (Array.isArray(value) || (0, util_1.isString)(value)) { + const u8a = (0, util_1.u8aToU8a)(value); + return [u8a.length / 8, u8a]; + } + return decodeBitVecU8a2(value); + } + var BitVec2 = class extends Raw_js_1.Raw { + __internal__decodedLength; + __internal__isMsb; + constructor(registry, value, isMsb = false) { + const [decodedLength, u8a] = decodeBitVec2(value); + super(registry, u8a); + this.__internal__decodedLength = decodedLength; + this.__internal__isMsb = isMsb; + } + get encodedLength() { + return this.length + (0, util_1.compactToU8a)(this.__internal__decodedLength).length; + } + inspect() { + return { + outer: [(0, util_1.compactToU8a)(this.__internal__decodedLength), super.toU8a()] + }; + } + toBoolArray() { + const map2 = [...this.toU8a(true)].map((v) => [ + !!(v & 128), + !!(v & 64), + !!(v & 32), + !!(v & 16), + !!(v & 8), + !!(v & 4), + !!(v & 2), + !!(v & 1) + ]); + const count = map2.length; + const result = new Array(8 * count); + for (let i = 0; i < count; i++) { + const off = i * 8; + const v = map2[i]; + for (let j10 = 0; j10 < 8; j10++) { + result[off + j10] = this.__internal__isMsb ? v[j10] : v[7 - j10]; + } + } + return result; + } + toHuman() { + return `0b${[...this.toU8a(true)].map((d) => `00000000${d.toString(2)}`.slice(-8)).map((s) => this.__internal__isMsb ? s : s.split("").reverse().join("")).join("_")}`; + } + toRawType() { + return "BitVec"; + } + toU8a(isBare) { + const bitVec = super.toU8a(isBare); + return isBare ? bitVec : (0, util_1.u8aConcatStrict)([(0, util_1.compactToU8a)(this.__internal__decodedLength), bitVec]); + } + }; + exports2.BitVec = BitVec2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Struct.js + var require_Struct = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Struct.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Struct = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function noopSetDefinition2(d) { + return d; + } + function decodeStructFromObject2(registry, [Types, keys], value, jsonMap) { + let jsonObj; + const typeofArray = Array.isArray(value); + const typeofMap = value instanceof Map; + const count = keys.length; + if (!typeofArray && !typeofMap && !(0, util_1.isObject)(value)) { + throw new Error(`Struct: Cannot decode value ${(0, util_1.stringify)(value)} (typeof ${typeof value}), expected an input object, map or array`); + } else if (typeofArray && value.length !== count) { + throw new Error(`Struct: Unable to map ${(0, util_1.stringify)(value)} array to object with known keys ${keys.join(", ")}`); + } + const raw = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = keys[i]; + const jsonKey = jsonMap.get(key2) || key2; + const Type2 = Types[i]; + let assign; + try { + if (typeofArray) { + assign = value[i]; + } else if (typeofMap) { + assign = jsonKey && value.get(jsonKey); + } else { + assign = jsonKey && value[jsonKey]; + if ((0, util_1.isUndefined)(assign)) { + if ((0, util_1.isUndefined)(jsonObj)) { + const entries = Object.entries(value); + jsonObj = {}; + for (let e = 0, ecount = entries.length; e < ecount; e++) { + jsonObj[(0, util_1.stringCamelCase)(entries[e][0])] = entries[e][1]; + } + } + assign = jsonKey && jsonObj[jsonKey]; + } + } + raw[i] = [ + key2, + assign instanceof Type2 ? assign : new Type2(registry, assign) + ]; + } catch (error) { + let type = Type2.name; + try { + type = new Type2(registry).toRawType(); + } catch { + } + throw new Error(`Struct: failed on ${jsonKey}: ${type}:: ${error.message}`); + } + } + return [raw, 0]; + } + var Struct2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__jsonMap; + __internal__Types; + constructor(registry, Types, value, jsonMap = /* @__PURE__ */ new Map(), { definition, setDefinition = noopSetDefinition2 } = {}) { + const typeMap = definition || setDefinition((0, index_js_1.mapToTypeMap)(registry, Types)); + const [decoded, decodedLength] = (0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? (0, index_js_1.decodeU8aStruct)(registry, new Array(typeMap[0].length), (0, util_1.u8aToU8a)(value), typeMap) : value instanceof Struct2 ? [value, 0] : decodeStructFromObject2(registry, typeMap, value || {}, jsonMap); + super(decoded); + this.initialU8aLength = decodedLength; + this.registry = registry; + this.__internal__jsonMap = jsonMap; + this.__internal__Types = typeMap; + } + static with(Types, jsonMap) { + let definition; + const setDefinition = (d) => definition = d; + return class extends Struct2 { + static { + const keys = Object.keys(Types); + (0, util_1.objectProperties)(this.prototype, keys, (k, _, self2) => self2.get(k)); + } + constructor(registry, value) { + super(registry, Types, value, jsonMap, { definition, setDefinition }); + } + }; + } + get defKeys() { + return this.__internal__Types[1]; + } + get isEmpty() { + for (const v of this.values()) { + if (!v.isEmpty) { + return false; + } + } + return true; + } + get encodedLength() { + let total = 0; + for (const v of this.values()) { + total += v.encodedLength; + } + return total; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get Type() { + const result = {}; + const [Types, keys] = this.__internal__Types; + for (let i = 0, count = keys.length; i < count; i++) { + result[keys[i]] = new Types[i](this.registry).toRawType(); + } + return result; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + get(key2) { + return super.get(key2); + } + getAtIndex(index) { + return this.toArray()[index]; + } + getT(key2) { + return super.get(key2); + } + inspect(isBare) { + const inner = []; + for (const [k, v] of this.entries()) { + inner.push({ + ...v.inspect(!isBare || (0, util_1.isBoolean)(isBare) ? isBare : isBare[k]), + name: (0, util_1.stringCamelCase)(k) + }); + } + return { + inner + }; + } + toArray() { + return [...this.values()]; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k] = v.toHuman(isExtended, disableAscii); + } + return json; + } + toJSON() { + const json = {}; + for (const [k, v] of this.entries()) { + json[this.__internal__jsonMap.get(k) || k] = v.toJSON(); + } + return json; + } + toPrimitive(disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k] = v.toPrimitive(disableAscii); + } + return json; + } + toRawType() { + return (0, util_1.stringify)((0, index_js_1.typesToMap)(this.registry, this.__internal__Types)); + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + for (const [k, v] of this.entries()) { + encoded.push(v.toU8a(!isBare || (0, util_1.isBoolean)(isBare) ? isBare : isBare[k])); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.Struct = Struct2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Map.js + var require_Map = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Map.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecMap = void 0; + var util_1 = require_cjs3(); + var Array_js_1 = require_Array(); + var Enum_js_1 = require_Enum(); + var Raw_js_1 = require_Raw(); + var Struct_js_1 = require_Struct(); + var index_js_1 = require_utils5(); + var l15 = (0, util_1.logger)("Map"); + function decodeMapFromU8a2(registry, KeyClass, ValClass, u8a) { + const output4 = /* @__PURE__ */ new Map(); + const [offset, count] = (0, util_1.compactFromU8aLim)(u8a); + const types2 = []; + for (let i = 0; i < count; i++) { + types2.push(KeyClass, ValClass); + } + const [values, decodedLength] = (0, index_js_1.decodeU8a)(registry, new Array(types2.length), u8a.subarray(offset), [types2, []]); + for (let i = 0, count2 = values.length; i < count2; i += 2) { + output4.set(values[i], values[i + 1]); + } + return [KeyClass, ValClass, output4, offset + decodedLength]; + } + function decodeMapFromMap2(registry, KeyClass, ValClass, value) { + const output4 = /* @__PURE__ */ new Map(); + for (const [key2, val] of value.entries()) { + const isComplex = KeyClass.prototype instanceof Array_js_1.AbstractArray || KeyClass.prototype instanceof Struct_js_1.Struct || KeyClass.prototype instanceof Enum_js_1.Enum; + try { + output4.set(key2 instanceof KeyClass ? key2 : new KeyClass(registry, isComplex && typeof key2 === "string" ? JSON.parse(key2) : key2), val instanceof ValClass ? val : new ValClass(registry, val)); + } catch (error) { + l15.error("Failed to decode key or value:", error.message); + throw error; + } + } + return [KeyClass, ValClass, output4, 0]; + } + function decodeMap2(registry, keyType, valType, value) { + const KeyClass = (0, index_js_1.typeToConstructor)(registry, keyType); + const ValClass = (0, index_js_1.typeToConstructor)(registry, valType); + if (!value) { + return [KeyClass, ValClass, /* @__PURE__ */ new Map(), 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeMapFromU8a2(registry, KeyClass, ValClass, (0, util_1.u8aToU8a)(value)); + } else if (value instanceof Map) { + return decodeMapFromMap2(registry, KeyClass, ValClass, value); + } else if ((0, util_1.isObject)(value)) { + return decodeMapFromMap2(registry, KeyClass, ValClass, new Map(Object.entries(value))); + } + throw new Error("Map: cannot decode type"); + } + var CodecMap2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__KeyClass; + __internal__ValClass; + __internal__type; + constructor(registry, keyType, valType, rawValue, type = "HashMap") { + const [KeyClass, ValClass, decoded, decodedLength] = decodeMap2(registry, keyType, valType, rawValue); + super(type === "BTreeMap" ? (0, index_js_1.sortMap)(decoded) : decoded); + this.registry = registry; + this.initialU8aLength = decodedLength; + this.__internal__KeyClass = KeyClass; + this.__internal__ValClass = ValClass; + this.__internal__type = type; + } + get encodedLength() { + let len = (0, util_1.compactToU8a)(this.size).length; + for (const [k, v] of this.entries()) { + len += k.encodedLength + v.encodedLength; + } + return len; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + inspect() { + const inner = []; + for (const [k, v] of this.entries()) { + inner.push(k.inspect()); + inner.push(v.inspect()); + } + return { + inner, + outer: [(0, util_1.compactToU8a)(this.size)] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k instanceof Raw_js_1.Raw && !disableAscii && k.isAscii ? k.toUtf8() : k.toString()] = v.toHuman(isExtended, disableAscii); + } + return json; + } + toJSON() { + const json = {}; + for (const [k, v] of this.entries()) { + json[k.toString()] = v.toJSON(); + } + return json; + } + toPrimitive(disableAscii) { + const json = {}; + for (const [k, v] of this.entries()) { + json[k instanceof Raw_js_1.Raw && !disableAscii && k.isAscii ? k.toUtf8() : k.toString()] = v.toPrimitive(disableAscii); + } + return json; + } + toRawType() { + return `${this.__internal__type}<${this.registry.getClassName(this.__internal__KeyClass) || new this.__internal__KeyClass(this.registry).toRawType()},${this.registry.getClassName(this.__internal__ValClass) || new this.__internal__ValClass(this.registry).toRawType()}>`; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + if (!isBare) { + encoded.push((0, util_1.compactToU8a)(this.size)); + } + for (const [k, v] of this.entries()) { + encoded.push(k.toU8a(isBare), v.toU8a(isBare)); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.CodecMap = CodecMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BTreeMap.js + var require_BTreeMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BTreeMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BTreeMap = void 0; + var Map_js_1 = require_Map(); + var BTreeMap2 = class extends Map_js_1.CodecMap { + static with(keyType, valType) { + return class extends BTreeMap2 { + constructor(registry, value) { + super(registry, keyType, valType, value, "BTreeMap"); + } + }; + } + }; + exports2.BTreeMap = BTreeMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/BTreeSet.js + var require_BTreeSet = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/BTreeSet.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.BTreeSet = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + var l15 = (0, util_1.logger)("BTreeSet"); + function decodeSetFromU8a2(registry, ValClass, u8a) { + const output4 = /* @__PURE__ */ new Set(); + const [offset, count] = (0, util_1.compactFromU8aLim)(u8a); + const result = new Array(count); + const [decodedLength] = (0, index_js_1.decodeU8aVec)(registry, result, u8a, offset, ValClass); + for (let i = 0; i < count; i++) { + output4.add(result[i]); + } + return [ValClass, output4, decodedLength]; + } + function decodeSetFromSet2(registry, ValClass, value) { + const output4 = /* @__PURE__ */ new Set(); + value.forEach((val) => { + try { + output4.add(val instanceof ValClass ? val : new ValClass(registry, val)); + } catch (error) { + l15.error("Failed to decode key or value:", error.message); + throw error; + } + }); + return [ValClass, output4, 0]; + } + function decodeSet3(registry, valType, value) { + const ValClass = (0, index_js_1.typeToConstructor)(registry, valType); + if (!value) { + return [ValClass, /* @__PURE__ */ new Set(), 0]; + } else if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeSetFromU8a2(registry, ValClass, (0, util_1.u8aToU8a)(value)); + } else if (Array.isArray(value) || value instanceof Set) { + return decodeSetFromSet2(registry, ValClass, value); + } + throw new Error("BTreeSet: cannot decode type"); + } + var BTreeSet2 = class extends Set { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__ValClass; + constructor(registry, valType, rawValue) { + const [ValClass, values, decodedLength] = decodeSet3(registry, valType, rawValue); + super((0, index_js_1.sortSet)(values)); + this.registry = registry; + this.initialU8aLength = decodedLength; + this.__internal__ValClass = ValClass; + } + static with(valType) { + return class extends BTreeSet2 { + constructor(registry, value) { + super(registry, valType, value); + } + }; + } + get encodedLength() { + let len = (0, util_1.compactToU8a)(this.size).length; + for (const v of this.values()) { + len += v.encodedLength; + } + return len; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + get strings() { + return [...super.values()].map((v) => v.toString()); + } + eq(other) { + return (0, index_js_1.compareSet)(this, other); + } + inspect() { + const inner = []; + for (const v of this.values()) { + inner.push(v.inspect()); + } + return { + inner, + outer: [(0, util_1.compactToU8a)(this.size)] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman(isExtended, disableAscii) { + const json = []; + for (const v of this.values()) { + json.push(v.toHuman(isExtended, disableAscii)); + } + return json; + } + toJSON() { + const json = []; + for (const v of this.values()) { + json.push(v.toJSON()); + } + return json; + } + toRawType() { + return `BTreeSet<${this.registry.getClassName(this.__internal__ValClass) || new this.__internal__ValClass(this.registry).toRawType()}>`; + } + toPrimitive(disableAscii) { + const json = []; + for (const v of this.values()) { + json.push(v.toPrimitive(disableAscii)); + } + return json; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(isBare) { + const encoded = []; + if (!isBare) { + encoded.push((0, util_1.compactToU8a)(this.size)); + } + for (const v of this.values()) { + encoded.push(v.toU8a(isBare)); + } + return (0, util_1.u8aConcatStrict)(encoded); + } + }; + exports2.BTreeSet = BTreeSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Bytes.js + var require_Bytes = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Bytes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Bytes = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var MAX_LENGTH4 = 10 * 1024 * 1024; + function decodeBytesU8a2(value) { + if (!value.length) { + return [new Uint8Array(), 0]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + length; + if (length > MAX_LENGTH4) { + throw new Error(`Bytes length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } else if (total > value.length) { + throw new Error(`Bytes: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [value.subarray(offset, total), total]; + } + var Bytes2 = class extends Raw_js_1.Raw { + constructor(registry, value) { + const [u8a, decodedLength] = (0, util_1.isU8a)(value) && !(value instanceof Raw_js_1.Raw) ? decodeBytesU8a2(value) : Array.isArray(value) || (0, util_1.isString)(value) ? [(0, util_1.u8aToU8a)(value), 0] : [value, 0]; + super(registry, u8a, decodedLength); + } + get encodedLength() { + return this.length + (0, util_1.compactToU8a)(this.length).length; + } + inspect(isBare) { + const clength = (0, util_1.compactToU8a)(this.length); + return { + outer: isBare ? [super.toU8a()] : this.length ? [clength, super.toU8a()] : [clength] + }; + } + toRawType() { + return "Bytes"; + } + toU8a(isBare) { + return isBare ? super.toU8a(isBare) : (0, util_1.compactAddLength)(this); + } + }; + exports2.Bytes = Bytes2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/HashMap.js + var require_HashMap = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/HashMap.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HashMap = void 0; + var Map_js_1 = require_Map(); + var HashMap2 = class extends Map_js_1.CodecMap { + static with(keyType, valType) { + return class extends HashMap2 { + constructor(registry, value) { + super(registry, keyType, valType, value); + } + }; + } + }; + exports2.HashMap = HashMap2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Linkage.js + var require_Linkage = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Linkage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LinkageResult = exports2.Linkage = void 0; + var Option_js_1 = require_Option(); + var Tuple_js_1 = require_Tuple(); + var Vec_js_1 = require_Vec(); + var Struct_js_1 = require_Struct(); + var EMPTY2 = new Uint8Array(); + var Linkage = class extends Struct_js_1.Struct { + constructor(registry, Type2, value) { + super(registry, { + previous: Option_js_1.Option.with(Type2), + next: Option_js_1.Option.with(Type2) + }, value); + } + static withKey(Type2) { + return class extends Linkage { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get previous() { + return this.get("previous"); + } + get next() { + return this.get("next"); + } + toRawType() { + return `Linkage<${this.next.toRawType(true)}>`; + } + toU8a(isBare) { + return this.isEmpty ? EMPTY2 : super.toU8a(isBare); + } + }; + exports2.Linkage = Linkage; + var LinkageResult = class extends Tuple_js_1.Tuple { + constructor(registry, [TypeKey, keys], [TypeValue, values]) { + super(registry, { + Keys: Vec_js_1.Vec.with(TypeKey), + Values: Vec_js_1.Vec.with(TypeValue) + }, [keys, values]); + } + }; + exports2.LinkageResult = LinkageResult; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Bool.js + var require_Bool = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Bool.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bool = void 0; + var util_1 = require_cjs3(); + var bool3 = class extends Boolean { + registry; + createdAtHash; + initialU8aLength = 1; + isStorageFallback; + constructor(registry, value = false) { + super((0, util_1.isU8a)(value) ? value[0] === 1 : value instanceof Boolean ? value.valueOf() : !!value); + this.registry = registry; + } + get encodedLength() { + return 1 | 0; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.isFalse; + } + get isFalse() { + return !this.isTrue; + } + get isTrue() { + return this.valueOf(); + } + eq(other) { + return this.valueOf() === (other instanceof Boolean ? other.valueOf() : other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.valueOf(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return "bool"; + } + toString() { + return this.toJSON().toString(); + } + toU8a(_isBare) { + return new Uint8Array([this.valueOf() ? 1 : 0]); + } + }; + exports2.bool = bool3; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/OptionBool.js + var require_OptionBool = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/OptionBool.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OptionBool = void 0; + var util_1 = require_cjs3(); + var Option_js_1 = require_Option(); + var Bool_js_1 = require_Bool(); + function decodeU8a8(registry, value) { + return value[0] === 0 ? null : new Bool_js_1.bool(registry, value[0] === 1); + } + var OptionBool2 = class extends Option_js_1.Option { + constructor(registry, value) { + super(registry, Bool_js_1.bool, (0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : value); + this.initialU8aLength = 1; + } + get encodedLength() { + return 1 | 0; + } + get isFalse() { + return this.isSome ? !this.value.valueOf() : false; + } + get isTrue() { + return this.isSome ? this.value.valueOf() : false; + } + inspect() { + return { outer: [this.toU8a()] }; + } + toRawType(isBare) { + return isBare ? "bool" : "Option"; + } + toU8a(isBare) { + if (isBare) { + return super.toU8a(true); + } + return this.isSome ? new Uint8Array([this.isTrue ? 1 : 2]) : new Uint8Array([0]); + } + }; + exports2.OptionBool = OptionBool2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Range.js + var require_Range = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Range.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Range = void 0; + var Tuple_js_1 = require_Tuple(); + var Range2 = class extends Tuple_js_1.Tuple { + __internal__rangeName; + constructor(registry, Type2, value, { rangeName = "Range" } = {}) { + super(registry, [Type2, Type2], value); + this.__internal__rangeName = rangeName; + } + static with(Type2) { + return class extends Range2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get start() { + return this[0]; + } + get end() { + return this[1]; + } + toRawType() { + return `${this.__internal__rangeName}<${this.start.toRawType()}>`; + } + }; + exports2.Range = Range2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/RangeInclusive.js + var require_RangeInclusive = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/RangeInclusive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RangeInclusive = void 0; + var Range_js_1 = require_Range(); + var RangeInclusive2 = class extends Range_js_1.Range { + constructor(registry, Type2, value) { + super(registry, Type2, value, { rangeName: "RangeInclusive" }); + } + static with(Type2) { + return class extends RangeInclusive2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + }; + exports2.RangeInclusive = RangeInclusive2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Text.js + var require_Text = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Text.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Text = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var MAX_LENGTH4 = 128 * 1024; + function decodeText2(value) { + if ((0, util_1.isU8a)(value)) { + if (!value.length) { + return ["", 0]; + } + if (value instanceof Raw_js_1.Raw) { + return [(0, util_1.u8aToString)(value), 0]; + } + const [offset, length] = (0, util_1.compactFromU8aLim)(value); + const total = offset + length; + if (length > MAX_LENGTH4) { + throw new Error(`Text: length ${length.toString()} exceeds ${MAX_LENGTH4}`); + } else if (total > value.length) { + throw new Error(`Text: required length less than remainder, expected at least ${total}, found ${value.length}`); + } + return [(0, util_1.u8aToString)(value.subarray(offset, total)), total]; + } else if ((0, util_1.isHex)(value)) { + return [(0, util_1.u8aToString)((0, util_1.hexToU8a)(value)), 0]; + } + return [value ? value.toString() : "", 0]; + } + var Text2 = class extends String { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__override = null; + constructor(registry, value) { + const [str2, decodedLength] = decodeText2(value); + super(str2); + this.registry = registry; + this.initialU8aLength = decodedLength; + } + get encodedLength() { + return this.toU8a().length; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.length === 0; + } + get length() { + return super.length; + } + eq(other) { + return (0, util_1.isString)(other) ? this.toString() === other.toString() : false; + } + inspect() { + const value = (0, util_1.stringToU8a)(super.toString()); + return { + outer: value.length ? [(0, util_1.compactToU8a)(value.length), value] : [(0, util_1.compactToU8a)(value.length)] + }; + } + setOverride(override) { + this.__internal__override = override; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a(true)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return "Text"; + } + toString() { + return this.__internal__override || super.toString(); + } + toU8a(isBare) { + const encoded = (0, util_1.stringToU8a)(super.toString()); + return isBare ? encoded : (0, util_1.compactAddLength)(encoded); + } + }; + exports2.Text = Text2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/Type.js + var require_Type = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/Type.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Type = void 0; + var Text_js_1 = require_Text(); + var index_js_1 = require_utils5(); + var Type2 = class extends Text_js_1.Text { + constructor(registry, value = "") { + super(registry, value); + this.setOverride((0, index_js_1.sanitize)(this.toString())); + } + toRawType() { + return "Type"; + } + }; + exports2.Type = Type2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/U8aFixed.js + var require_U8aFixed = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/U8aFixed.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.U8aFixed = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + function decodeU8aFixed2(value, bitLength) { + const u8a = (0, util_1.u8aToU8a)(value); + const byteLength = bitLength / 8; + if (!u8a.length) { + return [new Uint8Array(byteLength), 0]; + } + if ((0, util_1.isU8a)(value) ? u8a.length < byteLength : u8a.length !== byteLength) { + throw new Error(`Expected input with ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`); + } + return [u8a.subarray(0, byteLength), byteLength]; + } + var U8aFixed2 = class extends Raw_js_1.Raw { + constructor(registry, value = new Uint8Array(), bitLength = 256) { + const [u8a, decodedLength] = decodeU8aFixed2(value, bitLength); + super(registry, u8a, decodedLength); + } + static with(bitLength, typeName) { + return class extends U8aFixed2 { + constructor(registry, value) { + super(registry, value, bitLength); + } + toRawType() { + return typeName || super.toRawType(); + } + }; + } + toRawType() { + return `[u8;${this.length}]`; + } + }; + exports2.U8aFixed = U8aFixed2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/WrapperKeepOpaque.js + var require_WrapperKeepOpaque = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/WrapperKeepOpaque.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperKeepOpaque = void 0; + var util_1 = require_cjs3(); + var Raw_js_1 = require_Raw(); + var index_js_1 = require_utils5(); + var Bytes_js_1 = require_Bytes(); + function decodeRaw2(registry, typeName, value) { + const Type2 = (0, index_js_1.typeToConstructor)(registry, typeName); + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + try { + const [, u8a] = (0, util_1.isHex)(value) ? [0, (0, util_1.u8aToU8a)(value)] : value instanceof Raw_js_1.Raw ? [0, value.subarray()] : (0, util_1.compactStripLength)(value); + return [Type2, new Type2(registry, u8a), value]; + } catch { + return [Type2, null, value]; + } + } + const instance = new Type2(registry, value); + return [Type2, instance, (0, util_1.compactAddLength)(instance.toU8a())]; + } + var WrapperKeepOpaque2 = class extends Bytes_js_1.Bytes { + __internal__Type; + __internal__decoded; + __internal__opaqueName; + constructor(registry, typeName, value, { opaqueName = "WrapperKeepOpaque" } = {}) { + const [Type2, decoded, u8a] = decodeRaw2(registry, typeName, value); + super(registry, u8a); + this.__internal__Type = Type2; + this.__internal__decoded = decoded; + this.__internal__opaqueName = opaqueName; + } + static with(Type2) { + return class extends WrapperKeepOpaque2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get isDecoded() { + return !!this.__internal__decoded; + } + inspect() { + return this.__internal__decoded ? { + inner: [this.__internal__decoded.inspect()], + outer: [(0, util_1.compactToU8a)(this.length)] + } : { + outer: [(0, util_1.compactToU8a)(this.length), this.toU8a(true)] + }; + } + toHuman(isExtended, disableAscii) { + return this.__internal__decoded ? this.__internal__decoded.toHuman(isExtended, disableAscii) : super.toHuman(isExtended, disableAscii); + } + toPrimitive(disableAscii) { + return this.__internal__decoded ? this.__internal__decoded.toPrimitive(disableAscii) : super.toPrimitive(disableAscii); + } + toRawType() { + return `${this.__internal__opaqueName}<${this.registry.getClassName(this.__internal__Type) || (this.__internal__decoded ? this.__internal__decoded.toRawType() : new this.__internal__Type(this.registry).toRawType())}>`; + } + toString() { + return this.__internal__decoded ? this.__internal__decoded.toString() : super.toString(); + } + unwrap() { + if (!this.__internal__decoded) { + throw new Error(`${this.__internal__opaqueName}: unwrapping an undecodable value`); + } + return this.__internal__decoded; + } + }; + exports2.WrapperKeepOpaque = WrapperKeepOpaque2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/WrapperOpaque.js + var require_WrapperOpaque = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/WrapperOpaque.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = void 0; + var WrapperKeepOpaque_js_1 = require_WrapperKeepOpaque(); + var WrapperOpaque2 = class extends WrapperKeepOpaque_js_1.WrapperKeepOpaque { + constructor(registry, typeName, value) { + super(registry, typeName, value, { opaqueName: "WrapperOpaque" }); + } + static with(Type2) { + return class extends WrapperOpaque2 { + constructor(registry, value) { + super(registry, Type2, value); + } + }; + } + get inner() { + return this.unwrap(); + } + }; + exports2.WrapperOpaque = WrapperOpaque2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/extended/index.js + var require_extended = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/extended/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = exports2.WrapperKeepOpaque = exports2.U8aFixed = exports2.Type = exports2.RangeInclusive = exports2.Range = exports2.OptionBool = exports2.Map = exports2.CodecMap = exports2.Linkage = exports2.HashMap = exports2.Bytes = exports2.BTreeSet = exports2.BTreeMap = exports2.BitVec = void 0; + var BitVec_js_1 = require_BitVec(); + Object.defineProperty(exports2, "BitVec", { enumerable: true, get: function() { + return BitVec_js_1.BitVec; + } }); + var BTreeMap_js_1 = require_BTreeMap(); + Object.defineProperty(exports2, "BTreeMap", { enumerable: true, get: function() { + return BTreeMap_js_1.BTreeMap; + } }); + var BTreeSet_js_1 = require_BTreeSet(); + Object.defineProperty(exports2, "BTreeSet", { enumerable: true, get: function() { + return BTreeSet_js_1.BTreeSet; + } }); + var Bytes_js_1 = require_Bytes(); + Object.defineProperty(exports2, "Bytes", { enumerable: true, get: function() { + return Bytes_js_1.Bytes; + } }); + var HashMap_js_1 = require_HashMap(); + Object.defineProperty(exports2, "HashMap", { enumerable: true, get: function() { + return HashMap_js_1.HashMap; + } }); + var Linkage_js_1 = require_Linkage(); + Object.defineProperty(exports2, "Linkage", { enumerable: true, get: function() { + return Linkage_js_1.Linkage; + } }); + var Map_js_1 = require_Map(); + Object.defineProperty(exports2, "CodecMap", { enumerable: true, get: function() { + return Map_js_1.CodecMap; + } }); + Object.defineProperty(exports2, "Map", { enumerable: true, get: function() { + return Map_js_1.CodecMap; + } }); + var OptionBool_js_1 = require_OptionBool(); + Object.defineProperty(exports2, "OptionBool", { enumerable: true, get: function() { + return OptionBool_js_1.OptionBool; + } }); + var Range_js_1 = require_Range(); + Object.defineProperty(exports2, "Range", { enumerable: true, get: function() { + return Range_js_1.Range; + } }); + var RangeInclusive_js_1 = require_RangeInclusive(); + Object.defineProperty(exports2, "RangeInclusive", { enumerable: true, get: function() { + return RangeInclusive_js_1.RangeInclusive; + } }); + var Type_js_1 = require_Type(); + Object.defineProperty(exports2, "Type", { enumerable: true, get: function() { + return Type_js_1.Type; + } }); + var U8aFixed_js_1 = require_U8aFixed(); + Object.defineProperty(exports2, "U8aFixed", { enumerable: true, get: function() { + return U8aFixed_js_1.U8aFixed; + } }); + var WrapperKeepOpaque_js_1 = require_WrapperKeepOpaque(); + Object.defineProperty(exports2, "WrapperKeepOpaque", { enumerable: true, get: function() { + return WrapperKeepOpaque_js_1.WrapperKeepOpaque; + } }); + var WrapperOpaque_js_1 = require_WrapperOpaque(); + Object.defineProperty(exports2, "WrapperOpaque", { enumerable: true, get: function() { + return WrapperOpaque_js_1.WrapperOpaque; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Date.js + var require_Date = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Date.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecDate = void 0; + var util_1 = require_cjs3(); + var BITLENGTH = 64; + var U8A_OPTS = { bitLength: BITLENGTH, isLe: true }; + function decodeDate(value) { + if ((0, util_1.isU8a)(value)) { + value = (0, util_1.u8aToBn)(value.subarray(0, BITLENGTH / 8)); + } else if (value instanceof Date) { + return value; + } else if ((0, util_1.isString)(value)) { + value = new util_1.BN(value.toString(), 10, "le"); + } + return new Date((0, util_1.bnToBn)(value).toNumber() * 1e3); + } + var CodecDate = class extends Date { + registry; + createdAtHash; + initialU8aLength = BITLENGTH / 8; + isStorageFallback; + constructor(registry, value = 0) { + super(decodeDate(value)); + this.registry = registry; + } + get encodedLength() { + return BITLENGTH / 8; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.getTime() === 0; + } + bitLength() { + return BITLENGTH; + } + eq(other) { + return decodeDate(other).getTime() === this.getTime(); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toBigInt() { + return BigInt(this.toNumber()); + } + toBn() { + return new util_1.BN(this.toNumber()); + } + toHex(isLe = false) { + return (0, util_1.bnToHex)(this.toBn(), { + bitLength: BITLENGTH, + isLe, + isNegative: false + }); + } + toHuman() { + return this.toISOString(); + } + toJSON() { + return this.toNumber(); + } + toNumber() { + return Math.ceil(this.getTime() / 1e3); + } + toPrimitive() { + return this.toNumber(); + } + toRawType() { + return "Moment"; + } + toString() { + return super.toString(); + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this.toNumber(), U8A_OPTS); + } + }; + exports2.CodecDate = CodecDate; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Float.js + var require_Float = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Float.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Float = void 0; + var util_1 = require_cjs3(); + var Float2 = class extends Number { + encodedLength; + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__bitLength; + constructor(registry, value, { bitLength = 32 } = {}) { + super((0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? value.length === 0 ? 0 : (0, util_1.u8aToFloat)((0, util_1.u8aToU8a)(value), { bitLength }) : value || 0); + this.__internal__bitLength = bitLength; + this.encodedLength = bitLength / 8; + this.initialU8aLength = this.encodedLength; + this.registry = registry; + } + static with(bitLength) { + return class extends Float2 { + constructor(registry, value) { + super(registry, value, { bitLength }); + } + }; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.valueOf() === 0; + } + eq(other) { + return this.valueOf() === Number(other); + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toString(); + } + toJSON() { + return this.toHex(); + } + toNumber() { + return this.valueOf(); + } + toPrimitive() { + return this.toNumber(); + } + toRawType() { + return `f${this.__internal__bitLength}`; + } + toU8a(_isBare) { + return (0, util_1.floatToU8a)(this, { + bitLength: this.__internal__bitLength + }); + } + }; + exports2.Float = Float2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Json.js + var require_Json = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Json.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Json = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function decodeJson2(value) { + return Object.entries(value || {}); + } + var Json2 = class extends Map { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + constructor(registry, value) { + const decoded = decodeJson2(value); + super(decoded); + this.registry = registry; + (0, util_1.objectProperties)(this, decoded.map(([k]) => k), (k) => this.get(k)); + } + get encodedLength() { + return 0 | 0; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return [...this.keys()].length === 0; + } + eq(other) { + return (0, index_js_1.compareMap)(this, other); + } + getT(key2) { + return this.get(key2); + } + inspect() { + throw new Error("Unimplemented"); + } + toHex() { + throw new Error("Unimplemented"); + } + toHuman() { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = (0, util_1.isFunction)(value?.toHuman) ? value.toHuman() : value; + return json; + }, {}); + } + toJSON() { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = value; + return json; + }, {}); + } + toPrimitive(disableAscii) { + return [...this.entries()].reduce((json, [key2, value]) => { + json[key2] = (0, util_1.isFunction)(value.toPrimitive) ? value.toPrimitive(disableAscii) : value; + return json; + }, {}); + } + toRawType() { + return "Json"; + } + toString() { + return (0, util_1.stringify)(this.toJSON()); + } + toU8a(_isBare) { + throw new Error("Unimplemented"); + } + }; + exports2.Json = Json2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/Set.js + var require_Set = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/Set.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CodecSet = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_utils5(); + function encodeSet2(setValues, values) { + const encoded = new util_1.BN(0); + for (let i = 0, count = values.length; i < count; i++) { + encoded.ior((0, util_1.bnToBn)(setValues[values[i]] || 0)); + } + return encoded; + } + function decodeSetArray2(setValues, values) { + const count = values.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = values[i]; + if ((0, util_1.isUndefined)(setValues[key2])) { + throw new Error(`Set: Invalid key '${key2}' passed to Set, allowed ${Object.keys(setValues).join(", ")}`); + } + result[i] = key2; + } + return result; + } + function decodeSetNumber2(setValues, _value) { + const bn2 = (0, util_1.bnToBn)(_value); + const keys = Object.keys(setValues); + const result = []; + for (let i = 0, count = keys.length; i < count; i++) { + const key2 = keys[i]; + if (bn2.and((0, util_1.bnToBn)(setValues[key2])).eq((0, util_1.bnToBn)(setValues[key2]))) { + result.push(key2); + } + } + const computed = encodeSet2(setValues, result); + if (!bn2.eq(computed)) { + throw new Error(`Set: Mismatch decoding '${bn2.toString()}', computed as '${computed.toString()}' with ${result.join(", ")}`); + } + return result; + } + function decodeSet3(setValues, value = 0, bitLength) { + if (bitLength % 8 !== 0) { + throw new Error(`Expected valid bitLength, power of 8, found ${bitLength}`); + } + const byteLength = bitLength / 8; + if ((0, util_1.isU8a)(value)) { + return value.length === 0 ? [] : decodeSetNumber2(setValues, (0, util_1.u8aToBn)(value.subarray(0, byteLength), { isLe: true })); + } else if ((0, util_1.isString)(value)) { + return decodeSet3(setValues, (0, util_1.u8aToU8a)(value), byteLength); + } else if (value instanceof Set || Array.isArray(value)) { + const input = Array.isArray(value) ? value : [...value.values()]; + return decodeSetArray2(setValues, input); + } + return decodeSetNumber2(setValues, value); + } + var CodecSet2 = class extends Set { + registry; + createdAtHash; + initialU8aLength; + isStorageFallback; + __internal__allowed; + __internal__byteLength; + constructor(registry, setValues, value, bitLength = 8) { + super(decodeSet3(setValues, value, bitLength)); + this.registry = registry; + this.__internal__allowed = setValues; + this.__internal__byteLength = bitLength / 8; + } + static with(values, bitLength) { + return class extends CodecSet2 { + static { + const keys = Object.keys(values); + const count = keys.length; + const isKeys = new Array(count); + for (let i = 0; i < count; i++) { + isKeys[i] = `is${(0, util_1.stringPascalCase)(keys[i])}`; + } + (0, util_1.objectProperties)(this.prototype, isKeys, (_, i, self2) => self2.strings.includes(keys[i])); + } + constructor(registry, value) { + super(registry, values, value, bitLength); + } + }; + } + get encodedLength() { + return this.__internal__byteLength; + } + get hash() { + return this.registry.hash(this.toU8a()); + } + get isEmpty() { + return this.size === 0; + } + get strings() { + return [...super.values()]; + } + get valueEncoded() { + return encodeSet2(this.__internal__allowed, this.strings); + } + add = (key2) => { + if (this.__internal__allowed && (0, util_1.isUndefined)(this.__internal__allowed[key2])) { + throw new Error(`Set: Invalid key '${key2}' on add`); + } + super.add(key2); + return this; + }; + eq(other) { + if (Array.isArray(other)) { + return (0, index_js_1.compareArray)(this.strings.sort(), other.sort()); + } else if (other instanceof Set) { + return this.eq([...other.values()]); + } else if ((0, util_1.isNumber)(other) || (0, util_1.isBn)(other)) { + return this.valueEncoded.eq((0, util_1.bnToBn)(other)); + } + return false; + } + inspect() { + return { + outer: [this.toU8a()] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.strings; + } + toNumber() { + return this.valueEncoded.toNumber(); + } + toPrimitive() { + return this.toJSON(); + } + toRawType() { + return (0, util_1.stringify)({ _set: this.__internal__allowed }); + } + toString() { + return `[${this.strings.join(", ")}]`; + } + toU8a(_isBare) { + return (0, util_1.bnToU8a)(this.valueEncoded, { + bitLength: this.__internal__byteLength * 8, + isLe: true + }); + } + }; + exports2.CodecSet = CodecSet2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/native/index.js + var require_native = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/native/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Text = exports2.Struct = exports2.Set = exports2.CodecSet = exports2.Raw = exports2.Json = exports2.Float = exports2.Date = exports2.CodecDate = exports2.bool = exports2.Bool = void 0; + var Bool_js_1 = require_Bool(); + Object.defineProperty(exports2, "Bool", { enumerable: true, get: function() { + return Bool_js_1.bool; + } }); + Object.defineProperty(exports2, "bool", { enumerable: true, get: function() { + return Bool_js_1.bool; + } }); + var Date_js_1 = require_Date(); + Object.defineProperty(exports2, "CodecDate", { enumerable: true, get: function() { + return Date_js_1.CodecDate; + } }); + Object.defineProperty(exports2, "Date", { enumerable: true, get: function() { + return Date_js_1.CodecDate; + } }); + var Float_js_1 = require_Float(); + Object.defineProperty(exports2, "Float", { enumerable: true, get: function() { + return Float_js_1.Float; + } }); + var Json_js_1 = require_Json(); + Object.defineProperty(exports2, "Json", { enumerable: true, get: function() { + return Json_js_1.Json; + } }); + var Raw_js_1 = require_Raw(); + Object.defineProperty(exports2, "Raw", { enumerable: true, get: function() { + return Raw_js_1.Raw; + } }); + var Set_js_1 = require_Set(); + Object.defineProperty(exports2, "CodecSet", { enumerable: true, get: function() { + return Set_js_1.CodecSet; + } }); + Object.defineProperty(exports2, "Set", { enumerable: true, get: function() { + return Set_js_1.CodecSet; + } }); + var Struct_js_1 = require_Struct(); + Object.defineProperty(exports2, "Struct", { enumerable: true, get: function() { + return Struct_js_1.Struct; + } }); + var Text_js_1 = require_Text(); + Object.defineProperty(exports2, "Text", { enumerable: true, get: function() { + return Text_js_1.Text; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/F32.js + var require_F32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/F32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.f32 = void 0; + var Float_js_1 = require_Float(); + var f322 = class extends Float_js_1.Float.with(32) { + __FloatType = "f32"; + }; + exports2.f32 = f322; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/F64.js + var require_F64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/F64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.f64 = void 0; + var Float_js_1 = require_Float(); + var f642 = class extends Float_js_1.Float.with(64) { + __FloatType = "f64"; + }; + exports2.f64 = f642; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I8.js + var require_I8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I8.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i8 = void 0; + var Int_js_1 = require_Int2(); + var i83 = class extends Int_js_1.Int.with(8) { + __IntType = "i8"; + }; + exports2.i8 = i83; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I16.js + var require_I16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I16.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i16 = void 0; + var Int_js_1 = require_Int2(); + var i162 = class extends Int_js_1.Int.with(16) { + __IntType = "i16"; + }; + exports2.i16 = i162; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I32.js + var require_I32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i32 = void 0; + var Int_js_1 = require_Int2(); + var i322 = class extends Int_js_1.Int.with(32) { + __IntType = "i32"; + }; + exports2.i32 = i322; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I64.js + var require_I64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i64 = void 0; + var Int_js_1 = require_Int2(); + var i642 = class extends Int_js_1.Int.with(64) { + __IntType = "i64"; + }; + exports2.i64 = i642; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I128.js + var require_I128 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I128.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i128 = void 0; + var Int_js_1 = require_Int2(); + var i1282 = class extends Int_js_1.Int.with(128) { + __IntType = "i128"; + }; + exports2.i128 = i1282; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/I256.js + var require_I256 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/I256.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.i256 = void 0; + var Int_js_1 = require_Int2(); + var i2562 = class extends Int_js_1.Int.with(256) { + __IntType = "i256"; + }; + exports2.i256 = i2562; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/ISize.js + var require_ISize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/ISize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isize = void 0; + var I32_js_1 = require_I32(); + var isize2 = class extends I32_js_1.i32 { + constructor(registry, value) { + super(registry, value); + throw new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly."); + } + }; + exports2.isize = isize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U8.js + var require_U8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U8.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u8 = void 0; + var UInt_js_1 = require_UInt(); + var u84 = class extends UInt_js_1.UInt.with(8) { + __UIntType = "u8"; + }; + exports2.u8 = u84; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U16.js + var require_U16 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U16.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u16 = void 0; + var UInt_js_1 = require_UInt(); + var u163 = class extends UInt_js_1.UInt.with(16) { + __UIntType = "u16"; + }; + exports2.u16 = u163; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U32.js + var require_U32 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U32.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u32 = void 0; + var UInt_js_1 = require_UInt(); + var u326 = class extends UInt_js_1.UInt.with(32) { + __UIntType = "u32"; + }; + exports2.u32 = u326; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U64.js + var require_U64 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U64.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u64 = void 0; + var UInt_js_1 = require_UInt(); + var u645 = class extends UInt_js_1.UInt.with(64) { + __UIntType = "u64"; + }; + exports2.u64 = u645; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U128.js + var require_U128 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U128.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u128 = void 0; + var UInt_js_1 = require_UInt(); + var u1282 = class extends UInt_js_1.UInt.with(128) { + __UIntType = "u128"; + }; + exports2.u128 = u1282; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/U256.js + var require_U256 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/U256.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.u256 = void 0; + var UInt_js_1 = require_UInt(); + var u2562 = class extends UInt_js_1.UInt.with(256) { + __UIntType = "u256"; + }; + exports2.u256 = u2562; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/USize.js + var require_USize = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/USize.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.usize = void 0; + var U32_js_1 = require_U32(); + var usize2 = class extends U32_js_1.u32 { + constructor(registry, value) { + super(registry, value); + throw new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly."); + } + }; + exports2.usize = usize2; + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/primitive/index.js + var require_primitive = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/primitive/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.usize = exports2.USize = exports2.u256 = exports2.U256 = exports2.u128 = exports2.U128 = exports2.u64 = exports2.U64 = exports2.u32 = exports2.U32 = exports2.u16 = exports2.U16 = exports2.u8 = exports2.U8 = exports2.isize = exports2.ISize = exports2.i256 = exports2.I256 = exports2.i128 = exports2.I128 = exports2.i64 = exports2.I64 = exports2.i32 = exports2.I32 = exports2.i16 = exports2.I16 = exports2.i8 = exports2.I8 = exports2.f64 = exports2.F64 = exports2.f32 = exports2.F32 = void 0; + var F32_js_1 = require_F32(); + Object.defineProperty(exports2, "F32", { enumerable: true, get: function() { + return F32_js_1.f32; + } }); + Object.defineProperty(exports2, "f32", { enumerable: true, get: function() { + return F32_js_1.f32; + } }); + var F64_js_1 = require_F64(); + Object.defineProperty(exports2, "F64", { enumerable: true, get: function() { + return F64_js_1.f64; + } }); + Object.defineProperty(exports2, "f64", { enumerable: true, get: function() { + return F64_js_1.f64; + } }); + var I8_js_1 = require_I8(); + Object.defineProperty(exports2, "I8", { enumerable: true, get: function() { + return I8_js_1.i8; + } }); + Object.defineProperty(exports2, "i8", { enumerable: true, get: function() { + return I8_js_1.i8; + } }); + var I16_js_1 = require_I16(); + Object.defineProperty(exports2, "I16", { enumerable: true, get: function() { + return I16_js_1.i16; + } }); + Object.defineProperty(exports2, "i16", { enumerable: true, get: function() { + return I16_js_1.i16; + } }); + var I32_js_1 = require_I32(); + Object.defineProperty(exports2, "I32", { enumerable: true, get: function() { + return I32_js_1.i32; + } }); + Object.defineProperty(exports2, "i32", { enumerable: true, get: function() { + return I32_js_1.i32; + } }); + var I64_js_1 = require_I64(); + Object.defineProperty(exports2, "I64", { enumerable: true, get: function() { + return I64_js_1.i64; + } }); + Object.defineProperty(exports2, "i64", { enumerable: true, get: function() { + return I64_js_1.i64; + } }); + var I128_js_1 = require_I128(); + Object.defineProperty(exports2, "I128", { enumerable: true, get: function() { + return I128_js_1.i128; + } }); + Object.defineProperty(exports2, "i128", { enumerable: true, get: function() { + return I128_js_1.i128; + } }); + var I256_js_1 = require_I256(); + Object.defineProperty(exports2, "I256", { enumerable: true, get: function() { + return I256_js_1.i256; + } }); + Object.defineProperty(exports2, "i256", { enumerable: true, get: function() { + return I256_js_1.i256; + } }); + var ISize_js_1 = require_ISize(); + Object.defineProperty(exports2, "ISize", { enumerable: true, get: function() { + return ISize_js_1.isize; + } }); + Object.defineProperty(exports2, "isize", { enumerable: true, get: function() { + return ISize_js_1.isize; + } }); + var U8_js_1 = require_U8(); + Object.defineProperty(exports2, "U8", { enumerable: true, get: function() { + return U8_js_1.u8; + } }); + Object.defineProperty(exports2, "u8", { enumerable: true, get: function() { + return U8_js_1.u8; + } }); + var U16_js_1 = require_U16(); + Object.defineProperty(exports2, "U16", { enumerable: true, get: function() { + return U16_js_1.u16; + } }); + Object.defineProperty(exports2, "u16", { enumerable: true, get: function() { + return U16_js_1.u16; + } }); + var U32_js_1 = require_U32(); + Object.defineProperty(exports2, "U32", { enumerable: true, get: function() { + return U32_js_1.u32; + } }); + Object.defineProperty(exports2, "u32", { enumerable: true, get: function() { + return U32_js_1.u32; + } }); + var U64_js_1 = require_U64(); + Object.defineProperty(exports2, "U64", { enumerable: true, get: function() { + return U64_js_1.u64; + } }); + Object.defineProperty(exports2, "u64", { enumerable: true, get: function() { + return U64_js_1.u64; + } }); + var U128_js_1 = require_U128(); + Object.defineProperty(exports2, "U128", { enumerable: true, get: function() { + return U128_js_1.u128; + } }); + Object.defineProperty(exports2, "u128", { enumerable: true, get: function() { + return U128_js_1.u128; + } }); + var U256_js_1 = require_U256(); + Object.defineProperty(exports2, "U256", { enumerable: true, get: function() { + return U256_js_1.u256; + } }); + Object.defineProperty(exports2, "u256", { enumerable: true, get: function() { + return U256_js_1.u256; + } }); + var USize_js_1 = require_USize(); + Object.defineProperty(exports2, "USize", { enumerable: true, get: function() { + return USize_js_1.usize; + } }); + Object.defineProperty(exports2, "usize", { enumerable: true, get: function() { + return USize_js_1.usize; + } }); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/bundle.js + var require_bundle4 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var packageInfo_js_1 = require_packageInfo16(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_abstract(), exports2); + tslib_1.__exportStar(require_base(), exports2); + tslib_1.__exportStar(require_extended(), exports2); + tslib_1.__exportStar(require_native(), exports2); + tslib_1.__exportStar(require_primitive(), exports2); + tslib_1.__exportStar(require_utils5(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-codec/cjs/index.js + var require_cjs8 = __commonJS({ + "../../node_modules/@polkadot/types-codec/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect5(); + tslib_1.__exportStar(require_bundle4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/typeSplit.js + var require_typeSplit = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/typeSplit.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typeSplit = void 0; + function typeSplit2(type) { + const result = []; + let c = 0; + let f10 = 0; + let s = 0; + let t = 0; + let start = 0; + for (let i = 0, count = type.length; i < count; i++) { + switch (type[i]) { + case ",": { + if (!(c || f10 || s || t)) { + result.push(type.substring(start, i).trim()); + start = i + 1; + } + break; + } + case "<": + c++; + break; + case ">": + c--; + break; + case "[": + f10++; + break; + case "]": + f10--; + break; + case "{": + s++; + break; + case "}": + s--; + break; + case "(": + t++; + break; + case ")": + t--; + break; + } + } + if (c || f10 || s || t) { + throw new Error(`Invalid definition (missing terminators) found in ${type}`); + } + result.push(type.substring(start, type.length).trim()); + return result; + } + exports2.typeSplit = typeSplit2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/getTypeDef.js + var require_getTypeDef = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/getTypeDef.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getTypeDef = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var typeSplit_js_1 = require_typeSplit(); + var KNOWN_INTERNALS2 = ["_alias", "_fallback"]; + function getTypeString2(typeOrObj) { + return (0, util_1.isString)(typeOrObj) ? typeOrObj.toString() : (0, util_1.stringify)(typeOrObj); + } + function isRustEnum3(details) { + const values = Object.values(details); + if (values.some((v) => (0, util_1.isNumber)(v))) { + if (!values.every((v) => (0, util_1.isNumber)(v) && v >= 0 && v <= 255)) { + throw new Error("Invalid number-indexed enum definition"); + } + return false; + } + return true; + } + function _decodeEnum2(value, details, count, fallbackType) { + value.info = index_js_1.TypeDefInfo.Enum; + value.fallbackType = fallbackType; + if (Array.isArray(details)) { + value.sub = details.map((name6, index) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + } else if (isRustEnum3(details)) { + value.sub = Object.entries(details).map(([name6, typeOrObj], index) => (0, util_1.objectSpread)({}, getTypeDef2(getTypeString2(typeOrObj || "Null"), { name: name6 }, count), { index })); + } else { + value.sub = Object.entries(details).map(([name6, index]) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + } + return value; + } + function _decodeSet2(value, details, fallbackType) { + value.info = index_js_1.TypeDefInfo.Set; + value.fallbackType = fallbackType; + value.length = details._bitLength; + value.sub = Object.entries(details).filter(([name6]) => !name6.startsWith("_")).map(([name6, index]) => ({ + index, + info: index_js_1.TypeDefInfo.Plain, + name: name6, + type: "Null" + })); + return value; + } + function _decodeStruct2(value, type, _, count) { + const parsed = JSON.parse(type); + const keys = Object.keys(parsed); + if (parsed._enum) { + return _decodeEnum2(value, parsed._enum, count, parsed._fallback); + } else if (parsed._set) { + return _decodeSet2(value, parsed._set, parsed._fallback); + } + value.alias = parsed._alias ? new Map(Object.entries(parsed._alias)) : void 0; + value.fallbackType = parsed._fallback; + value.sub = keys.filter((name6) => !KNOWN_INTERNALS2.includes(name6)).map((name6) => getTypeDef2(getTypeString2(parsed[name6]), { name: name6 }, count)); + return value; + } + function _decodeFixedVec2(value, type, _, count) { + const max2 = type.length - 1; + let index = -1; + let inner = 0; + for (let i = 1; i < max2 && index === -1; i++) { + switch (type[i]) { + case ";": { + if (inner === 0) { + index = i; + } + break; + } + case "[": + case "(": + case "<": + inner++; + break; + case "]": + case ")": + case ">": + inner--; + break; + } + } + if (index === -1) { + throw new Error(`${type}: Unable to extract location of ';'`); + } + const vecType = type.substring(1, index); + const [strLength, displayName] = type.substring(index + 1, max2).split(";"); + const length = parseInt(strLength.trim(), 10); + if (length > 2048) { + throw new Error(`${type}: Only support for [Type; ], where length <= 2048`); + } + value.displayName = displayName; + value.length = length; + value.sub = getTypeDef2(vecType, {}, count); + return value; + } + function _decodeTuple2(value, _, subType, count) { + value.sub = subType.length === 0 ? [] : (0, typeSplit_js_1.typeSplit)(subType).map((inner) => getTypeDef2(inner, {}, count)); + return value; + } + function _decodeAnyInt2(value, type, _, clazz) { + const [strLength, displayName] = type.substring(clazz.length + 1, type.length - 1).split(","); + const length = parseInt(strLength.trim(), 10); + if (length > 8192 || length % 8) { + throw new Error(`${type}: Only support for ${clazz}, where length <= 8192 and a power of 8, found ${length}`); + } + value.displayName = displayName; + value.length = length; + return value; + } + function _decodeInt2(value, type, subType) { + return _decodeAnyInt2(value, type, subType, "Int"); + } + function _decodeUInt2(value, type, subType) { + return _decodeAnyInt2(value, type, subType, "UInt"); + } + function _decodeDoNotConstruct2(value, type, _) { + const NAME_LENGTH = "DoNotConstruct".length; + value.displayName = type.substring(NAME_LENGTH + 1, type.length - 1); + return value; + } + function hasWrapper2(type, [start, end]) { + return type.startsWith(start) && type.slice(-1 * end.length) === end; + } + var nestedExtraction2 = [ + ["[", "]", index_js_1.TypeDefInfo.VecFixed, _decodeFixedVec2], + ["{", "}", index_js_1.TypeDefInfo.Struct, _decodeStruct2], + ["(", ")", index_js_1.TypeDefInfo.Tuple, _decodeTuple2], + ["BTreeMap<", ">", index_js_1.TypeDefInfo.BTreeMap, _decodeTuple2], + ["HashMap<", ">", index_js_1.TypeDefInfo.HashMap, _decodeTuple2], + ["Int<", ">", index_js_1.TypeDefInfo.Int, _decodeInt2], + ["Result<", ">", index_js_1.TypeDefInfo.Result, _decodeTuple2], + ["UInt<", ">", index_js_1.TypeDefInfo.UInt, _decodeUInt2], + ["DoNotConstruct<", ">", index_js_1.TypeDefInfo.DoNotConstruct, _decodeDoNotConstruct2] + ]; + var wrappedExtraction2 = [ + ["BTreeSet<", ">", index_js_1.TypeDefInfo.BTreeSet], + ["Compact<", ">", index_js_1.TypeDefInfo.Compact], + ["Linkage<", ">", index_js_1.TypeDefInfo.Linkage], + ["Opaque<", ">", index_js_1.TypeDefInfo.WrapperOpaque], + ["Option<", ">", index_js_1.TypeDefInfo.Option], + ["Range<", ">", index_js_1.TypeDefInfo.Range], + ["RangeInclusive<", ">", index_js_1.TypeDefInfo.RangeInclusive], + ["Vec<", ">", index_js_1.TypeDefInfo.Vec], + ["WrapperKeepOpaque<", ">", index_js_1.TypeDefInfo.WrapperKeepOpaque], + ["WrapperOpaque<", ">", index_js_1.TypeDefInfo.WrapperOpaque] + ]; + function extractSubType2(type, [start, end]) { + return type.substring(start.length, type.length - end.length); + } + function getTypeDef2(_type, { displayName, name: name6 } = {}, count = 0) { + const type = (0, types_codec_1.sanitize)(_type); + const value = { displayName, info: index_js_1.TypeDefInfo.Plain, name: name6, type }; + if (++count > 64) { + throw new Error("getTypeDef: Maximum nested limit reached"); + } + const nested = nestedExtraction2.find((nested2) => hasWrapper2(type, nested2)); + if (nested) { + value.info = nested[2]; + return nested[3](value, type, extractSubType2(type, nested), count); + } + const wrapped = wrappedExtraction2.find((wrapped2) => hasWrapper2(type, wrapped2)); + if (wrapped) { + value.info = wrapped[2]; + value.sub = getTypeDef2(extractSubType2(type, wrapped), {}, count); + } + return value; + } + exports2.getTypeDef = getTypeDef2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/class.js + var require_class2 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/class.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClassUnsafe = exports2.getTypeClass = exports2.constructTypeClass = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var getTypeDef_js_1 = require_getTypeDef(); + function getTypeDefType2({ lookupName, type }) { + return lookupName || type; + } + function getSubDefArray2(value) { + if (!Array.isArray(value.sub)) { + throw new Error(`Expected subtype as TypeDef[] in ${(0, util_1.stringify)(value)}`); + } + return value.sub; + } + function getSubDef2(value) { + if (!value.sub || Array.isArray(value.sub)) { + throw new Error(`Expected subtype as TypeDef in ${(0, util_1.stringify)(value)}`); + } + return value.sub; + } + function getSubType2(value) { + return getTypeDefType2(getSubDef2(value)); + } + function getTypeClassMap2(value) { + const subs = getSubDefArray2(value); + const map2 = {}; + for (let i = 0, count = subs.length; i < count; i++) { + const sub = subs[i]; + if (!sub.name) { + throw new Error(`No name found in definition ${(0, util_1.stringify)(sub)}`); + } + map2[sub.name] = getTypeDefType2(sub); + } + return map2; + } + function getTypeClassArray2(value) { + return getSubDefArray2(value).map(getTypeDefType2); + } + function createInt2(Clazz, { displayName, length }) { + if (!(0, util_1.isNumber)(length)) { + throw new Error(`Expected bitLength information for ${displayName || Clazz.constructor.name}`); + } + return Clazz.with(length, displayName); + } + function createHashMap2(Clazz, value) { + const [keyType, valueType] = getTypeClassArray2(value); + return Clazz.with(keyType, valueType); + } + function createWithSub2(Clazz, value) { + return Clazz.with(getSubType2(value)); + } + var infoMapping2 = { + [index_js_1.TypeDefInfo.BTreeMap]: (_registry, value) => createHashMap2(types_codec_1.BTreeMap, value), + [index_js_1.TypeDefInfo.BTreeSet]: (_registry, value) => createWithSub2(types_codec_1.BTreeSet, value), + [index_js_1.TypeDefInfo.Compact]: (_registry, value) => createWithSub2(types_codec_1.Compact, value), + [index_js_1.TypeDefInfo.DoNotConstruct]: (_registry, value) => types_codec_1.DoNotConstruct.with(value.displayName || value.type), + [index_js_1.TypeDefInfo.Enum]: (_registry, value) => { + const subs = getSubDefArray2(value); + return types_codec_1.Enum.with(subs.every(({ type }) => type === "Null") ? subs.reduce((out, { index, name: name6 }, count) => { + if (!name6) { + throw new Error("No name found in sub definition"); + } + out[name6] = index || count; + return out; + }, {}) : getTypeClassMap2(value)); + }, + [index_js_1.TypeDefInfo.HashMap]: (_registry, value) => createHashMap2(types_codec_1.HashMap, value), + [index_js_1.TypeDefInfo.Int]: (_registry, value) => createInt2(types_codec_1.Int, value), + [index_js_1.TypeDefInfo.Linkage]: (_registry, value) => { + const type = `Option<${getSubType2(value)}>`; + const Clazz = types_codec_1.Struct.with({ previous: type, next: type }); + Clazz.prototype.toRawType = function() { + return `Linkage<${this.next.toRawType(true)}>`; + }; + return Clazz; + }, + [index_js_1.TypeDefInfo.Null]: (_registry, _value) => types_codec_1.Null, + [index_js_1.TypeDefInfo.Option]: (_registry, value) => { + if (!value.sub || Array.isArray(value.sub)) { + throw new Error("Expected type information for Option"); + } + return createWithSub2(types_codec_1.Option, value); + }, + [index_js_1.TypeDefInfo.Plain]: (registry, value) => registry.getOrUnknown(value.type), + [index_js_1.TypeDefInfo.Range]: (_registry, value) => createWithSub2(types_codec_1.Range, value), + [index_js_1.TypeDefInfo.RangeInclusive]: (_registry, value) => createWithSub2(types_codec_1.RangeInclusive, value), + [index_js_1.TypeDefInfo.Result]: (_registry, value) => { + const [Ok2, Err] = getTypeClassArray2(value); + return types_codec_1.Result.with({ Err, Ok: Ok2 }); + }, + [index_js_1.TypeDefInfo.Set]: (_registry, value) => types_codec_1.CodecSet.with(getSubDefArray2(value).reduce((result, { index, name: name6 }) => { + if (!name6 || !(0, util_1.isNumber)(index)) { + throw new Error("No name found in sub definition"); + } + result[name6] = index; + return result; + }, {}), value.length), + [index_js_1.TypeDefInfo.Si]: (registry, value) => getTypeClass2(registry, registry.lookup.getTypeDef(value.type)), + [index_js_1.TypeDefInfo.Struct]: (_registry, value) => types_codec_1.Struct.with(getTypeClassMap2(value), value.alias), + [index_js_1.TypeDefInfo.Tuple]: (_registry, value) => types_codec_1.Tuple.with(getTypeClassArray2(value)), + [index_js_1.TypeDefInfo.UInt]: (_registry, value) => createInt2(types_codec_1.UInt, value), + [index_js_1.TypeDefInfo.Vec]: (_registry, { sub }) => { + if (!sub || Array.isArray(sub)) { + throw new Error("Expected type information for vector"); + } + return sub.type === "u8" ? types_codec_1.Bytes : types_codec_1.Vec.with(getTypeDefType2(sub)); + }, + [index_js_1.TypeDefInfo.VecFixed]: (_registry, { displayName, length, sub }) => { + if (!(0, util_1.isNumber)(length) || !sub || Array.isArray(sub)) { + throw new Error("Expected length & type information for fixed vector"); + } + return sub.type === "u8" ? types_codec_1.U8aFixed.with(length * 8, displayName) : types_codec_1.VecFixed.with(getTypeDefType2(sub), length); + }, + [index_js_1.TypeDefInfo.WrapperKeepOpaque]: (_registry, value) => createWithSub2(types_codec_1.WrapperKeepOpaque, value), + [index_js_1.TypeDefInfo.WrapperOpaque]: (_registry, value) => createWithSub2(types_codec_1.WrapperOpaque, value) + }; + function constructTypeClass2(registry, typeDef) { + try { + const Type2 = infoMapping2[typeDef.info](registry, typeDef); + if (!Type2) { + throw new Error("No class created"); + } + if (!Type2.__fallbackType && typeDef.fallbackType) { + Type2.__fallbackType = typeDef.fallbackType; + } + return Type2; + } catch (error) { + throw new Error(`Unable to construct class from ${(0, util_1.stringify)(typeDef)}: ${error.message}`); + } + } + exports2.constructTypeClass = constructTypeClass2; + function getTypeClass2(registry, typeDef) { + return registry.getUnsafe(typeDef.type, false, typeDef); + } + exports2.getTypeClass = getTypeClass2; + function createClassUnsafe2(registry, type) { + return registry.getUnsafe(type) || getTypeClass2(registry, registry.isLookupType(type) ? registry.lookup.getTypeDef(type) : (0, getTypeDef_js_1.getTypeDef)(type)); + } + exports2.createClassUnsafe = createClassUnsafe2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/type.js + var require_type = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/type.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTypeUnsafe = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var class_js_1 = require_class2(); + function checkInstance2(created, matcher) { + const u8a = created.toU8a(); + const rawType = created.toRawType(); + const isOk = (0, util_1.u8aEq)(u8a, matcher) || ["Bytes", "Text", "Type"].includes(rawType) && matcher.length === created.length || created.isEmpty && matcher.every((v) => !v); + if (!isOk) { + throw new Error(`${rawType}:: Decoded input doesn't match input, received ${(0, util_1.u8aToHex)(matcher, 512)} (${matcher.length} bytes), created ${(0, util_1.u8aToHex)(u8a, 512)} (${u8a.length} bytes)`); + } + } + function checkPedantic2(created, [value]) { + if ((0, util_1.isU8a)(value)) { + checkInstance2(created, value); + } else if ((0, util_1.isHex)(value)) { + checkInstance2(created, (0, util_1.u8aToU8a)(value)); + } + } + function initType2(registry, Type2, params = [], { blockHash, isFallback, isOptional, isPedantic } = {}) { + const created = new (isOptional ? types_codec_1.Option.with(Type2) : Type2)(registry, ...params); + isPedantic && checkPedantic2(created, params); + if (blockHash) { + created.createdAtHash = createTypeUnsafe2(registry, "BlockHash", [blockHash]); + } + if (isFallback) { + created.isStorageFallback = true; + } + return created; + } + function createTypeUnsafe2(registry, type, params = [], options = {}) { + let Clazz = null; + let firstError = null; + try { + Clazz = (0, class_js_1.createClassUnsafe)(registry, type); + return initType2(registry, Clazz, params, options); + } catch (error) { + firstError = new Error(`createType(${type}):: ${error.message}`); + } + if (Clazz?.__fallbackType) { + try { + Clazz = (0, class_js_1.createClassUnsafe)(registry, Clazz.__fallbackType); + return initType2(registry, Clazz, params, options); + } catch { + } + } + throw firstError; + } + exports2.createTypeUnsafe = createTypeUnsafe2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/create/index.js + var require_create = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/create/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_class2(), exports2); + tslib_1.__exportStar(require_type(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/encodeTypes.js + var require_encodeTypes = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/encodeTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.withTypeString = exports2.encodeTypeDef = exports2.paramsNotation = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_types3(); + var stringIdentity2 = (value) => value.toString(); + var INFO_WRAP2 = ["BTreeMap", "BTreeSet", "Compact", "HashMap", "Option", "Result", "Vec"]; + function paramsNotation2(outer, inner, transform = stringIdentity2) { + return `${outer}${inner ? `<${(Array.isArray(inner) ? inner : [inner]).map(transform).join(", ")}>` : ""}`; + } + exports2.paramsNotation = paramsNotation2; + function encodeWithParams2(registry, typeDef, outer) { + const { info, sub } = typeDef; + switch (info) { + case index_js_1.TypeDefInfo.BTreeMap: + case index_js_1.TypeDefInfo.BTreeSet: + case index_js_1.TypeDefInfo.Compact: + case index_js_1.TypeDefInfo.HashMap: + case index_js_1.TypeDefInfo.Linkage: + case index_js_1.TypeDefInfo.Option: + case index_js_1.TypeDefInfo.Range: + case index_js_1.TypeDefInfo.RangeInclusive: + case index_js_1.TypeDefInfo.Result: + case index_js_1.TypeDefInfo.Vec: + case index_js_1.TypeDefInfo.WrapperKeepOpaque: + case index_js_1.TypeDefInfo.WrapperOpaque: + return paramsNotation2(outer, sub, (p) => encodeTypeDef2(registry, p)); + } + throw new Error(`Unable to encode ${(0, util_1.stringify)(typeDef)} with params`); + } + function encodeSubTypes2(registry, sub, asEnum, extra) { + const names2 = sub.map(({ name: name6 }) => name6); + if (!names2.every((n) => !!n)) { + throw new Error(`Subtypes does not have consistent names, ${names2.join(", ")}`); + } + const inner = (0, util_1.objectSpread)({}, extra); + for (let i = 0, count = sub.length; i < count; i++) { + const def = sub[i]; + if (!def.name) { + throw new Error(`No name found in ${(0, util_1.stringify)(def)}`); + } + inner[def.name] = encodeTypeDef2(registry, def); + } + return (0, util_1.stringify)(asEnum ? { _enum: inner } : inner); + } + var encoders2 = { + [index_js_1.TypeDefInfo.BTreeMap]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "BTreeMap"), + [index_js_1.TypeDefInfo.BTreeSet]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "BTreeSet"), + [index_js_1.TypeDefInfo.Compact]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Compact"), + [index_js_1.TypeDefInfo.DoNotConstruct]: (registry, { displayName, lookupIndex, lookupName }) => `DoNotConstruct<${lookupName || displayName || ((0, util_1.isUndefined)(lookupIndex) ? "Unknown" : registry.createLookupType(lookupIndex))}>`, + [index_js_1.TypeDefInfo.Enum]: (registry, { sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Enum type"); + } + return sub.every(({ type }) => type === "Null") ? (0, util_1.stringify)({ _enum: sub.map(({ name: name6 }, index) => `${name6 || `Empty${index}`}`) }) : encodeSubTypes2(registry, sub, true); + }, + [index_js_1.TypeDefInfo.HashMap]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "HashMap"), + [index_js_1.TypeDefInfo.Int]: (_registry, { length = 32 }) => `Int<${length}>`, + [index_js_1.TypeDefInfo.Linkage]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Linkage"), + [index_js_1.TypeDefInfo.Null]: (_registry, _typeDef) => "Null", + [index_js_1.TypeDefInfo.Option]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Option"), + [index_js_1.TypeDefInfo.Plain]: (_registry, { displayName, type }) => displayName || type, + [index_js_1.TypeDefInfo.Range]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Range"), + [index_js_1.TypeDefInfo.RangeInclusive]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "RangeInclusive"), + [index_js_1.TypeDefInfo.Result]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Result"), + [index_js_1.TypeDefInfo.Set]: (_registry, { length = 8, sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Set type"); + } + return (0, util_1.stringify)({ + _set: sub.reduce((all, { index, name: name6 }, count) => (0, util_1.objectSpread)(all, { [`${name6 || `Unknown${index || count}`}`]: index || count }), { _bitLength: length || 8 }) + }); + }, + [index_js_1.TypeDefInfo.Si]: (_registry, { lookupName, type }) => lookupName || type, + [index_js_1.TypeDefInfo.Struct]: (registry, { alias: alias2, sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Struct type"); + } + return encodeSubTypes2(registry, sub, false, alias2 ? { + _alias: [...alias2.entries()].reduce((all, [k, v]) => (0, util_1.objectSpread)(all, { [k]: v }), {}) + } : {}); + }, + [index_js_1.TypeDefInfo.Tuple]: (registry, { sub }) => { + if (!Array.isArray(sub)) { + throw new Error("Unable to encode Tuple type"); + } + return `(${sub.map((type) => encodeTypeDef2(registry, type)).join(",")})`; + }, + [index_js_1.TypeDefInfo.UInt]: (_registry, { length = 32 }) => `UInt<${length}>`, + [index_js_1.TypeDefInfo.Vec]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "Vec"), + [index_js_1.TypeDefInfo.VecFixed]: (_registry, { length, sub }) => { + if (!(0, util_1.isNumber)(length) || !sub || Array.isArray(sub)) { + throw new Error("Unable to encode VecFixed type"); + } + return `[${sub.type};${length}]`; + }, + [index_js_1.TypeDefInfo.WrapperKeepOpaque]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "WrapperKeepOpaque"), + [index_js_1.TypeDefInfo.WrapperOpaque]: (registry, typeDef) => encodeWithParams2(registry, typeDef, "WrapperOpaque") + }; + function encodeType3(registry, typeDef, withLookup = true) { + return withLookup && typeDef.lookupName ? typeDef.lookupName : encoders2[typeDef.info](registry, typeDef); + } + function encodeTypeDef2(registry, typeDef) { + return typeDef.displayName && !INFO_WRAP2.some((i) => typeDef.displayName === i) ? typeDef.displayName : encodeType3(registry, typeDef); + } + exports2.encodeTypeDef = encodeTypeDef2; + function withTypeString2(registry, typeDef) { + return (0, util_1.objectSpread)({}, typeDef, { + type: encodeType3(registry, typeDef, false) + }); + } + exports2.withTypeString = withTypeString2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/xcm.js + var require_xcm = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/xcm.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mapXcmTypes = exports2.XCM_MAPPINGS = void 0; + var util_1 = require_cjs3(); + exports2.XCM_MAPPINGS = ["AssetInstance", "Fungibility", "Junction", "Junctions", "MultiAsset", "MultiAssetFilter", "MultiLocation", "Response", "WildFungibility", "WildMultiAsset", "Xcm", "XcmError", "XcmOrder"]; + function mapXcmTypes2(version23) { + return exports2.XCM_MAPPINGS.reduce((all, key2) => (0, util_1.objectSpread)(all, { [key2]: `${key2}${version23}` }), {}); + } + exports2.mapXcmTypes = mapXcmTypes2; + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/util/index.js + var require_util3 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_encodeTypes(), exports2); + tslib_1.__exportStar(require_getTypeDef(), exports2); + tslib_1.__exportStar(require_typeSplit(), exports2); + tslib_1.__exportStar(require_xcm(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/exports.js + var require_exports = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/exports.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_create(), exports2); + tslib_1.__exportStar(require_util3(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/bundle.js + var require_bundle5 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeDefInfo = exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var packageInfo_js_1 = require_packageInfo17(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_types3(); + Object.defineProperty(exports2, "TypeDefInfo", { enumerable: true, get: function() { + return index_js_1.TypeDefInfo; + } }); + tslib_1.__exportStar(require_exports(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-create/cjs/index.js + var require_cjs9 = __commonJS({ + "../../node_modules/@polkadot/types-create/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect4(); + tslib_1.__exportStar(require_bundle5(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v0.js + var require_v02 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v0.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v0 = void 0; + exports2.v0 = { + FungibilityV0: "FungibilityV1", + WildFungibilityV0: "WildFungibilityV1", + AssetInstanceV0: { + _enum: { + Undefined: "Null", + Index8: "u8", + Index16: "Compact", + Index32: "Compact", + Index64: "Compact", + Index128: "Compact", + Array4: "[u8; 4]", + Array8: "[u8; 8]", + Array16: "[u8; 16]", + Array32: "[u8; 32]", + Blob: "Vec" + } + }, + JunctionV0: { + _enum: { + Parent: "Null", + Parachain: "Compact", + AccountId32: { + network: "NetworkId", + id: "AccountId" + }, + AccountIndex64: { + network: "NetworkId", + index: "Compact" + }, + AccountKey20: { + network: "NetworkId", + key: "[u8; 20]" + }, + PalletInstance: "u8", + GeneralIndex: "Compact", + GeneralKey: "Vec", + OnlyChild: "Null", + Plurality: { + id: "BodyId", + part: "BodyPart" + } + } + }, + MultiAssetV0: { + _enum: { + None: "Null", + All: "Null", + AllFungible: "Null", + AllNonFungible: "Null", + AllAbstractFungible: "Vec", + AllAbstractNonFungible: "Vec", + AllConcreteFungible: "MultiLocationV0", + AllConcreteNonFungible: "MultiLocationV0", + AbstractFungible: { + id: "Vec", + instance: "Compact" + }, + AbstractNonFungible: { + class: "Vec", + instance: "AssetInstanceV0" + }, + ConcreteFungible: { + id: "MultiLocationV0", + amount: "Compact" + }, + ConcreteNonFungible: { + class: "MultiLocationV0", + instance: "AssetInstanceV0" + } + } + }, + MultiLocationV0: { + _enum: { + Here: "Null", + X1: "JunctionV0", + X2: "(JunctionV0, JunctionV0)", + X3: "(JunctionV0, JunctionV0, JunctionV0)", + X4: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X5: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X6: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X7: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)", + X8: "(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)" + } + }, + OriginKindV0: { + _enum: ["Native", "SovereignAccount", "Superuser", "Xcm"] + }, + ResponseV0: { + _enum: { + Assets: "Vec" + } + }, + XcmV0: { + _enum: { + WithdrawAsset: { + assets: "Vec", + effects: "Vec" + }, + ReserveAssetDeposit: { + assets: "Vec", + effects: "Vec" + }, + ReceiveTeleportedAsset: { + assets: "Vec", + effects: "Vec" + }, + QueryResponse: { + queryId: "Compact", + response: "ResponseV0" + }, + TransferAsset: { + assets: "Vec", + dest: "MultiLocationV0" + }, + TransferReserveAsset: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + Transact: { + originType: "XcmOriginKind", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + RelayedFrom: { + who: "MultiLocationV0", + message: "XcmV0" + } + } + }, + XcmErrorV0: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + SendFailed: "Null", + CannotReachDestination: "(MultiLocation, Xcm)", + MultiLocationFull: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + RecursionLimitReached: "Null" + } + }, + XcmOrderV0: { + _enum: { + Null: "Null", + DepositAsset: { + assets: "Vec", + dest: "MultiLocationV0" + }, + DepositReserveAsset: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + ExchangeAsset: { + give: "Vec", + receive: "Vec" + }, + InitiateReserveWithdraw: { + assets: "Vec", + reserve: "MultiLocationV0", + effects: "Vec" + }, + InitiateTeleport: { + assets: "Vec", + dest: "MultiLocationV0", + effects: "Vec" + }, + QueryHolding: { + queryId: "Compact", + dest: "MultiLocationV0", + assets: "Vec" + }, + BuyExecution: { + fees: "MultiAssetV0", + weight: "u64", + debt: "u64", + haltOnError: "bool", + xcm: "Vec" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v1.js + var require_v16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v1 = void 0; + exports2.v1 = { + AssetInstanceV1: { + _enum: { + Undefined: "Null", + Index: "Compact", + Array4: "[u8; 4]", + Array8: "[u8; 8]", + Array16: "[u8; 16]", + Array32: "[u8; 32]", + Blob: "Bytes" + } + }, + FungibilityV1: { + _enum: { + Fungible: "Compact", + NonFungible: "AssetInstanceV1" + } + }, + JunctionV1: { + _enum: { + Parachain: "Compact", + AccountId32: { + network: "NetworkId", + id: "AccountId" + }, + AccountIndex64: { + network: "NetworkId", + index: "Compact" + }, + AccountKey20: { + network: "NetworkId", + key: "[u8; 20]" + }, + PalletInstance: "u8", + GeneralIndex: "Compact", + GeneralKey: "Vec", + OnlyChild: "Null", + Plurality: { + id: "BodyId", + part: "BodyPart" + } + } + }, + JunctionsV1: { + _enum: { + Here: "Null", + X1: "JunctionV1", + X2: "(JunctionV1, JunctionV1)", + X3: "(JunctionV1, JunctionV1, JunctionV1)", + X4: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X5: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X6: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X7: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)", + X8: "(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)" + } + }, + MultiAssetsV1: "Vec", + MultiAssetV1: { + id: "XcmAssetId", + fungibility: "FungibilityV1" + }, + MultiAssetFilterV1: { + _enum: { + Definite: "MultiAssetsV1", + Wild: "WildMultiAssetV1" + } + }, + MultiLocationV1: { + parents: "u8", + interior: "JunctionsV1" + }, + OriginKindV1: "OriginKindV0", + ResponseV1: { + _enum: { + Assets: "MultiAssetsV1" + } + }, + WildFungibilityV1: { + _enum: ["Fungible", "NonFungible"] + }, + WildMultiAssetV1: { + _enum: { + All: "Null", + AllOf: { + id: "XcmAssetId", + fungibility: "WildFungibilityV1" + } + } + }, + XcmV1: { + _enum: { + WithdrawAsset: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + ReserveAssetDeposit: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + ReceiveTeleportedAsset: { + assets: "MultiAssetsV1", + effects: "Vec" + }, + QueryResponse: { + queryId: "Compact", + response: "ResponseV1" + }, + TransferAsset: { + assets: "MultiAssetsV1", + dest: "MultiLocationV1" + }, + TransferReserveAsset: { + assets: "MultiAssetsV1", + dest: "MultiLocationV1", + effects: "Vec" + }, + Transact: { + originType: "XcmOriginKind", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + RelayedFrom: { + who: "MultiLocationV1", + message: "XcmV1" + } + } + }, + XcmErrorV1: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + SendFailed: "Null", + CannotReachDestination: "(MultiLocationV1, XcmV1)", + MultiLocationFull: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + DestinationUnsupported: "Null", + RecursionLimitReached: "Null" + } + }, + XcmOrderV1: { + _enum: { + Noop: "Null", + DepositAsset: { + assets: "MultiAssetFilterV1", + maxAssets: "u32", + beneficiary: "MultiLocationV1" + }, + DepositReserveAsset: { + assets: "MultiAssetFilterV1", + maxAssets: "u32", + dest: "MultiLocationV1", + effects: "Vec" + }, + ExchangeAsset: { + give: "MultiAssetFilterV1", + receive: "MultiAssetsV1" + }, + InitiateReserveWithdraw: { + assets: "MultiAssetFilterV1", + reserve: "MultiLocationV1", + effects: "Vec" + }, + InitiateTeleport: { + assets: "MultiAssetFilterV1", + dest: "MultiLocationV1", + effects: "Vec" + }, + QueryHolding: { + queryId: "Compact", + dest: "MultiLocationV1", + assets: "MultiAssetFilterV1" + }, + BuyExecution: { + fees: "MultiAssetV1", + weight: "u64", + debt: "u64", + haltOnError: "bool", + instructions: "Vec" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/v2.js + var require_v2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/v2.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.v2 = void 0; + exports2.v2 = { + AssetInstanceV2: "AssetInstanceV1", + FungibilityV2: "FungibilityV1", + JunctionV2: "JunctionV1", + JunctionsV2: "JunctionsV1", + MultiAssetsV2: "MultiAssetsV1", + MultiAssetV2: "MultiAssetV1", + MultiAssetFilterV2: "MultiAssetFilterV1", + MultiLocationV2: "MultiLocationV1", + OriginKindV2: "OriginKindV1", + WildFungibilityV2: "WildFungibilityV1", + ResponseV2: { + _enum: { + Null: "Null", + Assets: "MultiAssetsV2", + ExecutionResult: "ResponseV2Result" + } + }, + ResponseV2Error: "(u32, XcmErrorV2)", + ResponseV2Result: "Result", + WeightLimitV2: { + _enum: { + Unlimited: "Null", + Limited: "Compact" + } + }, + InstructionV2: { + _enum: { + WithdrawAsset: "MultiAssetsV2", + ReserveAssetDeposited: "MultiAssetsV2", + ReceiveTeleportedAsset: "MultiAssetsV2", + QueryResponse: { + queryId: "Compact", + response: "ResponseV2", + maxWeight: "Compact" + }, + TransferAsset: { + assets: "MultiAssetsV2", + beneficiary: "MultiLocationV2" + }, + TransferReserveAsset: { + assets: "MultiAssetsV2", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + Transact: { + originType: "OriginKindV2", + requireWeightAtMost: "u64", + call: "DoubleEncodedCall" + }, + HrmpNewChannelOpenRequest: { + sender: "Compact", + maxMessageSize: "Compact", + maxCapacity: "Compact" + }, + HrmpChannelAccepted: { + recipient: "Compact" + }, + HrmpChannelClosing: { + initiator: "Compact", + sender: "Compact", + recipient: "Compact" + }, + ClearOrigin: "Null", + DescendOrigin: "InteriorMultiLocation", + ReportError: { + queryId: "Compact", + dest: "MultiLocationV2", + maxResponseWeight: "Compact" + }, + DepositAsset: { + assets: "MultiAssetFilterV2", + maxAssets: "u32", + beneficiary: "MultiLocationV2" + }, + DepositReserveAsset: { + assets: "MultiAssetFilterV2", + maxAssets: "u32", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + ExchangeAsset: { + give: "MultiAssetFilterV2", + receive: "MultiAssetsV2" + }, + InitiateReserveWithdraw: { + assets: "MultiAssetFilterV2", + reserve: "MultiLocationV2", + xcm: "XcmV2" + }, + InitiateTeleport: { + assets: "MultiAssetFilterV2", + dest: "MultiLocationV2", + xcm: "XcmV2" + }, + QueryHolding: { + query_id: "Compact", + dest: "MultiLocationV2", + assets: "MultiAssetFilterV2", + maxResponse_Weight: "Compact" + }, + BuyExecution: { + fees: "MultiAssetV2", + weightLimit: "WeightLimitV2" + }, + RefundSurplus: "Null", + SetErrorHandler: "XcmV2", + SetAppendix: "XcmV2", + ClearError: "Null", + ClaimAsset: { + assets: "MultiAssetsV2", + ticket: "MultiLocationV2" + }, + Trap: "u64" + } + }, + WildMultiAssetV2: "WildMultiAssetV1", + XcmV2: "Vec", + XcmErrorV2: { + _enum: { + Undefined: "Null", + Overflow: "Null", + Unimplemented: "Null", + UnhandledXcmVersion: "Null", + UnhandledXcmMessage: "Null", + UnhandledEffect: "Null", + EscalationOfPrivilege: "Null", + UntrustedReserveLocation: "Null", + UntrustedTeleportLocation: "Null", + DestinationBufferOverflow: "Null", + MultiLocationFull: "Null", + MultiLocationNotInvertible: "Null", + FailedToDecode: "Null", + BadOrigin: "Null", + ExceedsMaxMessageSize: "Null", + FailedToTransactAsset: "Null", + WeightLimitReached: "Weight", + Wildcard: "Null", + TooMuchWeightRequired: "Null", + NotHoldingFees: "Null", + WeightNotComputable: "Null", + Barrier: "Null", + NotWithdrawable: "Null", + LocationCannotHold: "Null", + TooExpensive: "Null", + AssetNotFound: "Null", + DestinationUnsupported: "Null", + RecursionLimitReached: "Null", + Transport: "Null", + Unroutable: "Null", + UnknownWeightRequired: "Null", + Trap: "u64", + UnknownClaim: "Null", + InvalidLocation: "Null" + } + }, + XcmOrderV2: "XcmOrderV1" + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/xcm/definitions.js + var require_definitions62 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/xcm/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var types_create_1 = require_cjs9(); + var v0_js_1 = require_v02(); + var v1_js_1 = require_v16(); + var v2_js_1 = require_v2(); + var XCM_LATEST2 = "V2"; + var xcm2 = { + XcmOrigin: { + _enum: { + Xcm: "MultiLocation" + } + }, + XcmpMessageFormat: { + _enum: ["ConcatenatedVersionedXcm", "ConcatenatedEncodedBlob", "Signals"] + }, + XcmAssetId: { + _enum: { + Concrete: "MultiLocation", + Abstract: "Bytes" + } + }, + InboundStatus: { + _enum: ["Ok", "Suspended"] + }, + OutboundStatus: { + _enum: ["Ok", "Suspended"] + }, + MultiAssets: "Vec" + }; + var location2 = { + BodyId: { + _enum: { + Unit: "Null", + Named: "Vec", + Index: "Compact", + Executive: "Null", + Technical: "Null", + Legislative: "Null", + Judicial: "Null" + } + }, + BodyPart: { + _enum: { + Voice: "Null", + Members: "Compact", + Fraction: { + nom: "Compact", + denom: "Compact" + }, + AtLeastProportion: { + nom: "Compact", + denom: "Compact" + }, + MoreThanProportion: { + nom: "Compact", + denom: "Compact" + } + } + }, + InteriorMultiLocation: "Junctions", + NetworkId: { + _enum: { + Any: "Null", + Named: "Vec", + Polkadot: "Null", + Kusama: "Null" + } + } + }; + exports2.default = { + rpc: {}, + types: { + ...location2, + ...xcm2, + ...v0_js_1.v0, + ...v1_js_1.v1, + ...v2_js_1.v2, + ...(0, types_create_1.mapXcmTypes)(XCM_LATEST2), + DoubleEncodedCall: { + encoded: "Vec" + }, + XcmOriginKind: { + _enum: ["Native", "SovereignAccount", "Superuser", "Xcm"] + }, + Outcome: { + _enum: { + Complete: "Weight", + Incomplete: "(Weight, XcmErrorV0)", + Error: "XcmErrorV0" + } + }, + QueryId: "u64", + QueryStatus: { + _enum: { + Pending: { + responder: "VersionedMultiLocation", + maybeNotify: "Option<(u8, u8)>", + timeout: "BlockNumber" + }, + Ready: { + response: "VersionedResponse", + at: "BlockNumber" + } + } + }, + QueueConfigData: { + suspendThreshold: "u32", + dropThreshold: "u32", + resumeThreshold: "u32", + thresholdWeight: "Weight", + weightRestrictDecay: "Weight" + }, + VersionMigrationStage: { + _enum: { + MigrateSupportedVersion: "Null", + MigrateVersionNotifiers: "Null", + NotifyCurrentTargets: "Option", + MigrateAndNotifyOldTargets: "Null" + } + }, + VersionedMultiAsset: { + _enum: { + V0: "MultiAssetV0", + V1: "MultiAssetV1", + V2: "MultiAssetV2" + } + }, + VersionedMultiAssets: { + _enum: { + V0: "Vec", + V1: "MultiAssetsV1", + V2: "MultiAssetsV2" + } + }, + VersionedMultiLocation: { + _enum: { + V0: "MultiLocationV0", + V1: "MultiLocationV1", + V2: "MultiLocationV2" + } + }, + VersionedResponse: { + V0: "ResponseV0", + V1: "ResponseV1", + V2: "ResponseV2" + }, + VersionedXcm: { + _enum: { + V0: "XcmV0", + V1: "XcmV1", + V2: "XcmV2" + } + }, + XcmVersion: "u32" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/contractsAbi/definitions.js + var require_definitions63 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/contractsAbi/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var layout2 = { + ContractCryptoHasher: { + _enum: ["Blake2x256", "Sha2x256", "Keccak256"] + }, + ContractDiscriminant: "u32", + ContractLayoutArray: { + offset: "ContractLayoutKey", + len: "u32", + cellsPerElem: "u64", + layout: "ContractStorageLayout" + }, + ContractLayoutCell: { + key: "ContractLayoutKey", + ty: "SiLookupTypeId" + }, + ContractLayoutEnum: { + dispatchKey: "ContractLayoutKey", + variants: "BTreeMap" + }, + ContractLayoutHash: { + offset: "ContractLayoutKey", + strategy: "ContractLayoutHashingStrategy", + layout: "ContractStorageLayout" + }, + ContractLayoutHashingStrategy: { + hasher: "ContractCryptoHasher", + postfix: "Vec", + prefix: "Vec" + }, + ContractLayoutKey: "[u8; 32]", + ContractLayoutStruct: { + fields: "Vec" + }, + ContractLayoutStructField: { + layout: "ContractStorageLayout", + name: "Text" + }, + ContractStorageLayout: { + _enum: { + Cell: "ContractLayoutCell", + Hash: "ContractLayoutHash", + Array: "ContractLayoutArray", + Struct: "ContractLayoutStruct", + Enum: "ContractLayoutEnum" + } + } + }; + var spec2 = { + ContractConstructorSpecV0: { + name: "Text", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV1: { + name: "Vec", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV2: { + label: "Text", + selector: "ContractSelector", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV3: { + label: "Text", + selector: "ContractSelector", + payable: "bool", + args: "Vec", + docs: "Vec" + }, + ContractConstructorSpecV4: { + label: "Text", + selector: "ContractSelector", + payable: "bool", + args: "Vec", + docs: "Vec", + default: "bool", + returnType: "Option" + }, + ContractContractSpecV0: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV1: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV2: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV3: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec" + }, + ContractContractSpecV4: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec", + environment: "ContractEnvironmentV4" + }, + ContractContractSpecV5: { + constructors: "Vec", + messages: "Vec", + events: "Vec", + docs: "Vec", + environment: "ContractEnvironmentV4" + }, + ContractDisplayName: "SiPath", + ContractEventParamSpecV0: { + name: "Text", + indexed: "bool", + type: "ContractTypeSpec", + docs: "Vec" + }, + ContractEventParamSpecV2: { + label: "Text", + indexed: "bool", + type: "ContractTypeSpec", + docs: "Vec" + }, + ContractEventSpecV0: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV1: { + name: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV2: { + label: "Text", + args: "Vec", + docs: "Vec" + }, + ContractEventSpecV3: { + label: "Text", + args: "Vec", + docs: "Vec", + module_path: "Text", + signature_topic: "Option<[u8; 32]>" + }, + ContractMessageParamSpecV0: { + name: "Text", + type: "ContractTypeSpec" + }, + ContractMessageParamSpecV2: { + label: "Text", + type: "ContractTypeSpec" + }, + ContractMessageSpecV0: { + name: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV1: { + name: "Vec", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV2: { + label: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec" + }, + ContractMessageSpecV3: { + label: "Text", + selector: "ContractSelector", + mutates: "bool", + payable: "bool", + args: "Vec", + returnType: "Option", + docs: "Vec", + default: "bool" + }, + ContractSelector: "[u8; 4]", + ContractTypeSpec: { + type: "SiLookupTypeId", + displayName: "ContractDisplayName" + } + }; + var latest2 = { + ContractConstructorSpecLatest: "ContractConstructorSpecV4", + ContractEventSpecLatest: "ContractEventSpecV3", + ContractEventParamSpecLatest: "ContractEventParamSpecV2", + ContractMessageParamSpecLatest: "ContractMessageParamSpecV2", + ContractMessageSpecLatest: "ContractMessageSpecV3", + ContractMetadataLatest: "ContractMetadataV5" + }; + exports2.default = { + rpc: {}, + types: { + ...layout2, + ...spec2, + ...latest2, + ContractProjectInfo: { + source: "ContractProjectSource", + contract: "ContractProjectContract" + }, + ContractMetadataV0: { + metadataVersion: "Text", + types: "Vec", + spec: "ContractContractSpecV0" + }, + ContractMetadataV1: { + types: "Vec", + spec: "ContractContractSpecV1" + }, + ContractMetadataV2: { + types: "Vec", + spec: "ContractContractSpecV2" + }, + ContractMetadataV3: { + types: "Vec", + spec: "ContractContractSpecV3" + }, + ContractMetadataV4: { + types: "Vec", + spec: "ContractContractSpecV4", + version: "Text" + }, + ContractMetadataV5: { + types: "Vec", + spec: "ContractContractSpecV5", + version: "u64" + }, + ContractMetadata: { + _enum: { + V0: "ContractMetadataV0", + V1: "ContractMetadataV1", + V2: "ContractMetadataV2", + V3: "ContractMetadataV3", + V4: "ContractMetadataV4", + V5: "ContractMetadataV5" + } + }, + ContractProjectV0: { + metadataVersion: "Text", + source: "ContractProjectSource", + contract: "ContractProjectContract", + types: "Vec", + spec: "ContractContractSpecV0" + }, + ContractProject: "(ContractProjectInfo, ContractMetadata)", + ContractProjectContract: { + _alias: { + docs: "documentation" + }, + name: "Text", + version: "Text", + authors: "Vec", + description: "Option", + docs: "Option", + repository: "Option", + homepage: "Option", + license: "Option" + }, + ContractProjectSource: { + _alias: { + wasmHash: "hash" + }, + wasmHash: "[u8; 32]", + language: "Text", + compiler: "Text", + wasm: "Raw" + }, + ContractEnvironmentV4: { + _alias: { + hashType: "hash" + }, + accountId: "Option", + balance: "Option", + blockNumber: "Option", + hashType: "Option", + timestamp: "Option", + maxEventTopics: "Option" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/rpc.js + var require_rpc10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + var netRpc2 = { + listening: { + aliasSection: "net", + description: "Returns true if client is actively listening for network connections. Otherwise false.", + params: [], + type: "bool" + }, + peerCount: { + aliasSection: "net", + description: "Returns number of peers connected to node.", + params: [], + type: "Text" + }, + version: { + aliasSection: "net", + description: "Returns protocol version.", + params: [], + type: "Text" + } + }; + var web3Rpc2 = { + clientVersion: { + aliasSection: "web3", + description: "Returns current client version.", + params: [], + type: "Text" + }, + sha3: { + aliasSection: "web3", + description: "Returns sha3 of the given data", + params: [{ name: "data", type: "Bytes" }], + type: "H256" + } + }; + exports2.rpc = { + ...netRpc2, + ...web3Rpc2, + accounts: { + description: "Returns accounts list.", + params: [], + type: "Vec" + }, + blockNumber: { + description: "Returns the blockNumber", + params: [], + type: "U256" + }, + call: { + description: "Call contract, returning the output data.", + params: [ + { + name: "request", + type: "EthCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "Bytes" + }, + chainId: { + description: "Returns the chain ID used for transaction signing at the current best block. None is returned if not available.", + params: [], + type: "U64" + }, + coinbase: { + description: "Returns block author.", + params: [], + type: "H160" + }, + estimateGas: { + description: "Estimate gas needed for execution of given contract.", + params: [ + { + name: "request", + type: "EthCallRequest" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + feeHistory: { + description: "Returns fee history for given block count & reward percentiles", + params: [ + { + name: "blockCount", + type: "U256" + }, + { + name: "newestBlock", + type: "BlockNumber" + }, + { + name: "rewardPercentiles", + type: "Option>" + } + ], + type: "EthFeeHistory" + }, + gasPrice: { + description: "Returns current gas price.", + params: [], + type: "U256" + }, + getBalance: { + description: "Returns balance of the given account.", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getBlockByHash: { + description: "Returns block with given hash.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "full", + type: "bool" + } + ], + type: "Option" + }, + getBlockByNumber: { + description: "Returns block with given number.", + params: [ + { + name: "block", + type: "BlockNumber" + }, + { name: "full", type: "bool" } + ], + type: "Option" + }, + getBlockTransactionCountByHash: { + description: "Returns the number of transactions in a block with given hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "U256" + }, + getBlockTransactionCountByNumber: { + description: "Returns the number of transactions in a block with given block number.", + params: [ + { + name: "block", + type: "BlockNumber" + } + ], + type: "U256" + }, + getCode: { + description: "Returns the code at given address at given time (block number).", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "Bytes" + }, + getFilterChanges: { + description: "Returns filter changes since last poll.", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "EthFilterChanges" + }, + getFilterLogs: { + description: "Returns all logs matching given filter (in a range 'from' - 'to').", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "Vec" + }, + getLogs: { + description: "Returns logs matching given filter object.", + params: [ + { + name: "filter", + type: "EthFilter" + } + ], + type: "Vec" + }, + getProof: { + description: "Returns proof for account and storage.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "storageKeys", + type: "Vec" + }, + { + name: "number", + type: "BlockNumber" + } + ], + type: "EthAccount" + }, + getStorageAt: { + description: "Returns content of the storage at given address.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "index", + type: "U256" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "H256" + }, + getTransactionByBlockHashAndIndex: { + description: "Returns transaction at given block hash and index.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthTransaction" + }, + getTransactionByBlockNumberAndIndex: { + description: "Returns transaction by given block number and index.", + params: [ + { + name: "number", + type: "BlockNumber" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthTransaction" + }, + getTransactionByHash: { + description: "Get transaction by its hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "EthTransaction" + }, + getTransactionCount: { + description: "Returns the number of transactions sent from given address at given time (block number).", + params: [ + { + name: "address", + type: "H160" + }, + { + isHistoric: true, + isOptional: true, + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getTransactionReceipt: { + description: "Returns transaction receipt by transaction hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "EthReceipt" + }, + getUncleByBlockHashAndIndex: { + description: "Returns an uncles at given block and index.", + params: [ + { + name: "hash", + type: "H256" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthRichBlock" + }, + getUncleByBlockNumberAndIndex: { + description: "Returns an uncles at given block and index.", + params: [ + { + name: "number", + type: "BlockNumber" + }, + { + name: "index", + type: "U256" + } + ], + type: "EthRichBlock" + }, + getUncleCountByBlockHash: { + description: "Returns the number of uncles in a block with given hash.", + params: [ + { + name: "hash", + type: "H256" + } + ], + type: "U256" + }, + getUncleCountByBlockNumber: { + description: "Returns the number of uncles in a block with given block number.", + params: [ + { + name: "number", + type: "BlockNumber" + } + ], + type: "U256" + }, + getWork: { + description: "Returns the hash of the current block, the seedHash, and the boundary condition to be met.", + params: [], + type: "EthWork" + }, + hashrate: { + description: "Returns the number of hashes per second that the node is mining with.", + params: [], + type: "U256" + }, + maxPriorityFeePerGas: { + description: "Returns max priority fee per gas", + params: [], + type: "U256" + }, + mining: { + description: "Returns true if client is actively mining new blocks.", + params: [], + type: "bool" + }, + newBlockFilter: { + description: "Returns id of new block filter.", + params: [], + type: "U256" + }, + newFilter: { + description: "Returns id of new filter.", + params: [ + { + name: "filter", + type: "EthFilter" + } + ], + type: "U256" + }, + newPendingTransactionFilter: { + description: "Returns id of new block filter.", + params: [], + type: "U256" + }, + protocolVersion: { + description: "Returns protocol version encoded as a string (quotes are necessary).", + params: [], + type: "u64" + }, + sendRawTransaction: { + description: "Sends signed transaction, returning its hash.", + params: [ + { + name: "bytes", + type: "Bytes" + } + ], + type: "H256" + }, + sendTransaction: { + description: "Sends transaction; will block waiting for signer to return the transaction hash", + params: [ + { + name: "tx", + type: "EthTransactionRequest" + } + ], + type: "H256" + }, + submitHashrate: { + description: "Used for submitting mining hashrate.", + params: [ + { + name: "index", + type: "U256" + }, + { + name: "hash", + type: "H256" + } + ], + type: "bool" + }, + submitWork: { + description: "Used for submitting a proof-of-work solution.", + params: [ + { + name: "nonce", + type: "H64" + }, + { + name: "headerHash", + type: "H256" + }, + { + name: "mixDigest", + type: "H256" + } + ], + type: "bool" + }, + subscribe: { + description: "Subscribe to Eth subscription.", + params: [ + { name: "kind", type: "EthSubKind" }, + { + isOptional: true, + name: "params", + type: "EthSubParams" + } + ], + pubsub: [ + "subscription", + "subscribe", + "unsubscribe" + ], + type: "Null" + }, + syncing: { + description: "Returns an object with data about the sync status or false.", + params: [], + type: "EthSyncStatus" + }, + uninstallFilter: { + description: "Uninstalls filter.", + params: [ + { + name: "index", + type: "U256" + } + ], + type: "bool" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/runtime.js + var require_runtime28 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var ethMethodsV42 = { + account_basic: { + description: "Returns pallet_evm::Accounts by address.", + params: [ + { + name: "address", + type: "H160" + } + ], + type: "EvmAccount" + }, + account_code_at: { + description: "For a given account address, returns pallet_evm::AccountCodes.", + params: [ + { + name: "address", + type: "H160" + } + ], + type: "Bytes" + }, + author: { + description: "Returns the converted FindAuthor::find_author authority id.", + params: [], + type: "H160" + }, + call: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "to", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + chain_id: { + description: "Returns runtime defined pallet_evm::ChainId.", + params: [], + type: "u64" + }, + create: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + current_all: { + description: "Return all the current data for a block in a single runtime call.", + params: [], + type: "(Option, Option>, Option>)" + }, + current_block: { + description: "Return the current block.", + params: [], + type: "BlockV2" + }, + current_receipts: { + description: "Return the current receipt.", + params: [], + type: "Option>" + }, + current_transaction_statuses: { + description: "Return the current transaction status.", + params: [], + type: "Option>" + }, + elasticity: { + description: "Return the elasticity multiplier.", + params: [], + type: "Option" + }, + extrinsic_filter: { + description: "Receives a `Vec` and filters all the ethereum transactions.", + params: [ + { + name: "xts", + type: "Vec" + } + ], + type: "Vec" + }, + gas_price: { + description: "Returns FixedGasPrice::min_gas_price", + params: [], + type: "u256" + }, + storage_at: { + description: "For a given account address and index, returns pallet_evm::AccountStorages.", + params: [ + { + name: "address", + type: "H160" + }, + { + name: "index", + type: "u256" + } + ], + type: "H256" + } + }; + var ethMethodsV52 = { + call: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "to", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + }, + create: { + description: "Returns a frame_ethereum::call response. If `estimate` is true,", + params: [ + { + name: "from", + type: "H160" + }, + { + name: "data", + type: "Vec" + }, + { + name: "value", + type: "U256" + }, + { + name: "gasLimit", + type: "U256" + }, + { + name: "maxFeePerGas", + type: "Option" + }, + { + name: "maxPriorityFeePerGas", + type: "Option" + }, + { + name: "nonce", + type: "Option" + }, + { + name: "estimate", + type: "bool" + }, + { + name: "accessList", + type: "Option)>>" + } + ], + type: "Result" + } + }; + exports2.runtime = { + ConvertTransactionRuntimeApi: [ + { + methods: { + convert_transaction: { + description: "Converts an Ethereum-style transaction to Extrinsic", + params: [ + { + name: "transaction", + type: "TransactionV2" + } + ], + type: "Extrinsic" + } + }, + version: 2 + } + ], + DebugRuntimeApi: [ + { + methods: { + trace_block: { + description: "Trace all block extrinsics", + params: [ + { + name: "extrinsics", + type: "Vec" + }, + { + name: "knownTransactions", + type: "Vec" + } + ], + type: "Result<(), DispatchError>" + }, + trace_transaction: { + description: "Trace transaction extrinsics", + params: [ + { + name: "extrinsics", + type: "Vec" + }, + { + name: "transaction", + type: "EthTransaction" + } + ], + type: "Result<(), DispatchError>" + } + }, + version: 4 + } + ], + EthereumRuntimeRPCApi: [ + { + methods: { + ...ethMethodsV42 + }, + version: 4 + }, + { + methods: { + ...ethMethodsV42, + ...ethMethodsV52 + }, + version: 5 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/eth/definitions.js + var require_definitions64 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/eth/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc10(); + var runtime_js_1 = require_runtime28(); + var V02 = { + BlockV0: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + LegacyTransaction: { + nonce: "U256", + gasPrice: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + signature: "EthTransactionSignature" + }, + TransactionV0: "LegacyTransaction" + }; + var V13 = { + BlockV1: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EIP2930Transaction: { + chainId: "u64", + nonce: "U256", + gasPrice: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + accessList: "EthAccessList", + oddYParity: "bool", + r: "H256", + s: "H256" + }, + TransactionV1: { + _enum: { + Legacy: "LegacyTransaction", + EIP2930: "EIP2930Transaction" + } + } + }; + var V22 = { + BlockV2: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EIP1559Transaction: { + chainId: "u64", + nonce: "U256", + maxPriorityFeePerGas: "U256", + maxFeePerGas: "U256", + gasLimit: "U256", + action: "EthTransactionAction", + value: "U256", + input: "Bytes", + accessList: "EthAccessList", + oddYParity: "bool", + r: "H256", + s: "H256" + }, + TransactionV2: { + _enum: { + Legacy: "LegacyTransaction", + EIP2930: "EIP2930Transaction", + EIP1559: "EIP1559Transaction" + } + } + }; + var types2 = { + ...V02, + ...V13, + ...V22, + EthereumAccountId: "GenericEthereumAccountId", + EthereumAddress: "GenericEthereumAccountId", + EthereumLookupSource: "GenericEthereumLookupSource", + EthereumSignature: "[u8; 65]", + EthAccessListItem: { + address: "EthAddress", + slots: "Vec" + }, + EthAccessList: "Vec", + EthAccount: { + address: "EthAddress", + balance: "U256", + nonce: "U256", + codeHash: "H256", + storageHash: "H256", + accountProof: "Vec", + storageProof: "Vec" + }, + EthAddress: "H160", + EthBlock: { + header: "EthHeader", + transactions: "Vec", + ommers: "Vec" + }, + EthHeader: { + parentHash: "H256", + ommersHash: "H256", + beneficiary: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + logsBloom: "EthBloom", + difficulty: "U256", + number: "U256", + gasLimit: "U256", + gasUsed: "U256", + timestamp: "u64", + extraData: "Bytes", + mixMash: "H256", + nonce: "H64" + }, + EthRichBlock: { + _alias: { + blockHash: "hash", + blockSize: "size" + }, + blockHash: "Option", + parentHash: "H256", + sha3Uncles: "H256", + author: "EthAddress", + miner: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + number: "Option", + gasUsed: "U256", + gasLimit: "U256", + extraData: "Bytes", + logsBloom: "EthBloom", + timestamp: "U256", + difficulty: "U256", + totalDifficulty: "Option", + sealFields: "Vec", + uncles: "Vec", + transactions: "Vec", + blockSize: "Option" + }, + EthBloom: "H2048", + EthCallRequest: { + from: "Option", + to: "Option", + gasPrice: "Option", + gas: "Option", + value: "Option", + data: "Option", + nonce: "Option" + }, + EthFeeHistory: { + oldestBlock: "U256", + baseFeePerGas: "Vec", + gasUsedRatio: "Vec", + reward: "Option>>" + }, + EthFilter: { + fromBlock: "Option", + toBlock: "Option", + blockHash: "Option", + address: "Option", + topics: "Option" + }, + EthFilterAddress: { + _enum: { + Single: "EthAddress", + Multiple: "Vec", + Null: "Null" + } + }, + EthFilterChanges: { + _enum: { + Logs: "Vec", + Hashes: "Vec", + Empty: "Null" + } + }, + EthFilterTopic: { + _enum: { + Single: "EthFilterTopicInner", + Multiple: "Vec", + Null: "Null" + } + }, + EthFilterTopicEntry: "Option", + EthFilterTopicInner: { + _enum: { + Single: "EthFilterTopicEntry", + Multiple: "Vec", + Null: "Null" + } + }, + EthRichHeader: { + _alias: { + blockHash: "hash", + blockSize: "size" + }, + blockHash: "Option", + parentHash: "H256", + sha3Uncles: "H256", + author: "EthAddress", + miner: "EthAddress", + stateRoot: "H256", + transactionsRoot: "H256", + receiptsRoot: "H256", + number: "Option", + gasUsed: "U256", + gasLimit: "U256", + extraData: "Bytes", + logsBloom: "EthBloom", + timestamp: "U256", + difficulty: "U256", + sealFields: "Vec", + blockSize: "Option" + }, + EthLog: { + address: "EthAddress", + topics: "Vec", + data: "Bytes", + blockHash: "Option", + blockNumber: "Option", + transactionHash: "Option", + transactionIndex: "Option", + logIndex: "Option", + transactionLogIndex: "Option", + removed: "bool" + }, + EthReceipt: { + transactionHash: "Option", + transactionIndex: "Option", + blockHash: "Option", + from: "Option", + to: "Option", + blockNumber: "Option", + cumulativeGasUsed: "U256", + gasUsed: "Option", + contractAddress: "Option", + logs: "Vec", + root: "Option", + logsBloom: "EthBloom", + statusCode: "Option" + }, + EthReceiptV0: "EthReceipt", + EthReceiptV3: "EthReceipt", + EthStorageProof: { + key: "U256", + value: "U256", + proof: "Vec" + }, + EthSubKind: { + _enum: ["newHeads", "logs", "newPendingTransactions", "syncing"] + }, + EthSubParams: { + _enum: { + None: "Null", + Logs: "EthFilter" + } + }, + EthSubResult: { + _enum: { + Header: "EthRichHeader", + Log: "EthLog", + TransactionHash: "H256", + SyncState: "EthSyncStatus" + } + }, + EthSyncInfo: { + startingBlock: "U256", + currentBlock: "U256", + highestBlock: "U256", + warpChunksAmount: "Option", + warpChunksProcessed: "Option" + }, + EthSyncStatus: { + _enum: { + Info: "EthSyncInfo", + None: "Null" + } + }, + EthTransaction: { + hash: "H256", + nonce: "U256", + blockHash: "Option", + blockNumber: "Option", + transactionIndex: "Option", + from: "H160", + to: "Option", + value: "U256", + gasPrice: "Option", + maxFeePerGas: "Option", + maxPriorityFeePerGas: "Option", + gas: "U256", + input: "Bytes", + creates: "Option", + raw: "Bytes", + publicKey: "Option", + chainId: "Option", + standardV: "U256", + v: "U256", + r: "U256", + s: "U256", + accessList: "Option>", + transactionType: "Option" + }, + EthTransactionSignature: { + v: "u64", + r: "H256", + s: "H256" + }, + EthTransactionAction: { + _enum: { + Call: "H160", + Create: "Null" + } + }, + EthTransactionCondition: { + _enum: { + block: "u64", + time: "u64" + } + }, + EthTransactionRequest: { + from: "Option", + to: "Option", + gasPrice: "Option", + gas: "Option", + value: "Option", + data: "Option", + nonce: "Option" + }, + EthTransactionStatus: { + transactionHash: "H256", + transactionIndex: "u32", + from: "EthAddress", + to: "Option", + contractAddress: "Option", + logs: "Vec", + logsBloom: "EthBloom" + }, + EthWork: { + powHash: "H256", + seedHash: "H256", + target: "H256", + number: "Option" + } + }; + exports2.default = { rpc: rpc_js_1.rpc, runtime: runtime_js_1.runtime, types: types2 }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nimbus/runtime.js + var require_runtime29 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nimbus/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + AuthorFilterAPI: [ + { + methods: { + can_author: { + description: "The runtime api used to predict whether an author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + }, + { + name: "parentHeader", + type: "Header" + } + ], + type: "bool" + } + }, + version: 2 + }, + { + methods: { + can_author: { + description: "The runtime api used to predict whether an author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + } + ], + type: "bool" + } + }, + version: 1 + } + ], + NimbusApi: [ + { + methods: { + can_author: { + description: "The runtime api used to predict whether a Nimbus author will be eligible in the given slot", + params: [ + { + name: "author", + type: "AccountId" + }, + { + name: "relayParent", + type: "u32" + }, + { + name: "parentHeader", + type: "Header" + } + ], + type: "bool" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/nimbus/definitions.js + var require_definitions65 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/nimbus/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime29(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/runtime.js + var require_runtime30 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + OracleApi: [ + { + methods: { + get_all_values: { + description: "Retrieves all values", + params: [ + { + name: "providerId", + type: "Raw" + } + ], + type: "Raw" + }, + get_value: { + description: "Retrieves a single value", + params: [ + { + name: "providerId", + type: "Raw" + }, + { + name: "key", + type: "Raw" + } + ], + type: "Option" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/definitions.js + var require_definitions66 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlOracle/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime30(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/runtime.js + var require_runtime31 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + TokensApi: [ + { + methods: { + query_existential_deposit: { + description: "Query the existential amount for a specific currency", + params: [ + { + name: "currencyId", + type: "Raw" + } + ], + type: "u128" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/definitions.js + var require_definitions67 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/ormlTokens/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var runtime_js_1 = require_runtime31(); + exports2.default = { + rpc: {}, + runtime: runtime_js_1.runtime, + types: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/rpc/rpc.js + var require_rpc11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/rpc/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + methods: { + description: "Retrieves the list of RPC methods that are exposed by the node", + params: [], + type: "RpcMethods" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/rpc/definitions.js + var require_definitions68 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/rpc/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc11(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + RpcMethods: { + version: "u32", + methods: "Vec" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/author/rpc.js + var require_rpc12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/author/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + hasKey: { + description: "Returns true if the keystore has private keys for the given public key and key type.", + isUnsafe: true, + params: [ + { + name: "publicKey", + type: "Bytes" + }, + { + name: "keyType", + type: "Text" + } + ], + type: "bool" + }, + hasSessionKeys: { + description: "Returns true if the keystore has private keys for the given session public keys.", + isUnsafe: true, + params: [ + { + name: "sessionKeys", + type: "Bytes" + } + ], + type: "bool" + }, + insertKey: { + description: "Insert a key into the keystore.", + isUnsafe: true, + params: [ + { + name: "keyType", + type: "Text" + }, + { + name: "suri", + type: "Text" + }, + { + name: "publicKey", + type: "Bytes" + } + ], + type: "Bytes" + }, + pendingExtrinsics: { + description: "Returns all pending extrinsics, potentially grouped by sender", + params: [], + type: "Vec" + }, + removeExtrinsic: { + description: "Remove given extrinsic from the pool and temporarily ban it to prevent reimporting", + isUnsafe: true, + params: [ + { + name: "bytesOrHash", + type: "Vec" + } + ], + type: "Vec" + }, + rotateKeys: { + description: "Generate new session keys and returns the corresponding public keys", + isUnsafe: true, + params: [], + type: "Bytes" + }, + submitAndWatchExtrinsic: { + description: "Submit and subscribe to watch an extrinsic until unsubscribed", + isSigned: true, + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + pubsub: [ + "extrinsicUpdate", + "submitAndWatchExtrinsic", + "unwatchExtrinsic" + ], + type: "ExtrinsicStatus" + }, + submitExtrinsic: { + description: "Submit a fully formatted extrinsic for block inclusion", + isSigned: true, + params: [ + { + name: "extrinsic", + type: "Extrinsic" + } + ], + type: "Hash" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/author/definitions.js + var require_definitions69 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/author/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc12(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + ExtrinsicOrHash: { + _enum: { + Hash: "Hash", + Extrinsic: "Bytes" + } + }, + ExtrinsicStatus: { + _enum: { + Future: "Null", + Ready: "Null", + Broadcast: "Vec", + InBlock: "Hash", + Retracted: "Hash", + FinalityTimeout: "Hash", + Finalized: "Hash", + Usurped: "Hash", + Dropped: "Null", + Invalid: "Null" + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/chain/rpc.js + var require_rpc13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/chain/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getBlock: { + description: "Get header and body of a relay chain block", + params: [ + { + isHistoric: true, + isOptional: true, + name: "hash", + type: "BlockHash" + } + ], + type: "SignedBlock" + }, + getBlockHash: { + description: "Get the block hash for a specific block", + params: [ + { + isOptional: true, + name: "blockNumber", + type: "BlockNumber" + } + ], + type: "BlockHash" + }, + getFinalizedHead: { + alias: ["chain_getFinalisedHead"], + description: "Get hash of the last finalized block in the canon chain", + params: [], + type: "BlockHash" + }, + getHeader: { + alias: ["chain_getHead"], + description: "Retrieves the header for a specific block", + params: [ + { + isHistoric: true, + isOptional: true, + name: "hash", + type: "BlockHash" + } + ], + type: "Header" + }, + subscribeAllHeads: { + description: "Retrieves the newest header via subscription", + params: [], + pubsub: [ + "allHead", + "subscribeAllHeads", + "unsubscribeAllHeads" + ], + type: "Header" + }, + subscribeFinalizedHeads: { + alias: ["chain_subscribeFinalisedHeads", "chain_unsubscribeFinalisedHeads"], + description: "Retrieves the best finalized header via subscription", + params: [], + pubsub: [ + "finalizedHead", + "subscribeFinalizedHeads", + "unsubscribeFinalizedHeads" + ], + type: "Header" + }, + subscribeNewHeads: { + alias: ["chain_unsubscribeNewHeads", "subscribe_newHead", "unsubscribe_newHead"], + description: "Retrieves the best header via subscription", + params: [], + pubsub: [ + "newHead", + "subscribeNewHead", + "unsubscribeNewHead" + ], + type: "Header" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/chain/definitions.js + var require_definitions70 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/chain/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc13(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + BlockHash: "Hash" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/childstate/rpc.js + var require_rpc14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/childstate/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + getKeys: { + description: "Returns the keys with prefix from a child storage, leave empty to get all the keys", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "prefix", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec" + }, + getKeysPaged: { + alias: ["childstate_getKeysPagedAt"], + description: "Returns the keys with prefix from a child storage with pagination support", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "prefix", + type: "StorageKey" + }, + { + name: "count", + type: "u32" + }, + { + isOptional: true, + name: "startKey", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec" + }, + getStorage: { + description: "Returns a child storage entry at a specific block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + }, + getStorageEntries: { + description: "Returns child storage entries for multiple keys at a specific block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Vec>" + }, + getStorageHash: { + description: "Returns the hash of a child storage entry at a block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + }, + getStorageSize: { + description: "Returns the size of a child storage entry at a block state", + params: [ + { + name: "childKey", + type: "PrefixedStorageKey" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "Hash" + } + ], + type: "Option" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/childstate/definitions.js + var require_definitions71 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/childstate/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc14(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + PrefixedStorageKey: "StorageKey" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/rpc.js + var require_rpc15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + localStorageGet: { + description: "Get offchain local storage under given key and prefix", + isUnsafe: true, + params: [ + { + name: "kind", + type: "StorageKind" + }, + { + name: "key", + type: "Bytes" + } + ], + type: "Option" + }, + localStorageSet: { + description: "Set offchain local storage under given key and prefix", + isUnsafe: true, + params: [ + { + name: "kind", + type: "StorageKind" + }, + { + name: "key", + type: "Bytes" + }, + { + name: "value", + type: "Bytes" + } + ], + type: "Null" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/runtime.js + var require_runtime32 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + exports2.runtime = { + OffchainWorkerApi: [ + { + methods: { + offchain_worker: { + description: "Starts the off-chain task for given block header.", + params: [ + { + name: "header", + type: "Header" + } + ], + type: "Null" + } + }, + version: 2 + }, + { + methods: { + offchain_worker: { + description: "Starts the off-chain task for given block header.", + params: [ + { + name: "number", + type: "BlockNumber" + } + ], + type: "Null" + } + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/offchain/definitions.js + var require_definitions72 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/offchain/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc15(); + var runtime_js_1 = require_runtime32(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + StorageKind: { + _enum: { + PERSISTENT: 1, + LOCAL: 2 + } + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/rpc.js + var require_rpc16 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + queryFeeDetails: { + deprecated: "Use `api.call.transactionPaymentApi.queryFeeDetails` instead", + description: "Query the detailed fee of a given encoded extrinsic", + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "FeeDetails" + }, + queryInfo: { + deprecated: "Use `api.call.transactionPaymentApi.queryInfo` instead", + description: "Retrieves the fee information for an encoded extrinsic", + params: [ + { + name: "extrinsic", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "RuntimeDispatchInfoV1" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/runtime.js + var require_runtime33 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.runtime = void 0; + var V1_TO_V4_SHARED_PAY2 = { + query_fee_details: { + description: "The transaction fee details", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "FeeDetails" + } + }; + var V1_TO_V3_SHARED_CALL2 = { + query_call_fee_details: { + description: "The call fee details", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "FeeDetails" + } + }; + var V2_TO_V4_SHARED_PAY2 = { + query_info: { + description: "The transaction info", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + } + }; + var V2_V3_SHARED_CALL2 = { + query_call_info: { + description: "The call info", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + } + }; + var V3_SHARED_PAY_CALL2 = { + query_length_to_fee: { + description: "Query the output of the current LengthToFee given some input", + params: [ + { + name: "length", + type: "u32" + } + ], + type: "Balance" + }, + query_weight_to_fee: { + description: "Query the output of the current WeightToFee given some input", + params: [ + { + name: "weight", + type: "Weight" + } + ], + type: "Balance" + } + }; + exports2.runtime = { + TransactionPaymentApi: [ + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 4 + }, + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 3 + }, + { + methods: { + ...V2_TO_V4_SHARED_PAY2, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 2 + }, + { + methods: { + query_info: { + description: "The transaction info", + params: [ + { + name: "uxt", + type: "Extrinsic" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + }, + ...V1_TO_V4_SHARED_PAY2 + }, + version: 1 + } + ], + TransactionPaymentCallApi: [ + { + methods: { + ...V3_SHARED_PAY_CALL2, + ...V2_V3_SHARED_CALL2, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 3 + }, + { + methods: { + ...V2_V3_SHARED_CALL2, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 2 + }, + { + methods: { + CALL: { + description: "The call info", + params: [ + { + name: "call", + type: "Call" + }, + { + name: "len", + type: "u32" + } + ], + type: "RuntimeDispatchInfo" + }, + ...V1_TO_V3_SHARED_CALL2 + }, + version: 1 + } + ] + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/payment/definitions.js + var require_definitions73 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/payment/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc16(); + var runtime_js_1 = require_runtime33(); + exports2.default = { + rpc: rpc_js_1.rpc, + runtime: runtime_js_1.runtime, + types: { + FeeDetails: { + inclusionFee: "Option" + }, + InclusionFee: { + baseFee: "Balance", + lenFee: "Balance", + adjustedWeightFee: "Balance" + }, + RuntimeDispatchInfo: { + weight: "Weight", + class: "DispatchClass", + partialFee: "Balance" + }, + RuntimeDispatchInfoV1: { + weight: "WeightV1", + class: "DispatchClass", + partialFee: "Balance" + }, + RuntimeDispatchInfoV2: { + weight: "WeightV2", + class: "DispatchClass", + partialFee: "Balance" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/state/rpc.js + var require_rpc17 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/state/rpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.rpc = void 0; + exports2.rpc = { + call: { + alias: ["state_callAt"], + description: "Perform a call to a builtin on the chain", + params: [ + { + name: "method", + type: "Text" + }, + { + name: "data", + type: "Bytes" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Bytes" + }, + getChildKeys: { + description: "Retrieves the keys with prefix of a specific child storage", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getChildReadProof: { + description: "Returns proof of storage for child key entries at a specific block state.", + params: [ + { + name: "childStorageKey", + type: "PrefixedStorageKey" + }, + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ReadProof" + }, + getChildStorage: { + description: "Retrieves the child storage for a key", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "StorageData" + }, + getChildStorageHash: { + description: "Retrieves the child storage hash", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Hash" + }, + getChildStorageSize: { + description: "Retrieves the child storage size", + params: [ + { + name: "childStorageKey", + type: "StorageKey" + }, + { + name: "childDefinition", + type: "StorageKey" + }, + { + name: "childType", + type: "u32" + }, + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "u64" + }, + getKeys: { + deprecated: "Use `api.rpc.state.getKeysPaged` to retrieve keys", + description: "Retrieves the keys with a certain prefix", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getKeysPaged: { + alias: ["state_getKeysPagedAt"], + description: "Returns the keys with prefix with pagination support.", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + name: "count", + type: "u32" + }, + { + isOptional: true, + name: "startKey", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getMetadata: { + description: "Returns the runtime metadata", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Metadata" + }, + getPairs: { + deprecated: "Use `api.rpc.state.getKeysPaged` to retrieve keys", + description: "Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)", + isUnsafe: true, + params: [ + { + name: "prefix", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + getReadProof: { + description: "Returns proof of storage entries at a specific block state", + params: [ + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "ReadProof" + }, + getRuntimeVersion: { + alias: ["chain_getRuntimeVersion"], + description: "Get the runtime version", + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "RuntimeVersion" + }, + getStorage: { + alias: ["state_getStorageAt"], + description: "Retrieves the storage for a key", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "StorageData" + }, + getStorageHash: { + alias: ["state_getStorageHashAt"], + description: "Retrieves the storage hash", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Hash" + }, + getStorageSize: { + alias: ["state_getStorageSizeAt"], + description: "Retrieves the storage size", + params: [ + { + name: "key", + type: "StorageKey" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "u64" + }, + queryStorage: { + description: "Query historical storage entries (by key) starting from a start block", + isUnsafe: true, + params: [ + { + name: "keys", + type: "Vec" + }, + { + name: "fromBlock", + type: "Hash" + }, + { + isOptional: true, + name: "toBlock", + type: "BlockHash" + } + ], + type: "Vec" + }, + queryStorageAt: { + description: "Query storage entries (by key) starting at block hash given as the second parameter", + params: [ + { + name: "keys", + type: "Vec" + }, + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "Vec" + }, + subscribeRuntimeVersion: { + alias: ["chain_subscribeRuntimeVersion", "chain_unsubscribeRuntimeVersion"], + description: "Retrieves the runtime version via subscription", + params: [], + pubsub: [ + "runtimeVersion", + "subscribeRuntimeVersion", + "unsubscribeRuntimeVersion" + ], + type: "RuntimeVersion" + }, + subscribeStorage: { + description: "Subscribes to storage changes for the provided keys", + params: [ + { + isOptional: true, + name: "keys", + type: "Vec" + } + ], + pubsub: [ + "storage", + "subscribeStorage", + "unsubscribeStorage" + ], + type: "StorageChangeSet" + }, + traceBlock: { + description: "Provides a way to trace the re-execution of a single block", + isUnsafe: true, + params: [ + { + name: "block", + type: "Hash" + }, + { + name: "targets", + type: "Option" + }, + { + name: "storageKeys", + type: "Option" + }, + { + name: "methods", + type: "Option" + } + ], + type: "TraceBlockResponse" + }, + trieMigrationStatus: { + description: "Check current migration state", + isUnsafe: true, + params: [ + { + isHistoric: true, + isOptional: true, + name: "at", + type: "BlockHash" + } + ], + type: "MigrationStatusResult" + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/state/definitions.js + var require_definitions74 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/state/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var rpc_js_1 = require_rpc17(); + exports2.default = { + rpc: rpc_js_1.rpc, + types: { + ApiId: "[u8; 8]", + BlockTrace: { + blockHash: "Text", + parentHash: "Text", + tracingTargets: "Text", + storageKeys: "Text", + spans: "Vec", + events: "Vec" + }, + BlockTraceEvent: { + target: "Text", + data: "BlockTraceEventData", + parentId: "Option" + }, + BlockTraceEventData: { + stringValues: "HashMap" + }, + BlockTraceSpan: { + id: "u64", + parentId: "Option", + name: "Text", + target: "Text", + wasm: "bool" + }, + KeyValueOption: "(StorageKey, Option)", + MigrationStatusResult: { + topRemainingToMigrate: "u64", + childRemainingToMigrate: "u64" + }, + ReadProof: { + at: "Hash", + proof: "Vec" + }, + RuntimeVersionApi: "(ApiId, u32)", + RuntimeVersion: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec", + transactionVersion: "u32", + stateVersion: "u8" + }, + RuntimeVersionPre4: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec", + transactionVersion: "u32" + }, + RuntimeVersionPre3: { + specName: "Text", + implName: "Text", + authoringVersion: "u32", + specVersion: "u32", + implVersion: "u32", + apis: "Vec" + }, + RuntimeVersionPartial: { + specName: "Text", + specVersion: "u32", + apis: "Vec" + }, + SpecVersion: "u32", + StorageChangeSet: { + block: "Hash", + changes: "Vec" + }, + TraceBlockResponse: { + _enum: { + TraceError: "TraceError", + BlockTrace: "BlockTrace" + } + }, + TraceError: { + error: "Text" + } + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/definitions.js + var require_definitions75 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/definitions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.attestations = exports2.vesting = exports2.utility = exports2.uniques = exports2.txqueue = exports2.txpayment = exports2.treasury = exports2.system = exports2.syncstate = exports2.support = exports2.statement = exports2.staking = exports2.society = exports2.session = exports2.scheduler = exports2.recovery = exports2.proxy = exports2.pow = exports2.offences = exports2.nompools = exports2.nfts = exports2.mmr = exports2.mixnet = exports2.lottery = exports2.imOnline = exports2.identity = exports2.grandpa = exports2.gilt = exports2.genesisBuilder = exports2.genericAsset = exports2.fungibles = exports2.extrinsics = exports2.evm = exports2.engine = exports2.elections = exports2.discovery = exports2.dev = exports2.democracy = exports2.contracts = exports2.consensus = exports2.collective = exports2.blockbuilder = exports2.benchmark = exports2.beefy = exports2.balances = exports2.babe = exports2.authorship = exports2.aura = exports2.assets = exports2.assetConversion = void 0; + exports2.state = exports2.payment = exports2.offchain = exports2.childstate = exports2.chain = exports2.author = exports2.rpc = exports2.ormlTokens = exports2.ormlOracle = exports2.nimbus = exports2.eth = exports2.contractsAbi = exports2.xcm = exports2.purchase = exports2.poll = exports2.parachains = exports2.finality = exports2.cumulus = exports2.crowdloan = exports2.claims = exports2.bridges = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_essentials(), exports2); + var definitions_js_1 = require_definitions4(); + Object.defineProperty(exports2, "assetConversion", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_1).default; + } }); + var definitions_js_2 = require_definitions5(); + Object.defineProperty(exports2, "assets", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_2).default; + } }); + var definitions_js_3 = require_definitions6(); + Object.defineProperty(exports2, "aura", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_3).default; + } }); + var definitions_js_4 = require_definitions7(); + Object.defineProperty(exports2, "authorship", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_4).default; + } }); + var definitions_js_5 = require_definitions8(); + Object.defineProperty(exports2, "babe", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_5).default; + } }); + var definitions_js_6 = require_definitions9(); + Object.defineProperty(exports2, "balances", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_6).default; + } }); + var definitions_js_7 = require_definitions10(); + Object.defineProperty(exports2, "beefy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_7).default; + } }); + var definitions_js_8 = require_definitions11(); + Object.defineProperty(exports2, "benchmark", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_8).default; + } }); + var definitions_js_9 = require_definitions12(); + Object.defineProperty(exports2, "blockbuilder", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_9).default; + } }); + var definitions_js_10 = require_definitions13(); + Object.defineProperty(exports2, "collective", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_10).default; + } }); + var definitions_js_11 = require_definitions14(); + Object.defineProperty(exports2, "consensus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_11).default; + } }); + var definitions_js_12 = require_definitions15(); + Object.defineProperty(exports2, "contracts", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_12).default; + } }); + var definitions_js_13 = require_definitions16(); + Object.defineProperty(exports2, "democracy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_13).default; + } }); + var definitions_js_14 = require_definitions17(); + Object.defineProperty(exports2, "dev", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_14).default; + } }); + var definitions_js_15 = require_definitions18(); + Object.defineProperty(exports2, "discovery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_15).default; + } }); + var definitions_js_16 = require_definitions19(); + Object.defineProperty(exports2, "elections", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_16).default; + } }); + var definitions_js_17 = require_definitions20(); + Object.defineProperty(exports2, "engine", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_17).default; + } }); + var definitions_js_18 = require_definitions21(); + Object.defineProperty(exports2, "evm", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_18).default; + } }); + var definitions_js_19 = require_definitions22(); + Object.defineProperty(exports2, "extrinsics", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_19).default; + } }); + var definitions_js_20 = require_definitions23(); + Object.defineProperty(exports2, "fungibles", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_20).default; + } }); + var definitions_js_21 = require_definitions24(); + Object.defineProperty(exports2, "genericAsset", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_21).default; + } }); + var definitions_js_22 = require_definitions25(); + Object.defineProperty(exports2, "genesisBuilder", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_22).default; + } }); + var definitions_js_23 = require_definitions26(); + Object.defineProperty(exports2, "gilt", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_23).default; + } }); + var definitions_js_24 = require_definitions27(); + Object.defineProperty(exports2, "grandpa", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_24).default; + } }); + var definitions_js_25 = require_definitions28(); + Object.defineProperty(exports2, "identity", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_25).default; + } }); + var definitions_js_26 = require_definitions29(); + Object.defineProperty(exports2, "imOnline", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_26).default; + } }); + var definitions_js_27 = require_definitions30(); + Object.defineProperty(exports2, "lottery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_27).default; + } }); + var definitions_js_28 = require_definitions31(); + Object.defineProperty(exports2, "mixnet", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_28).default; + } }); + var definitions_js_29 = require_definitions32(); + Object.defineProperty(exports2, "mmr", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_29).default; + } }); + var definitions_js_30 = require_definitions33(); + Object.defineProperty(exports2, "nfts", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_30).default; + } }); + var definitions_js_31 = require_definitions34(); + Object.defineProperty(exports2, "nompools", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_31).default; + } }); + var definitions_js_32 = require_definitions35(); + Object.defineProperty(exports2, "offences", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_32).default; + } }); + var definitions_js_33 = require_definitions36(); + Object.defineProperty(exports2, "pow", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_33).default; + } }); + var definitions_js_34 = require_definitions37(); + Object.defineProperty(exports2, "proxy", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_34).default; + } }); + var definitions_js_35 = require_definitions38(); + Object.defineProperty(exports2, "recovery", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_35).default; + } }); + var definitions_js_36 = require_definitions39(); + Object.defineProperty(exports2, "scheduler", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_36).default; + } }); + var definitions_js_37 = require_definitions40(); + Object.defineProperty(exports2, "session", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_37).default; + } }); + var definitions_js_38 = require_definitions41(); + Object.defineProperty(exports2, "society", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_38).default; + } }); + var definitions_js_39 = require_definitions42(); + Object.defineProperty(exports2, "staking", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_39).default; + } }); + var definitions_js_40 = require_definitions43(); + Object.defineProperty(exports2, "statement", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_40).default; + } }); + var definitions_js_41 = require_definitions44(); + Object.defineProperty(exports2, "support", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_41).default; + } }); + var definitions_js_42 = require_definitions45(); + Object.defineProperty(exports2, "syncstate", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_42).default; + } }); + var definitions_js_43 = require_definitions46(); + Object.defineProperty(exports2, "system", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_43).default; + } }); + var definitions_js_44 = require_definitions47(); + Object.defineProperty(exports2, "treasury", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_44).default; + } }); + var definitions_js_45 = require_definitions48(); + Object.defineProperty(exports2, "txpayment", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_45).default; + } }); + var definitions_js_46 = require_definitions49(); + Object.defineProperty(exports2, "txqueue", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_46).default; + } }); + var definitions_js_47 = require_definitions50(); + Object.defineProperty(exports2, "uniques", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_47).default; + } }); + var definitions_js_48 = require_definitions51(); + Object.defineProperty(exports2, "utility", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_48).default; + } }); + var definitions_js_49 = require_definitions52(); + Object.defineProperty(exports2, "vesting", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_49).default; + } }); + var definitions_js_50 = require_definitions53(); + Object.defineProperty(exports2, "attestations", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_50).default; + } }); + var definitions_js_51 = require_definitions54(); + Object.defineProperty(exports2, "bridges", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_51).default; + } }); + var definitions_js_52 = require_definitions55(); + Object.defineProperty(exports2, "claims", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_52).default; + } }); + var definitions_js_53 = require_definitions56(); + Object.defineProperty(exports2, "crowdloan", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_53).default; + } }); + var definitions_js_54 = require_definitions57(); + Object.defineProperty(exports2, "cumulus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_54).default; + } }); + var definitions_js_55 = require_definitions58(); + Object.defineProperty(exports2, "finality", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_55).default; + } }); + var definitions_js_56 = require_definitions59(); + Object.defineProperty(exports2, "parachains", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_56).default; + } }); + var definitions_js_57 = require_definitions60(); + Object.defineProperty(exports2, "poll", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_57).default; + } }); + var definitions_js_58 = require_definitions61(); + Object.defineProperty(exports2, "purchase", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_58).default; + } }); + var definitions_js_59 = require_definitions62(); + Object.defineProperty(exports2, "xcm", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_59).default; + } }); + var definitions_js_60 = require_definitions63(); + Object.defineProperty(exports2, "contractsAbi", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_60).default; + } }); + var definitions_js_61 = require_definitions64(); + Object.defineProperty(exports2, "eth", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_61).default; + } }); + var definitions_js_62 = require_definitions65(); + Object.defineProperty(exports2, "nimbus", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_62).default; + } }); + var definitions_js_63 = require_definitions66(); + Object.defineProperty(exports2, "ormlOracle", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_63).default; + } }); + var definitions_js_64 = require_definitions67(); + Object.defineProperty(exports2, "ormlTokens", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_64).default; + } }); + var definitions_js_65 = require_definitions68(); + Object.defineProperty(exports2, "rpc", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_65).default; + } }); + var definitions_js_66 = require_definitions69(); + Object.defineProperty(exports2, "author", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_66).default; + } }); + var definitions_js_67 = require_definitions70(); + Object.defineProperty(exports2, "chain", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_67).default; + } }); + var definitions_js_68 = require_definitions71(); + Object.defineProperty(exports2, "childstate", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_68).default; + } }); + var definitions_js_69 = require_definitions72(); + Object.defineProperty(exports2, "offchain", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_69).default; + } }); + var definitions_js_70 = require_definitions73(); + Object.defineProperty(exports2, "payment", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_70).default; + } }); + var definitions_js_71 = require_definitions74(); + Object.defineProperty(exports2, "state", { enumerable: true, get: function() { + return tslib_1.__importDefault(definitions_js_71).default; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/jsonrpc.js + var require_jsonrpc = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var defs = tslib_1.__importStar(require_definitions75()); + var jsonrpc = {}; + Object.keys(defs).forEach((s) => Object.entries(defs[s].rpc || {}).forEach(([method, def]) => { + const section = def.aliasSection || s; + if (!jsonrpc[section]) { + jsonrpc[section] = {}; + } + jsonrpc[section][method] = (0, util_1.objectSpread)({}, def, { + isSubscription: !!def.pubsub, + jsonrpc: `${section}_${method}`, + method, + section + }); + })); + exports2.default = jsonrpc; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/PortableRegistry.js + var require_PortableRegistry = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/PortableRegistry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PortableRegistry = void 0; + var types_codec_1 = require_cjs8(); + var types_create_1 = require_cjs9(); + var util_1 = require_cjs3(); + var l15 = (0, util_1.logger)("PortableRegistry"); + var TYPE_UNWRAP2 = { toNumber: () => -1 }; + var PRIMITIVE_ALIAS2 = { + Char: "u32", + Str: "Text" + }; + var PATHS_ALIAS2 = splitNamespace2([ + "sp_core::crypto::AccountId32", + "sp_runtime::generic::era::Era", + "sp_runtime::multiaddress::MultiAddress", + "fp_account::AccountId20", + "account::AccountId20", + "polkadot_runtime_common::claims::EthereumAddress", + "frame_support::weights::weight_v2::Weight", + "sp_weights::weight_v2::Weight", + "*_democracy::vote::Vote", + "*_conviction_voting::vote::Vote", + "*_identity::types::Data", + "sp_core::OpaqueMetadata", + "sp_core::OpaquePeerId", + "sp_core::offchain::OpaqueMultiaddr", + "primitive_types::*", + "sp_arithmetic::per_things::*", + "*_runtime::RuntimeCall", + "*_runtime::RuntimeEvent", + "ink::env::types::*", + "ink::primitives::types::*", + "ink_env::types::*", + "ink_primitives::types::*", + "np_runtime::accountname::AccountName", + "np_runtime::universaladdress::UniversalAddress" + ]); + var PATHS_SET2 = splitNamespace2([ + "pallet_identity::types::BitFlags" + ]); + var BITVEC_NS_LSB2 = ["bitvec::order::Lsb0", "BitOrderLsb0"]; + var BITVEC_NS_MSB2 = ["bitvec::order::Msb0", "BitOrderMsb0"]; + var BITVEC_NS2 = [...BITVEC_NS_LSB2, ...BITVEC_NS_MSB2]; + var WRAPPERS2 = ["BoundedBTreeMap", "BoundedBTreeSet", "BoundedVec", "Box", "BTreeMap", "BTreeSet", "Cow", "Option", "Range", "RangeInclusive", "Result", "WeakBoundedVec", "WrapperKeepOpaque", "WrapperOpaque"]; + var RESERVED2 = [ + "entries", + "keys", + "new", + "size", + "hash", + "registry" + ]; + var PATH_RM_INDEX_12 = ["generic", "misc", "pallet", "traits", "types"]; + function sanitizeDocs2(docs) { + const count = docs.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = docs[i].toString(); + } + return result; + } + function splitNamespace2(values) { + const count = values.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = values[i].split("::"); + } + return result; + } + function matchParts2(first, second) { + return first.length === second.length && first.every((a, index) => { + const b = second[index].toString(); + if (a === "*" || a === b) { + return true; + } + if (a.includes("*") && a.includes("_") && b.includes("_")) { + let suba = a.split("_"); + let subb = b.split("_"); + if (suba[0] === "*") { + const indexOf = subb.indexOf(suba[1]); + if (indexOf !== -1) { + suba = suba.slice(1); + subb = subb.slice(indexOf); + } + } + if (suba.length === 2 && suba[1] === "*" && suba[0] === subb[0]) { + return true; + } + return matchParts2(suba, subb); + } + return false; + }); + } + function getAliasPath2({ def, path }) { + if (["frame_support::weights::weight_v2::Weight", "sp_weights::weight_v2::Weight"].includes(path.join("::"))) { + return !def.isComposite || def.asComposite.fields.length === 1 ? "WeightV1" : null; + } + return path.length && PATHS_ALIAS2.some((a) => matchParts2(a, path)) ? path[path.length - 1].toString() : null; + } + function extractNameFlat2(portable, lookupIndex, params, path, isInternal = false) { + const count = path.length; + if (count === 0 || WRAPPERS2.includes(path[count - 1].toString())) { + return null; + } + const camels = new Array(count); + const lowers = new Array(count); + for (let i = 0; i < count; i++) { + const c = (0, util_1.stringPascalCase)(isInternal ? path[i].replace("pallet_", "") : path[i]); + const l16 = c.toLowerCase(); + camels[i] = c; + lowers[i] = l16; + } + let name6 = ""; + for (let i = 0; i < count; i++) { + const l16 = lowers[i]; + if (i !== 1 || !PATH_RM_INDEX_12.includes(l16)) { + if (l16 !== lowers[i + 1]) { + name6 += camels[i]; + } + } + } + if (camels[1] === "RawOrigin" && count === 2 && params.length === 2 && params[1].type.isSome) { + const instanceType = portable[params[1].type.unwrap().toNumber()]; + if (instanceType.type.path.length === 2) { + name6 = `${name6}${instanceType.type.path[1].toString()}`; + } + } + return { lookupIndex, name: name6, params }; + } + function extractName2(portable, lookupIndex, { type: { params, path } }) { + return extractNameFlat2(portable, lookupIndex, params, path); + } + function nextDupeMatches2(name6, startAt, names2) { + const result = [names2[startAt]]; + for (let i = startAt + 1, count = names2.length; i < count; i++) { + const v = names2[i]; + if (v.name === name6) { + result.push(v); + } + } + return result; + } + function rewriteDupes2(input, rewrite) { + const count = input.length; + for (let i = 0; i < count; i++) { + const a = input[i]; + for (let j10 = i + 1; j10 < count; j10++) { + const b = input[j10]; + if (a.lookupIndex !== b.lookupIndex && a.name === b.name) { + return false; + } + } + } + for (let i = 0; i < count; i++) { + const p = input[i]; + rewrite[p.lookupIndex] = p.name; + } + return true; + } + function removeDupeNames2(lookup, portable, names2) { + const rewrite = {}; + return names2.map((original, startAt) => { + const { lookupIndex, name: name6, params } = original; + if (!name6) { + return null; + } else if (rewrite[lookupIndex]) { + return original; + } + const allSame = nextDupeMatches2(name6, startAt, names2); + if (allSame.length === 1) { + return original; + } + const anyDiff = allSame.some((o) => params.length !== o.params.length || params.some((p, index) => !p.name.eq(o.params[index].name) || p.type.unwrapOr(TYPE_UNWRAP2).toNumber() !== o.params[index].type.unwrapOr(TYPE_UNWRAP2).toNumber())); + if (!anyDiff) { + return original; + } + const paramIdx = params.findIndex(({ type }, index) => allSame.every(({ params: params2 }, aIndex) => params2[index].type.isSome && (aIndex === 0 || !params2[index].type.eq(type)))); + if (paramIdx === -1) { + return original; + } + const sameCount = allSame.length; + const adjusted = new Array(sameCount); + for (let i = 0; i < sameCount; i++) { + const { lookupIndex: lookupIndex2, name: name7, params: params2 } = allSame[i]; + const { def, path } = lookup.getSiType(params2[paramIdx].type.unwrap()); + if (!def.isPrimitive && !path.length) { + return null; + } + adjusted[i] = { + lookupIndex: lookupIndex2, + name: def.isPrimitive ? `${name7}${def.asPrimitive.toString()}` : `${name7}${path[path.length - 1].toString()}` + }; + } + if (rewriteDupes2(adjusted, rewrite)) { + return original; + } + for (let i = 0; i < sameCount; i++) { + const { lookupIndex: lookupIndex2, name: name7, params: params2 } = allSame[i]; + const { def, path } = lookup.getSiType(params2[paramIdx].type.unwrap()); + const flat2 = extractNameFlat2(portable, lookupIndex2, params2, path, true); + if (def.isPrimitive || !flat2) { + return null; + } + adjusted[i] = { + lookupIndex: lookupIndex2, + name: `${name7}${flat2.name}` + }; + } + if (rewriteDupes2(adjusted, rewrite)) { + return original; + } + return null; + }).filter((n) => !!n).map(({ lookupIndex, name: name6, params }) => ({ + lookupIndex, + name: rewrite[lookupIndex] || name6, + params + })); + } + function registerTypes2(lookup, lookups, names2, params) { + lookup.registry.register(lookups); + if (params.SpRuntimeUncheckedExtrinsic) { + const [addrParam, , sigParam] = params.SpRuntimeUncheckedExtrinsic; + const siAddress = lookup.getSiType(addrParam.type.unwrap()); + const siSignature = lookup.getSiType(sigParam.type.unwrap()); + const nsSignature = siSignature.path.join("::"); + let nsAccountId = siAddress.path.join("::"); + const isMultiAddress = nsAccountId === "sp_runtime::multiaddress::MultiAddress"; + if (isMultiAddress) { + const [idParam] = siAddress.params; + nsAccountId = lookup.getSiType(idParam.type.unwrap()).path.join("::"); + } + lookup.registry.register({ + AccountId: nsAccountId.endsWith("::AccountId20") || nsAccountId.endsWith("::H160") ? "AccountId20" : "AccountId32", + Address: isMultiAddress ? "MultiAddress" : "AccountId", + ExtrinsicSignature: ["sp_runtime::MultiSignature"].includes(nsSignature) ? "MultiSignature" : names2[sigParam.type.unwrap().toNumber()] || "MultiSignature" + }); + } + } + function extractAliases2(params, isContract) { + const hasParams = Object.keys(params).some((k) => !k.startsWith("Pallet")); + const alias2 = {}; + if (params.SpRuntimeUncheckedExtrinsic) { + const [, { type }] = params.SpRuntimeUncheckedExtrinsic; + alias2[type.unwrap().toNumber()] = "Call"; + } else if (hasParams && !isContract) { + l15.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic"); + } + if (params.FrameSystemEventRecord) { + const [{ type }] = params.FrameSystemEventRecord; + alias2[type.unwrap().toNumber()] = "Event"; + } else if (hasParams && !isContract) { + l15.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord"); + } + return alias2; + } + function extractTypeInfo2(lookup, portable) { + const nameInfo = []; + const types2 = {}; + for (let i = 0, count = portable.length; i < count; i++) { + const type = portable[i]; + const lookupIndex = type.id.toNumber(); + const extracted = extractName2(portable, lookupIndex, portable[i]); + if (extracted) { + nameInfo.push(extracted); + } + types2[lookupIndex] = type; + } + const lookups = {}; + const names2 = {}; + const params = {}; + const dedup = removeDupeNames2(lookup, portable, nameInfo); + for (let i = 0, count = dedup.length; i < count; i++) { + const { lookupIndex, name: name6, params: p } = dedup[i]; + names2[lookupIndex] = name6; + lookups[name6] = lookup.registry.createLookupType(lookupIndex); + params[name6] = p; + } + return { lookups, names: names2, params, types: types2 }; + } + var PortableRegistry2 = class extends types_codec_1.Struct { + __internal__alias; + __internal__lookups; + __internal__names; + __internal__params; + __internal__typeDefs = {}; + __internal__types; + constructor(registry, value, isContract) { + super(registry, { + types: "Vec" + }, value); + const { lookups, names: names2, params, types: types2 } = extractTypeInfo2(this, this.types); + this.__internal__alias = extractAliases2(params, isContract); + this.__internal__lookups = lookups; + this.__internal__names = names2; + this.__internal__params = params; + this.__internal__types = types2; + } + get names() { + return Object.values(this.__internal__names).sort(); + } + get paramTypes() { + return this.__internal__params; + } + get types() { + return this.getT("types"); + } + register() { + registerTypes2(this, this.__internal__lookups, this.__internal__names, this.__internal__params); + } + getName(lookupId) { + return this.__internal__names[this.__internal__getLookupId(lookupId)]; + } + getSiType(lookupId) { + const found = (this.__internal__types || this.types)[this.__internal__getLookupId(lookupId)]; + if (!found) { + throw new Error(`PortableRegistry: Unable to find type with lookupId ${lookupId.toString()}`); + } + return found.type; + } + getTypeDef(lookupId) { + const lookupIndex = this.__internal__getLookupId(lookupId); + if (!this.__internal__typeDefs[lookupIndex]) { + const lookupName = this.__internal__names[lookupIndex]; + const empty = { + info: types_create_1.TypeDefInfo.DoNotConstruct, + lookupIndex, + lookupName, + type: this.registry.createLookupType(lookupIndex) + }; + if (lookupName) { + this.__internal__typeDefs[lookupIndex] = empty; + } + const extracted = this.__internal__extract(this.getSiType(lookupId), lookupIndex); + if (!lookupName) { + this.__internal__typeDefs[lookupIndex] = empty; + } + Object.keys(extracted).forEach((k) => { + if (k !== "lookupName" || extracted[k]) { + this.__internal__typeDefs[lookupIndex][k] = extracted[k]; + } + }); + if (extracted.info === types_create_1.TypeDefInfo.Plain) { + this.__internal__typeDefs[lookupIndex].lookupNameRoot = this.__internal__typeDefs[lookupIndex].lookupName; + delete this.__internal__typeDefs[lookupIndex].lookupName; + } + } + return this.__internal__typeDefs[lookupIndex]; + } + sanitizeField(name6) { + let nameField = null; + let nameOrig = null; + if (name6.isSome) { + nameField = (0, util_1.stringCamelCase)(name6.unwrap()); + if (nameField.includes("#")) { + nameOrig = nameField; + nameField = nameOrig.replace(/#/g, "_"); + } else if (RESERVED2.includes(nameField)) { + nameOrig = nameField; + nameField = `${nameField}_`; + } + } + return [nameField, nameOrig]; + } + __internal__createSiDef(lookupId) { + const typeDef = this.getTypeDef(lookupId); + const lookupIndex = lookupId.toNumber(); + return [types_create_1.TypeDefInfo.DoNotConstruct, types_create_1.TypeDefInfo.Enum, types_create_1.TypeDefInfo.Struct].includes(typeDef.info) && typeDef.lookupName ? { + docs: typeDef.docs, + info: types_create_1.TypeDefInfo.Si, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + type: this.registry.createLookupType(lookupId) + } : typeDef; + } + __internal__getLookupId(lookupId) { + if ((0, util_1.isString)(lookupId)) { + if (!this.registry.isLookupType(lookupId)) { + throw new Error(`PortableRegistry: Expected a lookup string type, found ${lookupId}`); + } + return parseInt(lookupId.replace("Lookup", ""), 10); + } else if ((0, util_1.isNumber)(lookupId)) { + return lookupId; + } + return lookupId.toNumber(); + } + __internal__extract(type, lookupIndex) { + const namespace = type.path.join("::"); + let typeDef; + const aliasType = this.__internal__alias[lookupIndex] || getAliasPath2(type); + try { + if (aliasType) { + typeDef = this.__internal__extractAliasPath(lookupIndex, aliasType); + } else { + switch (type.def.type) { + case "Array": + typeDef = this.__internal__extractArray(lookupIndex, type.def.asArray); + break; + case "BitSequence": + typeDef = this.__internal__extractBitSequence(lookupIndex, type.def.asBitSequence); + break; + case "Compact": + typeDef = this.__internal__extractCompact(lookupIndex, type.def.asCompact); + break; + case "Composite": + typeDef = this.__internal__extractComposite(lookupIndex, type, type.def.asComposite); + break; + case "HistoricMetaCompat": + typeDef = this.__internal__extractHistoric(lookupIndex, type.def.asHistoricMetaCompat); + break; + case "Primitive": + typeDef = this.__internal__extractPrimitive(lookupIndex, type); + break; + case "Sequence": + typeDef = this.__internal__extractSequence(lookupIndex, type.def.asSequence); + break; + case "Tuple": + typeDef = this.__internal__extractTuple(lookupIndex, type.def.asTuple); + break; + case "Variant": + typeDef = this.__internal__extractVariant(lookupIndex, type, type.def.asVariant); + break; + default: + (0, util_1.assertUnreachable)(type.def.type); + } + } + } catch (error) { + throw new Error(`PortableRegistry: ${lookupIndex}${namespace ? ` (${namespace})` : ""}: Error extracting ${(0, util_1.stringify)(type)}: ${error.message}`); + } + return (0, util_1.objectSpread)({ + docs: sanitizeDocs2(type.docs), + namespace + }, typeDef); + } + __internal__extractArray(_, { len, type }) { + const length = len.toNumber(); + if (length > 2048) { + throw new Error("Only support for [Type; ], where length <= 2048"); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.VecFixed, + length, + sub: this.__internal__createSiDef(type) + }); + } + __internal__extractBitSequence(_, { bitOrderType, bitStoreType }) { + const a = this.__internal__createSiDef(bitOrderType); + const b = this.__internal__createSiDef(bitStoreType); + const [bitOrder, bitStore] = BITVEC_NS2.includes(a.namespace || "") ? [a, b] : [b, a]; + if (!bitOrder.namespace || !BITVEC_NS2.includes(bitOrder.namespace)) { + throw new Error(`Unexpected bitOrder found as ${bitOrder.namespace || ""}`); + } else if (bitStore.info !== types_create_1.TypeDefInfo.Plain || bitStore.type !== "u8") { + throw new Error(`Only u8 bitStore is currently supported, found ${bitStore.type}`); + } + const isLsb = BITVEC_NS_LSB2.includes(bitOrder.namespace); + if (!isLsb) { + } + return { + info: types_create_1.TypeDefInfo.Plain, + type: "BitVec" + }; + } + __internal__extractCompact(_, { type }) { + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Compact, + sub: this.__internal__createSiDef(type) + }); + } + __internal__extractComposite(lookupIndex, { params, path }, { fields }) { + if (path.length) { + const pathFirst = path[0].toString(); + const pathLast = path[path.length - 1].toString(); + if (path.length === 1 && pathFirst === "BTreeMap") { + if (params.length !== 2) { + throw new Error(`BTreeMap requires 2 parameters, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.BTreeMap, + sub: params.map(({ type }) => this.__internal__createSiDef(type.unwrap())) + }); + } else if (path.length === 1 && pathFirst === "BTreeSet") { + if (params.length !== 1) { + throw new Error(`BTreeSet requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.BTreeSet, + sub: this.__internal__createSiDef(params[0].type.unwrap()) + }); + } else if (["Range", "RangeInclusive"].includes(pathFirst)) { + if (params.length !== 1) { + throw new Error(`Range requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: pathFirst === "Range" ? types_create_1.TypeDefInfo.Range : types_create_1.TypeDefInfo.RangeInclusive, + sub: this.__internal__createSiDef(params[0].type.unwrap()), + type: pathFirst + }); + } else if (["WrapperKeepOpaque", "WrapperOpaque"].includes(pathLast)) { + if (params.length !== 1) { + throw new Error(`WrapperOpaque requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: pathLast === "WrapperKeepOpaque" ? types_create_1.TypeDefInfo.WrapperKeepOpaque : types_create_1.TypeDefInfo.WrapperOpaque, + sub: this.__internal__createSiDef(params[0].type.unwrap()), + type: pathLast + }); + } + } + return PATHS_SET2.some((p) => matchParts2(p, path)) ? this.__internal__extractCompositeSet(lookupIndex, params, fields) : this.__internal__extractFields(lookupIndex, fields); + } + __internal__extractCompositeSet(_, params, fields) { + if (params.length !== 1 || fields.length !== 1) { + throw new Error("Set handling expects param/field as single entries"); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Set, + length: this.registry.createTypeUnsafe(this.registry.createLookupType(fields[0].type), []).bitLength(), + sub: this.getSiType(params[0].type.unwrap()).def.asVariant.variants.map(({ index, name: name6 }) => ({ + index: index.toNumber(), + info: types_create_1.TypeDefInfo.Plain, + name: name6.toString(), + type: "Null" + })) + }); + } + __internal__extractFields(lookupIndex, fields) { + let isStruct = true; + let isTuple = true; + const count = fields.length; + for (let f10 = 0; f10 < count; f10++) { + const { name: name6 } = fields[f10]; + isStruct = isStruct && name6.isSome; + isTuple = isTuple && name6.isNone; + } + if (!isTuple && !isStruct) { + throw new Error("Invalid fields type detected, expected either Tuple (all unnamed) or Struct (all named)"); + } + if (count === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } else if (isTuple && count === 1) { + const typeDef = this.__internal__createSiDef(fields[0].type); + return (0, util_1.objectSpread)({}, typeDef, lookupIndex === -1 ? null : { + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + lookupNameRoot: typeDef.lookupName + }, fields[0].typeName.isSome ? { typeName: (0, types_codec_1.sanitize)(fields[0].typeName.unwrap()) } : null); + } + const [sub, alias2] = this.__internal__extractFieldsAlias(fields); + return (0, types_create_1.withTypeString)(this.registry, (0, util_1.objectSpread)({ + info: isTuple ? types_create_1.TypeDefInfo.Tuple : types_create_1.TypeDefInfo.Struct, + sub + }, alias2.size ? { alias: alias2 } : null, lookupIndex === -1 ? null : { + lookupIndex, + lookupName: this.__internal__names[lookupIndex] + })); + } + __internal__extractFieldsAlias(fields) { + const alias2 = /* @__PURE__ */ new Map(); + const count = fields.length; + const sub = new Array(count); + for (let i = 0; i < count; i++) { + const { docs, name: name6, type, typeName } = fields[i]; + const typeDef = this.__internal__createSiDef(type); + if (name6.isNone) { + sub[i] = typeDef; + } else { + const [nameField, nameOrig] = this.sanitizeField(name6); + if (nameField && nameOrig) { + alias2.set(nameField, nameOrig); + } + sub[i] = (0, util_1.objectSpread)({ + docs: sanitizeDocs2(docs), + name: nameField + }, typeDef, typeName.isSome ? { typeName: (0, types_codec_1.sanitize)(typeName.unwrap()) } : null); + } + } + return [sub, alias2]; + } + __internal__extractHistoric(_, type) { + return (0, util_1.objectSpread)({ + displayName: type.toString(), + isFromSi: true + }, (0, types_create_1.getTypeDef)(type)); + } + __internal__extractPrimitive(_, type) { + const typeStr = type.def.asPrimitive.type.toString(); + return { + info: types_create_1.TypeDefInfo.Plain, + type: PRIMITIVE_ALIAS2[typeStr] || typeStr.toLowerCase() + }; + } + __internal__extractAliasPath(_, type) { + return { + info: types_create_1.TypeDefInfo.Plain, + type + }; + } + __internal__extractSequence(lookupIndex, { type }) { + const sub = this.__internal__createSiDef(type); + if (sub.type === "u8") { + return { + info: types_create_1.TypeDefInfo.Plain, + type: "Bytes" + }; + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Vec, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + __internal__extractTuple(lookupIndex, ids) { + if (ids.length === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } else if (ids.length === 1) { + return this.getTypeDef(ids[0]); + } + const sub = ids.map((t) => this.__internal__createSiDef(t)); + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Tuple, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + __internal__extractVariant(lookupIndex, { params, path }, { variants }) { + if (path.length) { + const specialVariant = path[0].toString(); + if (specialVariant === "Option") { + if (params.length !== 1) { + throw new Error(`Option requires 1 parameter, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Option, + sub: this.__internal__createSiDef(params[0].type.unwrap()) + }); + } else if (specialVariant === "Result") { + if (params.length !== 2) { + throw new Error(`Result requires 2 parameters, found ${params.length}`); + } + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Result, + sub: params.map(({ type }, index) => (0, util_1.objectSpread)({ + name: ["Ok", "Error"][index] + }, this.__internal__createSiDef(type.unwrap()))) + }); + } + } + if (variants.length === 0) { + return { + info: types_create_1.TypeDefInfo.Null, + type: "Null" + }; + } + return this.__internal__extractVariantEnum(lookupIndex, variants); + } + __internal__extractVariantEnum(lookupIndex, variants) { + const sub = []; + variants.slice().sort((a, b) => a.index.cmp(b.index)).forEach(({ fields, index: bnIndex, name: name6 }) => { + const index = bnIndex.toNumber(); + while (sub.length !== index) { + sub.push({ + index: sub.length, + info: types_create_1.TypeDefInfo.Null, + name: `__Unused${sub.length}`, + type: "Null" + }); + } + sub.push((0, util_1.objectSpread)(this.__internal__extractFields(-1, fields), { + index, + name: name6.toString() + })); + }); + return (0, types_create_1.withTypeString)(this.registry, { + info: types_create_1.TypeDefInfo.Enum, + lookupIndex, + lookupName: this.__internal__names[lookupIndex], + sub + }); + } + }; + exports2.PortableRegistry = PortableRegistry2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/toV1.js + var require_toV1 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/toV1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV1 = void 0; + var util_1 = require_cjs3(); + function convertType(key2) { + return (registry, { type }) => registry.createType("Si1TypeDef", { + [key2]: { + type: type.toNumber() + } + }); + } + function convertArray(registry, { len, type }) { + return registry.createType("Si1TypeDef", { + Array: { + len, + type: type.toNumber() + } + }); + } + function convertBitSequence(registry, { bitOrderType, bitStoreType }) { + return registry.createType("Si1TypeDef", { + BitSequence: { + bitOrderType: bitOrderType.toNumber(), + bitStoreType: bitStoreType.toNumber() + } + }); + } + var convertCompact = convertType("Compact"); + function convertComposite(registry, { fields }) { + return registry.createType("Si1TypeDef", { + Composite: { + fields: convertFields(registry, fields) + } + }); + } + function convertFields(registry, fields) { + return fields.map(({ docs, name: name6, type, typeName }) => registry.createType("Si1Field", { + docs, + name: name6, + type: type.toNumber(), + typeName + })); + } + function convertPhantom(registry, path) { + console.warn(`Converting phantom type ${path.map((p) => p.toString()).join("::")} to empty tuple`); + return registry.createType("Si1TypeDef", { + Tuple: [] + }); + } + function convertPrimitive(registry, prim) { + return registry.createType("Si1TypeDef", { + Primitive: prim.toString() + }); + } + var convertSequence = convertType("Sequence"); + function convertTuple(registry, types2) { + return registry.createType("Si1TypeDef", { + Tuple: types2.map((t) => t.toNumber()) + }); + } + function convertVariant(registry, { variants }) { + return registry.createType("Si1TypeDef", { + Variant: { + variants: variants.map(({ discriminant, docs, fields, name: name6 }, index) => registry.createType("Si1Variant", { + docs, + fields: convertFields(registry, fields), + index: discriminant.isSome ? discriminant.unwrap().toNumber() : index, + name: name6 + })) + } + }); + } + function convertDef(registry, { def, path }) { + let result; + switch (def.type) { + case "Array": + result = convertArray(registry, def.asArray); + break; + case "BitSequence": + result = convertBitSequence(registry, def.asBitSequence); + break; + case "Compact": + result = convertCompact(registry, def.asCompact); + break; + case "Composite": + result = convertComposite(registry, def.asComposite); + break; + case "Phantom": + result = convertPhantom(registry, path); + break; + case "Primitive": + result = convertPrimitive(registry, def.asPrimitive); + break; + case "Sequence": + result = convertSequence(registry, def.asSequence); + break; + case "Tuple": + result = convertTuple(registry, def.asTuple); + break; + case "Variant": + result = convertVariant(registry, def.asVariant); + break; + default: + (0, util_1.assertUnreachable)(def.type); + } + return result; + } + function toV1(registry, types2) { + return types2.map((t, index) => registry.createType("PortableType", { + id: index + 1, + type: { + def: convertDef(registry, t), + docs: [], + params: t.params.map((p) => registry.createType("Si1TypeParameter", { + type: p.toNumber() + })), + path: t.path.map((p) => p.toString()) + } + })); + } + exports2.toV1 = toV1; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/index.js + var require_PortableRegistry2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/PortableRegistry/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.convertSiV0toV1 = exports2.PortableRegistry = void 0; + var PortableRegistry_js_1 = require_PortableRegistry(); + Object.defineProperty(exports2, "PortableRegistry", { enumerable: true, get: function() { + return PortableRegistry_js_1.PortableRegistry; + } }); + var toV1_js_1 = require_toV1(); + Object.defineProperty(exports2, "convertSiV0toV1", { enumerable: true, get: function() { + return toV1_js_1.toV1; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/flattenUniq.js + var require_flattenUniq = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/flattenUniq.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flattenUniq = void 0; + function flattenUniq2(list, result = []) { + for (let i = 0, count = list.length; i < count; i++) { + const entry = list[i]; + if (Array.isArray(entry)) { + flattenUniq2(entry, result); + } else { + result.push(entry); + } + } + return [...new Set(result)]; + } + exports2.flattenUniq = flattenUniq2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/getSiName.js + var require_getSiName = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/getSiName.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSiName = void 0; + function getSiName2(lookup, type) { + const typeDef = lookup.getTypeDef(type); + return typeDef.lookupName || typeDef.type; + } + exports2.getSiName = getSiName2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/extractTypes.js + var require_extractTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/extractTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractTypes = void 0; + var types_create_1 = require_cjs9(); + function extractSubSingle2(_, { sub }) { + const { lookupName, type } = sub; + return extractTypes3([lookupName || type]); + } + function extractSubArray2(_, { sub }) { + return extractTypes3(sub.map(({ lookupName, type }) => lookupName || type)); + } + function unhandled2(type, { info }) { + throw new Error(`Unhandled: Unable to create and validate type from ${type} (info=${types_create_1.TypeDefInfo[info]})`); + } + var mapping2 = { + [types_create_1.TypeDefInfo.BTreeMap]: extractSubArray2, + [types_create_1.TypeDefInfo.BTreeSet]: extractSubSingle2, + [types_create_1.TypeDefInfo.Compact]: extractSubSingle2, + [types_create_1.TypeDefInfo.DoNotConstruct]: unhandled2, + [types_create_1.TypeDefInfo.Enum]: extractSubArray2, + [types_create_1.TypeDefInfo.HashMap]: extractSubArray2, + [types_create_1.TypeDefInfo.Int]: unhandled2, + [types_create_1.TypeDefInfo.Linkage]: extractSubSingle2, + [types_create_1.TypeDefInfo.Null]: unhandled2, + [types_create_1.TypeDefInfo.Option]: extractSubSingle2, + [types_create_1.TypeDefInfo.Plain]: (_, typeDef) => typeDef.lookupName || typeDef.type, + [types_create_1.TypeDefInfo.Range]: extractSubSingle2, + [types_create_1.TypeDefInfo.RangeInclusive]: extractSubSingle2, + [types_create_1.TypeDefInfo.Result]: extractSubArray2, + [types_create_1.TypeDefInfo.Set]: extractSubArray2, + [types_create_1.TypeDefInfo.Si]: unhandled2, + [types_create_1.TypeDefInfo.Struct]: extractSubArray2, + [types_create_1.TypeDefInfo.Tuple]: extractSubArray2, + [types_create_1.TypeDefInfo.UInt]: unhandled2, + [types_create_1.TypeDefInfo.Vec]: extractSubSingle2, + [types_create_1.TypeDefInfo.VecFixed]: extractSubSingle2, + [types_create_1.TypeDefInfo.WrapperKeepOpaque]: extractSubSingle2, + [types_create_1.TypeDefInfo.WrapperOpaque]: extractSubSingle2 + }; + function extractTypes3(types2) { + const count = types2.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const type = types2[i]; + const typeDef = (0, types_create_1.getTypeDef)(type); + result[i] = mapping2[typeDef.info](type, typeDef); + } + return result; + } + exports2.extractTypes = extractTypes3; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/validateTypes.js + var require_validateTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/validateTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTypes = void 0; + var util_1 = require_cjs3(); + var extractTypes_js_1 = require_extractTypes(); + var flattenUniq_js_1 = require_flattenUniq(); + var l15 = (0, util_1.logger)("metadata"); + function validateTypes2(registry, throwError, types2) { + const missing = (0, flattenUniq_js_1.flattenUniq)((0, extractTypes_js_1.extractTypes)(types2)).filter((type) => !registry.hasType(type) && !registry.isLookupType(type)).sort(); + if (missing.length !== 0) { + const message = `Unknown types found, no types for ${missing.join(", ")}`; + if (throwError) { + throw new Error(message); + } else { + l15.warn(message); + } + } + return types2; + } + exports2.validateTypes = validateTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/getUniqTypes.js + var require_getUniqTypes = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/getUniqTypes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUniqTypes = void 0; + var flattenUniq_js_1 = require_flattenUniq(); + var validateTypes_js_1 = require_validateTypes(); + function extractTypes3(lookup, types2) { + return types2.map(({ type }) => lookup.getTypeDef(type).type); + } + function extractFieldTypes2(lookup, type) { + return lookup.getSiType(type).def.asVariant.variants.map(({ fields }) => extractTypes3(lookup, fields)); + } + function getPalletNames2({ lookup, pallets }) { + return pallets.reduce((all, { calls, constants: constants2, events, storage }) => { + all.push([extractTypes3(lookup, constants2)]); + if (calls.isSome) { + all.push(extractFieldTypes2(lookup, calls.unwrap().type)); + } + if (events.isSome) { + all.push(extractFieldTypes2(lookup, events.unwrap().type)); + } + if (storage.isSome) { + all.push(storage.unwrap().items.map(({ type }) => { + if (type.isPlain) { + return [lookup.getTypeDef(type.asPlain).type]; + } + const { hashers, key: key2, value } = type.asMap; + return hashers.length === 1 ? [ + lookup.getTypeDef(value).type, + lookup.getTypeDef(key2).type + ] : [ + lookup.getTypeDef(value).type, + ...lookup.getSiType(key2).def.asTuple.map((t) => lookup.getTypeDef(t).type) + ]; + })); + } + return all; + }, []); + } + function getUniqTypes2(registry, meta2, throwError) { + return (0, validateTypes_js_1.validateTypes)(registry, throwError, (0, flattenUniq_js_1.flattenUniq)(getPalletNames2(meta2))); + } + exports2.getUniqTypes = getUniqTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/toCallsOnly.js + var require_toCallsOnly = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/toCallsOnly.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCallsOnly = void 0; + var util_1 = require_cjs3(); + function trimDocs2(docs) { + const strings = docs.map((d) => d.toString().trim()); + const firstEmpty = strings.findIndex((d) => !d.length); + return firstEmpty === -1 ? strings : strings.slice(0, firstEmpty); + } + function toCallsOnly2(registry, { extrinsic, lookup, pallets }) { + return registry.createTypeUnsafe("MetadataLatest", [{ + extrinsic, + lookup: { + types: lookup.types.map(({ id: id4, type }) => registry.createTypeUnsafe("PortableType", [{ + id: id4, + type: (0, util_1.objectSpread)({}, type, { docs: trimDocs2(type.docs) }) + }])) + }, + pallets: pallets.map(({ calls, index, name: name6 }) => ({ + calls: registry.createTypeUnsafe("Option", [calls.unwrapOr(null)]), + index, + name: name6 + })) + }]).toJSON(); + } + exports2.toCallsOnly = toCallsOnly2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/util/index.js + var require_util4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTypes = exports2.toCallsOnly = exports2.getUniqTypes = exports2.getSiName = exports2.flattenUniq = void 0; + var flattenUniq_js_1 = require_flattenUniq(); + Object.defineProperty(exports2, "flattenUniq", { enumerable: true, get: function() { + return flattenUniq_js_1.flattenUniq; + } }); + var getSiName_js_1 = require_getSiName(); + Object.defineProperty(exports2, "getSiName", { enumerable: true, get: function() { + return getSiName_js_1.getSiName; + } }); + var getUniqTypes_js_1 = require_getUniqTypes(); + Object.defineProperty(exports2, "getUniqTypes", { enumerable: true, get: function() { + return getUniqTypes_js_1.getUniqTypes; + } }); + var toCallsOnly_js_1 = require_toCallsOnly(); + Object.defineProperty(exports2, "toCallsOnly", { enumerable: true, get: function() { + return toCallsOnly_js_1.toCallsOnly; + } }); + var validateTypes_js_1 = require_validateTypes(); + Object.defineProperty(exports2, "validateTypes", { enumerable: true, get: function() { + return validateTypes_js_1.validateTypes; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/util/storage.js + var require_storage = __commonJS({ + "../../node_modules/@polkadot/types/cjs/util/storage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.unwrapStorageType = exports2.unwrapStorageSi = void 0; + var index_js_1 = require_util4(); + function unwrapStorageSi2(type) { + return type.isPlain ? type.asPlain : type.asMap.value; + } + exports2.unwrapStorageSi = unwrapStorageSi2; + function unwrapStorageType2(registry, type, isOptional) { + const outputType = (0, index_js_1.getSiName)(registry.lookup, unwrapStorageSi2(type)); + return isOptional ? `Option<${outputType}>` : outputType; + } + exports2.unwrapStorageType = unwrapStorageType2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/util/index.js + var require_util5 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_storage(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/codec/index.js + var require_codec2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/codec/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WrapperOpaque = exports2.WrapperKeepOpaque = exports2.VecFixed = exports2.Vec = exports2.UInt = exports2.U8aFixed = exports2.Tuple = exports2.Struct = exports2.Set = exports2.Result = exports2.Raw = exports2.RangeInclusive = exports2.Range = exports2.Option = exports2.Map = exports2.Linkage = exports2.Json = exports2.Int = exports2.HashMap = exports2.Enum = exports2.DoNotConstruct = exports2.Compact = exports2.CodecSet = exports2.CodecMap = exports2.BTreeSet = exports2.BTreeMap = void 0; + var types_codec_1 = require_cjs8(); + Object.defineProperty(exports2, "BTreeMap", { enumerable: true, get: function() { + return types_codec_1.BTreeMap; + } }); + Object.defineProperty(exports2, "BTreeSet", { enumerable: true, get: function() { + return types_codec_1.BTreeSet; + } }); + Object.defineProperty(exports2, "CodecMap", { enumerable: true, get: function() { + return types_codec_1.CodecMap; + } }); + Object.defineProperty(exports2, "CodecSet", { enumerable: true, get: function() { + return types_codec_1.CodecSet; + } }); + Object.defineProperty(exports2, "Compact", { enumerable: true, get: function() { + return types_codec_1.Compact; + } }); + Object.defineProperty(exports2, "DoNotConstruct", { enumerable: true, get: function() { + return types_codec_1.DoNotConstruct; + } }); + Object.defineProperty(exports2, "Enum", { enumerable: true, get: function() { + return types_codec_1.Enum; + } }); + Object.defineProperty(exports2, "HashMap", { enumerable: true, get: function() { + return types_codec_1.HashMap; + } }); + Object.defineProperty(exports2, "Int", { enumerable: true, get: function() { + return types_codec_1.Int; + } }); + Object.defineProperty(exports2, "Json", { enumerable: true, get: function() { + return types_codec_1.Json; + } }); + Object.defineProperty(exports2, "Linkage", { enumerable: true, get: function() { + return types_codec_1.Linkage; + } }); + Object.defineProperty(exports2, "Map", { enumerable: true, get: function() { + return types_codec_1.Map; + } }); + Object.defineProperty(exports2, "Option", { enumerable: true, get: function() { + return types_codec_1.Option; + } }); + Object.defineProperty(exports2, "Range", { enumerable: true, get: function() { + return types_codec_1.Range; + } }); + Object.defineProperty(exports2, "RangeInclusive", { enumerable: true, get: function() { + return types_codec_1.RangeInclusive; + } }); + Object.defineProperty(exports2, "Raw", { enumerable: true, get: function() { + return types_codec_1.Raw; + } }); + Object.defineProperty(exports2, "Result", { enumerable: true, get: function() { + return types_codec_1.Result; + } }); + Object.defineProperty(exports2, "Set", { enumerable: true, get: function() { + return types_codec_1.Set; + } }); + Object.defineProperty(exports2, "Struct", { enumerable: true, get: function() { + return types_codec_1.Struct; + } }); + Object.defineProperty(exports2, "Tuple", { enumerable: true, get: function() { + return types_codec_1.Tuple; + } }); + Object.defineProperty(exports2, "U8aFixed", { enumerable: true, get: function() { + return types_codec_1.U8aFixed; + } }); + Object.defineProperty(exports2, "UInt", { enumerable: true, get: function() { + return types_codec_1.UInt; + } }); + Object.defineProperty(exports2, "Vec", { enumerable: true, get: function() { + return types_codec_1.Vec; + } }); + Object.defineProperty(exports2, "VecFixed", { enumerable: true, get: function() { + return types_codec_1.VecFixed; + } }); + Object.defineProperty(exports2, "WrapperKeepOpaque", { enumerable: true, get: function() { + return types_codec_1.WrapperKeepOpaque; + } }); + Object.defineProperty(exports2, "WrapperOpaque", { enumerable: true, get: function() { + return types_codec_1.WrapperOpaque; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/createClass.js + var require_createClass = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/createClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClass = void 0; + var types_create_1 = require_cjs9(); + function createClass(registry, type) { + return (0, types_create_1.createClassUnsafe)(registry, type); + } + exports2.createClass = createClass; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/createType.js + var require_createType = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/createType.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createType = void 0; + var types_create_1 = require_cjs9(); + function createType(registry, type, ...params) { + return (0, types_create_1.createTypeUnsafe)(registry, type, params); + } + exports2.createType = createType; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/lazy.js + var require_lazy2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/lazy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lazyVariants = void 0; + var util_1 = require_cjs3(); + function lazyVariants2(lookup, { type }, getName, creator) { + const result = {}; + const variants = lookup.getSiType(type).def.asVariant.variants; + for (let i = 0, count = variants.length; i < count; i++) { + (0, util_1.lazyMethod)(result, variants[i], creator, getName, i); + } + return result; + } + exports2.lazyVariants = lazyVariants2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/emptyCheck.js + var require_emptyCheck = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/emptyCheck.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.emptyCheck = void 0; + exports2.emptyCheck = { + extrinsic: {}, + payload: {} + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/polkadot.js + var require_polkadot = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.polkadot = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + exports2.polkadot = { + LimitParathreadCommits: emptyCheck_js_1.emptyCheck, + OnlyStakingAndClaims: emptyCheck_js_1.emptyCheck, + PrevalidateAttests: emptyCheck_js_1.emptyCheck, + RestrictFunctionality: emptyCheck_js_1.emptyCheck, + TransactionCallFilter: emptyCheck_js_1.emptyCheck, + ValidateDoubleVoteReports: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/shell.js + var require_shell = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/shell.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.shell = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + exports2.shell = { + DisallowSigned: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/statemint.js + var require_statemint = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/statemint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.statemint = void 0; + exports2.statemint = { + ChargeAssetTxPayment: { + extrinsic: { + tip: "Compact", + assetId: "TAssetConversion" + }, + payload: {} + } + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/substrate.js + var require_substrate = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.substrate = void 0; + var emptyCheck_js_1 = require_emptyCheck(); + var CheckMortality2 = { + extrinsic: { + era: "ExtrinsicEra" + }, + payload: { + blockHash: "Hash" + } + }; + var ChargeTransactionPayment2 = { + extrinsic: { + tip: "Compact" + }, + payload: {} + }; + exports2.substrate = { + ChargeTransactionPayment: ChargeTransactionPayment2, + CheckBlockGasLimit: emptyCheck_js_1.emptyCheck, + CheckEra: CheckMortality2, + CheckGenesis: { + extrinsic: {}, + payload: { + genesisHash: "Hash" + } + }, + CheckMortality: CheckMortality2, + CheckNonZeroSender: emptyCheck_js_1.emptyCheck, + CheckNonce: { + extrinsic: { + nonce: "Compact" + }, + payload: {} + }, + CheckSpecVersion: { + extrinsic: {}, + payload: { + specVersion: "u32" + } + }, + CheckTxVersion: { + extrinsic: {}, + payload: { + transactionVersion: "u32" + } + }, + CheckVersion: { + extrinsic: {}, + payload: { + specVersion: "u32" + } + }, + CheckWeight: emptyCheck_js_1.emptyCheck, + LockStakingStatus: emptyCheck_js_1.emptyCheck, + SkipCheckIfFeeless: ChargeTransactionPayment2, + ValidateEquivocationReport: emptyCheck_js_1.emptyCheck + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/index.js + var require_signedExtensions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/signedExtensions/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.expandExtensionTypes = exports2.findUnknownExtensions = exports2.fallbackExtensions = exports2.allExtensions = void 0; + var util_1 = require_cjs3(); + var polkadot_js_1 = require_polkadot(); + var shell_js_1 = require_shell(); + var statemint_js_1 = require_statemint(); + var substrate_js_1 = require_substrate(); + exports2.allExtensions = (0, util_1.objectSpread)({}, substrate_js_1.substrate, polkadot_js_1.polkadot, shell_js_1.shell, statemint_js_1.statemint); + exports2.fallbackExtensions = [ + "CheckVersion", + "CheckGenesis", + "CheckEra", + "CheckNonce", + "CheckWeight", + "ChargeTransactionPayment", + "CheckBlockGasLimit" + ]; + function findUnknownExtensions2(extensions, userExtensions = {}) { + const names2 = [...Object.keys(exports2.allExtensions), ...Object.keys(userExtensions)]; + return extensions.filter((k) => !names2.includes(k)); + } + exports2.findUnknownExtensions = findUnknownExtensions2; + function expandExtensionTypes2(extensions, type, userExtensions = {}) { + return extensions.map((k) => userExtensions[k] || exports2.allExtensions[k]).filter((info) => !!info).reduce((result, info) => (0, util_1.objectSpread)(result, info[type]), {}); + } + exports2.expandExtensionTypes = expandExtensionTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Event.js + var require_Event = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Event.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEvent = exports2.GenericEventData = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function decodeEvent2(registry, value) { + if (!value?.length) { + return { DataType: types_codec_1.Null }; + } + const index = value.subarray(0, 2); + return { + DataType: registry.findMetaEvent(index), + value: { + data: value.subarray(2), + index + } + }; + } + var GenericEventData2 = class extends types_codec_1.Tuple { + __internal__meta; + __internal__method; + __internal__names = null; + __internal__section; + __internal__typeDef; + constructor(registry, value, meta2, section = "", method = "") { + const fields = meta2?.fields || []; + super(registry, fields.map(({ type }) => registry.createLookupType(type)), value); + this.__internal__meta = meta2; + this.__internal__method = method; + this.__internal__section = section; + this.__internal__typeDef = fields.map(({ type }) => registry.lookup.getTypeDef(type)); + const names2 = fields.map(({ name: name6 }) => registry.lookup.sanitizeField(name6)[0]).filter((n) => !!n); + if (names2.length === fields.length) { + this.__internal__names = names2; + (0, util_1.objectProperties)(this, names2, (_, i) => this[i]); + } + } + get meta() { + return this.__internal__meta; + } + get method() { + return this.__internal__method; + } + get names() { + return this.__internal__names; + } + get section() { + return this.__internal__section; + } + get typeDef() { + return this.__internal__typeDef; + } + toHuman(isExtended, disableAscii) { + if (this.__internal__names !== null) { + const json = {}; + for (let i = 0, count = this.__internal__names.length; i < count; i++) { + json[this.__internal__names[i]] = this[i].toHuman(isExtended, disableAscii); + } + return json; + } + return super.toHuman(isExtended); + } + }; + exports2.GenericEventData = GenericEventData2; + var GenericEvent2 = class extends types_codec_1.Struct { + constructor(registry, _value) { + const { DataType, value } = decodeEvent2(registry, _value); + super(registry, { + index: "EventId", + data: DataType + }, value); + } + get data() { + return this.getT("data"); + } + get index() { + return this.getT("index"); + } + get meta() { + return this.data.meta; + } + get method() { + return this.data.method; + } + get section() { + return this.data.section; + } + get typeDef() { + return this.data.typeDef; + } + toHuman(isExpanded, disableAscii) { + return (0, util_1.objectSpread)({ + method: this.method, + section: this.section + }, isExpanded ? { docs: this.meta.docs.map((d) => d.toString()) } : null, super.toHuman(isExpanded, disableAscii)); + } + }; + exports2.GenericEvent = GenericEvent2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/Extrinsic.js + var require_Extrinsic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/Extrinsic.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicV4 = exports2.EXTRINSIC_VERSION = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + exports2.EXTRINSIC_VERSION = 4; + var GenericExtrinsicV42 = class extends types_codec_1.Struct { + constructor(registry, value, { isSigned } = {}) { + super(registry, { + signature: "ExtrinsicSignatureV4", + method: "Call" + }, GenericExtrinsicV42.decodeExtrinsic(registry, value, isSigned)); + } + static decodeExtrinsic(registry, value, isSigned = false) { + if (value instanceof GenericExtrinsicV42) { + return value; + } else if (value instanceof registry.createClassUnsafe("Call")) { + return { method: value }; + } else if ((0, util_1.isU8a)(value)) { + const signature2 = registry.createTypeUnsafe("ExtrinsicSignatureV4", [value, { isSigned }]); + const method = registry.createTypeUnsafe("Call", [value.subarray(signature2.encodedLength)]); + return { + method, + signature: signature2 + }; + } + return value || {}; + } + get encodedLength() { + return this.toU8a().length; + } + get method() { + return this.getT("method"); + } + get signature() { + return this.getT("signature"); + } + get version() { + return exports2.EXTRINSIC_VERSION; + } + addSignature(signer, signature2, payload) { + this.signature.addSignature(signer, signature2, payload); + return this; + } + sign(account, options) { + this.signature.sign(this.method, account, options); + return this; + } + signFake(signer, options) { + this.signature.signFake(this.method, signer, options); + return this; + } + }; + exports2.GenericExtrinsicV4 = GenericExtrinsicV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/constants.js + var require_constants2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/constants.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UNMASK_VERSION = exports2.IMMORTAL_ERA = exports2.DEFAULT_VERSION = exports2.EMPTY_U8A = exports2.BIT_UNSIGNED = exports2.BIT_SIGNED = void 0; + exports2.BIT_SIGNED = 128; + exports2.BIT_UNSIGNED = 0; + exports2.EMPTY_U8A = new Uint8Array(); + exports2.DEFAULT_VERSION = 4; + exports2.IMMORTAL_ERA = new Uint8Array([0]); + exports2.UNMASK_VERSION = 127; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/Extrinsic.js + var require_Extrinsic2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/Extrinsic.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsic = exports2.LATEST_EXTRINSIC_VERSION = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var Extrinsic_js_1 = require_Extrinsic(); + Object.defineProperty(exports2, "LATEST_EXTRINSIC_VERSION", { enumerable: true, get: function() { + return Extrinsic_js_1.EXTRINSIC_VERSION; + } }); + var constants_js_1 = require_constants2(); + var VERSIONS3 = [ + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicUnknown", + "ExtrinsicV4" + ]; + function newFromValue2(registry, value, version23) { + if (value instanceof GenericExtrinsic2) { + return value.unwrap(); + } + const isSigned = (version23 & constants_js_1.BIT_SIGNED) === constants_js_1.BIT_SIGNED; + const type = VERSIONS3[version23 & constants_js_1.UNMASK_VERSION] || VERSIONS3[0]; + return registry.createTypeUnsafe(type, [value, { isSigned, version: version23 }]); + } + function decodeExtrinsic2(registry, value, version23 = constants_js_1.DEFAULT_VERSION) { + if ((0, util_1.isU8a)(value) || Array.isArray(value) || (0, util_1.isHex)(value)) { + return decodeU8a8(registry, (0, util_1.u8aToU8a)(value), version23); + } else if (value instanceof registry.createClassUnsafe("Call")) { + return newFromValue2(registry, { method: value }, version23); + } + return newFromValue2(registry, value, version23); + } + function decodeU8a8(registry, value, version23) { + if (!value.length) { + return newFromValue2(registry, new Uint8Array(), version23); + } + const [offset, length] = (0, util_1.compactFromU8a)(value); + const total = offset + length.toNumber(); + if (total > value.length) { + throw new Error(`Extrinsic: length less than remainder, expected at least ${total}, found ${value.length}`); + } + const data = value.subarray(offset, total); + return newFromValue2(registry, data.subarray(1), data[0]); + } + var ExtrinsicBase2 = class extends types_codec_1.AbstractBase { + constructor(registry, value, initialU8aLength) { + super(registry, value, initialU8aLength); + const signKeys = Object.keys(registry.getSignedExtensionTypes()); + const getter = (key2) => this.inner.signature[key2]; + for (let i = 0, count = signKeys.length; i < count; i++) { + (0, util_1.objectProperty)(this, signKeys[i], getter); + } + } + get args() { + return this.method.args; + } + get argsDef() { + return this.method.argsDef; + } + get callIndex() { + return this.method.callIndex; + } + get data() { + return this.method.data; + } + get era() { + return this.inner.signature.era; + } + get encodedLength() { + return this.toU8a().length; + } + get isSigned() { + return this.inner.signature.isSigned; + } + get length() { + return this.toU8a(true).length; + } + get meta() { + return this.method.meta; + } + get method() { + return this.inner.method; + } + get nonce() { + return this.inner.signature.nonce; + } + get signature() { + return this.inner.signature.signature; + } + get signer() { + return this.inner.signature.signer; + } + get tip() { + return this.inner.signature.tip; + } + get assetId() { + return this.inner.signature.assetId; + } + get type() { + return this.inner.version; + } + get inner() { + return this.unwrap(); + } + get version() { + return this.type | (this.isSigned ? constants_js_1.BIT_SIGNED : constants_js_1.BIT_UNSIGNED); + } + is(other) { + return this.method.is(other); + } + unwrap() { + return super.unwrap(); + } + }; + var GenericExtrinsic2 = class extends ExtrinsicBase2 { + __internal__hashCache; + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsic2(registry, value, version23)); + } + get hash() { + if (!this.__internal__hashCache) { + this.__internal__hashCache = super.hash; + } + return this.__internal__hashCache; + } + addSignature(signer, signature2, payload) { + this.inner.addSignature(signer, signature2, payload); + this.__internal__hashCache = void 0; + return this; + } + inspect() { + const encoded = (0, util_1.u8aConcat)(...this.toU8aInner()); + return { + inner: this.isSigned ? this.inner.inspect().inner : this.inner.method.inspect().inner, + outer: [(0, util_1.compactToU8a)(encoded.length), new Uint8Array([this.version])] + }; + } + sign(account, options) { + this.inner.sign(account, options); + this.__internal__hashCache = void 0; + return this; + } + signFake(signer, options) { + this.inner.signFake(signer, options); + this.__internal__hashCache = void 0; + return this; + } + toHex(isBare) { + return (0, util_1.u8aToHex)(this.toU8a(isBare)); + } + toHuman(isExpanded, disableAscii) { + return (0, util_1.objectSpread)({}, { + isSigned: this.isSigned, + method: this.method.toHuman(isExpanded, disableAscii) + }, this.isSigned ? { + assetId: this.assetId.toHuman(isExpanded, disableAscii), + era: this.era.toHuman(isExpanded, disableAscii), + nonce: this.nonce.toHuman(isExpanded, disableAscii), + signature: this.signature.toHex(), + signer: this.signer.toHuman(isExpanded, disableAscii), + tip: this.tip.toHuman(isExpanded, disableAscii) + } : null); + } + toJSON() { + return this.toHex(); + } + toRawType() { + return "Extrinsic"; + } + toU8a(isBare) { + const encoded = (0, util_1.u8aConcat)(...this.toU8aInner()); + return isBare ? encoded : (0, util_1.compactAddLength)(encoded); + } + toU8aInner() { + return [ + new Uint8Array([this.version]), + this.inner.toU8a() + ]; + } + }; + __publicField(GenericExtrinsic2, "LATEST_EXTRINSIC_VERSION", Extrinsic_js_1.EXTRINSIC_VERSION); + exports2.GenericExtrinsic = GenericExtrinsic2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicEra.js + var require_ExtrinsicEra = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicEra.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicEra = exports2.MortalEra = exports2.ImmortalEra = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + function getTrailingZeros2(period) { + const binary = period.toString(2); + let index = 0; + while (binary[binary.length - 1 - index] === "0") { + index++; + } + return index; + } + function decodeMortalEra2(registry, value) { + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value) || Array.isArray(value)) { + return decodeMortalU8a2(registry, (0, util_1.u8aToU8a)(value)); + } else if (!value) { + return [new types_codec_1.U64(registry), new types_codec_1.U64(registry)]; + } else if ((0, util_1.isObject)(value)) { + return decodeMortalObject2(registry, value); + } + throw new Error("Invalid data passed to Mortal era"); + } + function decodeMortalObject2(registry, value) { + const { current, period } = value; + let calPeriod = Math.pow(2, Math.ceil(Math.log2(period))); + calPeriod = Math.min(Math.max(calPeriod, 4), 1 << 16); + const phase = current % calPeriod; + const quantizeFactor = Math.max(calPeriod >> 12, 1); + const quantizedPhase = phase / quantizeFactor * quantizeFactor; + return [new types_codec_1.U64(registry, calPeriod), new types_codec_1.U64(registry, quantizedPhase)]; + } + function decodeMortalU8a2(registry, value) { + if (value.length === 0) { + return [new types_codec_1.U64(registry), new types_codec_1.U64(registry)]; + } + const first = (0, util_1.u8aToBn)(value.subarray(0, 1)).toNumber(); + const second = (0, util_1.u8aToBn)(value.subarray(1, 2)).toNumber(); + const encoded = first + (second << 8); + const period = 2 << encoded % (1 << 4); + const quantizeFactor = Math.max(period >> 12, 1); + const phase = (encoded >> 4) * quantizeFactor; + if (period < 4 || phase >= period) { + throw new Error("Invalid data passed to Mortal era"); + } + return [new types_codec_1.U64(registry, period), new types_codec_1.U64(registry, phase)]; + } + function decodeExtrinsicEra2(value = new Uint8Array()) { + if ((0, util_1.isU8a)(value)) { + return !value.length || value[0] === 0 ? new Uint8Array([0]) : new Uint8Array([1, value[0], value[1]]); + } else if (!value) { + return new Uint8Array([0]); + } else if (value instanceof GenericExtrinsicEra2) { + return decodeExtrinsicEra2(value.toU8a()); + } else if ((0, util_1.isHex)(value)) { + return decodeExtrinsicEra2((0, util_1.hexToU8a)(value)); + } else if ((0, util_1.isObject)(value)) { + const entries = Object.entries(value).map(([k, v]) => [k.toLowerCase(), v]); + const mortal = entries.find(([k]) => k.toLowerCase() === "mortalera"); + const immortal = entries.find(([k]) => k.toLowerCase() === "immortalera"); + return mortal ? { MortalEra: mortal[1] } : immortal ? { ImmortalEra: immortal[1] } : { MortalEra: value }; + } + throw new Error("Invalid data passed to Era"); + } + var ImmortalEra2 = class extends types_codec_1.Raw { + constructor(registry, _value) { + super(registry, constants_js_1.IMMORTAL_ERA); + } + }; + exports2.ImmortalEra = ImmortalEra2; + var MortalEra2 = class extends types_codec_1.Tuple { + constructor(registry, value) { + super(registry, { + period: types_codec_1.U64, + phase: types_codec_1.U64 + }, decodeMortalEra2(registry, value)); + } + get encodedLength() { + return 2 | 0; + } + get period() { + return this[0]; + } + get phase() { + return this[1]; + } + toHuman() { + return { + period: (0, util_1.formatNumber)(this.period), + phase: (0, util_1.formatNumber)(this.phase) + }; + } + toJSON() { + return this.toHex(); + } + toU8a(_isBare) { + const period = this.period.toNumber(); + const encoded = Math.min(15, Math.max(1, getTrailingZeros2(period) - 1)) + (this.phase.toNumber() / Math.max(period >> 12, 1) << 4); + return new Uint8Array([ + encoded & 255, + encoded >> 8 + ]); + } + birth(current) { + const phase = this.phase.toNumber(); + const period = this.period.toNumber(); + return ~~((Math.max((0, util_1.bnToBn)(current).toNumber(), phase) - phase) / period) * period + phase; + } + death(current) { + return this.birth(current) + this.period.toNumber(); + } + }; + exports2.MortalEra = MortalEra2; + var GenericExtrinsicEra2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + ImmortalEra: ImmortalEra2, + MortalEra: MortalEra2 + }, decodeExtrinsicEra2(value)); + } + get encodedLength() { + return this.isImmortalEra ? this.asImmortalEra.encodedLength : this.asMortalEra.encodedLength; + } + get asImmortalEra() { + if (!this.isImmortalEra) { + throw new Error(`Cannot convert '${this.type}' via asImmortalEra`); + } + return this.inner; + } + get asMortalEra() { + if (!this.isMortalEra) { + throw new Error(`Cannot convert '${this.type}' via asMortalEra`); + } + return this.inner; + } + get isImmortalEra() { + return this.index === 0; + } + get isMortalEra() { + return this.index > 0; + } + toU8a(isBare) { + return this.isMortalEra ? this.asMortalEra.toU8a(isBare) : this.asImmortalEra.toU8a(isBare); + } + }; + exports2.GenericExtrinsicEra = GenericExtrinsicEra2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayload.js + var require_ExtrinsicPayload = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayload = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + var VERSIONS3 = [ + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadUnknown", + "ExtrinsicPayloadV4" + ]; + function decodeExtrinsicPayload2(registry, value, version23 = constants_js_1.DEFAULT_VERSION) { + if (value instanceof GenericExtrinsicPayload2) { + return value.unwrap(); + } + return registry.createTypeUnsafe(VERSIONS3[version23] || VERSIONS3[0], [value, { version: version23 }]); + } + var GenericExtrinsicPayload2 = class extends types_codec_1.AbstractBase { + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsicPayload2(registry, value, version23)); + } + get blockHash() { + return this.inner.blockHash; + } + get era() { + return this.inner.era; + } + get genesisHash() { + return this.inner.genesisHash || this.registry.createTypeUnsafe("Hash", []); + } + get method() { + return this.inner.method; + } + get nonce() { + return this.inner.nonce; + } + get specVersion() { + return this.inner.specVersion || this.registry.createTypeUnsafe("u32", []); + } + get tip() { + return this.inner.tip || this.registry.createTypeUnsafe("Compact", []); + } + get transactionVersion() { + return this.inner.transactionVersion || this.registry.createTypeUnsafe("u32", []); + } + get assetId() { + return this.inner.assetId; + } + eq(other) { + return this.inner.eq(other); + } + sign(signerPair) { + const signature2 = this.inner.sign(signerPair); + return { + signature: (0, util_1.u8aToHex)(signature2) + }; + } + toHuman(isExtended, disableAscii) { + return this.inner.toHuman(isExtended, disableAscii); + } + toJSON() { + return this.toHex(); + } + toRawType() { + return "ExtrinsicPayload"; + } + toString() { + return this.toHex(); + } + toU8a(isBare) { + return super.toU8a(isBare ? { method: true } : false); + } + }; + exports2.GenericExtrinsicPayload = GenericExtrinsicPayload2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayloadUnknown.js + var require_ExtrinsicPayloadUnknown = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicPayloadUnknown.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayloadUnknown = void 0; + var types_codec_1 = require_cjs8(); + var GenericExtrinsicPayloadUnknown2 = class extends types_codec_1.Struct { + constructor(registry, _value, { version: version23 = 0 } = {}) { + super(registry, {}); + throw new Error(`Unsupported extrinsic payload version ${version23}`); + } + }; + exports2.GenericExtrinsicPayloadUnknown = GenericExtrinsicPayloadUnknown2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicUnknown.js + var require_ExtrinsicUnknown = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/ExtrinsicUnknown.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicUnknown = void 0; + var types_codec_1 = require_cjs8(); + var constants_js_1 = require_constants2(); + var GenericExtrinsicUnknown2 = class extends types_codec_1.Struct { + constructor(registry, _value, { isSigned = false, version: version23 = 0 } = {}) { + super(registry, {}); + throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version23 & constants_js_1.UNMASK_VERSION}`); + } + }; + exports2.GenericExtrinsicUnknown = GenericExtrinsicUnknown2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/SignerPayload.js + var require_SignerPayload = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/SignerPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericSignerPayload = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var knownTypes2 = { + address: "Address", + blockHash: "Hash", + blockNumber: "BlockNumber", + era: "ExtrinsicEra", + genesisHash: "Hash", + method: "Call", + nonce: "Compact", + runtimeVersion: "RuntimeVersion", + signedExtensions: "Vec", + tip: "Compact", + version: "u8" + }; + var GenericSignerPayload2 = class extends types_codec_1.Struct { + __internal__extraTypes; + constructor(registry, value) { + const extensionTypes = (0, util_1.objectSpread)({}, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()); + super(registry, (0, util_1.objectSpread)({}, extensionTypes, knownTypes2), value); + this.__internal__extraTypes = {}; + const getter = (key2) => this.get(key2); + for (const [key2, type] of Object.entries(extensionTypes)) { + if (!knownTypes2[key2]) { + this.__internal__extraTypes[key2] = type; + } + (0, util_1.objectProperty)(this, key2, getter); + } + } + get address() { + return this.getT("address"); + } + get blockHash() { + return this.getT("blockHash"); + } + get blockNumber() { + return this.getT("blockNumber"); + } + get era() { + return this.getT("era"); + } + get genesisHash() { + return this.getT("genesisHash"); + } + get method() { + return this.getT("method"); + } + get nonce() { + return this.getT("nonce"); + } + get runtimeVersion() { + return this.getT("runtimeVersion"); + } + get signedExtensions() { + return this.getT("signedExtensions"); + } + get tip() { + return this.getT("tip"); + } + get assetId() { + return this.getT("assetId"); + } + get version() { + return this.getT("version"); + } + toPayload() { + const result = {}; + const keys = Object.keys(this.__internal__extraTypes); + for (let i = 0, count = keys.length; i < count; i++) { + const key2 = keys[i]; + const value = this.getT(key2); + if (!(value instanceof types_codec_1.Option) || value.isSome) { + result[key2] = value.toJSON(); + } + } + return (0, util_1.objectSpread)(result, { + address: this.address.toString(), + blockHash: this.blockHash.toHex(), + blockNumber: this.blockNumber.toHex(), + era: this.era.toHex(), + genesisHash: this.genesisHash.toHex(), + method: this.method.toHex(), + nonce: this.nonce.toHex(), + signedExtensions: this.signedExtensions.map((e) => e.toString()), + specVersion: this.runtimeVersion.specVersion.toHex(), + tip: this.tip.toHex(), + transactionVersion: this.runtimeVersion.transactionVersion.toHex(), + version: this.version.toNumber() + }); + } + toRaw() { + const payload = this.toPayload(); + const data = (0, util_1.u8aToHex)(this.registry.createTypeUnsafe("ExtrinsicPayload", [payload, { version: payload.version }]).toU8a({ method: true })); + return { + address: payload.address, + data, + type: "payload" + }; + } + }; + exports2.GenericSignerPayload = GenericSignerPayload2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/util.js + var require_util6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sign = void 0; + function sign4(registry, signerPair, u8a, options) { + const encoded = u8a.length > 256 ? registry.hash(u8a) : u8a; + return signerPair.sign(encoded, options); + } + exports2.sign = sign4; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicPayload.js + var require_ExtrinsicPayload2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicPayload.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicPayloadV4 = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_js_1 = require_util6(); + var GenericExtrinsicPayloadV42 = class extends types_codec_1.Struct { + __internal__signOptions; + constructor(registry, value) { + super(registry, (0, util_1.objectSpread)({ method: "Bytes" }, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()), value); + this.__internal__signOptions = { + withType: registry.createTypeUnsafe("ExtrinsicSignature", []) instanceof types_codec_1.Enum + }; + } + inspect() { + return super.inspect({ method: true }); + } + get blockHash() { + return this.getT("blockHash"); + } + get era() { + return this.getT("era"); + } + get genesisHash() { + return this.getT("genesisHash"); + } + get method() { + return this.getT("method"); + } + get nonce() { + return this.getT("nonce"); + } + get specVersion() { + return this.getT("specVersion"); + } + get tip() { + return this.getT("tip"); + } + get transactionVersion() { + return this.getT("transactionVersion"); + } + get assetId() { + return this.getT("assetId"); + } + sign(signerPair) { + return (0, util_js_1.sign)(this.registry, signerPair, this.toU8a({ method: true }), this.__internal__signOptions); + } + }; + exports2.GenericExtrinsicPayloadV4 = GenericExtrinsicPayloadV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicSignature.js + var require_ExtrinsicSignature = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicSignature.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicSignatureV4 = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var constants_js_1 = require_constants2(); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload2(); + var FAKE_SIGNATURE2 = new Uint8Array(256).fill(1); + function toAddress2(registry, address) { + return registry.createTypeUnsafe("Address", [(0, util_1.isU8a)(address) ? (0, util_1.u8aToHex)(address) : address]); + } + var GenericExtrinsicSignatureV42 = class extends types_codec_1.Struct { + __internal__signKeys; + constructor(registry, value, { isSigned } = {}) { + const signTypes = registry.getSignedExtensionTypes(); + super(registry, (0, util_1.objectSpread)( + { signer: "Address", signature: "ExtrinsicSignature" }, + signTypes + ), GenericExtrinsicSignatureV42.decodeExtrinsicSignature(value, isSigned)); + this.__internal__signKeys = Object.keys(signTypes); + (0, util_1.objectProperties)(this, this.__internal__signKeys, (k) => this.get(k)); + } + static decodeExtrinsicSignature(value, isSigned = false) { + if (!value) { + return constants_js_1.EMPTY_U8A; + } else if (value instanceof GenericExtrinsicSignatureV42) { + return value; + } + return isSigned ? value : constants_js_1.EMPTY_U8A; + } + get encodedLength() { + return this.isSigned ? super.encodedLength : 0; + } + get isSigned() { + return !this.signature.isEmpty; + } + get era() { + return this.getT("era"); + } + get nonce() { + return this.getT("nonce"); + } + get signature() { + return this.multiSignature.value || this.multiSignature; + } + get multiSignature() { + return this.getT("signature"); + } + get signer() { + return this.getT("signer"); + } + get tip() { + return this.getT("tip"); + } + get assetId() { + return this.getT("assetId"); + } + _injectSignature(signer, signature2, payload) { + for (let i = 0, count = this.__internal__signKeys.length; i < count; i++) { + const k = this.__internal__signKeys[i]; + const v = payload.get(k); + if (!(0, util_1.isUndefined)(v)) { + this.set(k, v); + } + } + this.set("signer", signer); + this.set("signature", signature2); + return this; + } + addSignature(signer, signature2, payload) { + return this._injectSignature(toAddress2(this.registry, signer), this.registry.createTypeUnsafe("ExtrinsicSignature", [signature2]), new ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4(this.registry, payload)); + } + createPayload(method, options) { + const { era, runtimeVersion: { specVersion, transactionVersion } } = options; + return new ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4(this.registry, (0, util_1.objectSpread)({}, options, { + era: era || constants_js_1.IMMORTAL_ERA, + method: method.toHex(), + specVersion, + transactionVersion + })); + } + sign(method, account, options) { + if (!account?.addressRaw) { + throw new Error(`Expected a valid keypair for signing, found ${(0, util_1.stringify)(account)}`); + } + const payload = this.createPayload(method, options); + return this._injectSignature(toAddress2(this.registry, account.addressRaw), this.registry.createTypeUnsafe("ExtrinsicSignature", [payload.sign(account)]), payload); + } + signFake(method, address, options) { + if (!address) { + throw new Error(`Expected a valid address for signing, found ${(0, util_1.stringify)(address)}`); + } + const payload = this.createPayload(method, options); + return this._injectSignature(toAddress2(this.registry, address), this.registry.createTypeUnsafe("ExtrinsicSignature", [FAKE_SIGNATURE2]), payload); + } + toU8a(isBare) { + return this.isSigned ? super.toU8a(isBare) : constants_js_1.EMPTY_U8A; + } + }; + exports2.GenericExtrinsicSignatureV4 = GenericExtrinsicSignatureV42; + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/v4/index.js + var require_v4 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/v4/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericExtrinsicSignatureV4 = exports2.GenericExtrinsicPayloadV4 = exports2.GenericExtrinsicV4 = void 0; + var Extrinsic_js_1 = require_Extrinsic(); + Object.defineProperty(exports2, "GenericExtrinsicV4", { enumerable: true, get: function() { + return Extrinsic_js_1.GenericExtrinsicV4; + } }); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload2(); + Object.defineProperty(exports2, "GenericExtrinsicPayloadV4", { enumerable: true, get: function() { + return ExtrinsicPayload_js_1.GenericExtrinsicPayloadV4; + } }); + var ExtrinsicSignature_js_1 = require_ExtrinsicSignature(); + Object.defineProperty(exports2, "GenericExtrinsicSignatureV4", { enumerable: true, get: function() { + return ExtrinsicSignature_js_1.GenericExtrinsicSignatureV4; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/extrinsic/index.js + var require_extrinsic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/extrinsic/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericSignerPayload = exports2.GenericExtrinsicUnknown = exports2.GenericExtrinsicPayloadUnknown = exports2.GenericExtrinsicPayload = exports2.GenericMortalEra = exports2.GenericImmortalEra = exports2.GenericExtrinsicEra = exports2.GenericExtrinsic = void 0; + var tslib_1 = require_tslib(); + var Extrinsic_js_1 = require_Extrinsic2(); + Object.defineProperty(exports2, "GenericExtrinsic", { enumerable: true, get: function() { + return Extrinsic_js_1.GenericExtrinsic; + } }); + var ExtrinsicEra_js_1 = require_ExtrinsicEra(); + Object.defineProperty(exports2, "GenericExtrinsicEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.GenericExtrinsicEra; + } }); + Object.defineProperty(exports2, "GenericImmortalEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.ImmortalEra; + } }); + Object.defineProperty(exports2, "GenericMortalEra", { enumerable: true, get: function() { + return ExtrinsicEra_js_1.MortalEra; + } }); + var ExtrinsicPayload_js_1 = require_ExtrinsicPayload(); + Object.defineProperty(exports2, "GenericExtrinsicPayload", { enumerable: true, get: function() { + return ExtrinsicPayload_js_1.GenericExtrinsicPayload; + } }); + var ExtrinsicPayloadUnknown_js_1 = require_ExtrinsicPayloadUnknown(); + Object.defineProperty(exports2, "GenericExtrinsicPayloadUnknown", { enumerable: true, get: function() { + return ExtrinsicPayloadUnknown_js_1.GenericExtrinsicPayloadUnknown; + } }); + var ExtrinsicUnknown_js_1 = require_ExtrinsicUnknown(); + Object.defineProperty(exports2, "GenericExtrinsicUnknown", { enumerable: true, get: function() { + return ExtrinsicUnknown_js_1.GenericExtrinsicUnknown; + } }); + var SignerPayload_js_1 = require_SignerPayload(); + Object.defineProperty(exports2, "GenericSignerPayload", { enumerable: true, get: function() { + return SignerPayload_js_1.GenericSignerPayload; + } }); + tslib_1.__exportStar(require_v4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/AccountId.js + var require_AccountId = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/AccountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericAccountId33 = exports2.GenericAccountId = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function decodeAccountId3(value) { + if ((0, util_1.isU8a)(value) || Array.isArray(value)) { + return (0, util_1.u8aToU8a)(value); + } else if (!value) { + return new Uint8Array(); + } else if ((0, util_1.isHex)(value)) { + return (0, util_1.hexToU8a)(value); + } else if ((0, util_1.isString)(value)) { + return (0, util_crypto_1.decodeAddress)(value.toString()); + } + throw new Error(`Unknown type passed to AccountId constructor, found typeof ${typeof value}`); + } + var BaseAccountId2 = class extends types_codec_1.U8aFixed { + constructor(registry, allowedBits = 256 | 264, value) { + const decoded = decodeAccountId3(value); + const decodedBits = decoded.length * 8; + if (decodedBits < allowedBits && decoded.some((b) => b)) { + throw new Error(`Invalid AccountId provided, expected ${allowedBits >> 3} bytes, found ${decoded.length}`); + } + super(registry, decoded, allowedBits); + } + eq(other) { + return super.eq(decodeAccountId3(other)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + return (0, util_crypto_1.encodeAddress)(this, this.registry.chainSS58); + } + toRawType() { + return "AccountId"; + } + }; + var GenericAccountId2 = class extends BaseAccountId2 { + constructor(registry, value) { + super(registry, 256, value); + } + }; + exports2.GenericAccountId = GenericAccountId2; + var GenericAccountId332 = class extends BaseAccountId2 { + constructor(registry, value) { + super(registry, 264, value); + } + }; + exports2.GenericAccountId33 = GenericAccountId332; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/AccountIndex.js + var require_AccountIndex = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/AccountIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericAccountIndex = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var PREFIX_1BYTE2 = 239; + var PREFIX_2BYTE2 = 252; + var PREFIX_4BYTE2 = 253; + var PREFIX_8BYTE2 = 254; + var MAX_1BYTE2 = new util_1.BN(PREFIX_1BYTE2); + var MAX_2BYTE2 = new util_1.BN(1).shln(16); + var MAX_4BYTE2 = new util_1.BN(1).shln(32); + function decodeAccountIndex2(value) { + if (value instanceof GenericAccountIndex2) { + return value.toBn(); + } else if ((0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isHex)(value) || (0, util_1.isU8a)(value) || (0, util_1.isBigInt)(value)) { + return value; + } + return decodeAccountIndex2((0, util_crypto_1.decodeAddress)(value)); + } + var GenericAccountIndex2 = class extends types_codec_1.u32 { + constructor(registry, value = new util_1.BN(0)) { + super(registry, decodeAccountIndex2(value)); + } + static calcLength(_value) { + const value = (0, util_1.bnToBn)(_value); + if (value.lte(MAX_1BYTE2)) { + return 1; + } else if (value.lt(MAX_2BYTE2)) { + return 2; + } else if (value.lt(MAX_4BYTE2)) { + return 4; + } + return 8; + } + static readLength(input) { + const first = input[0]; + if (first === PREFIX_2BYTE2) { + return [1, 2]; + } else if (first === PREFIX_4BYTE2) { + return [1, 4]; + } else if (first === PREFIX_8BYTE2) { + return [1, 8]; + } + return [0, 1]; + } + static writeLength(input) { + switch (input.length) { + case 2: + return new Uint8Array([PREFIX_2BYTE2]); + case 4: + return new Uint8Array([PREFIX_4BYTE2]); + case 8: + return new Uint8Array([PREFIX_8BYTE2]); + default: + return new Uint8Array([]); + } + } + eq(other) { + if ((0, util_1.isBn)(other) || (0, util_1.isNumber)(other)) { + return super.eq(other); + } + return super.eq(this.registry.createTypeUnsafe("AccountIndex", [other])); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + const length = GenericAccountIndex2.calcLength(this); + return (0, util_crypto_1.encodeAddress)(this.toU8a().subarray(0, length), this.registry.chainSS58); + } + toRawType() { + return "AccountIndex"; + } + }; + exports2.GenericAccountIndex = GenericAccountIndex2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Block.js + var require_Block = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Block.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericBlock = void 0; + var types_codec_1 = require_cjs8(); + var GenericBlock2 = class extends types_codec_1.Struct { + constructor(registry, value) { + super(registry, { + header: "Header", + extrinsics: "Vec" + }, value); + } + get contentHash() { + return this.registry.hash(this.toU8a()); + } + get extrinsics() { + return this.getT("extrinsics"); + } + get hash() { + return this.header.hash; + } + get header() { + return this.getT("header"); + } + }; + exports2.GenericBlock = GenericBlock2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Call.js + var require_Call = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Call.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericCall = exports2.GenericCallIndex = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function getArgsDef2(registry, meta2) { + return meta2.fields.reduce((result, { name: name6, type }, index) => { + result[name6.unwrapOr(`param${index}`).toString()] = registry.createLookupType(type); + return result; + }, {}); + } + function decodeCallViaObject2(registry, value, _meta) { + const { args, callIndex } = value; + const lookupIndex = callIndex instanceof GenericCallIndex2 ? callIndex.toU8a() : callIndex; + const meta2 = _meta || registry.findMetaCall(lookupIndex).meta; + return { + args, + argsDef: getArgsDef2(registry, meta2), + callIndex, + meta: meta2 + }; + } + function decodeCallViaU8a2(registry, value, _meta) { + const callIndex = registry.firstCallIndex.slice(); + callIndex.set(value.subarray(0, 2), 0); + const meta2 = _meta || registry.findMetaCall(callIndex).meta; + return { + args: value.subarray(2), + argsDef: getArgsDef2(registry, meta2), + callIndex, + meta: meta2 + }; + } + function decodeCall2(registry, value = new Uint8Array(), _meta) { + if ((0, util_1.isU8a)(value) || (0, util_1.isHex)(value)) { + return decodeCallViaU8a2(registry, (0, util_1.u8aToU8a)(value), _meta); + } else if ((0, util_1.isObject)(value) && value.callIndex && value.args) { + return decodeCallViaObject2(registry, value, _meta); + } + throw new Error(`Call: Cannot decode value '${value}' of type ${typeof value}`); + } + var GenericCallIndex2 = class extends types_codec_1.U8aFixed { + constructor(registry, value) { + super(registry, value, 16); + } + toPrimitive() { + return this.toHex(); + } + }; + exports2.GenericCallIndex = GenericCallIndex2; + var GenericCall2 = class extends types_codec_1.Struct { + _meta; + constructor(registry, value, meta2) { + const decoded = decodeCall2(registry, value, meta2); + try { + super(registry, { + callIndex: GenericCallIndex2, + args: types_codec_1.Struct.with(decoded.argsDef) + }, decoded); + } catch (error) { + let method = "unknown.unknown"; + try { + const c = registry.findMetaCall(decoded.callIndex); + method = `${c.section}.${c.method}`; + } catch { + } + throw new Error(`Call: failed decoding ${method}:: ${error.message}`); + } + this._meta = decoded.meta; + } + get args() { + return [...this.getT("args").values()]; + } + get argsDef() { + return getArgsDef2(this.registry, this.meta); + } + get argsEntries() { + return [...this.getT("args").entries()]; + } + get callIndex() { + return this.getT("callIndex").toU8a(); + } + get data() { + return this.getT("args").toU8a(); + } + get meta() { + return this._meta; + } + get method() { + return this.registry.findMetaCall(this.callIndex).method; + } + get section() { + return this.registry.findMetaCall(this.callIndex).section; + } + is(other) { + return other.callIndex[0] === this.callIndex[0] && other.callIndex[1] === this.callIndex[1]; + } + toHuman(isExpanded, disableAscii) { + let call; + try { + call = this.registry.findMetaCall(this.callIndex); + } catch { + } + return (0, util_1.objectSpread)({ + args: this.argsEntries.reduce((args, [n, a]) => (0, util_1.objectSpread)(args, { [n]: a.toHuman(isExpanded, disableAscii) }), {}), + method: call?.method, + section: call?.section + }, isExpanded && call ? { docs: call.meta.docs.map((d) => d.toString()) } : null); + } + toRawType() { + return "Call"; + } + }; + exports2.GenericCall = GenericCall2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/ChainProperties.js + var require_ChainProperties = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/ChainProperties.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericChainProperties = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function createValue3(registry, type, value, asArray = true) { + if (value && (0, util_1.isFunction)(value.unwrapOrDefault)) { + return value; + } + return registry.createTypeUnsafe(type, [ + asArray ? (0, util_1.isNull)(value) || (0, util_1.isUndefined)(value) ? null : Array.isArray(value) ? value : [value] : value + ]); + } + function decodeValue2(registry, key2, value) { + return key2 === "ss58Format" ? createValue3(registry, "Option", value, false) : key2 === "tokenDecimals" ? createValue3(registry, "Option>", value) : key2 === "tokenSymbol" ? createValue3(registry, "Option>", value) : key2 === "isEthereum" ? createValue3(registry, "Bool", value, false) : value; + } + function decode4(registry, value) { + return (value && (0, util_1.isFunction)(value.entries) ? [...value.entries()] : Object.entries(value || {})).reduce((all, [key2, value2]) => { + all[key2] = decodeValue2(registry, key2, value2); + return all; + }, { + isEthereum: registry.createTypeUnsafe("Bool", []), + ss58Format: registry.createTypeUnsafe("Option", []), + tokenDecimals: registry.createTypeUnsafe("Option>", []), + tokenSymbol: registry.createTypeUnsafe("Option>", []) + }); + } + var GenericChainProperties2 = class extends types_codec_1.Json { + constructor(registry, value) { + super(registry, decode4(registry, value)); + } + get isEthereum() { + return this.getT("isEthereum"); + } + get ss58Format() { + return this.getT("ss58Format"); + } + get tokenDecimals() { + return this.getT("tokenDecimals"); + } + get tokenSymbol() { + return this.getT("tokenSymbol"); + } + }; + exports2.GenericChainProperties = GenericChainProperties2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/ConsensusEngineId.js + var require_ConsensusEngineId = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/ConsensusEngineId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericConsensusEngineId = exports2.CID_NMBS = exports2.CID_POW = exports2.CID_GRPA = exports2.CID_BABE = exports2.CID_AURA = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + exports2.CID_AURA = (0, util_1.stringToU8a)("aura"); + exports2.CID_BABE = (0, util_1.stringToU8a)("BABE"); + exports2.CID_GRPA = (0, util_1.stringToU8a)("FRNK"); + exports2.CID_POW = (0, util_1.stringToU8a)("pow_"); + exports2.CID_NMBS = (0, util_1.stringToU8a)("nmbs"); + function getAuraAuthor2(registry, bytes5, sessionValidators) { + return sessionValidators[registry.createTypeUnsafe("RawAuraPreDigest", [bytes5.toU8a(true)]).slotNumber.mod(new util_1.BN(sessionValidators.length)).toNumber()]; + } + function getBabeAuthor2(registry, bytes5, sessionValidators) { + const digest = registry.createTypeUnsafe("RawBabePreDigestCompat", [bytes5.toU8a(true)]); + return sessionValidators[digest.value.toNumber()]; + } + function getBytesAsAuthor2(registry, bytes5) { + return registry.createTypeUnsafe("AccountId", [bytes5]); + } + var GenericConsensusEngineId2 = class extends types_codec_1.U8aFixed { + constructor(registry, value) { + super(registry, (0, util_1.isNumber)(value) ? (0, util_1.bnToU8a)(value, { isLe: false }) : value, 32); + } + get isAura() { + return this.eq(exports2.CID_AURA); + } + get isBabe() { + return this.eq(exports2.CID_BABE); + } + get isGrandpa() { + return this.eq(exports2.CID_GRPA); + } + get isPow() { + return this.eq(exports2.CID_POW); + } + get isNimbus() { + return this.eq(exports2.CID_NMBS); + } + extractAuthor(bytes5, sessionValidators) { + if (sessionValidators?.length) { + if (this.isAura) { + return getAuraAuthor2(this.registry, bytes5, sessionValidators); + } else if (this.isBabe) { + return getBabeAuthor2(this.registry, bytes5, sessionValidators); + } + } + if (this.isPow || this.isNimbus) { + return getBytesAsAuthor2(this.registry, bytes5); + } + return void 0; + } + toHuman() { + return this.toString(); + } + toRawType() { + return "ConsensusEngineId"; + } + toString() { + return this.isAscii ? (0, util_1.u8aToString)(this) : (0, util_1.u8aToHex)(this); + } + }; + exports2.GenericConsensusEngineId = GenericConsensusEngineId2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/LookupSource.js + var require_LookupSource = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/LookupSource.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericLookupSource = exports2.ACCOUNT_ID_PREFIX = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountId_js_1 = require_AccountId(); + var AccountIndex_js_1 = require_AccountIndex(); + exports2.ACCOUNT_ID_PREFIX = new Uint8Array([255]); + function decodeString3(registry, value) { + const decoded = (0, util_crypto_1.decodeAddress)(value); + return decoded.length === 32 ? registry.createTypeUnsafe("AccountId", [decoded]) : registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(decoded)]); + } + function decodeU8a8(registry, value) { + if (value.length === 32) { + return registry.createTypeUnsafe("AccountId", [value]); + } else if (value[0] === 255) { + return registry.createTypeUnsafe("AccountId", [value.subarray(1)]); + } + const [offset, length] = AccountIndex_js_1.GenericAccountIndex.readLength(value); + return registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(value.subarray(offset, offset + length))]); + } + function decodeAddressOrIndex3(registry, value) { + return value instanceof GenericLookupSource2 ? value.inner : value instanceof AccountId_js_1.GenericAccountId || value instanceof AccountIndex_js_1.GenericAccountIndex ? value : (0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isBigInt)(value) ? registry.createTypeUnsafe("AccountIndex", [value]) : Array.isArray(value) || (0, util_1.isHex)(value) || (0, util_1.isU8a)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : decodeString3(registry, value); + } + var GenericLookupSource2 = class extends types_codec_1.AbstractBase { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAddressOrIndex3(registry, value)); + } + get encodedLength() { + const rawLength = this._rawLength; + return rawLength + (rawLength > 1 ? 1 : 0); + } + get _rawLength() { + return this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength; + } + inspect() { + const value = this.inner.toU8a().subarray(0, this._rawLength); + return { + outer: [ + new Uint8Array(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(value) : exports2.ACCOUNT_ID_PREFIX), + value + ] + }; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toRawType() { + return "Address"; + } + toU8a(isBare) { + const encoded = this.inner.toU8a().subarray(0, this._rawLength); + return isBare ? encoded : (0, util_1.u8aConcat)(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(encoded) : exports2.ACCOUNT_ID_PREFIX, encoded); + } + }; + exports2.GenericLookupSource = GenericLookupSource2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/MultiAddress.js + var require_MultiAddress = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/MultiAddress.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericMultiAddress = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountId_js_1 = require_AccountId(); + var AccountIndex_js_1 = require_AccountIndex(); + function decodeU8a8(registry, u8a) { + if ([0, 32].includes(u8a.length)) { + return { Id: u8a }; + } else if (u8a.length === 20) { + return { Address20: u8a }; + } else if (u8a.length <= 8) { + return { Index: registry.createTypeUnsafe("AccountIndex", [u8a]).toNumber() }; + } + return u8a; + } + function decodeMultiAny2(registry, value) { + if (value instanceof AccountId_js_1.GenericAccountId) { + return { Id: value }; + } else if ((0, util_1.isU8a)(value)) { + return decodeU8a8(registry, value); + } else if (value instanceof GenericMultiAddress2) { + return value; + } else if (value instanceof AccountIndex_js_1.GenericAccountIndex || (0, util_1.isBn)(value) || (0, util_1.isNumber)(value)) { + return { Index: (0, util_1.isNumber)(value) ? value : value.toNumber() }; + } else if ((0, util_1.isString)(value)) { + return decodeU8a8(registry, (0, util_crypto_1.decodeAddress)(value.toString())); + } + return value; + } + var GenericMultiAddress2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + Id: "AccountId", + Index: "Compact", + Raw: "Bytes", + Address32: "H256", + Address20: "H160" + }, decodeMultiAny2(registry, value)); + } + inspect() { + const { inner, outer = [] } = this.inner.inspect(); + return { + inner, + outer: [new Uint8Array([this.index]), ...outer] + }; + } + toString() { + return this.value.toString(); + } + }; + exports2.GenericMultiAddress = GenericMultiAddress2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/Vote.js + var require_Vote = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/Vote.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericVote = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var AYE_BITS2 = 128; + var NAY_BITS2 = 0; + var CON_MASK2 = 127; + var DEF_CONV2 = 0; + function decodeVoteBool2(value) { + return value ? new Uint8Array([AYE_BITS2 | DEF_CONV2]) : new Uint8Array([NAY_BITS2]); + } + function decodeVoteU8a2(value) { + return value.length ? value.subarray(0, 1) : new Uint8Array([NAY_BITS2]); + } + function decodeVoteType2(registry, value) { + return new Uint8Array([ + (new types_codec_1.Bool(registry, value.aye).isTrue ? AYE_BITS2 : NAY_BITS2) | registry.createTypeUnsafe("Conviction", [value.conviction || DEF_CONV2]).index + ]); + } + function decodeVote2(registry, value) { + if ((0, util_1.isU8a)(value)) { + return decodeVoteU8a2(value); + } else if ((0, util_1.isUndefined)(value) || value instanceof Boolean || (0, util_1.isBoolean)(value)) { + return decodeVoteBool2(new types_codec_1.Bool(registry, value).isTrue); + } else if ((0, util_1.isNumber)(value)) { + return decodeVoteBool2(value < 0); + } + return decodeVoteType2(registry, value); + } + var GenericVote2 = class extends types_codec_1.U8aFixed { + __internal__aye; + __internal__conviction; + constructor(registry, value) { + const decoded = decodeVote2(registry, value); + super(registry, decoded, 8); + this.__internal__aye = (decoded[0] & AYE_BITS2) === AYE_BITS2; + this.__internal__conviction = this.registry.createTypeUnsafe("Conviction", [decoded[0] & CON_MASK2]); + } + get conviction() { + return this.__internal__conviction; + } + get isAye() { + return this.__internal__aye; + } + get isNay() { + return !this.isAye; + } + toHuman(isExpanded) { + return { + conviction: this.conviction.toHuman(isExpanded), + vote: this.isAye ? "Aye" : "Nay" + }; + } + toPrimitive() { + return { + aye: this.isAye, + conviction: this.conviction.toPrimitive() + }; + } + toRawType() { + return "Vote"; + } + }; + exports2.GenericVote = GenericVote2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/AccountId.js + var require_AccountId2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/AccountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumAccountId = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function decodeAccountId3(value) { + if ((0, util_1.isU8a)(value) || Array.isArray(value)) { + return (0, util_1.u8aToU8a)(value); + } else if ((0, util_1.isHex)(value) || (0, util_crypto_1.isEthereumAddress)(value.toString())) { + return (0, util_1.hexToU8a)(value.toString()); + } else if ((0, util_1.isString)(value)) { + return (0, util_1.u8aToU8a)(value); + } + return value; + } + var GenericEthereumAccountId2 = class extends types_codec_1.U8aFixed { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAccountId3(value), 160); + } + eq(other) { + return !!other && super.eq(decodeAccountId3(other)); + } + toHuman() { + return this.toJSON(); + } + toJSON() { + return this.toString(); + } + toPrimitive() { + return this.toJSON(); + } + toString() { + return (0, util_crypto_1.ethereumEncode)(this); + } + toRawType() { + return "AccountId"; + } + }; + exports2.GenericEthereumAccountId = GenericEthereumAccountId2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/LookupSource.js + var require_LookupSource2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/LookupSource.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumLookupSource = exports2.ACCOUNT_ID_PREFIX = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var AccountIndex_js_1 = require_AccountIndex(); + var AccountId_js_1 = require_AccountId2(); + exports2.ACCOUNT_ID_PREFIX = new Uint8Array([255]); + function decodeString3(registry, value) { + const decoded = (0, util_crypto_1.decodeAddress)(value); + return decoded.length === 20 ? registry.createTypeUnsafe("EthereumAccountId", [decoded]) : registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(decoded)]); + } + function decodeU8a8(registry, value) { + if (value.length === 20) { + return registry.createTypeUnsafe("EthereumAccountId", [value]); + } else if (value[0] === 255) { + return registry.createTypeUnsafe("EthereumAccountId", [value.subarray(1)]); + } + const [offset, length] = AccountIndex_js_1.GenericAccountIndex.readLength(value); + return registry.createTypeUnsafe("AccountIndex", [(0, util_1.u8aToBn)(value.subarray(offset, offset + length))]); + } + function decodeAddressOrIndex3(registry, value) { + return value instanceof GenericEthereumLookupSource2 ? value.inner : value instanceof AccountId_js_1.GenericEthereumAccountId || value instanceof AccountIndex_js_1.GenericAccountIndex ? value : (0, util_1.isU8a)(value) || Array.isArray(value) || (0, util_1.isHex)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : (0, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isBigInt)(value) ? registry.createTypeUnsafe("AccountIndex", [value]) : decodeString3(registry, value); + } + var GenericEthereumLookupSource2 = class extends types_codec_1.AbstractBase { + constructor(registry, value = new Uint8Array()) { + super(registry, decodeAddressOrIndex3(registry, value)); + } + get encodedLength() { + const rawLength = this._rawLength; + return rawLength + (rawLength > 1 ? 1 : 0); + } + get _rawLength() { + return this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength; + } + toHex() { + return (0, util_1.u8aToHex)(this.toU8a()); + } + toRawType() { + return "Address"; + } + toU8a(isBare) { + const encoded = this.inner.toU8a().subarray(0, this._rawLength); + return isBare ? encoded : (0, util_1.u8aConcat)(this.inner instanceof AccountIndex_js_1.GenericAccountIndex ? AccountIndex_js_1.GenericAccountIndex.writeLength(encoded) : exports2.ACCOUNT_ID_PREFIX, encoded); + } + }; + exports2.GenericEthereumLookupSource = GenericEthereumLookupSource2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/ethereum/index.js + var require_ethereum3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/ethereum/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericEthereumLookupSource = exports2.GenericEthereumAccountId = void 0; + var AccountId_js_1 = require_AccountId2(); + Object.defineProperty(exports2, "GenericEthereumAccountId", { enumerable: true, get: function() { + return AccountId_js_1.GenericEthereumAccountId; + } }); + var LookupSource_js_1 = require_LookupSource2(); + Object.defineProperty(exports2, "GenericEthereumLookupSource", { enumerable: true, get: function() { + return LookupSource_js_1.GenericEthereumLookupSource; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/generic/index.js + var require_generic = __commonJS({ + "../../node_modules/@polkadot/types/cjs/generic/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GenericVote = exports2.GenericMultiAddress = exports2.GenericAddress = exports2.GenericLookupSource = exports2.GenericEventData = exports2.GenericEvent = exports2.GenericConsensusEngineId = exports2.GenericChainProperties = exports2.GenericCall = exports2.GenericBlock = exports2.GenericAccountIndex = exports2.GenericAccountId33 = exports2.GenericAccountId32 = exports2.GenericAccountId = void 0; + var tslib_1 = require_tslib(); + var AccountId_js_1 = require_AccountId(); + Object.defineProperty(exports2, "GenericAccountId", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId; + } }); + Object.defineProperty(exports2, "GenericAccountId32", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId; + } }); + Object.defineProperty(exports2, "GenericAccountId33", { enumerable: true, get: function() { + return AccountId_js_1.GenericAccountId33; + } }); + var AccountIndex_js_1 = require_AccountIndex(); + Object.defineProperty(exports2, "GenericAccountIndex", { enumerable: true, get: function() { + return AccountIndex_js_1.GenericAccountIndex; + } }); + var Block_js_1 = require_Block(); + Object.defineProperty(exports2, "GenericBlock", { enumerable: true, get: function() { + return Block_js_1.GenericBlock; + } }); + var Call_js_1 = require_Call(); + Object.defineProperty(exports2, "GenericCall", { enumerable: true, get: function() { + return Call_js_1.GenericCall; + } }); + var ChainProperties_js_1 = require_ChainProperties(); + Object.defineProperty(exports2, "GenericChainProperties", { enumerable: true, get: function() { + return ChainProperties_js_1.GenericChainProperties; + } }); + var ConsensusEngineId_js_1 = require_ConsensusEngineId(); + Object.defineProperty(exports2, "GenericConsensusEngineId", { enumerable: true, get: function() { + return ConsensusEngineId_js_1.GenericConsensusEngineId; + } }); + var Event_js_1 = require_Event(); + Object.defineProperty(exports2, "GenericEvent", { enumerable: true, get: function() { + return Event_js_1.GenericEvent; + } }); + Object.defineProperty(exports2, "GenericEventData", { enumerable: true, get: function() { + return Event_js_1.GenericEventData; + } }); + var LookupSource_js_1 = require_LookupSource(); + Object.defineProperty(exports2, "GenericLookupSource", { enumerable: true, get: function() { + return LookupSource_js_1.GenericLookupSource; + } }); + var MultiAddress_js_1 = require_MultiAddress(); + Object.defineProperty(exports2, "GenericAddress", { enumerable: true, get: function() { + return MultiAddress_js_1.GenericMultiAddress; + } }); + Object.defineProperty(exports2, "GenericMultiAddress", { enumerable: true, get: function() { + return MultiAddress_js_1.GenericMultiAddress; + } }); + var Vote_js_1 = require_Vote(); + Object.defineProperty(exports2, "GenericVote", { enumerable: true, get: function() { + return Vote_js_1.GenericVote; + } }); + tslib_1.__exportStar(require_ethereum3(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/Data.js + var require_Data = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/Data.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Data = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + function decodeDataU8a2(registry, value) { + const indicator = value[0]; + if (!indicator) { + return [void 0, void 0]; + } else if (indicator >= 1 && indicator <= 33) { + const length = indicator - 1; + const data = value.subarray(1, length + 1); + return [registry.createTypeUnsafe("Raw", [data]), 1]; + } else if (indicator >= 34 && indicator <= 37) { + return [value.subarray(1, 32 + 1), indicator - 32]; + } + throw new Error(`Unable to decode Data, invalid indicator byte ${indicator}`); + } + function decodeData2(registry, value) { + if ((0, util_1.isU8a)(value) || (0, util_1.isString)(value)) { + return decodeDataU8a2(registry, (0, util_1.u8aToU8a)(value)); + } else if (!value) { + return [void 0, void 0]; + } + return [value, void 0]; + } + var Data2 = class extends types_codec_1.Enum { + constructor(registry, value) { + super(registry, { + None: "Null", + Raw: "Bytes", + BlakeTwo256: "H256", + Sha256: "H256", + Keccak256: "H256", + ShaThree256: "H256" + }, ...decodeData2(registry, value)); + if (this.isRaw && this.asRaw.length > 32) { + throw new Error("Data.Raw values are limited to a maximum length of 32 bytes"); + } + } + get asBlakeTwo256() { + return this.value; + } + get asKeccak256() { + return this.value; + } + get asRaw() { + return this.value; + } + get asSha256() { + return this.value; + } + get asShaThree256() { + return this.value; + } + get isBlakeTwo256() { + return this.index === 2; + } + get isKeccak256() { + return this.index === 4; + } + get isNone() { + return this.index === 0; + } + get isRaw() { + return this.index === 1; + } + get isSha256() { + return this.index === 3; + } + get isShaThree256() { + return this.index === 5; + } + get encodedLength() { + return this.toU8a().length; + } + toU8a() { + if (this.index === 0) { + return new Uint8Array(1); + } else if (this.index === 1) { + const data = this.value.toU8a(true); + const length = Math.min(data.length, 32); + const u8a2 = new Uint8Array(length + 1); + u8a2.set([length + 1], 0); + u8a2.set(data.subarray(0, length), 1); + return u8a2; + } + const u8a = new Uint8Array(33); + u8a.set([this.index + 32], 0); + u8a.set(this.value.toU8a(), 1); + return u8a; + } + }; + exports2.Data = Data2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/StorageKey.js + var require_StorageKey = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/StorageKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StorageKey = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var index_js_1 = require_util4(); + var index_js_2 = require_util5(); + var HASHER_MAP2 = { + Blake2_128: [16, false], + Blake2_128Concat: [16, true], + Blake2_256: [32, false], + Identity: [0, true], + Twox128: [16, false], + Twox256: [32, false], + Twox64Concat: [8, true] + }; + function decodeStorageKey2(value) { + if ((0, util_1.isU8a)(value) || !value || (0, util_1.isString)(value)) { + return { key: value }; + } else if (value instanceof StorageKey2) { + return { + key: value, + method: value.method, + section: value.section + }; + } else if ((0, util_1.isFunction)(value)) { + return { + key: value(), + method: value.method, + section: value.section + }; + } else if (Array.isArray(value)) { + const [fn2, args = []] = value; + if (!(0, util_1.isFunction)(fn2)) { + throw new Error("Expected function input for key construction"); + } + if (fn2.meta && fn2.meta.type.isMap) { + const map2 = fn2.meta.type.asMap; + if (!Array.isArray(args) || args.length !== map2.hashers.length) { + throw new Error(`Expected an array of ${map2.hashers.length} values as params to a Map query`); + } + } + return { + key: fn2(...args), + method: fn2.method, + section: fn2.section + }; + } + throw new Error(`Unable to convert input ${value} to StorageKey`); + } + function decodeHashers2(registry, value, hashers) { + let offset = 32; + const count = hashers.length; + const result = new Array(count); + for (let i = 0; i < count; i++) { + const [hasher2, type] = hashers[i]; + const [hashLen, canDecode] = HASHER_MAP2[hasher2.type]; + const decoded = canDecode ? registry.createTypeUnsafe((0, index_js_1.getSiName)(registry.lookup, type), [value.subarray(offset + hashLen)]) : registry.createTypeUnsafe("Raw", [value.subarray(offset, offset + hashLen)]); + offset += hashLen + (canDecode ? decoded.encodedLength : 0); + result[i] = decoded; + } + return result; + } + function decodeArgsFromMeta2(registry, value, meta2) { + if (!meta2 || !meta2.type.isMap) { + return []; + } + const { hashers, key: key2 } = meta2.type.asMap; + const keys = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple; + return decodeHashers2(registry, value, hashers.map((h, i) => [h, keys[i]])); + } + function getMeta2(value) { + if (value instanceof StorageKey2) { + return value.meta; + } else if ((0, util_1.isFunction)(value)) { + return value.meta; + } else if (Array.isArray(value)) { + const [fn2] = value; + return fn2.meta; + } + return void 0; + } + function getType2(registry, value) { + if (value instanceof StorageKey2) { + return value.outputType; + } else if ((0, util_1.isFunction)(value)) { + return (0, index_js_2.unwrapStorageType)(registry, value.meta.type); + } else if (Array.isArray(value)) { + const [fn2] = value; + if (fn2.meta) { + return (0, index_js_2.unwrapStorageType)(registry, fn2.meta.type); + } + } + return "Raw"; + } + var StorageKey2 = class extends types_codec_1.Bytes { + __internal__args; + __internal__meta; + __internal__outputType; + __internal__method; + __internal__section; + constructor(registry, value, override = {}) { + const { key: key2, method, section } = decodeStorageKey2(value); + super(registry, key2); + this.__internal__outputType = getType2(registry, value); + this.setMeta(getMeta2(value), override.section || section, override.method || method); + } + get args() { + return this.__internal__args; + } + get meta() { + return this.__internal__meta; + } + get method() { + return this.__internal__method; + } + get outputType() { + return this.__internal__outputType; + } + get section() { + return this.__internal__section; + } + is(key2) { + return key2.section === this.section && key2.method === this.method; + } + setMeta(meta2, section, method) { + this.__internal__meta = meta2; + this.__internal__method = method || this.__internal__method; + this.__internal__section = section || this.__internal__section; + if (meta2) { + this.__internal__outputType = (0, index_js_2.unwrapStorageType)(this.registry, meta2.type); + } + try { + this.__internal__args = decodeArgsFromMeta2(this.registry, this.toU8a(true), meta2); + } catch { + } + return this; + } + toHuman(_isExtended, disableAscii) { + return this.__internal__args.length ? this.__internal__args.map((a) => a.toHuman(void 0, disableAscii)) : super.toHuman(void 0, disableAscii); + } + toRawType() { + return "StorageKey"; + } + }; + exports2.StorageKey = StorageKey2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/primitive/index.js + var require_primitive2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/primitive/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StorageKey = exports2.Data = exports2.usize = exports2.USize = exports2.u256 = exports2.U256 = exports2.u128 = exports2.U128 = exports2.u64 = exports2.U64 = exports2.u32 = exports2.U32 = exports2.u16 = exports2.U16 = exports2.u8 = exports2.U8 = exports2.Type = exports2.Text = exports2.OptionBool = exports2.Null = exports2.isize = exports2.ISize = exports2.i256 = exports2.I256 = exports2.i128 = exports2.I128 = exports2.i64 = exports2.I64 = exports2.i32 = exports2.I32 = exports2.i16 = exports2.I16 = exports2.i8 = exports2.I8 = exports2.f64 = exports2.F64 = exports2.f32 = exports2.F32 = exports2.Bytes = exports2.bool = exports2.Bool = exports2.BitVec = void 0; + var types_codec_1 = require_cjs8(); + Object.defineProperty(exports2, "BitVec", { enumerable: true, get: function() { + return types_codec_1.BitVec; + } }); + Object.defineProperty(exports2, "Bool", { enumerable: true, get: function() { + return types_codec_1.Bool; + } }); + Object.defineProperty(exports2, "bool", { enumerable: true, get: function() { + return types_codec_1.bool; + } }); + Object.defineProperty(exports2, "Bytes", { enumerable: true, get: function() { + return types_codec_1.Bytes; + } }); + Object.defineProperty(exports2, "F32", { enumerable: true, get: function() { + return types_codec_1.F32; + } }); + Object.defineProperty(exports2, "f32", { enumerable: true, get: function() { + return types_codec_1.f32; + } }); + Object.defineProperty(exports2, "F64", { enumerable: true, get: function() { + return types_codec_1.F64; + } }); + Object.defineProperty(exports2, "f64", { enumerable: true, get: function() { + return types_codec_1.f64; + } }); + Object.defineProperty(exports2, "I8", { enumerable: true, get: function() { + return types_codec_1.I8; + } }); + Object.defineProperty(exports2, "i8", { enumerable: true, get: function() { + return types_codec_1.i8; + } }); + Object.defineProperty(exports2, "I16", { enumerable: true, get: function() { + return types_codec_1.I16; + } }); + Object.defineProperty(exports2, "i16", { enumerable: true, get: function() { + return types_codec_1.i16; + } }); + Object.defineProperty(exports2, "I32", { enumerable: true, get: function() { + return types_codec_1.I32; + } }); + Object.defineProperty(exports2, "i32", { enumerable: true, get: function() { + return types_codec_1.i32; + } }); + Object.defineProperty(exports2, "I64", { enumerable: true, get: function() { + return types_codec_1.I64; + } }); + Object.defineProperty(exports2, "i64", { enumerable: true, get: function() { + return types_codec_1.i64; + } }); + Object.defineProperty(exports2, "I128", { enumerable: true, get: function() { + return types_codec_1.I128; + } }); + Object.defineProperty(exports2, "i128", { enumerable: true, get: function() { + return types_codec_1.i128; + } }); + Object.defineProperty(exports2, "I256", { enumerable: true, get: function() { + return types_codec_1.I256; + } }); + Object.defineProperty(exports2, "i256", { enumerable: true, get: function() { + return types_codec_1.i256; + } }); + Object.defineProperty(exports2, "ISize", { enumerable: true, get: function() { + return types_codec_1.ISize; + } }); + Object.defineProperty(exports2, "isize", { enumerable: true, get: function() { + return types_codec_1.isize; + } }); + Object.defineProperty(exports2, "Null", { enumerable: true, get: function() { + return types_codec_1.Null; + } }); + Object.defineProperty(exports2, "OptionBool", { enumerable: true, get: function() { + return types_codec_1.OptionBool; + } }); + Object.defineProperty(exports2, "Text", { enumerable: true, get: function() { + return types_codec_1.Text; + } }); + Object.defineProperty(exports2, "Type", { enumerable: true, get: function() { + return types_codec_1.Type; + } }); + Object.defineProperty(exports2, "U8", { enumerable: true, get: function() { + return types_codec_1.U8; + } }); + Object.defineProperty(exports2, "u8", { enumerable: true, get: function() { + return types_codec_1.u8; + } }); + Object.defineProperty(exports2, "U16", { enumerable: true, get: function() { + return types_codec_1.U16; + } }); + Object.defineProperty(exports2, "u16", { enumerable: true, get: function() { + return types_codec_1.u16; + } }); + Object.defineProperty(exports2, "U32", { enumerable: true, get: function() { + return types_codec_1.U32; + } }); + Object.defineProperty(exports2, "u32", { enumerable: true, get: function() { + return types_codec_1.u32; + } }); + Object.defineProperty(exports2, "U64", { enumerable: true, get: function() { + return types_codec_1.U64; + } }); + Object.defineProperty(exports2, "u64", { enumerable: true, get: function() { + return types_codec_1.u64; + } }); + Object.defineProperty(exports2, "U128", { enumerable: true, get: function() { + return types_codec_1.U128; + } }); + Object.defineProperty(exports2, "u128", { enumerable: true, get: function() { + return types_codec_1.u128; + } }); + Object.defineProperty(exports2, "U256", { enumerable: true, get: function() { + return types_codec_1.U256; + } }); + Object.defineProperty(exports2, "u256", { enumerable: true, get: function() { + return types_codec_1.u256; + } }); + Object.defineProperty(exports2, "USize", { enumerable: true, get: function() { + return types_codec_1.USize; + } }); + Object.defineProperty(exports2, "usize", { enumerable: true, get: function() { + return types_codec_1.usize; + } }); + var Data_js_1 = require_Data(); + Object.defineProperty(exports2, "Data", { enumerable: true, get: function() { + return Data_js_1.Data; + } }); + var StorageKey_js_1 = require_StorageKey(); + Object.defineProperty(exports2, "StorageKey", { enumerable: true, get: function() { + return StorageKey_js_1.StorageKey; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/index.types.js + var require_index_types = __commonJS({ + "../../node_modules/@polkadot/types/cjs/index.types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_extrinsic(), exports2); + tslib_1.__exportStar(require_generic(), exports2); + tslib_1.__exportStar(require_primitive2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/util.js + var require_util7 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.objectNameToString = exports2.objectNameToCamel = void 0; + var util_1 = require_cjs3(); + function convert2(fn2) { + return ({ name: name6 }) => fn2(name6); + } + exports2.objectNameToCamel = convert2(util_1.stringCamelCase); + exports2.objectNameToString = convert2((n) => n.toString()); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/createUnchecked.js + var require_createUnchecked = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/createUnchecked.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createUnchecked = void 0; + var util_1 = require_cjs3(); + function isTx2(tx2, callIndex) { + return tx2.callIndex[0] === callIndex[0] && tx2.callIndex[1] === callIndex[1]; + } + function createUnchecked2(registry, section, callIndex, callMetadata) { + const expectedArgs = callMetadata.fields; + const funcName = (0, util_1.stringCamelCase)(callMetadata.name); + const extrinsicFn = (...args) => { + if (expectedArgs.length !== args.length) { + throw new Error(`Extrinsic ${section}.${funcName} expects ${expectedArgs.length} arguments, got ${args.length}.`); + } + return registry.createTypeUnsafe("Call", [{ args, callIndex }, callMetadata]); + }; + extrinsicFn.is = (tx2) => isTx2(tx2, callIndex); + extrinsicFn.callIndex = callIndex; + extrinsicFn.meta = callMetadata; + extrinsicFn.method = funcName; + extrinsicFn.section = section; + extrinsicFn.toJSON = () => callMetadata.toJSON(); + return extrinsicFn; + } + exports2.createUnchecked = createUnchecked2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/index.js + var require_extrinsics = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/extrinsics/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateExtrinsics = exports2.createCallFunction = exports2.filterCallsSome = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var index_js_1 = require_util4(); + var util_js_1 = require_util7(); + var createUnchecked_js_1 = require_createUnchecked(); + function filterCallsSome2({ calls }) { + return calls.isSome; + } + exports2.filterCallsSome = filterCallsSome2; + function createCallFunction2(registry, lookup, variant, sectionName, sectionIndex) { + const { fields, index } = variant; + const count = fields.length; + const args = new Array(count); + for (let i = 0; i < count; i++) { + const { name: name6, type, typeName } = fields[i]; + args[i] = (0, util_1.objectSpread)({ + name: (0, util_1.stringCamelCase)(name6.unwrapOr(`param${i}`)), + type: (0, index_js_1.getSiName)(lookup, type) + }, typeName.isSome ? { typeName: typeName.unwrap() } : null); + } + return (0, createUnchecked_js_1.createUnchecked)(registry, sectionName, new Uint8Array([sectionIndex, index.toNumber()]), registry.createTypeUnsafe("FunctionMetadataLatest", [(0, util_1.objectSpread)({ args }, variant)])); + } + exports2.createCallFunction = createCallFunction2; + function decorateExtrinsics2(registry, { lookup, pallets }, version23) { + const result = {}; + const filtered = pallets.filter(filterCallsSome2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { calls, index, name: name6 } = filtered[i]; + const sectionName = (0, util_1.stringCamelCase)(name6); + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, sectionName, () => (0, lazy_js_1.lazyVariants)(lookup, calls.unwrap(), util_js_1.objectNameToCamel, (variant) => createCallFunction2(registry, lookup, variant, sectionName, sectionIndex))); + } + return result; + } + exports2.decorateExtrinsics = decorateExtrinsics2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v9/toV10.js + var require_toV10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v9/toV10.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV10 = void 0; + var util_1 = require_cjs3(); + function createStorageHasher2(registry, hasher2) { + if (hasher2.toNumber() >= 2) { + return registry.createTypeUnsafe("StorageHasherV10", [hasher2.toNumber() + 1]); + } + return registry.createTypeUnsafe("StorageHasherV10", [hasher2]); + } + function createStorageType2(registry, entryType) { + if (entryType.isMap) { + return [(0, util_1.objectSpread)({}, entryType.asMap, { + hasher: createStorageHasher2(registry, entryType.asMap.hasher) + }), 1]; + } + if (entryType.isDoubleMap) { + return [(0, util_1.objectSpread)({}, entryType.asDoubleMap, { + hasher: createStorageHasher2(registry, entryType.asDoubleMap.hasher), + key2Hasher: createStorageHasher2(registry, entryType.asDoubleMap.key2Hasher) + }), 2]; + } + return [entryType.asPlain, 0]; + } + function convertModule2(registry, mod3) { + const storage = mod3.storage.unwrapOr(null); + return registry.createTypeUnsafe("ModuleMetadataV10", [(0, util_1.objectSpread)({}, mod3, { + storage: storage ? (0, util_1.objectSpread)({}, storage, { + items: storage.items.map((item) => (0, util_1.objectSpread)({}, item, { + type: registry.createTypeUnsafe("StorageEntryTypeV10", createStorageType2(registry, item.type)) + })) + }) : null + })]); + } + function toV102(registry, { modules }) { + return registry.createTypeUnsafe("MetadataV10", [{ + modules: modules.map((mod3) => convertModule2(registry, mod3)) + }]); + } + exports2.toV10 = toV102; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v10/toV11.js + var require_toV11 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v10/toV11.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV11 = void 0; + function toV112(registry, { modules }) { + return registry.createTypeUnsafe("MetadataV11", [{ + extrinsic: { + signedExtensions: [], + version: 0 + }, + modules + }]); + } + exports2.toV11 = toV112; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v11/toV12.js + var require_toV12 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v11/toV12.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV12 = void 0; + var util_1 = require_cjs3(); + function toV122(registry, { extrinsic, modules }) { + return registry.createTypeUnsafe("MetadataV12", [{ + extrinsic, + modules: modules.map((mod3) => registry.createTypeUnsafe("ModuleMetadataV12", [(0, util_1.objectSpread)({}, mod3, { index: 255 })])) + }]); + } + exports2.toV12 = toV122; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v12/toV13.js + var require_toV13 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v12/toV13.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV13 = void 0; + function toV132(registry, v122) { + return registry.createTypeUnsafe("MetadataV13", [v122]); + } + exports2.toV13 = toV132; + } + }); + + // ../../node_modules/@polkadot/types/cjs/interfaces/alias.js + var require_alias = __commonJS({ + "../../node_modules/@polkadot/types/cjs/interfaces/alias.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAliasTypes = void 0; + var typesAlias2 = { + assets: { + Approval: "AssetApproval", + ApprovalKey: "AssetApprovalKey", + Balance: "TAssetBalance", + DestroyWitness: "AssetDestroyWitness" + }, + babe: { + EquivocationProof: "BabeEquivocationProof" + }, + balances: { + Status: "BalanceStatus" + }, + beefy: { + AuthorityId: "BeefyId" + }, + contracts: { + StorageKey: "ContractStorageKey" + }, + electionProviderMultiPhase: { + Phase: "ElectionPhase" + }, + ethereum: { + Block: "EthBlock", + Header: "EthHeader", + Receipt: "EthReceipt", + Transaction: "EthTransaction", + TransactionStatus: "EthTransactionStatus" + }, + evm: { + Account: "EvmAccount", + Log: "EvmLog", + Vicinity: "EvmVicinity" + }, + grandpa: { + Equivocation: "GrandpaEquivocation", + EquivocationProof: "GrandpaEquivocationProof" + }, + identity: { + Judgement: "IdentityJudgement" + }, + inclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraDisputes: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraInclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraScheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + paraShared: { + ValidatorIndex: "ParaValidatorIndex" + }, + parachains: { + Id: "ParaId" + }, + parasDisputes: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasInclusion: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasScheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + parasShared: { + ValidatorIndex: "ParaValidatorIndex" + }, + proposeParachain: { + Proposal: "ParachainProposal" + }, + proxy: { + Announcement: "ProxyAnnouncement" + }, + scheduler: { + ValidatorIndex: "ParaValidatorIndex" + }, + shared: { + ValidatorIndex: "ParaValidatorIndex" + }, + society: { + Judgement: "SocietyJudgement", + Vote: "SocietyVote" + }, + staking: { + Compact: "CompactAssignments" + }, + treasury: { + Proposal: "TreasuryProposal" + }, + xcm: { + AssetId: "XcmAssetId" + }, + xcmPallet: { + AssetId: "XcmAssetId" + } + }; + function getAliasTypes2({ knownTypes: knownTypes2 }, section) { + return { + ...typesAlias2[section] ?? {}, + ...knownTypes2.typesAlias?.[section] ?? {} + }; + } + exports2.getAliasTypes = getAliasTypes2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v13/toV14.js + var require_toV14 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v13/toV14.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV14 = void 0; + var util_1 = require_cjs3(); + var alias_js_1 = require_alias(); + var definitions_js_1 = require_definitions2(); + var BOXES2 = [["<", ">"], ["<", ","], [",", ">"], ["(", ")"], ["(", ","], [",", ","], [",", ")"]]; + function compatType2(specs, _type) { + const type = _type.toString(); + const index = specs.findIndex(({ def }) => def.HistoricMetaCompat === type); + if (index !== -1) { + return index; + } + return specs.push({ + def: { + HistoricMetaCompat: type + } + }) - 1; + } + function compatTypes2(specs, ...types2) { + for (let i = 0, count = types2.length; i < count; i++) { + compatType2(specs, types2[i]); + } + } + function makeTupleType2(specs, entries) { + return specs.push({ + def: { + Tuple: entries + } + }) - 1; + } + function makeVariantType2(modName, variantType, specs, variants) { + return specs.push({ + def: { + Variant: { variants } + }, + path: [`pallet_${modName.toString()}`, "pallet", variantType] + }) - 1; + } + function registerOriginCaller2(registry, modules, metaVersion) { + registry.register({ + OriginCaller: { + _enum: modules.map((mod3, index) => [ + mod3.name.toString(), + metaVersion >= 12 ? mod3.index.toNumber() : index + ]).sort((a, b) => a[1] - b[1]).reduce((result, [name6, index]) => { + for (let i = Object.keys(result).length; i < index; i++) { + result[`Empty${i}`] = "Null"; + } + result[name6] = definitions_js_1.knownOrigins[name6] || "Null"; + return result; + }, {}) + } + }); + } + function setTypeOverride2(sectionTypes, types2) { + types2.forEach((type) => { + const override = Object.keys(sectionTypes).find((aliased) => type.eq(aliased)); + if (override) { + type.setOverride(sectionTypes[override]); + } else { + const orig = type.toString(); + const alias2 = Object.entries(sectionTypes).reduce((result, [src, dst]) => BOXES2.reduce((result2, [a, z]) => result2.replace(`${a}${src}${z}`, `${a}${dst}${z}`), result), orig); + if (orig !== alias2) { + type.setOverride(alias2); + } + } + }); + } + function convertCalls2(specs, registry, modName, calls, sectionTypes) { + const variants = calls.map(({ args, docs, name: name6 }, index) => { + setTypeOverride2(sectionTypes, args.map(({ type }) => type)); + return registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: args.map(({ name: name7, type }) => registry.createTypeUnsafe("SiField", [{ name: name7, type: compatType2(specs, type) }])), + index, + name: name6 + }]); + }); + return registry.createTypeUnsafe("PalletCallMetadataV14", [{ + type: makeVariantType2(modName, "Call", specs, variants) + }]); + } + function convertConstants2(specs, registry, constants2, sectionTypes) { + return constants2.map(({ docs, name: name6, type, value }) => { + setTypeOverride2(sectionTypes, [type]); + return registry.createTypeUnsafe("PalletConstantMetadataV14", [{ + docs, + name: name6, + type: compatType2(specs, type), + value + }]); + }); + } + function convertErrors2(specs, registry, modName, errors2, _sectionTypes) { + const variants = errors2.map(({ docs, name: name6 }, index) => registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: [], + index, + name: name6 + }])); + return registry.createTypeUnsafe("PalletErrorMetadataV14", [{ + type: makeVariantType2(modName, "Error", specs, variants) + }]); + } + function convertEvents2(specs, registry, modName, events, sectionTypes) { + const variants = events.map(({ args, docs, name: name6 }, index) => { + setTypeOverride2(sectionTypes, args); + return registry.createTypeUnsafe("SiVariant", [{ + docs, + fields: args.map((t) => registry.createTypeUnsafe("SiField", [{ type: compatType2(specs, t) }])), + index, + name: name6 + }]); + }); + return registry.createTypeUnsafe("PalletEventMetadataV14", [{ + type: makeVariantType2(modName, "Event", specs, variants) + }]); + } + function createMapEntry2(specs, registry, sectionTypes, { hashers, isLinked, isOptional, keys, value }) { + setTypeOverride2(sectionTypes, [value, ...Array.isArray(keys) ? keys : [keys]]); + return registry.createTypeUnsafe("StorageEntryTypeV14", [{ + Map: { + hashers, + key: hashers.length === 1 ? compatType2(specs, keys[0]) : makeTupleType2(specs, keys.map((t) => compatType2(specs, t))), + value: isLinked ? compatType2(specs, `(${isOptional ? `Option<${value.toString()}>` : value.toString()}, Linkage<${keys[0].toString()}>)`) : compatType2(specs, value) + } + }]); + } + function convertStorage2(specs, registry, { items, prefix }, sectionTypes) { + return registry.createTypeUnsafe("PalletStorageMetadataV14", [{ + items: items.map(({ docs, fallback, modifier, name: name6, type }) => { + let entryType; + if (type.isPlain) { + const plain = type.asPlain; + setTypeOverride2(sectionTypes, [plain]); + entryType = registry.createTypeUnsafe("StorageEntryTypeV14", [{ + Plain: compatType2(specs, plain) + }]); + } else if (type.isMap) { + const map2 = type.asMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: [map2.hasher], + isLinked: map2.linked.isTrue, + isOptional: modifier.isOptional, + keys: [map2.key], + value: map2.value + }); + } else if (type.isDoubleMap) { + const dm2 = type.asDoubleMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: [dm2.hasher, dm2.key2Hasher], + isLinked: false, + isOptional: modifier.isOptional, + keys: [dm2.key1, dm2.key2], + value: dm2.value + }); + } else { + const nm2 = type.asNMap; + entryType = createMapEntry2(specs, registry, sectionTypes, { + hashers: nm2.hashers, + isLinked: false, + isOptional: modifier.isOptional, + keys: nm2.keyVec, + value: nm2.value + }); + } + return registry.createTypeUnsafe("StorageEntryMetadataV14", [{ + docs, + fallback, + modifier, + name: name6, + type: entryType + }]); + }), + prefix + }]); + } + function convertExtrinsic2(registry, { signedExtensions, version: version23 }) { + return registry.createTypeUnsafe("ExtrinsicMetadataV14", [{ + signedExtensions: signedExtensions.map((identifier) => ({ + identifier, + type: 0 + })), + type: 0, + version: version23 + }]); + } + function createPallet2(specs, registry, mod3, { calls, constants: constants2, errors: errors2, events, storage }) { + const sectionTypes = (0, alias_js_1.getAliasTypes)(registry, (0, util_1.stringCamelCase)(mod3.name)); + return registry.createTypeUnsafe("PalletMetadataV14", [{ + calls: calls && convertCalls2(specs, registry, mod3.name, calls, sectionTypes), + constants: convertConstants2(specs, registry, constants2, sectionTypes), + errors: errors2 && convertErrors2(specs, registry, mod3.name, errors2, sectionTypes), + events: events && convertEvents2(specs, registry, mod3.name, events, sectionTypes), + index: mod3.index, + name: mod3.name, + storage: storage && convertStorage2(specs, registry, storage, sectionTypes) + }]); + } + function toV142(registry, v132, metaVersion) { + const specs = []; + compatTypes2(specs, "Null", "u8", "u16", "u32", "u64"); + registerOriginCaller2(registry, v132.modules, metaVersion); + const extrinsic = convertExtrinsic2(registry, v132.extrinsic); + const pallets = v132.modules.map((mod3) => createPallet2(specs, registry, mod3, { + calls: mod3.calls.unwrapOr(null), + constants: mod3.constants, + errors: mod3.errors.length ? mod3.errors : null, + events: mod3.events.unwrapOr(null), + storage: mod3.storage.unwrapOr(null) + })); + return registry.createTypeUnsafe("MetadataV14", [{ + extrinsic, + lookup: { + types: specs.map((type, id4) => registry.createTypeUnsafe("PortableType", [{ id: id4, type }])) + }, + pallets + }]); + } + exports2.toV14 = toV142; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v14/toV15.js + var require_toV15 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v14/toV15.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toV15 = void 0; + var util_1 = require_cjs3(); + function toV152(registry, v143, _) { + const unchecked = v143.lookup.paramTypes.SpRuntimeUncheckedExtrinsic; + return registry.createTypeUnsafe("MetadataV15", [ + (0, util_1.objectSpread)({}, v143, { + extrinsic: registry.createTypeUnsafe("ExtrinsicMetadataV15", [ + (0, util_1.objectSpread)({}, v143.extrinsic, { + addressType: unchecked?.[0].type.unwrapOr(0), + callType: unchecked?.[1].type.unwrapOr(0), + extraType: unchecked?.[3].type.unwrapOr(0), + signatureType: unchecked?.[2].type.unwrapOr(0) + }) + ]), + outerEnums: registry.createTypeUnsafe("OuterEnums15", [{ + callType: unchecked?.[1].type.unwrapOr(0), + eventType: v143.lookup.paramTypes.FrameSystemEventRecord?.[0].type.unwrapOr(0) + }]) + }) + ]); + } + exports2.toV15 = toV152; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/v15/toLatest.js + var require_toLatest = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/v15/toLatest.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toLatest = void 0; + function toLatest2(_registry, v152, _metaVersion) { + return v152; + } + exports2.toLatest = toLatest2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/MagicNumber.js + var require_MagicNumber = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/MagicNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MagicNumber = exports2.MAGIC_NUMBER = void 0; + var types_codec_1 = require_cjs8(); + exports2.MAGIC_NUMBER = 1635018093; + var MagicNumber2 = class extends types_codec_1.U32 { + constructor(registry, value) { + super(registry, value); + if (!this.isEmpty && !this.eq(exports2.MAGIC_NUMBER)) { + throw new Error(`MagicNumber mismatch: expected ${registry.createTypeUnsafe("u32", [exports2.MAGIC_NUMBER]).toHex()}, found ${this.toHex()}`); + } + } + }; + exports2.MagicNumber = MagicNumber2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/versions.js + var require_versions = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/versions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TO_CALLS_VERSION = exports2.LATEST_VERSION = exports2.KNOWN_VERSIONS = void 0; + exports2.KNOWN_VERSIONS = [15, 14, 13, 12, 11, 10, 9]; + exports2.LATEST_VERSION = exports2.KNOWN_VERSIONS[0]; + exports2.TO_CALLS_VERSION = 14; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/MetadataVersioned.js + var require_MetadataVersioned = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/MetadataVersioned.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MetadataVersioned = void 0; + var types_codec_1 = require_cjs8(); + var index_js_1 = require_util4(); + var toV10_js_1 = require_toV10(); + var toV11_js_1 = require_toV11(); + var toV12_js_1 = require_toV12(); + var toV13_js_1 = require_toV13(); + var toV14_js_1 = require_toV14(); + var toV15_js_1 = require_toV15(); + var toLatest_js_1 = require_toLatest(); + var MagicNumber_js_1 = require_MagicNumber(); + var versions_js_1 = require_versions(); + var MetadataVersioned2 = class extends types_codec_1.Struct { + __internal__converted = /* @__PURE__ */ new Map(); + constructor(registry, value) { + super(registry, { + magicNumber: MagicNumber_js_1.MagicNumber, + metadata: "MetadataAll" + }, value); + } + __internal__assertVersion = (version23) => { + if (this.version > version23) { + throw new Error(`Cannot convert metadata from version ${this.version} to ${version23}`); + } + return this.version === version23; + }; + __internal__getVersion = (version23, fromPrev) => { + if (version23 !== "latest" && this.__internal__assertVersion(version23)) { + const asCurr = `asV${version23}`; + return this.__internal__metadata()[asCurr]; + } + if (!this.__internal__converted.has(version23)) { + const asPrev = version23 === "latest" ? `asV${versions_js_1.LATEST_VERSION}` : `asV${version23 - 1}`; + this.__internal__converted.set(version23, fromPrev(this.registry, this[asPrev], this.version)); + } + return this.__internal__converted.get(version23); + }; + __internal__metadata = () => { + return this.getT("metadata"); + }; + get asCallsOnly() { + return new MetadataVersioned2(this.registry, { + magicNumber: this.magicNumber, + metadata: this.registry.createTypeUnsafe("MetadataAll", [(0, index_js_1.toCallsOnly)(this.registry, this.asLatest), versions_js_1.TO_CALLS_VERSION]) + }); + } + get asV9() { + this.__internal__assertVersion(9); + return this.__internal__metadata().asV9; + } + get asV10() { + return this.__internal__getVersion(10, toV10_js_1.toV10); + } + get asV11() { + return this.__internal__getVersion(11, toV11_js_1.toV11); + } + get asV12() { + return this.__internal__getVersion(12, toV12_js_1.toV12); + } + get asV13() { + return this.__internal__getVersion(13, toV13_js_1.toV13); + } + get asV14() { + return this.__internal__getVersion(14, toV14_js_1.toV14); + } + get asV15() { + return this.__internal__getVersion(15, toV15_js_1.toV15); + } + get asLatest() { + return this.__internal__getVersion("latest", toLatest_js_1.toLatest); + } + get magicNumber() { + return this.getT("magicNumber"); + } + get version() { + return this.__internal__metadata().index; + } + getUniqTypes(throwError) { + return (0, index_js_1.getUniqTypes)(this.registry, this.asLatest, throwError); + } + toJSON() { + this.asLatest; + return super.toJSON(); + } + }; + exports2.MetadataVersioned = MetadataVersioned2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/Metadata.js + var require_Metadata = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/Metadata.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Metadata = void 0; + var util_1 = require_cjs3(); + var MetadataVersioned_js_1 = require_MetadataVersioned(); + var EMPTY_METADATA2 = new Uint8Array([109, 101, 116, 97, 9]); + var VERSION_IDX2 = EMPTY_METADATA2.length - 1; + function decodeU8a8(registry, u8a) { + if (u8a.length === 0) { + return EMPTY_METADATA2; + } else if (u8a[VERSION_IDX2] === 9) { + try { + return new MetadataVersioned_js_1.MetadataVersioned(registry, u8a); + } catch { + u8a[VERSION_IDX2] = 10; + } + } + return u8a; + } + var Metadata2 = class extends MetadataVersioned_js_1.MetadataVersioned { + constructor(registry, value) { + super(registry, (0, util_1.isU8a)(value) || (0, util_1.isString)(value) ? decodeU8a8(registry, (0, util_1.u8aToU8a)(value)) : value); + } + }; + exports2.Metadata = Metadata2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/constants/index.js + var require_constants3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/constants/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateConstants = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util7(); + function decorateConstants2(registry, { pallets }, _version) { + const result = {}; + for (let i = 0, count = pallets.length; i < count; i++) { + const { constants: constants2, name: name6 } = pallets[i]; + if (!constants2.isEmpty) { + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, util_1.lazyMethods)({}, constants2, (constant) => { + const codec = registry.createTypeUnsafe(registry.createLookupType(constant.type), [(0, util_1.hexToU8a)(constant.value.toHex())]); + codec.meta = constant; + return codec; + }, util_js_1.objectNameToCamel)); + } + } + return result; + } + exports2.decorateConstants = decorateConstants2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/errors/index.js + var require_errors = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/errors/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateErrors = exports2.variantToMeta = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var util_js_1 = require_util7(); + function variantToMeta(lookup, variant) { + return (0, util_1.objectSpread)({ args: variant.fields.map(({ type }) => lookup.getTypeDef(type).type) }, variant); + } + exports2.variantToMeta = variantToMeta; + function decorateErrors(registry, { lookup, pallets }, version23) { + const result = {}; + for (let i = 0, count = pallets.length; i < count; i++) { + const { errors: errors2, index, name: name6 } = pallets[i]; + if (errors2.isSome) { + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, lazy_js_1.lazyVariants)(lookup, errors2.unwrap(), util_js_1.objectNameToString, (variant) => ({ + is: (errorMod) => (0, util_1.isCodec)(errorMod) && (0, util_1.isCodec)(errorMod.index) && errorMod.index.eq(sectionIndex) && ((0, util_1.isU8a)(errorMod.error) ? errorMod.error[0] === variant.index.toNumber() : (0, util_1.isCodec)(errorMod.error) && errorMod.error.eq(variant.index)), + meta: registry.createTypeUnsafe("ErrorMetadataLatest", [variantToMeta(lookup, variant)]) + }))); + } + } + return result; + } + exports2.decorateErrors = decorateErrors; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/events/index.js + var require_events = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/events/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateEvents = exports2.filterEventsSome = void 0; + var util_1 = require_cjs3(); + var lazy_js_1 = require_lazy2(); + var index_js_1 = require_errors(); + var util_js_1 = require_util7(); + function filterEventsSome2({ events }) { + return events.isSome; + } + exports2.filterEventsSome = filterEventsSome2; + function decorateEvents2(registry, { lookup, pallets }, version23) { + const result = {}; + const filtered = pallets.filter(filterEventsSome2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { events, index, name: name6 } = filtered[i]; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + (0, util_1.lazyMethod)(result, (0, util_1.stringCamelCase)(name6), () => (0, lazy_js_1.lazyVariants)(lookup, events.unwrap(), util_js_1.objectNameToString, (variant) => ({ + is: (eventRecord) => (0, util_1.isCodec)(eventRecord) && (0, util_1.isU8a)(eventRecord.index) && sectionIndex === eventRecord.index[0] && variant.index.eq(eventRecord.index[1]), + meta: registry.createTypeUnsafe("EventMetadataLatest", [(0, index_js_1.variantToMeta)(lookup, variant)]) + }))); + } + return result; + } + exports2.decorateEvents = decorateEvents2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getHasher.js + var require_getHasher = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getHasher.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHasher = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var DEFAULT_FN = (data) => (0, util_crypto_1.xxhashAsU8a)(data, 128); + var HASHERS = { + Blake2_128: (data) => (0, util_crypto_1.blake2AsU8a)(data, 128), + Blake2_128Concat: (data) => (0, util_1.u8aConcat)((0, util_crypto_1.blake2AsU8a)(data, 128), (0, util_1.u8aToU8a)(data)), + Blake2_256: (data) => (0, util_crypto_1.blake2AsU8a)(data, 256), + Identity: (data) => (0, util_1.u8aToU8a)(data), + Twox128: (data) => (0, util_crypto_1.xxhashAsU8a)(data, 128), + Twox256: (data) => (0, util_crypto_1.xxhashAsU8a)(data, 256), + Twox64Concat: (data) => (0, util_1.u8aConcat)((0, util_crypto_1.xxhashAsU8a)(data, 64), (0, util_1.u8aToU8a)(data)) + }; + function getHasher(hasher2) { + return HASHERS[hasher2.type] || DEFAULT_FN; + } + exports2.getHasher = getHasher; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/createFunction.js + var require_createFunction = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/createFunction.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createFunction = exports2.createKeyRaw = exports2.createKeyInspect = exports2.createKeyRawParts = exports2.NO_RAW_ARGS = void 0; + var types_codec_1 = require_cjs8(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util4(); + var getHasher_js_1 = require_getHasher(); + exports2.NO_RAW_ARGS = { + args: [], + hashers: [], + keys: [] + }; + function filterDefined(a) { + return !(0, util_1.isUndefined)(a); + } + function assertArgs({ method, section }, { args, keys }) { + if (!Array.isArray(args)) { + throw new Error(`Call to ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs ${keys.length} arguments`); + } else if (args.filter(filterDefined).length !== keys.length) { + throw new Error(`Call to ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs ${keys.length} arguments, found [${args.join(", ")}]`); + } + } + function createKeyRawParts(registry, itemFn, { args, hashers, keys }) { + const count = keys.length; + const extra = new Array(count); + for (let i = 0; i < count; i++) { + extra[i] = (0, getHasher_js_1.getHasher)(hashers[i])(registry.createTypeUnsafe(registry.createLookupType(keys[i]), [args[i]]).toU8a()); + } + return [ + [ + (0, util_crypto_1.xxhashAsU8a)(itemFn.prefix, 128), + (0, util_crypto_1.xxhashAsU8a)(itemFn.method, 128) + ], + extra + ]; + } + exports2.createKeyRawParts = createKeyRawParts; + function createKeyInspect(registry, itemFn, args) { + assertArgs(itemFn, args); + const { meta: meta2 } = itemFn; + const [prefix, extra] = createKeyRawParts(registry, itemFn, args); + let types2 = []; + if (meta2.type.isMap) { + const { hashers, key: key2 } = meta2.type.asMap; + types2 = hashers.length === 1 ? [`${hashers[0].type}(${(0, index_js_1.getSiName)(registry.lookup, key2)})`] : registry.lookup.getSiType(key2).def.asTuple.map((k, i) => `${hashers[i].type}(${(0, index_js_1.getSiName)(registry.lookup, k)})`); + } + const names2 = ["module", "method"].concat(...args.args.map((_, i) => types2[i])); + return { + inner: prefix.concat(...extra).map((v, i) => ({ name: names2[i], outer: [v] })) + }; + } + exports2.createKeyInspect = createKeyInspect; + function createKeyRaw(registry, itemFn, args) { + const [prefix, extra] = createKeyRawParts(registry, itemFn, args); + return (0, util_1.u8aConcat)(...prefix, ...extra); + } + exports2.createKeyRaw = createKeyRaw; + function createKey(registry, itemFn, args) { + assertArgs(itemFn, args); + return (0, util_1.compactAddLength)(createKeyRaw(registry, itemFn, args)); + } + function createStorageInspect(registry, itemFn, options) { + const { meta: { type } } = itemFn; + return (...args) => { + if (type.isPlain) { + return options.skipHashing ? { inner: [], name: "wellKnown", outer: [(0, util_1.u8aToU8a)(options.key)] } : createKeyInspect(registry, itemFn, exports2.NO_RAW_ARGS); + } + const { hashers, key: key2 } = type.asMap; + return hashers.length === 1 ? createKeyInspect(registry, itemFn, { args, hashers, keys: [key2] }) : createKeyInspect(registry, itemFn, { args, hashers, keys: registry.lookup.getSiType(key2).def.asTuple }); + }; + } + function createStorageFn(registry, itemFn, options) { + const { meta: { type } } = itemFn; + let cacheKey = null; + return (...args) => { + if (type.isPlain) { + if (!cacheKey) { + cacheKey = options.skipHashing ? (0, util_1.compactAddLength)((0, util_1.u8aToU8a)(options.key)) : createKey(registry, itemFn, exports2.NO_RAW_ARGS); + } + return cacheKey; + } + const { hashers, key: key2 } = type.asMap; + return hashers.length === 1 ? createKey(registry, itemFn, { args, hashers, keys: [key2] }) : createKey(registry, itemFn, { args, hashers, keys: registry.lookup.getSiType(key2).def.asTuple }); + }; + } + function createWithMeta(registry, itemFn, options) { + const { meta: meta2, method, prefix, section } = itemFn; + const storageFn = createStorageFn(registry, itemFn, options); + storageFn.inspect = createStorageInspect(registry, itemFn, options); + storageFn.meta = meta2; + storageFn.method = (0, util_1.stringCamelCase)(method); + storageFn.prefix = prefix; + storageFn.section = section; + storageFn.toJSON = () => (0, util_1.objectSpread)({ storage: { method, prefix, section } }, meta2.toJSON()); + return storageFn; + } + function extendHeadMeta(registry, { meta: { docs, name: name6, type }, section }, { method }, iterFn) { + const meta2 = registry.createTypeUnsafe("StorageEntryMetadataLatest", [{ + docs, + fallback: registry.createTypeUnsafe("Bytes", []), + modifier: registry.createTypeUnsafe("StorageEntryModifierLatest", [1]), + name: name6, + type: registry.createTypeUnsafe("StorageEntryTypeLatest", [type.asMap.key, 0]) + }]); + iterFn.meta = meta2; + const fn2 = (...args) => registry.createTypeUnsafe("StorageKey", [iterFn(...args), { method, section }]); + fn2.meta = meta2; + return fn2; + } + function extendPrefixedMap(registry, itemFn, storageFn) { + const { meta: { type }, method, section } = itemFn; + storageFn.iterKey = extendHeadMeta(registry, itemFn, storageFn, (...args) => { + if (args.length && (type.isPlain || args.length >= type.asMap.hashers.length)) { + throw new Error(`Iteration of ${(0, util_1.stringCamelCase)(section || "unknown")}.${(0, util_1.stringCamelCase)(method || "unknown")} needs arguments to be at least one less than the full arguments, found [${args.join(", ")}]`); + } + if (args.length) { + if (type.isMap) { + const { hashers, key: key2 } = type.asMap; + const keysVec = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple; + return new types_codec_1.Raw(registry, createKeyRaw(registry, itemFn, { args, hashers: hashers.slice(0, args.length), keys: keysVec.slice(0, args.length) })); + } + } + return new types_codec_1.Raw(registry, createKeyRaw(registry, itemFn, exports2.NO_RAW_ARGS)); + }); + return storageFn; + } + function createFunction(registry, itemFn, options) { + const { meta: { type } } = itemFn; + const storageFn = createWithMeta(registry, itemFn, options); + if (type.isMap) { + extendPrefixedMap(registry, itemFn, storageFn); + } + storageFn.keyPrefix = (...args) => storageFn.iterKey && storageFn.iterKey(...args) || (0, util_1.compactStripLength)(storageFn())[1]; + return storageFn; + } + exports2.createFunction = createFunction; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/util.js + var require_util8 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createRuntimeFunction = void 0; + var types_create_1 = require_cjs9(); + var createFunction_js_1 = require_createFunction(); + function findSiPrimitive(registry, type) { + const prim = type.toLowerCase(); + return registry.lookup.types.find((t) => t.type.def.isPrimitive && t.type.def.asPrimitive.toString().toLowerCase() === prim || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.toString().toLowerCase() === prim); + } + function findSiType(registry, type) { + let portable = findSiPrimitive(registry, type); + if (!portable && (type === "Bytes" || type.startsWith("[u8;"))) { + const u84 = findSiPrimitive(registry, "u8"); + if (u84) { + if (type === "Bytes") { + portable = registry.lookup.types.find((t) => t.type.def.isSequence && t.type.def.asSequence.type.eq(u84.id) || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.eq(type)); + } else { + const td2 = (0, types_create_1.getTypeDef)(type); + portable = registry.lookup.types.find((t) => t.type.def.isArray && t.type.def.asArray.eq({ + len: td2.length, + type: u84.id + }) || t.type.def.isHistoricMetaCompat && t.type.def.asHistoricMetaCompat.eq(type)); + } + } + } + if (!portable) { + console.warn(`Unable to map ${type} to a lookup index`); + } + return portable; + } + function createRuntimeFunction({ method, prefix, section }, key2, { docs, type }) { + return (registry) => (0, createFunction_js_1.createFunction)(registry, { + meta: registry.createTypeUnsafe("StorageEntryMetadataLatest", [{ + docs: registry.createTypeUnsafe("Vec", [[docs]]), + modifier: registry.createTypeUnsafe("StorageEntryModifierLatest", ["Required"]), + name: registry.createTypeUnsafe("Text", [method]), + toJSON: () => key2, + type: registry.createTypeUnsafe("StorageEntryTypeLatest", [{ Plain: findSiType(registry, type)?.id || 0 }]) + }]), + method, + prefix, + section + }, { key: key2, skipHashing: true }); + } + exports2.createRuntimeFunction = createRuntimeFunction; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/substrate.js + var require_substrate2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.substrate = void 0; + var util_js_1 = require_util8(); + var prefix = "Substrate"; + var section = "substrate"; + function createSubstrateFn(method, key2, meta2) { + return (0, util_js_1.createRuntimeFunction)({ method, prefix, section }, key2, meta2); + } + exports2.substrate = { + changesTrieConfig: createSubstrateFn("changesTrieConfig", ":changes_trie", { + docs: "Changes trie configuration is stored under this key.", + type: "u32" + }), + childStorageKeyPrefix: createSubstrateFn("childStorageKeyPrefix", ":child_storage:", { + docs: "Prefix of child storage keys.", + type: "u32" + }), + code: createSubstrateFn("code", ":code", { + docs: "Wasm code of the runtime.", + type: "Bytes" + }), + extrinsicIndex: createSubstrateFn("extrinsicIndex", ":extrinsic_index", { + docs: "Current extrinsic index (u32) is stored under this key.", + type: "u32" + }), + heapPages: createSubstrateFn("heapPages", ":heappages", { + docs: "Number of wasm linear memory pages required for execution of the runtime.", + type: "u64" + }), + intrablockEntropy: createSubstrateFn("intrablockEntropy", ":intrablock_entropy", { + docs: "Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.", + type: "[u8; 32]" + }) + }; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getStorage.js + var require_getStorage = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/getStorage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getStorage = void 0; + var substrate_js_1 = require_substrate2(); + function getStorage(registry) { + const storage = {}; + const entries = Object.entries(substrate_js_1.substrate); + for (let e = 0, count = entries.length; e < count; e++) { + storage[entries[e][0]] = entries[e][1](registry); + } + return { substrate: storage }; + } + exports2.getStorage = getStorage; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/index.js + var require_storage2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/storage/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateStorage = void 0; + var util_1 = require_cjs3(); + var util_js_1 = require_util7(); + var createFunction_js_1 = require_createFunction(); + var getStorage_js_1 = require_getStorage(); + var util_js_2 = require_util8(); + var VERSION_NAME = "palletVersion"; + var VERSION_KEY = ":__STORAGE_VERSION__:"; + var VERSION_DOCS = { docs: "Returns the current pallet version from storage", type: "u16" }; + function decorateStorage(registry, { pallets }, _metaVersion) { + const result = (0, getStorage_js_1.getStorage)(registry); + for (let i = 0, count = pallets.length; i < count; i++) { + const { name: name6, storage } = pallets[i]; + if (storage.isSome) { + const section = (0, util_1.stringCamelCase)(name6); + const { items, prefix: _prefix } = storage.unwrap(); + const prefix = _prefix.toString(); + (0, util_1.lazyMethod)(result, section, () => (0, util_1.lazyMethods)({ + palletVersion: (0, util_js_2.createRuntimeFunction)({ method: VERSION_NAME, prefix, section }, (0, createFunction_js_1.createKeyRaw)(registry, { method: VERSION_KEY, prefix: name6.toString() }, createFunction_js_1.NO_RAW_ARGS), VERSION_DOCS)(registry) + }, items, (meta2) => (0, createFunction_js_1.createFunction)(registry, { meta: meta2, method: meta2.name.toString(), prefix, section }, {}), util_js_1.objectNameToCamel)); + } + } + return result; + } + exports2.decorateStorage = decorateStorage; + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/decorate/index.js + var require_decorate = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/decorate/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterEventsSome = exports2.filterCallsSome = exports2.decorateStorage = exports2.decorateExtrinsics = exports2.decorateEvents = exports2.decorateErrors = exports2.decorateConstants = exports2.expandMetadata = void 0; + var Metadata_js_1 = require_Metadata(); + var index_js_1 = require_constants3(); + Object.defineProperty(exports2, "decorateConstants", { enumerable: true, get: function() { + return index_js_1.decorateConstants; + } }); + var index_js_2 = require_errors(); + Object.defineProperty(exports2, "decorateErrors", { enumerable: true, get: function() { + return index_js_2.decorateErrors; + } }); + var index_js_3 = require_events(); + Object.defineProperty(exports2, "decorateEvents", { enumerable: true, get: function() { + return index_js_3.decorateEvents; + } }); + Object.defineProperty(exports2, "filterEventsSome", { enumerable: true, get: function() { + return index_js_3.filterEventsSome; + } }); + var index_js_4 = require_extrinsics(); + Object.defineProperty(exports2, "decorateExtrinsics", { enumerable: true, get: function() { + return index_js_4.decorateExtrinsics; + } }); + Object.defineProperty(exports2, "filterCallsSome", { enumerable: true, get: function() { + return index_js_4.filterCallsSome; + } }); + var index_js_5 = require_storage2(); + Object.defineProperty(exports2, "decorateStorage", { enumerable: true, get: function() { + return index_js_5.decorateStorage; + } }); + function expandMetadata(registry, metadata) { + if (!(metadata instanceof Metadata_js_1.Metadata)) { + throw new Error("You need to pass a valid Metadata instance to Decorated"); + } + const latest2 = metadata.asLatest; + const version23 = metadata.version; + return { + consts: (0, index_js_1.decorateConstants)(registry, latest2, version23), + errors: (0, index_js_2.decorateErrors)(registry, latest2, version23), + events: (0, index_js_3.decorateEvents)(registry, latest2, version23), + query: (0, index_js_5.decorateStorage)(registry, latest2, version23), + registry, + tx: (0, index_js_4.decorateExtrinsics)(registry, latest2, version23) + }; + } + exports2.expandMetadata = expandMetadata; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/registry.js + var require_registry2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TypeRegistry = void 0; + var tslib_1 = require_tslib(); + var types_codec_1 = require_cjs8(); + var types_create_1 = require_cjs9(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_signedExtensions(); + var Event_js_1 = require_Event(); + var baseTypes = tslib_1.__importStar(require_index_types()); + var definitions = tslib_1.__importStar(require_definitions75()); + var index_js_2 = require_extrinsics(); + var index_js_3 = require_decorate(); + var Metadata_js_1 = require_Metadata(); + var index_js_4 = require_PortableRegistry2(); + var lazy_js_1 = require_lazy2(); + var DEFAULT_FIRST_CALL_IDX2 = new Uint8Array(2); + var l15 = (0, util_1.logger)("registry"); + function sortDecimalStrings2(a, b) { + return parseInt(a, 10) - parseInt(b, 10); + } + function valueToString2(v) { + return v.toString(); + } + function getFieldArgs2(lookup, fields) { + const count = fields.length; + const args = new Array(count); + for (let i = 0; i < count; i++) { + args[i] = lookup.getTypeDef(fields[i].type).type; + } + return args; + } + function clearRecord2(record) { + const keys = Object.keys(record); + for (let i = 0, count = keys.length; i < count; i++) { + delete record[keys[i]]; + } + } + function getVariantStringIdx2({ index }) { + return index.toString(); + } + function injectErrors2(_, { lookup, pallets }, version23, result) { + clearRecord2(result); + for (let i = 0, count = pallets.length; i < count; i++) { + const { errors: errors2, index, name: name6 } = pallets[i]; + if (errors2.isSome) { + const sectionName = (0, util_1.stringCamelCase)(name6); + (0, util_1.lazyMethod)(result, version23 >= 12 ? index.toNumber() : i, () => (0, lazy_js_1.lazyVariants)(lookup, errors2.unwrap(), getVariantStringIdx2, ({ docs, fields, index: index2, name: name7 }) => ({ + args: getFieldArgs2(lookup, fields), + docs: docs.map(valueToString2), + fields, + index: index2.toNumber(), + method: name7.toString(), + name: name7.toString(), + section: sectionName + }))); + } + } + } + function injectEvents2(registry, { lookup, pallets }, version23, result) { + const filtered = pallets.filter(index_js_3.filterEventsSome); + clearRecord2(result); + for (let i = 0, count = filtered.length; i < count; i++) { + const { events, index, name: name6 } = filtered[i]; + (0, util_1.lazyMethod)(result, version23 >= 12 ? index.toNumber() : i, () => (0, lazy_js_1.lazyVariants)(lookup, events.unwrap(), getVariantStringIdx2, (variant) => { + const meta2 = registry.createType("EventMetadataLatest", (0, util_1.objectSpread)({}, variant, { args: getFieldArgs2(lookup, variant.fields) })); + return class extends Event_js_1.GenericEventData { + constructor(registry2, value) { + super(registry2, value, meta2, (0, util_1.stringCamelCase)(name6), variant.name.toString()); + } + }; + })); + } + } + function injectExtrinsics2(registry, { lookup, pallets }, version23, result, mapping2) { + const filtered = pallets.filter(index_js_3.filterCallsSome); + clearRecord2(result); + clearRecord2(mapping2); + for (let i = 0, count = filtered.length; i < count; i++) { + const { calls, index, name: name6 } = filtered[i]; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; + const sectionName = (0, util_1.stringCamelCase)(name6); + const allCalls = calls.unwrap(); + (0, util_1.lazyMethod)(result, sectionIndex, () => (0, lazy_js_1.lazyVariants)(lookup, allCalls, getVariantStringIdx2, (variant) => (0, index_js_2.createCallFunction)(registry, lookup, variant, sectionName, sectionIndex))); + const { path } = registry.lookup.getSiType(allCalls.type); + const palletIdx = path.findIndex((v) => v.eq("pallet")); + if (palletIdx !== -1) { + const name7 = (0, util_1.stringCamelCase)(path.slice(0, palletIdx).map((p, i10) => i10 === 0 ? p.replace(/^(frame|pallet)_/, "") : p).join(" ")); + if (!mapping2[name7]) { + mapping2[name7] = [sectionName]; + } else { + mapping2[name7].push(sectionName); + } + } + } + } + function extractProperties2(registry, metadata) { + const original = registry.getChainProperties(); + const constants2 = (0, index_js_3.decorateConstants)(registry, metadata.asLatest, metadata.version); + const ss58Format = constants2["system"] && (constants2["system"]["sS58Prefix"] || constants2["system"]["ss58Prefix"]); + if (!ss58Format) { + return original; + } + const { isEthereum, tokenDecimals, tokenSymbol } = original || {}; + return registry.createTypeUnsafe("ChainProperties", [{ isEthereum, ss58Format, tokenDecimals, tokenSymbol }]); + } + var TypeRegistry2 = class { + __internal__chainProperties; + __internal__classes = /* @__PURE__ */ new Map(); + __internal__definitions = /* @__PURE__ */ new Map(); + __internal__firstCallIndex = null; + __internal__hasher = util_crypto_1.blake2AsU8a; + __internal__knownTypes = {}; + __internal__lookup; + __internal__metadata; + __internal__metadataVersion = 0; + __internal__signedExtensions = index_js_1.fallbackExtensions; + __internal__unknownTypes = /* @__PURE__ */ new Map(); + __internal__userExtensions; + __internal__knownDefaults; + __internal__knownDefaultsEntries; + __internal__knownDefinitions; + __internal__metadataCalls = {}; + __internal__metadataErrors = {}; + __internal__metadataEvents = {}; + __internal__moduleMap = {}; + createdAtHash; + constructor(createdAtHash) { + this.__internal__knownDefaults = (0, util_1.objectSpread)({ Json: types_codec_1.Json, Metadata: Metadata_js_1.Metadata, PortableRegistry: index_js_4.PortableRegistry, Raw: types_codec_1.Raw }, baseTypes); + this.__internal__knownDefaultsEntries = Object.entries(this.__internal__knownDefaults); + this.__internal__knownDefinitions = definitions; + const allKnown = Object.values(this.__internal__knownDefinitions); + for (let i = 0, count = allKnown.length; i < count; i++) { + this.register(allKnown[i].types); + } + if (createdAtHash) { + this.createdAtHash = this.createType("BlockHash", createdAtHash); + } + } + get chainDecimals() { + if (this.__internal__chainProperties?.tokenDecimals.isSome) { + const allDecimals = this.__internal__chainProperties.tokenDecimals.unwrap(); + if (allDecimals.length) { + return allDecimals.map((b) => b.toNumber()); + } + } + return [12]; + } + get chainIsEthereum() { + return this.__internal__chainProperties?.isEthereum.isTrue || false; + } + get chainSS58() { + return this.__internal__chainProperties?.ss58Format.isSome ? this.__internal__chainProperties.ss58Format.unwrap().toNumber() : void 0; + } + get chainTokens() { + if (this.__internal__chainProperties?.tokenSymbol.isSome) { + const allTokens = this.__internal__chainProperties.tokenSymbol.unwrap(); + if (allTokens.length) { + return allTokens.map(valueToString2); + } + } + return [util_1.formatBalance.getDefaults().unit]; + } + get firstCallIndex() { + return this.__internal__firstCallIndex || DEFAULT_FIRST_CALL_IDX2; + } + isLookupType(value) { + return /Lookup\d+$/.test(value); + } + createLookupType(lookupId) { + return `Lookup${typeof lookupId === "number" ? lookupId : lookupId.toNumber()}`; + } + get knownTypes() { + return this.__internal__knownTypes; + } + get lookup() { + return (0, util_1.assertReturn)(this.__internal__lookup, "PortableRegistry has not been set on this registry"); + } + get metadata() { + return (0, util_1.assertReturn)(this.__internal__metadata, "Metadata has not been set on this registry"); + } + get unknownTypes() { + return [...this.__internal__unknownTypes.keys()]; + } + get signedExtensions() { + return this.__internal__signedExtensions; + } + clearCache() { + this.__internal__classes = /* @__PURE__ */ new Map(); + } + createClass(type) { + return (0, types_create_1.createClassUnsafe)(this, type); + } + createClassUnsafe(type) { + return (0, types_create_1.createClassUnsafe)(this, type); + } + createType(type, ...params) { + return (0, types_create_1.createTypeUnsafe)(this, type, params); + } + createTypeUnsafe(type, params, options) { + return (0, types_create_1.createTypeUnsafe)(this, type, params, options); + } + findMetaCall(callIndex) { + const [section, method] = [callIndex[0], callIndex[1]]; + return (0, util_1.assertReturn)(this.__internal__metadataCalls[`${section}`] && this.__internal__metadataCalls[`${section}`][`${method}`], () => `findMetaCall: Unable to find Call with index [${section}, ${method}]/[${callIndex.toString()}]`); + } + findMetaError(errorIndex) { + const [section, method] = (0, util_1.isU8a)(errorIndex) ? [errorIndex[0], errorIndex[1]] : [ + errorIndex.index.toNumber(), + (0, util_1.isU8a)(errorIndex.error) ? errorIndex.error[0] : errorIndex.error.toNumber() + ]; + return (0, util_1.assertReturn)(this.__internal__metadataErrors[`${section}`] && this.__internal__metadataErrors[`${section}`][`${method}`], () => `findMetaError: Unable to find Error with index [${section}, ${method}]/[${errorIndex.toString()}]`); + } + findMetaEvent(eventIndex) { + const [section, method] = [eventIndex[0], eventIndex[1]]; + return (0, util_1.assertReturn)(this.__internal__metadataEvents[`${section}`] && this.__internal__metadataEvents[`${section}`][`${method}`], () => `findMetaEvent: Unable to find Event with index [${section}, ${method}]/[${eventIndex.toString()}]`); + } + get(name6, withUnknown, knownTypeDef) { + return this.getUnsafe(name6, withUnknown, knownTypeDef); + } + getUnsafe(name6, withUnknown, knownTypeDef) { + let Type2 = this.__internal__classes.get(name6) || this.__internal__knownDefaults[name6]; + if (!Type2) { + const definition = this.__internal__definitions.get(name6); + let BaseType; + if (definition) { + BaseType = (0, types_create_1.createClassUnsafe)(this, definition); + } else if (knownTypeDef) { + BaseType = (0, types_create_1.constructTypeClass)(this, knownTypeDef); + } else if (withUnknown) { + l15.warn(`Unable to resolve type ${name6}, it will fail on construction`); + this.__internal__unknownTypes.set(name6, true); + BaseType = types_codec_1.DoNotConstruct.with(name6); + } + if (BaseType) { + Type2 = class extends BaseType { + }; + this.__internal__classes.set(name6, Type2); + if (knownTypeDef && (0, util_1.isNumber)(knownTypeDef.lookupIndex)) { + this.__internal__classes.set(this.createLookupType(knownTypeDef.lookupIndex), Type2); + } + } + } + return Type2; + } + getChainProperties() { + return this.__internal__chainProperties; + } + getClassName(Type2) { + const names2 = []; + for (const [name6, Clazz] of this.__internal__knownDefaultsEntries) { + if (Type2 === Clazz) { + names2.push(name6); + } + } + for (const [name6, Clazz] of this.__internal__classes.entries()) { + if (Type2 === Clazz) { + names2.push(name6); + } + } + return names2.length ? names2.sort().reverse()[0] : void 0; + } + getDefinition(typeName) { + return this.__internal__definitions.get(typeName); + } + getModuleInstances(specName, moduleName) { + return this.__internal__knownTypes?.typesBundle?.spec?.[specName.toString()]?.instances?.[moduleName] || this.__internal__moduleMap[moduleName]; + } + getOrThrow(name6) { + const Clazz = this.get(name6); + if (!Clazz) { + throw new Error(`type ${name6} not found`); + } + return Clazz; + } + getOrUnknown(name6) { + return this.get(name6, true); + } + getSignedExtensionExtra() { + return (0, index_js_1.expandExtensionTypes)(this.__internal__signedExtensions, "payload", this.__internal__userExtensions); + } + getSignedExtensionTypes() { + return (0, index_js_1.expandExtensionTypes)(this.__internal__signedExtensions, "extrinsic", this.__internal__userExtensions); + } + hasClass(name6) { + return this.__internal__classes.has(name6) || !!this.__internal__knownDefaults[name6]; + } + hasDef(name6) { + return this.__internal__definitions.has(name6); + } + hasType(name6) { + return !this.__internal__unknownTypes.get(name6) && (this.hasClass(name6) || this.hasDef(name6)); + } + hash(data) { + return this.createType("CodecHash", this.__internal__hasher(data)); + } + register(arg1, arg2) { + if ((0, util_1.isFunction)(arg1)) { + this.__internal__classes.set(arg1.name, arg1); + } else if ((0, util_1.isString)(arg1)) { + if (!(0, util_1.isFunction)(arg2)) { + throw new Error(`Expected class definition passed to '${arg1}' registration`); + } else if (arg1 === arg2.toString()) { + throw new Error(`Unable to register circular ${arg1} === ${arg1}`); + } + this.__internal__classes.set(arg1, arg2); + } else { + this.__internal__registerObject(arg1); + } + } + __internal__registerObject = (obj) => { + const entries = Object.entries(obj); + for (let e = 0, count = entries.length; e < count; e++) { + const [name6, type] = entries[e]; + if ((0, util_1.isFunction)(type)) { + this.__internal__classes.set(name6, type); + } else { + const def = (0, util_1.isString)(type) ? type : (0, util_1.stringify)(type); + if (name6 === def) { + throw new Error(`Unable to register circular ${name6} === ${def}`); + } + if (this.__internal__classes.has(name6)) { + this.__internal__classes.delete(name6); + } + this.__internal__definitions.set(name6, def); + } + } + }; + setChainProperties(properties) { + if (properties) { + this.__internal__chainProperties = properties; + } + } + setHasher(hasher2) { + this.__internal__hasher = hasher2 || util_crypto_1.blake2AsU8a; + } + setKnownTypes(knownTypes2) { + this.__internal__knownTypes = knownTypes2; + } + setLookup(lookup) { + this.__internal__lookup = lookup; + lookup.register(); + } + __internal__registerLookup = (lookup) => { + this.setLookup(lookup); + let Weight = null; + if (this.hasType("SpWeightsWeightV2Weight")) { + const weightv2 = this.createType("SpWeightsWeightV2Weight"); + Weight = weightv2.refTime && weightv2.proofSize ? "SpWeightsWeightV2Weight" : "WeightV1"; + } else if (!(0, util_1.isBn)(this.createType("Weight"))) { + Weight = "WeightV1"; + } + if (Weight) { + this.register({ Weight }); + } + }; + setMetadata(metadata, signedExtensions, userExtensions, noInitWarn) { + this.__internal__metadata = metadata.asLatest; + this.__internal__metadataVersion = metadata.version; + this.__internal__firstCallIndex = null; + this.__internal__registerLookup(this.__internal__metadata.lookup); + injectExtrinsics2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataCalls, this.__internal__moduleMap); + injectErrors2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataErrors); + injectEvents2(this, this.__internal__metadata, this.__internal__metadataVersion, this.__internal__metadataEvents); + const [defSection] = Object.keys(this.__internal__metadataCalls).sort(sortDecimalStrings2); + if (defSection) { + const [defMethod] = Object.keys(this.__internal__metadataCalls[defSection]).sort(sortDecimalStrings2); + if (defMethod) { + this.__internal__firstCallIndex = new Uint8Array([parseInt(defSection, 10), parseInt(defMethod, 10)]); + } + } + this.setSignedExtensions(signedExtensions || (this.__internal__metadata.extrinsic.version.gt(util_1.BN_ZERO) ? this.__internal__metadata.extrinsic.signedExtensions.map(({ identifier }) => identifier.toString()) : index_js_1.fallbackExtensions), userExtensions, noInitWarn); + this.setChainProperties(extractProperties2(this, metadata)); + } + setSignedExtensions(signedExtensions = index_js_1.fallbackExtensions, userExtensions, noInitWarn) { + this.__internal__signedExtensions = signedExtensions; + this.__internal__userExtensions = userExtensions; + if (!noInitWarn) { + const unknown = (0, index_js_1.findUnknownExtensions)(this.__internal__signedExtensions, this.__internal__userExtensions); + if (unknown.length) { + l15.warn(`Unknown signed extensions ${unknown.join(", ")} found, treating them as no-effect`); + } + } + } + }; + exports2.TypeRegistry = TypeRegistry2; + } + }); + + // ../../node_modules/@polkadot/types/cjs/create/index.js + var require_create2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/create/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_exports(), exports2); + tslib_1.__exportStar(require_createClass(), exports2); + tslib_1.__exportStar(require_createType(), exports2); + tslib_1.__exportStar(require_lazy2(), exports2); + tslib_1.__exportStar(require_registry2(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/metadata/index.js + var require_metadata = __commonJS({ + "../../node_modules/@polkadot/types/cjs/metadata/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PortableRegistry = exports2.Metadata = exports2.expandMetadata = exports2.decorateStorage = exports2.decorateExtrinsics = exports2.decorateConstants = void 0; + var index_js_1 = require_decorate(); + Object.defineProperty(exports2, "decorateConstants", { enumerable: true, get: function() { + return index_js_1.decorateConstants; + } }); + Object.defineProperty(exports2, "decorateExtrinsics", { enumerable: true, get: function() { + return index_js_1.decorateExtrinsics; + } }); + Object.defineProperty(exports2, "decorateStorage", { enumerable: true, get: function() { + return index_js_1.decorateStorage; + } }); + Object.defineProperty(exports2, "expandMetadata", { enumerable: true, get: function() { + return index_js_1.expandMetadata; + } }); + var Metadata_js_1 = require_Metadata(); + Object.defineProperty(exports2, "Metadata", { enumerable: true, get: function() { + return Metadata_js_1.Metadata; + } }); + var index_js_2 = require_PortableRegistry2(); + Object.defineProperty(exports2, "PortableRegistry", { enumerable: true, get: function() { + return index_js_2.PortableRegistry; + } }); + } + }); + + // ../../node_modules/@polkadot/types/cjs/bundle.js + var require_bundle6 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typeDefinitions = exports2.rpcDefinitions = exports2.unwrapStorageType = exports2.packageInfo = exports2.convertSiV0toV1 = exports2.TypeDefInfo = void 0; + var tslib_1 = require_tslib(); + var typeDefinitions = tslib_1.__importStar(require_definitions75()); + exports2.typeDefinitions = typeDefinitions; + var jsonrpc_js_1 = tslib_1.__importDefault(require_jsonrpc()); + exports2.rpcDefinitions = jsonrpc_js_1.default; + var types_create_1 = require_cjs9(); + Object.defineProperty(exports2, "TypeDefInfo", { enumerable: true, get: function() { + return types_create_1.TypeDefInfo; + } }); + var index_js_1 = require_PortableRegistry2(); + Object.defineProperty(exports2, "convertSiV0toV1", { enumerable: true, get: function() { + return index_js_1.convertSiV0toV1; + } }); + var packageInfo_js_1 = require_packageInfo14(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_2 = require_util5(); + Object.defineProperty(exports2, "unwrapStorageType", { enumerable: true, get: function() { + return index_js_2.unwrapStorageType; + } }); + tslib_1.__exportStar(require_codec2(), exports2); + tslib_1.__exportStar(require_create2(), exports2); + tslib_1.__exportStar(require_index_types(), exports2); + tslib_1.__exportStar(require_metadata(), exports2); + } + }); + + // ../../node_modules/@polkadot/types/cjs/index.js + var require_cjs10 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect3(); + tslib_1.__exportStar(require_bundle6(), exports2); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/refCountDelay.js + var require_refCountDelay = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/refCountDelay.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.refCountDelay = void 0; + var rxjs_1 = require_cjs7(); + function refCountDelay(delay = 1750) { + return (source) => { + let [state, refCount, connection, scheduler] = [0, 0, rxjs_1.Subscription.EMPTY, rxjs_1.Subscription.EMPTY]; + return new rxjs_1.Observable((ob2) => { + source.subscribe(ob2); + if (refCount++ === 0) { + if (state === 1) { + scheduler.unsubscribe(); + } else { + connection = source.connect(); + } + state = 3; + } + return () => { + if (--refCount === 0) { + if (state === 2) { + state = 0; + scheduler.unsubscribe(); + } else { + state = 1; + scheduler = rxjs_1.asapScheduler.schedule(() => { + state = 0; + connection.unsubscribe(); + }, delay); + } + } + }; + }); + }; + } + exports2.refCountDelay = refCountDelay; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/drr.js + var require_drr = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/drr.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.drr = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var refCountDelay_js_1 = require_refCountDelay(); + function CMP(a, b) { + return (0, util_1.stringify)({ t: a }) === (0, util_1.stringify)({ t: b }); + } + function ERR(error) { + throw error; + } + function NOOP() { + } + function drr({ delay, skipChange = false, skipTimeout = false } = {}) { + return (source$) => source$.pipe( + (0, rxjs_1.catchError)(ERR), + skipChange ? (0, rxjs_1.tap)(NOOP) : (0, rxjs_1.distinctUntilChanged)(CMP), + (0, rxjs_1.publishReplay)(1), + skipTimeout ? (0, rxjs_1.refCount)() : (0, refCountDelay_js_1.refCountDelay)(delay) + ); + } + exports2.drr = drr; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/memo.js + var require_memo = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/memo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.memo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var drr_js_1 = require_drr(); + function memo(instanceId, inner) { + const options = { getInstanceId: () => instanceId }; + const cached = (0, util_1.memoize)((...params) => new rxjs_1.Observable((observer) => { + const subscription = inner(...params).subscribe(observer); + return () => { + cached.unmemoize(...params); + subscription.unsubscribe(); + }; + }).pipe((0, drr_js_1.drr)()), options); + return cached; + } + exports2.memo = memo; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/util/index.js + var require_util9 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_drr(), exports2); + tslib_1.__exportStar(require_memo(), exports2); + tslib_1.__exportStar(require_refCountDelay(), exports2); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/bundle.js + var require_bundle7 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RpcCore = exports2.packageInfo = void 0; + var tslib_1 = require_tslib(); + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var util_1 = require_cjs3(); + var index_js_1 = require_util9(); + var packageInfo_js_1 = require_packageInfo15(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_util9(), exports2); + var l15 = (0, util_1.logger)("rpc-core"); + var EMPTY_META = { + fallback: void 0, + modifier: { isOptional: true }, + type: { + asMap: { linked: { isTrue: false } }, + isMap: false + } + }; + function logErrorMessage(method, { noErrorLog, params, type }, error) { + if (noErrorLog) { + return; + } + l15.error(`${method}(${params.map(({ isOptional, name: name6, type: type2 }) => `${name6}${isOptional ? "?" : ""}: ${type2}`).join(", ")}): ${type}:: ${error.message}`); + } + function isTreatAsHex(key2) { + return ["0x3a636f6465"].includes(key2.toHex()); + } + var RpcCore = class { + __internal__instanceId; + __internal__isPedantic; + __internal__registryDefault; + __internal__storageCache = /* @__PURE__ */ new Map(); + __internal__storageCacheHits = 0; + __internal__storageCacheSize = 0; + __internal__getBlockRegistry; + __internal__getBlockHash; + mapping = /* @__PURE__ */ new Map(); + provider; + sections = []; + constructor(instanceId, registry, { isPedantic = true, provider, userRpc = {} }) { + if (!provider || !(0, util_1.isFunction)(provider.send)) { + throw new Error("Expected Provider to API create"); + } + this.__internal__instanceId = instanceId; + this.__internal__isPedantic = isPedantic; + this.__internal__registryDefault = registry; + this.provider = provider; + const sectionNames = Object.keys(types_1.rpcDefinitions); + this.sections.push(...sectionNames); + this.addUserInterfaces(userRpc); + } + get isConnected() { + return this.provider.isConnected; + } + connect() { + return this.provider.connect(); + } + disconnect() { + return this.provider.disconnect(); + } + get stats() { + const stats = this.provider.stats; + return stats ? { + ...stats, + core: { + cacheHits: this.__internal__storageCacheHits, + cacheSize: this.__internal__storageCacheSize + } + } : void 0; + } + setRegistrySwap(registrySwap) { + this.__internal__getBlockRegistry = (0, util_1.memoize)(registrySwap, { + getInstanceId: () => this.__internal__instanceId + }); + } + setResolveBlockHash(resolveBlockHash) { + this.__internal__getBlockHash = (0, util_1.memoize)(resolveBlockHash, { + getInstanceId: () => this.__internal__instanceId + }); + } + addUserInterfaces(userRpc) { + this.sections.push(...Object.keys(userRpc).filter((k) => !this.sections.includes(k))); + for (let s = 0, scount = this.sections.length; s < scount; s++) { + const section = this.sections[s]; + const defs = (0, util_1.objectSpread)({}, types_1.rpcDefinitions[section], userRpc[section]); + const methods = Object.keys(defs); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const method = methods[m]; + const def = defs[method]; + const jsonrpc = def.endpoint || `${section}_${method}`; + if (!this.mapping.has(jsonrpc)) { + const isSubscription2 = !!def.pubsub; + if (!this[section]) { + this[section] = {}; + } + this.mapping.set(jsonrpc, (0, util_1.objectSpread)({}, def, { isSubscription: isSubscription2, jsonrpc, method, section })); + (0, util_1.lazyMethod)(this[section], method, () => isSubscription2 ? this._createMethodSubscribe(section, method, def) : this._createMethodSend(section, method, def)); + } + } + } + } + _memomize(creator, def) { + const memoOpts = { getInstanceId: () => this.__internal__instanceId }; + const memoized2 = (0, util_1.memoize)(creator(true), memoOpts); + memoized2.raw = (0, util_1.memoize)(creator(false), memoOpts); + memoized2.meta = def; + return memoized2; + } + _formatResult(isScale, registry, blockHash, method, def, params, result) { + return isScale ? this._formatOutput(registry, blockHash, method, def, params, result) : result; + } + _createMethodSend(section, method, def) { + const rpcName = def.endpoint || `${section}_${method}`; + const hashIndex = def.params.findIndex(({ isHistoric }) => isHistoric); + let memoized2 = null; + const callWithRegistry = async (isScale, values) => { + const blockId = hashIndex === -1 ? null : values[hashIndex]; + const blockHash = blockId && def.params[hashIndex].type === "BlockNumber" ? await this.__internal__getBlockHash?.(blockId) : blockId; + const { registry } = isScale && blockHash && this.__internal__getBlockRegistry ? await this.__internal__getBlockRegistry((0, util_1.u8aToU8a)(blockHash)) : { registry: this.__internal__registryDefault }; + const params = this._formatParams(registry, null, def, values); + const result = await this.provider.send(rpcName, params.map((p) => p.toJSON()), !!blockHash); + return this._formatResult(isScale, registry, blockHash, method, def, params, result); + }; + const creator = (isScale) => (...values) => { + const isDelayed = isScale && hashIndex !== -1 && !!values[hashIndex]; + return new rxjs_1.Observable((observer) => { + callWithRegistry(isScale, values).then((value) => { + observer.next(value); + observer.complete(); + }).catch((error) => { + logErrorMessage(method, def, error); + observer.error(error); + observer.complete(); + }); + return () => { + if (isScale) { + memoized2?.unmemoize(...values); + } else { + memoized2?.raw.unmemoize(...values); + } + }; + }).pipe( + (0, rxjs_1.publishReplay)(1), + isDelayed ? (0, index_js_1.refCountDelay)() : (0, rxjs_1.refCount)() + ); + }; + memoized2 = this._memomize(creator, def); + return memoized2; + } + _createSubscriber({ paramsJson, subName, subType, update: update3 }, errorHandler) { + return new Promise((resolve, reject) => { + this.provider.subscribe(subType, subName, paramsJson, update3).then(resolve).catch((error) => { + errorHandler(error); + reject(error); + }); + }); + } + _createMethodSubscribe(section, method, def) { + const [updateType, subMethod, unsubMethod] = def.pubsub; + const subName = `${section}_${subMethod}`; + const unsubName = `${section}_${unsubMethod}`; + const subType = `${section}_${updateType}`; + let memoized2 = null; + const creator = (isScale) => (...values) => { + return new rxjs_1.Observable((observer) => { + let subscriptionPromise = Promise.resolve(null); + const registry = this.__internal__registryDefault; + const errorHandler = (error) => { + logErrorMessage(method, def, error); + observer.error(error); + }; + try { + const params = this._formatParams(registry, null, def, values); + const update3 = (error, result) => { + if (error) { + logErrorMessage(method, def, error); + return; + } + try { + observer.next(this._formatResult(isScale, registry, null, method, def, params, result)); + } catch (error2) { + observer.error(error2); + } + }; + subscriptionPromise = this._createSubscriber({ paramsJson: params.map((p) => p.toJSON()), subName, subType, update: update3 }, errorHandler); + } catch (error) { + errorHandler(error); + } + return () => { + if (isScale) { + memoized2?.unmemoize(...values); + } else { + memoized2?.raw.unmemoize(...values); + } + subscriptionPromise.then((subscriptionId) => (0, util_1.isNull)(subscriptionId) ? Promise.resolve(false) : this.provider.unsubscribe(subType, unsubName, subscriptionId)).catch((error) => logErrorMessage(method, def, error)); + }; + }).pipe((0, index_js_1.drr)()); + }; + memoized2 = this._memomize(creator, def); + return memoized2; + } + _formatParams(registry, blockHash, def, inputs) { + const count = inputs.length; + const reqCount = def.params.filter(({ isOptional }) => !isOptional).length; + if (count < reqCount || count > def.params.length) { + throw new Error(`Expected ${def.params.length} parameters${reqCount === def.params.length ? "" : ` (${def.params.length - reqCount} optional)`}, ${count} found instead`); + } + const params = new Array(count); + for (let i = 0; i < count; i++) { + params[i] = registry.createTypeUnsafe(def.params[i].type, [inputs[i]], { blockHash }); + } + return params; + } + _formatOutput(registry, blockHash, method, rpc18, params, result) { + if (rpc18.type === "StorageData") { + const key2 = params[0]; + return this._formatStorageData(registry, blockHash, key2, result); + } else if (rpc18.type === "StorageChangeSet") { + const keys = params[0]; + return keys ? this._formatStorageSet(registry, result.block, keys, result.changes) : registry.createType("StorageChangeSet", result); + } else if (rpc18.type === "Vec") { + const jsonSet = result; + const count = jsonSet.length; + const mapped = new Array(count); + for (let i = 0; i < count; i++) { + const { block, changes } = jsonSet[i]; + mapped[i] = [ + registry.createType("BlockHash", block), + this._formatStorageSet(registry, block, params[0], changes) + ]; + } + return method === "queryStorageAt" ? mapped[0][1] : mapped; + } + return registry.createTypeUnsafe(rpc18.type, [result], { blockHash }); + } + _formatStorageData(registry, blockHash, key2, value) { + const isEmpty = (0, util_1.isNull)(value); + const input = isEmpty ? null : isTreatAsHex(key2) ? value : (0, util_1.u8aToU8a)(value); + return this._newType(registry, blockHash, key2, input, isEmpty); + } + _formatStorageSet(registry, blockHash, keys, changes) { + const count = keys.length; + const withCache = count !== 1; + const values = new Array(count); + for (let i = 0; i < count; i++) { + values[i] = this._formatStorageSetEntry(registry, blockHash, keys[i], changes, withCache, i); + } + return values; + } + _formatStorageSetEntry(registry, blockHash, key2, changes, withCache, entryIndex) { + const hexKey = key2.toHex(); + const found = changes.find(([key3]) => key3 === hexKey); + const isNotFound = (0, util_1.isUndefined)(found); + if (isNotFound && withCache) { + const cached = this.__internal__storageCache.get(hexKey); + if (cached) { + this.__internal__storageCacheHits++; + return cached; + } + } + const value = isNotFound ? null : found[1]; + const isEmpty = (0, util_1.isNull)(value); + const input = isEmpty || isTreatAsHex(key2) ? value : (0, util_1.u8aToU8a)(value); + const codec = this._newType(registry, blockHash, key2, input, isEmpty, entryIndex); + this.__internal__storageCache.set(hexKey, codec); + this.__internal__storageCacheSize++; + return codec; + } + _newType(registry, blockHash, key2, input, isEmpty, entryIndex = -1) { + const type = key2.outputType || "Raw"; + const meta2 = key2.meta || EMPTY_META; + const entryNum = entryIndex === -1 ? "" : ` entry ${entryIndex}:`; + try { + return registry.createTypeUnsafe(type, [ + isEmpty ? meta2.fallback ? type.includes("Linkage<") ? (0, util_1.u8aConcat)((0, util_1.hexToU8a)(meta2.fallback.toHex()), new Uint8Array(2)) : (0, util_1.hexToU8a)(meta2.fallback.toHex()) : void 0 : meta2.modifier.isOptional ? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: this.__internal__isPedantic }) : input + ], { blockHash, isFallback: isEmpty && !!meta2.fallback, isOptional: meta2.modifier.isOptional, isPedantic: this.__internal__isPedantic && !meta2.modifier.isOptional }); + } catch (error) { + throw new Error(`Unable to decode storage ${key2.section || "unknown"}.${key2.method || "unknown"}:${entryNum}: ${error.message}`); + } + } + }; + exports2.RpcCore = RpcCore; + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/index.js + var require_cjs11 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect2(); + tslib_1.__exportStar(require_bundle7(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/approvalFlagsToBools.js + var require_approvalFlagsToBools = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/approvalFlagsToBools.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.approvalFlagsToBools = void 0; + function approvalFlagsToBools(flags) { + const bools = []; + for (let i = 0, count = flags.length; i < count; i++) { + const str2 = flags[i].toString(2); + for (const bit of str2.split("").reverse()) { + bools.push(!!parseInt(bit, 10)); + } + } + const lastApproval = bools.lastIndexOf(true); + return lastApproval >= 0 ? bools.slice(0, lastApproval + 1) : []; + } + exports2.approvalFlagsToBools = approvalFlagsToBools; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/blockNumber.js + var require_blockNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/blockNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.unwrapBlockNumber = void 0; + var util_1 = require_cjs3(); + function unwrapBlockNumber(hdr) { + return (0, util_1.isCompact)(hdr.number) ? hdr.number.unwrap() : hdr.number; + } + exports2.unwrapBlockNumber = unwrapBlockNumber; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/cacheImpl.js + var require_cacheImpl = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/cacheImpl.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.deriveNoopCache = exports2.deriveMapCache = void 0; + var mapCache = /* @__PURE__ */ new Map(); + exports2.deriveMapCache = { + del: (key2) => { + mapCache.delete(key2); + }, + forEach: (cb2) => { + for (const [k, v] of mapCache.entries()) { + cb2(k, v); + } + }, + get: (key2) => { + return mapCache.get(key2); + }, + set: (key2, value) => { + mapCache.set(key2, value); + } + }; + exports2.deriveNoopCache = { + del: () => void 0, + forEach: () => void 0, + get: () => void 0, + set: (_, value) => value + }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/cache.js + var require_cache = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/cache.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.deriveCache = exports2.setDeriveCache = void 0; + var cacheImpl_js_1 = require_cacheImpl(); + var CHACHE_EXPIRY = 7 * (24 * 60) * (60 * 1e3); + var deriveCache; + function wrapCache(keyStart, cache) { + return { + del: (partial) => cache.del(`${keyStart}${partial}`), + forEach: cache.forEach, + get: (partial) => { + const key2 = `${keyStart}${partial}`; + const cached = cache.get(key2); + if (cached) { + cached.x = Date.now(); + cache.set(key2, cached); + return cached.v; + } + return void 0; + }, + set: (partial, v) => { + cache.set(`${keyStart}${partial}`, { v, x: Date.now() }); + } + }; + } + function clearCache(cache) { + const now2 = Date.now(); + const all = []; + cache.forEach((key2, { x }) => { + now2 - x > CHACHE_EXPIRY && all.push(key2); + }); + all.forEach((key2) => cache.del(key2)); + } + function setDeriveCache(prefix = "", cache) { + exports2.deriveCache = deriveCache = cache ? wrapCache(`derive:${prefix}:`, cache) : cacheImpl_js_1.deriveNoopCache; + if (cache) { + clearCache(cache); + } + } + exports2.setDeriveCache = setDeriveCache; + setDeriveCache(); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/first.js + var require_first2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/first.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.firstMemo = exports2.firstObservable = void 0; + var rxjs_1 = require_cjs7(); + var rpc_core_1 = require_cjs11(); + function firstObservable(obs) { + return obs.pipe((0, rxjs_1.map)(([a]) => a)); + } + exports2.firstObservable = firstObservable; + function firstMemo(fn2) { + return (instanceId, api) => (0, rpc_core_1.memo)(instanceId, (...args) => firstObservable(fn2(api, ...args))); + } + exports2.firstMemo = firstMemo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/lazy.js + var require_lazy3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/lazy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.lazyDeriveSection = void 0; + var util_1 = require_cjs3(); + function lazyDeriveSection(result, section, getKeys2, creator) { + (0, util_1.lazyMethod)(result, section, () => (0, util_1.lazyMethods)({}, getKeys2(section), (method) => creator(section, method))); + } + exports2.lazyDeriveSection = lazyDeriveSection; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/util/index.js + var require_util10 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.memo = exports2.drr = void 0; + var tslib_1 = require_tslib(); + var rpc_core_1 = require_cjs11(); + Object.defineProperty(exports2, "drr", { enumerable: true, get: function() { + return rpc_core_1.drr; + } }); + Object.defineProperty(exports2, "memo", { enumerable: true, get: function() { + return rpc_core_1.memo; + } }); + tslib_1.__exportStar(require_approvalFlagsToBools(), exports2); + tslib_1.__exportStar(require_blockNumber(), exports2); + tslib_1.__exportStar(require_cache(), exports2); + tslib_1.__exportStar(require_cacheImpl(), exports2); + tslib_1.__exportStar(require_first2(), exports2); + tslib_1.__exportStar(require_lazy3(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/accountId.js + var require_accountId = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/accountId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.accountId = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function accountId(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => { + const decoded = (0, util_1.isU8a)(address) ? address : (0, util_crypto_1.decodeAddress)((address || "").toString()); + if (decoded.length > 8) { + return (0, rxjs_1.of)(api.registry.createType("AccountId", decoded)); + } + const accountIndex = api.registry.createType("AccountIndex", decoded); + return api.derive.accounts.indexToId(accountIndex.toString()).pipe((0, rxjs_1.map)((a) => (0, util_1.assertReturn)(a, "Unable to retrieve accountId"))); + }); + } + exports2.accountId = accountId; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/flags.js + var require_flags = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/flags.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.flags = exports2._flags = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function parseFlags(address, [electionsMembers, councilMembers, technicalCommitteeMembers, societyMembers, sudoKey]) { + const addrStr = address?.toString(); + const isIncluded = (id4) => id4.toString() === addrStr; + return { + isCouncil: (electionsMembers?.map((r10) => Array.isArray(r10) ? r10[0] : r10.who) || councilMembers || []).some(isIncluded), + isSociety: (societyMembers || []).some(isIncluded), + isSudo: sudoKey?.toString() === addrStr, + isTechCommittee: (technicalCommitteeMembers || []).some(isIncluded) + }; + } + function _flags(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + const results = [void 0, [], [], [], void 0]; + const calls = [ + (api.query.elections || api.query["phragmenElection"] || api.query["electionsPhragmen"])?.members, + api.query.council?.members, + api.query.technicalCommittee?.members, + api.query.society?.members, + api.query.sudo?.key + ]; + const filtered = calls.filter((c) => c); + if (!filtered.length) { + return (0, rxjs_1.of)(results); + } + return api.queryMulti(filtered).pipe((0, rxjs_1.map)((values) => { + let resultIndex = -1; + for (let i = 0, count = calls.length; i < count; i++) { + if ((0, util_1.isFunction)(calls[i])) { + results[i] = values[++resultIndex]; + } + } + return results; + })); + }); + } + exports2._flags = _flags; + function flags(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts._flags().pipe((0, rxjs_1.map)((r10) => parseFlags(address, r10)))); + } + exports2.flags = flags; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/idAndIndex.js + var require_idAndIndex = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/idAndIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.idAndIndex = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function idAndIndex(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => { + try { + const decoded = (0, util_1.isU8a)(address) ? address : (0, util_crypto_1.decodeAddress)((address || "").toString()); + if (decoded.length > 8) { + const accountId = api.registry.createType("AccountId", decoded); + return api.derive.accounts.idToIndex(accountId).pipe((0, rxjs_1.map)((accountIndex2) => [accountId, accountIndex2])); + } + const accountIndex = api.registry.createType("AccountIndex", decoded); + return api.derive.accounts.indexToId(accountIndex.toString()).pipe((0, rxjs_1.map)((accountId) => [accountId, accountIndex])); + } catch { + return (0, rxjs_1.of)([void 0, void 0]); + } + }); + } + exports2.idAndIndex = idAndIndex; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/identity.js + var require_identity2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/identity.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.hasIdentityMulti = exports2.hasIdentity = exports2.identity = exports2._identity = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var UNDEF_HEX = { toHex: () => void 0 }; + function dataAsString(data) { + return data.isRaw ? (0, util_1.u8aToString)(data.asRaw.toU8a(true)) : data.isNone ? void 0 : data.toHex(); + } + function extractOther(additional) { + return additional.reduce((other, [_key, _value]) => { + const key2 = dataAsString(_key); + const value = dataAsString(_value); + if (key2 && value) { + other[key2] = value; + } + return other; + }, {}); + } + function identityCompat(identityOfOpt) { + const identity4 = identityOfOpt.unwrap(); + return Array.isArray(identity4) ? identity4[0] : identity4; + } + function extractIdentity(identityOfOpt, superOf) { + if (!identityOfOpt?.isSome) { + return { judgements: [] }; + } + const { info, judgements } = identityCompat(identityOfOpt); + const topDisplay = dataAsString(info.display); + return { + display: superOf && dataAsString(superOf[1]) || topDisplay, + displayParent: superOf && topDisplay, + email: dataAsString(info.email), + image: dataAsString(info.image), + judgements, + legal: dataAsString(info.legal), + other: extractOther(info.additional), + parent: superOf?.[0], + pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(), + riot: dataAsString(info.riot), + twitter: dataAsString(info.twitter), + web: dataAsString(info.web) + }; + } + function getParent(api, identityOfOpt, superOfOpt) { + if (identityOfOpt?.isSome) { + return (0, rxjs_1.of)([identityOfOpt, void 0]); + } else if (superOfOpt?.isSome) { + const superOf = superOfOpt.unwrap(); + return (0, rxjs_1.combineLatest)([ + api.derive.accounts._identity(superOf[0]).pipe((0, rxjs_1.map)(([info]) => info)), + (0, rxjs_1.of)(superOf) + ]); + } + return (0, rxjs_1.of)([void 0, void 0]); + } + function _identity(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => accountId && api.query.identity?.identityOf ? (0, rxjs_1.combineLatest)([ + api.query.identity.identityOf(accountId), + api.query.identity.superOf(accountId) + ]) : (0, rxjs_1.of)([void 0, void 0])); + } + exports2._identity = _identity; + function identity3(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.accounts._identity(accountId).pipe((0, rxjs_1.switchMap)(([identityOfOpt, superOfOpt]) => getParent(api, identityOfOpt, superOfOpt)), (0, rxjs_1.map)(([identityOfOpt, superOf]) => extractIdentity(identityOfOpt, superOf)))); + } + exports2.identity = identity3; + exports2.hasIdentity = (0, index_js_1.firstMemo)((api, accountId) => api.derive.accounts.hasIdentityMulti([accountId])); + function hasIdentityMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds) => api.query.identity?.identityOf ? (0, rxjs_1.combineLatest)([ + api.query.identity.identityOf.multi(accountIds), + api.query.identity.superOf.multi(accountIds) + ]).pipe((0, rxjs_1.map)(([identities, supers]) => identities.map((identityOfOpt, index) => { + const superOfOpt = supers[index]; + const parentId = superOfOpt && superOfOpt.isSome ? superOfOpt.unwrap()[0].toString() : void 0; + let display; + if (identityOfOpt && identityOfOpt.isSome) { + const value = dataAsString(identityCompat(identityOfOpt).info.display); + if (value && !(0, util_1.isHex)(value)) { + display = value; + } + } + return { display, hasIdentity: !!(display || parentId), parentId }; + }))) : (0, rxjs_1.of)(accountIds.map(() => ({ hasIdentity: false })))); + } + exports2.hasIdentityMulti = hasIdentityMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/idToIndex.js + var require_idToIndex = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/idToIndex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.idToIndex = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function idToIndex(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.accounts.indexes().pipe((0, rxjs_1.map)((indexes) => indexes[accountId.toString()]))); + } + exports2.idToIndex = idToIndex; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/indexes.js + var require_indexes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/indexes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var indicesCache = null; + function queryAccounts(api) { + return api.query.indices.accounts.entries().pipe((0, rxjs_1.map)((entries) => entries.reduce((indexes2, [key2, idOpt]) => { + if (idOpt.isSome) { + indexes2[idOpt.unwrap()[0].toString()] = api.registry.createType("AccountIndex", key2.args[0]); + } + return indexes2; + }, {}))); + } + function indexes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => indicesCache ? (0, rxjs_1.of)(indicesCache) : (api.query.indices ? queryAccounts(api).pipe((0, rxjs_1.startWith)({})) : (0, rxjs_1.of)({})).pipe((0, rxjs_1.map)((indices) => { + indicesCache = indices; + return indices; + }))); + } + exports2.indexes = indexes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/indexToId.js + var require_indexToId = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/indexToId.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexToId = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function indexToId(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIndex) => api.query.indices ? api.query.indices.accounts(accountIndex).pipe((0, rxjs_1.map)((optResult) => optResult.unwrapOr([])[0])) : (0, rxjs_1.of)(void 0)); + } + exports2.indexToId = indexToId; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/info.js + var require_info = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function retrieveNick(api, accountId) { + return (accountId && api.query["nicks"]?.["nameOf"] ? api.query["nicks"]["nameOf"](accountId) : (0, rxjs_1.of)(void 0)).pipe((0, rxjs_1.map)((nameOf) => nameOf?.isSome ? (0, util_1.u8aToString)(nameOf.unwrap()[0]).substring(0, api.consts["nicks"]["maxLength"].toNumber()) : void 0)); + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts.idAndIndex(address).pipe((0, rxjs_1.switchMap)(([accountId, accountIndex]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)({ accountId, accountIndex }), + api.derive.accounts.identity(accountId), + retrieveNick(api, accountId) + ])), (0, rxjs_1.map)(([{ accountId, accountIndex }, identity3, nickname]) => ({ + accountId, + accountIndex, + identity: identity3, + nickname + })))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/accounts/index.js + var require_accounts = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/accounts/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_accountId(), exports2); + tslib_1.__exportStar(require_flags(), exports2); + tslib_1.__exportStar(require_idAndIndex(), exports2); + tslib_1.__exportStar(require_identity2(), exports2); + tslib_1.__exportStar(require_idToIndex(), exports2); + tslib_1.__exportStar(require_indexes(), exports2); + tslib_1.__exportStar(require_indexToId(), exports2); + tslib_1.__exportStar(require_info(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/helpers.js + var require_helpers5 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/helpers.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.callMethod = exports2.withSection = exports2.getInstance = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function getInstance(api, section) { + const instances2 = api.registry.getModuleInstances(api.runtimeVersion.specName, section); + const name6 = instances2?.length ? instances2[0] : section; + return api.query[name6]; + } + exports2.getInstance = getInstance; + function withSection(section, fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, fn2(getInstance(api, section), api, instanceId)); + } + exports2.withSection = withSection; + function callMethod(method, empty) { + return (section) => withSection(section, (query) => () => (0, util_1.isFunction)(query?.[method]) ? query[method]() : (0, rxjs_1.of)(empty)); + } + exports2.callMethod = callMethod; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/members.js + var require_members = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/members.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.members = void 0; + var helpers_js_1 = require_helpers5(); + exports2.members = (0, helpers_js_1.callMethod)("members", []); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/prime.js + var require_prime = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/prime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var helpers_js_1 = require_helpers5(); + function prime(section) { + return (0, helpers_js_1.withSection)(section, (query) => () => (0, util_1.isFunction)(query?.prime) ? query.prime().pipe((0, rxjs_1.map)((o) => o.unwrapOr(null))) : (0, rxjs_1.of)(null)); + } + exports2.prime = prime; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/proposals.js + var require_proposals = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.proposals = exports2.hasProposals = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var helpers_js_1 = require_helpers5(); + function parse2(api, [hashes, proposals2, votes]) { + return proposals2.map((o, index) => ({ + hash: api.registry.createType("Hash", hashes[index]), + proposal: o && o.isSome ? o.unwrap() : null, + votes: votes[index].unwrapOr(null) + })); + } + function _proposalsFrom(api, query, hashes) { + return ((0, util_1.isFunction)(query?.proposals) && hashes.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(hashes), + query.proposalOf.multi(hashes).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(hashes.map(() => null)))), + query.voting.multi(hashes) + ]) : (0, rxjs_1.of)([[], [], []])).pipe((0, rxjs_1.map)((r10) => parse2(api, r10))); + } + function hasProposals(section) { + return (0, helpers_js_1.withSection)(section, (query) => () => (0, rxjs_1.of)((0, util_1.isFunction)(query?.proposals))); + } + exports2.hasProposals = hasProposals; + function proposals(section) { + return (0, helpers_js_1.withSection)(section, (query, api) => () => api.derive[section].proposalHashes().pipe((0, rxjs_1.switchMap)((all) => _proposalsFrom(api, query, all)))); + } + exports2.proposals = proposals; + function proposal(section) { + return (0, helpers_js_1.withSection)(section, (query, api) => (hash8) => (0, util_1.isFunction)(query?.proposals) ? (0, index_js_1.firstObservable)(_proposalsFrom(api, query, [hash8])) : (0, rxjs_1.of)(null)); + } + exports2.proposal = proposal; + exports2.proposalCount = (0, helpers_js_1.callMethod)("proposalCount", null); + exports2.proposalHashes = (0, helpers_js_1.callMethod)("proposals", []); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/collective/index.js + var require_collective = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/collective/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_members(), exports2); + tslib_1.__exportStar(require_prime(), exports2); + tslib_1.__exportStar(require_proposals(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/alliance/index.js + var require_alliance = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/alliance/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("allianceMotion"); + exports2.hasProposals = (0, index_js_1.hasProposals)("allianceMotion"); + exports2.proposal = (0, index_js_1.proposal)("allianceMotion"); + exports2.proposalCount = (0, index_js_1.proposalCount)("allianceMotion"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("allianceMotion"); + exports2.proposals = (0, index_js_1.proposals)("allianceMotion"); + exports2.prime = (0, index_js_1.prime)("allianceMotion"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/util.js + var require_util11 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getQueryInterface = void 0; + function getQueryInterface(api) { + return api.query.voterList || api.query["voterBagsList"] || api.query["bagsList"]; + } + exports2.getQueryInterface = getQueryInterface; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/get.js + var require_get = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/get.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.get = exports2.all = exports2._getIds = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util11(); + function orderBags(ids, bags) { + const sorted = ids.map((id4, index) => ({ + bag: bags[index].unwrapOr(null), + id: id4, + key: id4.toString() + })).sort((a, b) => b.id.cmp(a.id)); + const max2 = sorted.length - 1; + return sorted.map((entry, index) => (0, util_1.objectSpread)(entry, { + bagLower: index === max2 ? util_1.BN_ZERO : sorted[index + 1].id, + bagUpper: entry.id, + index + })); + } + function _getIds(instanceId, api) { + const query = (0, util_js_1.getQueryInterface)(api); + return (0, index_js_1.memo)(instanceId, (_ids) => { + const ids = _ids.map((id4) => (0, util_1.bnToBn)(id4)); + return ids.length ? query.listBags.multi(ids).pipe((0, rxjs_1.map)((bags) => orderBags(ids, bags))) : (0, rxjs_1.of)([]); + }); + } + exports2._getIds = _getIds; + function all(instanceId, api) { + const query = (0, util_js_1.getQueryInterface)(api); + return (0, index_js_1.memo)(instanceId, () => query.listBags.keys().pipe((0, rxjs_1.switchMap)((keys) => api.derive.bagsList._getIds(keys.map(({ args: [id4] }) => id4))), (0, rxjs_1.map)((list) => list.filter(({ bag }) => bag)))); + } + exports2.all = all; + function get(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.derive.bagsList._getIds([(0, util_1.bnToBn)(id4)]).pipe((0, rxjs_1.map)((bags) => bags[0]))); + } + exports2.get = get; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/getExpanded.js + var require_getExpanded = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/getExpanded.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getExpanded = exports2.expand = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function expand(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (bag) => api.derive.bagsList.listNodes(bag.bag).pipe((0, rxjs_1.map)((nodes) => (0, util_1.objectSpread)({ nodes }, bag)))); + } + exports2.expand = expand; + function getExpanded(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.derive.bagsList.get(id4).pipe((0, rxjs_1.switchMap)((bag) => api.derive.bagsList.expand(bag)))); + } + exports2.getExpanded = getExpanded; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/listNodes.js + var require_listNodes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/listNodes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.listNodes = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util11(); + function traverseLinks(api, head) { + const subject2 = new rxjs_1.BehaviorSubject(head); + const query = (0, util_js_1.getQueryInterface)(api); + return subject2.pipe( + (0, rxjs_1.switchMap)((account) => query.listNodes(account)), + (0, rxjs_1.tap)((node) => { + (0, util_1.nextTick)(() => { + node.isSome && node.value.next.isSome ? subject2.next(node.unwrap().next.unwrap()) : subject2.complete(); + }); + }), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)((all) => all.map((o) => o.unwrap())) + ); + } + function listNodes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (bag) => bag && bag.head.isSome ? traverseLinks(api, bag.head.unwrap()) : (0, rxjs_1.of)([])); + } + exports2.listNodes = listNodes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bagsList/index.js + var require_bagsList = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bagsList/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_get(), exports2); + tslib_1.__exportStar(require_getExpanded(), exports2); + tslib_1.__exportStar(require_listNodes(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/all.js + var require_all = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/all.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.all = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var VESTING_ID = "0x76657374696e6720"; + function calcLocked(api, bestNumber, locks) { + let lockedBalance = api.registry.createType("Balance"); + let lockedBreakdown = []; + let vestingLocked = api.registry.createType("Balance"); + let allLocked = false; + if (Array.isArray(locks)) { + lockedBreakdown = locks.filter(({ until }) => !until || bestNumber && until.gt(bestNumber)); + allLocked = lockedBreakdown.some(({ amount }) => amount && amount.isMax()); + vestingLocked = api.registry.createType("Balance", lockedBreakdown.filter(({ id: id4 }) => id4.eq(VESTING_ID)).reduce((result, { amount }) => result.iadd(amount), new util_1.BN(0))); + const notAll = lockedBreakdown.filter(({ amount }) => amount && !amount.isMax()); + if (notAll.length) { + lockedBalance = api.registry.createType("Balance", (0, util_1.bnMax)(...notAll.map(({ amount }) => amount))); + } + } + return { allLocked, lockedBalance, lockedBreakdown, vestingLocked }; + } + function calcShared(api, bestNumber, data, locks) { + const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks); + return (0, util_1.objectSpread)({}, data, { + availableBalance: api.registry.createType("Balance", allLocked ? 0 : (0, util_1.bnMax)(new util_1.BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new util_1.BN(0))), + lockedBalance, + lockedBreakdown, + vestingLocked + }); + } + function calcVesting(bestNumber, shared, _vesting) { + const vesting = _vesting || []; + const isVesting = !shared.vestingLocked.isZero(); + const vestedBalances = vesting.map(({ locked, perBlock, startingBlock }) => bestNumber.gt(startingBlock) ? (0, util_1.bnMin)(locked, perBlock.mul(bestNumber.sub(startingBlock))) : util_1.BN_ZERO); + const vestedBalance = vestedBalances.reduce((all2, value) => all2.iadd(value), new util_1.BN(0)); + const vestingTotal = vesting.reduce((all2, { locked }) => all2.iadd(locked), new util_1.BN(0)); + return { + isVesting, + vestedBalance, + vestedClaimable: isVesting ? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance)) : util_1.BN_ZERO, + vesting: vesting.map(({ locked, perBlock, startingBlock }, index) => ({ + endBlock: locked.div(perBlock).iadd(startingBlock), + locked, + perBlock, + startingBlock, + vested: vestedBalances[index] + })).filter(({ locked }) => !locked.isZero()), + vestingTotal + }; + } + function calcBalances(api, result) { + const [data, [vesting, allLocks, namedReserves], bestNumber] = result; + const shared = calcShared(api, bestNumber, data, allLocks[0]); + return (0, util_1.objectSpread)(shared, calcVesting(bestNumber, shared, vesting), { + accountId: data.accountId, + accountNonce: data.accountNonce, + additional: allLocks.slice(1).map((l15, index) => calcShared(api, bestNumber, data.additional[index], l15)), + namedReserves + }); + } + function queryOld(api, accountId) { + return (0, rxjs_1.combineLatest)([ + api.query.balances.locks(accountId), + api.query.balances["vesting"](accountId) + ]).pipe((0, rxjs_1.map)(([locks, optVesting]) => { + let vestingNew = null; + if (optVesting.isSome) { + const { offset: locked, perBlock, startingBlock } = optVesting.unwrap(); + vestingNew = api.registry.createType("VestingInfo", { locked, perBlock, startingBlock }); + } + return [ + vestingNew ? [vestingNew] : null, + [locks], + [] + ]; + })); + } + var isNonNullable = (nullable) => !!nullable; + function createCalls(calls) { + return [ + calls.map((c) => !c), + calls.filter(isNonNullable) + ]; + } + function queryCurrent(api, accountId, balanceInstances = ["balances"]) { + const [lockEmpty, lockQueries] = createCalls(balanceInstances.map((m) => api.derive[m]?.customLocks || api.query[m]?.locks)); + const [reserveEmpty, reserveQueries] = createCalls(balanceInstances.map((m) => api.query[m]?.reserves)); + return (0, rxjs_1.combineLatest)([ + api.query.vesting?.vesting ? api.query.vesting.vesting(accountId) : (0, rxjs_1.of)(api.registry.createType("Option")), + lockQueries.length ? (0, rxjs_1.combineLatest)(lockQueries.map((c) => c(accountId))) : (0, rxjs_1.of)([]), + reserveQueries.length ? (0, rxjs_1.combineLatest)(reserveQueries.map((c) => c(accountId))) : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([opt, locks, reserves]) => { + let offsetLock = -1; + let offsetReserve = -1; + const vesting = opt.unwrapOr(null); + return [ + vesting ? Array.isArray(vesting) ? vesting : [vesting] : null, + lockEmpty.map((e) => e ? api.registry.createType("Vec") : locks[++offsetLock]), + reserveEmpty.map((e) => e ? api.registry.createType("Vec") : reserves[++offsetReserve]) + ]; + })); + } + function all(instanceId, api) { + const balanceInstances = api.registry.getModuleInstances(api.runtimeVersion.specName, "balances"); + return (0, index_js_1.memo)(instanceId, (address) => (0, rxjs_1.combineLatest)([ + api.derive.balances.account(address), + (0, util_1.isFunction)(api.query.system?.account) || (0, util_1.isFunction)(api.query.balances?.account) ? queryCurrent(api, address, balanceInstances) : queryOld(api, address) + ]).pipe((0, rxjs_1.switchMap)(([account, locks]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(account), + (0, rxjs_1.of)(locks), + api.derive.chain.bestNumber() + ])), (0, rxjs_1.map)((result) => calcBalances(api, result)))); + } + exports2.all = all; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/account.js + var require_account = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/account.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.account = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function zeroBalance(api) { + return api.registry.createType("Balance"); + } + function getBalance(api, [freeBalance, reservedBalance, frozenFee, frozenMisc]) { + const votingBalance = api.registry.createType("Balance", freeBalance.toBn()); + return { + freeBalance, + frozenFee, + frozenMisc, + reservedBalance, + votingBalance + }; + } + function calcBalances(api, [accountId, [accountNonce, [primary, ...additional]]]) { + return (0, util_1.objectSpread)({ + accountId, + accountNonce, + additional: additional.map((b) => getBalance(api, b)) + }, getBalance(api, primary)); + } + function queryBalancesFree(api, accountId) { + return (0, rxjs_1.combineLatest)([ + api.query.balances["freeBalance"](accountId), + api.query.balances["reservedBalance"](accountId), + api.query.system["accountNonce"](accountId) + ]).pipe((0, rxjs_1.map)(([freeBalance, reservedBalance, accountNonce]) => [ + accountNonce, + [[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]] + ])); + } + function queryNonceOnly(api, accountId) { + const fill = (nonce) => [ + nonce, + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]; + return (0, util_1.isFunction)(api.query.system.account) ? api.query.system.account(accountId).pipe((0, rxjs_1.map)(({ nonce }) => fill(nonce))) : (0, util_1.isFunction)(api.query.system["accountNonce"]) ? api.query.system["accountNonce"](accountId).pipe((0, rxjs_1.map)((nonce) => fill(nonce))) : (0, rxjs_1.of)(fill(api.registry.createType("Index"))); + } + function queryBalancesAccount(api, accountId, modules = ["balances"]) { + const balances = modules.map((m) => api.derive[m]?.customAccount || api.query[m]?.account).filter((q) => (0, util_1.isFunction)(q)); + const extract = (nonce, data) => [ + nonce, + data.map(({ feeFrozen, free, miscFrozen, reserved }) => [free, reserved, feeFrozen, miscFrozen]) + ]; + return balances.length ? (0, util_1.isFunction)(api.query.system.account) ? (0, rxjs_1.combineLatest)([ + api.query.system.account(accountId), + ...balances.map((c) => c(accountId)) + ]).pipe((0, rxjs_1.map)(([{ nonce }, ...balances2]) => extract(nonce, balances2))) : (0, rxjs_1.combineLatest)([ + api.query.system["accountNonce"](accountId), + ...balances.map((c) => c(accountId)) + ]).pipe((0, rxjs_1.map)(([nonce, ...balances2]) => extract(nonce, balances2))) : queryNonceOnly(api, accountId); + } + function querySystemAccount(api, accountId) { + return api.query.system.account(accountId).pipe((0, rxjs_1.map)((infoOrTuple) => { + const data = infoOrTuple.nonce ? infoOrTuple.data : infoOrTuple[1]; + const nonce = infoOrTuple.nonce || infoOrTuple[0]; + if (!data || data.isEmpty) { + return [ + nonce, + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]; + } + const { feeFrozen, free, miscFrozen, reserved } = data; + return [ + nonce, + [[free, reserved, feeFrozen, miscFrozen]] + ]; + })); + } + function account(instanceId, api) { + const balanceInstances = api.registry.getModuleInstances(api.runtimeVersion.specName, "balances"); + const nonDefaultBalances = balanceInstances && balanceInstances[0] !== "balances"; + return (0, index_js_1.memo)(instanceId, (address) => api.derive.accounts.accountId(address).pipe((0, rxjs_1.switchMap)((accountId) => accountId ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountId), + nonDefaultBalances ? queryBalancesAccount(api, accountId, balanceInstances) : (0, util_1.isFunction)(api.query.system?.account) ? querySystemAccount(api, accountId) : (0, util_1.isFunction)(api.query.balances?.account) ? queryBalancesAccount(api, accountId) : (0, util_1.isFunction)(api.query.balances?.["freeBalance"]) ? queryBalancesFree(api, accountId) : queryNonceOnly(api, accountId) + ]) : (0, rxjs_1.of)([api.registry.createType("AccountId"), [ + api.registry.createType("Index"), + [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] + ]])), (0, rxjs_1.map)((result) => calcBalances(api, result)))); + } + exports2.account = account; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/votingBalances.js + var require_votingBalances = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/votingBalances.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votingBalances = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function votingBalances(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (addresses2) => !addresses2?.length ? (0, rxjs_1.of)([]) : (0, rxjs_1.combineLatest)(addresses2.map((accountId) => api.derive.balances.account(accountId)))); + } + exports2.votingBalances = votingBalances; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/balances/index.js + var require_balances = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/balances/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votingBalance = exports2.all = void 0; + var tslib_1 = require_tslib(); + var all_js_1 = require_all(); + Object.defineProperty(exports2, "all", { enumerable: true, get: function() { + return all_js_1.all; + } }); + tslib_1.__exportStar(require_account(), exports2); + tslib_1.__exportStar(require_votingBalances(), exports2); + var votingBalance = all_js_1.all; + exports2.votingBalance = votingBalance; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/helpers/filterBountyProposals.js + var require_filterBountyProposals = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/helpers/filterBountyProposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterBountiesProposals = void 0; + function filterBountiesProposals(api, allProposals) { + const bountyTxBase = api.tx.bounties ? api.tx.bounties : api.tx.treasury; + const bountyProposalCalls = [bountyTxBase.approveBounty, bountyTxBase.closeBounty, bountyTxBase.proposeCurator, bountyTxBase.unassignCurator]; + return allProposals.filter((proposal) => bountyProposalCalls.find((bountyCall) => proposal.proposal && bountyCall.is(proposal.proposal))); + } + exports2.filterBountiesProposals = filterBountiesProposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/bounties.js + var require_bounties = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/bounties.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bounties = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var filterBountyProposals_js_1 = require_filterBountyProposals(); + function parseResult([maybeBounties, maybeDescriptions, ids, bountyProposals]) { + const bounties2 = []; + maybeBounties.forEach((bounty, index) => { + if (bounty.isSome) { + bounties2.push({ + bounty: bounty.unwrap(), + description: maybeDescriptions[index].unwrapOrDefault().toUtf8(), + index: ids[index], + proposals: bountyProposals.filter((bountyProposal) => bountyProposal.proposal && ids[index].eq(bountyProposal.proposal.args[0])) + }); + } + }); + return bounties2; + } + function bounties(instanceId, api) { + const bountyBase = api.query.bounties || api.query.treasury; + return (0, index_js_1.memo)(instanceId, () => bountyBase.bounties ? (0, rxjs_1.combineLatest)([ + bountyBase.bountyCount(), + api.query.council ? api.query.council.proposalCount() : (0, rxjs_1.of)(0) + ]).pipe((0, rxjs_1.switchMap)(() => (0, rxjs_1.combineLatest)([ + bountyBase.bounties.keys(), + api.derive.council ? api.derive.council.proposals() : (0, rxjs_1.of)([]) + ])), (0, rxjs_1.switchMap)(([keys, proposals]) => { + const ids = keys.map(({ args: [id4] }) => id4); + return (0, rxjs_1.combineLatest)([ + bountyBase.bounties.multi(ids), + bountyBase.bountyDescriptions.multi(ids), + (0, rxjs_1.of)(ids), + (0, rxjs_1.of)((0, filterBountyProposals_js_1.filterBountiesProposals)(api, proposals)) + ]); + }), (0, rxjs_1.map)(parseResult)) : (0, rxjs_1.of)(parseResult([[], [], [], []]))); + } + exports2.bounties = bounties; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bounties/index.js + var require_bounties2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bounties/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_bounties(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/util.js + var require_util12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAuthorDetails = exports2.createBlockNumberDerive = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function createBlockNumberDerive(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, () => fn2(api).pipe((0, rxjs_1.map)(index_js_1.unwrapBlockNumber))); + } + exports2.createBlockNumberDerive = createBlockNumberDerive; + function getAuthorDetailsWithAt(header, queryAt) { + const validators = queryAt.session?.validators ? queryAt.session.validators() : (0, rxjs_1.of)(null); + const { logs: [log] } = header.digest; + const loggedAuthor = log && (log.isConsensus && log.asConsensus[0].isNimbus && log.asConsensus[1] || log.isPreRuntime && log.asPreRuntime[0].isNimbus && log.asPreRuntime[1]); + if (loggedAuthor) { + if (queryAt["authorMapping"]?.["mappingWithDeposit"]) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + queryAt["authorMapping"]["mappingWithDeposit"](loggedAuthor).pipe((0, rxjs_1.map)((o) => o.unwrapOr({ account: null }).account)) + ]); + } + if (queryAt["parachainStaking"]?.["selectedCandidates"] && queryAt.session?.nextKeys) { + const loggedHex = loggedAuthor.toHex(); + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + queryAt["parachainStaking"]["selectedCandidates"]().pipe((0, rxjs_1.mergeMap)((selectedCandidates) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(selectedCandidates), + queryAt.session.nextKeys.multi(selectedCandidates).pipe((0, rxjs_1.map)((nextKeys) => nextKeys.findIndex((o) => o.unwrapOrDefault().nimbus.toHex() === loggedHex))) + ])), (0, rxjs_1.map)(([selectedCandidates, index]) => index === -1 ? null : selectedCandidates[index])) + ]); + } + } + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(header), + validators, + (0, rxjs_1.of)(null) + ]); + } + function getAuthorDetails(api, header, blockHash) { + return api.queryAt(header.parentHash.isEmpty ? blockHash || header.hash : header.parentHash).pipe((0, rxjs_1.switchMap)((queryAt) => getAuthorDetailsWithAt(header, queryAt))); + } + exports2.getAuthorDetails = getAuthorDetails; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumber.js + var require_bestNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumber = void 0; + var util_js_1 = require_util12(); + exports2.bestNumber = (0, util_js_1.createBlockNumberDerive)((api) => api.rpc.chain.subscribeNewHeads()); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberFinalized.js + var require_bestNumberFinalized = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberFinalized.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumberFinalized = void 0; + var util_js_1 = require_util12(); + exports2.bestNumberFinalized = (0, util_js_1.createBlockNumberDerive)((api) => api.rpc.chain.subscribeFinalizedHeads()); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberLag.js + var require_bestNumberLag = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/bestNumberLag.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.bestNumberLag = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function bestNumberLag(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.derive.chain.bestNumber(), + api.derive.chain.bestNumberFinalized() + ]).pipe((0, rxjs_1.map)(([bestNumber, bestNumberFinalized]) => api.registry.createType("BlockNumber", bestNumber.sub(bestNumberFinalized))))); + } + exports2.bestNumberLag = bestNumberLag; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/util.js + var require_util13 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractAuthor = void 0; + function extractAuthor(digest, sessionValidators) { + const [citem] = digest.logs.filter((e) => e.isConsensus); + const [pitem] = digest.logs.filter((e) => e.isPreRuntime); + const [sitem] = digest.logs.filter((e) => e.isSeal); + let accountId; + try { + if (pitem) { + const [engine, data] = pitem.asPreRuntime; + accountId = engine.extractAuthor(data, sessionValidators); + } + if (!accountId && citem) { + const [engine, data] = citem.asConsensus; + accountId = engine.extractAuthor(data, sessionValidators); + } + if (!accountId && sitem) { + const [engine, data] = sitem.asSeal; + accountId = engine.extractAuthor(data, sessionValidators); + } + } catch { + } + return accountId; + } + exports2.extractAuthor = extractAuthor; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/HeaderExtended.js + var require_HeaderExtended = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/HeaderExtended.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createHeaderExtended = void 0; + var util_js_1 = require_util13(); + function createHeaderExtended(registry, header, validators, author) { + const HeaderBase = registry.createClass("Header"); + class Implementation extends HeaderBase { + __internal__author; + constructor(registry2, header2, validators2, author2) { + super(registry2, header2); + this.__internal__author = author2 || (0, util_js_1.extractAuthor)(this.digest, validators2 || []); + this.createdAtHash = header2?.createdAtHash; + } + get author() { + return this.__internal__author; + } + } + return new Implementation(registry, header, validators, author); + } + exports2.createHeaderExtended = createHeaderExtended; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/SignedBlockExtended.js + var require_SignedBlockExtended = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/SignedBlockExtended.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSignedBlockExtended = void 0; + var util_js_1 = require_util13(); + function mapExtrinsics(extrinsics, records) { + return extrinsics.map((extrinsic, index) => { + let dispatchError; + let dispatchInfo; + const events = records.filter(({ phase }) => phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(index)).map(({ event }) => { + if (event.section === "system") { + if (event.method === "ExtrinsicSuccess") { + dispatchInfo = event.data[0]; + } else if (event.method === "ExtrinsicFailed") { + dispatchError = event.data[0]; + dispatchInfo = event.data[1]; + } + } + return event; + }); + return { dispatchError, dispatchInfo, events, extrinsic }; + }); + } + function createSignedBlockExtended(registry, block, events, validators, author) { + const SignedBlockBase = registry.createClass("SignedBlock"); + class Implementation extends SignedBlockBase { + __internal__author; + __internal__events; + __internal__extrinsics; + constructor(registry2, block2, events2, validators2, author2) { + super(registry2, block2); + this.__internal__author = author2 || (0, util_js_1.extractAuthor)(this.block.header.digest, validators2 || []); + this.__internal__events = events2 || []; + this.__internal__extrinsics = mapExtrinsics(this.block.extrinsics, this.__internal__events); + this.createdAtHash = block2?.createdAtHash; + } + get author() { + return this.__internal__author; + } + get events() { + return this.__internal__events; + } + get extrinsics() { + return this.__internal__extrinsics; + } + } + return new Implementation(registry, block, events, validators, author); + } + exports2.createSignedBlockExtended = createSignedBlockExtended; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/type/index.js + var require_type2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/type/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSignedBlockExtended = exports2.createHeaderExtended = void 0; + var HeaderExtended_js_1 = require_HeaderExtended(); + Object.defineProperty(exports2, "createHeaderExtended", { enumerable: true, get: function() { + return HeaderExtended_js_1.createHeaderExtended; + } }); + var SignedBlockExtended_js_1 = require_SignedBlockExtended(); + Object.defineProperty(exports2, "createSignedBlockExtended", { enumerable: true, get: function() { + return SignedBlockExtended_js_1.createSignedBlockExtended; + } }); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getBlock.js + var require_getBlock = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getBlock.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getBlock = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function getBlock(instanceId, api) { + return (0, index_js_2.memo)(instanceId, (blockHash) => (0, rxjs_1.combineLatest)([ + api.rpc.chain.getBlock(blockHash), + api.queryAt(blockHash) + ]).pipe((0, rxjs_1.switchMap)(([signedBlock, queryAt]) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(signedBlock), + queryAt.system.events(), + (0, util_js_1.getAuthorDetails)(api, signedBlock.block.header, blockHash) + ])), (0, rxjs_1.map)(([signedBlock, events, [, validators, author]]) => (0, index_js_1.createSignedBlockExtended)(events.registry, signedBlock, events, validators, author)))); + } + exports2.getBlock = getBlock; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getBlockByNumber.js + var require_getBlockByNumber = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getBlockByNumber.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getBlockByNumber = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function getBlockByNumber(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (blockNumber) => api.rpc.chain.getBlockHash(blockNumber).pipe((0, rxjs_1.switchMap)((h) => api.derive.chain.getBlock(h)))); + } + exports2.getBlockByNumber = getBlockByNumber; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/getHeader.js + var require_getHeader = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/getHeader.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHeader = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function getHeader(instanceId, api) { + return (0, index_js_2.memo)(instanceId, (blockHash) => api.rpc.chain.getHeader(blockHash).pipe((0, rxjs_1.switchMap)((header) => (0, util_js_1.getAuthorDetails)(api, header, blockHash)), (0, rxjs_1.map)(([header, validators, author]) => (0, index_js_1.createHeaderExtended)((validators || header).registry, header, validators, author)))); + } + exports2.getHeader = getHeader; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedBlocks.js + var require_subscribeFinalizedBlocks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedBlocks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeFinalizedBlocks = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function subscribeFinalizedBlocks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.chain.subscribeFinalizedHeads().pipe((0, rxjs_1.switchMap)((header) => api.derive.chain.getBlock(header.createdAtHash || header.hash)))); + } + exports2.subscribeFinalizedBlocks = subscribeFinalizedBlocks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedHeads.js + var require_subscribeFinalizedHeads = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeFinalizedHeads.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeFinalizedHeads = exports2._getHeaderRange = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _getHeaderRange(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (startHash, endHash, prev = []) => api.rpc.chain.getHeader(startHash).pipe((0, rxjs_1.switchMap)((header) => header.parentHash.eq(endHash) ? (0, rxjs_1.of)([header, ...prev]) : api.derive.chain._getHeaderRange(header.parentHash, endHash, [header, ...prev])))); + } + exports2._getHeaderRange = _getHeaderRange; + function subscribeFinalizedHeads(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + let prevHash = null; + return api.rpc.chain.subscribeFinalizedHeads().pipe((0, rxjs_1.switchMap)((header) => { + const endHash = prevHash; + const startHash = header.parentHash; + prevHash = header.createdAtHash = header.hash; + return endHash === null || startHash.eq(endHash) ? (0, rxjs_1.of)(header) : api.derive.chain._getHeaderRange(startHash, endHash, [header]).pipe((0, rxjs_1.switchMap)((headers) => (0, rxjs_1.from)(headers))); + })); + }); + } + exports2.subscribeFinalizedHeads = subscribeFinalizedHeads; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewBlocks.js + var require_subscribeNewBlocks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewBlocks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeNewBlocks = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function subscribeNewBlocks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.chain.subscribeNewHeads().pipe((0, rxjs_1.switchMap)((header) => api.derive.chain.getBlock(header.createdAtHash || header.hash)))); + } + exports2.subscribeNewBlocks = subscribeNewBlocks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewHeads.js + var require_subscribeNewHeads = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/subscribeNewHeads.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.subscribeNewHeads = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_type2(); + var index_js_2 = require_util10(); + var util_js_1 = require_util12(); + function subscribeNewHeads(instanceId, api) { + return (0, index_js_2.memo)(instanceId, () => api.rpc.chain.subscribeNewHeads().pipe((0, rxjs_1.switchMap)((header) => (0, util_js_1.getAuthorDetails)(api, header)), (0, rxjs_1.map)(([header, validators, author]) => { + header.createdAtHash = header.hash; + return (0, index_js_1.createHeaderExtended)(header.registry, header, validators, author); + }))); + } + exports2.subscribeNewHeads = subscribeNewHeads; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/chain/index.js + var require_chain = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/chain/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_bestNumber(), exports2); + tslib_1.__exportStar(require_bestNumberFinalized(), exports2); + tslib_1.__exportStar(require_bestNumberLag(), exports2); + tslib_1.__exportStar(require_getBlock(), exports2); + tslib_1.__exportStar(require_getBlockByNumber(), exports2); + tslib_1.__exportStar(require_getHeader(), exports2); + tslib_1.__exportStar(require_subscribeFinalizedBlocks(), exports2); + tslib_1.__exportStar(require_subscribeFinalizedHeads(), exports2); + tslib_1.__exportStar(require_subscribeNewBlocks(), exports2); + tslib_1.__exportStar(require_subscribeNewHeads(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/contracts/fees.js + var require_fees = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/contracts/fees.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fees = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function queryConstants(api) { + return (0, rxjs_1.of)([ + api.consts.contracts["callBaseFee"] || api.registry.createType("Balance"), + api.consts.contracts["contractFee"] || api.registry.createType("Balance"), + api.consts.contracts["creationFee"] || api.registry.createType("Balance"), + api.consts.contracts["transactionBaseFee"] || api.registry.createType("Balance"), + api.consts.contracts["transactionByteFee"] || api.registry.createType("Balance"), + api.consts.contracts["transferFee"] || api.registry.createType("Balance"), + api.consts.contracts["rentByteFee"] || api.registry.createType("Balance"), + api.consts.contracts["rentDepositOffset"] || api.registry.createType("Balance"), + api.consts.contracts["surchargeReward"] || api.registry.createType("Balance"), + api.consts.contracts["tombstoneDeposit"] || api.registry.createType("Balance") + ]); + } + function fees(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + return queryConstants(api).pipe((0, rxjs_1.map)(([callBaseFee, contractFee, creationFee, transactionBaseFee, transactionByteFee, transferFee, rentByteFee, rentDepositOffset, surchargeReward, tombstoneDeposit]) => ({ + callBaseFee, + contractFee, + creationFee, + rentByteFee, + rentDepositOffset, + surchargeReward, + tombstoneDeposit, + transactionBaseFee, + transactionByteFee, + transferFee + }))); + }); + } + exports2.fees = fees; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/contracts/index.js + var require_contracts = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/contracts/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fees(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/votes.js + var require_votes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/votes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function isVoter(value) { + return !Array.isArray(value); + } + function retrieveStakeOf(elections) { + return elections["stakeOf"].entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, stake]) => [accountId, stake]))); + } + function retrieveVoteOf(elections) { + return elections["votesOf"].entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, votes2]) => [accountId, votes2]))); + } + function retrievePrev(api, elections) { + return (0, rxjs_1.combineLatest)([ + retrieveStakeOf(elections), + retrieveVoteOf(elections) + ]).pipe((0, rxjs_1.map)(([stakes, votes2]) => { + const result = []; + votes2.forEach(([voter, votes3]) => { + result.push([voter, { stake: api.registry.createType("Balance"), votes: votes3 }]); + }); + stakes.forEach(([staker, stake]) => { + const entry = result.find(([voter]) => voter.eq(staker)); + if (entry) { + entry[1].stake = stake; + } else { + result.push([staker, { stake, votes: [] }]); + } + }); + return result; + })); + } + function retrieveCurrent(elections) { + return elections.voting.entries().pipe((0, rxjs_1.map)((entries) => entries.map(([{ args: [accountId] }, value]) => [ + accountId, + isVoter(value) ? { stake: value.stake, votes: value.votes } : { stake: value[0], votes: value[1] } + ]))); + } + function votes(instanceId, api) { + const elections = api.query.elections || api.query["phragmenElection"] || api.query["electionsPhragmen"]; + return (0, index_js_1.memo)(instanceId, () => elections ? elections["stakeOf"] ? retrievePrev(api, elections) : retrieveCurrent(elections) : (0, rxjs_1.of)([])); + } + exports2.votes = votes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/votesOf.js + var require_votesOf = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/votesOf.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.votesOf = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function votesOf(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.council.votes().pipe((0, rxjs_1.map)((votes) => (votes.find(([from2]) => from2.eq(accountId)) || [null, { stake: api.registry.createType("Balance"), votes: [] }])[1]))); + } + exports2.votesOf = votesOf; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/council/index.js + var require_council = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/council/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var tslib_1 = require_tslib(); + var index_js_1 = require_collective(); + tslib_1.__exportStar(require_votes(), exports2); + tslib_1.__exportStar(require_votesOf(), exports2); + exports2.members = (0, index_js_1.members)("council"); + exports2.hasProposals = (0, index_js_1.hasProposals)("council"); + exports2.proposal = (0, index_js_1.proposal)("council"); + exports2.proposalCount = (0, index_js_1.proposalCount)("council"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("council"); + exports2.proposals = (0, index_js_1.proposals)("council"); + exports2.prime = (0, index_js_1.prime)("council"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/childKey.js + var require_childKey = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/childKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.childKey = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_util10(); + function createChildKey(info) { + return (0, util_1.u8aToHex)((0, util_1.u8aConcat)(":child_storage:default:", (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)("crowdloan", (info.fundIndex || info.trieIndex).toU8a())))); + } + function childKey(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId) => api.query["crowdloan"]["funds"](paraId).pipe((0, rxjs_1.map)((optInfo) => optInfo.isSome ? createChildKey(optInfo.unwrap()) : null))); + } + exports2.childKey = childKey; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/util.js + var require_util14 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractContributed = void 0; + function extractContributed(paraId, events) { + const added = []; + const removed = []; + return events.filter(({ event: { data: [, eventParaId], method, section } }) => section === "crowdloan" && ["Contributed", "Withdrew"].includes(method) && eventParaId.eq(paraId)).reduce((result, { event: { data: [accountId], method } }) => { + if (method === "Contributed") { + result.added.push(accountId.toHex()); + } else { + result.removed.push(accountId.toHex()); + } + return result; + }, { added, blockHash: events.createdAtHash?.toHex() || "-", removed }); + } + exports2.extractContributed = extractContributed; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/contributions.js + var require_contributions = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/contributions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.contributions = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util14(); + var PAGE_SIZE_K = 1e3; + function _getUpdates(api, paraId) { + let added = []; + let removed = []; + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const changes = (0, util_js_1.extractContributed)(paraId, events); + if (changes.added.length || changes.removed.length) { + added = added.concat(...changes.added); + removed = removed.concat(...changes.removed); + return (0, rxjs_1.of)({ added, addedDelta: changes.added, blockHash: events.createdAtHash?.toHex() || "-", removed, removedDelta: changes.removed }); + } + return rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)({ added, addedDelta: [], blockHash: "-", removed, removedDelta: [] })); + } + function _eventTriggerAll(api, paraId) { + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const items = events.filter(({ event: { data: [eventParaId], method, section } }) => section === "crowdloan" && ["AllRefunded", "Dissolved", "PartiallyRefunded"].includes(method) && eventParaId.eq(paraId)); + return items.length ? (0, rxjs_1.of)(events.createdAtHash?.toHex() || "-") : rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)("-")); + } + function _getKeysPaged(api, childKey) { + const subject2 = new rxjs_1.BehaviorSubject(void 0); + return subject2.pipe( + (0, rxjs_1.switchMap)((startKey) => api.rpc.childstate.getKeysPaged(childKey, "0x", PAGE_SIZE_K, startKey)), + (0, rxjs_1.tap)((keys) => { + (0, util_1.nextTick)(() => { + keys.length === PAGE_SIZE_K ? subject2.next(keys[PAGE_SIZE_K - 1].toHex()) : subject2.complete(); + }); + }), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)((keyArr) => (0, util_1.arrayFlatten)(keyArr)) + ); + } + function _getAll(api, paraId, childKey) { + return _eventTriggerAll(api, paraId).pipe((0, rxjs_1.switchMap)(() => (0, util_1.isFunction)(api.rpc.childstate.getKeysPaged) ? _getKeysPaged(api, childKey) : api.rpc.childstate.getKeys(childKey, "0x")), (0, rxjs_1.map)((keys) => keys.map((k) => k.toHex()))); + } + function _contributions(api, paraId, childKey) { + return (0, rxjs_1.combineLatest)([ + _getAll(api, paraId, childKey), + _getUpdates(api, paraId) + ]).pipe((0, rxjs_1.map)(([keys, { added, blockHash, removed }]) => { + const contributorsMap = {}; + keys.forEach((k) => { + contributorsMap[k] = true; + }); + added.forEach((k) => { + contributorsMap[k] = true; + }); + removed.forEach((k) => { + delete contributorsMap[k]; + }); + return { + blockHash, + contributorsHex: Object.keys(contributorsMap) + }; + })); + } + function contributions(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId) => api.derive.crowdloan.childKey(paraId).pipe((0, rxjs_1.switchMap)((childKey) => childKey ? _contributions(api, paraId, childKey) : (0, rxjs_1.of)({ blockHash: "-", contributorsHex: [] })))); + } + exports2.contributions = contributions; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/ownContributions.js + var require_ownContributions = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/ownContributions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownContributions = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util14(); + function _getValues(api, childKey, keys) { + return (0, rxjs_1.combineLatest)(keys.map((k) => api.rpc.childstate.getStorage(childKey, k))).pipe((0, rxjs_1.map)((values) => values.map((v) => api.registry.createType("Option", v)).map((o) => o.isSome ? api.registry.createType("Balance", o.unwrap()) : api.registry.createType("Balance")).reduce((all, b, index) => (0, util_1.objectSpread)(all, { [keys[index]]: b }), {}))); + } + function _watchOwnChanges(api, paraId, childkey, keys) { + return api.query.system.events().pipe((0, rxjs_1.switchMap)((events) => { + const changes = (0, util_js_1.extractContributed)(paraId, events); + const filtered = keys.filter((k) => changes.added.includes(k) || changes.removed.includes(k)); + return filtered.length ? _getValues(api, childkey, filtered) : rxjs_1.EMPTY; + }), (0, rxjs_1.startWith)({})); + } + function _contributions(api, paraId, childKey, keys) { + return (0, rxjs_1.combineLatest)([ + _getValues(api, childKey, keys), + _watchOwnChanges(api, paraId, childKey, keys) + ]).pipe((0, rxjs_1.map)(([all, latest2]) => (0, util_1.objectSpread)({}, all, latest2))); + } + function ownContributions(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (paraId, keys) => api.derive.crowdloan.childKey(paraId).pipe((0, rxjs_1.switchMap)((childKey) => childKey && keys.length ? _contributions(api, paraId, childKey, keys) : (0, rxjs_1.of)({})))); + } + exports2.ownContributions = ownContributions; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/crowdloan/index.js + var require_crowdloan = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/crowdloan/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_childKey(), exports2); + tslib_1.__exportStar(require_contributions(), exports2); + tslib_1.__exportStar(require_ownContributions(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/util.js + var require_util15 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getImageHash = exports2.getImageHashBounded = exports2.getStatus = exports2.calcVotes = exports2.calcPassing = exports2.compareRationals = void 0; + var util_1 = require_cjs3(); + function isOldInfo(info) { + return !!info.proposalHash; + } + function isCurrentStatus(status) { + return !!status.tally; + } + function compareRationals(n12, d12, n22, d22) { + while (true) { + const q12 = n12.div(d12); + const q2 = n22.div(d22); + if (q12.lt(q2)) { + return true; + } else if (q2.lt(q12)) { + return false; + } + const r12 = n12.mod(d12); + const r22 = n22.mod(d22); + if (r22.isZero()) { + return false; + } else if (r12.isZero()) { + return true; + } + n12 = d22; + n22 = d12; + d12 = r22; + d22 = r12; + } + } + exports2.compareRationals = compareRationals; + function calcPassingOther(threshold, sqrtElectorate, { votedAye, votedNay, votedTotal }) { + const sqrtVoters = (0, util_1.bnSqrt)(votedTotal); + return sqrtVoters.isZero() ? false : threshold.isSuperMajorityApprove ? compareRationals(votedNay, sqrtVoters, votedAye, sqrtElectorate) : compareRationals(votedNay, sqrtElectorate, votedAye, sqrtVoters); + } + function calcPassing(threshold, sqrtElectorate, state) { + return threshold.isSimpleMajority ? state.votedAye.gt(state.votedNay) : calcPassingOther(threshold, sqrtElectorate, state); + } + exports2.calcPassing = calcPassing; + function calcVotesPrev(votesFor) { + return votesFor.reduce((state, derived) => { + const { balance, vote } = derived; + const isDefault = vote.conviction.index === 0; + const counted = balance.muln(isDefault ? 1 : vote.conviction.index).divn(isDefault ? 10 : 1); + if (vote.isAye) { + state.allAye.push(derived); + state.voteCountAye++; + state.votedAye.iadd(counted); + } else { + state.allNay.push(derived); + state.voteCountNay++; + state.votedNay.iadd(counted); + } + state.voteCount++; + state.votedTotal.iadd(counted); + return state; + }, { allAye: [], allNay: [], voteCount: 0, voteCountAye: 0, voteCountNay: 0, votedAye: new util_1.BN(0), votedNay: new util_1.BN(0), votedTotal: new util_1.BN(0) }); + } + function calcVotesCurrent(tally, votes) { + const allAye = []; + const allNay = []; + votes.forEach((derived) => { + if (derived.vote.isAye) { + allAye.push(derived); + } else { + allNay.push(derived); + } + }); + return { + allAye, + allNay, + voteCount: allAye.length + allNay.length, + voteCountAye: allAye.length, + voteCountNay: allNay.length, + votedAye: tally.ayes, + votedNay: tally.nays, + votedTotal: tally.turnout + }; + } + function calcVotes(sqrtElectorate, referendum, votes) { + const state = isCurrentStatus(referendum.status) ? calcVotesCurrent(referendum.status.tally, votes) : calcVotesPrev(votes); + return (0, util_1.objectSpread)({}, state, { + isPassing: calcPassing(referendum.status.threshold, sqrtElectorate, state), + votes + }); + } + exports2.calcVotes = calcVotes; + function getStatus(info) { + if (info.isNone) { + return null; + } + const unwrapped = info.unwrap(); + return isOldInfo(unwrapped) ? unwrapped : unwrapped.isOngoing ? unwrapped.asOngoing : null; + } + exports2.getStatus = getStatus; + function getImageHashBounded(hash8) { + return hash8.isLegacy ? hash8.asLegacy.hash_.toHex() : hash8.isLookup ? hash8.asLookup.hash_.toHex() : hash8.isInline ? hash8.asInline.hash.toHex() : (0, util_1.isString)(hash8) ? (0, util_1.isHex)(hash8) ? hash8 : (0, util_1.stringToHex)(hash8) : (0, util_1.isU8a)(hash8) ? (0, util_1.u8aToHex)(hash8) : hash8.toHex(); + } + exports2.getImageHashBounded = getImageHashBounded; + function getImageHash(status) { + return getImageHashBounded(status.proposal || status.proposalHash); + } + exports2.getImageHash = getImageHash; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/dispatchQueue.js + var require_dispatchQueue = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/dispatchQueue.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dispatchQueue = void 0; + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + var DEMOCRACY_ID = (0, util_1.stringToHex)("democrac"); + function isMaybeHashedOrBounded(call) { + return call instanceof types_1.Enum; + } + function isBounded(call) { + return call.isInline || call.isLegacy || call.isLookup; + } + function queryQueue(api) { + return api.query.democracy["dispatchQueue"]().pipe((0, rxjs_1.switchMap)((dispatches) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(dispatches), + api.derive.democracy.preimages(dispatches.map(([, hash8]) => hash8)) + ])), (0, rxjs_1.map)(([dispatches, images]) => dispatches.map(([at, imageHash, index], dispatchIndex) => ({ + at, + image: images[dispatchIndex], + imageHash: (0, util_js_1.getImageHashBounded)(imageHash), + index + })))); + } + function schedulerEntries(api) { + return api.derive.democracy.referendumsFinished().pipe((0, rxjs_1.switchMap)(() => api.query.scheduler.agenda.keys()), (0, rxjs_1.switchMap)((keys) => { + const blockNumbers = keys.map(({ args: [blockNumber] }) => blockNumber); + return blockNumbers.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(blockNumbers), + api.query.scheduler.agenda.multi(blockNumbers).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(blockNumbers.map(() => [])))) + ]) : (0, rxjs_1.of)([[], []]); + })); + } + function queryScheduler(api) { + return schedulerEntries(api).pipe((0, rxjs_1.switchMap)(([blockNumbers, agendas]) => { + const result = []; + blockNumbers.forEach((at, index) => { + (agendas[index] || []).filter((o) => o.isSome).forEach((o) => { + const scheduled2 = o.unwrap(); + if (scheduled2.maybeId.isSome) { + const id4 = scheduled2.maybeId.unwrap().toHex(); + if (id4.startsWith(DEMOCRACY_ID)) { + const imageHash = isMaybeHashedOrBounded(scheduled2.call) ? isBounded(scheduled2.call) ? (0, util_js_1.getImageHashBounded)(scheduled2.call) : scheduled2.call.isHash ? scheduled2.call.asHash.toHex() : scheduled2.call.asValue.args[0].toHex() : scheduled2.call.args[0].toHex(); + result.push({ at, imageHash, index: api.registry.createType("(u64, ReferendumIndex)", id4)[1] }); + } + } + }); + }); + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(result), + result.length ? api.derive.democracy.preimages(result.map(({ imageHash }) => imageHash)) : (0, rxjs_1.of)([]) + ]); + }), (0, rxjs_1.map)(([infos, images]) => infos.map((info, index) => (0, util_1.objectSpread)({ image: images[index] }, info)))); + } + function dispatchQueue(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, util_1.isFunction)(api.query.scheduler?.agenda) ? queryScheduler(api) : api.query.democracy["dispatchQueue"] ? queryQueue(api) : (0, rxjs_1.of)([])); + } + exports2.dispatchQueue = dispatchQueue; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/locks.js + var require_locks = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/locks.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.locks = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var LOCKUPS = [0, 1, 2, 4, 8, 16, 32]; + function parseEnd(api, vote, { approved, end }) { + return [ + end, + approved.isTrue && vote.isAye || approved.isFalse && vote.isNay ? end.add((api.consts.democracy.voteLockingPeriod || api.consts.democracy.enactmentPeriod).muln(LOCKUPS[vote.conviction.index])) : util_1.BN_ZERO + ]; + } + function parseLock(api, [referendumId, accountVote], referendum) { + const { balance, vote } = accountVote.asStandard; + const [referendumEnd, unlockAt] = referendum.isFinished ? parseEnd(api, vote, referendum.asFinished) : [util_1.BN_ZERO, util_1.BN_ZERO]; + return { balance, isDelegated: false, isFinished: referendum.isFinished, referendumEnd, referendumId, unlockAt, vote }; + } + function delegateLocks(api, { balance, conviction, target }) { + return api.derive.democracy.locks(target).pipe((0, rxjs_1.map)((available) => available.map(({ isFinished, referendumEnd, referendumId, unlockAt, vote }) => ({ + balance, + isDelegated: true, + isFinished, + referendumEnd, + referendumId, + unlockAt: unlockAt.isZero() ? unlockAt : referendumEnd.add((api.consts.democracy.voteLockingPeriod || api.consts.democracy.enactmentPeriod).muln(LOCKUPS[conviction.index])), + vote: api.registry.createType("Vote", { aye: vote.isAye, conviction }) + })))); + } + function directLocks(api, { votes }) { + if (!votes.length) { + return (0, rxjs_1.of)([]); + } + return api.query.democracy.referendumInfoOf.multi(votes.map(([referendumId]) => referendumId)).pipe((0, rxjs_1.map)((referendums) => votes.map((vote, index) => [vote, referendums[index].unwrapOr(null)]).filter((item) => !!item[1] && (0, util_1.isUndefined)(item[1].end) && item[0][1].isStandard).map(([directVote, referendum]) => parseLock(api, directVote, referendum)))); + } + function locks(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.query.democracy.votingOf ? api.query.democracy.votingOf(accountId).pipe((0, rxjs_1.switchMap)((voting) => voting.isDirect ? directLocks(api, voting.asDirect) : voting.isDelegating ? delegateLocks(api, voting.asDelegating) : (0, rxjs_1.of)([]))) : (0, rxjs_1.of)([])); + } + exports2.locks = locks; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/nextExternal.js + var require_nextExternal = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/nextExternal.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.nextExternal = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function withImage(api, nextOpt) { + if (nextOpt.isNone) { + return (0, rxjs_1.of)(null); + } + const [hash8, threshold] = nextOpt.unwrap(); + return api.derive.democracy.preimage(hash8).pipe((0, rxjs_1.map)((image) => ({ + image, + imageHash: (0, util_js_1.getImageHashBounded)(hash8), + threshold + }))); + } + function nextExternal(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.democracy?.nextExternal ? api.query.democracy.nextExternal().pipe((0, rxjs_1.switchMap)((nextOpt) => withImage(api, nextOpt))) : (0, rxjs_1.of)(null)); + } + exports2.nextExternal = nextExternal; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/preimages.js + var require_preimages = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/preimages.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.preimage = exports2.preimages = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function getUnrequestedTicket(status) { + return status.ticket || status.deposit; + } + function getRequestedTicket(status) { + return (status.maybeTicket || status.deposit).unwrapOrDefault(); + } + function isDemocracyPreimage(api, imageOpt) { + return !!imageOpt && !api.query.democracy["dispatchQueue"]; + } + function constructProposal(api, [bytes5, proposer, balance, at]) { + let proposal; + try { + proposal = api.registry.createType("Call", bytes5.toU8a(true)); + } catch (error) { + console.error(error); + } + return { at, balance, proposal, proposer }; + } + function parseDemocracy(api, imageOpt) { + if (imageOpt.isNone) { + return; + } + if (isDemocracyPreimage(api, imageOpt)) { + const status = imageOpt.unwrap(); + if (status.isMissing) { + return; + } + const { data, deposit, provider, since } = status.asAvailable; + return constructProposal(api, [data, provider, deposit, since]); + } + return constructProposal(api, imageOpt.unwrap()); + } + function parseImage(api, [proposalHash, status, bytes5]) { + if (!status) { + return void 0; + } + const [proposer, balance] = status.isUnrequested ? getUnrequestedTicket(status.asUnrequested) : getRequestedTicket(status.asRequested); + let proposal; + if (bytes5) { + try { + proposal = api.registry.createType("Call", bytes5.toU8a(true)); + } catch (error) { + console.error(error); + } + } + return { at: util_1.BN_ZERO, balance, proposal, proposalHash, proposer }; + } + function getDemocracyImages(api, bounded) { + const hashes = bounded.map((b) => (0, util_js_1.getImageHashBounded)(b)); + return api.query.democracy["preimages"].multi(hashes).pipe((0, rxjs_1.map)((images) => images.map((imageOpt) => parseDemocracy(api, imageOpt)))); + } + function getImages(api, bounded) { + const hashes = bounded.map((b) => (0, util_js_1.getImageHashBounded)(b)); + const bytesType = api.registry.lookup.getTypeDef(api.query.preimage.preimageFor.creator.meta.type.asMap.key).type; + return api.query.preimage.statusFor.multi(hashes).pipe((0, rxjs_1.switchMap)((optStatus) => { + const statuses = optStatus.map((o) => o.unwrapOr(null)); + const keys = statuses.map((s, i) => s ? bytesType === "H256" ? hashes[i] : s.isRequested ? [hashes[i], s.asRequested.len.unwrapOr(0)] : [hashes[i], s.asUnrequested.len] : null).filter((p) => !!p); + return api.query.preimage.preimageFor.multi(keys).pipe((0, rxjs_1.map)((optBytes) => { + let ptr = -1; + return statuses.map((s, i) => s ? [hashes[i], s, optBytes[++ptr].unwrapOr(null)] : [hashes[i], null, null]).map((v) => parseImage(api, v)); + })); + })); + } + function preimages(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (hashes) => hashes.length ? (0, util_1.isFunction)(api.query.democracy["preimages"]) ? getDemocracyImages(api, hashes) : (0, util_1.isFunction)(api.query.preimage.preimageFor) ? getImages(api, hashes) : (0, rxjs_1.of)([]) : (0, rxjs_1.of)([])); + } + exports2.preimages = preimages; + exports2.preimage = (0, index_js_1.firstMemo)((api, hash8) => api.derive.democracy.preimages([hash8])); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/proposals.js + var require_proposals2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposals = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function isNewDepositors(depositors) { + return (0, util_1.isFunction)(depositors[1].mul); + } + function parse2([proposals2, images, optDepositors]) { + return proposals2.filter(([, , proposer], index) => !!optDepositors[index]?.isSome && !proposer.isEmpty).map(([index, hash8, proposer], proposalIndex) => { + const depositors = optDepositors[proposalIndex].unwrap(); + return (0, util_1.objectSpread)({ + image: images[proposalIndex], + imageHash: (0, util_js_1.getImageHashBounded)(hash8), + index, + proposer + }, isNewDepositors(depositors) ? { balance: depositors[1], seconds: depositors[0] } : { balance: depositors[0], seconds: depositors[1] }); + }); + } + function proposals(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, util_1.isFunction)(api.query.democracy?.publicProps) ? api.query.democracy.publicProps().pipe((0, rxjs_1.switchMap)((proposals2) => proposals2.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(proposals2), + api.derive.democracy.preimages(proposals2.map(([, hash8]) => hash8)), + api.query.democracy.depositOf.multi(proposals2.map(([index]) => index)) + ]) : (0, rxjs_1.of)([[], [], []])), (0, rxjs_1.map)(parse2)) : (0, rxjs_1.of)([])); + } + exports2.proposals = proposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumIds.js + var require_referendumIds = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumIds.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumIds = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumIds(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.democracy?.lowestUnbaked ? api.queryMulti([ + api.query.democracy.lowestUnbaked, + api.query.democracy.referendumCount + ]).pipe((0, rxjs_1.map)(([first, total]) => total.gt(first) ? [...Array(total.sub(first).toNumber())].map((_, i) => first.addn(i)) : [])) : (0, rxjs_1.of)([])); + } + exports2.referendumIds = referendumIds; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendums.js + var require_referendums = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendums.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendums = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function referendums(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumsActive().pipe((0, rxjs_1.switchMap)((referendums2) => referendums2.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(referendums2), + api.derive.democracy._referendumsVotes(referendums2) + ]) : (0, rxjs_1.of)([[], []])), (0, rxjs_1.map)(([referendums2, votes]) => referendums2.map((referendum, index) => (0, util_1.objectSpread)({}, referendum, votes[index]))))); + } + exports2.referendums = referendums; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsActive.js + var require_referendumsActive = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsActive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsActive = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumsActive(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumIds().pipe((0, rxjs_1.switchMap)((ids) => ids.length ? api.derive.democracy.referendumsInfo(ids) : (0, rxjs_1.of)([])))); + } + exports2.referendumsActive = referendumsActive; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsFinished.js + var require_referendumsFinished = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsFinished.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsFinished = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function referendumsFinished(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.democracy.referendumIds().pipe((0, rxjs_1.switchMap)((ids) => api.query.democracy.referendumInfoOf.multi(ids)), (0, rxjs_1.map)((infos) => infos.map((o) => o.unwrapOr(null)).filter((info) => !!info && info.isFinished).map((info) => info.asFinished)))); + } + exports2.referendumsFinished = referendumsFinished; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsInfo.js + var require_referendumsInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/referendumsInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.referendumsInfo = exports2._referendumInfo = exports2._referendumsVotes = exports2._referendumVotes = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util15(); + function votesPrev(api, referendumId) { + return api.query.democracy["votersFor"](referendumId).pipe((0, rxjs_1.switchMap)((votersFor) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(votersFor), + votersFor.length ? api.query.democracy["voteOf"].multi(votersFor.map((accountId) => [referendumId, accountId])) : (0, rxjs_1.of)([]), + api.derive.balances.votingBalances(votersFor) + ])), (0, rxjs_1.map)(([votersFor, votes, balances]) => votersFor.map((accountId, index) => ({ + accountId, + balance: balances[index].votingBalance || api.registry.createType("Balance"), + isDelegating: false, + vote: votes[index] || api.registry.createType("Vote") + })))); + } + function extractVotes(mapped, referendumId) { + return mapped.filter(([, voting]) => voting.isDirect).map(([accountId, voting]) => [ + accountId, + voting.asDirect.votes.filter(([idx]) => idx.eq(referendumId)) + ]).filter(([, directVotes]) => !!directVotes.length).reduce((result, [accountId, votes]) => votes.reduce((result2, [, vote]) => { + if (vote.isStandard) { + result2.push((0, util_1.objectSpread)({ + accountId, + isDelegating: false + }, vote.asStandard)); + } + return result2; + }, result), []); + } + function votesCurr(api, referendumId) { + return api.query.democracy.votingOf.entries().pipe((0, rxjs_1.map)((allVoting) => { + const mapped = allVoting.map(([{ args: [accountId] }, voting]) => [accountId, voting]); + const votes = extractVotes(mapped, referendumId); + const delegations = mapped.filter(([, voting]) => voting.isDelegating).map(([accountId, voting]) => [accountId, voting.asDelegating]); + delegations.forEach(([accountId, { balance, conviction, target }]) => { + const toDelegator = delegations.find(([accountId2]) => accountId2.eq(target)); + const to2 = votes.find(({ accountId: accountId2 }) => accountId2.eq(toDelegator ? toDelegator[0] : target)); + if (to2) { + votes.push({ + accountId, + balance, + isDelegating: true, + vote: api.registry.createType("Vote", { aye: to2.vote.isAye, conviction }) + }); + } + }); + return votes; + })); + } + function _referendumVotes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (referendum) => (0, rxjs_1.combineLatest)([ + api.derive.democracy.sqrtElectorate(), + (0, util_1.isFunction)(api.query.democracy.votingOf) ? votesCurr(api, referendum.index) : votesPrev(api, referendum.index) + ]).pipe((0, rxjs_1.map)(([sqrtElectorate, votes]) => (0, util_js_1.calcVotes)(sqrtElectorate, referendum, votes)))); + } + exports2._referendumVotes = _referendumVotes; + function _referendumsVotes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (referendums) => referendums.length ? (0, rxjs_1.combineLatest)(referendums.map((referendum) => api.derive.democracy._referendumVotes(referendum))) : (0, rxjs_1.of)([])); + } + exports2._referendumsVotes = _referendumsVotes; + function _referendumInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (index, info) => { + const status = (0, util_js_1.getStatus)(info); + return status ? api.derive.democracy.preimage(status.proposal || status.proposalHash).pipe((0, rxjs_1.map)((image) => ({ + image, + imageHash: (0, util_js_1.getImageHash)(status), + index: api.registry.createType("ReferendumIndex", index), + status + }))) : (0, rxjs_1.of)(null); + }); + } + exports2._referendumInfo = _referendumInfo; + function referendumsInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (ids) => ids.length ? api.query.democracy.referendumInfoOf.multi(ids).pipe((0, rxjs_1.switchMap)((infos) => (0, rxjs_1.combineLatest)(ids.map((id4, index) => api.derive.democracy._referendumInfo(id4, infos[index])))), (0, rxjs_1.map)((infos) => infos.filter((r10) => !!r10))) : (0, rxjs_1.of)([])); + } + exports2.referendumsInfo = referendumsInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/sqrtElectorate.js + var require_sqrtElectorate = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/sqrtElectorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sqrtElectorate = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function sqrtElectorate(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.balances.totalIssuance().pipe((0, rxjs_1.map)(util_1.bnSqrt))); + } + exports2.sqrtElectorate = sqrtElectorate; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/democracy/index.js + var require_democracy = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/democracy/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_dispatchQueue(), exports2); + tslib_1.__exportStar(require_locks(), exports2); + tslib_1.__exportStar(require_nextExternal(), exports2); + tslib_1.__exportStar(require_preimages(), exports2); + tslib_1.__exportStar(require_proposals2(), exports2); + tslib_1.__exportStar(require_referendumIds(), exports2); + tslib_1.__exportStar(require_referendums(), exports2); + tslib_1.__exportStar(require_referendumsActive(), exports2); + tslib_1.__exportStar(require_referendumsFinished(), exports2); + tslib_1.__exportStar(require_referendumsInfo(), exports2); + tslib_1.__exportStar(require_sqrtElectorate(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/elections/info.js + var require_info2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/elections/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function isSeatHolder(value) { + return !Array.isArray(value); + } + function isCandidateTuple(value) { + return Array.isArray(value); + } + function getAccountTuple(value) { + return isSeatHolder(value) ? [value.who, value.stake] : value; + } + function getCandidate(value) { + return isCandidateTuple(value) ? value[0] : value; + } + function sortAccounts([, balanceA], [, balanceB]) { + return balanceB.cmp(balanceA); + } + function getConstants(api, elections) { + return elections ? { + candidacyBond: api.consts[elections].candidacyBond, + desiredRunnersUp: api.consts[elections].desiredRunnersUp, + desiredSeats: api.consts[elections].desiredMembers, + termDuration: api.consts[elections].termDuration, + votingBond: api.consts[elections]["votingBond"], + votingBondBase: api.consts[elections].votingBondBase, + votingBondFactor: api.consts[elections].votingBondFactor + } : {}; + } + function getModules(api) { + const [council] = api.registry.getModuleInstances(api.runtimeVersion.specName, "council") || ["council"]; + const elections = api.query["phragmenElection"] ? "phragmenElection" : api.query["electionsPhragmen"] ? "electionsPhragmen" : api.query.elections ? "elections" : null; + const resolvedCouncil = api.query[council] ? council : "council"; + return [resolvedCouncil, elections]; + } + function queryAll(api, council, elections) { + return api.queryMulti([ + api.query[council].members, + api.query[elections].candidates, + api.query[elections].members, + api.query[elections].runnersUp + ]); + } + function queryCouncil(api, council) { + return (0, rxjs_1.combineLatest)([ + api.query[council].members(), + (0, rxjs_1.of)([]), + (0, rxjs_1.of)([]), + (0, rxjs_1.of)([]) + ]); + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => { + const [council, elections] = getModules(api); + return (elections ? queryAll(api, council, elections) : queryCouncil(api, council)).pipe((0, rxjs_1.map)(([councilMembers, candidates, members, runnersUp]) => (0, util_1.objectSpread)({}, getConstants(api, elections), { + candidateCount: api.registry.createType("u32", candidates.length), + candidates: candidates.map(getCandidate), + members: members.length ? members.map(getAccountTuple).sort(sortAccounts) : councilMembers.map((a) => [a, api.registry.createType("Balance")]), + runnersUp: runnersUp.map(getAccountTuple).sort(sortAccounts) + }))); + }); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/elections/index.js + var require_elections = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/elections/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_info2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/imOnline/receivedHeartbeats.js + var require_receivedHeartbeats = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/imOnline/receivedHeartbeats.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.receivedHeartbeats = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function mapResult([result, validators, heartbeats, numBlocks]) { + validators.forEach((validator, index) => { + const validatorId = validator.toString(); + const blockCount = numBlocks[index]; + const hasMessage = !heartbeats[index].isEmpty; + const prev = result[validatorId]; + if (!prev || prev.hasMessage !== hasMessage || !prev.blockCount.eq(blockCount)) { + result[validatorId] = { + blockCount, + hasMessage, + isOnline: hasMessage || blockCount.gt(util_1.BN_ZERO) + }; + } + }); + return result; + } + function receivedHeartbeats(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.imOnline?.receivedHeartbeats ? api.derive.staking.overview().pipe((0, rxjs_1.switchMap)(({ currentIndex, validators }) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)({}), + (0, rxjs_1.of)(validators), + api.query.imOnline.receivedHeartbeats.multi(validators.map((_address, index) => [currentIndex, index])), + api.query.imOnline.authoredBlocks.multi(validators.map((address) => [currentIndex, address])) + ])), (0, rxjs_1.map)(mapResult)) : (0, rxjs_1.of)({})); + } + exports2.receivedHeartbeats = receivedHeartbeats; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/imOnline/index.js + var require_imOnline = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/imOnline/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_receivedHeartbeats(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/membership/index.js + var require_membership = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/membership/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("membership"); + exports2.hasProposals = (0, index_js_1.hasProposals)("membership"); + exports2.proposal = (0, index_js_1.proposal)("membership"); + exports2.proposalCount = (0, index_js_1.proposalCount)("membership"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("membership"); + exports2.proposals = (0, index_js_1.proposals)("membership"); + exports2.prime = (0, index_js_1.prime)("membership"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/util.js + var require_util16 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.didUpdateToBool = void 0; + function didUpdateToBool(didUpdate, id4) { + return didUpdate.isSome ? didUpdate.unwrap().some((paraId) => paraId.eq(id4)) : false; + } + exports2.didUpdateToBool = didUpdateToBool; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/info.js + var require_info3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util16(); + function parseActive(id4, active) { + const found = active.find(([paraId]) => paraId === id4); + if (found && found[1].isSome) { + const [collatorId, retriable] = found[1].unwrap(); + return (0, util_1.objectSpread)({ collatorId }, retriable.isWithRetries ? { + isRetriable: true, + retries: retriable.asWithRetries.toNumber() + } : { + isRetriable: false, + retries: 0 + }); + } + return null; + } + function parseCollators(id4, collatorQueue) { + return collatorQueue.map((queue) => { + const found = queue.find(([paraId]) => paraId === id4); + return found ? found[1] : null; + }); + } + function parse2(id4, [active, retryQueue, selectedThreads, didUpdate, info2, pendingSwap, heads, relayDispatchQueue]) { + if (info2.isNone) { + return null; + } + return { + active: parseActive(id4, active), + didUpdate: (0, util_js_1.didUpdateToBool)(didUpdate, id4), + heads, + id: id4, + info: (0, util_1.objectSpread)({ id: id4 }, info2.unwrap()), + pendingSwapId: pendingSwap.unwrapOr(null), + relayDispatchQueue, + retryCollators: parseCollators(id4, retryQueue), + selectedCollators: parseCollators(id4, selectedThreads) + }; + } + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (id4) => api.query["registrar"] && api.query["parachains"] ? api.queryMulti([ + api.query["registrar"]["active"], + api.query["registrar"]["retryQueue"], + api.query["registrar"]["selectedThreads"], + api.query["parachains"]["didUpdate"], + [api.query["registrar"]["paras"], id4], + [api.query["registrar"]["pendingSwap"], id4], + [api.query["parachains"]["heads"], id4], + [api.query["parachains"]["relayDispatchQueue"], id4] + ]).pipe((0, rxjs_1.map)((result) => parse2(api.registry.createType("ParaId", id4), result))) : (0, rxjs_1.of)(null)); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/overview.js + var require_overview = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/overview.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.overview = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var util_js_1 = require_util16(); + function parse2([ids, didUpdate, relayDispatchQueueSizes, infos, pendingSwaps]) { + return ids.map((id4, index) => ({ + didUpdate: (0, util_js_1.didUpdateToBool)(didUpdate, id4), + id: id4, + info: (0, util_1.objectSpread)({ id: id4 }, infos[index].unwrapOr(null)), + pendingSwapId: pendingSwaps[index].unwrapOr(null), + relayDispatchQueueSize: relayDispatchQueueSizes[index][0].toNumber() + })); + } + function overview(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query["registrar"]?.["parachains"] && api.query["parachains"] ? api.query["registrar"]["parachains"]().pipe((0, rxjs_1.switchMap)((paraIds) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(paraIds), + api.query["parachains"]["didUpdate"](), + api.query["parachains"]["relayDispatchQueueSize"].multi(paraIds), + api.query["registrar"]["paras"].multi(paraIds), + api.query["registrar"]["pendingSwap"].multi(paraIds) + ])), (0, rxjs_1.map)(parse2)) : (0, rxjs_1.of)([])); + } + exports2.overview = overview; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/parachains/index.js + var require_parachains = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/parachains/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_info3(), exports2); + tslib_1.__exportStar(require_overview(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/indexes.js + var require_indexes2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/indexes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.indexes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function parse2([currentIndex, activeEra, activeEraStart, currentEra, validatorCount]) { + return { + activeEra, + activeEraStart, + currentEra, + currentIndex, + validatorCount + }; + } + function queryStaking(api) { + return api.queryMulti([ + api.query.session.currentIndex, + api.query.staking.activeEra, + api.query.staking.currentEra, + api.query.staking.validatorCount + ]).pipe((0, rxjs_1.map)(([currentIndex, activeOpt, currentEra, validatorCount]) => { + const { index, start } = activeOpt.unwrapOrDefault(); + return parse2([ + currentIndex, + index, + start, + currentEra.unwrapOrDefault(), + validatorCount + ]); + })); + } + function querySession(api) { + return api.query.session.currentIndex().pipe((0, rxjs_1.map)((currentIndex) => parse2([ + currentIndex, + api.registry.createType("EraIndex"), + api.registry.createType("Option"), + api.registry.createType("EraIndex"), + api.registry.createType("u32") + ]))); + } + function empty(api) { + return (0, rxjs_1.of)(parse2([ + api.registry.createType("SessionIndex", 1), + api.registry.createType("EraIndex"), + api.registry.createType("Option"), + api.registry.createType("EraIndex"), + api.registry.createType("u32") + ])); + } + function indexes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.session ? api.query.staking ? queryStaking(api) : querySession(api) : empty(api)); + } + exports2.indexes = indexes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/info.js + var require_info4 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.map)((indexes) => { + const sessionLength = api.consts?.babe?.epochDuration || api.registry.createType("u64", 1); + const sessionsPerEra = api.consts?.staking?.sessionsPerEra || api.registry.createType("SessionIndex", 1); + return (0, util_1.objectSpread)({ + eraLength: api.registry.createType("BlockNumber", sessionsPerEra.mul(sessionLength)), + isEpoch: !!api.query.babe, + sessionLength, + sessionsPerEra + }, indexes); + }))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/progress.js + var require_progress = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/progress.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sessionProgress = exports2.eraProgress = exports2.eraLength = exports2.progress = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function withProgressField(field) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, () => api.derive.session.progress().pipe((0, rxjs_1.map)((info) => info[field]))); + } + function createDerive(api, info, [currentSlot, epochIndex, epochOrGenesisStartSlot, activeEraStartSessionIndex]) { + const epochStartSlot = epochIndex.mul(info.sessionLength).iadd(epochOrGenesisStartSlot); + const sessionProgress = currentSlot.sub(epochStartSlot); + const eraProgress = info.currentIndex.sub(activeEraStartSessionIndex).imul(info.sessionLength).iadd(sessionProgress); + return (0, util_1.objectSpread)({ + eraProgress: api.registry.createType("BlockNumber", eraProgress), + sessionProgress: api.registry.createType("BlockNumber", sessionProgress) + }, info); + } + function queryAura(api) { + return api.derive.session.info().pipe((0, rxjs_1.map)((info) => (0, util_1.objectSpread)({ + eraProgress: api.registry.createType("BlockNumber"), + sessionProgress: api.registry.createType("BlockNumber") + }, info))); + } + function queryBabe(api) { + return api.derive.session.info().pipe((0, rxjs_1.switchMap)((info) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(info), + api.query.staking?.erasStartSessionIndex ? api.queryMulti([ + api.query.babe.currentSlot, + api.query.babe.epochIndex, + api.query.babe.genesisSlot, + [api.query.staking.erasStartSessionIndex, info.activeEra] + ]) : api.queryMulti([ + api.query.babe.currentSlot, + api.query.babe.epochIndex, + api.query.babe.genesisSlot + ]) + ])), (0, rxjs_1.map)(([info, [currentSlot, epochIndex, genesisSlot, optStartIndex]]) => [ + info, + [currentSlot, epochIndex, genesisSlot, optStartIndex && optStartIndex.isSome ? optStartIndex.unwrap() : api.registry.createType("SessionIndex", 1)] + ])); + } + function progress(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.babe ? queryBabe(api).pipe((0, rxjs_1.map)(([info, slots]) => createDerive(api, info, slots))) : queryAura(api)); + } + exports2.progress = progress; + exports2.eraLength = withProgressField("eraLength"); + exports2.eraProgress = withProgressField("eraProgress"); + exports2.sessionProgress = withProgressField("sessionProgress"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/session/index.js + var require_session = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/session/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_indexes2(), exports2); + tslib_1.__exportStar(require_info4(), exports2); + tslib_1.__exportStar(require_progress(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/candidates.js + var require_candidates = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/candidates.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.candidates = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function getPrev(api) { + return api.query.society.candidates().pipe((0, rxjs_1.switchMap)((candidates2) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(candidates2), + api.query.society["suspendedCandidates"].multi(candidates2.map(({ who }) => who)) + ])), (0, rxjs_1.map)(([candidates2, suspended]) => candidates2.map(({ kind, value, who }, index) => ({ + accountId: who, + isSuspended: suspended[index].isSome, + kind, + value + })))); + } + function getCurr(api) { + return api.query.society.candidates.entries().pipe((0, rxjs_1.map)((entries) => entries.filter(([, opt]) => opt.isSome).map(([{ args: [accountId] }, opt]) => [accountId, opt.unwrap()]).map(([accountId, { bid, kind }]) => ({ + accountId, + isSuspended: false, + kind, + value: bid + })))); + } + function candidates(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.society["suspendedCandidates"] && api.query.society.candidates.creator.meta.type.isPlain ? getPrev(api) : getCurr(api)); + } + exports2.candidates = candidates; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/info.js + var require_info5 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/info.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.info = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function info(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.query.society.bids(), + api.query.society["defender"] ? api.query.society["defender"]() : (0, rxjs_1.of)(void 0), + api.query.society.founder(), + api.query.society.head(), + api.query.society["maxMembers"] ? api.query.society["maxMembers"]() : (0, rxjs_1.of)(void 0), + api.query.society.pot() + ]).pipe((0, rxjs_1.map)(([bids, defender, founder, head, maxMembers, pot]) => ({ + bids, + defender: defender?.unwrapOr(void 0), + founder: founder.unwrapOr(void 0), + hasDefender: defender?.isSome && head.isSome && !head.eq(defender) || false, + head: head.unwrapOr(void 0), + maxMembers, + pot + })))); + } + exports2.info = info; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/member.js + var require_member = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/member.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.member = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function member(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId) => api.derive.society._members([accountId]).pipe((0, rxjs_1.map)(([result]) => result))); + } + exports2.member = member; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/members.js + var require_members2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/members.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.members = exports2._members = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _membersPrev(api, accountIds) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountIds), + api.query.society.payouts.multi(accountIds), + api.query.society["strikes"].multi(accountIds), + api.query.society.defenderVotes.multi(accountIds), + api.query.society.suspendedMembers.multi(accountIds), + api.query.society["vouching"].multi(accountIds) + ]).pipe((0, rxjs_1.map)(([accountIds2, payouts, strikes, defenderVotes, suspended, vouching]) => accountIds2.map((accountId, index) => ({ + accountId, + isDefenderVoter: defenderVotes[index].isSome, + isSuspended: suspended[index].isTrue, + payouts: payouts[index], + strikes: strikes[index], + vote: defenderVotes[index].unwrapOr(void 0), + vouching: vouching[index].unwrapOr(void 0) + })))); + } + function _membersCurr(api, accountIds) { + return (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(accountIds), + api.query.society.members.multi(accountIds), + api.query.society.payouts.multi(accountIds), + api.query.society.challengeRoundCount().pipe((0, rxjs_1.switchMap)((round) => api.query.society.defenderVotes.multi(accountIds.map((accountId) => [round, accountId])))), + api.query.society.suspendedMembers.multi(accountIds) + ]).pipe((0, rxjs_1.map)(([accountIds2, members2, payouts, defenderVotes, suspendedMembers]) => accountIds2.map((accountId, index) => members2[index].isSome ? { + accountId, + isDefenderVoter: defenderVotes[index].isSome, + isSuspended: suspendedMembers[index].isSome, + member: members2[index].unwrap(), + payouts: payouts[index].payouts + } : null).filter((m) => !!m).map(({ accountId, isDefenderVoter, isSuspended, member, payouts: payouts2 }) => ({ + accountId, + isDefenderVoter, + isSuspended, + payouts: payouts2, + strikes: member.strikes, + vouching: member.vouching.unwrapOr(void 0) + })))); + } + function _members(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds) => api.query.society.members.creator.meta.type.isMap ? _membersCurr(api, accountIds) : _membersPrev(api, accountIds)); + } + exports2._members = _members; + function members(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.society.members.creator.meta.type.isMap ? api.query.society.members.keys().pipe((0, rxjs_1.switchMap)((keys) => api.derive.society._members(keys.map(({ args: [accountId] }) => accountId)))) : api.query.society.members().pipe((0, rxjs_1.switchMap)((members2) => api.derive.society._members(members2)))); + } + exports2.members = members; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/society/index.js + var require_society = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/society/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_candidates(), exports2); + tslib_1.__exportStar(require_info5(), exports2); + tslib_1.__exportStar(require_member(), exports2); + tslib_1.__exportStar(require_members2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/account.js + var require_account2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/account.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.account = exports2.accounts = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var QUERY_OPTS = { + withDestination: true, + withLedger: true, + withNominations: true, + withPrefs: true + }; + function groupByEra(list) { + return list.reduce((map2, { era, value }) => { + const key2 = era.toString(); + map2[key2] = (map2[key2] || util_1.BN_ZERO).add(value.unwrap()); + return map2; + }, {}); + } + function calculateUnlocking(api, stakingLedger, sessionInfo) { + const results = Object.entries(groupByEra((stakingLedger?.unlocking || []).filter(({ era }) => era.unwrap().gt(sessionInfo.activeEra)))).map(([eraString, value]) => ({ + remainingEras: new util_1.BN(eraString).isub(sessionInfo.activeEra), + value: api.registry.createType("Balance", value) + })); + return results.length ? results : void 0; + } + function redeemableSum(api, stakingLedger, sessionInfo) { + return api.registry.createType("Balance", (stakingLedger?.unlocking || []).reduce((total, { era, value }) => { + return era.unwrap().gt(sessionInfo.currentEra) ? total : total.iadd(value.unwrap()); + }, new util_1.BN(0))); + } + function parseResult(api, sessionInfo, keys, query) { + return (0, util_1.objectSpread)({}, keys, query, { + redeemable: redeemableSum(api, query.stakingLedger, sessionInfo), + unlocking: calculateUnlocking(api, query.stakingLedger, sessionInfo) + }); + } + function accounts2(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, opts = QUERY_OPTS) => api.derive.session.info().pipe((0, rxjs_1.switchMap)((sessionInfo) => (0, rxjs_1.combineLatest)([ + api.derive.staking.keysMulti(accountIds), + api.derive.staking.queryMulti(accountIds, opts) + ]).pipe((0, rxjs_1.map)(([keys, queries]) => queries.map((q, index) => parseResult(api, sessionInfo, keys[index], q))))))); + } + exports2.accounts = accounts2; + exports2.account = (0, index_js_1.firstMemo)((api, accountId, opts) => api.derive.staking.accounts([accountId], opts)); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/currentPoints.js + var require_currentPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/currentPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.currentPoints = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function currentPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(({ activeEra }) => api.query.staking.erasRewardPoints(activeEra)))); + } + exports2.currentPoints = currentPoints; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/electedInfo.js + var require_electedInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/electedInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.electedInfo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var DEFAULT_FLAGS = { withController: true, withExposure: true, withPrefs: true }; + function combineAccounts(nextElected, validators) { + return (0, util_1.arrayFlatten)([nextElected, validators.filter((v) => !nextElected.find((n) => n.eq(v)))]); + } + function electedInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (flags = DEFAULT_FLAGS) => api.derive.staking.validators().pipe((0, rxjs_1.switchMap)(({ nextElected, validators }) => api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags).pipe((0, rxjs_1.map)((info) => ({ + info, + nextElected, + validators + })))))); + } + exports2.electedInfo = electedInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/cache.js + var require_cache2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/cache.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterCachedEras = exports2.setEraMultiCache = exports2.setEraCache = exports2.getEraMultiCache = exports2.getEraCache = void 0; + var index_js_1 = require_util10(); + function getEraCache(CACHE_KEY, era, withActive) { + const cacheKey = `${CACHE_KEY}-${era.toString()}`; + return [ + cacheKey, + withActive ? void 0 : index_js_1.deriveCache.get(cacheKey) + ]; + } + exports2.getEraCache = getEraCache; + function getEraMultiCache(CACHE_KEY, eras, withActive) { + const cached = withActive ? [] : eras.map((e) => index_js_1.deriveCache.get(`${CACHE_KEY}-${e.toString()}`)).filter((v) => !!v); + return cached; + } + exports2.getEraMultiCache = getEraMultiCache; + function setEraCache(cacheKey, withActive, value) { + !withActive && index_js_1.deriveCache.set(cacheKey, value); + return value; + } + exports2.setEraCache = setEraCache; + function setEraMultiCache(CACHE_KEY, withActive, values) { + !withActive && values.forEach((v) => index_js_1.deriveCache.set(`${CACHE_KEY}-${v.era.toString()}`, v)); + return values; + } + exports2.setEraMultiCache = setEraMultiCache; + function filterCachedEras(eras, cached, query) { + return eras.map((e) => cached.find(({ era }) => e.eq(era)) || query.find(({ era }) => e.eq(era))).filter((e) => !!e); + } + exports2.filterCachedEras = filterCachedEras; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/util.js + var require_util17 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.combineEras = exports2.singleEra = exports2.erasHistoricApplyAccount = exports2.erasHistoricApply = exports2.filterEras = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var ERA_CHUNK_SIZE = 14; + function chunkEras(eras, fn2) { + const chunked = (0, util_1.arrayChunk)(eras, ERA_CHUNK_SIZE); + let index = 0; + const subject2 = new rxjs_1.BehaviorSubject(chunked[index]); + return subject2.pipe((0, rxjs_1.switchMap)(fn2), (0, rxjs_1.tap)(() => { + (0, util_1.nextTick)(() => { + index++; + index === chunked.length ? subject2.complete() : subject2.next(chunked[index]); + }); + }), (0, rxjs_1.toArray)(), (0, rxjs_1.map)(util_1.arrayFlatten)); + } + function filterEras(eras, list) { + return eras.filter((e) => !list.some(({ era }) => e.eq(era))); + } + exports2.filterEras = filterEras; + function erasHistoricApply(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((e) => api.derive.staking[fn2](e, withActive)))); + } + exports2.erasHistoricApply = erasHistoricApply; + function erasHistoricApplyAccount(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (accountId, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((e) => api.derive.staking[fn2](accountId, e, withActive)))); + } + exports2.erasHistoricApplyAccount = erasHistoricApplyAccount; + function singleEra(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (era) => api.derive.staking[fn2](era, true)); + } + exports2.singleEra = singleEra; + function combineEras(fn2) { + return (instanceId, api) => (0, index_js_1.memo)(instanceId, (eras, withActive) => !eras.length ? (0, rxjs_1.of)([]) : chunkEras(eras, (eras2) => (0, rxjs_1.combineLatest)(eras2.map((e) => api.derive.staking[fn2](e, withActive))))); + } + exports2.combineEras = combineEras; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasExposure.js + var require_erasExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasExposure = exports2._erasExposure = exports2.eraExposure = exports2._eraExposure = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraExposure"; + function mapStakersClipped(era, stakers) { + const nominators = {}; + const validators = {}; + stakers.forEach(([key2, exposure]) => { + const validatorId = key2.args[1].toString(); + validators[validatorId] = exposure; + exposure.others.forEach(({ who }, validatorIndex) => { + const nominatorId = who.toString(); + nominators[nominatorId] = nominators[nominatorId] || []; + nominators[nominatorId].push({ validatorId, validatorIndex }); + }); + }); + return { era, nominators, validators }; + } + function mapStakersPaged(era, stakers) { + const nominators = {}; + const validators = {}; + stakers.forEach(([key2, exposureOpt]) => { + if (exposureOpt.isSome) { + const validatorId = key2.args[1].toString(); + const exposure = exposureOpt.unwrap(); + validators[validatorId] = exposure; + exposure.others.forEach(({ who }, validatorIndex) => { + const nominatorId = who.toString(); + nominators[nominatorId] = nominators[nominatorId] || []; + nominators[nominatorId].push({ validatorId, validatorIndex }); + }); + } + }); + return { era, nominators, validators }; + } + function _eraExposure(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive = false) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : api.query.staking.erasStakersPaged ? api.query.staking.erasStakersPaged.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapStakersPaged(era, r10)))) : api.query.staking.erasStakersClipped.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapStakersClipped(era, r10)))); + }); + } + exports2._eraExposure = _eraExposure; + exports2.eraExposure = (0, util_js_1.singleEra)("_eraExposure"); + exports2._erasExposure = (0, util_js_1.combineEras)("_eraExposure"); + exports2.erasExposure = (0, util_js_1.erasHistoricApply)("_erasExposure"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasHistoric.js + var require_erasHistoric = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasHistoric.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasHistoric = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function erasHistoric(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (withActive) => (0, rxjs_1.combineLatest)([ + api.query.staking.activeEra(), + api.consts.staking.historyDepth ? (0, rxjs_1.of)(api.consts.staking.historyDepth) : api.query.staking["historyDepth"]() + ]).pipe((0, rxjs_1.map)(([activeEraOpt, historyDepth]) => { + const result = []; + const max2 = historyDepth.toNumber(); + const activeEra = activeEraOpt.unwrapOrDefault().index; + let lastEra = activeEra; + while (lastEra.gte(util_1.BN_ZERO) && result.length < max2) { + if (lastEra !== activeEra || withActive === true) { + result.push(api.registry.createType("EraIndex", lastEra)); + } + lastEra = lastEra.sub(util_1.BN_ONE); + } + return result.reverse(); + }))); + } + exports2.erasHistoric = erasHistoric; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasPoints.js + var require_erasPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasPoints = exports2._erasPoints = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraPoints"; + function mapValidators({ individual }) { + return [...individual.entries()].filter(([, points]) => points.gt(util_1.BN_ZERO)).reduce((result, [validatorId, points]) => { + result[validatorId.toString()] = points; + return result; + }, {}); + } + function mapPoints(eras, points) { + return eras.map((era, index) => ({ + era, + eraPoints: points[index].total, + validators: mapValidators(points[index]) + })); + } + function _erasPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive) => { + if (!eras.length) { + return (0, rxjs_1.of)([]); + } + const cached = (0, cache_js_1.getEraMultiCache)(CACHE_KEY, eras, withActive); + const remaining = (0, util_js_1.filterEras)(eras, cached); + return !remaining.length ? (0, rxjs_1.of)(cached) : api.query.staking.erasRewardPoints.multi(remaining).pipe((0, rxjs_1.map)((p) => (0, cache_js_1.filterCachedEras)(eras, cached, (0, cache_js_1.setEraMultiCache)(CACHE_KEY, withActive, mapPoints(remaining, p))))); + }); + } + exports2._erasPoints = _erasPoints; + exports2.erasPoints = (0, util_js_1.erasHistoricApply)("_erasPoints"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasPrefs.js + var require_erasPrefs = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasPrefs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasPrefs = exports2._erasPrefs = exports2.eraPrefs = exports2._eraPrefs = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraPrefs"; + function mapPrefs(era, all) { + const validators = {}; + all.forEach(([key2, prefs]) => { + validators[key2.args[1].toString()] = prefs; + }); + return { era, validators }; + } + function _eraPrefs(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : api.query.staking.erasValidatorPrefs.entries(era).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapPrefs(era, r10)))); + }); + } + exports2._eraPrefs = _eraPrefs; + exports2.eraPrefs = (0, util_js_1.singleEra)("_eraPrefs"); + exports2._erasPrefs = (0, util_js_1.combineEras)("_eraPrefs"); + exports2.erasPrefs = (0, util_js_1.erasHistoricApply)("_erasPrefs"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasRewards.js + var require_erasRewards = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasRewards.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasRewards = exports2._erasRewards = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraRewards"; + function mapRewards(eras, optRewards) { + return eras.map((era, index) => ({ + era, + eraReward: optRewards[index].unwrapOrDefault() + })); + } + function _erasRewards(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive) => { + if (!eras.length) { + return (0, rxjs_1.of)([]); + } + const cached = (0, cache_js_1.getEraMultiCache)(CACHE_KEY, eras, withActive); + const remaining = (0, util_js_1.filterEras)(eras, cached); + if (!remaining.length) { + return (0, rxjs_1.of)(cached); + } + return api.query.staking.erasValidatorReward.multi(remaining).pipe((0, rxjs_1.map)((r10) => (0, cache_js_1.filterCachedEras)(eras, cached, (0, cache_js_1.setEraMultiCache)(CACHE_KEY, withActive, mapRewards(remaining, r10))))); + }); + } + exports2._erasRewards = _erasRewards; + exports2.erasRewards = (0, util_js_1.erasHistoricApply)("_erasRewards"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/erasSlashes.js + var require_erasSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/erasSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.erasSlashes = exports2._erasSlashes = exports2.eraSlashes = exports2._eraSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var cache_js_1 = require_cache2(); + var util_js_1 = require_util17(); + var CACHE_KEY = "eraSlashes"; + function mapSlashes(era, noms, vals) { + const nominators = {}; + const validators = {}; + noms.forEach(([key2, optBalance]) => { + nominators[key2.args[1].toString()] = optBalance.unwrap(); + }); + vals.forEach(([key2, optRes]) => { + validators[key2.args[1].toString()] = optRes.unwrapOrDefault()[1]; + }); + return { era, nominators, validators }; + } + function _eraSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (era, withActive) => { + const [cacheKey, cached] = (0, cache_js_1.getEraCache)(CACHE_KEY, era, withActive); + return cached ? (0, rxjs_1.of)(cached) : (0, rxjs_1.combineLatest)([ + api.query.staking.nominatorSlashInEra.entries(era), + api.query.staking.validatorSlashInEra.entries(era) + ]).pipe((0, rxjs_1.map)(([n, v]) => (0, cache_js_1.setEraCache)(cacheKey, withActive, mapSlashes(era, n, v)))); + }); + } + exports2._eraSlashes = _eraSlashes; + exports2.eraSlashes = (0, util_js_1.singleEra)("_eraSlashes"); + exports2._erasSlashes = (0, util_js_1.combineEras)("_eraSlashes"); + exports2.erasSlashes = (0, util_js_1.erasHistoricApply)("_erasSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/keys.js + var require_keys2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/keys.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.keysMulti = exports2.keys = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function extractsIds(stashId, queuedKeys, nextKeys) { + const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [void 0, []])[1]; + const nextSessionIds = nextKeys.unwrapOr([]); + return { + nextSessionIds: Array.isArray(nextSessionIds) ? nextSessionIds : [...nextSessionIds.values()], + sessionIds: Array.isArray(sessionIds) ? sessionIds : [...sessionIds.values()] + }; + } + exports2.keys = (0, index_js_1.firstMemo)((api, stashId) => api.derive.staking.keysMulti([stashId])); + function keysMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (stashIds) => stashIds.length ? api.query.session.queuedKeys().pipe((0, rxjs_1.switchMap)((queuedKeys) => (0, rxjs_1.combineLatest)([ + (0, rxjs_1.of)(queuedKeys), + api.consts["session"]?.["dedupKeyPrefix"] ? api.query.session.nextKeys.multi(stashIds.map((s) => [api.consts["session"]["dedupKeyPrefix"], s])) : (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.session.nextKeys(s))) + ])), (0, rxjs_1.map)(([queuedKeys, nextKeys]) => stashIds.map((stashId, index) => extractsIds(stashId, queuedKeys, nextKeys[index])))) : (0, rxjs_1.of)([])); + } + exports2.keysMulti = keysMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/overview.js + var require_overview2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/overview.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.overview = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function overview(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.derive.session.indexes(), + api.derive.staking.validators() + ]).pipe((0, rxjs_1.map)(([indexes, { nextElected, validators }]) => (0, util_1.objectSpread)({}, indexes, { + nextElected, + validators + })))); + } + exports2.overview = overview; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/ownExposure.js + var require_ownExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/ownExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownExposures = exports2.ownExposure = exports2._ownExposures = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _ownExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => eras.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))), + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.erasStakers(e, accountId))) + ]).pipe((0, rxjs_1.map)(([clp, exp]) => eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index] })))) : (0, rxjs_1.of)([])); + } + exports2._ownExposures = _ownExposures; + exports2.ownExposure = (0, index_js_1.firstMemo)((api, accountId, era) => api.derive.staking._ownExposures(accountId, [era], true)); + exports2.ownExposures = (0, util_js_1.erasHistoricApplyAccount)("_ownExposures"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/ownSlashes.js + var require_ownSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/ownSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ownSlashes = exports2.ownSlash = exports2._ownSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _ownSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => eras.length ? (0, rxjs_1.combineLatest)([ + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.validatorSlashInEra(e, accountId))), + (0, rxjs_1.combineLatest)(eras.map((e) => api.query.staking.nominatorSlashInEra(e, accountId))) + ]).pipe((0, rxjs_1.map)(([vals, noms]) => eras.map((era, index) => ({ + era, + total: vals[index].isSome ? vals[index].unwrap()[1] : noms[index].unwrapOrDefault() + })))) : (0, rxjs_1.of)([])); + } + exports2._ownSlashes = _ownSlashes; + exports2.ownSlash = (0, index_js_1.firstMemo)((api, accountId, era) => api.derive.staking._ownSlashes(accountId, [era], true)); + exports2.ownSlashes = (0, util_js_1.erasHistoricApplyAccount)("_ownSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/query.js + var require_query = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/query.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.queryMulti = exports2.query = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function rewardDestinationCompat(rewardDestination) { + return typeof rewardDestination.isSome === "boolean" ? rewardDestination.unwrapOr(null) : rewardDestination; + } + function parseDetails(stashId, controllerIdOpt, nominatorsOpt, rewardDestinationOpts, validatorPrefs, exposure, stakingLedgerOpt) { + return { + accountId: stashId, + controllerId: controllerIdOpt?.unwrapOr(null) || null, + exposure, + nominators: nominatorsOpt.isSome ? nominatorsOpt.unwrap().targets : [], + rewardDestination: rewardDestinationCompat(rewardDestinationOpts), + stakingLedger: stakingLedgerOpt.unwrapOrDefault(), + stashId, + validatorPrefs + }; + } + function getLedgers(api, optIds, { withLedger = false }) { + const ids = optIds.filter((o) => withLedger && !!o && o.isSome).map((o) => o.unwrap()); + const emptyLed = api.registry.createType("Option"); + return (ids.length ? (0, rxjs_1.combineLatest)(ids.map((s) => api.query.staking.ledger(s))) : (0, rxjs_1.of)([])).pipe((0, rxjs_1.map)((optLedgers) => { + let offset = -1; + return optIds.map((o) => o && o.isSome ? optLedgers[++offset] || emptyLed : emptyLed); + })); + } + function getStashInfo(api, stashIds, activeEra, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }) { + const emptyNoms = api.registry.createType("Option"); + const emptyRewa = api.registry.createType("RewardDestination"); + const emptyExpo = api.registry.createType("Exposure"); + const emptyPrefs = api.registry.createType("ValidatorPrefs"); + return (0, rxjs_1.combineLatest)([ + withController || withLedger ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.bonded(s))) : (0, rxjs_1.of)(stashIds.map(() => null)), + withNominations ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.nominators(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyNoms)), + withDestination ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.payee(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyRewa)), + withPrefs ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.validators(s))) : (0, rxjs_1.of)(stashIds.map(() => emptyPrefs)), + withExposure ? (0, rxjs_1.combineLatest)(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s))) : (0, rxjs_1.of)(stashIds.map(() => emptyExpo)) + ]); + } + function getBatch(api, activeEra, stashIds, flags) { + return getStashInfo(api, stashIds, activeEra, flags).pipe((0, rxjs_1.switchMap)(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure]) => getLedgers(api, controllerIdOpt, flags).pipe((0, rxjs_1.map)((stakingLedgerOpts) => stashIds.map((stashId, index) => parseDetails(stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index])))))); + } + exports2.query = (0, index_js_1.firstMemo)((api, accountId, flags) => api.derive.staking.queryMulti([accountId], flags)); + function queryMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, flags) => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(({ activeEra }) => { + const stashIds = accountIds.map((a) => api.registry.createType("AccountId", a)); + return stashIds.length ? getBatch(api, activeEra, stashIds, flags) : (0, rxjs_1.of)([]); + }))); + } + exports2.queryMulti = queryMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerExposure.js + var require_stakerExposure = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerExposure.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerExposure = exports2.stakerExposures = exports2._stakerExposures = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function _stakerExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras, withActive = false) => { + const stakerIds = accountIds.map((a) => api.registry.createType("AccountId", a).toString()); + return api.derive.staking._erasExposure(eras, withActive).pipe((0, rxjs_1.map)((exposures) => stakerIds.map((stakerId) => exposures.map(({ era, nominators: allNominators, validators: allValidators }) => { + const isValidator = !!allValidators[stakerId]; + const validators = {}; + const nominating = allNominators[stakerId] || []; + if (isValidator) { + validators[stakerId] = allValidators[stakerId]; + } else if (nominating) { + nominating.forEach(({ validatorId }) => { + validators[validatorId] = allValidators[validatorId]; + }); + } + return { era, isEmpty: !Object.keys(validators).length, isValidator, nominating, validators }; + })))); + }); + } + exports2._stakerExposures = _stakerExposures; + function stakerExposures(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking._stakerExposures(accountIds, eras, withActive)))); + } + exports2.stakerExposures = stakerExposures; + exports2.stakerExposure = (0, index_js_1.firstMemo)((api, accountId, withActive) => api.derive.staking.stakerExposures([accountId], withActive)); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerPoints.js + var require_stakerPoints = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerPoints.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerPoints = exports2._stakerPoints = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerPoints(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => { + const stakerId = api.registry.createType("AccountId", accountId).toString(); + return api.derive.staking._erasPoints(eras, withActive).pipe((0, rxjs_1.map)((points) => points.map(({ era, eraPoints, validators }) => ({ + era, + eraPoints, + points: validators[stakerId] || api.registry.createType("RewardPoint") + })))); + }); + } + exports2._stakerPoints = _stakerPoints; + exports2.stakerPoints = (0, util_js_1.erasHistoricApplyAccount)("_stakerPoints"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerPrefs.js + var require_stakerPrefs = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerPrefs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerPrefs = exports2._stakerPrefs = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerPrefs(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, _withActive) => api.query.staking.erasValidatorPrefs.multi(eras.map((e) => [e, accountId])).pipe((0, rxjs_1.map)((all) => all.map((validatorPrefs, index) => ({ + era: eras[index], + validatorPrefs + }))))); + } + exports2._stakerPrefs = _stakerPrefs; + exports2.stakerPrefs = (0, util_js_1.erasHistoricApplyAccount)("_stakerPrefs"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerRewards.js + var require_stakerRewards = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerRewards.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerRewardsMulti = exports2.stakerRewardsMultiEras = exports2.stakerRewards = exports2._stakerRewards = exports2._stakerRewardsEras = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + function extractCompatRewards(ledger) { + return ledger ? ledger.legacyClaimedRewards || ledger.claimedRewards : []; + } + function parseRewards(api, stashId, [erasPoints, erasPrefs, erasRewards], exposures) { + return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }) => { + const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: util_1.BN_ZERO, validators: {} }; + const { eraReward } = erasRewards.find((r10) => r10.era.eq(era)) || { eraReward: api.registry.createType("Balance") }; + const { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} }; + const validators = {}; + const stakerId = stashId.toString(); + Object.entries(eraValidators).forEach(([validatorId, exposure]) => { + const valPoints = allValPoints[validatorId] || util_1.BN_ZERO; + const valComm = allValPrefs[validatorId]?.commission.unwrap() || util_1.BN_ZERO; + const expTotal = exposure.total ? exposure.total?.unwrap() : exposure.pageTotal ? exposure.pageTotal?.unwrap() : util_1.BN_ZERO; + let avail = util_1.BN_ZERO; + let value; + if (!(expTotal.isZero() || valPoints.isZero() || eraPoints.isZero())) { + avail = eraReward.mul(valPoints).div(eraPoints); + const valCut = valComm.mul(avail).div(util_1.BN_BILLION); + let staked; + if (validatorId === stakerId) { + if (exposure.own) { + staked = exposure.own.unwrap(); + } else { + const expAccount = exposure.others.find(({ who }) => who.eq(validatorId)); + staked = expAccount ? expAccount.value.unwrap() : util_1.BN_ZERO; + } + } else { + const stakerExp = exposure.others.find(({ who }) => who.eq(stakerId)); + staked = stakerExp ? stakerExp.value.unwrap() : util_1.BN_ZERO; + } + value = avail.sub(valCut).imul(staked).div(expTotal).iadd(validatorId === stakerId ? valCut : util_1.BN_ZERO); + } + validators[validatorId] = { + total: api.registry.createType("Balance", avail), + value: api.registry.createType("Balance", value) + }; + }); + return { + era, + eraReward, + isEmpty, + isValidator, + nominating, + validators + }; + }); + } + function allUniqValidators(rewards) { + return rewards.reduce(([all, perStash], rewards2) => { + const uniq = []; + perStash.push(uniq); + rewards2.forEach(({ validators }) => Object.keys(validators).forEach((validatorId) => { + if (!uniq.includes(validatorId)) { + uniq.push(validatorId); + if (!all.includes(validatorId)) { + all.push(validatorId); + } + } + })); + return [all, perStash]; + }, [[], []]); + } + function removeClaimed(validators, queryValidators, reward) { + const rm2 = []; + Object.keys(reward.validators).forEach((validatorId) => { + const index = validators.indexOf(validatorId); + if (index !== -1) { + const valLedger = queryValidators[index].stakingLedger; + if (extractCompatRewards(valLedger).some((e) => reward.era.eq(e))) { + rm2.push(validatorId); + } + } + }); + rm2.forEach((validatorId) => { + delete reward.validators[validatorId]; + }); + } + function filterRewards(eras, valInfo, { rewards, stakingLedger }) { + const filter = eras.filter((e) => !extractCompatRewards(stakingLedger).some((s) => s.eq(e))); + const validators = valInfo.map(([v]) => v); + const queryValidators = valInfo.map(([, q]) => q); + return rewards.filter(({ isEmpty }) => !isEmpty).filter((reward) => { + if (!filter.some((e) => reward.era.eq(e))) { + return false; + } + removeClaimed(validators, queryValidators, reward); + return true; + }).filter(({ validators: validators2 }) => Object.keys(validators2).length !== 0).map((reward) => (0, util_1.objectSpread)({}, reward, { + nominators: reward.nominating.filter((n) => reward.validators[n.validatorId]) + })); + } + function _stakerRewardsEras(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (eras, withActive = false) => (0, rxjs_1.combineLatest)([ + api.derive.staking._erasPoints(eras, withActive), + api.derive.staking._erasPrefs(eras, withActive), + api.derive.staking._erasRewards(eras, withActive) + ])); + } + exports2._stakerRewardsEras = _stakerRewardsEras; + function _stakerRewards(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras, withActive = false) => (0, rxjs_1.combineLatest)([ + api.derive.staking.queryMulti(accountIds, { withLedger: true }), + api.derive.staking._stakerExposures(accountIds, eras, withActive), + api.derive.staking._stakerRewardsEras(eras, withActive) + ]).pipe((0, rxjs_1.switchMap)(([queries, exposures, erasResult]) => { + const allRewards = queries.map(({ stakingLedger, stashId }, index) => !stashId || !stakingLedger ? [] : parseRewards(api, stashId, erasResult, exposures[index])); + if (withActive) { + return (0, rxjs_1.of)(allRewards); + } + const [allValidators, stashValidators] = allUniqValidators(allRewards); + return api.derive.staking.queryMulti(allValidators, { withLedger: true }).pipe((0, rxjs_1.map)((queriedVals) => queries.map(({ stakingLedger }, index) => filterRewards(eras, stashValidators[index].map((validatorId) => [ + validatorId, + queriedVals.find((q) => q.accountId.eq(validatorId)) + ]).filter((v) => !!v[1]), { + rewards: allRewards[index], + stakingLedger + })))); + }))); + } + exports2._stakerRewards = _stakerRewards; + exports2.stakerRewards = (0, index_js_1.firstMemo)((api, accountId, withActive) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking._stakerRewards([accountId], eras, withActive)))); + function stakerRewardsMultiEras(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, eras) => accountIds.length && eras.length ? api.derive.staking._stakerRewards(accountIds, eras, false) : (0, rxjs_1.of)([])); + } + exports2.stakerRewardsMultiEras = stakerRewardsMultiEras; + function stakerRewardsMulti(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountIds, withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)((eras) => api.derive.staking.stakerRewardsMultiEras(accountIds, eras)))); + } + exports2.stakerRewardsMulti = stakerRewardsMulti; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stakerSlashes.js + var require_stakerSlashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stakerSlashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stakerSlashes = exports2._stakerSlashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var util_js_1 = require_util17(); + function _stakerSlashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => { + const stakerId = api.registry.createType("AccountId", accountId).toString(); + return api.derive.staking._erasSlashes(eras, withActive).pipe((0, rxjs_1.map)((slashes) => slashes.map(({ era, nominators, validators }) => ({ + era, + total: nominators[stakerId] || validators[stakerId] || api.registry.createType("Balance") + })))); + }); + } + exports2._stakerSlashes = _stakerSlashes; + exports2.stakerSlashes = (0, util_js_1.erasHistoricApplyAccount)("_stakerSlashes"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/stashes.js + var require_stashes = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/stashes.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stashes = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function onBondedEvent(api) { + let current = Date.now(); + return api.query.system.events().pipe((0, rxjs_1.map)((events) => { + current = events.filter(({ event, phase }) => { + try { + return phase.isApplyExtrinsic && event.section === "staking" && event.method === "Bonded"; + } catch { + return false; + } + }) ? Date.now() : current; + return current; + }), (0, rxjs_1.startWith)(current), (0, index_js_1.drr)({ skipTimeout: true })); + } + function stashes(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => onBondedEvent(api).pipe((0, rxjs_1.switchMap)(() => api.query.staking.validators.keys()), (0, rxjs_1.map)((keys) => keys.map(({ args: [v] }) => v).filter((a) => a)))); + } + exports2.stashes = stashes; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/validators.js + var require_validators = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/validators.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validators = exports2.nextElected = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function nextElected(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.staking.erasStakers ? api.derive.session.indexes().pipe( + (0, rxjs_1.switchMap)(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)), + (0, rxjs_1.map)((keys) => keys.map(({ args: [, accountId] }) => accountId)) + ) : api.query.staking["currentElected"]()); + } + exports2.nextElected = nextElected; + function validators(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([ + api.query.session ? api.query.session.validators() : (0, rxjs_1.of)([]), + api.query.staking ? api.derive.staking.nextElected() : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([validators2, nextElected2]) => ({ + nextElected: nextElected2.length ? nextElected2 : validators2, + validators: validators2 + })))); + } + exports2.validators = validators; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/waitingInfo.js + var require_waitingInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/waitingInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.waitingInfo = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + var DEFAULT_FLAGS = { withController: true, withPrefs: true }; + function waitingInfo(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (flags = DEFAULT_FLAGS) => (0, rxjs_1.combineLatest)([ + api.derive.staking.validators(), + api.derive.staking.stashes() + ]).pipe((0, rxjs_1.switchMap)(([{ nextElected }, stashes]) => { + const elected = nextElected.map((a) => a.toString()); + const waiting = stashes.filter((v) => !elected.includes(v.toString())); + return api.derive.staking.queryMulti(waiting, flags).pipe((0, rxjs_1.map)((info) => ({ + info, + waiting + }))); + }))); + } + exports2.waitingInfo = waitingInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/staking/index.js + var require_staking = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/staking/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_account2(), exports2); + tslib_1.__exportStar(require_currentPoints(), exports2); + tslib_1.__exportStar(require_electedInfo(), exports2); + tslib_1.__exportStar(require_erasExposure(), exports2); + tslib_1.__exportStar(require_erasHistoric(), exports2); + tslib_1.__exportStar(require_erasPoints(), exports2); + tslib_1.__exportStar(require_erasPrefs(), exports2); + tslib_1.__exportStar(require_erasRewards(), exports2); + tslib_1.__exportStar(require_erasSlashes(), exports2); + tslib_1.__exportStar(require_keys2(), exports2); + tslib_1.__exportStar(require_overview2(), exports2); + tslib_1.__exportStar(require_ownExposure(), exports2); + tslib_1.__exportStar(require_ownSlashes(), exports2); + tslib_1.__exportStar(require_query(), exports2); + tslib_1.__exportStar(require_stakerExposure(), exports2); + tslib_1.__exportStar(require_stakerPoints(), exports2); + tslib_1.__exportStar(require_stakerPrefs(), exports2); + tslib_1.__exportStar(require_stakerRewards(), exports2); + tslib_1.__exportStar(require_stakerSlashes(), exports2); + tslib_1.__exportStar(require_stashes(), exports2); + tslib_1.__exportStar(require_validators(), exports2); + tslib_1.__exportStar(require_waitingInfo(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/technicalCommittee/index.js + var require_technicalCommittee = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/technicalCommittee/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.prime = exports2.proposals = exports2.proposalHashes = exports2.proposalCount = exports2.proposal = exports2.hasProposals = exports2.members = void 0; + var index_js_1 = require_collective(); + exports2.members = (0, index_js_1.members)("technicalCommittee"); + exports2.hasProposals = (0, index_js_1.hasProposals)("technicalCommittee"); + exports2.proposal = (0, index_js_1.proposal)("technicalCommittee"); + exports2.proposalCount = (0, index_js_1.proposalCount)("technicalCommittee"); + exports2.proposalHashes = (0, index_js_1.proposalHashes)("technicalCommittee"); + exports2.proposals = (0, index_js_1.proposals)("technicalCommittee"); + exports2.prime = (0, index_js_1.prime)("technicalCommittee"); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/treasury/proposals.js + var require_proposals3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/treasury/proposals.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.proposals = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount }) { + const approvals = []; + const proposals2 = []; + const councilTreasury = councilProposals.filter(({ proposal }) => proposal && (api.tx.treasury.approveProposal.is(proposal) || api.tx.treasury.rejectProposal.is(proposal))); + allIds.forEach((id4, index) => { + if (allProposals[index].isSome) { + const council = councilTreasury.filter(({ proposal }) => proposal && id4.eq(proposal.args[0])).sort((a, b) => a.proposal && b.proposal ? a.proposal.method.localeCompare(b.proposal.method) : a.proposal ? -1 : 1); + const isApproval = approvalIds.some((approvalId) => approvalId.eq(id4)); + const derived = { council, id: id4, proposal: allProposals[index].unwrap() }; + if (isApproval) { + approvals.push(derived); + } else { + proposals2.push(derived); + } + } + }); + return { approvals, proposalCount, proposals: proposals2 }; + } + function retrieveProposals(api, proposalCount, approvalIds) { + const proposalIds = []; + const count = proposalCount.toNumber(); + for (let index = 0; index < count; index++) { + if (!approvalIds.some((id4) => id4.eqn(index))) { + proposalIds.push(api.registry.createType("ProposalIndex", index)); + } + } + const allIds = [...proposalIds, ...approvalIds]; + return (0, rxjs_1.combineLatest)([ + api.query.treasury.proposals.multi(allIds), + api.derive.council ? api.derive.council.proposals() : (0, rxjs_1.of)([]) + ]).pipe((0, rxjs_1.map)(([allProposals, councilProposals]) => parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount }))); + } + function proposals(instanceId, api) { + return (0, index_js_1.memo)(instanceId, () => api.query.treasury ? (0, rxjs_1.combineLatest)([ + api.query.treasury.proposalCount(), + api.query.treasury.approvals() + ]).pipe((0, rxjs_1.switchMap)(([proposalCount, approvalIds]) => retrieveProposals(api, proposalCount, approvalIds))) : (0, rxjs_1.of)({ + approvals: [], + proposalCount: api.registry.createType("ProposalIndex"), + proposals: [] + })); + } + exports2.proposals = proposals; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/treasury/index.js + var require_treasury = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/treasury/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_proposals3(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/events.js + var require_events2 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.events = void 0; + var rxjs_1 = require_cjs7(); + var index_js_1 = require_util10(); + function events(instanceId, api) { + return (0, index_js_1.memo)(instanceId, (blockHash) => (0, rxjs_1.combineLatest)([ + api.rpc.chain.getBlock(blockHash), + api.queryAt(blockHash).pipe((0, rxjs_1.switchMap)((queryAt) => queryAt.system.events())) + ]).pipe((0, rxjs_1.map)(([block, events2]) => ({ block, events: events2 })))); + } + exports2.events = events; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/constants.js + var require_constants4 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/constants.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MORTAL_PERIOD = exports2.MAX_FINALITY_LAG = exports2.FALLBACK_PERIOD = exports2.FALLBACK_MAX_HASH_COUNT = void 0; + var util_1 = require_cjs3(); + exports2.FALLBACK_MAX_HASH_COUNT = 250; + exports2.FALLBACK_PERIOD = new util_1.BN(6 * 1e3); + exports2.MAX_FINALITY_LAG = new util_1.BN(5); + exports2.MORTAL_PERIOD = new util_1.BN(5 * 60 * 1e3); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/signingInfo.js + var require_signingInfo = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/signingInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.signingInfo = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util10(); + var constants_js_1 = require_constants4(); + function latestNonce(api, address) { + return api.derive.balances.account(address).pipe((0, rxjs_1.map)(({ accountNonce }) => accountNonce)); + } + function nextNonce(api, address) { + return api.rpc.system?.accountNextIndex ? api.rpc.system.accountNextIndex(address) : latestNonce(api, address); + } + function signingHeader(api) { + return (0, rxjs_1.combineLatest)([ + api.rpc.chain.getHeader().pipe((0, rxjs_1.switchMap)((header) => header.parentHash.isEmpty ? (0, rxjs_1.of)(header) : api.rpc.chain.getHeader(header.parentHash).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(header))))), + api.rpc.chain.getFinalizedHead().pipe((0, rxjs_1.switchMap)((hash8) => api.rpc.chain.getHeader(hash8).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.of)(null))))) + ]).pipe((0, rxjs_1.map)(([current, finalized]) => !finalized || (0, index_js_1.unwrapBlockNumber)(current).sub((0, index_js_1.unwrapBlockNumber)(finalized)).gt(constants_js_1.MAX_FINALITY_LAG) ? current : finalized)); + } + function babeOrAuraPeriod(api) { + const period = api.consts.babe?.expectedBlockTime || api.consts["aura"]?.slotDuration || api.consts.timestamp?.minimumPeriod.muln(2); + return !period.isZero() ? period : void 0; + } + function signingInfo(_instanceId, api) { + return (address, nonce, era) => (0, rxjs_1.combineLatest)([ + (0, util_1.isUndefined)(nonce) ? latestNonce(api, address) : nonce === -1 ? nextNonce(api, address) : (0, rxjs_1.of)(api.registry.createType("Index", nonce)), + (0, util_1.isUndefined)(era) || (0, util_1.isNumber)(era) && era > 0 ? signingHeader(api) : (0, rxjs_1.of)(null) + ]).pipe((0, rxjs_1.map)(([nonce2, header]) => ({ + header, + mortalLength: Math.min(api.consts.system?.blockHashCount?.toNumber() || constants_js_1.FALLBACK_MAX_HASH_COUNT, constants_js_1.MORTAL_PERIOD.div(babeOrAuraPeriod(api) || constants_js_1.FALLBACK_PERIOD).iadd(constants_js_1.MAX_FINALITY_LAG).toNumber()), + nonce: nonce2 + }))); + } + exports2.signingInfo = signingInfo; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/tx/index.js + var require_tx = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/tx/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_events2(), exports2); + tslib_1.__exportStar(require_signingInfo(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/derive.js + var require_derive3 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/derive.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.derive = void 0; + var tslib_1 = require_tslib(); + var accounts2 = tslib_1.__importStar(require_accounts()); + var alliance = tslib_1.__importStar(require_alliance()); + var bagsList = tslib_1.__importStar(require_bagsList()); + var balances = tslib_1.__importStar(require_balances()); + var bounties = tslib_1.__importStar(require_bounties2()); + var chain4 = tslib_1.__importStar(require_chain()); + var contracts2 = tslib_1.__importStar(require_contracts()); + var council = tslib_1.__importStar(require_council()); + var crowdloan = tslib_1.__importStar(require_crowdloan()); + var democracy = tslib_1.__importStar(require_democracy()); + var elections = tslib_1.__importStar(require_elections()); + var imOnline = tslib_1.__importStar(require_imOnline()); + var membership = tslib_1.__importStar(require_membership()); + var parachains = tslib_1.__importStar(require_parachains()); + var session = tslib_1.__importStar(require_session()); + var society = tslib_1.__importStar(require_society()); + var staking = tslib_1.__importStar(require_staking()); + var technicalCommittee = tslib_1.__importStar(require_technicalCommittee()); + var treasury = tslib_1.__importStar(require_treasury()); + var tx2 = tslib_1.__importStar(require_tx()); + exports2.derive = { accounts: accounts2, alliance, bagsList, balances, bounties, chain: chain4, contracts: contracts2, council, crowdloan, democracy, elections, imOnline, membership, parachains, session, society, staking, technicalCommittee, treasury, tx: tx2 }; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/bundle.js + var require_bundle8 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAvailableDerives = exports2.lazyDeriveSection = void 0; + var tslib_1 = require_tslib(); + var index_js_1 = require_util10(); + Object.defineProperty(exports2, "lazyDeriveSection", { enumerable: true, get: function() { + return index_js_1.lazyDeriveSection; + } }); + var derive_js_1 = require_derive3(); + tslib_1.__exportStar(require_derive3(), exports2); + tslib_1.__exportStar(require_type2(), exports2); + var checks = { + allianceMotion: { + instances: ["allianceMotion"], + methods: [] + }, + bagsList: { + instances: ["voterBagsList", "voterList", "bagsList"], + methods: [], + withDetect: true + }, + contracts: { + instances: ["contracts"], + methods: [] + }, + council: { + instances: ["council"], + methods: [], + withDetect: true + }, + crowdloan: { + instances: ["crowdloan"], + methods: [] + }, + democracy: { + instances: ["democracy"], + methods: [] + }, + elections: { + instances: ["phragmenElection", "electionsPhragmen", "elections", "council"], + methods: [], + withDetect: true + }, + imOnline: { + instances: ["imOnline"], + methods: [] + }, + membership: { + instances: ["membership"], + methods: [] + }, + parachains: { + instances: ["parachains", "registrar"], + methods: [] + }, + session: { + instances: ["session"], + methods: [] + }, + society: { + instances: ["society"], + methods: [] + }, + staking: { + instances: ["staking"], + methods: ["erasRewardPoints"] + }, + technicalCommittee: { + instances: ["technicalCommittee"], + methods: [], + withDetect: true + }, + treasury: { + instances: ["treasury"], + methods: [] + } + }; + function getModuleInstances(api, specName, moduleName) { + return api.registry.getModuleInstances(specName, moduleName) || []; + } + function injectFunctions(instanceId, api, derives) { + const result = {}; + const names2 = Object.keys(derives); + const keys = Object.keys(api.query); + const specName = api.runtimeVersion.specName; + const filterKeys = (q) => keys.includes(q); + const filterInstances = (q) => getModuleInstances(api, specName, q).some(filterKeys); + const filterMethods = (all) => (m) => all.some((q) => keys.includes(q) && api.query[q][m]); + const getKeys2 = (s) => Object.keys(derives[s]); + const creator = (s, m) => derives[s][m](instanceId, api); + const isIncluded = (c) => !checks[c] || (checks[c].instances.some(filterKeys) && (!checks[c].methods.length || checks[c].methods.every(filterMethods(checks[c].instances))) || checks[c].withDetect && checks[c].instances.some(filterInstances)); + for (let i = 0, count = names2.length; i < count; i++) { + const name6 = names2[i]; + isIncluded(name6) && (0, index_js_1.lazyDeriveSection)(result, name6, getKeys2, creator); + } + return result; + } + function getAvailableDerives(instanceId, api, custom = {}) { + return { + ...injectFunctions(instanceId, api, derive_js_1.derive), + ...injectFunctions(instanceId, api, custom) + }; + } + exports2.getAvailableDerives = getAvailableDerives; + } + }); + + // ../../node_modules/@polkadot/api-derive/cjs/index.js + var require_cjs12 = __commonJS({ + "../../node_modules/@polkadot/api-derive/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect(); + tslib_1.__exportStar(require_bundle8(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/packageInfo.js + var require_packageInfo18 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-known", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/packageDetect.js + var require_packageDetect6 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo18(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/chain/index.js + var require_chain2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/chain/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesChain = void 0; + exports2.typesChain = {}; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/centrifuge-chain.js + var require_centrifuge_chain = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/centrifuge-chain.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var sharedTypes9 = { + AnchorData: { + anchoredBlock: "u64", + docRoot: "H256", + id: "H256" + }, + DispatchErrorModule: "DispatchErrorModuleU8", + PreCommitData: { + expirationBlock: "u64", + identity: "H256", + signingRoot: "H256" + }, + Fee: { + key: "Hash", + price: "Balance" + }, + MultiAccountData: { + deposit: "Balance", + depositor: "AccountId", + signatories: "Vec", + threshold: "u16" + }, + ChainId: "u8", + DepositNonce: "u64", + ResourceId: "[u8; 32]", + "chainbridge::ChainId": "u8", + RegistryId: "H160", + TokenId: "U256", + AssetId: { + registryId: "RegistryId", + tokenId: "TokenId" + }, + AssetInfo: { + metadata: "Bytes" + }, + MintInfo: { + anchorId: "Hash", + proofs: "Vec", + staticHashes: "[Hash; 3]" + }, + Proof: { + leafHash: "H256", + sortedHashes: "H256" + }, + ProofMint: { + hashes: "Vec", + property: "Bytes", + salt: "[u8; 32]", + value: "Bytes" + }, + RegistryInfo: { + fields: "Vec", + ownerCanBurn: "bool" + }, + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "Governance", + "Staking", + "NonProxy" + ] + } + }; + var standaloneTypes2 = { + ...sharedTypes9, + AccountInfo: "AccountInfoWithRefCount", + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + Multiplier: "Fixed64", + RefCount: "RefCountTo259" + }; + exports2.versioned = [ + { + minmax: [240, 243], + types: { + ...standaloneTypes2, + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "Governance", + "Staking", + "Vesting" + ] + } + } + }, + { + minmax: [244, 999], + types: { ...standaloneTypes2 } + }, + { + minmax: [1e3, void 0], + types: { ...sharedTypes9 } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/kusama.js + var require_kusama = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith24", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith24", + Keys: "SessionKeys6", + ProxyType: { + _enum: ["Any", "NonTransfer", "Governance", "Staking", "IdentityJudgement", "CancelProxy", "Auction"] + }, + Weight: "WeightV1" + }; + var addrIndicesTypes2 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "LookupSource", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys5", + LookupSource: "IndicesLookupSource", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys5", + LookupSource: "AccountId", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [1019, 1031], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchError: "DispatchErrorTo198", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + IdentityInfo: "IdentityInfoTo198", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + SlashingSpans: "SlashingSpansTo204", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1032, 1042], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + SlashingSpans: "SlashingSpansTo204", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1043, 1045], + types: { + ...addrIndicesTypes2, + BalanceLock: "BalanceLockTo212", + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Keys: "SessionKeys5", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo223", + Votes: "VotesTo230", + Weight: "u32" + } + }, + { + minmax: [1046, 1049], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo223", + Weight: "u32" + } + }, + { + minmax: [1050, 1054], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + ReferendumInfo: "ReferendumInfoTo239", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo240", + Weight: "u32" + } + }, + { + minmax: [1055, 1056], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Scheduled: "ScheduledTo254", + StakingLedger: "StakingLedgerTo240", + Weight: "u32" + } + }, + { + minmax: [1057, 1061], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Scheduled: "ScheduledTo254" + } + }, + { + minmax: [1062, 2012], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [2013, 2022], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + RefCount: "RefCountTo259" + } + }, + { + minmax: [2023, 2024], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + RefCount: "RefCountTo259" + } + }, + { + minmax: [2025, 2027], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [2028, 2029], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount", + CompactAssignments: "CompactAssignmentsWith16", + RawSolution: "RawSolutionWith16" + } + }, + { + minmax: [2030, 9e3], + types: { + ...sharedTypes9, + CompactAssignments: "CompactAssignmentsWith16", + RawSolution: "RawSolutionWith16" + } + }, + { + minmax: [9010, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/node.js + var require_node = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/node.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: { + Weight: "WeightV2" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/node-template.js + var require_node_template = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/node-template.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: { + Weight: "WeightV2" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/polkadot.js + var require_polkadot2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys6", + ProxyType: { + _enum: { + Any: 0, + NonTransfer: 1, + Governance: 2, + Staking: 3, + UnusedSudoBalances: 4, + IdentityJudgement: 5, + CancelProxy: 6, + Auction: 7 + } + }, + Weight: "WeightV1" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + DispatchErrorModule: "DispatchErrorModuleU8", + Keys: "SessionKeys5", + LookupSource: "AccountId", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [0, 12], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [13, 22], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + RefCount: "RefCountTo259" + } + }, + { + minmax: [23, 24], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + RefCount: "RefCountTo259" + } + }, + { + minmax: [25, 27], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [28, 29], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [30, 9109], + types: { + ...sharedTypes9 + } + }, + { + minmax: [9110, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/rococo.js + var require_rococo = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/rococo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + FullIdentification: "()", + Keys: "SessionKeys7B", + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 200], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount", + Address: "AccountId", + LookupSource: "AccountId" + } + }, + { + minmax: [201, 214], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [215, 228], + types: { + ...sharedTypes9, + Keys: "SessionKeys6" + } + }, + { + minmax: [229, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/shell.js + var require_shell2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/shell.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + exports2.versioned = [ + { + minmax: [0, void 0], + types: {} + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/statemine.js + var require_statemine = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/statemine.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, 9999], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + }, + { + minmax: [1e4, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/statemint.js + var require_statemint2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/statemint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, void 0], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/westend.js + var require_westend = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/westend.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + RawSolution: "RawSolutionWith16", + Keys: "SessionKeys6", + ProxyType: { + _enum: ["Any", "NonTransfer", "Staking", "SudoBalances", "IdentityJudgement", "CancelProxy"] + }, + Weight: "WeightV1" + }; + var addrAccountIdTypes4 = { + AccountInfo: "AccountInfoWithRefCount", + Address: "AccountId", + CompactAssignments: "CompactAssignmentsWith16", + DispatchErrorModule: "DispatchErrorModuleU8", + LookupSource: "AccountId", + Keys: "SessionKeys5", + RawSolution: "RawSolutionWith16", + ValidatorPrefs: "ValidatorPrefsWithCommission" + }; + exports2.versioned = [ + { + minmax: [1, 2], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + Multiplier: "Fixed64", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259", + Weight: "u32" + } + }, + { + minmax: [3, 22], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + OpenTip: "OpenTipTo225", + RefCount: "RefCountTo259" + } + }, + { + minmax: [23, 42], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + CompactAssignments: "CompactAssignmentsTo257", + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + RefCount: "RefCountTo259" + } + }, + { + minmax: [43, 44], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4, + DispatchInfo: "DispatchInfoTo244", + Heartbeat: "HeartbeatTo244", + RefCount: "RefCountTo259" + } + }, + { + minmax: [45, 47], + types: { + ...sharedTypes9, + ...addrAccountIdTypes4 + } + }, + { + minmax: [48, 49], + types: { + ...sharedTypes9, + AccountInfo: "AccountInfoWithDualRefCount" + } + }, + { + minmax: [50, 9099], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [9100, 9105], + types: { + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [9106, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/westmint.js + var require_westmint = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/westmint.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.versioned = void 0; + var types_create_1 = require_cjs9(); + var sharedTypes9 = { + DispatchErrorModule: "DispatchErrorModuleU8", + TAssetBalance: "u128", + ProxyType: { + _enum: [ + "Any", + "NonTransfer", + "CancelProxy", + "Assets", + "AssetOwner", + "AssetManager", + "Staking" + ] + }, + Weight: "WeightV1" + }; + exports2.versioned = [ + { + minmax: [0, 3], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V0") + } + }, + { + minmax: [4, 5], + types: { + DispatchError: "DispatchErrorPre6First", + ...sharedTypes9, + ...(0, types_create_1.mapXcmTypes)("V1") + } + }, + { + minmax: [500, 9434], + types: { + Weight: "WeightV1", + TAssetConversion: "Option" + } + }, + { + minmax: [9435, void 0], + types: { + Weight: "WeightV1" + } + } + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/spec/index.js + var require_spec = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/spec/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.typesSpec = void 0; + var centrifuge_chain_js_1 = require_centrifuge_chain(); + var kusama_js_1 = require_kusama(); + var node_js_1 = require_node(); + var node_template_js_1 = require_node_template(); + var polkadot_js_1 = require_polkadot2(); + var rococo_js_1 = require_rococo(); + var shell_js_1 = require_shell2(); + var statemine_js_1 = require_statemine(); + var statemint_js_1 = require_statemint2(); + var westend_js_1 = require_westend(); + var westmint_js_1 = require_westmint(); + exports2.typesSpec = { + "centrifuge-chain": centrifuge_chain_js_1.versioned, + kusama: kusama_js_1.versioned, + node: node_js_1.versioned, + "node-template": node_template_js_1.versioned, + polkadot: polkadot_js_1.versioned, + rococo: rococo_js_1.versioned, + shell: shell_js_1.versioned, + statemine: statemine_js_1.versioned, + statemint: statemint_js_1.versioned, + westend: westend_js_1.versioned, + westmint: westmint_js_1.versioned + }; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/kusama.js + var require_kusama2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 0, + 1020, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 26669, + 1021, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 38245, + 1022, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 54248, + 1023, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 59659, + 1024, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 67651, + 1025, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 82191, + 1027, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 83238, + 1028, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 101503, + 1029, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 203466, + 1030, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 295787, + 1031, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 461692, + 1032, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 504329, + 1033, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 569327, + 1038, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 1 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 587687, + 1039, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 653183, + 1040, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 693488, + 1042, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 901442, + 1045, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1375086, + 1050, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1445458, + 1051, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1472960, + 1052, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1475648, + 1053, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1491596, + 1054, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1574408, + 1055, + [ + [ + "0xdf6acb689907609b", + 2 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 1 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2064961, + 1058, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2201991, + 1062, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2671528, + 2005, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2704202, + 2007, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2728002, + 2008, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2832534, + 2011, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2962294, + 2012, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 324e4, + 2013, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3274408, + 2015, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3323565, + 2019, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3534175, + 2022, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3860281, + 2023, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4143129, + 2024, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4401242, + 2025, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4841367, + 2026, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5961600, + 2027, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6137912, + 2028, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6561855, + 2029, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7100891, + 2030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7468792, + 9010, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7668600, + 9030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7812476, + 9040, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8010981, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8073833, + 9070, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8555825, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8945245, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9611377, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9625129, + 9111, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9866422, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10403784, + 9130, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10960765, + 9150, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11006614, + 9151, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11404482, + 9160, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11601803, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12008022, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12405451, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12665416, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12909508, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13109752, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13555777, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 13727747, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 14248044, + 9271, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14433840, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14645900, + 9291, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15048375, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15426015, + 9320, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15680713, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15756296, + 9350, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 15912007, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 16356547, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 17335450, + 9381, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 18062739, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 18625e3, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 20465806, + 1e6, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 2157e4, + 1001e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 21786291, + 1001002, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 22515962, + 1001003, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/polkadot.js + var require_polkadot3 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 0, + 0, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 29231, + 1, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 188836, + 5, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 199405, + 6, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 214264, + 7, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 244358, + 8, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 303079, + 9, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 314201, + 10, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 342400, + 11, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 443963, + 12, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 528470, + 13, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 687751, + 14, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 746085, + 15, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 787923, + 16, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 799302, + 17, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1205128, + 18, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1603423, + 23, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1733218, + 24, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2005673, + 25, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2436698, + 26, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3613564, + 27, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3899547, + 28, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4345767, + 29, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4876134, + 30, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5661442, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6321619, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6713249, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7217907, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7229126, + 9110, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7560558, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8115869, + 9140, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8638103, + 9151, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9280179, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9738717, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10156856, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10458576, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10655116, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10879371, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11328884, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11532856, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11933818, + 9270, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 12217535, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12245277, + 9281, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12532644, + 9291, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 12876189, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ] + ] + ], + [ + 13800015, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 14188833, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 14543918, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ] + ] + ], + [ + 15978362, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 1645e4, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 1784e4, + 9431, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 18407475, + 1000001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ] + ] + ], + [ + 19551e3, + 1001002, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 5 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/westend.js + var require_westend2 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/westend.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + exports2.upgrades = [ + [ + 214356, + 4, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 1 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 392764, + 7, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 409740, + 8, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 809976, + 20, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 877581, + 24, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 879238, + 25, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 889472, + 26, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 902937, + 27, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 932751, + 28, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 991142, + 29, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1030162, + 31, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1119657, + 32, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1199282, + 33, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1342534, + 34, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1392263, + 35, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1431703, + 36, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1433369, + 37, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 1490972, + 41, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2087397, + 43, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2316688, + 44, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 2549864, + 45, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3925782, + 46, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 3925843, + 47, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4207800, + 48, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 4627944, + 49, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5124076, + 50, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5478664, + 900, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5482450, + 9e3, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 4 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5584305, + 9010, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5784566, + 9030, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5879822, + 9031, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5896856, + 9032, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 5897316, + 9033, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6117927, + 9050, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6210274, + 9070, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 2 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6379314, + 9080, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 2 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 6979141, + 9090, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7568453, + 9100, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7766394, + 9111, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7911691, + 9120, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7968866, + 9121, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 7982889, + 9122, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 8514322, + 9130, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9091726, + 9140, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9091774, + 9150, + [ + [ + "0xdf6acb689907609b", + 3 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 1 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9406726, + 9160, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 9921066, + 9170, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10007115, + 9180, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 5 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10480973, + 9190, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10578091, + 9200, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10678509, + 9210, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 10811001, + 9220, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11096116, + 9230, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11409279, + 9250, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11584820, + 9251, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11716837, + 9260, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11876919, + 9261, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ] + ] + ], + [ + 11987927, + 9270, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12077324, + 9271, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12301871, + 9280, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12604343, + 9290, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 2 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 12841034, + 9300, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13128237, + 9310, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 1 + ], + [ + "0xf3ff14d5ab527059", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13272363, + 9320, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13483497, + 9330, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13649433, + 9340, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13761100, + 9350, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 13847400, + 9360, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14249200, + 9370, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 2 + ], + [ + "0xf3ff14d5ab527059", + 2 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14576855, + 9380, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 3 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ] + ] + ], + [ + 14849830, + 9390, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 1 + ], + [ + "0x91d5df18b0d2cf58", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15146832, + 9400, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15332317, + 9401, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 1 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 3 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 15661793, + 9420, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 16165469, + 9430, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 4 + ], + [ + "0x49eaaf1b548a0cb0", + 2 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ] + ] + ], + [ + 18293984, + 102e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 7 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18293991, + 103e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 8 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18451783, + 104e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 9 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 18679741, + 1005e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 9 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19166695, + 1006e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19234157, + 1006001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19542944, + 1007e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19621258, + 1007001, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 19761406, + 1008e3, + [ + [ + "0xdf6acb689907609b", + 4 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 20056997, + 1009e3, + [ + [ + "0xdf6acb689907609b", + 5 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ], + [ + 20368318, + 101e4, + [ + [ + "0xdf6acb689907609b", + 5 + ], + [ + "0x37e397fc7c91f5e4", + 2 + ], + [ + "0x40fe3ad401f8959a", + 6 + ], + [ + "0xd2bc9897eed08f15", + 3 + ], + [ + "0xf78b278be53f454c", + 2 + ], + [ + "0xaf2c0297a23e6d3d", + 10 + ], + [ + "0x49eaaf1b548a0cb0", + 3 + ], + [ + "0x91d5df18b0d2cf58", + 2 + ], + [ + "0x2a5e924655399e60", + 1 + ], + [ + "0xed99c5acb25eedf5", + 3 + ], + [ + "0xcbca25e39f142387", + 2 + ], + [ + "0x687ad44ad37f03c2", + 1 + ], + [ + "0xab3c0572291feb8b", + 1 + ], + [ + "0xbc9d89904f5b923f", + 1 + ], + [ + "0x37c8bb1350a9a2a8", + 4 + ], + [ + "0xf3ff14d5ab527059", + 3 + ], + [ + "0x6ff52ee858e6c5bd", + 1 + ], + [ + "0x17a6bc0d0062aeb3", + 1 + ], + [ + "0x18ef58a3b67ba770", + 1 + ], + [ + "0xfbc577b9d747efd6", + 1 + ] + ] + ] + ]; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/index.js + var require_e2e = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/e2e/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.westend = exports2.polkadot = exports2.kusama = void 0; + var kusama_js_1 = require_kusama2(); + Object.defineProperty(exports2, "kusama", { enumerable: true, get: function() { + return kusama_js_1.upgrades; + } }); + var polkadot_js_1 = require_polkadot3(); + Object.defineProperty(exports2, "polkadot", { enumerable: true, get: function() { + return polkadot_js_1.upgrades; + } }); + var westend_js_1 = require_westend2(); + Object.defineProperty(exports2, "westend", { enumerable: true, get: function() { + return westend_js_1.upgrades; + } }); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/upgrades/index.js + var require_upgrades = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/upgrades/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.upgrades = void 0; + var tslib_1 = require_tslib(); + var networks_1 = require_cjs5(); + var util_1 = require_cjs3(); + var allKnown = tslib_1.__importStar(require_e2e()); + var NET_EXTRA = { + westend: { + genesisHash: ["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"] + } + }; + function mapRaw([network3, versions]) { + const chain4 = networks_1.selectableNetworks.find((n) => n.network === network3) || NET_EXTRA[network3]; + if (!chain4) { + throw new Error(`Unable to find info for chain ${network3}`); + } + return { + genesisHash: (0, util_1.hexToU8a)(chain4.genesisHash[0]), + network: network3, + versions: versions.map(([blockNumber, specVersion, apis]) => ({ + apis, + blockNumber: new util_1.BN(blockNumber), + specVersion: new util_1.BN(specVersion) + })) + }; + } + exports2.upgrades = Object.entries(allKnown).map(mapRaw); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/util.js + var require_util18 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/util.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUpgradeVersion = exports2.getSpecAlias = exports2.getSpecRuntime = exports2.getSpecRpc = exports2.getSpecHasher = exports2.getSpecTypes = exports2.getSpecExtensions = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_chain2(); + var index_js_2 = require_spec(); + var index_js_3 = require_upgrades(); + function withNames2(chainName, specName, fn2) { + return fn2(chainName.toString(), specName.toString()); + } + function filterVersions2(versions = [], specVersion) { + return versions.filter(({ minmax: [min, max2] }) => (min === void 0 || min === null || specVersion >= min) && (max2 === void 0 || max2 === null || specVersion <= max2)).reduce((result, { types: types2 }) => ({ ...result, ...types2 }), {}); + } + function getSpecExtensions({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.signedExtensions ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.signedExtensions ?? {} + })); + } + exports2.getSpecExtensions = getSpecExtensions; + function getSpecTypes2({ knownTypes: knownTypes2 }, chainName, specName, specVersion) { + const _specVersion = (0, util_1.bnToBn)(specVersion).toNumber(); + return withNames2(chainName, specName, (c, s) => ({ + ...filterVersions2(index_js_2.typesSpec[s], _specVersion), + ...filterVersions2(index_js_1.typesChain[c], _specVersion), + ...filterVersions2(knownTypes2.typesBundle?.spec?.[s]?.types, _specVersion), + ...filterVersions2(knownTypes2.typesBundle?.chain?.[c]?.types, _specVersion), + ...knownTypes2.typesSpec?.[s] ?? {}, + ...knownTypes2.typesChain?.[c] ?? {}, + ...knownTypes2.types ?? {} + })); + } + exports2.getSpecTypes = getSpecTypes2; + function getSpecHasher({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => knownTypes2.hasher || knownTypes2.typesBundle?.chain?.[c]?.hasher || knownTypes2.typesBundle?.spec?.[s]?.hasher || null); + } + exports2.getSpecHasher = getSpecHasher; + function getSpecRpc({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.rpc ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.rpc ?? {} + })); + } + exports2.getSpecRpc = getSpecRpc; + function getSpecRuntime({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.runtime ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.runtime ?? {} + })); + } + exports2.getSpecRuntime = getSpecRuntime; + function getSpecAlias({ knownTypes: knownTypes2 }, chainName, specName) { + return withNames2(chainName, specName, (c, s) => ({ + ...knownTypes2.typesBundle?.spec?.[s]?.alias ?? {}, + ...knownTypes2.typesBundle?.chain?.[c]?.alias ?? {}, + ...knownTypes2.typesAlias ?? {} + })); + } + exports2.getSpecAlias = getSpecAlias; + function getUpgradeVersion(genesisHash, blockNumber) { + const known = index_js_3.upgrades.find((u) => genesisHash.eq(u.genesisHash)); + return known ? [ + known.versions.reduce((last2, version23) => { + return blockNumber.gt(version23.blockNumber) ? version23 : last2; + }, void 0), + known.versions.find((version23) => blockNumber.lte(version23.blockNumber)) + ] : [void 0, void 0]; + } + exports2.getUpgradeVersion = getUpgradeVersion; + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/bundle.js + var require_bundle9 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = exports2.mapXcmTypes = void 0; + var tslib_1 = require_tslib(); + var types_create_1 = require_cjs9(); + Object.defineProperty(exports2, "mapXcmTypes", { enumerable: true, get: function() { + return types_create_1.mapXcmTypes; + } }); + var packageInfo_js_1 = require_packageInfo18(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + tslib_1.__exportStar(require_util18(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-known/cjs/index.js + var require_cjs13 = __commonJS({ + "../../node_modules/@polkadot/types-known/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect6(); + tslib_1.__exportStar(require_bundle9(), exports2); + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/partition.js + var require_partition2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/partition.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.partition = void 0; + var not_1 = require_not(); + var filter_1 = require_filter2(); + function partition(predicate, thisArg) { + return function(source) { + return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)]; + }; + } + exports2.partition = partition; + } + }); + + // ../../node_modules/rxjs/dist/cjs/internal/operators/race.js + var require_race2 = __commonJS({ + "../../node_modules/rxjs/dist/cjs/internal/operators/race.js"(exports2) { + "use strict"; + var __read2 = exports2 && exports2.__read || function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r10, ar2 = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r10 = i.next()).done) + ar2.push(r10.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r10 && !r10.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar2; + }; + var __spreadArray2 = exports2 && exports2.__spreadArray || function(to2, from2) { + for (var i = 0, il2 = from2.length, j10 = to2.length; i < il2; i++, j10++) + to2[j10] = from2[i]; + return to2; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.race = void 0; + var argsOrArgArray_1 = require_argsOrArgArray(); + var raceWith_1 = require_raceWith(); + function race() { + var args = []; + for (var _i2 = 0; _i2 < arguments.length; _i2++) { + args[_i2] = arguments[_i2]; + } + return raceWith_1.raceWith.apply(void 0, __spreadArray2([], __read2(argsOrArgArray_1.argsOrArgArray(args)))); + } + exports2.race = race; + } + }); + + // ../../node_modules/rxjs/dist/cjs/operators/index.js + var require_operators = __commonJS({ + "../../node_modules/rxjs/dist/cjs/operators/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.mergeAll = exports2.merge = exports2.max = exports2.materialize = exports2.mapTo = exports2.map = exports2.last = exports2.isEmpty = exports2.ignoreElements = exports2.groupBy = exports2.first = exports2.findIndex = exports2.find = exports2.finalize = exports2.filter = exports2.expand = exports2.exhaustMap = exports2.exhaustAll = exports2.exhaust = exports2.every = exports2.endWith = exports2.elementAt = exports2.distinctUntilKeyChanged = exports2.distinctUntilChanged = exports2.distinct = exports2.dematerialize = exports2.delayWhen = exports2.delay = exports2.defaultIfEmpty = exports2.debounceTime = exports2.debounce = exports2.count = exports2.connect = exports2.concatWith = exports2.concatMapTo = exports2.concatMap = exports2.concatAll = exports2.concat = exports2.combineLatestWith = exports2.combineLatest = exports2.combineLatestAll = exports2.combineAll = exports2.catchError = exports2.bufferWhen = exports2.bufferToggle = exports2.bufferTime = exports2.bufferCount = exports2.buffer = exports2.auditTime = exports2.audit = void 0; + exports2.timeInterval = exports2.throwIfEmpty = exports2.throttleTime = exports2.throttle = exports2.tap = exports2.takeWhile = exports2.takeUntil = exports2.takeLast = exports2.take = exports2.switchScan = exports2.switchMapTo = exports2.switchMap = exports2.switchAll = exports2.subscribeOn = exports2.startWith = exports2.skipWhile = exports2.skipUntil = exports2.skipLast = exports2.skip = exports2.single = exports2.shareReplay = exports2.share = exports2.sequenceEqual = exports2.scan = exports2.sampleTime = exports2.sample = exports2.refCount = exports2.retryWhen = exports2.retry = exports2.repeatWhen = exports2.repeat = exports2.reduce = exports2.raceWith = exports2.race = exports2.publishReplay = exports2.publishLast = exports2.publishBehavior = exports2.publish = exports2.pluck = exports2.partition = exports2.pairwise = exports2.onErrorResumeNext = exports2.observeOn = exports2.multicast = exports2.min = exports2.mergeWith = exports2.mergeScan = exports2.mergeMapTo = exports2.mergeMap = exports2.flatMap = void 0; + exports2.zipWith = exports2.zipAll = exports2.zip = exports2.withLatestFrom = exports2.windowWhen = exports2.windowToggle = exports2.windowTime = exports2.windowCount = exports2.window = exports2.toArray = exports2.timestamp = exports2.timeoutWith = exports2.timeout = void 0; + var audit_1 = require_audit(); + Object.defineProperty(exports2, "audit", { enumerable: true, get: function() { + return audit_1.audit; + } }); + var auditTime_1 = require_auditTime(); + Object.defineProperty(exports2, "auditTime", { enumerable: true, get: function() { + return auditTime_1.auditTime; + } }); + var buffer_1 = require_buffer4(); + Object.defineProperty(exports2, "buffer", { enumerable: true, get: function() { + return buffer_1.buffer; + } }); + var bufferCount_1 = require_bufferCount(); + Object.defineProperty(exports2, "bufferCount", { enumerable: true, get: function() { + return bufferCount_1.bufferCount; + } }); + var bufferTime_1 = require_bufferTime(); + Object.defineProperty(exports2, "bufferTime", { enumerable: true, get: function() { + return bufferTime_1.bufferTime; + } }); + var bufferToggle_1 = require_bufferToggle(); + Object.defineProperty(exports2, "bufferToggle", { enumerable: true, get: function() { + return bufferToggle_1.bufferToggle; + } }); + var bufferWhen_1 = require_bufferWhen(); + Object.defineProperty(exports2, "bufferWhen", { enumerable: true, get: function() { + return bufferWhen_1.bufferWhen; + } }); + var catchError_1 = require_catchError(); + Object.defineProperty(exports2, "catchError", { enumerable: true, get: function() { + return catchError_1.catchError; + } }); + var combineAll_1 = require_combineAll(); + Object.defineProperty(exports2, "combineAll", { enumerable: true, get: function() { + return combineAll_1.combineAll; + } }); + var combineLatestAll_1 = require_combineLatestAll(); + Object.defineProperty(exports2, "combineLatestAll", { enumerable: true, get: function() { + return combineLatestAll_1.combineLatestAll; + } }); + var combineLatest_1 = require_combineLatest2(); + Object.defineProperty(exports2, "combineLatest", { enumerable: true, get: function() { + return combineLatest_1.combineLatest; + } }); + var combineLatestWith_1 = require_combineLatestWith(); + Object.defineProperty(exports2, "combineLatestWith", { enumerable: true, get: function() { + return combineLatestWith_1.combineLatestWith; + } }); + var concat_1 = require_concat3(); + Object.defineProperty(exports2, "concat", { enumerable: true, get: function() { + return concat_1.concat; + } }); + var concatAll_1 = require_concatAll(); + Object.defineProperty(exports2, "concatAll", { enumerable: true, get: function() { + return concatAll_1.concatAll; + } }); + var concatMap_1 = require_concatMap(); + Object.defineProperty(exports2, "concatMap", { enumerable: true, get: function() { + return concatMap_1.concatMap; + } }); + var concatMapTo_1 = require_concatMapTo(); + Object.defineProperty(exports2, "concatMapTo", { enumerable: true, get: function() { + return concatMapTo_1.concatMapTo; + } }); + var concatWith_1 = require_concatWith(); + Object.defineProperty(exports2, "concatWith", { enumerable: true, get: function() { + return concatWith_1.concatWith; + } }); + var connect_1 = require_connect(); + Object.defineProperty(exports2, "connect", { enumerable: true, get: function() { + return connect_1.connect; + } }); + var count_1 = require_count(); + Object.defineProperty(exports2, "count", { enumerable: true, get: function() { + return count_1.count; + } }); + var debounce_1 = require_debounce(); + Object.defineProperty(exports2, "debounce", { enumerable: true, get: function() { + return debounce_1.debounce; + } }); + var debounceTime_1 = require_debounceTime(); + Object.defineProperty(exports2, "debounceTime", { enumerable: true, get: function() { + return debounceTime_1.debounceTime; + } }); + var defaultIfEmpty_1 = require_defaultIfEmpty(); + Object.defineProperty(exports2, "defaultIfEmpty", { enumerable: true, get: function() { + return defaultIfEmpty_1.defaultIfEmpty; + } }); + var delay_1 = require_delay(); + Object.defineProperty(exports2, "delay", { enumerable: true, get: function() { + return delay_1.delay; + } }); + var delayWhen_1 = require_delayWhen(); + Object.defineProperty(exports2, "delayWhen", { enumerable: true, get: function() { + return delayWhen_1.delayWhen; + } }); + var dematerialize_1 = require_dematerialize(); + Object.defineProperty(exports2, "dematerialize", { enumerable: true, get: function() { + return dematerialize_1.dematerialize; + } }); + var distinct_1 = require_distinct(); + Object.defineProperty(exports2, "distinct", { enumerable: true, get: function() { + return distinct_1.distinct; + } }); + var distinctUntilChanged_1 = require_distinctUntilChanged(); + Object.defineProperty(exports2, "distinctUntilChanged", { enumerable: true, get: function() { + return distinctUntilChanged_1.distinctUntilChanged; + } }); + var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged(); + Object.defineProperty(exports2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return distinctUntilKeyChanged_1.distinctUntilKeyChanged; + } }); + var elementAt_1 = require_elementAt(); + Object.defineProperty(exports2, "elementAt", { enumerable: true, get: function() { + return elementAt_1.elementAt; + } }); + var endWith_1 = require_endWith(); + Object.defineProperty(exports2, "endWith", { enumerable: true, get: function() { + return endWith_1.endWith; + } }); + var every_1 = require_every(); + Object.defineProperty(exports2, "every", { enumerable: true, get: function() { + return every_1.every; + } }); + var exhaust_1 = require_exhaust(); + Object.defineProperty(exports2, "exhaust", { enumerable: true, get: function() { + return exhaust_1.exhaust; + } }); + var exhaustAll_1 = require_exhaustAll(); + Object.defineProperty(exports2, "exhaustAll", { enumerable: true, get: function() { + return exhaustAll_1.exhaustAll; + } }); + var exhaustMap_1 = require_exhaustMap(); + Object.defineProperty(exports2, "exhaustMap", { enumerable: true, get: function() { + return exhaustMap_1.exhaustMap; + } }); + var expand_1 = require_expand2(); + Object.defineProperty(exports2, "expand", { enumerable: true, get: function() { + return expand_1.expand; + } }); + var filter_1 = require_filter2(); + Object.defineProperty(exports2, "filter", { enumerable: true, get: function() { + return filter_1.filter; + } }); + var finalize_1 = require_finalize(); + Object.defineProperty(exports2, "finalize", { enumerable: true, get: function() { + return finalize_1.finalize; + } }); + var find_1 = require_find(); + Object.defineProperty(exports2, "find", { enumerable: true, get: function() { + return find_1.find; + } }); + var findIndex_1 = require_findIndex(); + Object.defineProperty(exports2, "findIndex", { enumerable: true, get: function() { + return findIndex_1.findIndex; + } }); + var first_1 = require_first(); + Object.defineProperty(exports2, "first", { enumerable: true, get: function() { + return first_1.first; + } }); + var groupBy_1 = require_groupBy(); + Object.defineProperty(exports2, "groupBy", { enumerable: true, get: function() { + return groupBy_1.groupBy; + } }); + var ignoreElements_1 = require_ignoreElements(); + Object.defineProperty(exports2, "ignoreElements", { enumerable: true, get: function() { + return ignoreElements_1.ignoreElements; + } }); + var isEmpty_1 = require_isEmpty(); + Object.defineProperty(exports2, "isEmpty", { enumerable: true, get: function() { + return isEmpty_1.isEmpty; + } }); + var last_1 = require_last(); + Object.defineProperty(exports2, "last", { enumerable: true, get: function() { + return last_1.last; + } }); + var map_1 = require_map(); + Object.defineProperty(exports2, "map", { enumerable: true, get: function() { + return map_1.map; + } }); + var mapTo_1 = require_mapTo(); + Object.defineProperty(exports2, "mapTo", { enumerable: true, get: function() { + return mapTo_1.mapTo; + } }); + var materialize_1 = require_materialize(); + Object.defineProperty(exports2, "materialize", { enumerable: true, get: function() { + return materialize_1.materialize; + } }); + var max_1 = require_max(); + Object.defineProperty(exports2, "max", { enumerable: true, get: function() { + return max_1.max; + } }); + var merge_1 = require_merge2(); + Object.defineProperty(exports2, "merge", { enumerable: true, get: function() { + return merge_1.merge; + } }); + var mergeAll_1 = require_mergeAll(); + Object.defineProperty(exports2, "mergeAll", { enumerable: true, get: function() { + return mergeAll_1.mergeAll; + } }); + var flatMap_1 = require_flatMap(); + Object.defineProperty(exports2, "flatMap", { enumerable: true, get: function() { + return flatMap_1.flatMap; + } }); + var mergeMap_1 = require_mergeMap(); + Object.defineProperty(exports2, "mergeMap", { enumerable: true, get: function() { + return mergeMap_1.mergeMap; + } }); + var mergeMapTo_1 = require_mergeMapTo(); + Object.defineProperty(exports2, "mergeMapTo", { enumerable: true, get: function() { + return mergeMapTo_1.mergeMapTo; + } }); + var mergeScan_1 = require_mergeScan(); + Object.defineProperty(exports2, "mergeScan", { enumerable: true, get: function() { + return mergeScan_1.mergeScan; + } }); + var mergeWith_1 = require_mergeWith(); + Object.defineProperty(exports2, "mergeWith", { enumerable: true, get: function() { + return mergeWith_1.mergeWith; + } }); + var min_1 = require_min3(); + Object.defineProperty(exports2, "min", { enumerable: true, get: function() { + return min_1.min; + } }); + var multicast_1 = require_multicast(); + Object.defineProperty(exports2, "multicast", { enumerable: true, get: function() { + return multicast_1.multicast; + } }); + var observeOn_1 = require_observeOn(); + Object.defineProperty(exports2, "observeOn", { enumerable: true, get: function() { + return observeOn_1.observeOn; + } }); + var onErrorResumeNextWith_1 = require_onErrorResumeNextWith(); + Object.defineProperty(exports2, "onErrorResumeNext", { enumerable: true, get: function() { + return onErrorResumeNextWith_1.onErrorResumeNext; + } }); + var pairwise_1 = require_pairwise(); + Object.defineProperty(exports2, "pairwise", { enumerable: true, get: function() { + return pairwise_1.pairwise; + } }); + var partition_1 = require_partition2(); + Object.defineProperty(exports2, "partition", { enumerable: true, get: function() { + return partition_1.partition; + } }); + var pluck_1 = require_pluck(); + Object.defineProperty(exports2, "pluck", { enumerable: true, get: function() { + return pluck_1.pluck; + } }); + var publish_1 = require_publish(); + Object.defineProperty(exports2, "publish", { enumerable: true, get: function() { + return publish_1.publish; + } }); + var publishBehavior_1 = require_publishBehavior(); + Object.defineProperty(exports2, "publishBehavior", { enumerable: true, get: function() { + return publishBehavior_1.publishBehavior; + } }); + var publishLast_1 = require_publishLast(); + Object.defineProperty(exports2, "publishLast", { enumerable: true, get: function() { + return publishLast_1.publishLast; + } }); + var publishReplay_1 = require_publishReplay(); + Object.defineProperty(exports2, "publishReplay", { enumerable: true, get: function() { + return publishReplay_1.publishReplay; + } }); + var race_1 = require_race2(); + Object.defineProperty(exports2, "race", { enumerable: true, get: function() { + return race_1.race; + } }); + var raceWith_1 = require_raceWith(); + Object.defineProperty(exports2, "raceWith", { enumerable: true, get: function() { + return raceWith_1.raceWith; + } }); + var reduce_1 = require_reduce(); + Object.defineProperty(exports2, "reduce", { enumerable: true, get: function() { + return reduce_1.reduce; + } }); + var repeat_1 = require_repeat(); + Object.defineProperty(exports2, "repeat", { enumerable: true, get: function() { + return repeat_1.repeat; + } }); + var repeatWhen_1 = require_repeatWhen(); + Object.defineProperty(exports2, "repeatWhen", { enumerable: true, get: function() { + return repeatWhen_1.repeatWhen; + } }); + var retry_1 = require_retry(); + Object.defineProperty(exports2, "retry", { enumerable: true, get: function() { + return retry_1.retry; + } }); + var retryWhen_1 = require_retryWhen(); + Object.defineProperty(exports2, "retryWhen", { enumerable: true, get: function() { + return retryWhen_1.retryWhen; + } }); + var refCount_1 = require_refCount(); + Object.defineProperty(exports2, "refCount", { enumerable: true, get: function() { + return refCount_1.refCount; + } }); + var sample_1 = require_sample(); + Object.defineProperty(exports2, "sample", { enumerable: true, get: function() { + return sample_1.sample; + } }); + var sampleTime_1 = require_sampleTime(); + Object.defineProperty(exports2, "sampleTime", { enumerable: true, get: function() { + return sampleTime_1.sampleTime; + } }); + var scan_1 = require_scan(); + Object.defineProperty(exports2, "scan", { enumerable: true, get: function() { + return scan_1.scan; + } }); + var sequenceEqual_1 = require_sequenceEqual(); + Object.defineProperty(exports2, "sequenceEqual", { enumerable: true, get: function() { + return sequenceEqual_1.sequenceEqual; + } }); + var share_1 = require_share(); + Object.defineProperty(exports2, "share", { enumerable: true, get: function() { + return share_1.share; + } }); + var shareReplay_1 = require_shareReplay(); + Object.defineProperty(exports2, "shareReplay", { enumerable: true, get: function() { + return shareReplay_1.shareReplay; + } }); + var single_1 = require_single(); + Object.defineProperty(exports2, "single", { enumerable: true, get: function() { + return single_1.single; + } }); + var skip_1 = require_skip(); + Object.defineProperty(exports2, "skip", { enumerable: true, get: function() { + return skip_1.skip; + } }); + var skipLast_1 = require_skipLast(); + Object.defineProperty(exports2, "skipLast", { enumerable: true, get: function() { + return skipLast_1.skipLast; + } }); + var skipUntil_1 = require_skipUntil(); + Object.defineProperty(exports2, "skipUntil", { enumerable: true, get: function() { + return skipUntil_1.skipUntil; + } }); + var skipWhile_1 = require_skipWhile(); + Object.defineProperty(exports2, "skipWhile", { enumerable: true, get: function() { + return skipWhile_1.skipWhile; + } }); + var startWith_1 = require_startWith(); + Object.defineProperty(exports2, "startWith", { enumerable: true, get: function() { + return startWith_1.startWith; + } }); + var subscribeOn_1 = require_subscribeOn(); + Object.defineProperty(exports2, "subscribeOn", { enumerable: true, get: function() { + return subscribeOn_1.subscribeOn; + } }); + var switchAll_1 = require_switchAll(); + Object.defineProperty(exports2, "switchAll", { enumerable: true, get: function() { + return switchAll_1.switchAll; + } }); + var switchMap_1 = require_switchMap(); + Object.defineProperty(exports2, "switchMap", { enumerable: true, get: function() { + return switchMap_1.switchMap; + } }); + var switchMapTo_1 = require_switchMapTo(); + Object.defineProperty(exports2, "switchMapTo", { enumerable: true, get: function() { + return switchMapTo_1.switchMapTo; + } }); + var switchScan_1 = require_switchScan(); + Object.defineProperty(exports2, "switchScan", { enumerable: true, get: function() { + return switchScan_1.switchScan; + } }); + var take_1 = require_take(); + Object.defineProperty(exports2, "take", { enumerable: true, get: function() { + return take_1.take; + } }); + var takeLast_1 = require_takeLast(); + Object.defineProperty(exports2, "takeLast", { enumerable: true, get: function() { + return takeLast_1.takeLast; + } }); + var takeUntil_1 = require_takeUntil(); + Object.defineProperty(exports2, "takeUntil", { enumerable: true, get: function() { + return takeUntil_1.takeUntil; + } }); + var takeWhile_1 = require_takeWhile(); + Object.defineProperty(exports2, "takeWhile", { enumerable: true, get: function() { + return takeWhile_1.takeWhile; + } }); + var tap_1 = require_tap(); + Object.defineProperty(exports2, "tap", { enumerable: true, get: function() { + return tap_1.tap; + } }); + var throttle_1 = require_throttle(); + Object.defineProperty(exports2, "throttle", { enumerable: true, get: function() { + return throttle_1.throttle; + } }); + var throttleTime_1 = require_throttleTime(); + Object.defineProperty(exports2, "throttleTime", { enumerable: true, get: function() { + return throttleTime_1.throttleTime; + } }); + var throwIfEmpty_1 = require_throwIfEmpty(); + Object.defineProperty(exports2, "throwIfEmpty", { enumerable: true, get: function() { + return throwIfEmpty_1.throwIfEmpty; + } }); + var timeInterval_1 = require_timeInterval(); + Object.defineProperty(exports2, "timeInterval", { enumerable: true, get: function() { + return timeInterval_1.timeInterval; + } }); + var timeout_1 = require_timeout(); + Object.defineProperty(exports2, "timeout", { enumerable: true, get: function() { + return timeout_1.timeout; + } }); + var timeoutWith_1 = require_timeoutWith(); + Object.defineProperty(exports2, "timeoutWith", { enumerable: true, get: function() { + return timeoutWith_1.timeoutWith; + } }); + var timestamp_1 = require_timestamp(); + Object.defineProperty(exports2, "timestamp", { enumerable: true, get: function() { + return timestamp_1.timestamp; + } }); + var toArray_1 = require_toArray(); + Object.defineProperty(exports2, "toArray", { enumerable: true, get: function() { + return toArray_1.toArray; + } }); + var window_1 = require_window(); + Object.defineProperty(exports2, "window", { enumerable: true, get: function() { + return window_1.window; + } }); + var windowCount_1 = require_windowCount(); + Object.defineProperty(exports2, "windowCount", { enumerable: true, get: function() { + return windowCount_1.windowCount; + } }); + var windowTime_1 = require_windowTime(); + Object.defineProperty(exports2, "windowTime", { enumerable: true, get: function() { + return windowTime_1.windowTime; + } }); + var windowToggle_1 = require_windowToggle(); + Object.defineProperty(exports2, "windowToggle", { enumerable: true, get: function() { + return windowToggle_1.windowToggle; + } }); + var windowWhen_1 = require_windowWhen(); + Object.defineProperty(exports2, "windowWhen", { enumerable: true, get: function() { + return windowWhen_1.windowWhen; + } }); + var withLatestFrom_1 = require_withLatestFrom(); + Object.defineProperty(exports2, "withLatestFrom", { enumerable: true, get: function() { + return withLatestFrom_1.withLatestFrom; + } }); + var zip_1 = require_zip3(); + Object.defineProperty(exports2, "zip", { enumerable: true, get: function() { + return zip_1.zip; + } }); + var zipAll_1 = require_zipAll(); + Object.defineProperty(exports2, "zipAll", { enumerable: true, get: function() { + return zipAll_1.zipAll; + } }); + var zipWith_1 = require_zipWith(); + Object.defineProperty(exports2, "zipWith", { enumerable: true, get: function() { + return zipWith_1.zipWith; + } }); + } + }); + + // ../../node_modules/@open-web3/scanner/GenericEvent.js + var require_GenericEvent = __commonJS({ + "../../node_modules/@open-web3/scanner/GenericEvent.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.default = void 0; + var _types = require_cjs10(); + var toHump = (name6) => { + return name6.replace(/_(\w)/g, (_, l15) => l15.toUpperCase()); + }; + var GenericEvent2 = class extends _types.GenericEvent { + get argsDef() { + try { + var _$exec; + const meta2 = this.meta.toJSON(); + const args = meta2 === null || meta2 === void 0 ? void 0 : meta2.args; + if (!args || !args.length) { + return {}; + } + const doc = meta2.documentation.join("\n").replace(/\\/g, ""); + const def = (_$exec = /\[([\w\s,]*)\]/.exec(doc)) === null || _$exec === void 0 ? void 0 : _$exec[1].split(",").map((s) => s.trim()); + const data = this.data.toJSON(); + if (!def || def.length !== args.length || def.length !== data.length) { + return null; + } + return data.reduce((result, curr, index) => { + const name6 = toHump(def[index]); + result[name6] = curr; + return result; + }, {}); + } catch { + return null; + } + } + }; + exports2.default = GenericEvent2; + } + }); + + // ../../node_modules/@open-web3/scanner/Scanner.js + var require_Scanner = __commonJS({ + "../../node_modules/@open-web3/scanner/Scanner.js"(exports2) { + "use strict"; + var _interopRequireDefault = require_interopRequireDefault(); + exports2.__esModule = true; + exports2.default = void 0; + var _defineProperty2 = _interopRequireDefault(require_defineProperty()); + var _apiDerive = require_cjs12(); + var _types = require_cjs10(); + var _typesKnown = require_cjs13(); + var _util = require_cjs3(); + var _rxjs = require_cjs7(); + var _operators = require_operators(); + var _GenericEvent = _interopRequireDefault(require_GenericEvent()); + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function(sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), true).forEach(function(key2) { + (0, _defineProperty2.default)(target, key2, source[key2]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) { + Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2)); + }); + } + return target; + } + var Scanner = class { + constructor(options) { + this.rpcProvider = void 0; + this.knownTypes = void 0; + this.metadataRequest = void 0; + this.wsProvider = void 0; + this.chainInfo = void 0; + this.wsProvider = options.wsProvider; + this.rpcProvider = options.rpcProvider || options.wsProvider; + this.knownTypes = { + types: options.types, + typesAlias: options.typesAlias, + typesBundle: options.typesBundle, + typesChain: options.typesChain, + typesSpec: options.typesSpec + }; + this.chainInfo = {}; + this.metadataRequest = {}; + } + createMethodSubscribe(methods) { + for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + params[_key - 1] = arguments[_key]; + } + const [updateType, subMethod, unsubMethod] = methods; + return new _rxjs.Observable((observer) => { + let subscriptionPromise = Promise.resolve(); + const errorHandler = (error) => { + observer.error(error); + }; + try { + const update3 = (error, result) => { + if (error) { + return; + } + observer.next(result); + }; + subscriptionPromise = this.wsProvider.subscribe(updateType, subMethod, params, update3).catch((error) => errorHandler(error)); + } catch (error) { + errorHandler(error); + } + return () => { + subscriptionPromise.then((subscriptionId) => (0, _util.isNumber)(subscriptionId) ? this.wsProvider.unsubscribe(updateType, unsubMethod, subscriptionId) : Promise.resolve(false)); + }; + }); + } + async getBlockDetail(_blockAt) { + var _extrinsics$, _extrinsics$$args; + const blockAt = await this.getBlockAt(_blockAt); + const chainInfo = await this.getChainInfo(blockAt); + const requestes = []; + requestes.push(this.getEvents(blockAt, chainInfo).then((eventRecords) => eventRecords.map((event, index) => this.getEventData(event, index)))); + const blockRaw = await this.rpcProvider.send("chain_getBlock", [blockAt.blockHash]); + requestes.push(this.getHeader(blockRaw.block.header, blockAt, chainInfo).then((header) => { + var _header$author; + return (_header$author = header.author) === null || _header$author === void 0 ? void 0 : _header$author.toString(); + })); + const [events, author] = await Promise.all(requestes); + const extrinsics = blockRaw.block.extrinsics.map((extrinsic, index) => { + const event = [...events].reverse().find((_ref) => { + let { + phaseIndex + } = _ref; + return phaseIndex === index; + }); + const result = event && (event.method === "ExtrinsicFailed" || event.method === "ExtrinsicSuccess") ? event.method : ""; + return _objectSpread({ + index, + result + }, this.decodeTx(extrinsic, blockAt, chainInfo)); + }); + const timestamp = extrinsics === null || extrinsics === void 0 ? void 0 : (_extrinsics$ = extrinsics[0]) === null || _extrinsics$ === void 0 ? void 0 : (_extrinsics$$args = _extrinsics$.args) === null || _extrinsics$$args === void 0 ? void 0 : _extrinsics$$args.now; + return { + raw: blockRaw, + number: Number(blockRaw.block.header.number), + hash: blockAt.blockHash, + timestamp, + author, + events, + extrinsics, + chainInfo + }; + } + async getHeader(header, _blockAt, meta2) { + const validators = await this.getSessionValidators(_blockAt); + return (0, _apiDerive.createHeaderExtended)(meta2.registry, meta2.registry.createType("Header", header), validators); + } + async getRuntimeVersion(blockHash) { + const [runtimeVesion, chainName] = await Promise.all([this.rpcProvider.send("state_getRuntimeVersion", [blockHash]), this.rpcProvider.send("system_chain", [])]); + return _objectSpread(_objectSpread({}, runtimeVesion), {}, { + chainName + }); + } + async getBlockHash(at) { + if (typeof at === "number" && !isNaN(at) && !(0, _util.isHex)(at)) { + const blockHash = this.rpcProvider.send("chain_getBlockHash", [at]); + return blockHash; + } else { + return at; + } + } + async getBlockAt(blockAt) { + if (blockAt !== null && blockAt !== void 0 && blockAt.blockHash && (blockAt === null || blockAt === void 0 ? void 0 : blockAt.blockNumber) !== void 0) { + return { + blockHash: blockAt.blockHash, + blockNumber: blockAt.blockNumber + }; + } + if (!blockAt) { + const header = await this.rpcProvider.send("chain_getHeader", []); + const blockNumber = Number(header.number); + const blockHash = await this.rpcProvider.send("chain_getBlockHash", []); + return { + blockNumber, + blockHash + }; + } else if (blockAt.blockNumber !== void 0) { + const blockHash = await this.rpcProvider.send("chain_getBlockHash", [blockAt.blockNumber]); + return { + blockNumber: blockAt.blockNumber, + blockHash + }; + } else if (blockAt.blockHash) { + const header = await this.rpcProvider.send("chain_getHeader", [blockAt.blockHash]); + return { + blockNumber: Number(header.number), + blockHash: blockAt.blockHash + }; + } else { + throw new Error("expect blockHash or blockNumber"); + } + } + async getParentHash(_blockHash) { + const header = await this.rpcProvider.send("chain_getHeader", _blockHash ? [_blockHash] : []); + return header.parentHash; + } + getSpecTypes(version23) { + const types2 = (0, _typesKnown.getSpecTypes)({ + knownTypes: this.knownTypes + }, version23.chainName, version23.specName, version23.specVersion); + return _objectSpread(_objectSpread({}, types2), {}, { + GenericEvent: _GenericEvent.default + }); + } + async getChainInfo(_blockAt) { + const { + blockHash, + blockNumber + } = await this.getBlockAt(_blockAt); + let hashForMetadata = await this.getParentHash(blockHash); + if (blockNumber === 0) { + hashForMetadata = blockHash; + } + const runtimeVersion = await this.getRuntimeVersion(hashForMetadata); + const cacheKey = `${runtimeVersion.specName}/${runtimeVersion.specVersion}`; + if (!this.chainInfo[cacheKey]) { + const registry = new _types.TypeRegistry(); + registry.register(this.getSpecTypes(runtimeVersion)); + const properties = await this.rpcProvider.send("system_properties", []); + registry.setChainProperties(registry.createType("ChainProperties", properties)); + registry.knownTypes.typesAlias = this.knownTypes.typesAlias; + if (!this.metadataRequest[cacheKey]) { + this.metadataRequest[cacheKey] = this.rpcProvider.send("state_getMetadata", [hashForMetadata]).then((rpcdata) => { + const metadata = new _types.Metadata(registry, rpcdata); + registry.setMetadata(metadata); + return { + id: cacheKey, + min: blockNumber, + max: blockNumber, + bytes: rpcdata, + metadata: (0, _types.expandMetadata)(registry, metadata), + registry, + runtimeVersion + }; + }); + } + this.chainInfo[cacheKey] = await this.metadataRequest[cacheKey]; + } else { + this.chainInfo[cacheKey].min = Math.min(this.chainInfo[cacheKey].min, blockNumber); + this.chainInfo[cacheKey].max = Math.max(this.chainInfo[cacheKey].max, blockNumber); + } + return this.chainInfo[cacheKey]; + } + async getSessionValidators(_blockAt) { + const { + metadata, + registry + } = await this.getChainInfo(_blockAt); + if (!metadata.query.session) + return []; + const storageKey = new _types.StorageKey(registry, metadata.query.session.validators); + return this.getStorageValue(storageKey, _blockAt); + } + async getEvents(_blockAt, meta2) { + const storageKey = new _types.StorageKey(meta2.registry, meta2.metadata.query.system.events); + return this.getStorageValue(storageKey, _blockAt); + } + getEventData(event, index) { + var _event$event$meta$toJ, _event$event$meta$toJ2; + const documentation = (_event$event$meta$toJ = event.event.meta.toJSON()) === null || _event$event$meta$toJ === void 0 ? void 0 : (_event$event$meta$toJ2 = _event$event$meta$toJ.documentation) === null || _event$event$meta$toJ2 === void 0 ? void 0 : _event$event$meta$toJ2.join("\n"); + return { + index, + doc: documentation, + bytes: event.toHex(), + section: event.event.section, + method: event.event.method, + phaseType: event.phase.type, + phaseIndex: event.phase.isNone ? null : event.phase.value.toNumber(), + args: event.event.data.toJSON(), + argsDef: event.event.argsDef + }; + } + async getStorageValue(storageKey, _blockAt) { + const blockAt = await this.getBlockAt(_blockAt); + const { + registry + } = await this.getChainInfo(_blockAt); + const raw = await this.rpcProvider.send("state_getStorage", [storageKey.toHex(), blockAt.blockHash]); + return registry.createType(storageKey.outputType, raw, true); + } + decodeTx(txData, _blockAt, meta2) { + const extrinsic = new _types.GenericExtrinsic(meta2.registry, txData); + const { + callIndex, + args + } = extrinsic.method.toJSON(); + return { + bytes: txData, + hash: (0, _util.u8aToHex)(extrinsic.hash), + tip: extrinsic.tip.toString(), + nonce: extrinsic.nonce.toNumber(), + method: extrinsic.method.method, + section: extrinsic.method.section, + signer: extrinsic.isSigned ? extrinsic.signer.toString() : null, + callIndex, + args + }; + } + subscribeNewBlockNumber(confirmation) { + let newBlockNumber$; + if (confirmation === "finalize") { + newBlockNumber$ = this.createMethodSubscribe(["chain_finalizedHead", "chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads"]).pipe((0, _operators.map)((header) => Number(header.number))); + } else if (typeof confirmation === "number") { + newBlockNumber$ = this.createMethodSubscribe(["chain_newHead", "chain_subscribeNewHead", "chain_unsubscribeNewHead"]).pipe((0, _operators.map)((header) => Number(header.number) - confirmation >= 0 ? Number(header.number) - confirmation : 0)); + } else { + newBlockNumber$ = this.createMethodSubscribe(["chain_newHead", "chain_subscribeNewHead", "chain_unsubscribeNewHead"]).pipe((0, _operators.map)((header) => Number(header.number))); + } + return newBlockNumber$.pipe((0, _operators.shareReplay)({ + bufferSize: 1, + refCount: true + }), (0, _operators.pairwise)(), (0, _operators.mergeMap)((_ref2) => { + let [pre2, current] = _ref2; + if (pre2 >= current) + return (0, _rxjs.of)(current); + return (0, _rxjs.of)(...[...Array(current - pre2).keys()].map((i) => i + 1 + pre2)); + })); + } + subscribe(options) { + if (options === void 0) { + options = {}; + } + const { + start, + end, + concurrent = 10, + confirmation + } = options; + let blockNumber$; + if (start !== void 0 && end !== void 0) { + blockNumber$ = (0, _rxjs.range)(start, end - start + 1); + } else if (start !== void 0 && end === void 0) { + const newBlockNumber$ = this.subscribeNewBlockNumber(confirmation); + blockNumber$ = (0, _rxjs.from)(newBlockNumber$).pipe((0, _operators.take)(1), (0, _operators.switchMap)((lastestNumber) => { + return (0, _rxjs.concat)((0, _rxjs.range)(start, lastestNumber - start + 1), newBlockNumber$); + })); + } else { + blockNumber$ = this.subscribeNewBlockNumber(confirmation); + } + const getBlockDetail = (blockNumber) => { + return new _rxjs.Observable((subscriber) => { + this.getBlockDetail({ + blockNumber + }).then((data) => { + subscriber.next({ + blockNumber, + result: data, + error: null + }); + subscriber.complete(); + }).catch((error) => { + subscriber.error(error); + }); + }).pipe((0, _operators.timeout)(options.timeout || 6e4), (0, _operators.retryWhen)((errors2) => errors2.pipe((0, _operators.mergeMap)((error) => { + if (error.name !== "TimeoutError") { + return (0, _rxjs.throwError)(error); + } + return (0, _rxjs.timer)(5e3); + }))), (0, _operators.catchError)((err) => { + return (0, _rxjs.of)({ + blockNumber, + error: err, + result: null + }); + })); + }; + return blockNumber$.pipe((0, _operators.mergeMap)((value) => getBlockDetail(value), concurrent)); + } + }; + var _default = Scanner; + exports2.default = _default; + } + }); + + // ../../node_modules/@open-web3/scanner/index.js + var require_scanner = __commonJS({ + "../../node_modules/@open-web3/scanner/index.js"(exports2) { + "use strict"; + var _interopRequireDefault = require_interopRequireDefault(); + exports2.__esModule = true; + exports2.default = void 0; + var _Scanner = _interopRequireDefault(require_Scanner()); + var _default = _Scanner.default; + exports2.default = _default; + } + }); + + // ../../node_modules/@polkadot/api/cjs/packageInfo.js + var require_packageInfo19 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api/cjs/packageDetect.js + var require_packageDetect7 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo12(); + var packageInfo_2 = require_packageInfo15(); + var packageInfo_3 = require_packageInfo13(); + var packageInfo_4 = require_packageInfo14(); + var packageInfo_5 = require_packageInfo18(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo19(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_2.packageInfo, packageInfo_1.packageInfo, packageInfo_5.packageInfo, packageInfo_3.packageInfo, packageInfo_4.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/packageInfo.js + var require_packageInfo20 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/rpc-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/packageDetect.js + var require_packageDetect8 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo15(); + var packageInfo_2 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo20(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/rpc-core/cjs/types/jsonrpc.js + var require_jsonrpc2 = __commonJS({ + "../../node_modules/@polkadot/rpc-core/cjs/types/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/augment/jsonrpc.js + var require_jsonrpc3 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/augment/jsonrpc.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_jsonrpc2(); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/augment/index.js + var require_augment = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/augment/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_jsonrpc3(); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/bundle.js + var require_bundle10 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_augment(); + var packageInfo_js_1 = require_packageInfo20(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/rpc-augment/cjs/index.js + var require_cjs14 = __commonJS({ + "../../node_modules/@polkadot/rpc-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect8(); + tslib_1.__exportStar(require_bundle10(), exports2); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/detectOther.js + var require_detectOther4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/detectOther.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo4(); + var packageInfo_2 = require_packageInfo8(); + exports2.default = [packageInfo_1.packageInfo, packageInfo_2.packageInfo]; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/packageInfo.js + var require_packageInfo21 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/keyring", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/detectPackage.js + var require_detectPackage4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/detectPackage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var detectOther_js_1 = tslib_1.__importDefault(require_detectOther4()); + var packageInfo_js_1 = require_packageInfo21(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/defaults.js + var require_defaults4 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SEED_LENGTH = exports2.SEC_LENGTH = exports2.SALT_LENGTH = exports2.PUB_LENGTH = exports2.PKCS8_HEADER = exports2.PKCS8_DIVIDER = void 0; + exports2.PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]); + exports2.PKCS8_HEADER = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]); + exports2.PUB_LENGTH = 32; + exports2.SALT_LENGTH = 32; + exports2.SEC_LENGTH = 64; + exports2.SEED_LENGTH = 32; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/decode.js + var require_decode2 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/decode.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decodePair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var defaults_js_1 = require_defaults4(); + var SEED_OFFSET3 = defaults_js_1.PKCS8_HEADER.length; + function decodePair3(passphrase, encrypted, _encType) { + const encType = Array.isArray(_encType) || _encType === void 0 ? _encType : [_encType]; + const decrypted = (0, util_crypto_1.jsonDecryptData)(encrypted, passphrase, encType); + const header = decrypted.subarray(0, defaults_js_1.PKCS8_HEADER.length); + if (!(0, util_1.u8aEq)(header, defaults_js_1.PKCS8_HEADER)) { + throw new Error("Invalid Pkcs8 header found in body"); + } + let secretKey = decrypted.subarray(SEED_OFFSET3, SEED_OFFSET3 + defaults_js_1.SEC_LENGTH); + let divOffset = SEED_OFFSET3 + defaults_js_1.SEC_LENGTH; + let divider = decrypted.subarray(divOffset, divOffset + defaults_js_1.PKCS8_DIVIDER.length); + if (!(0, util_1.u8aEq)(divider, defaults_js_1.PKCS8_DIVIDER)) { + divOffset = SEED_OFFSET3 + defaults_js_1.SEED_LENGTH; + secretKey = decrypted.subarray(SEED_OFFSET3, divOffset); + divider = decrypted.subarray(divOffset, divOffset + defaults_js_1.PKCS8_DIVIDER.length); + if (!(0, util_1.u8aEq)(divider, defaults_js_1.PKCS8_DIVIDER)) { + throw new Error("Invalid Pkcs8 divider found in body"); + } + } + const pubOffset = divOffset + defaults_js_1.PKCS8_DIVIDER.length; + const publicKey = decrypted.subarray(pubOffset, pubOffset + defaults_js_1.PUB_LENGTH); + return { + publicKey, + secretKey + }; + } + exports2.decodePair = decodePair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/encode.js + var require_encode5 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/encode.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.encodePair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var defaults_js_1 = require_defaults4(); + function encodePair3({ publicKey, secretKey }, passphrase) { + if (!secretKey) { + throw new Error("Expected a valid secretKey to be passed to encode"); + } + const encoded = (0, util_1.u8aConcat)(defaults_js_1.PKCS8_HEADER, secretKey, defaults_js_1.PKCS8_DIVIDER, publicKey); + if (!passphrase) { + return encoded; + } + const { params, password, salt } = (0, util_crypto_1.scryptEncode)(passphrase); + const { encrypted, nonce } = (0, util_crypto_1.naclEncrypt)(encoded, password.subarray(0, 32)); + return (0, util_1.u8aConcat)((0, util_crypto_1.scryptToU8a)(salt, params), nonce, encrypted); + } + exports2.encodePair = encodePair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/toJson.js + var require_toJson = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/toJson.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.pairToJson = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + function pairToJson3(type, { address, meta: meta2 }, encoded, isEncrypted) { + return (0, util_1.objectSpread)((0, util_crypto_1.jsonEncryptFormat)(encoded, ["pkcs8", type], isEncrypted), { + address, + meta: meta2 + }); + } + exports2.pairToJson = pairToJson3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/index.js + var require_pair = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createPair = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var decode_js_1 = require_decode2(); + var encode_js_1 = require_encode5(); + var toJson_js_1 = require_toJson(); + var SIG_TYPE_NONE3 = new Uint8Array(); + var TYPE_FROM_SEED3 = { + ecdsa: util_crypto_1.secp256k1PairFromSeed, + ed25519: util_crypto_1.ed25519PairFromSeed, + ethereum: util_crypto_1.secp256k1PairFromSeed, + sr25519: util_crypto_1.sr25519PairFromSeed + }; + var TYPE_PREFIX3 = { + ecdsa: new Uint8Array([2]), + ed25519: new Uint8Array([0]), + ethereum: new Uint8Array([2]), + sr25519: new Uint8Array([1]) + }; + var TYPE_SIGNATURE3 = { + ecdsa: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, "blake2"), + ed25519: util_crypto_1.ed25519Sign, + ethereum: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, "keccak"), + sr25519: util_crypto_1.sr25519Sign + }; + var TYPE_ADDRESS3 = { + ecdsa: (p) => p.length > 32 ? (0, util_crypto_1.blake2AsU8a)(p) : p, + ed25519: (p) => p, + ethereum: (p) => p.length === 20 ? p : (0, util_crypto_1.keccakAsU8a)((0, util_crypto_1.secp256k1Expand)(p)), + sr25519: (p) => p + }; + function isLocked3(secretKey) { + return !secretKey || (0, util_1.u8aEmpty)(secretKey); + } + function vrfHash3(proof, context2, extra) { + return (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)(context2 || "", extra || "", proof)); + } + function createPair3({ toSS58, type }, { publicKey, secretKey }, meta2 = {}, encoded = null, encTypes) { + const decodePkcs8 = (passphrase, userEncoded) => { + const decoded = (0, decode_js_1.decodePair)(passphrase, userEncoded || encoded, encTypes); + if (decoded.secretKey.length === 64) { + publicKey = decoded.publicKey; + secretKey = decoded.secretKey; + } else { + const pair = TYPE_FROM_SEED3[type](decoded.secretKey); + publicKey = pair.publicKey; + secretKey = pair.secretKey; + } + }; + const recode = (passphrase) => { + isLocked3(secretKey) && encoded && decodePkcs8(passphrase, encoded); + encoded = (0, encode_js_1.encodePair)({ publicKey, secretKey }, passphrase); + encTypes = void 0; + return encoded; + }; + const encodeAddress4 = () => { + const raw = TYPE_ADDRESS3[type](publicKey); + return type === "ethereum" ? (0, util_crypto_1.ethereumEncode)(raw) : toSS58(raw); + }; + return { + get address() { + return encodeAddress4(); + }, + get addressRaw() { + const raw = TYPE_ADDRESS3[type](publicKey); + return type === "ethereum" ? raw.slice(-20) : raw; + }, + get isLocked() { + return isLocked3(secretKey); + }, + get meta() { + return meta2; + }, + get publicKey() { + return publicKey; + }, + get type() { + return type; + }, + decodePkcs8, + derive: (suri, meta3) => { + if (type === "ethereum") { + throw new Error("Unable to derive on this keypair"); + } else if (isLocked3(secretKey)) { + throw new Error("Cannot derive on a locked keypair"); + } + const { path } = (0, util_crypto_1.keyExtractPath)(suri); + const derived = (0, util_crypto_1.keyFromPath)({ publicKey, secretKey }, path, type); + return createPair3({ toSS58, type }, derived, meta3, null); + }, + encodePkcs8: (passphrase) => { + return recode(passphrase); + }, + lock: () => { + secretKey = new Uint8Array(); + }, + setMeta: (additional) => { + meta2 = (0, util_1.objectSpread)({}, meta2, additional); + }, + sign: (message, options = {}) => { + if (isLocked3(secretKey)) { + throw new Error("Cannot sign with a locked key pair"); + } + return (0, util_1.u8aConcat)(options.withType ? TYPE_PREFIX3[type] : SIG_TYPE_NONE3, TYPE_SIGNATURE3[type]((0, util_1.u8aToU8a)(message), { publicKey, secretKey })); + }, + toJson: (passphrase) => { + const address = ["ecdsa", "ethereum"].includes(type) ? publicKey.length === 20 ? (0, util_1.u8aToHex)(publicKey) : (0, util_1.u8aToHex)((0, util_crypto_1.secp256k1Compress)(publicKey)) : encodeAddress4(); + return (0, toJson_js_1.pairToJson)(type, { address, meta: meta2 }, recode(passphrase), !!passphrase); + }, + unlock: (passphrase) => { + return decodePkcs8(passphrase); + }, + verify: (message, signature2, signerPublic) => { + return (0, util_crypto_1.signatureVerify)(message, signature2, TYPE_ADDRESS3[type]((0, util_1.u8aToU8a)(signerPublic))).isValid; + }, + vrfSign: (message, context2, extra) => { + if (isLocked3(secretKey)) { + throw new Error("Cannot sign with a locked key pair"); + } + if (type === "sr25519") { + return (0, util_crypto_1.sr25519VrfSign)(message, { secretKey }, context2, extra); + } + const proof = TYPE_SIGNATURE3[type]((0, util_1.u8aToU8a)(message), { publicKey, secretKey }); + return (0, util_1.u8aConcat)(vrfHash3(proof, context2, extra), proof); + }, + vrfVerify: (message, vrfResult, signerPublic, context2, extra) => { + if (type === "sr25519") { + return (0, util_crypto_1.sr25519VrfVerify)(message, vrfResult, publicKey, context2, extra); + } + const result = (0, util_crypto_1.signatureVerify)(message, (0, util_1.u8aConcat)(TYPE_PREFIX3[type], vrfResult.subarray(32)), TYPE_ADDRESS3[type]((0, util_1.u8aToU8a)(signerPublic))); + return result.isValid && (0, util_1.u8aEq)(vrfResult.subarray(0, 32), vrfHash3(vrfResult.subarray(32), context2, extra)); + } + }; + } + exports2.createPair = createPair3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/defaults.js + var require_defaults5 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DEV_SEED = exports2.DEV_PHRASE = void 0; + exports2.DEV_PHRASE = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"; + exports2.DEV_SEED = "0xfac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e"; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pairs.js + var require_pairs2 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Pairs = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var Pairs3 = class { + __internal__map = {}; + add(pair) { + this.__internal__map[(0, util_crypto_1.decodeAddress)(pair.address).toString()] = pair; + return pair; + } + all() { + return Object.values(this.__internal__map); + } + get(address) { + const pair = this.__internal__map[(0, util_crypto_1.decodeAddress)(address).toString()]; + if (!pair) { + throw new Error(`Unable to retrieve keypair '${(0, util_1.isU8a)(address) || (0, util_1.isHex)(address) ? (0, util_1.u8aToHex)((0, util_1.u8aToU8a)(address)) : address}'`); + } + return pair; + } + remove(address) { + delete this.__internal__map[(0, util_crypto_1.decodeAddress)(address).toString()]; + } + }; + exports2.Pairs = Pairs3; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/keyring.js + var require_keyring = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/keyring.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Keyring = void 0; + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_pair(); + var defaults_js_1 = require_defaults5(); + var pairs_js_1 = require_pairs2(); + var PairFromSeed2 = { + ecdsa: (seed) => (0, util_crypto_1.secp256k1PairFromSeed)(seed), + ed25519: (seed) => (0, util_crypto_1.ed25519PairFromSeed)(seed), + ethereum: (seed) => (0, util_crypto_1.secp256k1PairFromSeed)(seed), + sr25519: (seed) => (0, util_crypto_1.sr25519PairFromSeed)(seed) + }; + function pairToPublic3({ publicKey }) { + return publicKey; + } + var Keyring4 = class { + __internal__pairs; + __internal__type; + __internal__ss58; + decodeAddress = util_crypto_1.decodeAddress; + constructor(options = {}) { + options.type = options.type || "ed25519"; + if (!["ecdsa", "ethereum", "ed25519", "sr25519"].includes(options.type || "undefined")) { + throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${options.type || "unknown"}`); + } + this.__internal__pairs = new pairs_js_1.Pairs(); + this.__internal__ss58 = options.ss58Format; + this.__internal__type = options.type; + } + get pairs() { + return this.getPairs(); + } + get publicKeys() { + return this.getPublicKeys(); + } + get type() { + return this.__internal__type; + } + addPair(pair) { + return this.__internal__pairs.add(pair); + } + addFromAddress(address, meta2 = {}, encoded = null, type = this.type, ignoreChecksum, encType) { + const publicKey = this.decodeAddress(address, ignoreChecksum); + return this.addPair((0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, { publicKey, secretKey: new Uint8Array() }, meta2, encoded, encType)); + } + addFromJson(json, ignoreChecksum) { + return this.addPair(this.createFromJson(json, ignoreChecksum)); + } + addFromMnemonic(mnemonic, meta2 = {}, type = this.type) { + return this.addFromUri(mnemonic, meta2, type); + } + addFromPair(pair, meta2 = {}, type = this.type) { + return this.addPair(this.createFromPair(pair, meta2, type)); + } + addFromSeed(seed, meta2 = {}, type = this.type) { + return this.addPair((0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, PairFromSeed2[type](seed), meta2, null)); + } + addFromUri(suri, meta2 = {}, type = this.type) { + return this.addPair(this.createFromUri(suri, meta2, type)); + } + createFromJson({ address, encoded, encoding: { content, type, version: version23 }, meta: meta2 }, ignoreChecksum) { + if (version23 === "3" && content[0] !== "pkcs8") { + throw new Error(`Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); + } + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; + const encType = !Array.isArray(type) ? [type] : type; + if (!["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType)) { + throw new Error(`Unknown crypto type ${cryptoType}`); + } + const publicKey = (0, util_1.isHex)(address) ? (0, util_1.hexToU8a)(address) : this.decodeAddress(address, ignoreChecksum); + const decoded = (0, util_1.isHex)(encoded) ? (0, util_1.hexToU8a)(encoded) : (0, util_crypto_1.base64Decode)(encoded); + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type: cryptoType }, { publicKey, secretKey: new Uint8Array() }, meta2, decoded, encType); + } + createFromPair(pair, meta2 = {}, type = this.type) { + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, pair, meta2, null); + } + createFromUri(_suri, meta2 = {}, type = this.type) { + const suri = _suri.startsWith("//") ? `${defaults_js_1.DEV_PHRASE}${_suri}` : _suri; + const { derivePath, password, path, phrase } = (0, util_crypto_1.keyExtractSuri)(suri); + let seed; + const isPhraseHex = (0, util_1.isHex)(phrase, 256); + if (isPhraseHex) { + seed = (0, util_1.hexToU8a)(phrase); + } else { + const parts = phrase.split(" "); + if ([12, 15, 18, 21, 24].includes(parts.length)) { + seed = type === "ethereum" ? (0, util_crypto_1.mnemonicToLegacySeed)(phrase, "", false, 64) : (0, util_crypto_1.mnemonicToMiniSecret)(phrase, password); + } else { + if (phrase.length > 32) { + throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes"); + } + seed = (0, util_1.stringToU8a)(phrase.padEnd(32)); + } + } + const derived = type === "ethereum" ? isPhraseHex ? PairFromSeed2[type](seed) : (0, util_crypto_1.hdEthereum)(seed, derivePath.substring(1)) : (0, util_crypto_1.keyFromPath)(PairFromSeed2[type](seed), path, type); + return (0, index_js_1.createPair)({ toSS58: this.encodeAddress, type }, derived, meta2, null); + } + encodeAddress = (address, ss58Format) => { + return this.type === "ethereum" ? (0, util_crypto_1.ethereumEncode)(address) : (0, util_crypto_1.encodeAddress)(address, ss58Format ?? this.__internal__ss58); + }; + getPair(address) { + return this.__internal__pairs.get(address); + } + getPairs() { + return this.__internal__pairs.all(); + } + getPublicKeys() { + return this.__internal__pairs.all().map(pairToPublic3); + } + removePair(address) { + this.__internal__pairs.remove(address); + } + setSS58Format(ss58) { + this.__internal__ss58 = ss58; + } + toJson(address, passphrase) { + return this.__internal__pairs.get(address).toJson(passphrase); + } + }; + exports2.Keyring = Keyring4; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/testing.js + var require_testing = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/testing.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestKeyring = exports2.PAIRSETHEREUM = exports2.PAIRSSR25519 = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_pair(); + var keyring_js_1 = require_keyring(); + exports2.PAIRSSR25519 = [ + { + p: "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", + s: "0x98319d4ff8a9508c4bb0cf0b5a78d760a0b2082c02775e6e82370816fedfff48925a225d97aa00682d6a59b95b18780c10d7032336e88f3442b42361f4a66011", + seed: "Alice", + type: "sr25519" + }, + { + p: "0xbe5ddb1579b72e84524fc29e78609e3caf42e85aa118ebfe0b0ad404b5bdd25f", + s: "0xe8da6c9d810e020f5e3c7f5af2dea314cbeaa0d72bc6421e92c0808a0c584a6046ab28e97c3ffc77fe12b5a4d37e8cd4afbfebbf2391ffc7cb07c0f38c023efd", + seed: "Alice//stash", + type: "sr25519" + }, + { + p: "0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48", + s: "0x081ff694633e255136bdb456c20a5fc8fed21f8b964c11bb17ff534ce80ebd5941ae88f85d0c1bfc37be41c904e1dfc01de8c8067b0d6d5df25dd1ac0894a325", + seed: "Bob", + type: "sr25519" + }, + { + p: "0xfe65717dad0447d715f660a0a58411de509b42e6efb8375f562f58a554d5860e", + s: "0xc006507cdfc267a21532394c49ca9b754ca71de21e15a1cdf807c7ceab6d0b6c3ed408d9d35311540dcd54931933e67cf1ea10d46f75408f82b789d9bd212fde", + seed: "Bob//stash", + type: "sr25519" + }, + { + p: "0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22", + s: "0xa8f2d83016052e5d6d77b2f6fd5d59418922a09024cda701b3c34369ec43a7668faf12ff39cd4e5d92bb773972f41a7a5279ebc2ed92264bed8f47d344f8f18c", + seed: "Charlie", + type: "sr25519" + }, + { + p: "0x306721211d5404bd9da88e0204360a1a9ab8b87c66c1bc2fcdd37f3c2222cc20", + s: "0x20e05482ca4677e0edbc58ae9a3a59f6ed3b1a9484ba17e64d6fe8688b2b7b5d108c4487b9323b98b11fe36cb301b084e920f7b7895536809a6d62a451b25568", + seed: "Dave", + type: "sr25519" + }, + { + p: "0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e", + s: "0x683576abfd5dc35273e4264c23095a1bf21c14517bece57c7f0cc5c0ed4ce06a3dbf386b7828f348abe15d76973a72009e6ef86a5c91db2990cb36bb657c6587", + seed: "Eve", + type: "sr25519" + }, + { + p: "0x1cbd2d43530a44705ad088af313e18f80b53ef16b36177cd4b77b846f2a5f07c", + s: "0xb835c20f450079cf4f513900ae9faf8df06ad86c681884122c752a4b2bf74d4303e4f21bc6cc62bb4eeed5a9cce642c25e2d2ac1464093b50f6196d78e3a7426", + seed: "Ferdie", + type: "sr25519" + } + ]; + exports2.PAIRSETHEREUM = [ + { + name: "Alith", + p: "0x02509540919faacf9ab52146c9aa40db68172d83777250b28e4679176e49ccdd9f", + s: "0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133", + type: "ethereum" + }, + { + name: "Baltathar", + p: "0x033bc19e36ff1673910575b6727a974a9abd80c9a875d41ab3e2648dbfb9e4b518", + s: "0x8075991ce870b93a8870eca0c0f91913d12f47948ca0fd25b49c6fa7cdbeee8b", + type: "ethereum" + }, + { + name: "Charleth", + p: "0x0234637bdc0e89b5d46543bcbf8edff329d2702bc995e27e9af4b1ba009a3c2a5e", + s: "0x0b6e18cafb6ed99687ec547bd28139cafdd2bffe70e6b688025de6b445aa5c5b", + type: "ethereum" + }, + { + name: "Dorothy", + p: "0x02a00d60b2b408c2a14c5d70cdd2c205db8985ef737a7e55ad20ea32cc9e7c417c", + s: "0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68", + type: "ethereum" + }, + { + name: "Ethan", + p: "0x025cdc005b752651cd3f728fb9192182acb3a9c89e19072cbd5b03f3ee1f1b3ffa", + s: "0x7dce9bc8babb68fec1409be38c8e1a52650206a7ed90ff956ae8a6d15eeaaef4", + type: "ethereum" + }, + { + name: "Faith", + p: "0x037964b6c9d546da4646ada28a99e34acaa1d14e7aba861a9055f9bd200c8abf74", + s: "0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df", + type: "ethereum" + } + ]; + function createMeta2(name6, seed) { + if (!name6 && !seed) { + throw new Error("Testing pair should have either a name or a seed"); + } + return { + isTesting: true, + name: name6 || seed?.replace("//", "_").toLowerCase() + }; + } + function createTestKeyring2(options = {}, isDerived = true) { + const keyring3 = new keyring_js_1.Keyring(options); + const pairs = options.type === "ethereum" ? exports2.PAIRSETHEREUM : exports2.PAIRSSR25519; + for (const { name: name6, p, s, seed, type } of pairs) { + const meta2 = createMeta2(name6, seed); + const pair = !isDerived && !name6 && seed ? keyring3.addFromUri(seed, meta2, options.type) : keyring3.addPair((0, index_js_1.createPair)({ toSS58: keyring3.encodeAddress, type }, { publicKey: (0, util_1.hexToU8a)(p), secretKey: (0, util_1.hexToU8a)(s) }, meta2)); + pair.lock = () => { + }; + } + return keyring3; + } + exports2.createTestKeyring = createTestKeyring2; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/pair/nobody.js + var require_nobody = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/pair/nobody.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.nobody = void 0; + var publicKey = new Uint8Array(32); + var address = "5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM"; + var meta2 = { + isTesting: true, + name: "nobody" + }; + var json = { + address, + encoded: "", + encoding: { + content: ["pkcs8", "ed25519"], + type: "none", + version: "0" + }, + meta: meta2 + }; + var pair = { + address, + addressRaw: publicKey, + decodePkcs8: (_passphrase, _encoded) => void 0, + derive: (_suri, _meta) => pair, + encodePkcs8: (_passphrase) => new Uint8Array(0), + isLocked: true, + lock: () => { + }, + meta: meta2, + publicKey, + setMeta: (_meta) => void 0, + sign: (_message) => new Uint8Array(64), + toJson: (_passphrase) => json, + type: "ed25519", + unlock: (_passphrase) => void 0, + verify: (_message, _signature) => false, + vrfSign: (_message, _context, _extra) => new Uint8Array(96), + vrfVerify: (_message, _vrfResult, _context, _extra) => false + }; + function nobody() { + return pair; + } + exports2.nobody = nobody; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/testingPairs.js + var require_testingPairs = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/testingPairs.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestPairs = void 0; + var nobody_js_1 = require_nobody(); + var testing_js_1 = require_testing(); + function createTestPairs(options, isDerived = true) { + const keyring3 = (0, testing_js_1.createTestKeyring)(options, isDerived); + const pairs = keyring3.getPairs(); + const map2 = { nobody: (0, nobody_js_1.nobody)() }; + for (const p of pairs) { + if (p.meta.name) { + map2[p.meta.name] = p; + } + } + return map2; + } + exports2.createTestPairs = createTestPairs; + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/bundle.js + var require_bundle11 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createTestPairs = exports2.createTestKeyring = exports2.createPair = exports2.packageInfo = exports2.Keyring = exports2.setSS58Format = exports2.encodeAddress = exports2.decodeAddress = void 0; + var tslib_1 = require_tslib(); + var util_crypto_1 = require_cjs6(); + Object.defineProperty(exports2, "decodeAddress", { enumerable: true, get: function() { + return util_crypto_1.decodeAddress; + } }); + Object.defineProperty(exports2, "encodeAddress", { enumerable: true, get: function() { + return util_crypto_1.encodeAddress; + } }); + Object.defineProperty(exports2, "setSS58Format", { enumerable: true, get: function() { + return util_crypto_1.setSS58Format; + } }); + var keyring_js_1 = require_keyring(); + Object.defineProperty(exports2, "Keyring", { enumerable: true, get: function() { + return keyring_js_1.Keyring; + } }); + var packageInfo_js_1 = require_packageInfo21(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_pair(); + Object.defineProperty(exports2, "createPair", { enumerable: true, get: function() { + return index_js_1.createPair; + } }); + var testing_js_1 = require_testing(); + Object.defineProperty(exports2, "createTestKeyring", { enumerable: true, get: function() { + return testing_js_1.createTestKeyring; + } }); + var testingPairs_js_1 = require_testingPairs(); + Object.defineProperty(exports2, "createTestPairs", { enumerable: true, get: function() { + return testingPairs_js_1.createTestPairs; + } }); + tslib_1.__exportStar(require_defaults5(), exports2); + } + }); + + // ../../node_modules/@polkadot/keyring/cjs/index.js + var require_cjs15 = __commonJS({ + "../../node_modules/@polkadot/keyring/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_detectPackage4(); + var bundle_js_1 = require_bundle11(); + tslib_1.__exportStar(require_bundle11(), exports2); + exports2.default = bundle_js_1.Keyring; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/packageDetect.js + var require_packageDetect9 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo13(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/x-fetch/cjs/packageInfo.js + var require_packageInfo22 = __commonJS({ + "../../node_modules/@polkadot/x-fetch/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/x-fetch", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/x-fetch/cjs/browser.js + var require_browser5 = __commonJS({ + "../../node_modules/@polkadot/x-fetch/cjs/browser.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fetch = exports2.packageInfo = void 0; + var x_global_1 = require_cjs(); + var packageInfo_js_1 = require_packageInfo22(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + exports2.fetch = x_global_1.xglobal.fetch; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/coder/error.js + var require_error2 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/coder/error.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var util_1 = require_cjs3(); + var UNKNOWN = -99999; + function extend(that, name6, value) { + Object.defineProperty(that, name6, { + configurable: true, + enumerable: false, + value + }); + } + var RpcError = class extends Error { + code; + data; + message; + name; + stack; + constructor(message = "", code = UNKNOWN, data) { + super(); + extend(this, "message", String(message)); + extend(this, "name", this.constructor.name); + extend(this, "data", data); + extend(this, "code", code); + if ((0, util_1.isFunction)(Error.captureStackTrace)) { + Error.captureStackTrace(this, this.constructor); + } else { + const { stack } = new Error(message); + stack && extend(this, "stack", stack); + } + } + }; + __publicField(RpcError, "CODES", { + ASSERT: -90009, + INVALID_JSONRPC: -99998, + METHOD_NOT_FOUND: -32601, + UNKNOWN + }); + exports2.default = RpcError; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/coder/index.js + var require_coder = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/coder/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RpcCoder = void 0; + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var error_js_1 = tslib_1.__importDefault(require_error2()); + function formatErrorData(data) { + if ((0, util_1.isUndefined)(data)) { + return ""; + } + const formatted = `: ${(0, util_1.isString)(data) ? data.replace(/Error\("/g, "").replace(/\("/g, "(").replace(/"\)/g, ")").replace(/\(/g, ", ").replace(/\)/g, "") : (0, util_1.stringify)(data)}`; + return formatted.length <= 256 ? formatted : `${formatted.substring(0, 255)}\u2026`; + } + function checkError3(error) { + if (error) { + const { code, data, message } = error; + throw new error_js_1.default(`${code}: ${message}${formatErrorData(data)}`, code, data); + } + } + var RpcCoder = class { + __internal__id = 0; + decodeResponse(response) { + if (!response || response.jsonrpc !== "2.0") { + throw new Error("Invalid jsonrpc field in decoded object"); + } + const isSubscription2 = !(0, util_1.isUndefined)(response.params) && !(0, util_1.isUndefined)(response.method); + if (!(0, util_1.isNumber)(response.id) && (!isSubscription2 || !(0, util_1.isNumber)(response.params.subscription) && !(0, util_1.isString)(response.params.subscription))) { + throw new Error("Invalid id field in decoded object"); + } + checkError3(response.error); + if (response.result === void 0 && !isSubscription2) { + throw new Error("No result found in jsonrpc response"); + } + if (isSubscription2) { + checkError3(response.params.error); + return response.params.result; + } + return response.result; + } + encodeJson(method, params) { + const [id4, data] = this.encodeObject(method, params); + return [id4, (0, util_1.stringify)(data)]; + } + encodeObject(method, params) { + const id4 = ++this.__internal__id; + return [id4, { + id: id4, + jsonrpc: "2.0", + method, + params + }]; + } + }; + exports2.RpcCoder = RpcCoder; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/defaults.js + var require_defaults6 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/defaults.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var HTTP_URL = "http://127.0.0.1:9933"; + var WS_URL = "ws://127.0.0.1:9944"; + exports2.default = { + HTTP_URL, + WS_URL + }; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/lru.js + var require_lru = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/lru.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LRUCache = exports2.DEFAULT_CAPACITY = void 0; + exports2.DEFAULT_CAPACITY = 128; + var LRUNode = class { + key; + next; + prev; + constructor(key2) { + this.key = key2; + this.next = this.prev = this; + } + }; + var LRUCache = class { + capacity; + __internal__data = /* @__PURE__ */ new Map(); + __internal__refs = /* @__PURE__ */ new Map(); + __internal__length = 0; + __internal__head; + __internal__tail; + constructor(capacity = exports2.DEFAULT_CAPACITY) { + this.capacity = capacity; + this.__internal__head = this.__internal__tail = new LRUNode(""); + } + get length() { + return this.__internal__length; + } + get lengthData() { + return this.__internal__data.size; + } + get lengthRefs() { + return this.__internal__refs.size; + } + entries() { + const keys = this.keys(); + const count = keys.length; + const entries = new Array(count); + for (let i = 0; i < count; i++) { + const key2 = keys[i]; + entries[i] = [key2, this.__internal__data.get(key2)]; + } + return entries; + } + keys() { + const keys = []; + if (this.__internal__length) { + let curr = this.__internal__head; + while (curr !== this.__internal__tail) { + keys.push(curr.key); + curr = curr.next; + } + keys.push(curr.key); + } + return keys; + } + get(key2) { + const data = this.__internal__data.get(key2); + if (data) { + this.__internal__toHead(key2); + return data; + } + return null; + } + set(key2, value) { + if (this.__internal__data.has(key2)) { + this.__internal__toHead(key2); + } else { + const node = new LRUNode(key2); + this.__internal__refs.set(node.key, node); + if (this.length === 0) { + this.__internal__head = this.__internal__tail = node; + } else { + this.__internal__head.prev = node; + node.next = this.__internal__head; + this.__internal__head = node; + } + if (this.__internal__length === this.capacity) { + this.__internal__data.delete(this.__internal__tail.key); + this.__internal__refs.delete(this.__internal__tail.key); + this.__internal__tail = this.__internal__tail.prev; + this.__internal__tail.next = this.__internal__head; + } else { + this.__internal__length += 1; + } + } + this.__internal__data.set(key2, value); + } + __internal__toHead(key2) { + const ref = this.__internal__refs.get(key2); + if (ref && ref !== this.__internal__head) { + ref.prev.next = ref.next; + ref.next.prev = ref.prev; + ref.next = this.__internal__head; + this.__internal__head.prev = ref; + this.__internal__head = ref; + } + } + }; + exports2.LRUCache = LRUCache; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/http/index.js + var require_http = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/http/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HttpProvider = void 0; + var tslib_1 = require_tslib(); + var util_1 = require_cjs3(); + var x_fetch_1 = require_browser5(); + var index_js_1 = require_coder(); + var defaults_js_1 = tslib_1.__importDefault(require_defaults6()); + var lru_js_1 = require_lru(); + var ERROR_SUBSCRIBE = "HTTP Provider does not have subscriptions, use WebSockets instead"; + var l15 = (0, util_1.logger)("api-http"); + var HttpProvider = class { + __internal__callCache = new lru_js_1.LRUCache(); + __internal__coder; + __internal__endpoint; + __internal__headers; + __internal__stats; + constructor(endpoint = defaults_js_1.default.HTTP_URL, headers = {}) { + if (!/^(https|http):\/\//.test(endpoint)) { + throw new Error(`Endpoint should start with 'http://' or 'https://', received '${endpoint}'`); + } + this.__internal__coder = new index_js_1.RpcCoder(); + this.__internal__endpoint = endpoint; + this.__internal__headers = headers; + this.__internal__stats = { + active: { requests: 0, subscriptions: 0 }, + total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 } + }; + } + get hasSubscriptions() { + return false; + } + clone() { + return new HttpProvider(this.__internal__endpoint, this.__internal__headers); + } + async connect() { + } + async disconnect() { + } + get stats() { + return this.__internal__stats; + } + get isClonable() { + return true; + } + get isConnected() { + return true; + } + on(_type, _sub) { + l15.error("HTTP Provider does not have 'on' emitters, use WebSockets instead"); + return util_1.noop; + } + async send(method, params, isCacheable) { + this.__internal__stats.total.requests++; + const [, body] = this.__internal__coder.encodeJson(method, params); + const cacheKey = isCacheable ? `${method}::${(0, util_1.stringify)(params)}` : ""; + let resultPromise = isCacheable ? this.__internal__callCache.get(cacheKey) : null; + if (!resultPromise) { + resultPromise = this.__internal__send(body); + if (isCacheable) { + this.__internal__callCache.set(cacheKey, resultPromise); + } + } else { + this.__internal__stats.total.cached++; + } + return resultPromise; + } + async __internal__send(body) { + this.__internal__stats.active.requests++; + this.__internal__stats.total.bytesSent += body.length; + try { + const response = await (0, x_fetch_1.fetch)(this.__internal__endpoint, { + body, + headers: { + Accept: "application/json", + "Content-Length": `${body.length}`, + "Content-Type": "application/json", + ...this.__internal__headers + }, + method: "POST" + }); + if (!response.ok) { + throw new Error(`[${response.status}]: ${response.statusText}`); + } + const result = await response.text(); + this.__internal__stats.total.bytesRecv += result.length; + const decoded = this.__internal__coder.decodeResponse(JSON.parse(result)); + this.__internal__stats.active.requests--; + return decoded; + } catch (e) { + this.__internal__stats.active.requests--; + this.__internal__stats.total.errors++; + throw e; + } + } + async subscribe(_types, _method, _params, _cb) { + l15.error(ERROR_SUBSCRIBE); + throw new Error(ERROR_SUBSCRIBE); + } + async unsubscribe(_type, _method, _id) { + l15.error(ERROR_SUBSCRIBE); + throw new Error(ERROR_SUBSCRIBE); + } + }; + exports2.HttpProvider = HttpProvider; + } + }); + + // ../../node_modules/eventemitter3/index.js + var require_eventemitter3 = __commonJS({ + "../../node_modules/eventemitter3/index.js"(exports2, module2) { + "use strict"; + var has = Object.prototype.hasOwnProperty; + var prefix = "~"; + function Events() { + } + if (Object.create) { + Events.prototype = /* @__PURE__ */ Object.create(null); + if (!new Events().__proto__) + prefix = false; + } + function EE2(fn2, context2, once) { + this.fn = fn2; + this.context = context2; + this.once = once || false; + } + function addListener(emitter, event, fn2, context2, once) { + if (typeof fn2 !== "function") { + throw new TypeError("The listener must be a function"); + } + var listener = new EE2(fn2, context2 || emitter, once), evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) + emitter._events[evt] = listener, emitter._eventsCount++; + else if (!emitter._events[evt].fn) + emitter._events[evt].push(listener); + else + emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) + emitter._events = new Events(); + else + delete emitter._events[evt]; + } + function EventEmitter() { + this._events = new Events(); + this._eventsCount = 0; + } + EventEmitter.prototype.eventNames = function eventNames() { + var names2 = [], events, name6; + if (this._eventsCount === 0) + return names2; + for (name6 in events = this._events) { + if (has.call(events, name6)) + names2.push(prefix ? name6.slice(1) : name6); + } + if (Object.getOwnPropertySymbols) { + return names2.concat(Object.getOwnPropertySymbols(events)); + } + return names2; + }; + EventEmitter.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, handlers = this._events[evt]; + if (!handlers) + return []; + if (handlers.fn) + return [handlers.fn]; + for (var i = 0, l15 = handlers.length, ee = new Array(l15); i < l15; i++) { + ee[i] = handlers[i].fn; + } + return ee; + }; + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, listeners = this._events[evt]; + if (!listeners) + return 0; + if (listeners.fn) + return 1; + return listeners.length; + }; + EventEmitter.prototype.emit = function emit(event, a1, a22, a32, a42, a52) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return false; + var listeners = this._events[evt], len = arguments.length, args, i; + if (listeners.fn) { + if (listeners.once) + this.removeListener(event, listeners.fn, void 0, true); + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + case 2: + return listeners.fn.call(listeners.context, a1), true; + case 3: + return listeners.fn.call(listeners.context, a1, a22), true; + case 4: + return listeners.fn.call(listeners.context, a1, a22, a32), true; + case 5: + return listeners.fn.call(listeners.context, a1, a22, a32, a42), true; + case 6: + return listeners.fn.call(listeners.context, a1, a22, a32, a42, a52), true; + } + for (i = 1, args = new Array(len - 1); i < len; i++) { + args[i - 1] = arguments[i]; + } + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, j10; + for (i = 0; i < length; i++) { + if (listeners[i].once) + this.removeListener(event, listeners[i].fn, void 0, true); + switch (len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + case 3: + listeners[i].fn.call(listeners[i].context, a1, a22); + break; + case 4: + listeners[i].fn.call(listeners[i].context, a1, a22, a32); + break; + default: + if (!args) + for (j10 = 1, args = new Array(len - 1); j10 < len; j10++) { + args[j10 - 1] = arguments[j10]; + } + listeners[i].fn.apply(listeners[i].context, args); + } + } + } + return true; + }; + EventEmitter.prototype.on = function on2(event, fn2, context2) { + return addListener(this, event, fn2, context2, false); + }; + EventEmitter.prototype.once = function once(event, fn2, context2) { + return addListener(this, event, fn2, context2, true); + }; + EventEmitter.prototype.removeListener = function removeListener(event, fn2, context2, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return this; + if (!fn2) { + clearEvent(this, evt); + return this; + } + var listeners = this._events[evt]; + if (listeners.fn) { + if (listeners.fn === fn2 && (!once || listeners.once) && (!context2 || listeners.context === context2)) { + clearEvent(this, evt); + } + } else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) { + if (listeners[i].fn !== fn2 || once && !listeners[i].once || context2 && listeners[i].context !== context2) { + events.push(listeners[i]); + } + } + if (events.length) + this._events[evt] = events.length === 1 ? events[0] : events; + else + clearEvent(this, evt); + } + return this; + }; + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) + clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + return this; + }; + EventEmitter.prototype.off = EventEmitter.prototype.removeListener; + EventEmitter.prototype.addListener = EventEmitter.prototype.on; + EventEmitter.prefixed = prefix; + EventEmitter.EventEmitter = EventEmitter; + if ("undefined" !== typeof module2) { + module2.exports = EventEmitter; + } + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/Health.js + var require_Health = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/Health.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HealthCheckError = exports2.healthChecker = void 0; + var util_1 = require_cjs3(); + function healthChecker() { + let checker = null; + let sendJsonRpc = null; + return { + responsePassThrough: (jsonRpcResponse) => { + if (checker === null) { + return jsonRpcResponse; + } + return checker.responsePassThrough(jsonRpcResponse); + }, + sendJsonRpc: (request) => { + if (!sendJsonRpc) { + throw new Error("setSendJsonRpc must be called before sending requests"); + } + if (checker === null) { + sendJsonRpc(request); + } else { + checker.sendJsonRpc(request); + } + }, + setSendJsonRpc: (cb2) => { + sendJsonRpc = cb2; + }, + start: (healthCallback) => { + if (checker !== null) { + throw new Error("Can't start the health checker multiple times in parallel"); + } else if (!sendJsonRpc) { + throw new Error("setSendJsonRpc must be called before starting the health checks"); + } + checker = new InnerChecker(healthCallback, sendJsonRpc); + checker.update(true); + }, + stop: () => { + if (checker === null) { + return; + } + checker.destroy(); + checker = null; + } + }; + } + exports2.healthChecker = healthChecker; + var InnerChecker = class { + __internal__healthCallback; + __internal__currentHealthCheckId = null; + __internal__currentHealthTimeout = null; + __internal__currentSubunsubRequestId = null; + __internal__currentSubscriptionId = null; + __internal__requestToSmoldot; + __internal__isSyncing = false; + __internal__nextRequestId = 0; + constructor(healthCallback, requestToSmoldot) { + this.__internal__healthCallback = healthCallback; + this.__internal__requestToSmoldot = (request) => requestToSmoldot((0, util_1.stringify)(request)); + } + sendJsonRpc = (request) => { + let parsedRequest; + try { + parsedRequest = JSON.parse(request); + } catch { + return; + } + if (parsedRequest.id) { + const newId = "extern:" + (0, util_1.stringify)(parsedRequest.id); + parsedRequest.id = newId; + } + this.__internal__requestToSmoldot(parsedRequest); + }; + responsePassThrough = (jsonRpcResponse) => { + let parsedResponse; + try { + parsedResponse = JSON.parse(jsonRpcResponse); + } catch { + return jsonRpcResponse; + } + if (parsedResponse.id && this.__internal__currentHealthCheckId === parsedResponse.id) { + this.__internal__currentHealthCheckId = null; + if (!parsedResponse.result) { + this.update(false); + return null; + } + this.__internal__healthCallback(parsedResponse.result); + this.__internal__isSyncing = parsedResponse.result.isSyncing; + this.update(false); + return null; + } + if (parsedResponse.id && this.__internal__currentSubunsubRequestId === parsedResponse.id) { + this.__internal__currentSubunsubRequestId = null; + if (!parsedResponse.result) { + this.update(false); + return null; + } + if (this.__internal__currentSubscriptionId) { + this.__internal__currentSubscriptionId = null; + } else { + this.__internal__currentSubscriptionId = parsedResponse.result; + } + this.update(false); + return null; + } + if (parsedResponse.params && this.__internal__currentSubscriptionId && parsedResponse.params.subscription === this.__internal__currentSubscriptionId) { + this.update(true); + return null; + } + if (parsedResponse.id) { + const id4 = parsedResponse.id; + if (!id4.startsWith("extern:")) { + throw new Error("State inconsistency in health checker"); + } + const newId = JSON.parse(id4.slice("extern:".length)); + parsedResponse.id = newId; + } + return (0, util_1.stringify)(parsedResponse); + }; + update = (startNow) => { + if (startNow && this.__internal__currentHealthTimeout) { + clearTimeout(this.__internal__currentHealthTimeout); + this.__internal__currentHealthTimeout = null; + } + if (!this.__internal__currentHealthTimeout) { + const startHealthRequest = () => { + this.__internal__currentHealthTimeout = null; + if (this.__internal__currentHealthCheckId) { + return; + } + this.__internal__currentHealthCheckId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentHealthCheckId, + jsonrpc: "2.0", + method: "system_health", + params: [] + }); + }; + if (startNow) { + startHealthRequest(); + } else { + this.__internal__currentHealthTimeout = setTimeout(startHealthRequest, 1e3); + } + } + if (this.__internal__isSyncing && !this.__internal__currentSubscriptionId && !this.__internal__currentSubunsubRequestId) { + this.startSubscription(); + } + if (!this.__internal__isSyncing && this.__internal__currentSubscriptionId && !this.__internal__currentSubunsubRequestId) { + this.endSubscription(); + } + }; + startSubscription = () => { + if (this.__internal__currentSubunsubRequestId || this.__internal__currentSubscriptionId) { + throw new Error("Internal error in health checker"); + } + this.__internal__currentSubunsubRequestId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentSubunsubRequestId, + jsonrpc: "2.0", + method: "chain_subscribeNewHeads", + params: [] + }); + }; + endSubscription = () => { + if (this.__internal__currentSubunsubRequestId || !this.__internal__currentSubscriptionId) { + throw new Error("Internal error in health checker"); + } + this.__internal__currentSubunsubRequestId = `health-checker:${this.__internal__nextRequestId}`; + this.__internal__nextRequestId += 1; + this.__internal__requestToSmoldot({ + id: this.__internal__currentSubunsubRequestId, + jsonrpc: "2.0", + method: "chain_unsubscribeNewHeads", + params: [this.__internal__currentSubscriptionId] + }); + }; + destroy = () => { + if (this.__internal__currentHealthTimeout) { + clearTimeout(this.__internal__currentHealthTimeout); + this.__internal__currentHealthTimeout = null; + } + }; + }; + var HealthCheckError = class extends Error { + __internal__cause; + getCause() { + return this.__internal__cause; + } + constructor(response, message = "Got error response asking for system health") { + super(message); + this.__internal__cause = response; + } + }; + exports2.HealthCheckError = HealthCheckError; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/index.js + var require_substrate_connect = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/substrate-connect/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ScProvider = void 0; + var eventemitter3_1 = require_eventemitter3(); + var util_1 = require_cjs3(); + var index_js_1 = require_coder(); + var Health_js_1 = require_Health(); + var l15 = (0, util_1.logger)("api-substrate-connect"); + var subscriptionUnsubscriptionMethods = /* @__PURE__ */ new Map([ + ["author_submitAndWatchExtrinsic", "author_unwatchExtrinsic"], + ["chain_subscribeAllHeads", "chain_unsubscribeAllHeads"], + ["chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads"], + ["chain_subscribeFinalisedHeads", "chain_subscribeFinalisedHeads"], + ["chain_subscribeNewHeads", "chain_unsubscribeNewHeads"], + ["chain_subscribeNewHead", "chain_unsubscribeNewHead"], + ["chain_subscribeRuntimeVersion", "chain_unsubscribeRuntimeVersion"], + ["subscribe_newHead", "unsubscribe_newHead"], + ["state_subscribeRuntimeVersion", "state_unsubscribeRuntimeVersion"], + ["state_subscribeStorage", "state_unsubscribeStorage"] + ]); + var scClients = /* @__PURE__ */ new WeakMap(); + var ScProvider = class { + __internal__Sc; + __internal__coder = new index_js_1.RpcCoder(); + __internal__spec; + __internal__sharedSandbox; + __internal__subscriptions = /* @__PURE__ */ new Map(); + __internal__resubscribeMethods = /* @__PURE__ */ new Map(); + __internal__requests = /* @__PURE__ */ new Map(); + __internal__wellKnownChains; + __internal__eventemitter = new eventemitter3_1.EventEmitter(); + __internal__chain = null; + __internal__isChainReady = false; + constructor(Sc2, spec2, sharedSandbox) { + if (!(0, util_1.isObject)(Sc2) || !(0, util_1.isObject)(Sc2.WellKnownChain) || !(0, util_1.isFunction)(Sc2.createScClient)) { + throw new Error("Expected an @substrate/connect interface as first parameter to ScProvider"); + } + this.__internal__Sc = Sc2; + this.__internal__spec = spec2; + this.__internal__sharedSandbox = sharedSandbox; + this.__internal__wellKnownChains = new Set(Object.values(Sc2.WellKnownChain)); + } + get hasSubscriptions() { + return true; + } + get isClonable() { + return false; + } + get isConnected() { + return !!this.__internal__chain && this.__internal__isChainReady; + } + clone() { + throw new Error("clone() is not supported."); + } + async connect(config7, checkerFactory = Health_js_1.healthChecker) { + if (this.isConnected) { + throw new Error("Already connected!"); + } + if (this.__internal__chain) { + await this.__internal__chain; + return; + } + if (this.__internal__sharedSandbox && !this.__internal__sharedSandbox.isConnected) { + await this.__internal__sharedSandbox.connect(); + } + const client = this.__internal__sharedSandbox ? scClients.get(this.__internal__sharedSandbox) : this.__internal__Sc.createScClient(config7); + if (!client) { + throw new Error("Unknown ScProvider!"); + } + scClients.set(this, client); + const hc = checkerFactory(); + const onResponse = (res) => { + const hcRes = hc.responsePassThrough(res); + if (!hcRes) { + return; + } + const response = JSON.parse(hcRes); + let decodedResponse; + try { + decodedResponse = this.__internal__coder.decodeResponse(response); + } catch (e) { + decodedResponse = e; + } + if (response.params?.subscription === void 0 || !response.method) { + return this.__internal__requests.get(response.id)?.(decodedResponse); + } + const subscriptionId = `${response.method}::${response.params.subscription}`; + const callback = this.__internal__subscriptions.get(subscriptionId)?.[0]; + callback?.(decodedResponse); + }; + const addChain = this.__internal__sharedSandbox ? async (...args) => { + const source = this.__internal__sharedSandbox; + return (await source.__internal__chain).addChain(...args); + } : this.__internal__wellKnownChains.has(this.__internal__spec) ? client.addWellKnownChain : client.addChain; + this.__internal__chain = addChain(this.__internal__spec, onResponse).then((chain4) => { + hc.setSendJsonRpc(chain4.sendJsonRpc); + this.__internal__isChainReady = false; + const cleanup = () => { + const disconnectionError = new Error("Disconnected"); + this.__internal__requests.forEach((cb2) => cb2(disconnectionError)); + this.__internal__subscriptions.forEach(([cb2]) => cb2(disconnectionError)); + this.__internal__subscriptions.clear(); + }; + const staleSubscriptions = []; + const killStaleSubscriptions = () => { + if (staleSubscriptions.length === 0) { + return; + } + const stale = staleSubscriptions.pop(); + if (!stale) { + throw new Error("Unable to get stale subscription"); + } + const { id: id4, unsubscribeMethod } = stale; + Promise.race([ + this.send(unsubscribeMethod, [id4]).catch(util_1.noop), + new Promise((resolve) => setTimeout(resolve, 500)) + ]).then(killStaleSubscriptions).catch(util_1.noop); + }; + hc.start((health) => { + const isReady2 = !health.isSyncing && (health.peers > 0 || !health.shouldHavePeers); + if (this.__internal__isChainReady === isReady2) { + return; + } + this.__internal__isChainReady = isReady2; + if (!isReady2) { + [...this.__internal__subscriptions.values()].forEach((s) => { + staleSubscriptions.push(s[1]); + }); + cleanup(); + this.__internal__eventemitter.emit("disconnected"); + } else { + killStaleSubscriptions(); + this.__internal__eventemitter.emit("connected"); + if (this.__internal__resubscribeMethods.size) { + this.__internal__resubscribe(); + } + } + }); + return (0, util_1.objectSpread)({}, chain4, { + remove: () => { + hc.stop(); + chain4.remove(); + cleanup(); + }, + sendJsonRpc: hc.sendJsonRpc.bind(hc) + }); + }); + try { + await this.__internal__chain; + } catch (e) { + this.__internal__chain = null; + this.__internal__eventemitter.emit("error", e); + throw e; + } + } + __internal__resubscribe = () => { + const promises = []; + this.__internal__resubscribeMethods.forEach((subDetails) => { + if (subDetails.type.startsWith("author_")) { + return; + } + try { + const promise = new Promise((resolve) => { + this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error)); + resolve(); + }); + promises.push(promise); + } catch (error) { + l15.error(error); + } + }); + Promise.all(promises).catch((err) => l15.log(err)); + }; + async disconnect() { + if (!this.__internal__chain) { + return; + } + const chain4 = await this.__internal__chain; + this.__internal__chain = null; + this.__internal__isChainReady = false; + try { + chain4.remove(); + } catch (_) { + } + this.__internal__eventemitter.emit("disconnected"); + } + on(type, sub) { + if (type === "connected" && this.isConnected) { + sub(); + } + this.__internal__eventemitter.on(type, sub); + return () => { + this.__internal__eventemitter.removeListener(type, sub); + }; + } + async send(method, params) { + if (!this.isConnected || !this.__internal__chain) { + throw new Error("Provider is not connected"); + } + const chain4 = await this.__internal__chain; + const [id4, json] = this.__internal__coder.encodeJson(method, params); + const result = new Promise((resolve, reject) => { + this.__internal__requests.set(id4, (response) => { + ((0, util_1.isError)(response) ? reject : resolve)(response); + }); + try { + chain4.sendJsonRpc(json); + } catch (e) { + this.__internal__chain = null; + try { + chain4.remove(); + } catch (_) { + } + this.__internal__eventemitter.emit("error", e); + } + }); + try { + return await result; + } finally { + this.__internal__requests.delete(id4); + } + } + async subscribe(type, method, params, callback) { + if (!subscriptionUnsubscriptionMethods.has(method)) { + throw new Error(`Unsupported subscribe method: ${method}`); + } + const id4 = await this.send(method, params); + const subscriptionId = `${type}::${id4}`; + const cb2 = (response) => { + if (response instanceof Error) { + callback(response, void 0); + } else { + callback(null, response); + } + }; + const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method); + if (!unsubscribeMethod) { + throw new Error("Invalid unsubscribe method found"); + } + this.__internal__resubscribeMethods.set(subscriptionId, { callback, method, params, type }); + this.__internal__subscriptions.set(subscriptionId, [cb2, { id: id4, unsubscribeMethod }]); + return id4; + } + unsubscribe(type, method, id4) { + if (!this.isConnected) { + throw new Error("Provider is not connected"); + } + const subscriptionId = `${type}::${id4}`; + if (!this.__internal__subscriptions.has(subscriptionId)) { + return Promise.reject(new Error(`Unable to find active subscription=${subscriptionId}`)); + } + this.__internal__resubscribeMethods.delete(subscriptionId); + this.__internal__subscriptions.delete(subscriptionId); + return this.send(method, [id4]); + } + }; + exports2.ScProvider = ScProvider; + } + }); + + // ../../node_modules/@polkadot/x-ws/cjs/packageInfo.js + var require_packageInfo23 = __commonJS({ + "../../node_modules/@polkadot/x-ws/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/x-ws", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "12.6.2" }; + } + }); + + // ../../node_modules/@polkadot/x-ws/cjs/browser.js + var require_browser6 = __commonJS({ + "../../node_modules/@polkadot/x-ws/cjs/browser.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WebSocket = exports2.packageInfo = void 0; + var x_global_1 = require_cjs(); + var packageInfo_js_1 = require_packageInfo23(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + exports2.WebSocket = x_global_1.xglobal.WebSocket; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/ws/errors.js + var require_errors2 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/ws/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getWSErrorString = void 0; + var known = { + 1e3: "Normal Closure", + 1001: "Going Away", + 1002: "Protocol Error", + 1003: "Unsupported Data", + 1004: "(For future)", + 1005: "No Status Received", + 1006: "Abnormal Closure", + 1007: "Invalid frame payload data", + 1008: "Policy Violation", + 1009: "Message too big", + 1010: "Missing Extension", + 1011: "Internal Error", + 1012: "Service Restart", + 1013: "Try Again Later", + 1014: "Bad Gateway", + 1015: "TLS Handshake" + }; + function getWSErrorString(code) { + if (code >= 0 && code <= 999) { + return "(Unused)"; + } else if (code >= 1016) { + if (code <= 1999) { + return "(For WebSocket standard)"; + } else if (code <= 2999) { + return "(For WebSocket extensions)"; + } else if (code <= 3999) { + return "(For libraries and frameworks)"; + } else if (code <= 4999) { + return "(For applications)"; + } + } + return known[code] || "(Unknown)"; + } + exports2.getWSErrorString = getWSErrorString; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/ws/index.js + var require_ws = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/ws/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WsProvider = void 0; + var tslib_1 = require_tslib(); + var eventemitter3_1 = require_eventemitter3(); + var util_1 = require_cjs3(); + var x_global_1 = require_cjs(); + var x_ws_1 = require_browser6(); + var index_js_1 = require_coder(); + var defaults_js_1 = tslib_1.__importDefault(require_defaults6()); + var lru_js_1 = require_lru(); + var errors_js_1 = require_errors2(); + var ALIASES = { + chain_finalisedHead: "chain_finalizedHead", + chain_subscribeFinalisedHeads: "chain_subscribeFinalizedHeads", + chain_unsubscribeFinalisedHeads: "chain_unsubscribeFinalizedHeads" + }; + var RETRY_DELAY = 2500; + var DEFAULT_TIMEOUT_MS = 60 * 1e3; + var TIMEOUT_INTERVAL = 5e3; + var l15 = (0, util_1.logger)("api-ws"); + function eraseRecord(record, cb2) { + Object.keys(record).forEach((key2) => { + if (cb2) { + cb2(record[key2]); + } + delete record[key2]; + }); + } + function defaultEndpointStats() { + return { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }; + } + var WsProvider = class { + __internal__callCache; + __internal__coder; + __internal__endpoints; + __internal__headers; + __internal__eventemitter; + __internal__handlers = {}; + __internal__isReadyPromise; + __internal__stats; + __internal__waitingForId = {}; + __internal__autoConnectMs; + __internal__endpointIndex; + __internal__endpointStats; + __internal__isConnected = false; + __internal__subscriptions = {}; + __internal__timeoutId = null; + __internal__websocket; + __internal__timeout; + constructor(endpoint = defaults_js_1.default.WS_URL, autoConnectMs = RETRY_DELAY, headers = {}, timeout, cacheCapacity) { + const endpoints = Array.isArray(endpoint) ? endpoint : [endpoint]; + if (endpoints.length === 0) { + throw new Error("WsProvider requires at least one Endpoint"); + } + endpoints.forEach((endpoint2) => { + if (!/^(wss|ws):\/\//.test(endpoint2)) { + throw new Error(`Endpoint should start with 'ws://', received '${endpoint2}'`); + } + }); + this.__internal__callCache = new lru_js_1.LRUCache(cacheCapacity || lru_js_1.DEFAULT_CAPACITY); + this.__internal__eventemitter = new eventemitter3_1.EventEmitter(); + this.__internal__autoConnectMs = autoConnectMs || 0; + this.__internal__coder = new index_js_1.RpcCoder(); + this.__internal__endpointIndex = -1; + this.__internal__endpoints = endpoints; + this.__internal__headers = headers; + this.__internal__websocket = null; + this.__internal__stats = { + active: { requests: 0, subscriptions: 0 }, + total: defaultEndpointStats() + }; + this.__internal__endpointStats = defaultEndpointStats(); + this.__internal__timeout = timeout || DEFAULT_TIMEOUT_MS; + if (autoConnectMs && autoConnectMs > 0) { + this.connectWithRetry().catch(util_1.noop); + } + this.__internal__isReadyPromise = new Promise((resolve) => { + this.__internal__eventemitter.once("connected", () => { + resolve(this); + }); + }); + } + get hasSubscriptions() { + return true; + } + get isClonable() { + return true; + } + get isConnected() { + return this.__internal__isConnected; + } + get isReady() { + return this.__internal__isReadyPromise; + } + get endpoint() { + return this.__internal__endpoints[this.__internal__endpointIndex]; + } + clone() { + return new WsProvider(this.__internal__endpoints); + } + selectEndpointIndex(endpoints) { + return (this.__internal__endpointIndex + 1) % endpoints.length; + } + async connect() { + if (this.__internal__websocket) { + throw new Error("WebSocket is already connected"); + } + try { + this.__internal__endpointIndex = this.selectEndpointIndex(this.__internal__endpoints); + this.__internal__websocket = typeof x_global_1.xglobal.WebSocket !== "undefined" && (0, util_1.isChildClass)(x_global_1.xglobal.WebSocket, x_ws_1.WebSocket) ? new x_ws_1.WebSocket(this.endpoint) : new x_ws_1.WebSocket(this.endpoint, void 0, { + headers: this.__internal__headers + }); + if (this.__internal__websocket) { + this.__internal__websocket.onclose = this.__internal__onSocketClose; + this.__internal__websocket.onerror = this.__internal__onSocketError; + this.__internal__websocket.onmessage = this.__internal__onSocketMessage; + this.__internal__websocket.onopen = this.__internal__onSocketOpen; + } + this.__internal__timeoutId = setInterval(() => this.__internal__timeoutHandlers(), TIMEOUT_INTERVAL); + } catch (error) { + l15.error(error); + this.__internal__emit("error", error); + throw error; + } + } + async connectWithRetry() { + if (this.__internal__autoConnectMs > 0) { + try { + await this.connect(); + } catch { + setTimeout(() => { + this.connectWithRetry().catch(util_1.noop); + }, this.__internal__autoConnectMs); + } + } + } + async disconnect() { + this.__internal__autoConnectMs = 0; + try { + if (this.__internal__websocket) { + this.__internal__websocket.close(1e3); + } + } catch (error) { + l15.error(error); + this.__internal__emit("error", error); + throw error; + } + } + get stats() { + return { + active: { + requests: Object.keys(this.__internal__handlers).length, + subscriptions: Object.keys(this.__internal__subscriptions).length + }, + total: this.__internal__stats.total + }; + } + get endpointStats() { + return this.__internal__endpointStats; + } + on(type, sub) { + this.__internal__eventemitter.on(type, sub); + return () => { + this.__internal__eventemitter.removeListener(type, sub); + }; + } + send(method, params, isCacheable, subscription) { + this.__internal__endpointStats.requests++; + this.__internal__stats.total.requests++; + const [id4, body] = this.__internal__coder.encodeJson(method, params); + const cacheKey = isCacheable ? `${method}::${(0, util_1.stringify)(params)}` : ""; + let resultPromise = isCacheable ? this.__internal__callCache.get(cacheKey) : null; + if (!resultPromise) { + resultPromise = this.__internal__send(id4, body, method, params, subscription); + if (isCacheable) { + this.__internal__callCache.set(cacheKey, resultPromise); + } + } else { + this.__internal__endpointStats.cached++; + this.__internal__stats.total.cached++; + } + return resultPromise; + } + async __internal__send(id4, body, method, params, subscription) { + return new Promise((resolve, reject) => { + try { + if (!this.isConnected || this.__internal__websocket === null) { + throw new Error("WebSocket is not connected"); + } + const callback = (error, result) => { + error ? reject(error) : resolve(result); + }; + l15.debug(() => ["calling", method, body]); + this.__internal__handlers[id4] = { + callback, + method, + params, + start: Date.now(), + subscription + }; + const bytesSent = body.length; + this.__internal__endpointStats.bytesSent += bytesSent; + this.__internal__stats.total.bytesSent += bytesSent; + this.__internal__websocket.send(body); + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + reject(error); + } + }); + } + subscribe(type, method, params, callback) { + this.__internal__endpointStats.subscriptions++; + this.__internal__stats.total.subscriptions++; + return this.send(method, params, false, { callback, type }); + } + async unsubscribe(type, method, id4) { + const subscription = `${type}::${id4}`; + if ((0, util_1.isUndefined)(this.__internal__subscriptions[subscription])) { + l15.debug(() => `Unable to find active subscription=${subscription}`); + return false; + } + delete this.__internal__subscriptions[subscription]; + try { + return this.isConnected && !(0, util_1.isNull)(this.__internal__websocket) ? this.send(method, [id4]) : true; + } catch { + return false; + } + } + __internal__emit = (type, ...args) => { + this.__internal__eventemitter.emit(type, ...args); + }; + __internal__onSocketClose = (event) => { + const error = new Error(`disconnected from ${this.endpoint}: ${event.code}:: ${event.reason || (0, errors_js_1.getWSErrorString)(event.code)}`); + if (this.__internal__autoConnectMs > 0) { + l15.error(error.message); + } + this.__internal__isConnected = false; + if (this.__internal__websocket) { + this.__internal__websocket.onclose = null; + this.__internal__websocket.onerror = null; + this.__internal__websocket.onmessage = null; + this.__internal__websocket.onopen = null; + this.__internal__websocket = null; + } + if (this.__internal__timeoutId) { + clearInterval(this.__internal__timeoutId); + this.__internal__timeoutId = null; + } + eraseRecord(this.__internal__handlers, (h) => { + try { + h.callback(error, void 0); + } catch (err) { + l15.error(err); + } + }); + eraseRecord(this.__internal__waitingForId); + this.__internal__endpointStats = defaultEndpointStats(); + this.__internal__emit("disconnected"); + if (this.__internal__autoConnectMs > 0) { + setTimeout(() => { + this.connectWithRetry().catch(util_1.noop); + }, this.__internal__autoConnectMs); + } + }; + __internal__onSocketError = (error) => { + l15.debug(() => ["socket error", error]); + this.__internal__emit("error", error); + }; + __internal__onSocketMessage = (message) => { + l15.debug(() => ["received", message.data]); + const bytesRecv = message.data.length; + this.__internal__endpointStats.bytesRecv += bytesRecv; + this.__internal__stats.total.bytesRecv += bytesRecv; + const response = JSON.parse(message.data); + return (0, util_1.isUndefined)(response.method) ? this.__internal__onSocketMessageResult(response) : this.__internal__onSocketMessageSubscribe(response); + }; + __internal__onSocketMessageResult = (response) => { + const handler = this.__internal__handlers[response.id]; + if (!handler) { + l15.debug(() => `Unable to find handler for id=${response.id}`); + return; + } + try { + const { method, params, subscription } = handler; + const result = this.__internal__coder.decodeResponse(response); + handler.callback(null, result); + if (subscription) { + const subId = `${subscription.type}::${result}`; + this.__internal__subscriptions[subId] = (0, util_1.objectSpread)({}, subscription, { + method, + params + }); + if (this.__internal__waitingForId[subId]) { + this.__internal__onSocketMessageSubscribe(this.__internal__waitingForId[subId]); + } + } + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + handler.callback(error, void 0); + } + delete this.__internal__handlers[response.id]; + }; + __internal__onSocketMessageSubscribe = (response) => { + if (!response.method) { + throw new Error("No method found in JSONRPC response"); + } + const method = ALIASES[response.method] || response.method; + const subId = `${method}::${response.params.subscription}`; + const handler = this.__internal__subscriptions[subId]; + if (!handler) { + this.__internal__waitingForId[subId] = response; + l15.debug(() => `Unable to find handler for subscription=${subId}`); + return; + } + delete this.__internal__waitingForId[subId]; + try { + const result = this.__internal__coder.decodeResponse(response); + handler.callback(null, result); + } catch (error) { + this.__internal__endpointStats.errors++; + this.__internal__stats.total.errors++; + handler.callback(error, void 0); + } + }; + __internal__onSocketOpen = () => { + if (this.__internal__websocket === null) { + throw new Error("WebSocket cannot be null in onOpen"); + } + l15.debug(() => ["connected to", this.endpoint]); + this.__internal__isConnected = true; + this.__internal__resubscribe(); + this.__internal__emit("connected"); + return true; + }; + __internal__resubscribe = () => { + const subscriptions = this.__internal__subscriptions; + this.__internal__subscriptions = {}; + Promise.all(Object.keys(subscriptions).map(async (id4) => { + const { callback, method, params, type } = subscriptions[id4]; + if (type.startsWith("author_")) { + return; + } + try { + await this.subscribe(type, method, params, callback); + } catch (error) { + l15.error(error); + } + })).catch(l15.error); + }; + __internal__timeoutHandlers = () => { + const now2 = Date.now(); + const ids = Object.keys(this.__internal__handlers); + for (let i = 0, count = ids.length; i < count; i++) { + const handler = this.__internal__handlers[ids[i]]; + if (now2 - handler.start > this.__internal__timeout) { + try { + handler.callback(new Error(`No response received from RPC endpoint in ${this.__internal__timeout / 1e3}s`), void 0); + } catch { + } + this.__internal__endpointStats.timeout++; + this.__internal__stats.total.timeout++; + delete this.__internal__handlers[ids[i]]; + } + } + }; + }; + exports2.WsProvider = WsProvider; + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/bundle.js + var require_bundle12 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.WsProvider = exports2.ScProvider = exports2.packageInfo = exports2.HttpProvider = void 0; + var index_js_1 = require_http(); + Object.defineProperty(exports2, "HttpProvider", { enumerable: true, get: function() { + return index_js_1.HttpProvider; + } }); + var packageInfo_js_1 = require_packageInfo13(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_2 = require_substrate_connect(); + Object.defineProperty(exports2, "ScProvider", { enumerable: true, get: function() { + return index_js_2.ScProvider; + } }); + var index_js_3 = require_ws(); + Object.defineProperty(exports2, "WsProvider", { enumerable: true, get: function() { + return index_js_3.WsProvider; + } }); + } + }); + + // ../../node_modules/@polkadot/rpc-provider/cjs/index.js + var require_cjs16 = __commonJS({ + "../../node_modules/@polkadot/rpc-provider/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect9(); + tslib_1.__exportStar(require_bundle12(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/logging.js + var require_logging = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/logging.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.l = void 0; + var util_1 = require_cjs3(); + exports2.l = (0, util_1.logger)("api/util"); + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/filterEvents.js + var require_filterEvents = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/filterEvents.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.filterEvents = void 0; + var util_1 = require_cjs3(); + var logging_js_1 = require_logging(); + function filterEvents(txHash, { block: { extrinsics, header } }, allEvents, status) { + for (const [txIndex, x] of extrinsics.entries()) { + if (x.hash.eq(txHash)) { + return { + blockNumber: (0, util_1.isCompact)(header.number) ? header.number.unwrap() : header.number, + events: allEvents.filter(({ phase }) => phase.isApplyExtrinsic && phase.asApplyExtrinsic.eqn(txIndex)), + txIndex + }; + } + } + if (status.isInBlock) { + const allHashes = extrinsics.map((x) => x.hash.toHex()); + logging_js_1.l.warn(`block ${header.hash.toHex()}: Unable to find extrinsic ${txHash.toHex()} inside ${allHashes.join(", ")}`); + } + return {}; + } + exports2.filterEvents = filterEvents; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/isKeyringPair.js + var require_isKeyringPair = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/isKeyringPair.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isKeyringPair = void 0; + var util_1 = require_cjs3(); + function isKeyringPair(account) { + return (0, util_1.isFunction)(account.sign); + } + exports2.isKeyringPair = isKeyringPair; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/decorate.js + var require_decorate2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/decorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateDeriveSections = void 0; + var api_derive_1 = require_cjs12(); + function decorateDeriveSections(decorateMethod, derives) { + const getKeys2 = (s) => Object.keys(derives[s]); + const creator = (s, m) => decorateMethod(derives[s][m]); + const result = {}; + const names2 = Object.keys(derives); + for (let i = 0, count = names2.length; i < count; i++) { + (0, api_derive_1.lazyDeriveSection)(result, names2[i], getKeys2, creator); + } + return result; + } + exports2.decorateDeriveSections = decorateDeriveSections; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/index.js + var require_util19 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.l = exports2.isKeyringPair = exports2.filterEvents = void 0; + var tslib_1 = require_tslib(); + var filterEvents_js_1 = require_filterEvents(); + Object.defineProperty(exports2, "filterEvents", { enumerable: true, get: function() { + return filterEvents_js_1.filterEvents; + } }); + var isKeyringPair_js_1 = require_isKeyringPair(); + Object.defineProperty(exports2, "isKeyringPair", { enumerable: true, get: function() { + return isKeyringPair_js_1.isKeyringPair; + } }); + var logging_js_1 = require_logging(); + Object.defineProperty(exports2, "l", { enumerable: true, get: function() { + return logging_js_1.l; + } }); + tslib_1.__exportStar(require_decorate2(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/Result.js + var require_Result2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/Result.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = void 0; + var recordIdentity = (record) => record; + function filterAndApply(events, section, methods, onFound) { + return events.filter(({ event }) => section === event.section && methods.includes(event.method)).map((record) => onFound(record)); + } + function getDispatchError({ event: { data: [dispatchError] } }) { + return dispatchError; + } + function getDispatchInfo({ event: { data, method } }) { + return method === "ExtrinsicSuccess" ? data[0] : data[1]; + } + function extractError(events = []) { + return filterAndApply(events, "system", ["ExtrinsicFailed"], getDispatchError)[0]; + } + function extractInfo(events = []) { + return filterAndApply(events, "system", ["ExtrinsicFailed", "ExtrinsicSuccess"], getDispatchInfo)[0]; + } + var SubmittableResult = class { + dispatchError; + dispatchInfo; + internalError; + events; + status; + txHash; + txIndex; + blockNumber; + constructor({ blockNumber, dispatchError, dispatchInfo, events, internalError, status, txHash, txIndex }) { + this.dispatchError = dispatchError || extractError(events); + this.dispatchInfo = dispatchInfo || extractInfo(events); + this.events = events || []; + this.internalError = internalError; + this.status = status; + this.txHash = txHash; + this.txIndex = txIndex; + this.blockNumber = blockNumber; + } + get isCompleted() { + return this.isError || this.status.isInBlock || this.status.isFinalized; + } + get isError() { + return this.status.isDropped || this.status.isFinalityTimeout || this.status.isInvalid || this.status.isUsurped; + } + get isFinalized() { + return this.status.isFinalized; + } + get isInBlock() { + return this.status.isInBlock; + } + get isWarning() { + return this.status.isRetracted; + } + filterRecords(section, method) { + return filterAndApply(this.events, section, Array.isArray(method) ? method : [method], recordIdentity); + } + findRecord(section, method) { + return this.filterRecords(section, method)[0]; + } + toHuman(isExtended) { + return { + dispatchError: this.dispatchError?.toHuman(), + dispatchInfo: this.dispatchInfo?.toHuman(), + events: this.events.map((e) => e.toHuman(isExtended)), + internalError: this.internalError?.message.toString(), + status: this.status.toHuman(isExtended) + }; + } + }; + exports2.SubmittableResult = SubmittableResult; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/createClass.js + var require_createClass2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/createClass.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createClass = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_util19(); + var Result_js_1 = require_Result2(); + function makeEraOptions(api, registry, partialOptions, { header, mortalLength, nonce }) { + if (!header) { + if (partialOptions.era && !partialOptions.blockHash) { + throw new Error("Expected blockHash to be passed alongside non-immortal era options"); + } + if ((0, util_1.isNumber)(partialOptions.era)) { + delete partialOptions.era; + delete partialOptions.blockHash; + } + return makeSignOptions(api, partialOptions, { nonce }); + } + return makeSignOptions(api, partialOptions, { + blockHash: header.hash, + era: registry.createTypeUnsafe("ExtrinsicEra", [{ + current: header.number, + period: partialOptions.era || mortalLength + }]), + nonce + }); + } + function makeSignAndSendOptions(partialOptions, statusCb) { + let options = {}; + if ((0, util_1.isFunction)(partialOptions)) { + statusCb = partialOptions; + } else { + options = (0, util_1.objectSpread)({}, partialOptions); + } + return [options, statusCb]; + } + function makeSignOptions(api, partialOptions, extras) { + return (0, util_1.objectSpread)({ blockHash: api.genesisHash, genesisHash: api.genesisHash }, partialOptions, extras, { runtimeVersion: api.runtimeVersion, signedExtensions: api.registry.signedExtensions, version: api.extrinsicType }); + } + function optionsOrNonce(partialOptions = {}) { + return (0, util_1.isBn)(partialOptions) || (0, util_1.isNumber)(partialOptions) ? { nonce: partialOptions } : partialOptions; + } + function createClass({ api, apiType, blockHash, decorateMethod }) { + const ExtrinsicBase2 = api.registry.createClass("Extrinsic"); + class Submittable extends ExtrinsicBase2 { + __internal__ignoreStatusCb; + __internal__transformResult = util_1.identity; + constructor(registry, extrinsic) { + super(registry, extrinsic, { version: api.extrinsicType }); + this.__internal__ignoreStatusCb = apiType === "rxjs"; + } + get hasDryRun() { + return (0, util_1.isFunction)(api.rpc.system?.dryRun); + } + get hasPaymentInfo() { + return (0, util_1.isFunction)(api.call.transactionPaymentApi?.queryInfo); + } + dryRun(account, optionsOrHash) { + if (!this.hasDryRun) { + throw new Error("The system.dryRun RPC call is not available in your environment"); + } + if (blockHash || (0, util_1.isString)(optionsOrHash) || (0, util_1.isU8a)(optionsOrHash)) { + return decorateMethod(() => api.rpc.system.dryRun(this.toHex(), blockHash || optionsOrHash)); + } + return decorateMethod(() => this.__internal__observeSign(account, optionsOrHash).pipe((0, rxjs_1.switchMap)(() => api.rpc.system.dryRun(this.toHex()))))(); + } + paymentInfo(account, optionsOrHash) { + if (!this.hasPaymentInfo) { + throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment"); + } + if (blockHash || (0, util_1.isString)(optionsOrHash) || (0, util_1.isU8a)(optionsOrHash)) { + return decorateMethod(() => api.callAt(blockHash || optionsOrHash).pipe((0, rxjs_1.switchMap)((callAt) => { + const u8a = this.toU8a(); + return callAt.transactionPaymentApi.queryInfo(u8a, u8a.length); + }))); + } + const [allOptions] = makeSignAndSendOptions(optionsOrHash); + const address = (0, index_js_1.isKeyringPair)(account) ? account.address : account.toString(); + return decorateMethod(() => api.derive.tx.signingInfo(address, allOptions.nonce, allOptions.era).pipe((0, rxjs_1.first)(), (0, rxjs_1.switchMap)((signingInfo) => { + const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo); + const signOptions = makeSignOptions(api, eraOptions, {}); + const u8a = api.tx(this.toU8a()).signFake(address, signOptions).toU8a(); + return api.call.transactionPaymentApi.queryInfo(u8a, u8a.length); + })))(); + } + send(statusCb) { + const isSubscription2 = api.hasSubscriptions && (this.__internal__ignoreStatusCb || !!statusCb); + return decorateMethod(isSubscription2 ? this.__internal__observeSubscribe : this.__internal__observeSend)(statusCb); + } + signAsync(account, partialOptions) { + return decorateMethod(() => this.__internal__observeSign(account, partialOptions).pipe((0, rxjs_1.map)(() => this)))(); + } + signAndSend(account, partialOptions, optionalStatusCb) { + const [options, statusCb] = makeSignAndSendOptions(partialOptions, optionalStatusCb); + const isSubscription2 = api.hasSubscriptions && (this.__internal__ignoreStatusCb || !!statusCb); + return decorateMethod( + () => this.__internal__observeSign(account, options).pipe((0, rxjs_1.switchMap)((info) => isSubscription2 ? this.__internal__observeSubscribe(info) : this.__internal__observeSend(info))) + )(statusCb); + } + withResultTransform(transform) { + this.__internal__transformResult = transform; + return this; + } + __internal__observeSign = (account, partialOptions) => { + const address = (0, index_js_1.isKeyringPair)(account) ? account.address : account.toString(); + const options = optionsOrNonce(partialOptions); + return api.derive.tx.signingInfo(address, options.nonce, options.era).pipe((0, rxjs_1.first)(), (0, rxjs_1.mergeMap)(async (signingInfo) => { + const eraOptions = makeEraOptions(api, this.registry, options, signingInfo); + let updateId = -1; + if ((0, index_js_1.isKeyringPair)(account)) { + this.sign(account, eraOptions); + } else { + updateId = await this.__internal__signViaSigner(address, eraOptions, signingInfo.header); + } + return { options: eraOptions, updateId }; + })); + }; + __internal__observeStatus = (txHash, status) => { + if (!status.isFinalized && !status.isInBlock) { + return (0, rxjs_1.of)(this.__internal__transformResult(new Result_js_1.SubmittableResult({ + status, + txHash + }))); + } + const blockHash2 = status.isInBlock ? status.asInBlock : status.asFinalized; + return api.derive.tx.events(blockHash2).pipe((0, rxjs_1.map)(({ block, events }) => this.__internal__transformResult(new Result_js_1.SubmittableResult({ + ...(0, index_js_1.filterEvents)(txHash, block, events, status), + status, + txHash + }))), (0, rxjs_1.catchError)((internalError) => (0, rxjs_1.of)(this.__internal__transformResult(new Result_js_1.SubmittableResult({ + internalError, + status, + txHash + }))))); + }; + __internal__observeSend = (info) => { + return api.rpc.author.submitExtrinsic(this).pipe((0, rxjs_1.tap)((hash8) => { + this.__internal__updateSigner(hash8, info); + })); + }; + __internal__observeSubscribe = (info) => { + const txHash = this.hash; + return api.rpc.author.submitAndWatchExtrinsic(this).pipe((0, rxjs_1.switchMap)((status) => this.__internal__observeStatus(txHash, status)), (0, rxjs_1.tap)((status) => { + this.__internal__updateSigner(status, info); + })); + }; + __internal__signViaSigner = async (address, options, header) => { + const signer = options.signer || api.signer; + if (!signer) { + throw new Error("No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing."); + } + const payload = this.registry.createTypeUnsafe("SignerPayload", [(0, util_1.objectSpread)({}, options, { + address, + blockNumber: header ? header.number : 0, + method: this.method + })]); + let result; + if ((0, util_1.isFunction)(signer.signPayload)) { + result = await signer.signPayload(payload.toPayload()); + } else if ((0, util_1.isFunction)(signer.signRaw)) { + result = await signer.signRaw(payload.toRaw()); + } else { + throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)"); + } + super.addSignature(address, result.signature, payload.toPayload()); + return result.id; + }; + __internal__updateSigner = (status, info) => { + if (info && info.updateId !== -1) { + const { options, updateId } = info; + const signer = options.signer || api.signer; + if (signer && (0, util_1.isFunction)(signer.update)) { + signer.update(updateId, status); + } + } + }; + } + return Submittable; + } + exports2.createClass = createClass; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/createSubmittable.js + var require_createSubmittable = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/createSubmittable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createSubmittable = void 0; + var createClass_js_1 = require_createClass2(); + function createSubmittable(apiType, api, decorateMethod, registry, blockHash) { + const Submittable = (0, createClass_js_1.createClass)({ api, apiType, blockHash, decorateMethod }); + return (extrinsic) => new Submittable(registry || api.registry, extrinsic); + } + exports2.createSubmittable = createSubmittable; + } + }); + + // ../../node_modules/@polkadot/api/cjs/submittable/index.js + var require_submittable = __commonJS({ + "../../node_modules/@polkadot/api/cjs/submittable/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = exports2.createSubmittable = void 0; + var createSubmittable_js_1 = require_createSubmittable(); + Object.defineProperty(exports2, "createSubmittable", { enumerable: true, get: function() { + return createSubmittable_js_1.createSubmittable; + } }); + var Result_js_1 = require_Result2(); + Object.defineProperty(exports2, "SubmittableResult", { enumerable: true, get: function() { + return Result_js_1.SubmittableResult; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/find.js + var require_find2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/find.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.findError = exports2.findCall = void 0; + var util_1 = require_cjs3(); + function findCall(registry, callIndex) { + return registry.findMetaCall((0, util_1.u8aToU8a)(callIndex)); + } + exports2.findCall = findCall; + function findError(registry, errorIndex) { + return registry.findMetaError((0, util_1.u8aToU8a)(errorIndex)); + } + exports2.findError = findError; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/augmentObject.js + var require_augmentObject = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/augmentObject.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.augmentObject = void 0; + var util_1 = require_cjs3(); + var l15 = (0, util_1.logger)("api/augment"); + function logLength(type, values, and = []) { + return values.length ? ` ${values.length} ${type}${and.length ? " and" : ""}` : ""; + } + function logValues(type, values) { + return values.length ? ` + ${type.padStart(7)}: ${values.sort().join(", ")}` : ""; + } + function warn(prefix, type, [added, removed]) { + if (added.length || removed.length) { + l15.warn(`api.${prefix}: Found${logLength("added", added, removed)}${logLength("removed", removed)} ${type}:${logValues("added", added)}${logValues("removed", removed)}`); + } + } + function findSectionExcludes(a, b) { + return a.filter((s) => !b.includes(s)); + } + function findSectionIncludes(a, b) { + return a.filter((s) => b.includes(s)); + } + function extractSections(src, dst) { + const srcSections = Object.keys(src); + const dstSections = Object.keys(dst); + return [ + findSectionExcludes(srcSections, dstSections), + findSectionExcludes(dstSections, srcSections) + ]; + } + function findMethodExcludes(src, dst) { + const srcSections = Object.keys(src); + const dstSections = findSectionIncludes(Object.keys(dst), srcSections); + const excludes = []; + for (let s = 0, scount = dstSections.length; s < scount; s++) { + const section = dstSections[s]; + const srcMethods = Object.keys(src[section]); + const dstMethods = Object.keys(dst[section]); + for (let d = 0, mcount = dstMethods.length; d < mcount; d++) { + const method = dstMethods[d]; + if (!srcMethods.includes(method)) { + excludes.push(`${section}.${method}`); + } + } + } + return excludes; + } + function extractMethods(src, dst) { + return [ + findMethodExcludes(dst, src), + findMethodExcludes(src, dst) + ]; + } + function augmentObject(prefix, src, dst, fromEmpty = false) { + fromEmpty && (0, util_1.objectClear)(dst); + if (prefix && Object.keys(dst).length) { + warn(prefix, "modules", extractSections(src, dst)); + warn(prefix, "calls", extractMethods(src, dst)); + } + const sections = Object.keys(src); + for (let i = 0, count = sections.length; i < count; i++) { + const section = sections[i]; + const methods = src[section]; + if (!dst[section]) { + dst[section] = {}; + } + (0, util_1.lazyMethods)(dst[section], Object.keys(methods), (m) => methods[m]); + } + return dst; + } + exports2.augmentObject = augmentObject; + } + }); + + // ../../node_modules/@polkadot/api/cjs/util/validate.js + var require_validate3 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/util/validate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.extractStorageArgs = void 0; + var util_1 = require_cjs3(); + function sig({ lookup }, { method, section }, args) { + return `${section}.${method}(${args.map((a) => lookup.getTypeDef(a).type).join(", ")})`; + } + function extractStorageArgs(registry, creator, _args) { + const args = _args.filter((a) => !(0, util_1.isUndefined)(a)); + if (creator.meta.type.isPlain) { + if (args.length !== 0) { + throw new Error(`${sig(registry, creator, [])} does not take any arguments, ${args.length} found`); + } + } else { + const { hashers, key: key2 } = creator.meta.type.asMap; + const keys = hashers.length === 1 ? [key2] : registry.lookup.getSiType(key2).def.asTuple.map((t) => t); + if (args.length !== keys.length) { + throw new Error(`${sig(registry, creator, keys)} is a map, requiring ${keys.length} arguments, ${args.length} found`); + } + } + return [creator, args]; + } + exports2.extractStorageArgs = extractStorageArgs; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Events.js + var require_Events = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Events = void 0; + var eventemitter3_1 = require_eventemitter3(); + var Events = class { + __internal__eventemitter = new eventemitter3_1.EventEmitter(); + emit(type, ...args) { + return this.__internal__eventemitter.emit(type, ...args); + } + on(type, handler) { + this.__internal__eventemitter.on(type, handler); + return this; + } + off(type, handler) { + this.__internal__eventemitter.removeListener(type, handler); + return this; + } + once(type, handler) { + this.__internal__eventemitter.once(type, handler); + return this; + } + }; + exports2.Events = Events; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Decorate.js + var require_Decorate = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Decorate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Decorate = void 0; + var rxjs_1 = require_cjs7(); + var api_derive_1 = require_cjs12(); + var rpc_core_1 = require_cjs11(); + var rpc_provider_1 = require_cjs16(); + var types_1 = require_cjs10(); + var types_known_1 = require_cjs13(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var index_js_1 = require_submittable(); + var augmentObject_js_1 = require_augmentObject(); + var decorate_js_1 = require_decorate2(); + var validate_js_1 = require_validate3(); + var Events_js_1 = require_Events(); + var find_js_1 = require_find2(); + var PAGE_SIZE_K = 1e3; + var PAGE_SIZE_V = 250; + var PAGE_SIZE_Q = 50; + var l15 = (0, util_1.logger)("api/init"); + var instanceCounter = 0; + function getAtQueryFn(api, { method, section }) { + return (0, util_1.assertReturn)(api.rx.query[section] && api.rx.query[section][method], () => `query.${section}.${method} is not available in this version of the metadata`); + } + var Decorate = class extends Events_js_1.Events { + __internal__instanceId; + __internal__runtimeLog = {}; + __internal__registry; + __internal__storageGetQ = []; + __internal__storageSubQ = []; + __phantom = new util_1.BN(0); + _type; + _call = {}; + _consts = {}; + _derive; + _errors = {}; + _events = {}; + _extrinsics; + _extrinsicType = types_1.GenericExtrinsic.LATEST_EXTRINSIC_VERSION; + _genesisHash; + _isConnected; + _isReady = false; + _query = {}; + _queryMulti; + _rpc; + _rpcCore; + _runtimeMap = {}; + _runtimeChain; + _runtimeMetadata; + _runtimeVersion; + _rx = { call: {}, consts: {}, query: {}, tx: {} }; + _options; + _decorateMethod; + constructor(options, type, decorateMethod) { + super(); + this.__internal__instanceId = `${++instanceCounter}`; + this.__internal__registry = options.source?.registry || options.registry || new types_1.TypeRegistry(); + this._rx.callAt = (blockHash, knownVersion) => (0, rxjs_1.from)(this.at(blockHash, knownVersion)).pipe((0, rxjs_1.map)((a) => a.rx.call)); + this._rx.queryAt = (blockHash, knownVersion) => (0, rxjs_1.from)(this.at(blockHash, knownVersion)).pipe((0, rxjs_1.map)((a) => a.rx.query)); + this._rx.registry = this.__internal__registry; + this._decorateMethod = decorateMethod; + this._options = options; + this._type = type; + const provider = options.source ? options.source._rpcCore.provider.isClonable ? options.source._rpcCore.provider.clone() : options.source._rpcCore.provider : options.provider || new rpc_provider_1.WsProvider(); + this._rpcCore = new rpc_core_1.RpcCore(this.__internal__instanceId, this.__internal__registry, { + isPedantic: this._options.isPedantic, + provider, + userRpc: this._options.rpc + }); + this._isConnected = new rxjs_1.BehaviorSubject(this._rpcCore.provider.isConnected); + this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions; + } + get registry() { + return this.__internal__registry; + } + createType(type, ...params) { + return this.__internal__registry.createType(type, ...params); + } + registerTypes(types2) { + types2 && this.__internal__registry.register(types2); + } + get hasSubscriptions() { + return this._rpcCore.provider.hasSubscriptions; + } + get supportMulti() { + return this._rpcCore.provider.hasSubscriptions || !!this._rpcCore.state.queryStorageAt; + } + _emptyDecorated(registry, blockHash) { + return { + call: {}, + consts: {}, + errors: {}, + events: {}, + query: {}, + registry, + rx: { + call: {}, + query: {} + }, + tx: (0, index_js_1.createSubmittable)(this._type, this._rx, this._decorateMethod, registry, blockHash) + }; + } + _createDecorated(registry, fromEmpty, decoratedApi, blockHash) { + if (!decoratedApi) { + decoratedApi = this._emptyDecorated(registry.registry, blockHash); + } + if (fromEmpty || !registry.decoratedMeta) { + registry.decoratedMeta = (0, types_1.expandMetadata)(registry.registry, registry.metadata); + } + const runtime34 = this._decorateCalls(registry, this._decorateMethod, blockHash); + const runtimeRx = this._decorateCalls(registry, this._rxDecorateMethod, blockHash); + const storage = this._decorateStorage(registry.decoratedMeta, this._decorateMethod, blockHash); + const storageRx = this._decorateStorage(registry.decoratedMeta, this._rxDecorateMethod, blockHash); + (0, augmentObject_js_1.augmentObject)("consts", registry.decoratedMeta.consts, decoratedApi.consts, fromEmpty); + (0, augmentObject_js_1.augmentObject)("errors", registry.decoratedMeta.errors, decoratedApi.errors, fromEmpty); + (0, augmentObject_js_1.augmentObject)("events", registry.decoratedMeta.events, decoratedApi.events, fromEmpty); + (0, augmentObject_js_1.augmentObject)("query", storage, decoratedApi.query, fromEmpty); + (0, augmentObject_js_1.augmentObject)("query", storageRx, decoratedApi.rx.query, fromEmpty); + (0, augmentObject_js_1.augmentObject)("call", runtime34, decoratedApi.call, fromEmpty); + (0, augmentObject_js_1.augmentObject)("call", runtimeRx, decoratedApi.rx.call, fromEmpty); + decoratedApi.findCall = (callIndex) => (0, find_js_1.findCall)(registry.registry, callIndex); + decoratedApi.findError = (errorIndex) => (0, find_js_1.findError)(registry.registry, errorIndex); + decoratedApi.queryMulti = blockHash ? this._decorateMultiAt(decoratedApi, this._decorateMethod, blockHash) : this._decorateMulti(this._decorateMethod); + decoratedApi.runtimeVersion = registry.runtimeVersion; + return { + createdAt: blockHash, + decoratedApi, + decoratedMeta: registry.decoratedMeta + }; + } + _injectMetadata(registry, fromEmpty = false) { + if (fromEmpty || !registry.decoratedApi) { + registry.decoratedApi = this._emptyDecorated(registry.registry); + } + const { decoratedApi, decoratedMeta } = this._createDecorated(registry, fromEmpty, registry.decoratedApi); + this._call = decoratedApi.call; + this._consts = decoratedApi.consts; + this._errors = decoratedApi.errors; + this._events = decoratedApi.events; + this._query = decoratedApi.query; + this._rx.call = decoratedApi.rx.call; + this._rx.query = decoratedApi.rx.query; + const tx2 = this._decorateExtrinsics(decoratedMeta, this._decorateMethod); + const rxtx = this._decorateExtrinsics(decoratedMeta, this._rxDecorateMethod); + if (fromEmpty || !this._extrinsics) { + this._extrinsics = tx2; + this._rx.tx = rxtx; + } else { + (0, augmentObject_js_1.augmentObject)("tx", tx2, this._extrinsics, false); + (0, augmentObject_js_1.augmentObject)(null, rxtx, this._rx.tx, false); + } + (0, augmentObject_js_1.augmentObject)(null, decoratedMeta.consts, this._rx.consts, fromEmpty); + this.emit("decorated"); + } + injectMetadata(metadata, fromEmpty, registry) { + this._injectMetadata({ counter: 0, metadata, registry: registry || this.__internal__registry, runtimeVersion: this.__internal__registry.createType("RuntimeVersionPartial") }, fromEmpty); + } + _decorateFunctionMeta(input, output4) { + output4.meta = input.meta; + output4.method = input.method; + output4.section = input.section; + output4.toJSON = input.toJSON; + if (input.callIndex) { + output4.callIndex = input.callIndex; + } + return output4; + } + _filterRpc(methods, additional) { + if (Object.keys(additional).length !== 0) { + this._rpcCore.addUserInterfaces(additional); + this._decorateRpc(this._rpcCore, this._decorateMethod, this._rpc); + this._decorateRpc(this._rpcCore, this._rxDecorateMethod, this._rx.rpc); + } + const sectionMap = {}; + for (let i = 0, count = methods.length; i < count; i++) { + const [section] = methods[i].split("_"); + sectionMap[section] = true; + } + const sections = Object.keys(sectionMap); + for (let i = 0, count = sections.length; i < count; i++) { + const nameA = (0, util_1.stringUpperFirst)(sections[i]); + const nameB = `${nameA}Api`; + this._runtimeMap[(0, util_crypto_1.blake2AsHex)(nameA, 64)] = nameA; + this._runtimeMap[(0, util_crypto_1.blake2AsHex)(nameB, 64)] = nameB; + } + this._filterRpcMethods(methods); + } + _filterRpcMethods(exposed) { + const hasResults = exposed.length !== 0; + const allKnown = [...this._rpcCore.mapping.entries()]; + const allKeys = []; + const count = allKnown.length; + for (let i = 0; i < count; i++) { + const [, { alias: alias2, endpoint, method, pubsub, section }] = allKnown[i]; + allKeys.push(`${section}_${method}`); + if (pubsub) { + allKeys.push(`${section}_${pubsub[1]}`); + allKeys.push(`${section}_${pubsub[2]}`); + } + if (alias2) { + allKeys.push(...alias2); + } + if (endpoint) { + allKeys.push(endpoint); + } + } + const unknown = exposed.filter((k) => !allKeys.includes(k) && !k.includes("_unstable_")); + if (unknown.length && !this._options.noInitWarn) { + l15.warn(`RPC methods not decorated: ${unknown.join(", ")}`); + } + for (let i = 0; i < count; i++) { + const [k, { method, section }] = allKnown[i]; + if (hasResults && !exposed.includes(k) && k !== "rpc_methods") { + if (this._rpc[section]) { + delete this._rpc[section][method]; + delete this._rx.rpc[section][method]; + } + } + } + } + _rpcSubmitter(decorateMethod) { + const method = (method2, ...params) => { + return (0, rxjs_1.from)(this._rpcCore.provider.send(method2, params)); + }; + return decorateMethod(method); + } + _decorateRpc(rpc18, decorateMethod, input = this._rpcSubmitter(decorateMethod)) { + const out = input; + const decorateFn = (section, method) => { + const source = rpc18[section][method]; + const fn2 = decorateMethod(source, { methodName: method }); + fn2.meta = source.meta; + fn2.raw = decorateMethod(source.raw, { methodName: method }); + return fn2; + }; + for (let s = 0, scount = rpc18.sections.length; s < scount; s++) { + const section = rpc18.sections[s]; + if (!Object.prototype.hasOwnProperty.call(out, section)) { + const methods = Object.keys(rpc18[section]); + const decorateInternal = (method) => decorateFn(section, method); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const method = methods[m]; + if (this.hasSubscriptions || !(method.startsWith("subscribe") || method.startsWith("unsubscribe"))) { + if (!Object.prototype.hasOwnProperty.call(out, section)) { + out[section] = {}; + } + (0, util_1.lazyMethod)(out[section], method, decorateInternal); + } + } + } + } + return out; + } + _addRuntimeDef(result, additional) { + if (!additional) { + return; + } + const entries = Object.entries(additional); + for (let j10 = 0, ecount = entries.length; j10 < ecount; j10++) { + const [key2, defs] = entries[j10]; + if (result[key2]) { + for (let k = 0, dcount = defs.length; k < dcount; k++) { + const def = defs[k]; + const prev = result[key2].find(({ version: version23 }) => def.version === version23); + if (prev) { + (0, util_1.objectSpread)(prev.methods, def.methods); + } else { + result[key2].push(def); + } + } + } else { + result[key2] = defs; + } + } + } + _getRuntimeDefs(registry, specName, chain4 = "") { + const result = {}; + const defValues = Object.values(types_1.typeDefinitions); + for (let i = 0, count = defValues.length; i < count; i++) { + this._addRuntimeDef(result, defValues[i].runtime); + } + this._addRuntimeDef(result, (0, types_known_1.getSpecRuntime)(registry, chain4, specName)); + this._addRuntimeDef(result, this._options.runtime); + return Object.entries(result); + } + _decorateCalls({ registry, runtimeVersion: { apis, specName, specVersion } }, decorateMethod, blockHash) { + const result = {}; + const named = {}; + const hashes = {}; + const sections = this._getRuntimeDefs(registry, specName, this._runtimeChain); + const older = []; + const implName = `${specName.toString()}/${specVersion.toString()}`; + const hasLogged = this.__internal__runtimeLog[implName] || false; + this.__internal__runtimeLog[implName] = true; + for (let i = 0, scount = sections.length; i < scount; i++) { + const [_section, secs] = sections[i]; + const sectionHash = (0, util_crypto_1.blake2AsHex)(_section, 64); + const rtApi = apis.find(([a]) => a.eq(sectionHash)); + hashes[sectionHash] = true; + if (rtApi) { + const all = secs.map(({ version: version23 }) => version23).sort(); + const sec = secs.find(({ version: version23 }) => rtApi[1].eq(version23)); + if (sec) { + const section = (0, util_1.stringCamelCase)(_section); + const methods = Object.entries(sec.methods); + if (methods.length) { + if (!named[section]) { + named[section] = {}; + } + for (let m = 0, mcount = methods.length; m < mcount; m++) { + const [_method, def] = methods[m]; + const method = (0, util_1.stringCamelCase)(_method); + named[section][method] = (0, util_1.objectSpread)({ method, name: `${_section}_${_method}`, section, sectionHash }, def); + } + } + } else { + older.push(`${_section}/${rtApi[1].toString()} (${all.join("/")} known)`); + } + } + } + const notFound = apis.map(([a, v]) => [a.toHex(), v.toString()]).filter(([a]) => !hashes[a]).map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`); + if (!this._options.noInitWarn && !hasLogged) { + if (older.length) { + l15.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(", ")}`); + } + if (notFound.length) { + l15.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(", ")}`); + } + } + const stateCall = blockHash ? (name6, bytes5) => this._rpcCore.state.call(name6, bytes5, blockHash) : (name6, bytes5) => this._rpcCore.state.call(name6, bytes5); + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(named[section]), (method) => this._decorateCall(registry, named[section][method], stateCall, decorateMethod)); + const modules = Object.keys(named); + for (let i = 0, count = modules.length; i < count; i++) { + (0, util_1.lazyMethod)(result, modules[i], lazySection); + } + return result; + } + _decorateCall(registry, def, stateCall, decorateMethod) { + const decorated = decorateMethod((...args) => { + if (args.length !== def.params.length) { + throw new Error(`${def.name}:: Expected ${def.params.length} arguments, found ${args.length}`); + } + const bytes5 = registry.createType("Raw", (0, util_1.u8aConcatStrict)(args.map((a, i) => registry.createTypeUnsafe(def.params[i].type, [a]).toU8a()))); + return stateCall(def.name, bytes5).pipe((0, rxjs_1.map)((r10) => registry.createTypeUnsafe(def.type, [r10]))); + }); + decorated.meta = def; + return decorated; + } + _decorateMulti(decorateMethod) { + return decorateMethod((keys) => keys.length ? (this.hasSubscriptions ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt)(keys.map((args) => Array.isArray(args) ? args[0].creator.meta.type.isPlain ? [args[0].creator] : args[0].creator.meta.type.asMap.hashers.length === 1 ? [args[0].creator, args.slice(1)] : [args[0].creator, ...args.slice(1)] : [args.creator])) : (0, rxjs_1.of)([])); + } + _decorateMultiAt(atApi, decorateMethod, blockHash) { + return decorateMethod((calls) => calls.length ? this._rpcCore.state.queryStorageAt(calls.map((args) => { + if (Array.isArray(args)) { + const { creator } = getAtQueryFn(atApi, args[0].creator); + return creator.meta.type.isPlain ? [creator] : creator.meta.type.asMap.hashers.length === 1 ? [creator, args.slice(1)] : [creator, ...args.slice(1)]; + } + return [getAtQueryFn(atApi, args.creator).creator]; + }), blockHash) : (0, rxjs_1.of)([])); + } + _decorateExtrinsics({ tx: tx2 }, decorateMethod) { + const result = (0, index_js_1.createSubmittable)(this._type, this._rx, decorateMethod); + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(tx2[section]), (method) => method.startsWith("$") ? tx2[section][method] : this._decorateExtrinsicEntry(tx2[section][method], result)); + const sections = Object.keys(tx2); + for (let i = 0, count = sections.length; i < count; i++) { + (0, util_1.lazyMethod)(result, sections[i], lazySection); + } + return result; + } + _decorateExtrinsicEntry(method, creator) { + const decorated = (...params) => creator(method(...params)); + decorated.is = (other) => method.is(other); + return this._decorateFunctionMeta(method, decorated); + } + _decorateStorage({ query, registry }, decorateMethod, blockHash) { + const result = {}; + const lazySection = (section) => (0, util_1.lazyMethods)({}, Object.keys(query[section]), (method) => blockHash ? this._decorateStorageEntryAt(registry, query[section][method], decorateMethod, blockHash) : this._decorateStorageEntry(query[section][method], decorateMethod)); + const sections = Object.keys(query); + for (let i = 0, count = sections.length; i < count; i++) { + (0, util_1.lazyMethod)(result, sections[i], lazySection); + } + return result; + } + _decorateStorageEntry(creator, decorateMethod) { + const getArgs = (args, registry) => (0, validate_js_1.extractStorageArgs)(registry || this.__internal__registry, creator, args); + const getQueryAt = (blockHash) => (0, rxjs_1.from)(this.at(blockHash)).pipe((0, rxjs_1.map)((api) => getAtQueryFn(api, creator))); + const decorated = this._decorateStorageCall(creator, decorateMethod); + decorated.creator = creator; + decorated.at = decorateMethod((blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => q(...args)))); + decorated.hash = decorateMethod((...args) => this._rpcCore.state.getStorageHash(getArgs(args))); + decorated.is = (key2) => key2.section === creator.section && key2.method === creator.method; + decorated.key = (...args) => (0, util_1.u8aToHex)((0, util_1.compactStripLength)(creator(...args))[1]); + decorated.keyPrefix = (...args) => (0, util_1.u8aToHex)(creator.keyPrefix(...args)); + decorated.size = decorateMethod((...args) => this._rpcCore.state.getStorageSize(getArgs(args))); + decorated.sizeAt = decorateMethod((blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._rpcCore.state.getStorageSize(getArgs(args, q.creator.meta.registry), blockHash)))); + if (creator.iterKey && creator.meta.type.isMap) { + decorated.entries = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapEntries(creator, null, args))); + decorated.entriesAt = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._retrieveMapEntries(q.creator, blockHash, args))))); + decorated.entriesPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapEntriesPaged(creator, void 0, opts))); + decorated.keys = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapKeys(creator, null, args))); + decorated.keysAt = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (blockHash, ...args) => getQueryAt(blockHash).pipe((0, rxjs_1.switchMap)((q) => this._retrieveMapKeys(q.creator, blockHash, args))))); + decorated.keysPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapKeysPaged(creator, void 0, opts))); + } + if (this.supportMulti && creator.meta.type.isMap) { + decorated.multi = decorateMethod((args) => creator.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(args.map((a) => [creator, [a]])) : this._retrieveMulti(args.map((a) => [creator, a]))); + } + return this._decorateFunctionMeta(creator, decorated); + } + _decorateStorageEntryAt(registry, creator, decorateMethod, blockHash) { + const getArgs = (args) => (0, validate_js_1.extractStorageArgs)(registry, creator, args); + const decorated = decorateMethod((...args) => this._rpcCore.state.getStorage(getArgs(args), blockHash)); + decorated.creator = creator; + decorated.hash = decorateMethod((...args) => this._rpcCore.state.getStorageHash(getArgs(args), blockHash)); + decorated.is = (key2) => key2.section === creator.section && key2.method === creator.method; + decorated.key = (...args) => (0, util_1.u8aToHex)((0, util_1.compactStripLength)(creator(...args))[1]); + decorated.keyPrefix = (...keys) => (0, util_1.u8aToHex)(creator.keyPrefix(...keys)); + decorated.size = decorateMethod((...args) => this._rpcCore.state.getStorageSize(getArgs(args), blockHash)); + if (creator.iterKey && creator.meta.type.isMap) { + decorated.entries = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapEntries(creator, blockHash, args))); + decorated.entriesPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapEntriesPaged(creator, blockHash, opts))); + decorated.keys = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => this._retrieveMapKeys(creator, blockHash, args))); + decorated.keysPaged = decorateMethod((0, rpc_core_1.memo)(this.__internal__instanceId, (opts) => this._retrieveMapKeysPaged(creator, blockHash, opts))); + } + if (this.supportMulti && creator.meta.type.isMap) { + decorated.multi = decorateMethod((args) => creator.meta.type.asMap.hashers.length === 1 ? this._retrieveMulti(args.map((a) => [creator, [a]]), blockHash) : this._retrieveMulti(args.map((a) => [creator, a]), blockHash)); + } + return this._decorateFunctionMeta(creator, decorated); + } + _queueStorage(call, queue) { + const query = queue === this.__internal__storageSubQ ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; + let queueIdx = queue.length - 1; + let valueIdx = 0; + let valueObs; + if (queueIdx === -1 || !queue[queueIdx] || queue[queueIdx][1].length === PAGE_SIZE_Q) { + queueIdx++; + valueObs = (0, rxjs_1.from)( + new Promise((resolve) => { + (0, util_1.nextTick)(() => { + const calls = queue[queueIdx][1]; + delete queue[queueIdx]; + resolve(calls); + }); + }) + ).pipe((0, rxjs_1.switchMap)((calls) => query(calls))); + queue.push([valueObs, [call]]); + } else { + valueObs = queue[queueIdx][0]; + valueIdx = queue[queueIdx][1].length; + queue[queueIdx][1].push(call); + } + return valueObs.pipe( + (0, rxjs_1.map)((values) => values[valueIdx]) + ); + } + _decorateStorageCall(creator, decorateMethod) { + const memoed = (0, rpc_core_1.memo)(this.__internal__instanceId, (...args) => { + const call = (0, validate_js_1.extractStorageArgs)(this.__internal__registry, creator, args); + if (!this.hasSubscriptions) { + return this._rpcCore.state.getStorage(call); + } + return this._queueStorage(call, this.__internal__storageSubQ); + }); + return decorateMethod(memoed, { + methodName: creator.method, + overrideNoSub: (...args) => this._queueStorage((0, validate_js_1.extractStorageArgs)(this.__internal__registry, creator, args), this.__internal__storageGetQ) + }); + } + _retrieveMulti(keys, blockHash) { + if (!keys.length) { + return (0, rxjs_1.of)([]); + } + const query = this.hasSubscriptions && !blockHash ? this._rpcCore.state.subscribeStorage : this._rpcCore.state.queryStorageAt; + if (keys.length <= PAGE_SIZE_V) { + return blockHash ? query(keys, blockHash) : query(keys); + } + return (0, rxjs_1.combineLatest)((0, util_1.arrayChunk)(keys, PAGE_SIZE_V).map((k) => blockHash ? query(k, blockHash) : query(k))).pipe((0, rxjs_1.map)(util_1.arrayFlatten)); + } + _retrieveMapKeys({ iterKey, meta: meta2, method, section }, at, args) { + if (!iterKey || !meta2.type.isMap) { + throw new Error("keys can only be retrieved on maps"); + } + const headKey = iterKey(...args).toHex(); + const startSubject = new rxjs_1.BehaviorSubject(headKey); + const query = at ? (startKey) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey, at) : (startKey) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey); + const setMeta = (key2) => key2.setMeta(meta2, section, method); + return startSubject.pipe( + (0, rxjs_1.switchMap)(query), + (0, rxjs_1.map)((keys) => keys.map(setMeta)), + (0, rxjs_1.tap)((keys) => (0, util_1.nextTick)(() => { + keys.length === PAGE_SIZE_K ? startSubject.next(keys[PAGE_SIZE_K - 1].toHex()) : startSubject.complete(); + })), + (0, rxjs_1.toArray)(), + (0, rxjs_1.map)(util_1.arrayFlatten) + ); + } + _retrieveMapKeysPaged({ iterKey, meta: meta2, method, section }, at, opts) { + if (!iterKey || !meta2.type.isMap) { + throw new Error("keys can only be retrieved on maps"); + } + const setMeta = (key2) => key2.setMeta(meta2, section, method); + const query = at ? (headKey) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey, at) : (headKey) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey); + return query(iterKey(...opts.args).toHex()).pipe((0, rxjs_1.map)((keys) => keys.map(setMeta))); + } + _retrieveMapEntries(entry, at, args) { + const query = at ? (keys) => this._rpcCore.state.queryStorageAt(keys, at) : (keys) => this._rpcCore.state.queryStorageAt(keys); + return this._retrieveMapKeys(entry, at, args).pipe((0, rxjs_1.switchMap)((keys) => keys.length ? (0, rxjs_1.combineLatest)((0, util_1.arrayChunk)(keys, PAGE_SIZE_V).map(query)).pipe((0, rxjs_1.map)((valsArr) => (0, util_1.arrayFlatten)(valsArr).map((value, index) => [keys[index], value]))) : (0, rxjs_1.of)([]))); + } + _retrieveMapEntriesPaged(entry, at, opts) { + const query = at ? (keys) => this._rpcCore.state.queryStorageAt(keys, at) : (keys) => this._rpcCore.state.queryStorageAt(keys); + return this._retrieveMapKeysPaged(entry, at, opts).pipe((0, rxjs_1.switchMap)((keys) => keys.length ? query(keys).pipe((0, rxjs_1.map)((valsArr) => valsArr.map((value, index) => [keys[index], value]))) : (0, rxjs_1.of)([]))); + } + _decorateDeriveRx(decorateMethod) { + const specName = this._runtimeVersion?.specName.toString(); + const available = (0, api_derive_1.getAvailableDerives)(this.__internal__instanceId, this._rx, (0, util_1.objectSpread)({}, this._options.derives, this._options.typesBundle?.spec?.[specName || ""]?.derives)); + return (0, decorate_js_1.decorateDeriveSections)(decorateMethod, available); + } + _decorateDerive(decorateMethod) { + return (0, decorate_js_1.decorateDeriveSections)(decorateMethod, this._rx.derive); + } + _rxDecorateMethod = (method) => { + return method; + }; + }; + exports2.Decorate = Decorate; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Init.js + var require_Init = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Init.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Init = void 0; + var rxjs_1 = require_cjs7(); + var types_1 = require_cjs10(); + var types_known_1 = require_cjs13(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + var Decorate_js_1 = require_Decorate(); + var KEEPALIVE_INTERVAL = 1e4; + var WITH_VERSION_SHORTCUT = false; + var l15 = (0, util_1.logger)("api/init"); + function textToString(t) { + return t.toString(); + } + var Init = class extends Decorate_js_1.Decorate { + __internal__atLast = null; + __internal__healthTimer = null; + __internal__registries = []; + __internal__updateSub = null; + __internal__waitingRegistries = {}; + constructor(options, type, decorateMethod) { + super(options, type, decorateMethod); + this.registry.setKnownTypes(options); + if (!options.source) { + this.registerTypes(options.types); + } else { + this.__internal__registries = options.source.__internal__registries; + } + this._rpc = this._decorateRpc(this._rpcCore, this._decorateMethod); + this._rx.rpc = this._decorateRpc(this._rpcCore, this._rxDecorateMethod); + if (this.supportMulti) { + this._queryMulti = this._decorateMulti(this._decorateMethod); + this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod); + } + this._rx.signer = options.signer; + this._rpcCore.setRegistrySwap((blockHash) => this.getBlockRegistry(blockHash)); + this._rpcCore.setResolveBlockHash((blockNumber) => (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getBlockHash(blockNumber))); + if (this.hasSubscriptions) { + this._rpcCore.provider.on("disconnected", () => this.__internal__onProviderDisconnect()); + this._rpcCore.provider.on("error", (e) => this.__internal__onProviderError(e)); + this._rpcCore.provider.on("connected", () => this.__internal__onProviderConnect()); + } else if (!this._options.noInitWarn) { + l15.warn("Api will be available in a limited mode since the provider does not support subscriptions"); + } + if (this._rpcCore.provider.isConnected) { + this.__internal__onProviderConnect().catch(util_1.noop); + } + } + _initRegistry(registry, chain4, version23, metadata, chainProps) { + registry.clearCache(); + registry.setChainProperties(chainProps || this.registry.getChainProperties()); + registry.setKnownTypes(this._options); + registry.register((0, types_known_1.getSpecTypes)(registry, chain4, version23.specName, version23.specVersion)); + registry.setHasher((0, types_known_1.getSpecHasher)(registry, chain4, version23.specName)); + if (registry.knownTypes.typesBundle) { + registry.knownTypes.typesAlias = (0, types_known_1.getSpecAlias)(registry, chain4, version23.specName); + } + registry.setMetadata(metadata, void 0, (0, util_1.objectSpread)({}, (0, types_known_1.getSpecExtensions)(registry, chain4, version23.specName), this._options.signedExtensions), this._options.noInitWarn); + } + _getDefaultRegistry() { + return (0, util_1.assertReturn)(this.__internal__registries.find(({ isDefault }) => isDefault), "Initialization error, cannot find the default registry"); + } + async at(blockHash, knownVersion) { + const u8aHash = (0, util_1.u8aToU8a)(blockHash); + const u8aHex = (0, util_1.u8aToHex)(u8aHash); + const registry = await this.getBlockRegistry(u8aHash, knownVersion); + if (!this.__internal__atLast || this.__internal__atLast[0] !== u8aHex) { + this.__internal__atLast = [u8aHex, this._createDecorated(registry, true, null, u8aHash).decoratedApi]; + } + return this.__internal__atLast[1]; + } + async _createBlockRegistry(blockHash, header, version23) { + const registry = new types_1.TypeRegistry(blockHash); + const metadata = new types_1.Metadata(registry, await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata.raw(header.parentHash))); + const runtimeChain = this._runtimeChain; + if (!runtimeChain) { + throw new Error("Invalid initializion order, runtimeChain is not available"); + } + this._initRegistry(registry, runtimeChain, version23, metadata); + const result = { counter: 0, lastBlockHash: blockHash, metadata, registry, runtimeVersion: version23 }; + this.__internal__registries.push(result); + return result; + } + _cacheBlockRegistryProgress(key2, creator) { + let waiting = this.__internal__waitingRegistries[key2]; + if ((0, util_1.isUndefined)(waiting)) { + waiting = this.__internal__waitingRegistries[key2] = new Promise((resolve, reject) => { + creator().then((registry) => { + delete this.__internal__waitingRegistries[key2]; + resolve(registry); + }).catch((error) => { + delete this.__internal__waitingRegistries[key2]; + reject(error); + }); + }); + } + return waiting; + } + _getBlockRegistryViaVersion(blockHash, version23) { + if (version23) { + const existingViaVersion = this.__internal__registries.find(({ runtimeVersion: { specName, specVersion } }) => specName.eq(version23.specName) && specVersion.eq(version23.specVersion)); + if (existingViaVersion) { + existingViaVersion.counter++; + existingViaVersion.lastBlockHash = blockHash; + return existingViaVersion; + } + } + return null; + } + async _getBlockRegistryViaHash(blockHash) { + if (!this._genesisHash || !this._runtimeVersion) { + throw new Error("Cannot retrieve data on an uninitialized chain"); + } + const header = this.registry.createType("HeaderPartial", this._genesisHash.eq(blockHash) ? { number: util_1.BN_ZERO, parentHash: this._genesisHash } : await (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getHeader.raw(blockHash))); + if (header.parentHash.isEmpty) { + throw new Error("Unable to retrieve header and parent from supplied hash"); + } + const [firstVersion, lastVersion] = (0, types_known_1.getUpgradeVersion)(this._genesisHash, header.number); + const version23 = this.registry.createType("RuntimeVersionPartial", WITH_VERSION_SHORTCUT && (firstVersion && (lastVersion || firstVersion.specVersion.eq(this._runtimeVersion.specVersion))) ? { apis: firstVersion.apis, specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion } : await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))); + return this._getBlockRegistryViaVersion(blockHash, version23) || await this._cacheBlockRegistryProgress(version23.toHex(), () => this._createBlockRegistry(blockHash, header, version23)); + } + async getBlockRegistry(blockHash, knownVersion) { + return this.__internal__registries.find(({ lastBlockHash }) => lastBlockHash && (0, util_1.u8aEq)(lastBlockHash, blockHash)) || this._getBlockRegistryViaVersion(blockHash, knownVersion) || await this._cacheBlockRegistryProgress((0, util_1.u8aToHex)(blockHash), () => this._getBlockRegistryViaHash(blockHash)); + } + async _loadMeta() { + if (this._isReady) { + return true; + } + this._unsubscribeUpdates(); + [this._genesisHash, this._runtimeMetadata] = this._options.source?._isReady ? await this._metaFromSource(this._options.source) : await this._metaFromChain(this._options.metadata); + return this._initFromMeta(this._runtimeMetadata); + } + async _metaFromSource(source) { + this._extrinsicType = source.extrinsicVersion; + this._runtimeChain = source.runtimeChain; + this._runtimeVersion = source.runtimeVersion; + const sections = Object.keys(source.rpc); + const rpcs = []; + for (let s = 0, scount = sections.length; s < scount; s++) { + const section = sections[s]; + const methods = Object.keys(source.rpc[section]); + for (let m = 0, mcount = methods.length; m < mcount; m++) { + rpcs.push(`${section}_${methods[m]}`); + } + } + this._filterRpc(rpcs, (0, types_known_1.getSpecRpc)(this.registry, source.runtimeChain, source.runtimeVersion.specName)); + return [source.genesisHash, source.runtimeMetadata]; + } + _subscribeUpdates() { + if (this.__internal__updateSub || !this.hasSubscriptions) { + return; + } + this.__internal__updateSub = this._rpcCore.state.subscribeRuntimeVersion().pipe((0, rxjs_1.switchMap)((version23) => this._runtimeVersion?.specVersion.eq(version23.specVersion) ? (0, rxjs_1.of)(false) : this._rpcCore.state.getMetadata().pipe((0, rxjs_1.map)((metadata) => { + l15.log(`Runtime version updated to spec=${version23.specVersion.toString()}, tx=${version23.transactionVersion.toString()}`); + this._runtimeMetadata = metadata; + this._runtimeVersion = version23; + this._rx.runtimeVersion = version23; + const thisRegistry = this._getDefaultRegistry(); + const runtimeChain = this._runtimeChain; + if (!runtimeChain) { + throw new Error("Invalid initializion order, runtimeChain is not available"); + } + thisRegistry.metadata = metadata; + thisRegistry.runtimeVersion = version23; + this._initRegistry(this.registry, runtimeChain, version23, metadata); + this._injectMetadata(thisRegistry, true); + return true; + })))).subscribe(); + } + async _metaFromChain(optMetadata) { + const [genesisHash, runtimeVersion, chain4, chainProps, rpcMethods, chainMetadata] = await Promise.all([ + (0, rxjs_1.firstValueFrom)(this._rpcCore.chain.getBlockHash(0)), + (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getRuntimeVersion()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.chain()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.properties()), + (0, rxjs_1.firstValueFrom)(this._rpcCore.rpc.methods()), + optMetadata ? Promise.resolve(null) : (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata()) + ]); + this._runtimeChain = chain4; + this._runtimeVersion = runtimeVersion; + this._rx.runtimeVersion = runtimeVersion; + const metadataKey = `${genesisHash.toHex() || "0x"}-${runtimeVersion.specVersion.toString()}`; + const metadata = chainMetadata || (optMetadata?.[metadataKey] ? new types_1.Metadata(this.registry, optMetadata[metadataKey]) : await (0, rxjs_1.firstValueFrom)(this._rpcCore.state.getMetadata())); + this._initRegistry(this.registry, chain4, runtimeVersion, metadata, chainProps); + this._filterRpc(rpcMethods.methods.map(textToString), (0, types_known_1.getSpecRpc)(this.registry, chain4, runtimeVersion.specName)); + this._subscribeUpdates(); + if (!this.__internal__registries.length) { + this.__internal__registries.push({ counter: 0, isDefault: true, metadata, registry: this.registry, runtimeVersion }); + } + metadata.getUniqTypes(this._options.throwOnUnknown || false); + return [genesisHash, metadata]; + } + _initFromMeta(metadata) { + const runtimeVersion = this._runtimeVersion; + if (!runtimeVersion) { + throw new Error("Invalid initializion order, runtimeVersion is not available"); + } + this._extrinsicType = metadata.asLatest.extrinsic.version.toNumber(); + this._rx.extrinsicType = this._extrinsicType; + this._rx.genesisHash = this._genesisHash; + this._rx.runtimeVersion = runtimeVersion; + this._injectMetadata(this._getDefaultRegistry(), true); + this._rx.derive = this._decorateDeriveRx(this._rxDecorateMethod); + this._derive = this._decorateDerive(this._decorateMethod); + return true; + } + _subscribeHealth() { + this._unsubscribeHealth(); + this.__internal__healthTimer = this.hasSubscriptions ? setInterval(() => { + (0, rxjs_1.firstValueFrom)(this._rpcCore.system.health.raw()).catch(util_1.noop); + }, KEEPALIVE_INTERVAL) : null; + } + _unsubscribeHealth() { + if (this.__internal__healthTimer) { + clearInterval(this.__internal__healthTimer); + this.__internal__healthTimer = null; + } + } + _unsubscribeUpdates() { + if (this.__internal__updateSub) { + this.__internal__updateSub.unsubscribe(); + this.__internal__updateSub = null; + } + } + _unsubscribe() { + this._unsubscribeHealth(); + this._unsubscribeUpdates(); + } + async __internal__onProviderConnect() { + this._isConnected.next(true); + this.emit("connected"); + try { + const cryptoReady = this._options.initWasm === false ? true : await (0, util_crypto_1.cryptoWaitReady)(); + const hasMeta = await this._loadMeta(); + this._subscribeHealth(); + if (hasMeta && !this._isReady && cryptoReady) { + this._isReady = true; + this.emit("ready", this); + } + } catch (_error) { + const error = new Error(`FATAL: Unable to initialize the API: ${_error.message}`); + l15.error(error); + this.emit("error", error); + } + } + __internal__onProviderDisconnect() { + this._isConnected.next(false); + this._unsubscribe(); + this.emit("disconnected"); + } + __internal__onProviderError(error) { + this.emit("error", error); + } + }; + exports2.Init = Init; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/Getters.js + var require_Getters = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/Getters.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Getters = void 0; + var packageInfo_js_1 = require_packageInfo19(); + var find_js_1 = require_find2(); + var Init_js_1 = require_Init(); + function assertResult(value) { + if (value === void 0) { + throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'"); + } + return value; + } + var Getters = class extends Init_js_1.Init { + get call() { + return assertResult(this._call); + } + get consts() { + return assertResult(this._consts); + } + get derive() { + return assertResult(this._derive); + } + get errors() { + return assertResult(this._errors); + } + get events() { + return assertResult(this._events); + } + get extrinsicVersion() { + return this._extrinsicType; + } + get genesisHash() { + return assertResult(this._genesisHash); + } + get isConnected() { + return this._isConnected.getValue(); + } + get libraryInfo() { + return `${packageInfo_js_1.packageInfo.name} v${packageInfo_js_1.packageInfo.version}`; + } + get query() { + return assertResult(this._query); + } + get queryMulti() { + return assertResult(this._queryMulti); + } + get rpc() { + return assertResult(this._rpc); + } + get runtimeChain() { + return assertResult(this._runtimeChain); + } + get runtimeMetadata() { + return assertResult(this._runtimeMetadata); + } + get runtimeVersion() { + return assertResult(this._runtimeVersion); + } + get rx() { + return assertResult(this._rx); + } + get stats() { + return this._rpcCore.stats; + } + get type() { + return this._type; + } + get tx() { + return assertResult(this._extrinsics); + } + findCall(callIndex) { + return (0, find_js_1.findCall)(this.registry, callIndex); + } + findError(errorIndex) { + return (0, find_js_1.findError)(this.registry, errorIndex); + } + }; + exports2.Getters = Getters; + } + }); + + // ../../node_modules/@polkadot/api/cjs/base/index.js + var require_base2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/base/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiBase = void 0; + var util_1 = require_cjs3(); + var Getters_js_1 = require_Getters(); + var ApiBase = class extends Getters_js_1.Getters { + constructor(options = {}, type, decorateMethod) { + super(options, type, decorateMethod); + } + connect() { + return this._rpcCore.connect(); + } + disconnect() { + this._unsubscribe(); + return this._rpcCore.disconnect(); + } + setSigner(signer) { + this._rx.signer = signer; + } + async sign(address, data, { signer } = {}) { + if ((0, util_1.isString)(address)) { + const _signer = signer || this._rx.signer; + if (!_signer?.signRaw) { + throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing."); + } + return (await _signer.signRaw((0, util_1.objectSpread)({ type: "bytes" }, data, { address }))).signature; + } + return (0, util_1.u8aToHex)(address.sign((0, util_1.u8aToU8a)(data.data))); + } + }; + exports2.ApiBase = ApiBase; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/Combinator.js + var require_Combinator = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/Combinator.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Combinator = void 0; + var util_1 = require_cjs3(); + var Combinator = class { + __internal__allHasFired = false; + __internal__callback; + __internal__fired = []; + __internal__fns = []; + __internal__isActive = true; + __internal__results = []; + __internal__subscriptions = []; + constructor(fns, callback) { + this.__internal__callback = callback; + this.__internal__subscriptions = fns.map(async (input, index) => { + const [fn2, ...args] = Array.isArray(input) ? input : [input]; + this.__internal__fired.push(false); + this.__internal__fns.push(fn2); + return fn2(...args, this._createCallback(index)); + }); + } + _allHasFired() { + this.__internal__allHasFired ||= this.__internal__fired.filter((hasFired) => !hasFired).length === 0; + return this.__internal__allHasFired; + } + _createCallback(index) { + return (value) => { + this.__internal__fired[index] = true; + this.__internal__results[index] = value; + this._triggerUpdate(); + }; + } + _triggerUpdate() { + if (!this.__internal__isActive || !(0, util_1.isFunction)(this.__internal__callback) || !this._allHasFired()) { + return; + } + try { + Promise.resolve(this.__internal__callback(this.__internal__results)).catch(util_1.noop); + } catch { + } + } + unsubscribe() { + if (!this.__internal__isActive) { + return; + } + this.__internal__isActive = false; + Promise.all(this.__internal__subscriptions.map(async (subscription) => { + try { + const unsubscribe = await subscription; + if ((0, util_1.isFunction)(unsubscribe)) { + unsubscribe(); + } + } catch { + } + })).catch(() => { + }); + } + }; + exports2.Combinator = Combinator; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/decorateMethod.js + var require_decorateMethod = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/decorateMethod.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPromiseMethod = exports2.promiseTracker = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + function promiseTracker(resolve, reject) { + let isCompleted = false; + return { + reject: (error) => { + if (!isCompleted) { + isCompleted = true; + reject(error); + } + return rxjs_1.EMPTY; + }, + resolve: (value) => { + if (!isCompleted) { + isCompleted = true; + resolve(value); + } + } + }; + } + exports2.promiseTracker = promiseTracker; + function extractArgs(args, needsCallback) { + const actualArgs = args.slice(); + const callback = args.length && (0, util_1.isFunction)(args[args.length - 1]) ? actualArgs.pop() : void 0; + if (needsCallback && !(0, util_1.isFunction)(callback)) { + throw new Error("Expected a callback to be passed with subscriptions"); + } + return [actualArgs, callback]; + } + function decorateCall(method, args) { + return new Promise((resolve, reject) => { + const tracker = promiseTracker(resolve, reject); + const subscription = method(...args).pipe((0, rxjs_1.catchError)((error) => tracker.reject(error))).subscribe((result) => { + tracker.resolve(result); + (0, util_1.nextTick)(() => subscription.unsubscribe()); + }); + }); + } + function decorateSubscribe(method, args, resultCb) { + return new Promise((resolve, reject) => { + const tracker = promiseTracker(resolve, reject); + const subscription = method(...args).pipe((0, rxjs_1.catchError)((error) => tracker.reject(error)), (0, rxjs_1.tap)(() => tracker.resolve(() => subscription.unsubscribe()))).subscribe((result) => { + (0, util_1.nextTick)(() => resultCb(result)); + }); + }); + } + function toPromiseMethod(method, options) { + const needsCallback = !!(options?.methodName && options.methodName.includes("subscribe")); + return function(...args) { + const [actualArgs, resultCb] = extractArgs(args, needsCallback); + return resultCb ? decorateSubscribe(method, actualArgs, resultCb) : decorateCall(options?.overrideNoSub || method, actualArgs); + }; + } + exports2.toPromiseMethod = toPromiseMethod; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/Api.js + var require_Api = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/Api.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiPromise = void 0; + var util_1 = require_cjs3(); + var index_js_1 = require_base2(); + var Combinator_js_1 = require_Combinator(); + var decorateMethod_js_1 = require_decorateMethod(); + var ApiPromise = class extends index_js_1.ApiBase { + __internal__isReadyPromise; + __internal__isReadyOrErrorPromise; + constructor(options) { + super(options, "promise", decorateMethod_js_1.toPromiseMethod); + this.__internal__isReadyPromise = new Promise((resolve) => { + super.once("ready", () => resolve(this)); + }); + this.__internal__isReadyOrErrorPromise = new Promise((resolve, reject) => { + const tracker = (0, decorateMethod_js_1.promiseTracker)(resolve, reject); + super.once("ready", () => tracker.resolve(this)); + super.once("error", (error) => tracker.reject(error)); + }); + } + static create(options) { + const instance = new ApiPromise(options); + if (options && options.throwOnConnect) { + return instance.isReadyOrError; + } + instance.isReadyOrError.catch(util_1.noop); + return instance.isReady; + } + get isReady() { + return this.__internal__isReadyPromise; + } + get isReadyOrError() { + return this.__internal__isReadyOrErrorPromise; + } + clone() { + return new ApiPromise((0, util_1.objectSpread)({}, this._options, { source: this })); + } + async combineLatest(fns, callback) { + const combinator = new Combinator_js_1.Combinator(fns, callback); + return () => { + combinator.unsubscribe(); + }; + } + }; + exports2.ApiPromise = ApiPromise; + } + }); + + // ../../node_modules/@polkadot/api/cjs/promise/index.js + var require_promise2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/promise/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPromiseMethod = exports2.ApiPromise = void 0; + var Api_js_1 = require_Api(); + Object.defineProperty(exports2, "ApiPromise", { enumerable: true, get: function() { + return Api_js_1.ApiPromise; + } }); + var decorateMethod_js_1 = require_decorateMethod(); + Object.defineProperty(exports2, "toPromiseMethod", { enumerable: true, get: function() { + return decorateMethod_js_1.toPromiseMethod; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/decorateMethod.js + var require_decorateMethod2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/decorateMethod.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toRxMethod = void 0; + function toRxMethod(method) { + return method; + } + exports2.toRxMethod = toRxMethod; + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/Api.js + var require_Api2 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/Api.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ApiRx = void 0; + var rxjs_1 = require_cjs7(); + var util_1 = require_cjs3(); + var index_js_1 = require_base2(); + var decorateMethod_js_1 = require_decorateMethod2(); + var ApiRx = class extends index_js_1.ApiBase { + __internal__isReadyRx; + constructor(options) { + super(options, "rxjs", decorateMethod_js_1.toRxMethod); + this.__internal__isReadyRx = (0, rxjs_1.from)( + new Promise((resolve) => { + super.on("ready", () => resolve(this)); + }) + ); + } + static create(options) { + return new ApiRx(options).isReady; + } + get isReady() { + return this.__internal__isReadyRx; + } + clone() { + return new ApiRx((0, util_1.objectSpread)({}, this._options, { source: this })); + } + }; + exports2.ApiRx = ApiRx; + } + }); + + // ../../node_modules/@polkadot/api/cjs/rx/index.js + var require_rx = __commonJS({ + "../../node_modules/@polkadot/api/cjs/rx/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toRxMethod = exports2.ApiRx = void 0; + var Api_js_1 = require_Api2(); + Object.defineProperty(exports2, "ApiRx", { enumerable: true, get: function() { + return Api_js_1.ApiRx; + } }); + var decorateMethod_js_1 = require_decorateMethod2(); + Object.defineProperty(exports2, "toRxMethod", { enumerable: true, get: function() { + return decorateMethod_js_1.toRxMethod; + } }); + } + }); + + // ../../node_modules/@polkadot/api/cjs/bundle.js + var require_bundle13 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SubmittableResult = exports2.packageInfo = exports2.WsProvider = exports2.ScProvider = exports2.HttpProvider = exports2.Keyring = void 0; + var tslib_1 = require_tslib(); + require_cjs14(); + var keyring_1 = require_cjs15(); + Object.defineProperty(exports2, "Keyring", { enumerable: true, get: function() { + return keyring_1.Keyring; + } }); + var rpc_provider_1 = require_cjs16(); + Object.defineProperty(exports2, "HttpProvider", { enumerable: true, get: function() { + return rpc_provider_1.HttpProvider; + } }); + Object.defineProperty(exports2, "ScProvider", { enumerable: true, get: function() { + return rpc_provider_1.ScProvider; + } }); + Object.defineProperty(exports2, "WsProvider", { enumerable: true, get: function() { + return rpc_provider_1.WsProvider; + } }); + var packageInfo_js_1 = require_packageInfo19(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + var index_js_1 = require_submittable(); + Object.defineProperty(exports2, "SubmittableResult", { enumerable: true, get: function() { + return index_js_1.SubmittableResult; + } }); + tslib_1.__exportStar(require_promise2(), exports2); + tslib_1.__exportStar(require_rx(), exports2); + } + }); + + // ../../node_modules/@polkadot/api/cjs/index.js + var require_cjs17 = __commonJS({ + "../../node_modules/@polkadot/api/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect7(); + tslib_1.__exportStar(require_bundle13(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/packageInfo.js + var require_packageInfo24 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-base", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/packageInfo.js + var require_packageInfo25 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/api-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/packageDetect.js + var require_packageDetect10 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo24(); + var packageInfo_2 = require_packageInfo14(); + var packageInfo_3 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo25(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo, packageInfo_3.packageInfo, packageInfo_2.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/packageInfo.js + var require_packageInfo26 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/packageInfo.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + exports2.packageInfo = { name: "@polkadot/types-augment", path: typeof __dirname === "string" ? __dirname : "auto", type: "cjs", version: "10.13.1" }; + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/packageDetect.js + var require_packageDetect11 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/packageDetect.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var packageInfo_1 = require_packageInfo14(); + var packageInfo_2 = require_packageInfo16(); + var util_1 = require_cjs3(); + var packageInfo_js_1 = require_packageInfo26(); + (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_2.packageInfo, packageInfo_1.packageInfo]); + } + }); + + // ../../node_modules/@polkadot/types/cjs/types/registry.js + var require_registry3 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/types/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/interfaces.js + var require_interfaces2 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/interfaces.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/index.js + var require_registry4 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_interfaces2(); + } + }); + + // ../../node_modules/@polkadot/types/cjs/lookup.js + var require_lookup2 = __commonJS({ + "../../node_modules/@polkadot/types/cjs/lookup.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.__TYPES_LOOKUP = void 0; + exports2.__TYPES_LOOKUP = "augmented"; + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-substrate.js + var require_types_substrate = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-polkadot.js + var require_types_polkadot = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-polkadot.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types-kusama.js + var require_types_kusama = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types-kusama.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_lookup2(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/types.js + var require_types4 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/types.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_types_substrate(); + require_types_polkadot(); + require_types_kusama(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/lookup/index.js + var require_lookup3 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/lookup/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_types4(), exports2); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/augment.js + var require_augment2 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/augment.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry4(); + require_lookup3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/bundle.js + var require_bundle14 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_augment2(); + var packageInfo_js_1 = require_packageInfo26(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/index.js + var require_cjs18 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect11(); + tslib_1.__exportStar(require_bundle14(), exports2); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/base.js + var require_base3 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/base.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_cjs14(); + require_cjs18(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/consts.js + var require_consts3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/consts.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/consts.js + var require_consts4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/consts.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_consts3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/errors.js + var require_errors3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/errors.js + var require_errors4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/errors.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_errors3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/events.js + var require_events3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/events.js + var require_events4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/events.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_events3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/storage.js + var require_storage3 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/storage.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/query.js + var require_query2 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/query.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_storage3(); + } + }); + + // ../../node_modules/@polkadot/types-augment/cjs/registry/substrate.js + var require_substrate3 = __commonJS({ + "../../node_modules/@polkadot/types-augment/cjs/registry/substrate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_registry3(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/registry.js + var require_registry5 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/registry.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_substrate3(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/calls.js + var require_calls = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/calls.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/runtime.js + var require_runtime34 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/runtime.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_calls(); + } + }); + + // ../../node_modules/@polkadot/api-base/cjs/types/submittable.js + var require_submittable2 = __commonJS({ + "../../node_modules/@polkadot/api-base/cjs/types/submittable.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/tx.js + var require_tx2 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/tx.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_submittable2(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/substrate/index.js + var require_substrate4 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/substrate/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + require_base3(); + require_consts4(); + require_errors4(); + require_events4(); + require_query2(); + require_registry5(); + require_runtime34(); + require_tx2(); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/bundle.js + var require_bundle15 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/bundle.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.packageInfo = void 0; + require_substrate4(); + var packageInfo_js_1 = require_packageInfo25(); + Object.defineProperty(exports2, "packageInfo", { enumerable: true, get: function() { + return packageInfo_js_1.packageInfo; + } }); + } + }); + + // ../../node_modules/@polkadot/api-augment/cjs/index.js + var require_cjs19 = __commonJS({ + "../../node_modules/@polkadot/api-augment/cjs/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + require_packageDetect10(); + tslib_1.__exportStar(require_bundle15(), exports2); + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/currencies/balance.js + var require_balance = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/currencies/balance.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.balance = void 0; + var _util = require_util10(); + var _operators = require_operators(); + var balance = (instanceId, api) => { + return (0, _util.memo)(instanceId, (address, token) => { + return api.rpc.system.properties().pipe((0, _operators.mergeMap)((properties) => { + const currencyId = api.registry.createType("CurrencyId", token); + const nativeTokenSymbol = properties.tokenSymbol.unwrapOrDefault()[0].toString(); + const nativeCurrencyId = api.registry.createType("CurrencyId", (api.registry.getDefinition("CurrencyId") || "").includes('"Token":"TokenSymbol"') ? { + Token: nativeTokenSymbol + } : nativeTokenSymbol); + if (currencyId.eq(nativeCurrencyId)) { + return api.query.system.account(address).pipe((0, _operators.map)((result) => { + return result.data.free; + })); + } + const lookupId = api.query.tokens.accounts.creator.meta.type.asMap.key; + const [typeId] = api.registry.lookup.getSiType(lookupId).def.asTuple; + const keyType = api.registry.lookup.getTypeDef(typeId).type; + const arg = keyType === "CurrencyId" ? [token, address] : [address, token]; + return api.query.tokens.accounts(...arg).pipe((0, _operators.map)((result) => { + return result.free; + })); + })); + }); + }; + exports2.balance = balance; + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/currencies/index.js + var require_currencies = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/currencies/index.js"(exports2) { + "use strict"; + exports2.__esModule = true; + var _balance = require_balance(); + Object.keys(_balance).forEach(function(key2) { + if (key2 === "default" || key2 === "__esModule") + return; + if (key2 in exports2 && exports2[key2] === _balance[key2]) + return; + exports2[key2] = _balance[key2]; + }); + } + }); + + // ../../node_modules/@open-web3/orml-api-derive/index.js + var require_orml_api_derive = __commonJS({ + "../../node_modules/@open-web3/orml-api-derive/index.js"(exports2) { + "use strict"; + exports2.__esModule = true; + exports2.derive = void 0; + var _currencies = require_currencies(); + var derive2 = { + currencies: { + balance: _currencies.balance + } + }; + exports2.derive = derive2; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/allCurrencies.js + var require_allCurrencies = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/allCurrencies.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.allCurrencyIds = exports2.allNonNativeCurrencyIds = exports2.nativeCurrencyId = void 0; + var util_1 = require_util10(); + var rxjs_1 = require_cjs7(); + var operators_1 = require_operators(); + function getNativeCurrencyId(api) { + return api.rpc.system.properties().pipe((0, operators_1.switchMap)((properties) => { + const nativeTokenSymbol = properties.tokenSymbol.unwrapOrDefault()[0].toString(); + return (0, rxjs_1.of)(api.registry.createType("CurrencyId", api.registry.createType("TokenSymbol", nativeTokenSymbol))); + })); + } + function nativeCurrencyId(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return getNativeCurrencyId(api); + }); + } + exports2.nativeCurrencyId = nativeCurrencyId; + function getAllNonNativeCurrencyIds(api) { + return api.consts.transactionPayment.allNonNativeCurrencyIds; + } + function allNonNativeCurrencyIds(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return (0, rxjs_1.of)(getAllNonNativeCurrencyIds(api)); + }); + } + exports2.allNonNativeCurrencyIds = allNonNativeCurrencyIds; + function allCurrencyIds(instanceId, api) { + return (0, util_1.memo)(instanceId, () => { + return getNativeCurrencyId(api).pipe((0, operators_1.switchMap)((nativeCurrencyId2) => { + return (0, rxjs_1.of)([ + nativeCurrencyId2, + ...getAllNonNativeCurrencyIds(api).slice() + ]); + })); + }); + } + exports2.allCurrencyIds = allCurrencyIds; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/defaultOptions.js + var require_defaultOptions = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/defaultOptions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultOptions = void 0; + exports2.defaultOptions = { + types: { + CallOf: "Call", + DispatchTime: { _enum: { At: "BlockNumber", After: "BlockNumber" } }, + ScheduleTaskIndex: "u32", + DelayedOrigin: { delay: "BlockNumber", origin: "PalletsOrigin" }, + AuthorityOrigin: "DelayedOrigin", + StorageValue: "Vec", + GraduallyUpdate: { + key: "StorageKey", + targetValue: "StorageValue", + perBlock: "StorageValue" + }, + StorageKeyBytes: "Vec", + StorageValueBytes: "Vec", + RpcDataProviderId: "Text", + DataProviderId: "u8", + TimestampedValue: { value: "OracleValue", timestamp: "Moment" }, + TimestampedValueOf: "TimestampedValue", + OrderedSet: "Vec", + OrmlAccountData: { + free: "Balance", + reserved: "Balance", + frozen: "Balance" + }, + OrmlBalanceLock: { amount: "Balance", id: "LockIdentifier" }, + AuctionInfo: { + bid: "Option<(AccountId, Balance)>", + start: "BlockNumber", + end: "Option" + }, + DelayedDispatchTime: { _enum: { At: "BlockNumber", After: "BlockNumber" } }, + DispatchId: "u32", + Price: "FixedU128", + OrmlVestingSchedule: { + start: "BlockNumber", + period: "BlockNumber", + periodCount: "u32", + perPeriod: "Compact" + }, + VestingScheduleOf: "OrmlVestingSchedule", + OrmlCurrencyId: "u8", + PoolInfo: { + totalShares: "Share", + rewards: "BTreeMap" + }, + CompactBalance: "Compact", + PoolInfoV0: { + totalShares: "Compact", + totalRewards: "CompactBalance", + totalWithdrawnRewards: "CompactBalance" + }, + Share: "u128", + OracleValue: "Price", + PalletBalanceOf: "Balance", + EstimateResourcesResponse: { + gas: "u256", + storage: "i32", + weightFee: "u256" + }, + EvmAccountInfo: { + nonce: "Index", + contractInfo: "Option", + developerDeposit: "Option" + }, + CodeInfo: { codeSize: "u32", refCount: "u32" }, + EvmContractInfo: { codeHash: "H256", maintainer: "H160", deployed: "bool" }, + EvmAddress: "H160", + CallRequest: { + from: "Option", + to: "Option", + gasLimit: "Option", + storageLimit: "Option", + value: "Option", + data: "Option" + }, + CommitmentOf: { + duration: "LockDuration", + amount: "BalanceOf", + candidate: "AccountId" + }, + Era: { index: "u32", start: "BlockNumber" }, + LockDuration: { _enum: ["OneMonth", "OneYear", "TenYears"] }, + PoolId: { + _enum: { + Loans: "CurrencyId", + DexIncentive: "CurrencyId", + DexSaving: "CurrencyId", + Homa: "Null" + } + }, + Amount: "i128", + AmountOf: "Amount", + AuctionId: "u32", + AuctionIdOf: "AuctionId", + TokenSymbol: { _enum: { REEF: 0, RUSD: 1 } }, + CurrencyId: { + _enum: { + Token: "TokenSymbol", + DEXShare: "(TokenSymbol, TokenSymbol)", + ERC20: "EvmAddress" + } + }, + CurrencyIdOf: "CurrencyId", + AuthoritysOriginId: { _enum: ["Root"] }, + TradingPair: "(CurrencyId, CurrencyId)", + OracleKey: "CurrencyId", + AsOriginId: "AuthoritysOriginId", + ExchangeRate: "FixedU128", + Rate: "FixedU128", + Ratio: "FixedU128", + Keys: "SessionKeys4", + PalletsOrigin: { + _enum: { + System: "SystemOrigin", + Timestamp: "Null", + RandomnessCollectiveFlip: "Null", + Balances: "Null", + Accounts: "Null", + Currencies: "Null", + Tokens: "Null", + Vesting: "Null", + AcalaTreasury: "Null", + Utility: "Null", + Multisig: "Null", + Recovery: "Null", + Proxy: "Null", + Scheduler: "Null", + Indices: "Null", + GraduallyUpdate: "Null", + Authorship: "Null", + Babe: "Null", + Grandpa: "Null", + Staking: "Null", + Session: "Null", + Historical: "Null", + GeneralCouncil: "CollectiveOrigin", + GeneralCouncilMembership: "Null", + HonzonCouncil: "CollectiveOrigin", + HonzonCouncilMembership: "Null", + HomaCouncil: "CollectiveOrigin", + HomaCouncilMembership: "Null", + TechnicalCommittee: "CollectiveOrigin", + TechnicalCommitteeMembership: "Null", + Authority: "DelayedOrigin", + ElectionsPhragmen: "Null", + AcalaOracle: "Null", + BandOracle: "Null", + OperatorMembershipAcala: "Null", + OperatorMembershipBand: "Null", + Auction: "Null", + Rewards: "Null", + OrmlNFT: "Null", + Prices: "Null", + Dex: "Null", + AuctionManager: "Null", + Loans: "Null", + Honzon: "Null", + CdpTreasury: "Null", + CdpEngine: "Null", + EmergencyShutdown: "Null", + Homa: "Null", + NomineesElection: "Null", + StakingPool: "Null", + PolkadotBridge: "Null", + Incentives: "Null", + AirDrop: "Null", + NFT: "Null", + RenVmBridge: "Null", + Contracts: "Null", + EVM: "Null", + Sudo: "Null", + TransactionPayment: "Null" + } + } + }, + rpc: { + oracle: { + getValue: { + description: "Retrieves the oracle value for a given key.", + params: [ + { name: "providerId", type: "RpcDataProviderId" }, + { name: "key", type: "OracleKey" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Option" + }, + getAllValues: { + description: "Retrieves all oracle values.", + params: [ + { name: "providerId", type: "RpcDataProviderId" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Vec<(OracleKey, Option)>" + } + }, + tokens: { + queryExistentialDeposit: { + description: "Query Existential Deposit for a given currency.", + params: [ + { name: "currencyId", type: "CurrencyId" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "NumberOrHex" + } + }, + evm: { + call: { + description: "eth call", + params: [ + { name: "data", type: "CallRequest" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "Raw" + }, + estimateGas: { + description: "eth estimateGas", + params: [ + { name: "data", type: "CallRequest" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "u128" + }, + estimateResources: { + description: "eth estimateResources", + params: [ + { name: "from", type: "H160" }, + { name: "unsignedExtrinsic", type: "Bytes" }, + { name: "at", type: "BlockHash", isHistoric: true, isOptional: true } + ], + type: "EstimateResourcesResponse" + } + } + }, + typesAlias: { + evm: { AccountInfo: "EvmAccountInfo", ContractInfo: "EvmContractInfo" }, + tokens: { AccountData: "OrmlAccountData", BalanceLock: "OrmlBalanceLock" } + }, + typesBundle: { + spec: { + acala: { + types: [ + { + minmax: [600, 699], + types: { + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [700, 719], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [720, null], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress" + } + } + ] + }, + mandala: { + types: [ + { + minmax: [600, 699], + types: { + Address: "LookupSource", + LookupSource: "IndicesLookupSource", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [700, 719], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress", + TokenSymbol: { + _enum: ["ACA", "AUSD", "DOT", "XBTC", "LDOT", "RENBTC"] + } + } + }, + { + minmax: [720, null], + types: { + Address: "GenericMultiAddress", + LookupSource: "GenericMultiAddress" + } + } + ] + } + } + }, + signedExtensions: { SetEvmOrigin: { extrinsic: {}, payload: {} } } + }; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/reef-api/options.js + var require_options = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/reef-api/options.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k22, desc); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }); + var __importStar = exports2 && exports2.__importStar || function(mod3) { + if (mod3 && mod3.__esModule) + return mod3; + var result = {}; + if (mod3 != null) { + for (var k in mod3) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod3, k)) + __createBinding(result, mod3, k); + } + __setModuleDefault(result, mod3); + return result; + }; + var __rest = exports2 && exports2.__rest || function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.options = void 0; + var orml_api_derive_1 = require_orml_api_derive(); + var constants2 = __importStar(require_allCurrencies()); + var defaultOptions_1 = require_defaultOptions(); + var acalaDerives = { + constants: constants2 + }; + var acalaRpc = defaultOptions_1.defaultOptions.rpc; + var acalaTypes = defaultOptions_1.defaultOptions.types; + var acalaTypesAlias = defaultOptions_1.defaultOptions.typesAlias; + var acalaTypesBundle = defaultOptions_1.defaultOptions.typesBundle; + var acalaSignedExtensions = defaultOptions_1.defaultOptions.signedExtensions; + var options = (_a2 = {}) => { + var _b2, _c2, _d2, _e2; + var { types: types2 = {}, rpc: rpc18 = {}, typesAlias: typesAlias2 = {}, typesBundle = {}, signedExtensions } = _a2, otherOptions = __rest(_a2, ["types", "rpc", "typesAlias", "typesBundle", "signedExtensions"]); + return Object.assign({ types: Object.assign(Object.assign({}, acalaTypes), types2), rpc: Object.assign(Object.assign({}, acalaRpc), rpc18), typesAlias: Object.assign(Object.assign({}, acalaTypesAlias), typesAlias2), derives: Object.assign(Object.assign({}, orml_api_derive_1.derive), acalaDerives), typesBundle: Object.assign(Object.assign({}, typesBundle), { spec: Object.assign(Object.assign({}, typesBundle.spec), { acala: Object.assign(Object.assign({}, (_b2 = acalaTypesBundle === null || acalaTypesBundle === void 0 ? void 0 : acalaTypesBundle.spec) === null || _b2 === void 0 ? void 0 : _b2.acala), (_c2 = typesBundle === null || typesBundle === void 0 ? void 0 : typesBundle.spec) === null || _c2 === void 0 ? void 0 : _c2.acala), mandala: Object.assign(Object.assign({}, (_d2 = acalaTypesBundle === null || acalaTypesBundle === void 0 ? void 0 : acalaTypesBundle.spec) === null || _d2 === void 0 ? void 0 : _d2.mandala), (_e2 = typesBundle === null || typesBundle === void 0 ? void 0 : typesBundle.spec) === null || _e2 === void 0 ? void 0 : _e2.mandala) }) }), signedExtensions: Object.assign(Object.assign({}, acalaSignedExtensions), signedExtensions) }, otherOptions); + }; + exports2.options = options; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/Provider.js + var require_Provider = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/Provider.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importDefault = exports2 && exports2.__importDefault || function(mod3) { + return mod3 && mod3.__esModule ? mod3 : { "default": mod3 }; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Provider = void 0; + var bytes_1 = require_lib2(); + var properties_1 = require_lib7(); + var bignumber_1 = require_lib3(); + var logger_1 = require_lib(); + var scanner_1 = __importDefault(require_scanner()); + var api_1 = require_cjs17(); + var util_1 = require_cjs3(); + var util_crypto_1 = require_cjs6(); + require_cjs19(); + var utils_12 = require_utils3(); + var options_1 = require_options(); + var logger42 = new logger_1.Logger("evm-provider"); + var Provider3 = class { + constructor(_apiOptions, dataProvider) { + const apiOptions = (0, options_1.options)(_apiOptions); + this.api = new api_1.ApiPromise(apiOptions); + this.resolveApi = this.api.isReady; + this._isProvider = true; + this.dataProvider = dataProvider; + this.scanner = new scanner_1.default({ + wsProvider: apiOptions.provider, + types: apiOptions.types, + typesAlias: apiOptions.typesAlias, + typesSpec: apiOptions.typesSpec, + typesChain: apiOptions.typesChain, + typesBundle: apiOptions.typesBundle + }); + } + static isProvider(value) { + return !!(value && value._isProvider); + } + init() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.api.isReady; + this.dataProvider && (yield this.dataProvider.init()); + }); + } + getNetwork() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + return { + name: this.api.runtimeVersion.specName.toString(), + chainId: 13939 + }; + }); + } + getBlockNumber() { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const r10 = yield this.api.rpc.chain.getHeader(); + return r10.number.toNumber(); + }); + } + getGasPrice() { + return __awaiter16(this, void 0, void 0, function* () { + return bignumber_1.BigNumber.from(0); + }); + } + getFeeData() { + return __awaiter16(this, void 0, void 0, function* () { + return { + maxFeePerGas: bignumber_1.BigNumber.from(1), + maxPriorityFeePerGas: bignumber_1.BigNumber.from(1), + gasPrice: bignumber_1.BigNumber.from(1) + }; + }); + } + getBalance(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + let address = yield (0, utils_12.resolveAddress)(this, addressOrName); + if (!address) { + address = yield this._toAddress(addressOrName); + } + const blockHash = yield this._resolveBlockHash(blockTag); + const accountInfo = blockHash ? yield this.api.query.system.account.at(blockHash, address) : yield this.api.query.system.account(address); + return bignumber_1.BigNumber.from(accountInfo.data.free.toBn().toString()); + }); + } + getTransactionCount(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const resolvedBlockTag = yield blockTag; + const address = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + let account; + if (resolvedBlockTag === "pending") { + account = yield this.api.query.evm.accounts(address); + } else { + const blockHash = yield this._resolveBlockHash(blockTag); + account = blockHash ? yield this.api.query.evm.accounts.at(blockHash, address) : yield this.api.query.evm.accounts(address); + } + if (!account.isNone) { + return account.unwrap().nonce.toNumber(); + } else { + return 0; + } + }); + } + getCode(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const { address, blockHash } = yield (0, properties_1.resolveProperties)({ + address: (0, utils_12.resolveEvmAddress)(this, addressOrName), + blockHash: this._getBlockTag(blockTag) + }); + const contractInfo = yield this.queryContractInfo(address, blockHash); + if (contractInfo.isNone) { + return "0x"; + } + const codeHash = contractInfo.unwrap().codeHash; + const api = yield blockHash ? this.api.at(blockHash) : this.api; + const code = yield api.query.evm.codes(codeHash); + return code.toHex(); + }); + } + _getBlockTag(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + blockTag = yield blockTag; + if (blockTag === void 0) { + blockTag = "latest"; + } + switch (blockTag) { + case "pending": { + return logger42.throwError("pending tag not implemented", logger_1.Logger.errors.UNSUPPORTED_OPERATION); + } + case "latest": { + const hash8 = yield this.api.rpc.chain.getBlockHash(); + return hash8.toHex(); + } + case "earliest": { + const hash8 = this.api.genesisHash; + return hash8.toHex(); + } + default: { + if (!(0, bytes_1.isHexString)(blockTag)) { + return logger42.throwArgumentError("blocktag should be a hex string", "blockTag", blockTag); + } + if (typeof blockTag === "string" && (0, bytes_1.isHexString)(blockTag, 32)) { + return blockTag; + } + const blockNumber = bignumber_1.BigNumber.from(blockTag).toNumber(); + const hash8 = yield this.api.rpc.chain.getBlockHash(blockNumber); + return hash8.toHex(); + } + } + }); + } + queryAccountInfo(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const resolvedBlockTag = yield blockTag; + if (resolvedBlockTag === "pending") { + const address2 = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + return this.api.query.evm.accounts(address2); + } + const { address, blockHash } = yield (0, properties_1.resolveProperties)({ + address: (0, utils_12.resolveEvmAddress)(this, addressOrName), + blockHash: this._getBlockTag(blockTag) + }); + const apiAt = yield this.api.at(blockHash); + const accountInfo = yield apiAt.query.evm.accounts(address); + return accountInfo; + }); + } + queryContractInfo(addressOrName, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const accountInfo = yield this.queryAccountInfo(addressOrName, blockTag); + if (accountInfo.isNone) { + return this.api.createType("Option", null); + } + return accountInfo.unwrap().contractInfo; + }); + } + getStorageAt(addressOrName, position, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + const address = yield (0, utils_12.resolveEvmAddress)(this, addressOrName); + const blockHash = yield this._resolveBlockHash(blockTag); + const code = blockHash ? yield this.api.query.evm.accountStorages.at(blockHash, address) : yield this.api.query.evm.accountStorages(address); + return code.toHex(); + }); + } + sendTransaction(signedTransaction) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("sendTransaction"); + }); + } + call(transaction, blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield this._resolveTransaction(transaction); + if (blockTag) { + const blockHash = yield this._resolveBlockHash(blockTag); + const result = yield this.api.rpc.evm.call(resolved, blockHash); + return result.toHex(); + } else { + const result = yield this.api.rpc.evm.call({ + to: resolved.to, + from: resolved.from, + data: resolved.data, + storageLimit: "0" + }); + return result.toHex(); + } + }); + } + estimateGas(transaction) { + return __awaiter16(this, void 0, void 0, function* () { + const resources = yield this.estimateResources(transaction); + return resources.gas.add(resources.storage); + }); + } + estimateResources(transaction) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield this._resolveTransaction(transaction); + const from2 = yield resolved.from; + const value = yield resolved.value; + const to2 = yield resolved.to; + const data = yield resolved.data; + const storageLimit = yield this._resolveStorageLimit(resolved); + if (!from2) { + return logger42.throwError("From cannot be undefined"); + } + const extrinsic = !to2 ? this.api.tx.evm.create(data, (0, utils_12.toBN)(value), (0, utils_12.toBN)(yield resolved.gasLimit), (0, utils_12.toBN)(storageLimit)) : this.api.tx.evm.call(to2, data, (0, utils_12.toBN)(value), (0, utils_12.toBN)(yield resolved.gasLimit), (0, utils_12.toBN)(storageLimit)); + const result = yield this.api.rpc.evm.estimateResources( + resolved.from, + extrinsic.toHex() + ); + return { + gas: bignumber_1.BigNumber.from(result.gas.toString()), + storage: bignumber_1.BigNumber.from(result.storage.toString()), + weightFee: bignumber_1.BigNumber.from(result.weightFee.toString()) + }; + }); + } + getBlock(blockHashOrBlockTag) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getBlock"); + }); + } + getBlockWithTransactions(blockHashOrBlockTag) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getBlockWithTransactions"); + }); + } + getTransaction(transactionHash) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("getTransaction"); + }); + } + getTransactionReceipt(txHash) { + return __awaiter16(this, void 0, void 0, function* () { + if (!this.dataProvider) + return this._fail("getTransactionReceipt"); + return this.dataProvider.getTransactionReceipt(txHash, this._resolveBlockNumber); + }); + } + resolveName(name6) { + return __awaiter16(this, void 0, void 0, function* () { + return name6; + }); + } + lookupAddress(address) { + return __awaiter16(this, void 0, void 0, function* () { + return address; + }); + } + waitForTransaction(transactionHash, confirmations, timeout) { + return __awaiter16(this, void 0, void 0, function* () { + return this._fail("waitForTransaction"); + }); + } + getLogs(filter) { + return __awaiter16(this, void 0, void 0, function* () { + if (!this.dataProvider) + return this._fail("getLogs"); + return this.dataProvider.getLogs(filter, this._resolveBlockNumber); + }); + } + _fail(operation) { + return Promise.resolve().then(() => { + logger42.throwError(`Unsupport ${operation}`); + }); + } + emit(eventName, ...args) { + return logger42.throwError("Unsupport Event"); + } + listenerCount(eventName) { + return logger42.throwError("Unsupport Event"); + } + listeners(eventName) { + return logger42.throwError("Unsupport Event"); + } + off(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + on(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + once(eventName, listener) { + return logger42.throwError("Unsupport Event"); + } + removeAllListeners(eventName) { + return logger42.throwError("Unsupport Event"); + } + addListener(eventName, listener) { + return this.on(eventName, listener); + } + removeListener(eventName, listener) { + return this.off(eventName, listener); + } + _resolveTransactionReceipt(transactionHash, blockHash, from2) { + return __awaiter16(this, void 0, void 0, function* () { + const detail = yield this.scanner.getBlockDetail({ + blockHash + }); + const blockNumber = detail.number; + const extrinsic = detail.extrinsics.find(({ hash: hash8 }) => hash8 === transactionHash); + if (!extrinsic) { + return logger42.throwError(`Transaction hash not found`); + } + const transactionIndex = extrinsic.index; + const events = detail.events.filter(({ phaseIndex }) => phaseIndex === transactionIndex); + const findCreated = events.find((x) => x.section.toUpperCase() === "EVM" && x.method.toUpperCase() === "CREATED"); + const findExecuted = events.find((x) => x.section.toUpperCase() === "EVM" && x.method.toUpperCase() === "EXECUTED"); + const result = events.find((x) => x.section.toUpperCase() === "SYSTEM" && x.method.toUpperCase() === "EXTRINSICSUCCESS"); + if (!result) { + return logger42.throwError(`Can't find event`); + } + const status = findCreated || findExecuted ? 1 : 0; + const contractAddress = findCreated ? findCreated.args[0] : null; + const to2 = findExecuted ? findExecuted.args[0] : null; + const logs = events.filter((e) => { + return e.method.toUpperCase() === "LOG" && e.section.toUpperCase() === "EVM"; + }).map((log, index) => { + return { + transactionHash, + blockNumber, + blockHash, + transactionIndex, + removed: false, + address: log.args[0].address, + data: log.args[0].data, + topics: log.args[0].topics, + logIndex: index + }; + }); + const gasUsed = bignumber_1.BigNumber.from(result.args[0].weight); + return { + to: to2, + from: from2, + contractAddress, + transactionIndex, + gasUsed, + logsBloom: "0x", + blockHash, + transactionHash, + logs, + blockNumber, + confirmations: 4, + cumulativeGasUsed: gasUsed, + byzantium: false, + status, + effectiveGasPrice: bignumber_1.BigNumber.from("1"), + type: 0 + }; + }); + } + _resolveBlockHash(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + if (!blockTag) + return void 0; + const resolvedBlockHash = yield blockTag; + if (resolvedBlockHash === "pending") { + throw new Error("Unsupport Block Pending"); + } + if (resolvedBlockHash === "latest") { + const hash9 = yield this.api.query.system.blockHash(); + return hash9.toString(); + } + if (resolvedBlockHash === "earliest") { + const hash9 = this.api.query.system.blockHash(0); + return hash9.toString(); + } + if ((0, util_1.isHex)(resolvedBlockHash)) { + return resolvedBlockHash; + } + const hash8 = yield this.api.query.system.blockHash(resolvedBlockHash); + return hash8.toString(); + }); + } + _resolveBlockNumber(blockTag) { + return __awaiter16(this, void 0, void 0, function* () { + yield this.resolveApi; + if (!blockTag) { + return logger42.throwError(`Blocktag cannot be undefined`); + } + const resolvedBlockNumber = yield blockTag; + if (resolvedBlockNumber === "pending") { + throw new Error("Unsupport Block Pending"); + } + if (resolvedBlockNumber === "latest") { + const header = yield this.api.rpc.chain.getHeader(); + return header.number.toNumber(); + } + if (resolvedBlockNumber === "earliest") { + return 0; + } + if ((0, util_1.isNumber)(resolvedBlockNumber)) { + return resolvedBlockNumber; + } else { + throw new Error("Expect blockHash to be a number or tag"); + } + }); + } + _toAddress(addressOrName) { + return __awaiter16(this, void 0, void 0, function* () { + const resolved = yield addressOrName; + const address = (0, util_crypto_1.encodeAddress)((0, util_1.u8aFixLength)((0, util_1.u8aConcat)("evm:", (0, util_1.hexToU8a)(resolved)), 256, true)); + return address.toString(); + }); + } + _resolveTransaction(tx2) { + return __awaiter16(this, void 0, void 0, function* () { + for (const key2 of ["gasLimit", "value"]) { + const typeKey = key2; + if (tx2[typeKey]) { + if (bignumber_1.BigNumber.isBigNumber(tx2[typeKey])) { + tx2[typeKey] = tx2[typeKey].toHexString(); + } else if ((0, util_1.isNumber)(tx2[typeKey])) { + tx2[typeKey] = (0, util_1.numberToHex)(tx2[typeKey]); + } + } + } + delete tx2.nonce; + delete tx2.gasPrice; + delete tx2.chainId; + return tx2; + }); + } + _resolveStorageLimit(tx2) { + return __awaiter16(this, void 0, void 0, function* () { + if (tx2.customData) { + if ("storageLimit" in tx2.customData) { + const storageLimit = tx2.customData.storageLimit; + if (bignumber_1.BigNumber.isBigNumber(storageLimit)) { + return storageLimit; + } else if ((0, util_1.isNumber)(storageLimit)) { + return bignumber_1.BigNumber.from(storageLimit); + } + } + } + return bignumber_1.BigNumber.from(6e4); + }); + } + }; + exports2.Provider = Provider3; + } + }); + + // ../../node_modules/@reef-chain/evm-provider/SigningKey.js + var require_SigningKey = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/SigningKey.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + } + }); + + // ../../node_modules/@reef-chain/evm-provider/TestAccountSigningKey.js + var require_TestAccountSigningKey = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/TestAccountSigningKey.js"(exports2) { + "use strict"; + var __awaiter16 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __classPrivateFieldSet = exports2 && exports2.__classPrivateFieldSet || function(receiver, state, value, kind, f10) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f10) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f10 : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f10.call(receiver, value) : f10 ? f10.value = value : state.set(receiver, value), value; + }; + var __classPrivateFieldGet = exports2 && exports2.__classPrivateFieldGet || function(receiver, state, kind, f10) { + if (kind === "a" && !f10) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f10 : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f10 : kind === "a" ? f10.call(receiver) : f10 ? f10.value : state.get(receiver); + }; + var _TestAccountSigningKey_keyringPairs; + var _TestAccountSigningKey_registry; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TestAccountSigningKey = void 0; + var id4 = 0; + var TestAccountSigningKey = class { + constructor(registry) { + _TestAccountSigningKey_keyringPairs.set(this, void 0); + _TestAccountSigningKey_registry.set(this, void 0); + __classPrivateFieldSet(this, _TestAccountSigningKey_keyringPairs, [], "f"); + __classPrivateFieldSet(this, _TestAccountSigningKey_registry, registry, "f"); + } + signPayload(payload) { + return __awaiter16(this, void 0, void 0, function* () { + const findKeyringPair = __classPrivateFieldGet(this, _TestAccountSigningKey_keyringPairs, "f").find((pair) => pair.address === payload.address); + if (!findKeyringPair) { + throw new Error(`Can't find the keyringpair for ${payload.address}`); + } + return new Promise((resolve) => { + const signed2 = __classPrivateFieldGet(this, _TestAccountSigningKey_registry, "f").createType("ExtrinsicPayload", payload, { version: payload.version }).sign(findKeyringPair); + resolve(Object.assign({ id: ++id4 }, signed2)); + }); + }); + } + addKeyringPair(...keyringPairs) { + __classPrivateFieldSet(this, _TestAccountSigningKey_keyringPairs, __classPrivateFieldGet(this, _TestAccountSigningKey_keyringPairs, "f").concat(...keyringPairs), "f"); + } + }; + exports2.TestAccountSigningKey = TestAccountSigningKey; + _TestAccountSigningKey_keyringPairs = /* @__PURE__ */ new WeakMap(), _TestAccountSigningKey_registry = /* @__PURE__ */ new WeakMap(); + } + }); + + // ../../node_modules/@reef-chain/evm-provider/index.js + var require_evm_provider = __commonJS({ + "../../node_modules/@reef-chain/evm-provider/index.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k22, desc); + } : function(o, m, k, k22) { + if (k22 === void 0) + k22 = k; + o[k22] = m[k]; + }); + var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding(exports3, m, p); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.MAX_STORAGE_LIMIT = exports2.MAX_GAS_LIMIT = void 0; + __exportStar(require_Signer(), exports2); + __exportStar(require_Provider(), exports2); + __exportStar(require_SigningKey(), exports2); + __exportStar(require_TestAccountSigningKey(), exports2); + var utils_12 = require_utils3(); + Object.defineProperty(exports2, "MAX_GAS_LIMIT", { enumerable: true, get: function() { + return utils_12.U64MAX; + } }); + var utils_2 = require_utils3(); + Object.defineProperty(exports2, "MAX_STORAGE_LIMIT", { enumerable: true, get: function() { + return utils_2.U32MAX; + } }); + } + }); + // ../../node_modules/micro-base/index.js var require_micro_base = __commonJS({ "../../node_modules/micro-base/index.js"(exports2) { @@ -33629,7 +91618,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/blakejs/util.js - var require_util2 = __commonJS({ + var require_util20 = __commonJS({ "../../node_modules/blakejs/util.js"(exports2, module2) { var ERROR_MSG_INPUT = "Input must be an string, Buffer or Uint8Array"; function normalizeInput(input) { @@ -33704,7 +91693,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/blakejs/blake2b.js var require_blake2b2 = __commonJS({ "../../node_modules/blakejs/blake2b.js"(exports2, module2) { - var util = require_util2(); + var util = require_util20(); function ADD64AA(v5, a, b) { const o02 = v5[a] + v5[b]; let o12 = v5[a + 1] + v5[b + 1]; @@ -34162,7 +92151,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/blakejs/blake2s.js var require_blake2s = __commonJS({ "../../node_modules/blakejs/blake2s.js"(exports2, module2) { - var util = require_util2(); + var util = require_util20(); function B2S_GET32(v5, i) { return v5[i] ^ v5[i + 1] << 8 ^ v5[i + 2] << 16 ^ v5[i + 3] << 24; } @@ -34529,7 +92518,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/minimalistic-crypto-utils/lib/utils.js - var require_utils5 = __commonJS({ + var require_utils6 = __commonJS({ "../../node_modules/minimalistic-crypto-utils/lib/utils.js"(exports2) { "use strict"; var utils2 = exports2; @@ -34588,13 +92577,13 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/elliptic/lib/elliptic/utils.js - var require_utils6 = __commonJS({ + var require_utils7 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/utils.js"(exports2) { "use strict"; var utils2 = exports2; var BN7 = require_bn6(); var minAssert = require_minimalistic_assert(); - var minUtils = require_utils5(); + var minUtils = require_utils6(); utils2.assert = minAssert; utils2.toArray = minUtils.toArray; utils2.zero2 = minUtils.zero2; @@ -34757,11 +92746,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/elliptic/lib/elliptic/curve/base.js - var require_base = __commonJS({ + var require_base4 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/base.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var getNAF2 = utils2.getNAF; var getJSF2 = utils2.getJSF; var assert6 = utils2.assert; @@ -34993,7 +92982,7 @@ ${formatDisplay(all, fmt)}`); BasePoint2.prototype.encodeCompressed = function encodeCompressed2(enc) { return this.encode(enc, true); }; - BasePoint2.prototype._encode = function _encode3(compact) { + BasePoint2.prototype._encode = function _encode2(compact) { var len = this.curve.p.byteLength(); var x = this.getX().toArray("be", len); if (compact) @@ -35069,10 +93058,10 @@ ${formatDisplay(all, fmt)}`); var require_short = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/short.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); + var Base2 = require_base4(); var assert6 = utils2.assert; function ShortCurve2(conf) { Base2.call(this, "short", conf); @@ -35769,8 +93758,8 @@ ${formatDisplay(all, fmt)}`); "use strict"; var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); - var utils2 = require_utils6(); + var Base2 = require_base4(); + var utils2 = require_utils7(); function MontCurve(conf) { Base2.call(this, "mont", conf); this.a = new BN7(conf.a, 16).toRed(this.red); @@ -35814,7 +93803,7 @@ ${formatDisplay(all, fmt)}`); }; Point4.prototype.precompute = function precompute2() { }; - Point4.prototype._encode = function _encode3() { + Point4.prototype._encode = function _encode2() { return this.getX().toArray("be", this.curve.p.byteLength()); }; Point4.fromJSON = function fromJSON2(curve, obj) { @@ -35895,10 +93884,10 @@ ${formatDisplay(all, fmt)}`); var require_edwards2 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/curve/edwards.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var BN7 = require_bn6(); var inherits = require_inherits_browser(); - var Base2 = require_base(); + var Base2 = require_base4(); var assert6 = utils2.assert; function EdwardsCurve(conf) { this.twisted = (conf.a | 0) !== 1; @@ -36197,7 +94186,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/curve/index.js"(exports2) { "use strict"; var curve = exports2; - curve.base = require_base(); + curve.base = require_base4(); curve.short = require_short(); curve.mont = require_mont(); curve.edwards = require_edwards2(); @@ -36997,7 +94986,7 @@ ${formatDisplay(all, fmt)}`); var curves = exports2; var hash8 = require_hash(); var curve = require_curve2(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function PresetCurve(options) { if (options.type === "short") @@ -37168,7 +95157,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/hmac-drbg/lib/hmac-drbg.js"(exports2, module2) { "use strict"; var hash8 = require_hash(); - var utils2 = require_utils5(); + var utils2 = require_utils6(); var assert6 = require_minimalistic_assert(); function HmacDRBG2(options) { if (!(this instanceof HmacDRBG2)) @@ -37262,7 +95251,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/ec/key.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function KeyPair2(ec3, options) { this.ec = ec3; @@ -37356,7 +95345,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/ec/signature.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; function Signature3(options, enc) { if (options instanceof Signature3) @@ -37503,7 +95492,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var BN7 = require_bn6(); var HmacDRBG2 = require_hmac_drbg(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var curves = require_curves(); var rand2 = require_brorand(); var assert6 = utils2.assert; @@ -37681,7 +95670,7 @@ ${formatDisplay(all, fmt)}`); var require_key3 = __commonJS({ "../../node_modules/elliptic/lib/elliptic/eddsa/key.js"(exports2, module2) { "use strict"; - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var parseBytes = utils2.parseBytes; var cachedProperty = utils2.cachedProperty; @@ -37756,7 +95745,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/elliptic/lib/elliptic/eddsa/signature.js"(exports2, module2) { "use strict"; var BN7 = require_bn6(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var cachedProperty = utils2.cachedProperty; var parseBytes = utils2.parseBytes; @@ -37806,7 +95795,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var hash8 = require_hash(); var curves = require_curves(); - var utils2 = require_utils6(); + var utils2 = require_utils7(); var assert6 = utils2.assert; var parseBytes = utils2.parseBytes; var KeyPair2 = require_key3(); @@ -37894,7 +95883,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var elliptic2 = exports2; elliptic2.version = require_package().version; - elliptic2.utils = require_utils6(); + elliptic2.utils = require_utils7(); elliptic2.rand = require_brorand(); elliptic2.curve = require_curve2(); elliptic2.curves = require_curves(); @@ -40613,7 +98602,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/buffer/index.js - var require_buffer4 = __commonJS({ + var require_buffer5 = __commonJS({ "../../node_modules/buffer/index.js"(exports2) { "use strict"; var base646 = require_base64_js(); @@ -40879,7 +98868,7 @@ ${formatDisplay(all, fmt)}`); return false; } }; - Buffer2.concat = function concat13(list, length) { + Buffer2.concat = function concat12(list, length) { if (!Array.isArray(list)) { throw new TypeError('"list" argument must be an Array of Buffers'); } @@ -42309,7 +100298,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/safe-buffer/index.js var require_safe_buffer = __commonJS({ "../../node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -42365,7 +100354,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/randombytes/browser.js - var require_browser5 = __commonJS({ + var require_browser7 = __commonJS({ "../../node_modules/randombytes/browser.js"(exports2, module2) { "use strict"; var MAX_BYTES = 65536; @@ -42404,7 +100393,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/events/events.js - var require_events = __commonJS({ + var require_events5 = __commonJS({ "../../node_modules/events/events.js"(exports2, module2) { "use strict"; var R = typeof Reflect === "object" ? Reflect : null; @@ -42778,12 +100767,12 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/readable-stream/lib/internal/streams/stream-browser.js var require_stream_browser = __commonJS({ "../../node_modules/readable-stream/lib/internal/streams/stream-browser.js"(exports2, module2) { - module2.exports = require_events().EventEmitter; + module2.exports = require_events5().EventEmitter; } }); // (disabled):../../node_modules/util/util.js - var require_util3 = __commonJS({ + var require_util21 = __commonJS({ "(disabled):../../node_modules/util/util.js"() { } }); @@ -42861,9 +100850,9 @@ ${formatDisplay(all, fmt)}`); } return (hint === "string" ? String : Number)(input); } - var _require = require_buffer4(); + var _require = require_buffer5(); var Buffer2 = _require.Buffer; - var _require2 = require_util3(); + var _require2 = require_util21(); var inspect4 = _require2.inspect; var custom = inspect4 && inspect4.custom || "inspect"; function copyBuffer(src, target, offset) { @@ -42934,7 +100923,7 @@ ${formatDisplay(all, fmt)}`); } }, { key: "concat", - value: function concat13(n) { + value: function concat12(n) { if (this.length === 0) return Buffer2.alloc(0); var ret = Buffer2.allocUnsafe(n >>> 0); @@ -43272,7 +101261,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/util-deprecate/browser.js - var require_browser6 = __commonJS({ + var require_browser8 = __commonJS({ "../../node_modules/util-deprecate/browser.js"(exports2, module2) { module2.exports = deprecate; function deprecate(fn2, msg) { @@ -43326,10 +101315,10 @@ ${formatDisplay(all, fmt)}`); var Duplex; Writable.WritableState = WritableState; var internalUtil = { - deprecate: require_browser6() + deprecate: require_browser8() }; var Stream = require_stream_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { @@ -44447,12 +102436,12 @@ ${formatDisplay(all, fmt)}`); module2.exports = Readable; var Duplex; Readable.ReadableState = ReadableState; - var EE2 = require_events().EventEmitter; + var EE2 = require_events5().EventEmitter; var EElistenerCount = function EElistenerCount2(emitter, type) { return emitter.listeners(type).length; }; var Stream = require_stream_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() { }; function _uint8ArrayToBuffer(chunk) { @@ -44461,7 +102450,7 @@ ${formatDisplay(all, fmt)}`); function _isUint8Array(obj) { return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } - var debugUtil = require_util3(); + var debugUtil = require_util21(); var debug; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog("stream"); @@ -45767,7 +103756,7 @@ ${formatDisplay(all, fmt)}`); var require_ripemd160 = __commonJS({ "../../node_modules/ripemd160/index.js"(exports2, module2) { "use strict"; - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var inherits = require_inherits_browser(); var HashBase = require_hash_base2(); var ARRAY16 = new Array(16); @@ -47278,7 +105267,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-hash/browser.js - var require_browser7 = __commonJS({ + var require_browser9 = __commonJS({ "../../node_modules/create-hash/browser.js"(exports2, module2) { "use strict"; var inherits = require_inherits_browser(); @@ -47360,7 +105349,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-hmac/browser.js - var require_browser8 = __commonJS({ + var require_browser10 = __commonJS({ "../../node_modules/create-hmac/browser.js"(exports2, module2) { "use strict"; var inherits = require_inherits_browser(); @@ -47733,7 +105722,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/pbkdf2/lib/async.js - var require_async = __commonJS({ + var require_async2 = __commonJS({ "../../node_modules/pbkdf2/lib/async.js"(exports2, module2) { var Buffer2 = require_safe_buffer().Buffer; var checkParameters = require_precondition(); @@ -47854,15 +105843,15 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/pbkdf2/browser.js - var require_browser9 = __commonJS({ + var require_browser11 = __commonJS({ "../../node_modules/pbkdf2/browser.js"(exports2) { - exports2.pbkdf2 = require_async(); + exports2.pbkdf2 = require_async2(); exports2.pbkdf2Sync = require_sync_browser(); } }); // ../../node_modules/des.js/lib/des/utils.js - var require_utils7 = __commonJS({ + var require_utils8 = __commonJS({ "../../node_modules/des.js/lib/des/utils.js"(exports2) { "use strict"; exports2.readUInt32BE = function readUInt32BE(bytes5, off) { @@ -48739,7 +106728,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; var assert6 = require_minimalistic_assert(); var inherits = require_inherits_browser(); - var utils2 = require_utils7(); + var utils2 = require_utils8(); var Cipher = require_cipher(); function DESState() { this.tmp = new Array(2); @@ -48967,7 +106956,7 @@ ${formatDisplay(all, fmt)}`); var require_des2 = __commonJS({ "../../node_modules/des.js/lib/des.js"(exports2) { "use strict"; - exports2.utils = require_utils7(); + exports2.utils = require_utils8(); exports2.Cipher = require_cipher(); exports2.DES = require_des(); exports2.CBC = require_cbc(); @@ -50120,7 +108109,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-aes/browser.js - var require_browser10 = __commonJS({ + var require_browser12 = __commonJS({ "../../node_modules/browserify-aes/browser.js"(exports2) { var ciphers = require_encrypter(); var deciphers = require_decrypter(); @@ -50167,10 +108156,10 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-cipher/browser.js - var require_browser11 = __commonJS({ + var require_browser13 = __commonJS({ "../../node_modules/browserify-cipher/browser.js"(exports2) { var DES = require_browserify_des(); - var aes3 = require_browser10(); + var aes3 = require_browser12(); var aesModes = require_modes(); var desModes = require_modes2(); var ebtk = require_evp_bytestokey(); @@ -50325,7 +108314,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/diffie-hellman/lib/generatePrime.js var require_generatePrime = __commonJS({ "../../node_modules/diffie-hellman/lib/generatePrime.js"(exports2, module2) { - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); module2.exports = findPrime; findPrime.simpleSieve = simpleSieve; findPrime.fermatTest = fermatTest; @@ -50470,7 +108459,7 @@ ${formatDisplay(all, fmt)}`); var THREE = new BN7(3); var SEVEN = new BN7(7); var primes = require_generatePrime(); - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); module2.exports = DH2; function setPublicKey(pub, enc) { enc = enc || "utf8"; @@ -50605,7 +108594,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/diffie-hellman/browser.js - var require_browser12 = __commonJS({ + var require_browser14 = __commonJS({ "../../node_modules/diffie-hellman/browser.js"(exports2) { var generatePrime = require_generatePrime(); var primes = require_primes(); @@ -50701,14 +108690,14 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js var require_stream_browser2 = __commonJS({ "../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js"(exports2, module2) { - module2.exports = require_events().EventEmitter; + module2.exports = require_events5().EventEmitter; } }); // ../../node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer/index.js var require_safe_buffer2 = __commonJS({ "../../node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -50763,7 +108752,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/core-util-is/lib/util.js - var require_util4 = __commonJS({ + var require_util22 = __commonJS({ "../../node_modules/core-util-is/lib/util.js"(exports2) { function isArray4(arg) { if (Array.isArray) { @@ -50824,7 +108813,7 @@ ${formatDisplay(all, fmt)}`); return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined"; } exports2.isPrimitive = isPrimitive; - exports2.isBuffer = require_buffer4().Buffer.isBuffer; + exports2.isBuffer = require_buffer5().Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } @@ -50841,7 +108830,7 @@ ${formatDisplay(all, fmt)}`); } } var Buffer2 = require_safe_buffer2().Buffer; - var util = require_util3(); + var util = require_util21(); function copyBuffer(src, target, offset) { src.copy(target, offset); } @@ -50893,7 +108882,7 @@ ${formatDisplay(all, fmt)}`); } return ret; }; - BufferList.prototype.concat = function concat13(n) { + BufferList.prototype.concat = function concat12(n) { if (this.length === 0) return Buffer2.alloc(0); var ret = Buffer2.allocUnsafe(n >>> 0); @@ -51003,10 +108992,10 @@ ${formatDisplay(all, fmt)}`); var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; var Duplex; Writable.WritableState = WritableState; - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); var internalUtil = { - deprecate: require_browser6() + deprecate: require_browser8() }; var Stream = require_stream_browser2(); var Buffer2 = require_safe_buffer2().Buffer; @@ -51464,7 +109453,7 @@ ${formatDisplay(all, fmt)}`); return keys2; }; module2.exports = Duplex; - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); var Readable = require_stream_readable2(); var Writable = require_stream_writable2(); @@ -51534,7 +109523,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer/index.js var require_safe_buffer3 = __commonJS({ "../../node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer/index.js"(exports2, module2) { - var buffer = require_buffer4(); + var buffer = require_buffer5(); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key2 in src) { @@ -51857,7 +109846,7 @@ ${formatDisplay(all, fmt)}`); var isArray4 = require_isarray(); var Duplex; Readable.ReadableState = ReadableState; - var EE2 = require_events().EventEmitter; + var EE2 = require_events5().EventEmitter; var EElistenerCount = function(emitter, type) { return emitter.listeners(type).length; }; @@ -51871,9 +109860,9 @@ ${formatDisplay(all, fmt)}`); function _isUint8Array(obj) { return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); - var debugUtil = require_util3(); + var debugUtil = require_util21(); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog("stream"); @@ -52609,7 +110598,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; module2.exports = Transform; var Duplex = require_stream_duplex2(); - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); util.inherits(Transform, Duplex); function afterTransform(er2, data) { @@ -52716,7 +110705,7 @@ ${formatDisplay(all, fmt)}`); "use strict"; module2.exports = PassThrough; var Transform = require_stream_transform2(); - var util = Object.create(require_util4()); + var util = Object.create(require_util22()); util.inherits = require_inherits_browser(); util.inherits(PassThrough, Transform); function PassThrough(options) { @@ -55683,7 +113672,7 @@ ${formatDisplay(all, fmt)}`); var require_browserify_rsa = __commonJS({ "../../node_modules/browserify-rsa/index.js"(exports2, module2) { var BN7 = require_bn9(); - var randomBytes3 = require_browser5(); + var randomBytes3 = require_browser7(); function blind(priv) { var r10 = getr(priv); var blinder = r10.toRed(BN7.mont(priv.modulus)).redPow(new BN7(priv.publicExponent)).fromRed(); @@ -58806,11 +116795,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/buffer.js - var require_buffer5 = __commonJS({ + var require_buffer6 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/buffer.js"(exports2) { var inherits = require_inherits_browser(); - var Reporter = require_base2().Reporter; - var Buffer2 = require_buffer4().Buffer; + var Reporter = require_base5().Reporter; + var Buffer2 = require_buffer5().Buffer; function DecoderBuffer(base2, options) { Reporter.call(this, options); if (!Buffer2.isBuffer(base2)) { @@ -58908,11 +116897,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/node.js - var require_node = __commonJS({ + var require_node2 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/node.js"(exports2, module2) { - var Reporter = require_base2().Reporter; - var EncoderBuffer = require_base2().EncoderBuffer; - var DecoderBuffer = require_base2().DecoderBuffer; + var Reporter = require_base5().Reporter; + var EncoderBuffer = require_base5().EncoderBuffer; + var DecoderBuffer = require_base5().DecoderBuffer; var assert6 = require_minimalistic_assert(); var tags = [ "seq", @@ -59441,20 +117430,20 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/base/index.js - var require_base2 = __commonJS({ + var require_base5 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/base/index.js"(exports2) { var base2 = exports2; base2.Reporter = require_reporter().Reporter; - base2.DecoderBuffer = require_buffer5().DecoderBuffer; - base2.EncoderBuffer = require_buffer5().EncoderBuffer; - base2.Node = require_node(); + base2.DecoderBuffer = require_buffer6().DecoderBuffer; + base2.EncoderBuffer = require_buffer6().EncoderBuffer; + base2.Node = require_node2(); } }); // ../../node_modules/asn1.js/lib/asn1/constants/der.js var require_der = __commonJS({ "../../node_modules/asn1.js/lib/asn1/constants/der.js"(exports2) { - var constants2 = require_constants2(); + var constants2 = require_constants5(); exports2.tagClass = { 0: "universal", 1: "application", @@ -59498,7 +117487,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/asn1.js/lib/asn1/constants/index.js - var require_constants2 = __commonJS({ + var require_constants5 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/constants/index.js"(exports2) { var constants2 = exports2; constants2._reverse = function reverse(map2) { @@ -59782,7 +117771,7 @@ ${formatDisplay(all, fmt)}`); var require_pem = __commonJS({ "../../node_modules/asn1.js/lib/asn1/decoders/pem.js"(exports2, module2) { var inherits = require_inherits_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var DERDecoder = require_der2(); function PEMDecoder(entity) { DERDecoder.call(this, entity); @@ -59836,7 +117825,7 @@ ${formatDisplay(all, fmt)}`); var require_der3 = __commonJS({ "../../node_modules/asn1.js/lib/asn1/encoders/der.js"(exports2, module2) { var inherits = require_inherits_browser(); - var Buffer2 = require_buffer4().Buffer; + var Buffer2 = require_buffer5().Buffer; var asn1 = require_asn1(); var base2 = asn1.base; var der = asn1.constants.der; @@ -60101,8 +118090,8 @@ ${formatDisplay(all, fmt)}`); var asn1 = exports2; asn1.bignum = require_bn6(); asn1.define = require_api().define; - asn1.base = require_base2(); - asn1.constants = require_constants2(); + asn1.base = require_base5(); + asn1.constants = require_constants5(); asn1.decoders = require_decoders(); asn1.encoders = require_encoders(); } @@ -60328,7 +118317,7 @@ ${formatDisplay(all, fmt)}`); var startRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m; var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m; var evp = require_evp_bytestokey(); - var ciphers = require_browser10(); + var ciphers = require_browser12(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function(okey, password) { var key2 = okey.toString(); @@ -60364,8 +118353,8 @@ ${formatDisplay(all, fmt)}`); var asn1 = require_asn12(); var aesid = require_aesid(); var fixProc = require_fixProc(); - var ciphers = require_browser10(); - var compat = require_browser9(); + var ciphers = require_browser12(); + var compat = require_browser11(); var Buffer2 = require_safe_buffer().Buffer; function decrypt3(data, password) { var salt = data.algorithm.decrypt.kde.kdeparams.salt; @@ -60486,7 +118475,7 @@ ${formatDisplay(all, fmt)}`); "../../node_modules/browserify-sign/browser/sign.js"(exports2, module2) { "use strict"; var Buffer2 = require_safe_buffer().Buffer; - var createHmac = require_browser8(); + var createHmac = require_browser10(); var crt = require_browserify_rsa(); var EC3 = require_elliptic().ec; var BN7 = require_bn10(); @@ -60726,11 +118715,11 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/browserify-sign/browser/index.js - var require_browser13 = __commonJS({ + var require_browser15 = __commonJS({ "../../node_modules/browserify-sign/browser/index.js"(exports2, module2) { "use strict"; var Buffer2 = require_safe_buffer().Buffer; - var createHash = require_browser7(); + var createHash = require_browser9(); var stream = require_readable_browser2(); var inherits = require_inherits_browser(); var sign4 = require_sign4(); @@ -60807,7 +118796,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/create-ecdh/browser.js - var require_browser14 = __commonJS({ + var require_browser16 = __commonJS({ "../../node_modules/create-ecdh/browser.js"(exports2, module2) { var elliptic2 = require_elliptic(); var BN7 = require_bn6(); @@ -60927,7 +118916,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/public-encrypt/mgf.js var require_mgf = __commonJS({ "../../node_modules/public-encrypt/mgf.js"(exports2, module2) { - var createHash = require_browser7(); + var createHash = require_browser9(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function(seed, len) { var t = Buffer2.alloc(0); @@ -60977,8 +118966,8 @@ ${formatDisplay(all, fmt)}`); var require_publicEncrypt = __commonJS({ "../../node_modules/public-encrypt/publicEncrypt.js"(exports2, module2) { var parseKeys = require_parse_asn1(); - var randomBytes3 = require_browser5(); - var createHash = require_browser7(); + var randomBytes3 = require_browser7(); + var createHash = require_browser9(); var mgf = require_mgf(); var xor = require_xor(); var BN7 = require_bn6(); @@ -61073,7 +119062,7 @@ ${formatDisplay(all, fmt)}`); var xor = require_xor(); var BN7 = require_bn6(); var crt = require_browserify_rsa(); - var createHash = require_browser7(); + var createHash = require_browser9(); var withPublic = require_withPublic(); var Buffer2 = require_safe_buffer().Buffer; module2.exports = function privateDecrypt(privateKey, enc, reverse) { @@ -61172,7 +119161,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/public-encrypt/browser.js - var require_browser15 = __commonJS({ + var require_browser17 = __commonJS({ "../../node_modules/public-encrypt/browser.js"(exports2) { exports2.publicEncrypt = require_publicEncrypt(); exports2.privateDecrypt = require_privateDecrypt(); @@ -61186,14 +119175,14 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/randomfill/browser.js - var require_browser16 = __commonJS({ + var require_browser18 = __commonJS({ "../../node_modules/randomfill/browser.js"(exports2) { "use strict"; function oldBrowser() { throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11"); } var safeBuffer = require_safe_buffer(); - var randombytes = require_browser5(); + var randombytes = require_browser7(); var Buffer2 = safeBuffer.Buffer; var kBufferMaxLength = safeBuffer.kMaxLength; var crypto8 = global.crypto || global.msCrypto; @@ -61292,19 +119281,19 @@ ${formatDisplay(all, fmt)}`); var require_crypto_browserify2 = __commonJS({ "../../node_modules/crypto-browserify/index.js"(exports2) { "use strict"; - exports2.randomBytes = exports2.rng = exports2.pseudoRandomBytes = exports2.prng = require_browser5(); - exports2.createHash = exports2.Hash = require_browser7(); - exports2.createHmac = exports2.Hmac = require_browser8(); + exports2.randomBytes = exports2.rng = exports2.pseudoRandomBytes = exports2.prng = require_browser7(); + exports2.createHash = exports2.Hash = require_browser9(); + exports2.createHmac = exports2.Hmac = require_browser10(); var algos = require_algos(); var algoKeys = Object.keys(algos); var hashes = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(algoKeys); exports2.getHashes = function() { return hashes; }; - var p = require_browser9(); + var p = require_browser11(); exports2.pbkdf2 = p.pbkdf2; exports2.pbkdf2Sync = p.pbkdf2Sync; - var aes3 = require_browser11(); + var aes3 = require_browser13(); exports2.Cipher = aes3.Cipher; exports2.createCipher = aes3.createCipher; exports2.Cipheriv = aes3.Cipheriv; @@ -61315,24 +119304,24 @@ ${formatDisplay(all, fmt)}`); exports2.createDecipheriv = aes3.createDecipheriv; exports2.getCiphers = aes3.getCiphers; exports2.listCiphers = aes3.listCiphers; - var dh2 = require_browser12(); + var dh2 = require_browser14(); exports2.DiffieHellmanGroup = dh2.DiffieHellmanGroup; exports2.createDiffieHellmanGroup = dh2.createDiffieHellmanGroup; exports2.getDiffieHellman = dh2.getDiffieHellman; exports2.createDiffieHellman = dh2.createDiffieHellman; exports2.DiffieHellman = dh2.DiffieHellman; - var sign4 = require_browser13(); + var sign4 = require_browser15(); exports2.createSign = sign4.createSign; exports2.Sign = sign4.Sign; exports2.createVerify = sign4.createVerify; exports2.Verify = sign4.Verify; - exports2.createECDH = require_browser14(); - var publicEncrypt = require_browser15(); + exports2.createECDH = require_browser16(); + var publicEncrypt = require_browser17(); exports2.publicEncrypt = publicEncrypt.publicEncrypt; exports2.privateEncrypt = publicEncrypt.privateEncrypt; exports2.publicDecrypt = publicEncrypt.publicDecrypt; exports2.privateDecrypt = publicEncrypt.privateDecrypt; - var rf2 = require_browser16(); + var rf2 = require_browser18(); exports2.randomFill = rf2.randomFill; exports2.randomFillSync = rf2.randomFillSync; exports2.createCredentials = function() { @@ -61363,7 +119352,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/scryptsy/lib/utils.js - var require_utils8 = __commonJS({ + var require_utils9 = __commonJS({ "../../node_modules/scryptsy/lib/utils.js"(exports2, module2) { var crypto8 = require_crypto_browserify2(); var MAX_VALUE = 2147483647; @@ -61555,7 +119544,7 @@ ${formatDisplay(all, fmt)}`); var { checkAndInit, smixSync - } = require_utils8(); + } = require_utils9(); function scrypt5(key2, salt, N11, r10, p, dkLen, progressCallback) { const { XY: XY2, @@ -61582,7 +119571,7 @@ ${formatDisplay(all, fmt)}`); var { checkAndInit, smix - } = require_utils8(); + } = require_utils9(); async function scrypt5(key2, salt, N11, r10, p, dkLen, progressCallback, promiseInterval) { const { XY: XY2, @@ -61603,7 +119592,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/scryptsy/lib/index.js - var require_lib7 = __commonJS({ + var require_lib12 = __commonJS({ "../../node_modules/scryptsy/lib/index.js"(exports2, module2) { var scrypt5 = require_scryptSync(); scrypt5.async = require_scrypt4(); @@ -67484,7 +125473,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/store/src/util.js - var require_util5 = __commonJS({ + var require_util23 = __commonJS({ "../../node_modules/store/src/util.js"(exports2, module2) { var assign = make_assign(); var create = make_create(); @@ -67600,7 +125589,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/src/store-engine.js var require_store_engine = __commonJS({ "../../node_modules/store/src/store-engine.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var slice = util.slice; var pluck = util.pluck; var each = util.each; @@ -67788,7 +125777,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/localStorage.js var require_localStorage = __commonJS({ "../../node_modules/store/storages/localStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "localStorage", @@ -67825,7 +125814,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/oldFF-globalStorage.js var require_oldFF_globalStorage = __commonJS({ "../../node_modules/store/storages/oldFF-globalStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "oldFF-globalStorage", @@ -67862,7 +125851,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/oldIE-userDataStorage.js var require_oldIE_userDataStorage = __commonJS({ "../../node_modules/store/storages/oldIE-userDataStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "oldIE-userDataStorage", @@ -67960,7 +125949,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/cookieStorage.js var require_cookieStorage = __commonJS({ "../../node_modules/store/storages/cookieStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; var trim2 = util.trim; module2.exports = { @@ -68017,7 +126006,7 @@ ${formatDisplay(all, fmt)}`); // ../../node_modules/store/storages/sessionStorage.js var require_sessionStorage = __commonJS({ "../../node_modules/store/storages/sessionStorage.js"(exports2, module2) { - var util = require_util5(); + var util = require_util23(); var Global = util.Global; module2.exports = { name: "sessionStorage", @@ -68086,7 +126075,7 @@ ${formatDisplay(all, fmt)}`); }); // ../../node_modules/store/storages/all.js - var require_all = __commonJS({ + var require_all2 = __commonJS({ "../../node_modules/store/storages/all.js"(exports2, module2) { module2.exports = [ require_localStorage(), @@ -68285,7 +126274,7 @@ ${formatDisplay(all, fmt)}`); var require_store_legacy = __commonJS({ "../../node_modules/store/dist/store.legacy.js"(exports2, module2) { var engine = require_store_engine(); - var storages = require_all(); + var storages = require_all2(); var plugins = [require_json22()]; module2.exports = engine.createStore(storages, plugins); } @@ -70517,7 +128506,7 @@ ${formatDisplay(all, fmt)}`); } }; - // node_modules/@reef-chain/util-lib/dist/module/util-lib.mjs + // ../../node_modules/@reef-chain/util-lib/dist/module/util-lib.mjs var import_meta = {}; var Rj = Object.defineProperty; var Cj = (t, e, r10) => e in t ? Rj(t, e, { enumerable: true, configurable: true, writable: true, value: r10 }) : t[e] = r10; @@ -158842,7 +216831,7 @@ ${bz(e, r10)}`); }, Symbol.toStringTag, { value: "Module" })); // ../../node_modules/@reef-chain/util-lib/package.json - var version = "2.5.12"; + var version = "2.6.1"; // src/jsApi/accountApi.ts var import_utils3 = __toESM(require_utils3()); @@ -158851,175 +216840,34 @@ ${bz(e, r10)}`); var ethers_exports = {}; __export(ethers_exports, { BaseContract: () => BaseContract, - BigNumber: () => import_bignumber18.BigNumber, + BigNumber: () => import_bignumber17.BigNumber, Contract: () => Contract, ContractFactory: () => ContractFactory, - FixedNumber: () => import_bignumber18.FixedNumber, - Signer: () => Signer, - VoidSigner: () => VoidSigner, + FixedNumber: () => import_bignumber17.FixedNumber, + Signer: () => import_abstract_signer4.Signer, + VoidSigner: () => import_abstract_signer4.VoidSigner, Wallet: () => Wallet, Wordlist: () => Wordlist, constants: () => constants, - errors: () => import_logger44.ErrorCode, + errors: () => import_logger40.ErrorCode, getDefaultProvider: () => getDefaultProvider, - logger: () => logger42, - providers: () => lib_exports3, + logger: () => logger38, + providers: () => lib_exports2, utils: () => utils_exports, - version: () => version23, + version: () => version19, wordlists: () => wordlists }); // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js var import_bignumber = __toESM(require_lib3()); - - // ../../node_modules/@ethersproject/properties/lib.esm/index.js + var import_properties = __toESM(require_lib7()); var import_logger = __toESM(require_lib()); - // ../../node_modules/@ethersproject/properties/lib.esm/_version.js - var version2 = "properties/5.7.0"; - - // ../../node_modules/@ethersproject/properties/lib.esm/index.js - var __awaiter2 = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - var logger = new import_logger.Logger(version2); - function defineReadOnly(object, name6, value) { - Object.defineProperty(object, name6, { - enumerable: true, - value, - writable: false - }); - } - function getStatic(ctor, key2) { - for (let i = 0; i < 32; i++) { - if (ctor[key2]) { - return ctor[key2]; - } - if (!ctor.prototype || typeof ctor.prototype !== "object") { - break; - } - ctor = Object.getPrototypeOf(ctor.prototype).constructor; - } - return null; - } - function resolveProperties(object) { - return __awaiter2(this, void 0, void 0, function* () { - const promises = Object.keys(object).map((key2) => { - const value = object[key2]; - return Promise.resolve(value).then((v) => ({ key: key2, value: v })); - }); - const results = yield Promise.all(promises); - return results.reduce((accum, result) => { - accum[result.key] = result.value; - return accum; - }, {}); - }); - } - function checkProperties(object, properties) { - if (!object || typeof object !== "object") { - logger.throwArgumentError("invalid object", "object", object); - } - Object.keys(object).forEach((key2) => { - if (!properties[key2]) { - logger.throwArgumentError("invalid object key - " + key2, "transaction:" + key2, object); - } - }); - } - function shallowCopy(object) { - const result = {}; - for (const key2 in object) { - result[key2] = object[key2]; - } - return result; - } - var opaque = { bigint: true, boolean: true, "function": true, number: true, string: true }; - function _isFrozen(object) { - if (object === void 0 || object === null || opaque[typeof object]) { - return true; - } - if (Array.isArray(object) || typeof object === "object") { - if (!Object.isFrozen(object)) { - return false; - } - const keys = Object.keys(object); - for (let i = 0; i < keys.length; i++) { - let value = null; - try { - value = object[keys[i]]; - } catch (error) { - continue; - } - if (!_isFrozen(value)) { - return false; - } - } - return true; - } - return logger.throwArgumentError(`Cannot deepCopy ${typeof object}`, "object", object); - } - function _deepCopy(object) { - if (_isFrozen(object)) { - return object; - } - if (Array.isArray(object)) { - return Object.freeze(object.map((item) => deepCopy(item))); - } - if (typeof object === "object") { - const result = {}; - for (const key2 in object) { - const value = object[key2]; - if (value === void 0) { - continue; - } - defineReadOnly(result, key2, deepCopy(value)); - } - return result; - } - return logger.throwArgumentError(`Cannot deepCopy ${typeof object}`, "object", object); - } - function deepCopy(object) { - return _deepCopy(object); - } - var Description = class { - constructor(info) { - for (const key2 in info) { - this[key2] = deepCopy(info[key2]); - } - } - }; - - // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js - var import_logger2 = __toESM(require_lib()); - // ../../node_modules/@ethersproject/abi/lib.esm/_version.js - var version3 = "abi/5.7.0"; + var version2 = "abi/5.7.0"; // ../../node_modules/@ethersproject/abi/lib.esm/fragments.js - var logger2 = new import_logger2.Logger(version3); + var logger = new import_logger.Logger(version2); var _constructorGuard = {}; var ModifiersBytes = { calldata: true, memory: true, storage: true }; var ModifiersNest = { calldata: true, memory: true }; @@ -159038,14 +216886,14 @@ ${bz(e, r10)}`); } } if (ModifiersBytes[name6] || name6 === "payable") { - logger2.throwArgumentError("invalid modifier", "name", name6); + logger.throwArgumentError("invalid modifier", "name", name6); } return false; } function parseParamType(param, allowIndexed) { let originalParam = param; function throwError(i) { - logger2.throwArgumentError(`unexpected character at position ${i}`, "param", param); + logger.throwArgumentError(`unexpected character at position ${i}`, "param", param); } param = param.replace(/\s/g, " "); function newNode(parent2) { @@ -159174,7 +217022,7 @@ ${bz(e, r10)}`); } } if (node.parent) { - logger2.throwArgumentError("unexpected eof", "param", param); + logger.throwArgumentError("unexpected eof", "param", param); } delete parent.state; if (node.name === "indexed") { @@ -159194,7 +217042,7 @@ ${bz(e, r10)}`); } function populate(object, params) { for (let key2 in params) { - defineReadOnly(object, key2, params[key2]); + (0, import_properties.defineReadOnly)(object, key2, params[key2]); } } var FormatTypes = Object.freeze({ @@ -159207,7 +217055,7 @@ ${bz(e, r10)}`); var ParamType = class { constructor(constructorGuard, params) { if (constructorGuard !== _constructorGuard) { - logger2.throwError("use fromString", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("use fromString", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new ParamType()" }); } @@ -159237,7 +217085,7 @@ ${bz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { let result2 = { @@ -159314,7 +217162,7 @@ ${bz(e, r10)}`); var Fragment = class { constructor(constructorGuard, params) { if (constructorGuard !== _constructorGuard) { - logger2.throwError("use a static from method", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("use a static from method", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new Fragment()" }); } @@ -159348,7 +217196,7 @@ ${bz(e, r10)}`); case "receive": return null; } - return logger2.throwArgumentError("invalid fragment object", "value", value); + return logger.throwArgumentError("invalid fragment object", "value", value); } static fromString(value) { value = value.replace(/\s/g, " "); @@ -159363,7 +217211,7 @@ ${bz(e, r10)}`); } else if (value.split(" ")[0] === "error") { return ErrorFragment.fromString(value.substring(5).trim()); } - return logger2.throwArgumentError("unsupported fragment", "value", value); + return logger.throwArgumentError("unsupported fragment", "value", value); } static isFragment(value) { return !!(value && value._isFragment); @@ -159375,7 +217223,7 @@ ${bz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159408,7 +217256,7 @@ ${bz(e, r10)}`); return value; } if (value.type !== "event") { - logger2.throwArgumentError("invalid event object", "value", value); + logger.throwArgumentError("invalid event object", "value", value); } const params = { name: verifyIdentifier(value.name), @@ -159421,7 +217269,7 @@ ${bz(e, r10)}`); static fromString(value) { let match = value.match(regexParen); if (!match) { - logger2.throwArgumentError("invalid event string", "value", value); + logger.throwArgumentError("invalid event string", "value", value); } let anonymous = false; match[3].split(" ").forEach((modifier) => { @@ -159432,7 +217280,7 @@ ${bz(e, r10)}`); case "": break; default: - logger2.warn("unknown modifier: " + modifier); + logger.warn("unknown modifier: " + modifier); } }); return EventFragment.fromObject({ @@ -159451,10 +217299,10 @@ ${bz(e, r10)}`); let comps = value.split("@"); if (comps.length !== 1) { if (comps.length > 2) { - logger2.throwArgumentError("invalid human-readable ABI signature", "value", value); + logger.throwArgumentError("invalid human-readable ABI signature", "value", value); } if (!comps[1].match(/^[0-9]+$/)) { - logger2.throwArgumentError("invalid human-readable ABI signature gas", "value", value); + logger.throwArgumentError("invalid human-readable ABI signature gas", "value", value); } params.gas = import_bignumber.BigNumber.from(comps[1]); return comps[0]; @@ -159506,19 +217354,19 @@ ${bz(e, r10)}`); result.constant = result.stateMutability === "view" || result.stateMutability === "pure"; if (value.constant != null) { if (!!value.constant !== result.constant) { - logger2.throwArgumentError("cannot have constant function with mutability " + result.stateMutability, "value", value); + logger.throwArgumentError("cannot have constant function with mutability " + result.stateMutability, "value", value); } } result.payable = result.stateMutability === "payable"; if (value.payable != null) { if (!!value.payable !== result.payable) { - logger2.throwArgumentError("cannot have payable function with mutability " + result.stateMutability, "value", value); + logger.throwArgumentError("cannot have payable function with mutability " + result.stateMutability, "value", value); } } } else if (value.payable != null) { result.payable = !!value.payable; if (value.constant == null && !result.payable && value.type !== "constructor") { - logger2.throwArgumentError("unable to determine stateMutability", "value", value); + logger.throwArgumentError("unable to determine stateMutability", "value", value); } result.constant = !!value.constant; if (result.constant) { @@ -159527,14 +217375,14 @@ ${bz(e, r10)}`); result.stateMutability = result.payable ? "payable" : "nonpayable"; } if (result.payable && result.constant) { - logger2.throwArgumentError("cannot have constant payable function", "value", value); + logger.throwArgumentError("cannot have constant payable function", "value", value); } } else if (value.constant != null) { result.constant = !!value.constant; result.payable = !result.constant; result.stateMutability = result.constant ? "view" : "payable"; } else if (value.type !== "constructor") { - logger2.throwArgumentError("unable to determine stateMutability", "value", value); + logger.throwArgumentError("unable to determine stateMutability", "value", value); } return result; } @@ -159544,7 +217392,7 @@ ${bz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159556,7 +217404,7 @@ ${bz(e, r10)}`); }); } if (format === FormatTypes.sighash) { - logger2.throwError("cannot format a constructor for sighash", import_logger2.Logger.errors.UNSUPPORTED_OPERATION, { + logger.throwError("cannot format a constructor for sighash", import_logger.Logger.errors.UNSUPPORTED_OPERATION, { operation: "format(sighash)" }); } @@ -159577,11 +217425,11 @@ ${bz(e, r10)}`); return value; } if (value.type !== "constructor") { - logger2.throwArgumentError("invalid constructor object", "value", value); + logger.throwArgumentError("invalid constructor object", "value", value); } let state = verifyState(value); if (state.constant) { - logger2.throwArgumentError("constructor cannot be constant", "value", value); + logger.throwArgumentError("constructor cannot be constant", "value", value); } const params = { name: null, @@ -159598,7 +217446,7 @@ ${bz(e, r10)}`); value = parseGas(value, params); let parens = value.match(regexParen); if (!parens || parens[1].trim() !== "constructor") { - logger2.throwArgumentError("invalid constructor string", "value", value); + logger.throwArgumentError("invalid constructor string", "value", value); } params.inputs = parseParams(parens[2].trim(), false); parseModifiers(parens[3].trim(), params); @@ -159614,7 +217462,7 @@ ${bz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159661,7 +217509,7 @@ ${bz(e, r10)}`); return value; } if (value.type !== "function") { - logger2.throwArgumentError("invalid function object", "value", value); + logger.throwArgumentError("invalid function object", "value", value); } let state = verifyState(value); const params = { @@ -159681,11 +217529,11 @@ ${bz(e, r10)}`); value = parseGas(value, params); let comps = value.split(" returns "); if (comps.length > 2) { - logger2.throwArgumentError("invalid function string", "value", value); + logger.throwArgumentError("invalid function string", "value", value); } let parens = comps[0].match(regexParen); if (!parens) { - logger2.throwArgumentError("invalid function signature", "value", value); + logger.throwArgumentError("invalid function signature", "value", value); } params.name = parens[1].trim(); if (params.name) { @@ -159696,7 +217544,7 @@ ${bz(e, r10)}`); if (comps.length > 1) { let returns = comps[1].match(regexParen); if (returns[1].trim() != "" || returns[3].trim() != "") { - logger2.throwArgumentError("unexpected tokens", "value", value); + logger.throwArgumentError("unexpected tokens", "value", value); } params.outputs = parseParams(returns[2], false); } else { @@ -159711,7 +217559,7 @@ ${bz(e, r10)}`); function checkForbidden(fragment) { const sig = fragment.format(); if (sig === "Error(string)" || sig === "Panic(uint256)") { - logger2.throwArgumentError(`cannot specify user defined ${sig} error`, "fragment", fragment); + logger.throwArgumentError(`cannot specify user defined ${sig} error`, "fragment", fragment); } return fragment; } @@ -159721,7 +217569,7 @@ ${bz(e, r10)}`); format = FormatTypes.sighash; } if (!FormatTypes[format]) { - logger2.throwArgumentError("invalid format type", "format", format); + logger.throwArgumentError("invalid format type", "format", format); } if (format === FormatTypes.json) { return JSON.stringify({ @@ -159748,7 +217596,7 @@ ${bz(e, r10)}`); return value; } if (value.type !== "error") { - logger2.throwArgumentError("invalid error object", "value", value); + logger.throwArgumentError("invalid error object", "value", value); } const params = { type: value.type, @@ -159761,7 +217609,7 @@ ${bz(e, r10)}`); let params = { type: "error" }; let parens = value.match(regexParen); if (!parens) { - logger2.throwArgumentError("invalid error signature", "value", value); + logger.throwArgumentError("invalid error signature", "value", value); } params.name = parens[1].trim(); if (params.name) { @@ -159785,7 +217633,7 @@ ${bz(e, r10)}`); var regexIdentifier = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"); function verifyIdentifier(value) { if (!value || !value.match(regexIdentifier)) { - logger2.throwArgumentError(`invalid identifier "${value}"`, "value", value); + logger.throwArgumentError(`invalid identifier "${value}"`, "value", value); } return value; } @@ -159807,7 +217655,7 @@ ${bz(e, r10)}`); } else if (c === ")") { depth--; if (depth === -1) { - logger2.throwArgumentError("unbalanced parenthesis", "value", value); + logger.throwArgumentError("unbalanced parenthesis", "value", value); } } } @@ -159819,14 +217667,16 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/abi/lib.esm/abi-coder.js - var import_bytes9 = __toESM(require_lib2()); - var import_logger7 = __toESM(require_lib()); + var import_bytes6 = __toESM(require_lib2()); + var import_properties3 = __toESM(require_lib7()); + var import_logger4 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js var import_bytes = __toESM(require_lib2()); var import_bignumber2 = __toESM(require_lib3()); - var import_logger3 = __toESM(require_lib()); - var logger3 = new import_logger3.Logger(version3); + var import_properties2 = __toESM(require_lib7()); + var import_logger2 = __toESM(require_lib()); + var logger2 = new import_logger2.Logger(version2); function checkResultErrors(result) { const errors2 = []; const checkErrors = function(path, object) { @@ -159854,12 +217704,12 @@ ${bz(e, r10)}`); this.dynamic = dynamic; } _throwError(message, value) { - logger3.throwArgumentError(message, this.localName, value); + logger2.throwArgumentError(message, this.localName, value); } }; var Writer = class { constructor(wordSize) { - defineReadOnly(this, "wordSize", wordSize || 32); + (0, import_properties2.defineReadOnly)(this, "wordSize", wordSize || 32); this._data = []; this._dataLength = 0; this._padding = new Uint8Array(wordSize); @@ -159889,7 +217739,7 @@ ${bz(e, r10)}`); _getValue(value) { let bytes5 = (0, import_bytes.arrayify)(import_bignumber2.BigNumber.from(value)); if (bytes5.length > this.wordSize) { - logger3.throwError("value out-of-bounds", import_logger3.Logger.errors.BUFFER_OVERRUN, { + logger2.throwError("value out-of-bounds", import_logger2.Logger.errors.BUFFER_OVERRUN, { length: this.wordSize, offset: bytes5.length }); @@ -159913,10 +217763,10 @@ ${bz(e, r10)}`); }; var Reader = class { constructor(data, wordSize, coerceFunc, allowLoose) { - defineReadOnly(this, "_data", (0, import_bytes.arrayify)(data)); - defineReadOnly(this, "wordSize", wordSize || 32); - defineReadOnly(this, "_coerceFunc", coerceFunc); - defineReadOnly(this, "allowLoose", allowLoose); + (0, import_properties2.defineReadOnly)(this, "_data", (0, import_bytes.arrayify)(data)); + (0, import_properties2.defineReadOnly)(this, "wordSize", wordSize || 32); + (0, import_properties2.defineReadOnly)(this, "_coerceFunc", coerceFunc); + (0, import_properties2.defineReadOnly)(this, "allowLoose", allowLoose); this._offset = 0; } get data() { @@ -159944,7 +217794,7 @@ ${bz(e, r10)}`); if (this.allowLoose && loose && this._offset + length <= this._data.length) { alignedLength = length; } else { - logger3.throwError("data out-of-bounds", import_logger3.Logger.errors.BUFFER_OVERRUN, { + logger2.throwError("data out-of-bounds", import_logger2.Logger.errors.BUFFER_OVERRUN, { length: this._data.length, offset: this._offset + alignedLength }); @@ -159965,263 +217815,9 @@ ${bz(e, r10)}`); } }; - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var import_bytes4 = __toESM(require_lib2()); - var import_bignumber3 = __toESM(require_lib3()); - - // ../../node_modules/@ethersproject/keccak256/lib.esm/index.js - var import_js_sha3 = __toESM(require_sha32()); - var import_bytes2 = __toESM(require_lib2()); - function keccak256(data) { - return "0x" + import_js_sha3.default.keccak_256((0, import_bytes2.arrayify)(data)); - } - - // ../../node_modules/@ethersproject/rlp/lib.esm/index.js - var lib_exports = {}; - __export(lib_exports, { - decode: () => decode, - encode: () => encode - }); - var import_bytes3 = __toESM(require_lib2()); - var import_logger4 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/rlp/lib.esm/_version.js - var version4 = "rlp/5.7.0"; - - // ../../node_modules/@ethersproject/rlp/lib.esm/index.js - var logger4 = new import_logger4.Logger(version4); - function arrayifyInteger(value) { - const result = []; - while (value) { - result.unshift(value & 255); - value >>= 8; - } - return result; - } - function unarrayifyInteger(data, offset, length) { - let result = 0; - for (let i = 0; i < length; i++) { - result = result * 256 + data[offset + i]; - } - return result; - } - function _encode(object) { - if (Array.isArray(object)) { - let payload = []; - object.forEach(function(child) { - payload = payload.concat(_encode(child)); - }); - if (payload.length <= 55) { - payload.unshift(192 + payload.length); - return payload; - } - const length2 = arrayifyInteger(payload.length); - length2.unshift(247 + length2.length); - return length2.concat(payload); - } - if (!(0, import_bytes3.isBytesLike)(object)) { - logger4.throwArgumentError("RLP object must be BytesLike", "object", object); - } - const data = Array.prototype.slice.call((0, import_bytes3.arrayify)(object)); - if (data.length === 1 && data[0] <= 127) { - return data; - } else if (data.length <= 55) { - data.unshift(128 + data.length); - return data; - } - const length = arrayifyInteger(data.length); - length.unshift(183 + length.length); - return length.concat(data); - } - function encode(object) { - return (0, import_bytes3.hexlify)(_encode(object)); - } - function _decodeChildren(data, offset, childOffset, length) { - const result = []; - while (childOffset < offset + 1 + length) { - const decoded = _decode(data, childOffset); - result.push(decoded.result); - childOffset += decoded.consumed; - if (childOffset > offset + 1 + length) { - logger4.throwError("child data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - } - return { consumed: 1 + length, result }; - } - function _decode(data, offset) { - if (data.length === 0) { - logger4.throwError("data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - if (data[offset] >= 248) { - const lengthLength = data[offset] - 247; - if (offset + 1 + lengthLength > data.length) { - logger4.throwError("data short segment too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const length = unarrayifyInteger(data, offset + 1, lengthLength); - if (offset + 1 + lengthLength + length > data.length) { - logger4.throwError("data long segment too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length); - } else if (data[offset] >= 192) { - const length = data[offset] - 192; - if (offset + 1 + length > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - return _decodeChildren(data, offset, offset + 1, length); - } else if (data[offset] >= 184) { - const lengthLength = data[offset] - 183; - if (offset + 1 + lengthLength > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const length = unarrayifyInteger(data, offset + 1, lengthLength); - if (offset + 1 + lengthLength + length > data.length) { - logger4.throwError("data array too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const result = (0, import_bytes3.hexlify)(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length)); - return { consumed: 1 + lengthLength + length, result }; - } else if (data[offset] >= 128) { - const length = data[offset] - 128; - if (offset + 1 + length > data.length) { - logger4.throwError("data too short", import_logger4.Logger.errors.BUFFER_OVERRUN, {}); - } - const result = (0, import_bytes3.hexlify)(data.slice(offset + 1, offset + 1 + length)); - return { consumed: 1 + length, result }; - } - return { consumed: 1, result: (0, import_bytes3.hexlify)(data[offset]) }; - } - function decode(data) { - const bytes5 = (0, import_bytes3.arrayify)(data); - const decoded = _decode(bytes5, 0); - if (decoded.consumed !== bytes5.length) { - logger4.throwArgumentError("invalid rlp data", "data", data); - } - return decoded.result; - } - - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var import_logger5 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/address/lib.esm/_version.js - var version5 = "address/5.7.0"; - - // ../../node_modules/@ethersproject/address/lib.esm/index.js - var logger5 = new import_logger5.Logger(version5); - function getChecksumAddress(address) { - if (!(0, import_bytes4.isHexString)(address, 20)) { - logger5.throwArgumentError("invalid address", "address", address); - } - address = address.toLowerCase(); - const chars2 = address.substring(2).split(""); - const expanded = new Uint8Array(40); - for (let i = 0; i < 40; i++) { - expanded[i] = chars2[i].charCodeAt(0); - } - const hashed = (0, import_bytes4.arrayify)(keccak256(expanded)); - for (let i = 0; i < 40; i += 2) { - if (hashed[i >> 1] >> 4 >= 8) { - chars2[i] = chars2[i].toUpperCase(); - } - if ((hashed[i >> 1] & 15) >= 8) { - chars2[i + 1] = chars2[i + 1].toUpperCase(); - } - } - return "0x" + chars2.join(""); - } - var MAX_SAFE_INTEGER = 9007199254740991; - function log10(x) { - if (Math.log10) { - return Math.log10(x); - } - return Math.log(x) / Math.LN10; - } - var ibanLookup = {}; - for (let i = 0; i < 10; i++) { - ibanLookup[String(i)] = String(i); - } - for (let i = 0; i < 26; i++) { - ibanLookup[String.fromCharCode(65 + i)] = String(10 + i); - } - var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER)); - function ibanChecksum(address) { - address = address.toUpperCase(); - address = address.substring(4) + address.substring(0, 2) + "00"; - let expanded = address.split("").map((c) => { - return ibanLookup[c]; - }).join(""); - while (expanded.length >= safeDigits) { - let block = expanded.substring(0, safeDigits); - expanded = parseInt(block, 10) % 97 + expanded.substring(block.length); - } - let checksum = String(98 - parseInt(expanded, 10) % 97); - while (checksum.length < 2) { - checksum = "0" + checksum; - } - return checksum; - } - function getAddress(address) { - let result = null; - if (typeof address !== "string") { - logger5.throwArgumentError("invalid address", "address", address); - } - if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { - if (address.substring(0, 2) !== "0x") { - address = "0x" + address; - } - result = getChecksumAddress(address); - if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { - logger5.throwArgumentError("bad address checksum", "address", address); - } - } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { - if (address.substring(2, 4) !== ibanChecksum(address)) { - logger5.throwArgumentError("bad icap checksum", "address", address); - } - result = (0, import_bignumber3._base36To16)(address.substring(4)); - while (result.length < 40) { - result = "0" + result; - } - result = getChecksumAddress("0x" + result); - } else { - logger5.throwArgumentError("invalid address", "address", address); - } - return result; - } - function isAddress(address) { - try { - getAddress(address); - return true; - } catch (error) { - } - return false; - } - function getIcapAddress(address) { - let base36 = (0, import_bignumber3._base16To36)(getAddress(address).substring(2)).toUpperCase(); - while (base36.length < 30) { - base36 = "0" + base36; - } - return "XE" + ibanChecksum("XE00" + base36) + base36; - } - function getContractAddress(transaction) { - let from2 = null; - try { - from2 = getAddress(transaction.from); - } catch (error) { - logger5.throwArgumentError("missing from address", "transaction", transaction); - } - const nonce = (0, import_bytes4.stripZeros)((0, import_bytes4.arrayify)(import_bignumber3.BigNumber.from(transaction.nonce).toHexString())); - return getAddress((0, import_bytes4.hexDataSlice)(keccak256(encode([from2, nonce])), 12)); - } - function getCreate2Address(from2, salt, initCodeHash) { - if ((0, import_bytes4.hexDataLength)(salt) !== 32) { - logger5.throwArgumentError("salt must be 32 bytes", "salt", salt); - } - if ((0, import_bytes4.hexDataLength)(initCodeHash) !== 32) { - logger5.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash); - } - return getAddress((0, import_bytes4.hexDataSlice)(keccak256((0, import_bytes4.concat)(["0xff", getAddress(from2), salt, initCodeHash])), 12)); - } - // ../../node_modules/@ethersproject/abi/lib.esm/coders/address.js - var import_bytes5 = __toESM(require_lib2()); + var import_address = __toESM(require_lib10()); + var import_bytes2 = __toESM(require_lib2()); var AddressCoder = class extends Coder { constructor(localName) { super("address", "address", localName, false); @@ -160231,19 +217827,19 @@ ${bz(e, r10)}`); } encode(writer, value) { try { - value = getAddress(value); + value = (0, import_address.getAddress)(value); } catch (error) { this._throwError(error.message, value); } return writer.writeValue(value); } decode(reader) { - return getAddress((0, import_bytes5.hexZeroPad)(reader.readValue().toHexString(), 20)); + return (0, import_address.getAddress)((0, import_bytes2.hexZeroPad)(reader.readValue().toHexString(), 20)); } }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/array.js - var import_logger6 = __toESM(require_lib()); + var import_logger3 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js var AnonymousCoder = class extends Coder { @@ -160263,7 +217859,7 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/array.js - var logger6 = new import_logger6.Logger(version3); + var logger3 = new import_logger3.Logger(version2); function pack(writer, coders, values) { let arrayValues = null; if (Array.isArray(values)) { @@ -160273,14 +217869,14 @@ ${bz(e, r10)}`); arrayValues = coders.map((coder) => { const name6 = coder.localName; if (!name6) { - logger6.throwError("cannot encode object for signature with missing names", import_logger6.Logger.errors.INVALID_ARGUMENT, { + logger3.throwError("cannot encode object for signature with missing names", import_logger3.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder, value: values }); } if (unique[name6]) { - logger6.throwError("cannot encode object for signature with duplicate names", import_logger6.Logger.errors.INVALID_ARGUMENT, { + logger3.throwError("cannot encode object for signature with duplicate names", import_logger3.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder, value: values @@ -160290,10 +217886,10 @@ ${bz(e, r10)}`); return values[name6]; }); } else { - logger6.throwArgumentError("invalid tuple value", "tuple", values); + logger3.throwArgumentError("invalid tuple value", "tuple", values); } if (coders.length !== arrayValues.length) { - logger6.throwArgumentError("types/value length mismatch", "tuple", values); + logger3.throwArgumentError("types/value length mismatch", "tuple", values); } let staticWriter = new Writer(writer.wordSize); let dynamicWriter = new Writer(writer.wordSize); @@ -160329,7 +217925,7 @@ ${bz(e, r10)}`); try { value = coder.decode(offsetReader); } catch (error) { - if (error.code === import_logger6.Logger.errors.BUFFER_OVERRUN) { + if (error.code === import_logger3.Logger.errors.BUFFER_OVERRUN) { throw error; } value = error; @@ -160341,7 +217937,7 @@ ${bz(e, r10)}`); try { value = coder.decode(reader); } catch (error) { - if (error.code === import_logger6.Logger.errors.BUFFER_OVERRUN) { + if (error.code === import_logger3.Logger.errors.BUFFER_OVERRUN) { throw error; } value = error; @@ -160425,7 +218021,7 @@ ${bz(e, r10)}`); count = value.length; writer.writeValue(value.length); } - logger6.checkArgumentCount(value.length, count, "coder array" + (this.localName ? " " + this.localName : "")); + logger3.checkArgumentCount(value.length, count, "coder array" + (this.localName ? " " + this.localName : "")); let coders = []; for (let i = 0; i < value.length; i++) { coders.push(this.coder); @@ -160437,7 +218033,7 @@ ${bz(e, r10)}`); if (count === -1) { count = reader.readValue().toNumber(); if (count * 32 > reader._data.length) { - logger6.throwError("insufficient data length", import_logger6.Logger.errors.BUFFER_OVERRUN, { + logger3.throwError("insufficient data length", import_logger3.Logger.errors.BUFFER_OVERRUN, { length: reader._data.length, count }); @@ -160468,7 +218064,7 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/bytes.js - var import_bytes6 = __toESM(require_lib2()); + var import_bytes3 = __toESM(require_lib2()); var DynamicBytesCoder = class extends Coder { constructor(type, localName) { super(type, type, localName, true); @@ -160477,7 +218073,7 @@ ${bz(e, r10)}`); return "0x"; } encode(writer, value) { - value = (0, import_bytes6.arrayify)(value); + value = (0, import_bytes3.arrayify)(value); let length = writer.writeValue(value.length); length += writer.writeBytes(value); return length; @@ -160491,12 +218087,12 @@ ${bz(e, r10)}`); super("bytes", localName); } decode(reader) { - return reader.coerce(this.name, (0, import_bytes6.hexlify)(super.decode(reader))); + return reader.coerce(this.name, (0, import_bytes3.hexlify)(super.decode(reader))); } }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js - var import_bytes7 = __toESM(require_lib2()); + var import_bytes4 = __toESM(require_lib2()); var FixedBytesCoder = class extends Coder { constructor(size, localName) { let name6 = "bytes" + String(size); @@ -160507,14 +218103,14 @@ ${bz(e, r10)}`); return "0x0000000000000000000000000000000000000000000000000000000000000000".substring(0, 2 + this.size * 2); } encode(writer, value) { - let data = (0, import_bytes7.arrayify)(value); + let data = (0, import_bytes4.arrayify)(value); if (data.length !== this.size) { this._throwError("incorrect data length", value); } return writer.writeBytes(data); } decode(reader) { - return reader.coerce(this.name, (0, import_bytes7.hexlify)(reader.readBytes(this.size))); + return reader.coerce(this.name, (0, import_bytes4.hexlify)(reader.readBytes(this.size))); } }; @@ -160539,7 +218135,7 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/coders/number.js - var import_bignumber4 = __toESM(require_lib3()); + var import_bignumber3 = __toESM(require_lib3()); var import_constants = __toESM(require_lib5()); var NumberCoder = class extends Coder { constructor(size, signed2, localName) { @@ -160552,7 +218148,7 @@ ${bz(e, r10)}`); return 0; } encode(writer, value) { - let v = import_bignumber4.BigNumber.from(value); + let v = import_bignumber3.BigNumber.from(value); let maxUintValue = import_constants.MaxUint256.mask(writer.wordSize * 8); if (this.signed) { let bounds = maxUintValue.mask(this.size * 8 - 1); @@ -160648,12 +218244,12 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/abi/lib.esm/abi-coder.js - var logger7 = new import_logger7.Logger(version3); + var logger4 = new import_logger4.Logger(version2); var paramTypeBytes = new RegExp(/^bytes([0-9]*)$/); var paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/); var AbiCoder = class { constructor(coerceFunc) { - defineReadOnly(this, "coerceFunc", coerceFunc || null); + (0, import_properties3.defineReadOnly)(this, "coerceFunc", coerceFunc || null); } _getCoder(param) { switch (param.baseType) { @@ -160678,7 +218274,7 @@ ${bz(e, r10)}`); if (match) { let size = parseInt(match[2] || "256"); if (size === 0 || size > 256 || size % 8 !== 0) { - logger7.throwArgumentError("invalid " + match[1] + " bit length", "param", param); + logger4.throwArgumentError("invalid " + match[1] + " bit length", "param", param); } return new NumberCoder(size / 8, match[1] === "int", param.name); } @@ -160686,11 +218282,11 @@ ${bz(e, r10)}`); if (match) { let size = parseInt(match[1]); if (size === 0 || size > 32) { - logger7.throwArgumentError("invalid bytes length", "param", param); + logger4.throwArgumentError("invalid bytes length", "param", param); } return new FixedBytesCoder(size, param.name); } - return logger7.throwArgumentError("invalid type", "type", param.type); + return logger4.throwArgumentError("invalid type", "type", param.type); } _getWordSize() { return 32; @@ -160708,7 +218304,7 @@ ${bz(e, r10)}`); } encode(types2, values) { if (types2.length !== values.length) { - logger7.throwError("types/values length mismatch", import_logger7.Logger.errors.INVALID_ARGUMENT, { + logger4.throwError("types/values length mismatch", import_logger4.Logger.errors.INVALID_ARGUMENT, { count: { types: types2.length, values: values.length }, value: { types: types2, values } }); @@ -160722,51 +218318,54 @@ ${bz(e, r10)}`); decode(types2, data, loose) { const coders = types2.map((type) => this._getCoder(ParamType.from(type))); const coder = new TupleCoder(coders, "_"); - return coder.decode(this._getReader((0, import_bytes9.arrayify)(data), loose)); + return coder.decode(this._getReader((0, import_bytes6.arrayify)(data), loose)); } }; var defaultAbiCoder = new AbiCoder(); // ../../node_modules/@ethersproject/abi/lib.esm/interface.js - var import_bignumber6 = __toESM(require_lib3()); - var import_bytes15 = __toESM(require_lib2()); + var import_address4 = __toESM(require_lib10()); + var import_bignumber5 = __toESM(require_lib3()); + var import_bytes12 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/hash/lib.esm/id.js + var import_keccak256 = __toESM(require_lib8()); var import_strings2 = __toESM(require_lib6()); function id2(text2) { - return keccak256((0, import_strings2.toUtf8Bytes)(text2)); + return (0, import_keccak256.keccak256)((0, import_strings2.toUtf8Bytes)(text2)); } // ../../node_modules/@ethersproject/hash/lib.esm/namehash.js - var import_bytes12 = __toESM(require_lib2()); + var import_bytes9 = __toESM(require_lib2()); var import_strings4 = __toESM(require_lib6()); - var import_logger8 = __toESM(require_lib()); + var import_keccak2562 = __toESM(require_lib8()); + var import_logger5 = __toESM(require_lib()); // ../../node_modules/@ethersproject/hash/lib.esm/_version.js - var version6 = "hash/5.7.0"; + var version3 = "hash/5.7.0"; // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js var import_strings3 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/base64/lib.esm/index.js - var lib_exports2 = {}; - __export(lib_exports2, { - decode: () => decode2, - encode: () => encode2 + var lib_exports = {}; + __export(lib_exports, { + decode: () => decode, + encode: () => encode }); // ../../node_modules/@ethersproject/base64/lib.esm/base64.js - var import_bytes11 = __toESM(require_lib2()); - function decode2(textData) { + var import_bytes8 = __toESM(require_lib2()); + function decode(textData) { textData = atob(textData); const data = []; for (let i = 0; i < textData.length; i++) { data.push(textData.charCodeAt(i)); } - return (0, import_bytes11.arrayify)(data); + return (0, import_bytes8.arrayify)(data); } - function encode2(data) { - data = (0, import_bytes11.arrayify)(data); + function encode(data) { + data = (0, import_bytes8.arrayify)(data); let textData = ""; for (let i = 0; i < data.length; i++) { textData += String.fromCharCode(data[i]); @@ -160995,7 +218594,7 @@ ${bz(e, r10)}`); // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js function getData() { - return read_compressed_payload(decode2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0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kXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")); } // ../../node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js @@ -161101,7 +218700,7 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/namehash.js - var logger8 = new import_logger8.Logger(version6); + var logger5 = new import_logger5.Logger(version3); var Zeros = new Uint8Array(32); Zeros.fill(0); function checkComponent(comp) { @@ -161139,17 +218738,17 @@ ${bz(e, r10)}`); } function namehash(name6) { if (typeof name6 !== "string") { - logger8.throwArgumentError("invalid ENS name; not a string", "name", name6); + logger5.throwArgumentError("invalid ENS name; not a string", "name", name6); } let result = Zeros; const comps = ensNameSplit(name6); while (comps.length) { - result = keccak256((0, import_bytes12.concat)([result, keccak256(comps.pop())])); + result = (0, import_keccak2562.keccak256)((0, import_bytes9.concat)([result, (0, import_keccak2562.keccak256)(comps.pop())])); } - return (0, import_bytes12.hexlify)(result); + return (0, import_bytes9.hexlify)(result); } function dnsEncode(name6) { - return (0, import_bytes12.hexlify)((0, import_bytes12.concat)(ensNameSplit(name6).map((comp) => { + return (0, import_bytes9.hexlify)((0, import_bytes9.concat)(ensNameSplit(name6).map((comp) => { if (comp.length > 63) { throw new Error("invalid DNS encoded entry; length exceeds 63 bytes"); } @@ -161161,14 +218760,15 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/message.js - var import_bytes13 = __toESM(require_lib2()); + var import_bytes10 = __toESM(require_lib2()); + var import_keccak2563 = __toESM(require_lib8()); var import_strings5 = __toESM(require_lib6()); var messagePrefix = "Ethereum Signed Message:\n"; function hashMessage(message) { if (typeof message === "string") { message = (0, import_strings5.toUtf8Bytes)(message); } - return keccak256((0, import_bytes13.concat)([ + return (0, import_keccak2563.keccak256)((0, import_bytes10.concat)([ (0, import_strings5.toUtf8Bytes)(messagePrefix), (0, import_strings5.toUtf8Bytes)(String(message.length)), message @@ -161176,10 +218776,13 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/hash/lib.esm/typed-data.js - var import_bignumber5 = __toESM(require_lib3()); - var import_bytes14 = __toESM(require_lib2()); - var import_logger9 = __toESM(require_lib()); - var __awaiter3 = function(thisArg, _arguments, P, generator) { + var import_address3 = __toESM(require_lib10()); + var import_bignumber4 = __toESM(require_lib3()); + var import_bytes11 = __toESM(require_lib2()); + var import_keccak2564 = __toESM(require_lib8()); + var import_properties4 = __toESM(require_lib7()); + var import_logger6 = __toESM(require_lib()); + var __awaiter2 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -161206,23 +218809,23 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger9 = new import_logger9.Logger(version6); + var logger6 = new import_logger6.Logger(version3); var padding = new Uint8Array(32); padding.fill(0); - var NegativeOne2 = import_bignumber5.BigNumber.from(-1); - var Zero2 = import_bignumber5.BigNumber.from(0); - var One3 = import_bignumber5.BigNumber.from(1); - var MaxUint2562 = import_bignumber5.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); + var NegativeOne2 = import_bignumber4.BigNumber.from(-1); + var Zero2 = import_bignumber4.BigNumber.from(0); + var One3 = import_bignumber4.BigNumber.from(1); + var MaxUint2562 = import_bignumber4.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); function hexPadRight(value) { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); const padOffset = bytes5.length % 32; if (padOffset) { - return (0, import_bytes14.hexConcat)([bytes5, padding.slice(padOffset)]); + return (0, import_bytes11.hexConcat)([bytes5, padding.slice(padOffset)]); } - return (0, import_bytes14.hexlify)(bytes5); + return (0, import_bytes11.hexlify)(bytes5); } - var hexTrue = (0, import_bytes14.hexZeroPad)(One3.toHexString(), 32); - var hexFalse = (0, import_bytes14.hexZeroPad)(Zero2.toHexString(), 32); + var hexTrue = (0, import_bytes11.hexZeroPad)(One3.toHexString(), 32); + var hexFalse = (0, import_bytes11.hexZeroPad)(Zero2.toHexString(), 32); var domainFieldTypes = { name: "string", version: "string", @@ -161240,7 +218843,7 @@ ${bz(e, r10)}`); function checkString(key2) { return function(value) { if (typeof value !== "string") { - logger9.throwArgumentError(`invalid domain value for ${JSON.stringify(key2)}`, `domain.${key2}`, value); + logger6.throwArgumentError(`invalid domain value for ${JSON.stringify(key2)}`, `domain.${key2}`, value); } return value; }; @@ -161250,28 +218853,28 @@ ${bz(e, r10)}`); version: checkString("version"), chainId: function(value) { try { - return import_bignumber5.BigNumber.from(value).toString(); + return import_bignumber4.BigNumber.from(value).toString(); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value for "chainId"`, "domain.chainId", value); + return logger6.throwArgumentError(`invalid domain value for "chainId"`, "domain.chainId", value); }, verifyingContract: function(value) { try { - return getAddress(value).toLowerCase(); + return (0, import_address3.getAddress)(value).toLowerCase(); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); + return logger6.throwArgumentError(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); }, salt: function(value) { try { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); if (bytes5.length !== 32) { throw new Error("bad length"); } - return (0, import_bytes14.hexlify)(bytes5); + return (0, import_bytes11.hexlify)(bytes5); } catch (error) { } - return logger9.throwArgumentError(`invalid domain value "salt"`, "domain.salt", value); + return logger6.throwArgumentError(`invalid domain value "salt"`, "domain.salt", value); } }; function getBaseEncoder(type) { @@ -161281,16 +218884,16 @@ ${bz(e, r10)}`); const signed2 = match[1] === ""; const width = parseInt(match[2] || "256"); if (width % 8 !== 0 || width > 256 || match[2] && match[2] !== String(width)) { - logger9.throwArgumentError("invalid numeric width", "type", type); + logger6.throwArgumentError("invalid numeric width", "type", type); } const boundsUpper = MaxUint2562.mask(signed2 ? width - 1 : width); const boundsLower = signed2 ? boundsUpper.add(One3).mul(NegativeOne2) : Zero2; return function(value) { - const v = import_bignumber5.BigNumber.from(value); + const v = import_bignumber4.BigNumber.from(value); if (v.lt(boundsLower) || v.gt(boundsUpper)) { - logger9.throwArgumentError(`value out-of-bounds for ${type}`, "value", value); + logger6.throwArgumentError(`value out-of-bounds for ${type}`, "value", value); } - return (0, import_bytes14.hexZeroPad)(v.toTwos(256).toHexString(), 32); + return (0, import_bytes11.hexZeroPad)(v.toTwos(256).toHexString(), 32); }; } } @@ -161299,12 +218902,12 @@ ${bz(e, r10)}`); if (match) { const width = parseInt(match[1]); if (width === 0 || width > 32 || match[1] !== String(width)) { - logger9.throwArgumentError("invalid bytes width", "type", type); + logger6.throwArgumentError("invalid bytes width", "type", type); } return function(value) { - const bytes5 = (0, import_bytes14.arrayify)(value); + const bytes5 = (0, import_bytes11.arrayify)(value); if (bytes5.length !== width) { - logger9.throwArgumentError(`invalid length for ${type}`, "value", value); + logger6.throwArgumentError(`invalid length for ${type}`, "value", value); } return hexPadRight(value); }; @@ -161313,7 +218916,7 @@ ${bz(e, r10)}`); switch (type) { case "address": return function(value) { - return (0, import_bytes14.hexZeroPad)(getAddress(value), 32); + return (0, import_bytes11.hexZeroPad)((0, import_address3.getAddress)(value), 32); }; case "bool": return function(value) { @@ -161321,7 +218924,7 @@ ${bz(e, r10)}`); }; case "bytes": return function(value) { - return keccak256(value); + return (0, import_keccak2564.keccak256)(value); }; case "string": return function(value) { @@ -161335,9 +218938,9 @@ ${bz(e, r10)}`); } var TypedDataEncoder = class { constructor(types2) { - defineReadOnly(this, "types", Object.freeze(deepCopy(types2))); - defineReadOnly(this, "_encoderCache", {}); - defineReadOnly(this, "_types", {}); + (0, import_properties4.defineReadOnly)(this, "types", Object.freeze((0, import_properties4.deepCopy)(types2))); + (0, import_properties4.defineReadOnly)(this, "_encoderCache", {}); + (0, import_properties4.defineReadOnly)(this, "_types", {}); const links = {}; const parents = {}; const subtypes = {}; @@ -161350,19 +218953,19 @@ ${bz(e, r10)}`); const uniqueNames = {}; types2[name6].forEach((field) => { if (uniqueNames[field.name]) { - logger9.throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name6)}`, "types", types2); + logger6.throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name6)}`, "types", types2); } uniqueNames[field.name] = true; const baseType = field.type.match(/^([^\x5b]*)(\x5b|$)/)[1]; if (baseType === name6) { - logger9.throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, "types", types2); + logger6.throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, "types", types2); } const encoder5 = getBaseEncoder(baseType); if (encoder5) { return; } if (!parents[baseType]) { - logger9.throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, "types", types2); + logger6.throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, "types", types2); } parents[baseType].push(name6); links[name6][baseType] = true; @@ -161370,14 +218973,14 @@ ${bz(e, r10)}`); } const primaryTypes = Object.keys(parents).filter((n) => parents[n].length === 0); if (primaryTypes.length === 0) { - logger9.throwArgumentError("missing primary type", "types", types2); + logger6.throwArgumentError("missing primary type", "types", types2); } else if (primaryTypes.length > 1) { - logger9.throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => JSON.stringify(t)).join(", ")}`, "types", types2); + logger6.throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => JSON.stringify(t)).join(", ")}`, "types", types2); } - defineReadOnly(this, "primaryType", primaryTypes[0]); + (0, import_properties4.defineReadOnly)(this, "primaryType", primaryTypes[0]); function checkCircular(type, found) { if (found[type]) { - logger9.throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, "types", types2); + logger6.throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, "types", types2); } found[type] = true; Object.keys(links[type]).forEach((child) => { @@ -161419,13 +219022,13 @@ ${bz(e, r10)}`); const length = parseInt(match[3]); return (value) => { if (length >= 0 && value.length !== length) { - logger9.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); + logger6.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); } let result = value.map(subEncoder); if (this._types[subtype]) { - result = result.map(keccak256); + result = result.map(import_keccak2564.keccak256); } - return keccak256((0, import_bytes14.hexConcat)(result)); + return (0, import_keccak2564.keccak256)((0, import_bytes11.hexConcat)(result)); }; } const fields = this.types[type]; @@ -161435,20 +219038,20 @@ ${bz(e, r10)}`); const values = fields.map(({ name: name6, type: type2 }) => { const result = this.getEncoder(type2)(value[name6]); if (this._types[type2]) { - return keccak256(result); + return (0, import_keccak2564.keccak256)(result); } return result; }); values.unshift(encodedType); - return (0, import_bytes14.hexConcat)(values); + return (0, import_bytes11.hexConcat)(values); }; } - return logger9.throwArgumentError(`unknown type: ${type}`, "type", type); + return logger6.throwArgumentError(`unknown type: ${type}`, "type", type); } encodeType(name6) { const result = this._types[name6]; if (!result) { - logger9.throwArgumentError(`unknown type: ${JSON.stringify(name6)}`, "name", name6); + logger6.throwArgumentError(`unknown type: ${JSON.stringify(name6)}`, "name", name6); } return result; } @@ -161456,7 +219059,7 @@ ${bz(e, r10)}`); return this.getEncoder(type)(value); } hashStruct(name6, value) { - return keccak256(this.encodeData(name6, value)); + return (0, import_keccak2564.keccak256)(this.encodeData(name6, value)); } encode(value) { return this.encodeData(this.primaryType, value); @@ -161476,7 +219079,7 @@ ${bz(e, r10)}`); const subtype = match[1]; const length = parseInt(match[3]); if (length >= 0 && value.length !== length) { - logger9.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); + logger6.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); } return value.map((v) => this._visit(subtype, v, callback)); } @@ -161487,7 +219090,7 @@ ${bz(e, r10)}`); return accum; }, {}); } - return logger9.throwArgumentError(`unknown type: ${type}`, "type", type); + return logger6.throwArgumentError(`unknown type: ${type}`, "type", type); } visit(value, callback) { return this._visit(this.primaryType, value, callback); @@ -161506,7 +219109,7 @@ ${bz(e, r10)}`); for (const name6 in domain) { const type = domainFieldTypes[name6]; if (!type) { - logger9.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name6)}`, "domain", domain); + logger6.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name6)}`, "domain", domain); } domainFields.push({ name: name6, type }); } @@ -161516,25 +219119,25 @@ ${bz(e, r10)}`); return TypedDataEncoder.hashStruct("EIP712Domain", { EIP712Domain: domainFields }, domain); } static encode(domain, types2, value) { - return (0, import_bytes14.hexConcat)([ + return (0, import_bytes11.hexConcat)([ "0x1901", TypedDataEncoder.hashDomain(domain), TypedDataEncoder.from(types2).hash(value) ]); } static hash(domain, types2, value) { - return keccak256(TypedDataEncoder.encode(domain, types2, value)); + return (0, import_keccak2564.keccak256)(TypedDataEncoder.encode(domain, types2, value)); } static resolveNames(domain, types2, value, resolveName2) { - return __awaiter3(this, void 0, void 0, function* () { - domain = shallowCopy(domain); + return __awaiter2(this, void 0, void 0, function* () { + domain = (0, import_properties4.shallowCopy)(domain); const ensCache = {}; - if (domain.verifyingContract && !(0, import_bytes14.isHexString)(domain.verifyingContract, 20)) { + if (domain.verifyingContract && !(0, import_bytes11.isHexString)(domain.verifyingContract, 20)) { ensCache[domain.verifyingContract] = "0x"; } const encoder5 = TypedDataEncoder.from(types2); encoder5.visit(value, (type, value2) => { - if (type === "address" && !(0, import_bytes14.isHexString)(value2, 20)) { + if (type === "address" && !(0, import_bytes11.isHexString)(value2, 20)) { ensCache[value2] = "0x"; } return value2; @@ -161567,9 +219170,9 @@ ${bz(e, r10)}`); domainTypes.push({ name: name6, type: domainFieldTypes[name6] }); }); const encoder5 = TypedDataEncoder.from(types2); - const typesWithDomain = shallowCopy(types2); + const typesWithDomain = (0, import_properties4.shallowCopy)(types2); if (typesWithDomain.EIP712Domain) { - logger9.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types2); + logger6.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types2); } else { typesWithDomain.EIP712Domain = domainTypes; } @@ -161580,10 +219183,10 @@ ${bz(e, r10)}`); primaryType: encoder5.primaryType, message: encoder5.visit(value, (type, value2) => { if (type.match(/^bytes(\d*)/)) { - return (0, import_bytes14.hexlify)((0, import_bytes14.arrayify)(value2)); + return (0, import_bytes11.hexlify)((0, import_bytes11.arrayify)(value2)); } if (type.match(/^u?int/)) { - return import_bignumber5.BigNumber.from(value2).toString(); + return import_bignumber4.BigNumber.from(value2).toString(); } switch (type) { case "address": @@ -161592,26 +219195,28 @@ ${bz(e, r10)}`); return !!value2; case "string": if (typeof value2 !== "string") { - logger9.throwArgumentError(`invalid string`, "value", value2); + logger6.throwArgumentError(`invalid string`, "value", value2); } return value2; } - return logger9.throwArgumentError("unsupported type", "type", type); + return logger6.throwArgumentError("unsupported type", "type", type); }) }; } }; // ../../node_modules/@ethersproject/abi/lib.esm/interface.js - var import_logger10 = __toESM(require_lib()); - var logger10 = new import_logger10.Logger(version3); - var LogDescription = class extends Description { + var import_keccak2565 = __toESM(require_lib8()); + var import_properties5 = __toESM(require_lib7()); + var import_logger7 = __toESM(require_lib()); + var logger7 = new import_logger7.Logger(version2); + var LogDescription = class extends import_properties5.Description { }; - var TransactionDescription = class extends Description { + var TransactionDescription = class extends import_properties5.Description { }; - var ErrorDescription = class extends Description { + var ErrorDescription = class extends import_properties5.Description { }; - var Indexed = class extends Description { + var Indexed = class extends import_properties5.Description { static isIndexed(value) { return !!(value && value._isIndexed); } @@ -161633,23 +219238,23 @@ ${bz(e, r10)}`); } else { abi = fragments; } - defineReadOnly(this, "fragments", abi.map((fragment) => { + (0, import_properties5.defineReadOnly)(this, "fragments", abi.map((fragment) => { return Fragment.from(fragment); }).filter((fragment) => fragment != null)); - defineReadOnly(this, "_abiCoder", getStatic(new.target, "getAbiCoder")()); - defineReadOnly(this, "functions", {}); - defineReadOnly(this, "errors", {}); - defineReadOnly(this, "events", {}); - defineReadOnly(this, "structs", {}); + (0, import_properties5.defineReadOnly)(this, "_abiCoder", (0, import_properties5.getStatic)(new.target, "getAbiCoder")()); + (0, import_properties5.defineReadOnly)(this, "functions", {}); + (0, import_properties5.defineReadOnly)(this, "errors", {}); + (0, import_properties5.defineReadOnly)(this, "events", {}); + (0, import_properties5.defineReadOnly)(this, "structs", {}); this.fragments.forEach((fragment) => { let bucket = null; switch (fragment.type) { case "constructor": if (this.deploy) { - logger10.warn("duplicate definition - constructor"); + logger7.warn("duplicate definition - constructor"); return; } - defineReadOnly(this, "deploy", fragment); + (0, import_properties5.defineReadOnly)(this, "deploy", fragment); return; case "function": bucket = this.functions; @@ -161665,25 +219270,25 @@ ${bz(e, r10)}`); } let signature2 = fragment.format(); if (bucket[signature2]) { - logger10.warn("duplicate definition - " + signature2); + logger7.warn("duplicate definition - " + signature2); return; } bucket[signature2] = fragment; }); if (!this.deploy) { - defineReadOnly(this, "deploy", ConstructorFragment.from({ + (0, import_properties5.defineReadOnly)(this, "deploy", ConstructorFragment.from({ payable: false, type: "constructor" })); } - defineReadOnly(this, "_isInterface", true); + (0, import_properties5.defineReadOnly)(this, "_isInterface", true); } format(format) { if (!format) { format = FormatTypes.full; } if (format === FormatTypes.sighash) { - logger10.throwArgumentError("interface does not support formatting sighash", "format", format); + logger7.throwArgumentError("interface does not support formatting sighash", "format", format); } const abi = this.fragments.map((fragment) => fragment.format(format)); if (format === FormatTypes.json) { @@ -161695,89 +219300,89 @@ ${bz(e, r10)}`); return defaultAbiCoder; } static getAddress(address) { - return getAddress(address); + return (0, import_address4.getAddress)(address); } static getSighash(fragment) { - return (0, import_bytes15.hexDataSlice)(id2(fragment.format()), 0, 4); + return (0, import_bytes12.hexDataSlice)(id2(fragment.format()), 0, 4); } static getEventTopic(eventFragment) { return id2(eventFragment.format()); } getFunction(nameOrSignatureOrSighash) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrSighash)) { + if ((0, import_bytes12.isHexString)(nameOrSignatureOrSighash)) { for (const name6 in this.functions) { if (nameOrSignatureOrSighash === this.getSighash(name6)) { return this.functions[name6]; } } - logger10.throwArgumentError("no matching function", "sighash", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching function", "sighash", nameOrSignatureOrSighash); } if (nameOrSignatureOrSighash.indexOf("(") === -1) { const name6 = nameOrSignatureOrSighash.trim(); const matching = Object.keys(this.functions).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching function", "name", name6); + logger7.throwArgumentError("no matching function", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching functions", "name", name6); + logger7.throwArgumentError("multiple matching functions", "name", name6); } return this.functions[matching[0]]; } const result = this.functions[FunctionFragment.fromString(nameOrSignatureOrSighash).format()]; if (!result) { - logger10.throwArgumentError("no matching function", "signature", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching function", "signature", nameOrSignatureOrSighash); } return result; } getEvent(nameOrSignatureOrTopic) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrTopic)) { + if ((0, import_bytes12.isHexString)(nameOrSignatureOrTopic)) { const topichash = nameOrSignatureOrTopic.toLowerCase(); for (const name6 in this.events) { if (topichash === this.getEventTopic(name6)) { return this.events[name6]; } } - logger10.throwArgumentError("no matching event", "topichash", topichash); + logger7.throwArgumentError("no matching event", "topichash", topichash); } if (nameOrSignatureOrTopic.indexOf("(") === -1) { const name6 = nameOrSignatureOrTopic.trim(); const matching = Object.keys(this.events).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching event", "name", name6); + logger7.throwArgumentError("no matching event", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching events", "name", name6); + logger7.throwArgumentError("multiple matching events", "name", name6); } return this.events[matching[0]]; } const result = this.events[EventFragment.fromString(nameOrSignatureOrTopic).format()]; if (!result) { - logger10.throwArgumentError("no matching event", "signature", nameOrSignatureOrTopic); + logger7.throwArgumentError("no matching event", "signature", nameOrSignatureOrTopic); } return result; } getError(nameOrSignatureOrSighash) { - if ((0, import_bytes15.isHexString)(nameOrSignatureOrSighash)) { - const getSighash = getStatic(this.constructor, "getSighash"); + if ((0, import_bytes12.isHexString)(nameOrSignatureOrSighash)) { + const getSighash = (0, import_properties5.getStatic)(this.constructor, "getSighash"); for (const name6 in this.errors) { const error = this.errors[name6]; if (nameOrSignatureOrSighash === getSighash(error)) { return this.errors[name6]; } } - logger10.throwArgumentError("no matching error", "sighash", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching error", "sighash", nameOrSignatureOrSighash); } if (nameOrSignatureOrSighash.indexOf("(") === -1) { const name6 = nameOrSignatureOrSighash.trim(); const matching = Object.keys(this.errors).filter((f10) => f10.split("(")[0] === name6); if (matching.length === 0) { - logger10.throwArgumentError("no matching error", "name", name6); + logger7.throwArgumentError("no matching error", "name", name6); } else if (matching.length > 1) { - logger10.throwArgumentError("multiple matching errors", "name", name6); + logger7.throwArgumentError("multiple matching errors", "name", name6); } return this.errors[matching[0]]; } const result = this.errors[FunctionFragment.fromString(nameOrSignatureOrSighash).format()]; if (!result) { - logger10.throwArgumentError("no matching error", "signature", nameOrSignatureOrSighash); + logger7.throwArgumentError("no matching error", "signature", nameOrSignatureOrSighash); } return result; } @@ -161793,13 +219398,13 @@ ${bz(e, r10)}`); } } } - return getStatic(this.constructor, "getSighash")(fragment); + return (0, import_properties5.getStatic)(this.constructor, "getSighash")(fragment); } getEventTopic(eventFragment) { if (typeof eventFragment === "string") { eventFragment = this.getEvent(eventFragment); } - return getStatic(this.constructor, "getEventTopic")(eventFragment); + return (0, import_properties5.getStatic)(this.constructor, "getEventTopic")(eventFragment); } _decodeParams(params, data) { return this._abiCoder.decode(params, data); @@ -161814,9 +219419,9 @@ ${bz(e, r10)}`); if (typeof fragment === "string") { fragment = this.getError(fragment); } - const bytes5 = (0, import_bytes15.arrayify)(data); - if ((0, import_bytes15.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(fragment)) { - logger10.throwArgumentError(`data signature does not match error ${fragment.name}.`, "data", (0, import_bytes15.hexlify)(bytes5)); + const bytes5 = (0, import_bytes12.arrayify)(data); + if ((0, import_bytes12.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(fragment)) { + logger7.throwArgumentError(`data signature does not match error ${fragment.name}.`, "data", (0, import_bytes12.hexlify)(bytes5)); } return this._decodeParams(fragment.inputs, bytes5.slice(4)); } @@ -161824,7 +219429,7 @@ ${bz(e, r10)}`); if (typeof fragment === "string") { fragment = this.getError(fragment); } - return (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ + return (0, import_bytes12.hexlify)((0, import_bytes12.concat)([ this.getSighash(fragment), this._encodeParams(fragment.inputs, values || []) ])); @@ -161833,9 +219438,9 @@ ${bz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - const bytes5 = (0, import_bytes15.arrayify)(data); - if ((0, import_bytes15.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(functionFragment)) { - logger10.throwArgumentError(`data signature does not match function ${functionFragment.name}.`, "data", (0, import_bytes15.hexlify)(bytes5)); + const bytes5 = (0, import_bytes12.arrayify)(data); + if ((0, import_bytes12.hexlify)(bytes5.slice(0, 4)) !== this.getSighash(functionFragment)) { + logger7.throwArgumentError(`data signature does not match function ${functionFragment.name}.`, "data", (0, import_bytes12.hexlify)(bytes5)); } return this._decodeParams(functionFragment.inputs, bytes5.slice(4)); } @@ -161843,7 +219448,7 @@ ${bz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - return (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ + return (0, import_bytes12.hexlify)((0, import_bytes12.concat)([ this.getSighash(functionFragment), this._encodeParams(functionFragment.inputs, values || []) ])); @@ -161852,7 +219457,7 @@ ${bz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - let bytes5 = (0, import_bytes15.arrayify)(data); + let bytes5 = (0, import_bytes12.arrayify)(data); let reason = null; let message = ""; let errorArgs = null; @@ -161866,7 +219471,7 @@ ${bz(e, r10)}`); } break; case 4: { - const selector = (0, import_bytes15.hexlify)(bytes5.slice(0, 4)); + const selector = (0, import_bytes12.hexlify)(bytes5.slice(0, 4)); const builtin = BuiltinErrors[selector]; if (builtin) { errorArgs = this._abiCoder.decode(builtin.inputs, bytes5.slice(4)); @@ -161892,9 +219497,9 @@ ${bz(e, r10)}`); break; } } - return logger10.throwError("call revert exception" + message, import_logger10.Logger.errors.CALL_EXCEPTION, { + return logger7.throwError("call revert exception" + message, import_logger7.Logger.errors.CALL_EXCEPTION, { method: functionFragment.format(), - data: (0, import_bytes15.hexlify)(data), + data: (0, import_bytes12.hexlify)(data), errorArgs, errorName, errorSignature, @@ -161905,14 +219510,14 @@ ${bz(e, r10)}`); if (typeof functionFragment === "string") { functionFragment = this.getFunction(functionFragment); } - return (0, import_bytes15.hexlify)(this._abiCoder.encode(functionFragment.outputs, values || [])); + return (0, import_bytes12.hexlify)(this._abiCoder.encode(functionFragment.outputs, values || [])); } encodeFilterTopics(eventFragment, values) { if (typeof eventFragment === "string") { eventFragment = this.getEvent(eventFragment); } if (values.length > eventFragment.inputs.length) { - logger10.throwError("too many arguments for " + eventFragment.format(), import_logger10.Logger.errors.UNEXPECTED_ARGUMENT, { + logger7.throwError("too many arguments for " + eventFragment.format(), import_logger7.Logger.errors.UNEXPECTED_ARGUMENT, { argument: "values", value: values }); @@ -161925,31 +219530,31 @@ ${bz(e, r10)}`); if (param.type === "string") { return id2(value); } else if (param.type === "bytes") { - return keccak256((0, import_bytes15.hexlify)(value)); + return (0, import_keccak2565.keccak256)((0, import_bytes12.hexlify)(value)); } if (param.type === "bool" && typeof value === "boolean") { value = value ? "0x01" : "0x00"; } if (param.type.match(/^u?int/)) { - value = import_bignumber6.BigNumber.from(value).toHexString(); + value = import_bignumber5.BigNumber.from(value).toHexString(); } if (param.type === "address") { this._abiCoder.encode(["address"], [value]); } - return (0, import_bytes15.hexZeroPad)((0, import_bytes15.hexlify)(value), 32); + return (0, import_bytes12.hexZeroPad)((0, import_bytes12.hexlify)(value), 32); }; values.forEach((value, index) => { let param = eventFragment.inputs[index]; if (!param.indexed) { if (value != null) { - logger10.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + param.name, value); + logger7.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + param.name, value); } return; } if (value == null) { topics.push(null); } else if (param.baseType === "array" || param.baseType === "tuple") { - logger10.throwArgumentError("filtering with tuples or arrays not supported", "contract." + param.name, value); + logger7.throwArgumentError("filtering with tuples or arrays not supported", "contract." + param.name, value); } else if (Array.isArray(value)) { topics.push(value.map((value2) => encodeTopic(param, value2))); } else { @@ -161972,7 +219577,7 @@ ${bz(e, r10)}`); topics.push(this.getEventTopic(eventFragment)); } if (values.length !== eventFragment.inputs.length) { - logger10.throwArgumentError("event arguments/values mismatch", "values", values); + logger7.throwArgumentError("event arguments/values mismatch", "values", values); } eventFragment.inputs.forEach((param, index) => { const value = values[index]; @@ -161980,7 +219585,7 @@ ${bz(e, r10)}`); if (param.type === "string") { topics.push(id2(value)); } else if (param.type === "bytes") { - topics.push(keccak256(value)); + topics.push((0, import_keccak2565.keccak256)(value)); } else if (param.baseType === "tuple" || param.baseType === "array") { throw new Error("not implemented"); } else { @@ -162002,8 +219607,8 @@ ${bz(e, r10)}`); } if (topics != null && !eventFragment.anonymous) { let topicHash = this.getEventTopic(eventFragment); - if (!(0, import_bytes15.isHexString)(topics[0], 32) || topics[0].toLowerCase() !== topicHash) { - logger10.throwError("fragment/topic mismatch", import_logger10.Logger.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: topicHash, value: topics[0] }); + if (!(0, import_bytes12.isHexString)(topics[0], 32) || topics[0].toLowerCase() !== topicHash) { + logger7.throwError("fragment/topic mismatch", import_logger7.Logger.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: topicHash, value: topics[0] }); } topics = topics.slice(1); } @@ -162024,7 +219629,7 @@ ${bz(e, r10)}`); dynamic.push(false); } }); - let resultIndexed = topics != null ? this._abiCoder.decode(indexed, (0, import_bytes15.concat)(topics)) : null; + let resultIndexed = topics != null ? this._abiCoder.decode(indexed, (0, import_bytes12.concat)(topics)) : null; let resultNonIndexed = this._abiCoder.decode(nonIndexed, data, true); let result = []; let nonIndexedIndex = 0, indexedIndex = 0; @@ -162086,7 +219691,7 @@ ${bz(e, r10)}`); name: fragment.name, signature: fragment.format(), sighash: this.getSighash(fragment), - value: import_bignumber6.BigNumber.from(tx2.value || "0") + value: import_bignumber5.BigNumber.from(tx2.value || "0") }); } parseLog(log) { @@ -162103,7 +219708,7 @@ ${bz(e, r10)}`); }); } parseError(data) { - const hexData = (0, import_bytes15.hexlify)(data); + const hexData = (0, import_bytes12.hexlify)(data); let fragment = this.getError(hexData.substring(0, 10).toLowerCase()); if (!fragment) { return null; @@ -162122,14 +219727,15 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/abstract-provider/lib.esm/index.js - var import_bignumber7 = __toESM(require_lib3()); - var import_logger11 = __toESM(require_lib()); + var import_bignumber6 = __toESM(require_lib3()); + var import_properties6 = __toESM(require_lib7()); + var import_logger8 = __toESM(require_lib()); // ../../node_modules/@ethersproject/abstract-provider/lib.esm/_version.js - var version7 = "abstract-provider/5.7.0"; + var version4 = "abstract-provider/5.7.0"; // ../../node_modules/@ethersproject/abstract-provider/lib.esm/index.js - var __awaiter4 = function(thisArg, _arguments, P, generator) { + var __awaiter3 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -162156,20 +219762,20 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger11 = new import_logger11.Logger(version7); - var ForkEvent = class extends Description { + var logger8 = new import_logger8.Logger(version4); + var ForkEvent = class extends import_properties6.Description { static isForkEvent(value) { return !!(value && value._isForkEvent); } }; var Provider = class { constructor() { - logger11.checkAbstract(new.target, Provider); - defineReadOnly(this, "_isProvider", true); + logger8.checkAbstract(new.target, Provider); + (0, import_properties6.defineReadOnly)(this, "_isProvider", true); } getFeeData() { - return __awaiter4(this, void 0, void 0, function* () { - const { block, gasPrice } = yield resolveProperties({ + return __awaiter3(this, void 0, void 0, function* () { + const { block, gasPrice } = yield (0, import_properties6.resolveProperties)({ block: this.getBlock("latest"), gasPrice: this.getGasPrice().catch((error) => { return null; @@ -162178,7 +219784,7 @@ ${bz(e, r10)}`); let lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null; if (block && block.baseFeePerGas) { lastBaseFeePerGas = block.baseFeePerGas; - maxPriorityFeePerGas = import_bignumber7.BigNumber.from("1500000000"); + maxPriorityFeePerGas = import_bignumber6.BigNumber.from("1500000000"); maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas); } return { lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas, gasPrice }; @@ -162195,296 +219801,21 @@ ${bz(e, r10)}`); } }; - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/index.js - var import_logger12 = __toESM(require_lib()); - - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/_version.js - var version8 = "abstract-signer/5.7.0"; - - // ../../node_modules/@ethersproject/abstract-signer/lib.esm/index.js - var __awaiter5 = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - var logger12 = new import_logger12.Logger(version8); - var allowedTransactionKeys = [ - "accessList", - "ccipReadEnabled", - "chainId", - "customData", - "data", - "from", - "gasLimit", - "gasPrice", - "maxFeePerGas", - "maxPriorityFeePerGas", - "nonce", - "to", - "type", - "value" - ]; - var forwardErrors = [ - import_logger12.Logger.errors.INSUFFICIENT_FUNDS, - import_logger12.Logger.errors.NONCE_EXPIRED, - import_logger12.Logger.errors.REPLACEMENT_UNDERPRICED - ]; - var Signer = class { - constructor() { - logger12.checkAbstract(new.target, Signer); - defineReadOnly(this, "_isSigner", true); - } - getBalance(blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getBalance"); - return yield this.provider.getBalance(this.getAddress(), blockTag); - }); - } - getTransactionCount(blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getTransactionCount"); - return yield this.provider.getTransactionCount(this.getAddress(), blockTag); - }); - } - estimateGas(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("estimateGas"); - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - return yield this.provider.estimateGas(tx2); - }); - } - call(transaction, blockTag) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("call"); - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - return yield this.provider.call(tx2, blockTag); - }); - } - sendTransaction(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("sendTransaction"); - const tx2 = yield this.populateTransaction(transaction); - const signedTx = yield this.signTransaction(tx2); - return yield this.provider.sendTransaction(signedTx); - }); - } - getChainId() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getChainId"); - const network3 = yield this.provider.getNetwork(); - return network3.chainId; - }); - } - getGasPrice() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getGasPrice"); - return yield this.provider.getGasPrice(); - }); - } - getFeeData() { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("getFeeData"); - return yield this.provider.getFeeData(); - }); - } - resolveName(name6) { - return __awaiter5(this, void 0, void 0, function* () { - this._checkProvider("resolveName"); - return yield this.provider.resolveName(name6); - }); - } - checkTransaction(transaction) { - for (const key2 in transaction) { - if (allowedTransactionKeys.indexOf(key2) === -1) { - logger12.throwArgumentError("invalid transaction key: " + key2, "transaction", transaction); - } - } - const tx2 = shallowCopy(transaction); - if (tx2.from == null) { - tx2.from = this.getAddress(); - } else { - tx2.from = Promise.all([ - Promise.resolve(tx2.from), - this.getAddress() - ]).then((result) => { - if (result[0].toLowerCase() !== result[1].toLowerCase()) { - logger12.throwArgumentError("from address mismatch", "transaction", transaction); - } - return result[0]; - }); - } - return tx2; - } - populateTransaction(transaction) { - return __awaiter5(this, void 0, void 0, function* () { - const tx2 = yield resolveProperties(this.checkTransaction(transaction)); - if (tx2.to != null) { - tx2.to = Promise.resolve(tx2.to).then((to2) => __awaiter5(this, void 0, void 0, function* () { - if (to2 == null) { - return null; - } - const address = yield this.resolveName(to2); - if (address == null) { - logger12.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); - } - return address; - })); - tx2.to.catch((error) => { - }); - } - const hasEip1559 = tx2.maxFeePerGas != null || tx2.maxPriorityFeePerGas != null; - if (tx2.gasPrice != null && (tx2.type === 2 || hasEip1559)) { - logger12.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction); - } else if ((tx2.type === 0 || tx2.type === 1) && hasEip1559) { - logger12.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction); - } - if ((tx2.type === 2 || tx2.type == null) && (tx2.maxFeePerGas != null && tx2.maxPriorityFeePerGas != null)) { - tx2.type = 2; - } else if (tx2.type === 0 || tx2.type === 1) { - if (tx2.gasPrice == null) { - tx2.gasPrice = this.getGasPrice(); - } - } else { - const feeData = yield this.getFeeData(); - if (tx2.type == null) { - if (feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null) { - tx2.type = 2; - if (tx2.gasPrice != null) { - const gasPrice = tx2.gasPrice; - delete tx2.gasPrice; - tx2.maxFeePerGas = gasPrice; - tx2.maxPriorityFeePerGas = gasPrice; - } else { - if (tx2.maxFeePerGas == null) { - tx2.maxFeePerGas = feeData.maxFeePerGas; - } - if (tx2.maxPriorityFeePerGas == null) { - tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; - } - } - } else if (feeData.gasPrice != null) { - if (hasEip1559) { - logger12.throwError("network does not support EIP-1559", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: "populateTransaction" - }); - } - if (tx2.gasPrice == null) { - tx2.gasPrice = feeData.gasPrice; - } - tx2.type = 0; - } else { - logger12.throwError("failed to get consistent fee data", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: "signer.getFeeData" - }); - } - } else if (tx2.type === 2) { - if (tx2.maxFeePerGas == null) { - tx2.maxFeePerGas = feeData.maxFeePerGas; - } - if (tx2.maxPriorityFeePerGas == null) { - tx2.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas; - } - } - } - if (tx2.nonce == null) { - tx2.nonce = this.getTransactionCount("pending"); - } - if (tx2.gasLimit == null) { - tx2.gasLimit = this.estimateGas(tx2).catch((error) => { - if (forwardErrors.indexOf(error.code) >= 0) { - throw error; - } - return logger12.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger12.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { - error, - tx: tx2 - }); - }); - } - if (tx2.chainId == null) { - tx2.chainId = this.getChainId(); - } else { - tx2.chainId = Promise.all([ - Promise.resolve(tx2.chainId), - this.getChainId() - ]).then((results) => { - if (results[1] !== 0 && results[0] !== results[1]) { - logger12.throwArgumentError("chainId address mismatch", "transaction", transaction); - } - return results[0]; - }); - } - return yield resolveProperties(tx2); - }); - } - _checkProvider(operation) { - if (!this.provider) { - logger12.throwError("missing provider", import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { - operation: operation || "_checkProvider" - }); - } - } - static isSigner(value) { - return !!(value && value._isSigner); - } - }; - var VoidSigner = class extends Signer { - constructor(address, provider) { - super(); - defineReadOnly(this, "address", address); - defineReadOnly(this, "provider", provider || null); - } - getAddress() { - return Promise.resolve(this.address); - } - _fail(message, operation) { - return Promise.resolve().then(() => { - logger12.throwError(message, import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { operation }); - }); - } - signMessage(message) { - return this._fail("VoidSigner cannot sign messages", "signMessage"); - } - signTransaction(transaction) { - return this._fail("VoidSigner cannot sign transactions", "signTransaction"); - } - _signTypedData(domain, types2, value) { - return this._fail("VoidSigner cannot sign typed data", "signTypedData"); - } - connect(provider) { - return new VoidSigner(this.address, provider); - } - }; - // node_modules/@ethersproject/contracts/lib.esm/index.js - var import_bignumber9 = __toESM(require_lib3()); - var import_bytes18 = __toESM(require_lib2()); + var import_abstract_signer = __toESM(require_lib11()); + var import_address6 = __toESM(require_lib10()); + var import_bignumber8 = __toESM(require_lib3()); + var import_bytes15 = __toESM(require_lib2()); + var import_properties9 = __toESM(require_lib7()); // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var import_bignumber8 = __toESM(require_lib3()); - var import_bytes17 = __toESM(require_lib2()); + var import_address5 = __toESM(require_lib10()); + var import_bignumber7 = __toESM(require_lib3()); + var import_bytes14 = __toESM(require_lib2()); var import_constants2 = __toESM(require_lib5()); + var import_keccak2566 = __toESM(require_lib8()); + var import_properties8 = __toESM(require_lib7()); + var RLP = __toESM(require_lib9()); // ../../node_modules/@ethersproject/signing-key/lib.esm/elliptic.js var import_bn = __toESM(require_bn8()); @@ -162892,14 +220223,14 @@ ${bz(e, r10)}`); BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) { return this.encode(enc, true); }; - BasePoint.prototype._encode = function _encode2(compact) { + BasePoint.prototype._encode = function _encode(compact) { var len = this.curve.p.byteLength(); var x = this.getX().toArray("be", len); if (compact) return [this.getY().isEven() ? 2 : 3].concat(x); return [4].concat(x, this.getY().toArray("be", len)); }; - BasePoint.prototype.encode = function encode3(enc, compact) { + BasePoint.prototype.encode = function encode2(enc, compact) { return utils_1$1.encode(this._encode(compact), enc); }; BasePoint.prototype.precompute = function precompute(power) { @@ -164341,14 +221672,15 @@ ${bz(e, r10)}`); var EC$1 = elliptic_1.ec; // ../../node_modules/@ethersproject/signing-key/lib.esm/index.js - var import_bytes16 = __toESM(require_lib2()); - var import_logger13 = __toESM(require_lib()); + var import_bytes13 = __toESM(require_lib2()); + var import_properties7 = __toESM(require_lib7()); + var import_logger9 = __toESM(require_lib()); // ../../node_modules/@ethersproject/signing-key/lib.esm/_version.js - var version9 = "signing-key/5.7.0"; + var version5 = "signing-key/5.7.0"; // ../../node_modules/@ethersproject/signing-key/lib.esm/index.js - var logger13 = new import_logger13.Logger(version9); + var logger9 = new import_logger9.Logger(version5); var _curve = null; function getCurve() { if (!_curve) { @@ -164358,50 +221690,50 @@ ${bz(e, r10)}`); } var SigningKey = class { constructor(privateKey) { - defineReadOnly(this, "curve", "secp256k1"); - defineReadOnly(this, "privateKey", (0, import_bytes16.hexlify)(privateKey)); - if ((0, import_bytes16.hexDataLength)(this.privateKey) !== 32) { - logger13.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); + (0, import_properties7.defineReadOnly)(this, "curve", "secp256k1"); + (0, import_properties7.defineReadOnly)(this, "privateKey", (0, import_bytes13.hexlify)(privateKey)); + if ((0, import_bytes13.hexDataLength)(this.privateKey) !== 32) { + logger9.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]"); } - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - defineReadOnly(this, "publicKey", "0x" + keyPair2.getPublic(false, "hex")); - defineReadOnly(this, "compressedPublicKey", "0x" + keyPair2.getPublic(true, "hex")); - defineReadOnly(this, "_isSigningKey", true); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + (0, import_properties7.defineReadOnly)(this, "publicKey", "0x" + keyPair2.getPublic(false, "hex")); + (0, import_properties7.defineReadOnly)(this, "compressedPublicKey", "0x" + keyPair2.getPublic(true, "hex")); + (0, import_properties7.defineReadOnly)(this, "_isSigningKey", true); } _addPoint(other) { - const p02 = getCurve().keyFromPublic((0, import_bytes16.arrayify)(this.publicKey)); - const p12 = getCurve().keyFromPublic((0, import_bytes16.arrayify)(other)); + const p02 = getCurve().keyFromPublic((0, import_bytes13.arrayify)(this.publicKey)); + const p12 = getCurve().keyFromPublic((0, import_bytes13.arrayify)(other)); return "0x" + p02.pub.add(p12.pub).encodeCompressed("hex"); } signDigest(digest) { - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - const digestBytes = (0, import_bytes16.arrayify)(digest); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + const digestBytes = (0, import_bytes13.arrayify)(digest); if (digestBytes.length !== 32) { - logger13.throwArgumentError("bad digest length", "digest", digest); + logger9.throwArgumentError("bad digest length", "digest", digest); } const signature2 = keyPair2.sign(digestBytes, { canonical: true }); - return (0, import_bytes16.splitSignature)({ + return (0, import_bytes13.splitSignature)({ recoveryParam: signature2.recoveryParam, - r: (0, import_bytes16.hexZeroPad)("0x" + signature2.r.toString(16), 32), - s: (0, import_bytes16.hexZeroPad)("0x" + signature2.s.toString(16), 32) + r: (0, import_bytes13.hexZeroPad)("0x" + signature2.r.toString(16), 32), + s: (0, import_bytes13.hexZeroPad)("0x" + signature2.s.toString(16), 32) }); } computeSharedSecret(otherKey) { - const keyPair2 = getCurve().keyFromPrivate((0, import_bytes16.arrayify)(this.privateKey)); - const otherKeyPair = getCurve().keyFromPublic((0, import_bytes16.arrayify)(computePublicKey(otherKey))); - return (0, import_bytes16.hexZeroPad)("0x" + keyPair2.derive(otherKeyPair.getPublic()).toString(16), 32); + const keyPair2 = getCurve().keyFromPrivate((0, import_bytes13.arrayify)(this.privateKey)); + const otherKeyPair = getCurve().keyFromPublic((0, import_bytes13.arrayify)(computePublicKey(otherKey))); + return (0, import_bytes13.hexZeroPad)("0x" + keyPair2.derive(otherKeyPair.getPublic()).toString(16), 32); } static isSigningKey(value) { return !!(value && value._isSigningKey); } }; function recoverPublicKey(digest, signature2) { - const sig = (0, import_bytes16.splitSignature)(signature2); - const rs2 = { r: (0, import_bytes16.arrayify)(sig.r), s: (0, import_bytes16.arrayify)(sig.s) }; - return "0x" + getCurve().recoverPubKey((0, import_bytes16.arrayify)(digest), rs2, sig.recoveryParam).encode("hex", false); + const sig = (0, import_bytes13.splitSignature)(signature2); + const rs2 = { r: (0, import_bytes13.arrayify)(sig.r), s: (0, import_bytes13.arrayify)(sig.s) }; + return "0x" + getCurve().recoverPubKey((0, import_bytes13.arrayify)(digest), rs2, sig.recoveryParam).encode("hex", false); } function computePublicKey(key2, compressed) { - const bytes5 = (0, import_bytes16.arrayify)(key2); + const bytes5 = (0, import_bytes13.arrayify)(key2); if (bytes5.length === 32) { const signingKey = new SigningKey(bytes5); if (compressed) { @@ -164410,26 +221742,26 @@ ${bz(e, r10)}`); return signingKey.publicKey; } else if (bytes5.length === 33) { if (compressed) { - return (0, import_bytes16.hexlify)(bytes5); + return (0, import_bytes13.hexlify)(bytes5); } return "0x" + getCurve().keyFromPublic(bytes5).getPublic(false, "hex"); } else if (bytes5.length === 65) { if (!compressed) { - return (0, import_bytes16.hexlify)(bytes5); + return (0, import_bytes13.hexlify)(bytes5); } return "0x" + getCurve().keyFromPublic(bytes5).getPublic(true, "hex"); } - return logger13.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); + return logger9.throwArgumentError("invalid public or private key", "key", "[REDACTED]"); } // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var import_logger14 = __toESM(require_lib()); + var import_logger10 = __toESM(require_lib()); // ../../node_modules/@ethersproject/transactions/lib.esm/_version.js - var version10 = "transactions/5.7.0"; + var version6 = "transactions/5.7.0"; // ../../node_modules/@ethersproject/transactions/lib.esm/index.js - var logger14 = new import_logger14.Logger(version10); + var logger10 = new import_logger10.Logger(version6); var TransactionTypes; (function(TransactionTypes2) { TransactionTypes2[TransactionTypes2["legacy"] = 0] = "legacy"; @@ -164440,13 +221772,13 @@ ${bz(e, r10)}`); if (value === "0x") { return null; } - return getAddress(value); + return (0, import_address5.getAddress)(value); } function handleNumber(value) { if (value === "0x") { return import_constants2.Zero; } - return import_bignumber8.BigNumber.from(value); + return import_bignumber7.BigNumber.from(value); } var transactionFields = [ { name: "nonce", maxLength: 32, numeric: true }, @@ -164456,7 +221788,7 @@ ${bz(e, r10)}`); { name: "value", maxLength: 32, numeric: true }, { name: "data" } ]; - var allowedTransactionKeys2 = { + var allowedTransactionKeys = { chainId: true, data: true, gasLimit: true, @@ -164468,24 +221800,24 @@ ${bz(e, r10)}`); }; function computeAddress(key2) { const publicKey = computePublicKey(key2); - return getAddress((0, import_bytes17.hexDataSlice)(keccak256((0, import_bytes17.hexDataSlice)(publicKey, 1)), 12)); + return (0, import_address5.getAddress)((0, import_bytes14.hexDataSlice)((0, import_keccak2566.keccak256)((0, import_bytes14.hexDataSlice)(publicKey, 1)), 12)); } function recoverAddress(digest, signature2) { - return computeAddress(recoverPublicKey((0, import_bytes17.arrayify)(digest), signature2)); + return computeAddress(recoverPublicKey((0, import_bytes14.arrayify)(digest), signature2)); } function formatNumber(value, name6) { - const result = (0, import_bytes17.stripZeros)(import_bignumber8.BigNumber.from(value).toHexString()); + const result = (0, import_bytes14.stripZeros)(import_bignumber7.BigNumber.from(value).toHexString()); if (result.length > 32) { - logger14.throwArgumentError("invalid length for " + name6, "transaction:" + name6, value); + logger10.throwArgumentError("invalid length for " + name6, "transaction:" + name6, value); } return result; } function accessSetify(addr, storageKeys) { return { - address: getAddress(addr), + address: (0, import_address5.getAddress)(addr), storageKeys: (storageKeys || []).map((storageKey, index) => { - if ((0, import_bytes17.hexDataLength)(storageKey) !== 32) { - logger14.throwArgumentError("invalid access list storageKey", `accessList[${addr}:${index}]`, storageKey); + if ((0, import_bytes14.hexDataLength)(storageKey) !== 32) { + logger10.throwArgumentError("invalid access list storageKey", `accessList[${addr}:${index}]`, storageKey); } return storageKey.toLowerCase(); }) @@ -164496,7 +221828,7 @@ ${bz(e, r10)}`); return value.map((set2, index) => { if (Array.isArray(set2)) { if (set2.length > 2) { - logger14.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${index}]`, set2); + logger10.throwArgumentError("access list expected to be [ address, storageKeys[] ]", `value[${index}]`, set2); } return accessSetify(set2[0], set2[1]); } @@ -164518,10 +221850,10 @@ ${bz(e, r10)}`); } function _serializeEip1559(transaction, signature2) { if (transaction.gasPrice != null) { - const gasPrice = import_bignumber8.BigNumber.from(transaction.gasPrice); - const maxFeePerGas = import_bignumber8.BigNumber.from(transaction.maxFeePerGas || 0); + const gasPrice = import_bignumber7.BigNumber.from(transaction.gasPrice); + const maxFeePerGas = import_bignumber7.BigNumber.from(transaction.maxFeePerGas || 0); if (!gasPrice.eq(maxFeePerGas)) { - logger14.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", { + logger10.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", { gasPrice, maxFeePerGas }); @@ -164533,18 +221865,18 @@ ${bz(e, r10)}`); formatNumber(transaction.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"), formatNumber(transaction.maxFeePerGas || 0, "maxFeePerGas"), formatNumber(transaction.gasLimit || 0, "gasLimit"), - transaction.to != null ? getAddress(transaction.to) : "0x", + transaction.to != null ? (0, import_address5.getAddress)(transaction.to) : "0x", formatNumber(transaction.value || 0, "value"), transaction.data || "0x", formatAccessList(transaction.accessList || []) ]; if (signature2) { - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); fields.push(formatNumber(sig.recoveryParam, "recoveryParam")); - fields.push((0, import_bytes17.stripZeros)(sig.r)); - fields.push((0, import_bytes17.stripZeros)(sig.s)); + fields.push((0, import_bytes14.stripZeros)(sig.r)); + fields.push((0, import_bytes14.stripZeros)(sig.s)); } - return (0, import_bytes17.hexConcat)(["0x02", encode(fields)]); + return (0, import_bytes14.hexConcat)(["0x02", RLP.encode(fields)]); } function _serializeEip2930(transaction, signature2) { const fields = [ @@ -164552,21 +221884,21 @@ ${bz(e, r10)}`); formatNumber(transaction.nonce || 0, "nonce"), formatNumber(transaction.gasPrice || 0, "gasPrice"), formatNumber(transaction.gasLimit || 0, "gasLimit"), - transaction.to != null ? getAddress(transaction.to) : "0x", + transaction.to != null ? (0, import_address5.getAddress)(transaction.to) : "0x", formatNumber(transaction.value || 0, "value"), transaction.data || "0x", formatAccessList(transaction.accessList || []) ]; if (signature2) { - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); fields.push(formatNumber(sig.recoveryParam, "recoveryParam")); - fields.push((0, import_bytes17.stripZeros)(sig.r)); - fields.push((0, import_bytes17.stripZeros)(sig.s)); + fields.push((0, import_bytes14.stripZeros)(sig.r)); + fields.push((0, import_bytes14.stripZeros)(sig.s)); } - return (0, import_bytes17.hexConcat)(["0x01", encode(fields)]); + return (0, import_bytes14.hexConcat)(["0x01", RLP.encode(fields)]); } function _serialize(transaction, signature2) { - checkProperties(transaction, allowedTransactionKeys2); + (0, import_properties8.checkProperties)(transaction, allowedTransactionKeys); const raw = []; transactionFields.forEach(function(fieldInfo) { let value = transaction[fieldInfo.name] || []; @@ -164574,36 +221906,36 @@ ${bz(e, r10)}`); if (fieldInfo.numeric) { options.hexPad = "left"; } - value = (0, import_bytes17.arrayify)((0, import_bytes17.hexlify)(value, options)); + value = (0, import_bytes14.arrayify)((0, import_bytes14.hexlify)(value, options)); if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) { - logger14.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); + logger10.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); } if (fieldInfo.maxLength) { - value = (0, import_bytes17.stripZeros)(value); + value = (0, import_bytes14.stripZeros)(value); if (value.length > fieldInfo.maxLength) { - logger14.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); + logger10.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value); } } - raw.push((0, import_bytes17.hexlify)(value)); + raw.push((0, import_bytes14.hexlify)(value)); }); let chainId = 0; if (transaction.chainId != null) { chainId = transaction.chainId; if (typeof chainId !== "number") { - logger14.throwArgumentError("invalid transaction.chainId", "transaction", transaction); + logger10.throwArgumentError("invalid transaction.chainId", "transaction", transaction); } - } else if (signature2 && !(0, import_bytes17.isBytesLike)(signature2) && signature2.v > 28) { + } else if (signature2 && !(0, import_bytes14.isBytesLike)(signature2) && signature2.v > 28) { chainId = Math.floor((signature2.v - 35) / 2); } if (chainId !== 0) { - raw.push((0, import_bytes17.hexlify)(chainId)); + raw.push((0, import_bytes14.hexlify)(chainId)); raw.push("0x"); raw.push("0x"); } if (!signature2) { - return encode(raw); + return RLP.encode(raw); } - const sig = (0, import_bytes17.splitSignature)(signature2); + const sig = (0, import_bytes14.splitSignature)(signature2); let v = 27 + sig.recoveryParam; if (chainId !== 0) { raw.pop(); @@ -164611,20 +221943,20 @@ ${bz(e, r10)}`); raw.pop(); v += chainId * 2 + 8; if (sig.v > 28 && sig.v !== v) { - logger14.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); + logger10.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); } } else if (sig.v !== v) { - logger14.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); + logger10.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature2); } - raw.push((0, import_bytes17.hexlify)(v)); - raw.push((0, import_bytes17.stripZeros)((0, import_bytes17.arrayify)(sig.r))); - raw.push((0, import_bytes17.stripZeros)((0, import_bytes17.arrayify)(sig.s))); - return encode(raw); + raw.push((0, import_bytes14.hexlify)(v)); + raw.push((0, import_bytes14.stripZeros)((0, import_bytes14.arrayify)(sig.r))); + raw.push((0, import_bytes14.stripZeros)((0, import_bytes14.arrayify)(sig.s))); + return RLP.encode(raw); } function serialize(transaction, signature2) { if (transaction.type == null || transaction.type === 0) { if (transaction.accessList != null) { - logger14.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction); + logger10.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction); } return _serialize(transaction, signature2); } @@ -164636,7 +221968,7 @@ ${bz(e, r10)}`); default: break; } - return logger14.throwError(`unsupported transaction type: ${transaction.type}`, import_logger14.Logger.errors.UNSUPPORTED_OPERATION, { + return logger10.throwError(`unsupported transaction type: ${transaction.type}`, import_logger10.Logger.errors.UNSUPPORTED_OPERATION, { operation: "serializeTransaction", transactionType: transaction.type }); @@ -164649,20 +221981,20 @@ ${bz(e, r10)}`); } tx2.v = recid; } catch (error) { - logger14.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]); + logger10.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]); } - tx2.r = (0, import_bytes17.hexZeroPad)(fields[1], 32); - tx2.s = (0, import_bytes17.hexZeroPad)(fields[2], 32); + tx2.r = (0, import_bytes14.hexZeroPad)(fields[1], 32); + tx2.s = (0, import_bytes14.hexZeroPad)(fields[2], 32); try { - const digest = keccak256(serialize3(tx2)); + const digest = (0, import_keccak2566.keccak256)(serialize3(tx2)); tx2.from = recoverAddress(digest, { r: tx2.r, s: tx2.s, recoveryParam: tx2.v }); } catch (error) { } } function _parseEip1559(payload) { - const transaction = decode(payload.slice(1)); + const transaction = RLP.decode(payload.slice(1)); if (transaction.length !== 9 && transaction.length !== 12) { - logger14.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, import_bytes17.hexlify)(payload)); + logger10.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, import_bytes14.hexlify)(payload)); } const maxPriorityFeePerGas = handleNumber(transaction[2]); const maxFeePerGas = handleNumber(transaction[3]); @@ -164682,14 +222014,14 @@ ${bz(e, r10)}`); if (transaction.length === 9) { return tx2; } - tx2.hash = keccak256(payload); + tx2.hash = (0, import_keccak2566.keccak256)(payload); _parseEipSignature(tx2, transaction.slice(9), _serializeEip1559); return tx2; } function _parseEip2930(payload) { - const transaction = decode(payload.slice(1)); + const transaction = RLP.decode(payload.slice(1)); if (transaction.length !== 8 && transaction.length !== 11) { - logger14.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, import_bytes17.hexlify)(payload)); + logger10.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, import_bytes14.hexlify)(payload)); } const tx2 = { type: 1, @@ -164705,14 +222037,14 @@ ${bz(e, r10)}`); if (transaction.length === 8) { return tx2; } - tx2.hash = keccak256(payload); + tx2.hash = (0, import_keccak2566.keccak256)(payload); _parseEipSignature(tx2, transaction.slice(8), _serializeEip2930); return tx2; } function _parse(rawTransaction) { - const transaction = decode(rawTransaction); + const transaction = RLP.decode(rawTransaction); if (transaction.length !== 9 && transaction.length !== 6) { - logger14.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction); + logger10.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction); } const tx2 = { nonce: handleNumber(transaction[0]).toNumber(), @@ -164727,13 +222059,13 @@ ${bz(e, r10)}`); return tx2; } try { - tx2.v = import_bignumber8.BigNumber.from(transaction[6]).toNumber(); + tx2.v = import_bignumber7.BigNumber.from(transaction[6]).toNumber(); } catch (error) { return tx2; } - tx2.r = (0, import_bytes17.hexZeroPad)(transaction[7], 32); - tx2.s = (0, import_bytes17.hexZeroPad)(transaction[8], 32); - if (import_bignumber8.BigNumber.from(tx2.r).isZero() && import_bignumber8.BigNumber.from(tx2.s).isZero()) { + tx2.r = (0, import_bytes14.hexZeroPad)(transaction[7], 32); + tx2.s = (0, import_bytes14.hexZeroPad)(transaction[8], 32); + if (import_bignumber7.BigNumber.from(tx2.r).isZero() && import_bignumber7.BigNumber.from(tx2.s).isZero()) { tx2.chainId = tx2.v; tx2.v = 0; } else { @@ -164744,23 +222076,23 @@ ${bz(e, r10)}`); let recoveryParam = tx2.v - 27; const raw = transaction.slice(0, 6); if (tx2.chainId !== 0) { - raw.push((0, import_bytes17.hexlify)(tx2.chainId)); + raw.push((0, import_bytes14.hexlify)(tx2.chainId)); raw.push("0x"); raw.push("0x"); recoveryParam -= tx2.chainId * 2 + 8; } - const digest = keccak256(encode(raw)); + const digest = (0, import_keccak2566.keccak256)(RLP.encode(raw)); try { - tx2.from = recoverAddress(digest, { r: (0, import_bytes17.hexlify)(tx2.r), s: (0, import_bytes17.hexlify)(tx2.s), recoveryParam }); + tx2.from = recoverAddress(digest, { r: (0, import_bytes14.hexlify)(tx2.r), s: (0, import_bytes14.hexlify)(tx2.s), recoveryParam }); } catch (error) { } - tx2.hash = keccak256(rawTransaction); + tx2.hash = (0, import_keccak2566.keccak256)(rawTransaction); } tx2.type = null; return tx2; } function parse(rawTransaction) { - const payload = (0, import_bytes17.arrayify)(rawTransaction); + const payload = (0, import_bytes14.arrayify)(rawTransaction); if (payload[0] > 127) { return _parse(payload); } @@ -164772,20 +222104,20 @@ ${bz(e, r10)}`); default: break; } - return logger14.throwError(`unsupported transaction type: ${payload[0]}`, import_logger14.Logger.errors.UNSUPPORTED_OPERATION, { + return logger10.throwError(`unsupported transaction type: ${payload[0]}`, import_logger10.Logger.errors.UNSUPPORTED_OPERATION, { operation: "parseTransaction", transactionType: payload[0] }); } // node_modules/@ethersproject/contracts/lib.esm/index.js - var import_logger15 = __toESM(require_lib()); + var import_logger11 = __toESM(require_lib()); // node_modules/@ethersproject/contracts/lib.esm/_version.js - var version11 = "contracts/5.7.0"; + var version7 = "contracts/5.7.0"; // node_modules/@ethersproject/contracts/lib.esm/index.js - var __awaiter6 = function(thisArg, _arguments, P, generator) { + var __awaiter4 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -164812,8 +222144,8 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger15 = new import_logger15.Logger(version11); - var allowedTransactionKeys3 = { + var logger11 = new import_logger11.Logger(version7); + var allowedTransactionKeys2 = { chainId: true, data: true, from: true, @@ -164830,29 +222162,29 @@ ${bz(e, r10)}`); ccipReadEnabled: true }; function resolveName(resolver, nameOrPromise) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { const name6 = yield nameOrPromise; if (typeof name6 !== "string") { - logger15.throwArgumentError("invalid address or ENS name", "name", name6); + logger11.throwArgumentError("invalid address or ENS name", "name", name6); } try { - return getAddress(name6); + return (0, import_address6.getAddress)(name6); } catch (error) { } if (!resolver) { - logger15.throwError("a provider or signer is needed to resolve ENS names", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("a provider or signer is needed to resolve ENS names", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resolveName" }); } const address = yield resolver.resolveName(name6); if (address == null) { - logger15.throwArgumentError("resolver or addr is not configured for ENS name", "name", name6); + logger11.throwArgumentError("resolver or addr is not configured for ENS name", "name", name6); } return address; }); } function resolveAddresses(resolver, value, paramType) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (Array.isArray(paramType)) { return yield Promise.all(paramType.map((paramType2, index) => { return resolveAddresses(resolver, Array.isArray(value) ? value[index] : value[paramType2.name], paramType2); @@ -164866,7 +222198,7 @@ ${bz(e, r10)}`); } if (paramType.baseType === "array") { if (!Array.isArray(value)) { - return Promise.reject(logger15.makeError("invalid value for array", import_logger15.Logger.errors.INVALID_ARGUMENT, { + return Promise.reject(logger11.makeError("invalid value for array", import_logger11.Logger.errors.INVALID_ARGUMENT, { argument: "value", value })); @@ -164877,20 +222209,20 @@ ${bz(e, r10)}`); }); } function populateTransaction(contract, fragment, args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let overrides = {}; if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") { - overrides = shallowCopy(args.pop()); + overrides = (0, import_properties9.shallowCopy)(args.pop()); } - logger15.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract"); + logger11.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract"); if (contract.signer) { if (overrides.from) { - overrides.from = resolveProperties({ + overrides.from = (0, import_properties9.resolveProperties)({ override: resolveName(contract.signer, overrides.from), signer: contract.signer.getAddress() - }).then((check) => __awaiter6(this, void 0, void 0, function* () { - if (getAddress(check.signer) !== check.override) { - logger15.throwError("Contract with a Signer cannot override from", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + }).then((check) => __awaiter4(this, void 0, void 0, function* () { + if ((0, import_address6.getAddress)(check.signer) !== check.override) { + logger11.throwError("Contract with a Signer cannot override from", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.from" }); } @@ -164902,10 +222234,10 @@ ${bz(e, r10)}`); } else if (overrides.from) { overrides.from = resolveName(contract.provider, overrides.from); } - const resolved = yield resolveProperties({ + const resolved = yield (0, import_properties9.resolveProperties)({ args: resolveAddresses(contract.signer || contract.provider, args, fragment.inputs), address: contract.resolvedAddress, - overrides: resolveProperties(overrides) || {} + overrides: (0, import_properties9.resolveProperties)(overrides) || {} }); const data = contract.interface.encodeFunctionData(fragment, resolved.args); const tx2 = { @@ -164914,19 +222246,19 @@ ${bz(e, r10)}`); }; const ro2 = resolved.overrides; if (ro2.nonce != null) { - tx2.nonce = import_bignumber9.BigNumber.from(ro2.nonce).toNumber(); + tx2.nonce = import_bignumber8.BigNumber.from(ro2.nonce).toNumber(); } if (ro2.gasLimit != null) { - tx2.gasLimit = import_bignumber9.BigNumber.from(ro2.gasLimit); + tx2.gasLimit = import_bignumber8.BigNumber.from(ro2.gasLimit); } if (ro2.gasPrice != null) { - tx2.gasPrice = import_bignumber9.BigNumber.from(ro2.gasPrice); + tx2.gasPrice = import_bignumber8.BigNumber.from(ro2.gasPrice); } if (ro2.maxFeePerGas != null) { - tx2.maxFeePerGas = import_bignumber9.BigNumber.from(ro2.maxFeePerGas); + tx2.maxFeePerGas = import_bignumber8.BigNumber.from(ro2.maxFeePerGas); } if (ro2.maxPriorityFeePerGas != null) { - tx2.maxPriorityFeePerGas = import_bignumber9.BigNumber.from(ro2.maxPriorityFeePerGas); + tx2.maxPriorityFeePerGas = import_bignumber8.BigNumber.from(ro2.maxPriorityFeePerGas); } if (ro2.from != null) { tx2.from = ro2.from; @@ -164939,19 +222271,19 @@ ${bz(e, r10)}`); } if (tx2.gasLimit == null && fragment.gas != null) { let intrinsic = 21e3; - const bytes5 = (0, import_bytes18.arrayify)(data); + const bytes5 = (0, import_bytes15.arrayify)(data); for (let i = 0; i < bytes5.length; i++) { intrinsic += 4; if (bytes5[i]) { intrinsic += 64; } } - tx2.gasLimit = import_bignumber9.BigNumber.from(fragment.gas).add(intrinsic); + tx2.gasLimit = import_bignumber8.BigNumber.from(fragment.gas).add(intrinsic); } if (ro2.value) { - const roValue = import_bignumber9.BigNumber.from(ro2.value); + const roValue = import_bignumber8.BigNumber.from(ro2.value); if (!roValue.isZero() && !fragment.payable) { - logger15.throwError("non-payable method cannot override value", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("non-payable method cannot override value", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.value", value: overrides.value }); @@ -164959,7 +222291,7 @@ ${bz(e, r10)}`); tx2.value = roValue; } if (ro2.customData) { - tx2.customData = shallowCopy(ro2.customData); + tx2.customData = (0, import_properties9.shallowCopy)(ro2.customData); } if (ro2.ccipReadEnabled) { tx2.ccipReadEnabled = !!ro2.ccipReadEnabled; @@ -164977,7 +222309,7 @@ ${bz(e, r10)}`); delete overrides.ccipReadEnabled; const leftovers = Object.keys(overrides).filter((key2) => overrides[key2] != null); if (leftovers.length) { - logger15.throwError(`cannot override ${leftovers.map((l15) => JSON.stringify(l15)).join(",")}`, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError(`cannot override ${leftovers.map((l15) => JSON.stringify(l15)).join(",")}`, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides", overrides: leftovers }); @@ -164993,9 +222325,9 @@ ${bz(e, r10)}`); function buildEstimate(contract, fragment) { const signerOrProvider = contract.signer || contract.provider; return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (!signerOrProvider) { - logger15.throwError("estimate require a provider or signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("estimate require a provider or signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "estimateGas" }); } @@ -165009,7 +222341,7 @@ ${bz(e, r10)}`); tx2.wait = (confirmations) => { return wait(confirmations).then((receipt) => { receipt.events = receipt.logs.map((log) => { - let event = deepCopy(log); + let event = (0, import_properties9.deepCopy)(log); let parsed = null; try { parsed = contract.interface.parseLog(log); @@ -165044,10 +222376,10 @@ ${bz(e, r10)}`); function buildCall(contract, fragment, collapseSimple) { const signerOrProvider = contract.signer || contract.provider; return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let blockTag = void 0; if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") { - const overrides = shallowCopy(args.pop()); + const overrides = (0, import_properties9.shallowCopy)(args.pop()); if (overrides.blockTag != null) { blockTag = yield overrides.blockTag; } @@ -165066,7 +222398,7 @@ ${bz(e, r10)}`); } return value; } catch (error) { - if (error.code === import_logger15.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger11.Logger.errors.CALL_EXCEPTION) { error.address = contract.address; error.args = args; error.transaction = tx2; @@ -165078,9 +222410,9 @@ ${bz(e, r10)}`); } function buildSend(contract, fragment) { return function(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { if (!contract.signer) { - logger15.throwError("sending a transaction requires a signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("sending a transaction requires a signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction" }); } @@ -165113,8 +222445,8 @@ ${bz(e, r10)}`); } var RunningEvent = class { constructor(tag, filter) { - defineReadOnly(this, "tag", tag); - defineReadOnly(this, "filter", filter); + (0, import_properties9.defineReadOnly)(this, "tag", tag); + (0, import_properties9.defineReadOnly)(this, "filter", filter); this._listeners = []; } addListener(listener, once) { @@ -165169,16 +222501,16 @@ ${bz(e, r10)}`); let topic = contractInterface.getEventTopic(fragment); if (topics) { if (topic !== topics[0]) { - logger15.throwArgumentError("topic mismatch", "topics", topics); + logger11.throwArgumentError("topic mismatch", "topics", topics); } filter.topics = topics.slice(); } else { filter.topics = [topic]; } super(getEventTag(filter), filter); - defineReadOnly(this, "address", address); - defineReadOnly(this, "interface", contractInterface); - defineReadOnly(this, "fragment", fragment); + (0, import_properties9.defineReadOnly)(this, "address", address); + (0, import_properties9.defineReadOnly)(this, "interface", contractInterface); + (0, import_properties9.defineReadOnly)(this, "fragment", fragment); } prepareEvent(event) { super.prepareEvent(event); @@ -165207,8 +222539,8 @@ ${bz(e, r10)}`); var WildcardRunningEvent = class extends RunningEvent { constructor(address, contractInterface) { super("*", { address }); - defineReadOnly(this, "address", address); - defineReadOnly(this, "interface", contractInterface); + (0, import_properties9.defineReadOnly)(this, "address", address); + (0, import_properties9.defineReadOnly)(this, "interface", contractInterface); } prepareEvent(event) { super.prepareEvent(event); @@ -165226,29 +222558,29 @@ ${bz(e, r10)}`); }; var BaseContract = class { constructor(addressOrName, contractInterface, signerOrProvider) { - defineReadOnly(this, "interface", getStatic(new.target, "getInterface")(contractInterface)); + (0, import_properties9.defineReadOnly)(this, "interface", (0, import_properties9.getStatic)(new.target, "getInterface")(contractInterface)); if (signerOrProvider == null) { - defineReadOnly(this, "provider", null); - defineReadOnly(this, "signer", null); - } else if (Signer.isSigner(signerOrProvider)) { - defineReadOnly(this, "provider", signerOrProvider.provider || null); - defineReadOnly(this, "signer", signerOrProvider); + (0, import_properties9.defineReadOnly)(this, "provider", null); + (0, import_properties9.defineReadOnly)(this, "signer", null); + } else if (import_abstract_signer.Signer.isSigner(signerOrProvider)) { + (0, import_properties9.defineReadOnly)(this, "provider", signerOrProvider.provider || null); + (0, import_properties9.defineReadOnly)(this, "signer", signerOrProvider); } else if (Provider.isProvider(signerOrProvider)) { - defineReadOnly(this, "provider", signerOrProvider); - defineReadOnly(this, "signer", null); + (0, import_properties9.defineReadOnly)(this, "provider", signerOrProvider); + (0, import_properties9.defineReadOnly)(this, "signer", null); } else { - logger15.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider); + logger11.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider); } - defineReadOnly(this, "callStatic", {}); - defineReadOnly(this, "estimateGas", {}); - defineReadOnly(this, "functions", {}); - defineReadOnly(this, "populateTransaction", {}); - defineReadOnly(this, "filters", {}); + (0, import_properties9.defineReadOnly)(this, "callStatic", {}); + (0, import_properties9.defineReadOnly)(this, "estimateGas", {}); + (0, import_properties9.defineReadOnly)(this, "functions", {}); + (0, import_properties9.defineReadOnly)(this, "populateTransaction", {}); + (0, import_properties9.defineReadOnly)(this, "filters", {}); { const uniqueFilters = {}; Object.keys(this.interface.events).forEach((eventSignature) => { const event = this.interface.events[eventSignature]; - defineReadOnly(this.filters, eventSignature, (...args) => { + (0, import_properties9.defineReadOnly)(this.filters, eventSignature, (...args) => { return { address: this.address, topics: this.interface.encodeFilterTopics(event, args) @@ -165262,25 +222594,25 @@ ${bz(e, r10)}`); Object.keys(uniqueFilters).forEach((name6) => { const filters = uniqueFilters[name6]; if (filters.length === 1) { - defineReadOnly(this.filters, name6, this.filters[filters[0]]); + (0, import_properties9.defineReadOnly)(this.filters, name6, this.filters[filters[0]]); } else { - logger15.warn(`Duplicate definition of ${name6} (${filters.join(", ")})`); + logger11.warn(`Duplicate definition of ${name6} (${filters.join(", ")})`); } }); } - defineReadOnly(this, "_runningEvents", {}); - defineReadOnly(this, "_wrappedEmits", {}); + (0, import_properties9.defineReadOnly)(this, "_runningEvents", {}); + (0, import_properties9.defineReadOnly)(this, "_wrappedEmits", {}); if (addressOrName == null) { - logger15.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName); + logger11.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName); } - defineReadOnly(this, "address", addressOrName); + (0, import_properties9.defineReadOnly)(this, "address", addressOrName); if (this.provider) { - defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName)); + (0, import_properties9.defineReadOnly)(this, "resolvedAddress", resolveName(this.provider, addressOrName)); } else { try { - defineReadOnly(this, "resolvedAddress", Promise.resolve(getAddress(addressOrName))); + (0, import_properties9.defineReadOnly)(this, "resolvedAddress", Promise.resolve((0, import_address6.getAddress)(addressOrName))); } catch (error) { - logger15.throwError("provider is required to use ENS name as contract address", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("provider is required to use ENS name as contract address", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new Contract" }); } @@ -165292,7 +222624,7 @@ ${bz(e, r10)}`); Object.keys(this.interface.functions).forEach((signature2) => { const fragment = this.interface.functions[signature2]; if (uniqueSignatures[signature2]) { - logger15.warn(`Duplicate ABI entry for ${JSON.stringify(signature2)}`); + logger11.warn(`Duplicate ABI entry for ${JSON.stringify(signature2)}`); return; } uniqueSignatures[signature2] = true; @@ -165304,19 +222636,19 @@ ${bz(e, r10)}`); uniqueNames[`%${name6}`].push(signature2); } if (this[signature2] == null) { - defineReadOnly(this, signature2, buildDefault(this, fragment, true)); + (0, import_properties9.defineReadOnly)(this, signature2, buildDefault(this, fragment, true)); } if (this.functions[signature2] == null) { - defineReadOnly(this.functions, signature2, buildDefault(this, fragment, false)); + (0, import_properties9.defineReadOnly)(this.functions, signature2, buildDefault(this, fragment, false)); } if (this.callStatic[signature2] == null) { - defineReadOnly(this.callStatic, signature2, buildCall(this, fragment, true)); + (0, import_properties9.defineReadOnly)(this.callStatic, signature2, buildCall(this, fragment, true)); } if (this.populateTransaction[signature2] == null) { - defineReadOnly(this.populateTransaction, signature2, buildPopulate(this, fragment)); + (0, import_properties9.defineReadOnly)(this.populateTransaction, signature2, buildPopulate(this, fragment)); } if (this.estimateGas[signature2] == null) { - defineReadOnly(this.estimateGas, signature2, buildEstimate(this, fragment)); + (0, import_properties9.defineReadOnly)(this.estimateGas, signature2, buildEstimate(this, fragment)); } }); Object.keys(uniqueNames).forEach((name6) => { @@ -165328,26 +222660,26 @@ ${bz(e, r10)}`); const signature2 = signatures[0]; try { if (this[name6] == null) { - defineReadOnly(this, name6, this[signature2]); + (0, import_properties9.defineReadOnly)(this, name6, this[signature2]); } } catch (e) { } if (this.functions[name6] == null) { - defineReadOnly(this.functions, name6, this.functions[signature2]); + (0, import_properties9.defineReadOnly)(this.functions, name6, this.functions[signature2]); } if (this.callStatic[name6] == null) { - defineReadOnly(this.callStatic, name6, this.callStatic[signature2]); + (0, import_properties9.defineReadOnly)(this.callStatic, name6, this.callStatic[signature2]); } if (this.populateTransaction[name6] == null) { - defineReadOnly(this.populateTransaction, name6, this.populateTransaction[signature2]); + (0, import_properties9.defineReadOnly)(this.populateTransaction, name6, this.populateTransaction[signature2]); } if (this.estimateGas[name6] == null) { - defineReadOnly(this.estimateGas, name6, this.estimateGas[signature2]); + (0, import_properties9.defineReadOnly)(this.estimateGas, name6, this.estimateGas[signature2]); } }); } static getContractAddress(transaction) { - return getContractAddress(transaction); + return (0, import_address6.getContractAddress)(transaction); } static getInterface(contractInterface) { if (Interface.isInterface(contractInterface)) { @@ -165367,7 +222699,7 @@ ${bz(e, r10)}`); } else { this._deployedPromise = this.provider.getCode(this.address, blockTag).then((code) => { if (code === "0x") { - logger15.throwError("contract not deployed", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("contract not deployed", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { contractAddress: this.address, operation: "getDeployed" }); @@ -165380,14 +222712,14 @@ ${bz(e, r10)}`); } fallback(overrides) { if (!this.signer) { - logger15.throwError("sending a transactions require a signer", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); + logger11.throwError("sending a transactions require a signer", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" }); } - const tx2 = shallowCopy(overrides || {}); + const tx2 = (0, import_properties9.shallowCopy)(overrides || {}); ["from", "to"].forEach(function(key2) { if (tx2[key2] == null) { return; } - logger15.throwError("cannot override " + key2, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); + logger11.throwError("cannot override " + key2, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); }); tx2.to = this.resolvedAddress; return this.deployed().then(() => { @@ -165396,11 +222728,11 @@ ${bz(e, r10)}`); } connect(signerOrProvider) { if (typeof signerOrProvider === "string") { - signerOrProvider = new VoidSigner(signerOrProvider, this.provider); + signerOrProvider = new import_abstract_signer.VoidSigner(signerOrProvider, this.provider); } const contract = new this.constructor(this.address, this.interface, signerOrProvider); if (this.deployTransaction) { - defineReadOnly(contract, "deployTransaction", this.deployTransaction); + (0, import_properties9.defineReadOnly)(contract, "deployTransaction", this.deployTransaction); } return contract; } @@ -165459,7 +222791,7 @@ ${bz(e, r10)}`); } } _wrapEvent(runningEvent, log, listener) { - const event = deepCopy(log); + const event = (0, import_properties9.deepCopy)(log); event.removeListener = () => { if (!listener) { return; @@ -165481,7 +222813,7 @@ ${bz(e, r10)}`); } _addEventListener(runningEvent, listener, once) { if (!this.provider) { - logger15.throwError("events require a provider or a signer with a provider", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" }); + logger11.throwError("events require a provider or a signer with a provider", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" }); } runningEvent.addListener(listener, once); this._runningEvents[runningEvent.tag] = runningEvent; @@ -165511,10 +222843,10 @@ ${bz(e, r10)}`); } queryFilter(event, fromBlockOrBlockhash, toBlock) { const runningEvent = this._getRunningEvent(event); - const filter = shallowCopy(runningEvent.filter); - if (typeof fromBlockOrBlockhash === "string" && (0, import_bytes18.isHexString)(fromBlockOrBlockhash, 32)) { + const filter = (0, import_properties9.shallowCopy)(runningEvent.filter); + if (typeof fromBlockOrBlockhash === "string" && (0, import_bytes15.isHexString)(fromBlockOrBlockhash, 32)) { if (toBlock != null) { - logger15.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock); + logger11.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock); } filter.blockHash = fromBlockOrBlockhash; } else { @@ -165605,8 +222937,8 @@ ${bz(e, r10)}`); let bytecodeHex = null; if (typeof bytecode === "string") { bytecodeHex = bytecode; - } else if ((0, import_bytes18.isBytes)(bytecode)) { - bytecodeHex = (0, import_bytes18.hexlify)(bytecode); + } else if ((0, import_bytes15.isBytes)(bytecode)) { + bytecodeHex = (0, import_bytes15.hexlify)(bytecode); } else if (bytecode && typeof bytecode.object === "string") { bytecodeHex = bytecode.object; } else { @@ -165615,22 +222947,22 @@ ${bz(e, r10)}`); if (bytecodeHex.substring(0, 2) !== "0x") { bytecodeHex = "0x" + bytecodeHex; } - if (!(0, import_bytes18.isHexString)(bytecodeHex) || bytecodeHex.length % 2) { - logger15.throwArgumentError("invalid bytecode", "bytecode", bytecode); + if (!(0, import_bytes15.isHexString)(bytecodeHex) || bytecodeHex.length % 2) { + logger11.throwArgumentError("invalid bytecode", "bytecode", bytecode); } - if (signer && !Signer.isSigner(signer)) { - logger15.throwArgumentError("invalid signer", "signer", signer); + if (signer && !import_abstract_signer.Signer.isSigner(signer)) { + logger11.throwArgumentError("invalid signer", "signer", signer); } - defineReadOnly(this, "bytecode", bytecodeHex); - defineReadOnly(this, "interface", getStatic(new.target, "getInterface")(contractInterface)); - defineReadOnly(this, "signer", signer || null); + (0, import_properties9.defineReadOnly)(this, "bytecode", bytecodeHex); + (0, import_properties9.defineReadOnly)(this, "interface", (0, import_properties9.getStatic)(new.target, "getInterface")(contractInterface)); + (0, import_properties9.defineReadOnly)(this, "signer", signer || null); } getDeployTransaction(...args) { let tx2 = {}; if (args.length === this.interface.deploy.inputs.length + 1 && typeof args[args.length - 1] === "object") { - tx2 = shallowCopy(args.pop()); + tx2 = (0, import_properties9.shallowCopy)(args.pop()); for (const key2 in tx2) { - if (!allowedTransactionKeys3[key2]) { + if (!allowedTransactionKeys2[key2]) { throw new Error("unknown transaction override " + key2); } } @@ -165639,39 +222971,39 @@ ${bz(e, r10)}`); if (tx2[key2] == null) { return; } - logger15.throwError("cannot override " + key2, import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); + logger11.throwError("cannot override " + key2, import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: key2 }); }); if (tx2.value) { - const value = import_bignumber9.BigNumber.from(tx2.value); + const value = import_bignumber8.BigNumber.from(tx2.value); if (!value.isZero() && !this.interface.deploy.payable) { - logger15.throwError("non-payable constructor cannot override value", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { + logger11.throwError("non-payable constructor cannot override value", import_logger11.Logger.errors.UNSUPPORTED_OPERATION, { operation: "overrides.value", value: tx2.value }); } } - logger15.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); - tx2.data = (0, import_bytes18.hexlify)((0, import_bytes18.concat)([ + logger11.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); + tx2.data = (0, import_bytes15.hexlify)((0, import_bytes15.concat)([ this.bytecode, this.interface.encodeDeploy(args) ])); return tx2; } deploy(...args) { - return __awaiter6(this, void 0, void 0, function* () { + return __awaiter4(this, void 0, void 0, function* () { let overrides = {}; if (args.length === this.interface.deploy.inputs.length + 1) { overrides = args.pop(); } - logger15.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); + logger11.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor"); const params = yield resolveAddresses(this.signer, args, this.interface.deploy.inputs); params.push(overrides); const unsignedTx = this.getDeployTransaction(...params); const tx2 = yield this.signer.sendTransaction(unsignedTx); - const address = getStatic(this.constructor, "getContractAddress")(tx2); - const contract = getStatic(this.constructor, "getContract")(address, this.interface, this.signer); + const address = (0, import_properties9.getStatic)(this.constructor, "getContractAddress")(tx2); + const contract = (0, import_properties9.getStatic)(this.constructor, "getContract")(address, this.interface, this.signer); addContractWait(contract, tx2); - defineReadOnly(contract, "deployTransaction", tx2); + (0, import_properties9.defineReadOnly)(contract, "deployTransaction", tx2); return contract; }); } @@ -165683,7 +223015,7 @@ ${bz(e, r10)}`); } static fromSolidity(compilerOutput, signer) { if (compilerOutput == null) { - logger15.throwError("missing compiler output", import_logger15.Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" }); + logger11.throwError("missing compiler output", import_logger11.Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" }); } if (typeof compilerOutput === "string") { compilerOutput = JSON.parse(compilerOutput); @@ -165701,7 +223033,7 @@ ${bz(e, r10)}`); return Contract.getInterface(contractInterface); } static getContractAddress(tx2) { - return getContractAddress(tx2); + return (0, import_address6.getContractAddress)(tx2); } static getContract(address, contractInterface, signer) { return new Contract(address, contractInterface, signer); @@ -165709,25 +223041,29 @@ ${bz(e, r10)}`); }; // node_modules/ethers/lib.esm/ethers.js - var import_bignumber18 = __toESM(require_lib3()); + var import_bignumber17 = __toESM(require_lib3()); + var import_abstract_signer4 = __toESM(require_lib11()); // node_modules/@ethersproject/wallet/lib.esm/index.js - var import_bytes27 = __toESM(require_lib2()); + var import_address10 = __toESM(require_lib10()); + var import_abstract_signer2 = __toESM(require_lib11()); + var import_bytes24 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/basex/lib.esm/index.js - var import_bytes19 = __toESM(require_lib2()); + var import_bytes16 = __toESM(require_lib2()); + var import_properties10 = __toESM(require_lib7()); var BaseX = class { constructor(alphabet4) { - defineReadOnly(this, "alphabet", alphabet4); - defineReadOnly(this, "base", alphabet4.length); - defineReadOnly(this, "_alphabetMap", {}); - defineReadOnly(this, "_leader", alphabet4.charAt(0)); + (0, import_properties10.defineReadOnly)(this, "alphabet", alphabet4); + (0, import_properties10.defineReadOnly)(this, "base", alphabet4.length); + (0, import_properties10.defineReadOnly)(this, "_alphabetMap", {}); + (0, import_properties10.defineReadOnly)(this, "_leader", alphabet4.charAt(0)); for (let i = 0; i < alphabet4.length; i++) { this._alphabetMap[alphabet4.charAt(i)] = i; } } encode(value) { - let source = (0, import_bytes19.arrayify)(value); + let source = (0, import_bytes16.arrayify)(value); if (source.length === 0) { return ""; } @@ -165781,23 +223117,23 @@ ${bz(e, r10)}`); for (let k = 0; value[k] === this._leader && k < value.length - 1; ++k) { bytes5.push(0); } - return (0, import_bytes19.arrayify)(new Uint8Array(bytes5.reverse())); + return (0, import_bytes16.arrayify)(new Uint8Array(bytes5.reverse())); } }; var Base32 = new BaseX("abcdefghijklmnopqrstuvwxyz234567"); var Base58 = new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var import_bytes22 = __toESM(require_lib2()); - var import_bignumber10 = __toESM(require_lib3()); + var import_bytes19 = __toESM(require_lib2()); + var import_bignumber9 = __toESM(require_lib3()); var import_strings6 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.js - var import_bytes21 = __toESM(require_lib2()); + var import_bytes18 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js var import_hash3 = __toESM(require_hash()); - var import_bytes20 = __toESM(require_lib2()); + var import_bytes17 = __toESM(require_lib2()); // ../../node_modules/@ethersproject/sha2/lib.esm/types.js var SupportedAlgorithm; @@ -165807,36 +223143,36 @@ ${bz(e, r10)}`); })(SupportedAlgorithm || (SupportedAlgorithm = {})); // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js - var import_logger16 = __toESM(require_lib()); + var import_logger12 = __toESM(require_lib()); // ../../node_modules/@ethersproject/sha2/lib.esm/_version.js - var version12 = "sha2/5.7.0"; + var version8 = "sha2/5.7.0"; // ../../node_modules/@ethersproject/sha2/lib.esm/sha2.js - var logger16 = new import_logger16.Logger(version12); + var logger12 = new import_logger12.Logger(version8); function ripemd160(data) { - return "0x" + import_hash3.default.ripemd160().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.ripemd160().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function sha256(data) { - return "0x" + import_hash3.default.sha256().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.sha256().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function sha512(data) { - return "0x" + import_hash3.default.sha512().update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.sha512().update((0, import_bytes17.arrayify)(data)).digest("hex"); } function computeHmac(algorithm, key2, data) { if (!SupportedAlgorithm[algorithm]) { - logger16.throwError("unsupported algorithm " + algorithm, import_logger16.Logger.errors.UNSUPPORTED_OPERATION, { + logger12.throwError("unsupported algorithm " + algorithm, import_logger12.Logger.errors.UNSUPPORTED_OPERATION, { operation: "hmac", algorithm }); } - return "0x" + import_hash3.default.hmac(import_hash3.default[algorithm], (0, import_bytes20.arrayify)(key2)).update((0, import_bytes20.arrayify)(data)).digest("hex"); + return "0x" + import_hash3.default.hmac(import_hash3.default[algorithm], (0, import_bytes17.arrayify)(key2)).update((0, import_bytes17.arrayify)(data)).digest("hex"); } // ../../node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.js function pbkdf2(password, salt, iterations, keylen, hashAlgorithm) { - password = (0, import_bytes21.arrayify)(password); - salt = (0, import_bytes21.arrayify)(salt); + password = (0, import_bytes18.arrayify)(password); + salt = (0, import_bytes18.arrayify)(salt); let hLen; let l15 = 1; const DK2 = new Uint8Array(keylen); @@ -165849,7 +223185,7 @@ ${bz(e, r10)}`); block1[salt.length + 1] = i >> 16 & 255; block1[salt.length + 2] = i >> 8 & 255; block1[salt.length + 3] = i & 255; - let U = (0, import_bytes21.arrayify)(computeHmac(hashAlgorithm, password, block1)); + let U = (0, import_bytes18.arrayify)(computeHmac(hashAlgorithm, password, block1)); if (!hLen) { hLen = U.length; T = new Uint8Array(hLen); @@ -165858,30 +223194,34 @@ ${bz(e, r10)}`); } T.set(U); for (let j10 = 1; j10 < iterations; j10++) { - U = (0, import_bytes21.arrayify)(computeHmac(hashAlgorithm, password, U)); + U = (0, import_bytes18.arrayify)(computeHmac(hashAlgorithm, password, U)); for (let k = 0; k < hLen; k++) T[k] ^= U[k]; } const destPos = (i - 1) * hLen; const len = i === l15 ? r10 : hLen; - DK2.set((0, import_bytes21.arrayify)(T).slice(0, len), destPos); + DK2.set((0, import_bytes18.arrayify)(T).slice(0, len), destPos); } - return (0, import_bytes21.hexlify)(DK2); + return (0, import_bytes18.hexlify)(DK2); } + // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js + var import_properties12 = __toESM(require_lib7()); + // ../../node_modules/@ethersproject/wordlists/lib.esm/wordlist.js - var import_logger17 = __toESM(require_lib()); + var import_properties11 = __toESM(require_lib7()); + var import_logger13 = __toESM(require_lib()); // ../../node_modules/@ethersproject/wordlists/lib.esm/_version.js - var version13 = "wordlists/5.7.0"; + var version9 = "wordlists/5.7.0"; // ../../node_modules/@ethersproject/wordlists/lib.esm/wordlist.js var exportWordlist = false; - var logger17 = new import_logger17.Logger(version13); + var logger13 = new import_logger13.Logger(version9); var Wordlist = class { constructor(locale) { - logger17.checkAbstract(new.target, Wordlist); - defineReadOnly(this, "locale", locale); + logger13.checkAbstract(new.target, Wordlist); + (0, import_properties11.defineReadOnly)(this, "locale", locale); } split(mnemonic) { return mnemonic.toLowerCase().split(/ +/g); @@ -165909,7 +223249,7 @@ ${bz(e, r10)}`); const anyGlobal2 = window; if (anyGlobal2._ethers && anyGlobal2._ethers.wordlists) { if (!anyGlobal2._ethers.wordlists[name6]) { - defineReadOnly(anyGlobal2._ethers.wordlists, name6, lang); + (0, import_properties11.defineReadOnly)(anyGlobal2._ethers.wordlists, name6, lang); } } } catch (error) { @@ -165953,14 +223293,14 @@ ${bz(e, r10)}`); }; // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var import_logger18 = __toESM(require_lib()); + var import_logger14 = __toESM(require_lib()); // ../../node_modules/@ethersproject/hdnode/lib.esm/_version.js - var version14 = "hdnode/5.7.0"; + var version10 = "hdnode/5.7.0"; // ../../node_modules/@ethersproject/hdnode/lib.esm/index.js - var logger18 = new import_logger18.Logger(version14); - var N = import_bignumber10.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); + var logger14 = new import_logger14.Logger(version10); + var N = import_bignumber9.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); var MasterSecret = (0, import_strings6.toUtf8Bytes)("Bitcoin seed"); var HardenedBit = 2147483648; function getUpperMask(bits2) { @@ -165970,10 +223310,10 @@ ${bz(e, r10)}`); return (1 << bits2) - 1; } function bytes32(value) { - return (0, import_bytes22.hexZeroPad)((0, import_bytes22.hexlify)(value), 32); + return (0, import_bytes19.hexZeroPad)((0, import_bytes19.hexlify)(value), 32); } function base58check(data) { - return Base58.encode((0, import_bytes22.concat)([data, (0, import_bytes22.hexDataSlice)(sha256(sha256(data)), 0, 4)])); + return Base58.encode((0, import_bytes19.concat)([data, (0, import_bytes19.hexDataSlice)(sha256(sha256(data)), 0, 4)])); } function getWordlist(wordlist2) { if (wordlist2 == null) { @@ -165982,7 +223322,7 @@ ${bz(e, r10)}`); if (typeof wordlist2 === "string") { const words2 = wordlists[wordlist2]; if (words2 == null) { - logger18.throwArgumentError("unknown locale", "wordlist", wordlist2); + logger14.throwArgumentError("unknown locale", "wordlist", wordlist2); } return words2; } @@ -165997,40 +223337,40 @@ ${bz(e, r10)}`); } if (privateKey) { const signingKey = new SigningKey(privateKey); - defineReadOnly(this, "privateKey", signingKey.privateKey); - defineReadOnly(this, "publicKey", signingKey.compressedPublicKey); + (0, import_properties12.defineReadOnly)(this, "privateKey", signingKey.privateKey); + (0, import_properties12.defineReadOnly)(this, "publicKey", signingKey.compressedPublicKey); } else { - defineReadOnly(this, "privateKey", null); - defineReadOnly(this, "publicKey", (0, import_bytes22.hexlify)(publicKey)); - } - defineReadOnly(this, "parentFingerprint", parentFingerprint); - defineReadOnly(this, "fingerprint", (0, import_bytes22.hexDataSlice)(ripemd160(sha256(this.publicKey)), 0, 4)); - defineReadOnly(this, "address", computeAddress(this.publicKey)); - defineReadOnly(this, "chainCode", chainCode); - defineReadOnly(this, "index", index); - defineReadOnly(this, "depth", depth); + (0, import_properties12.defineReadOnly)(this, "privateKey", null); + (0, import_properties12.defineReadOnly)(this, "publicKey", (0, import_bytes19.hexlify)(publicKey)); + } + (0, import_properties12.defineReadOnly)(this, "parentFingerprint", parentFingerprint); + (0, import_properties12.defineReadOnly)(this, "fingerprint", (0, import_bytes19.hexDataSlice)(ripemd160(sha256(this.publicKey)), 0, 4)); + (0, import_properties12.defineReadOnly)(this, "address", computeAddress(this.publicKey)); + (0, import_properties12.defineReadOnly)(this, "chainCode", chainCode); + (0, import_properties12.defineReadOnly)(this, "index", index); + (0, import_properties12.defineReadOnly)(this, "depth", depth); if (mnemonicOrPath == null) { - defineReadOnly(this, "mnemonic", null); - defineReadOnly(this, "path", null); + (0, import_properties12.defineReadOnly)(this, "mnemonic", null); + (0, import_properties12.defineReadOnly)(this, "path", null); } else if (typeof mnemonicOrPath === "string") { - defineReadOnly(this, "mnemonic", null); - defineReadOnly(this, "path", mnemonicOrPath); + (0, import_properties12.defineReadOnly)(this, "mnemonic", null); + (0, import_properties12.defineReadOnly)(this, "path", mnemonicOrPath); } else { - defineReadOnly(this, "mnemonic", mnemonicOrPath); - defineReadOnly(this, "path", mnemonicOrPath.path); + (0, import_properties12.defineReadOnly)(this, "mnemonic", mnemonicOrPath); + (0, import_properties12.defineReadOnly)(this, "path", mnemonicOrPath.path); } } get extendedKey() { if (this.depth >= 256) { throw new Error("Depth too large!"); } - return base58check((0, import_bytes22.concat)([ + return base58check((0, import_bytes19.concat)([ this.privateKey != null ? "0x0488ADE4" : "0x0488B21E", - (0, import_bytes22.hexlify)(this.depth), + (0, import_bytes19.hexlify)(this.depth), this.parentFingerprint, - (0, import_bytes22.hexZeroPad)((0, import_bytes22.hexlify)(this.index), 4), + (0, import_bytes19.hexZeroPad)((0, import_bytes19.hexlify)(this.index), 4), this.chainCode, - this.privateKey != null ? (0, import_bytes22.concat)(["0x00", this.privateKey]) : this.publicKey + this.privateKey != null ? (0, import_bytes19.concat)(["0x00", this.privateKey]) : this.publicKey ])); } neuter() { @@ -166049,25 +223389,25 @@ ${bz(e, r10)}`); if (!this.privateKey) { throw new Error("cannot derive child of neutered node"); } - data.set((0, import_bytes22.arrayify)(this.privateKey), 1); + data.set((0, import_bytes19.arrayify)(this.privateKey), 1); if (path) { path += "'"; } } else { - data.set((0, import_bytes22.arrayify)(this.publicKey)); + data.set((0, import_bytes19.arrayify)(this.publicKey)); } for (let i = 24; i >= 0; i -= 8) { data[33 + (i >> 3)] = index >> 24 - i & 255; } - const I = (0, import_bytes22.arrayify)(computeHmac(SupportedAlgorithm.sha512, this.chainCode, data)); + const I = (0, import_bytes19.arrayify)(computeHmac(SupportedAlgorithm.sha512, this.chainCode, data)); const IL2 = I.slice(0, 32); const IR2 = I.slice(32); let ki2 = null; let Ki2 = null; if (this.privateKey) { - ki2 = bytes32(import_bignumber10.BigNumber.from(IL2).add(this.privateKey).mod(N)); + ki2 = bytes32(import_bignumber9.BigNumber.from(IL2).add(this.privateKey).mod(N)); } else { - const ek2 = new SigningKey((0, import_bytes22.hexlify)(IL2)); + const ek2 = new SigningKey((0, import_bytes19.hexlify)(IL2)); Ki2 = ek2._addPoint(this.publicKey); } let mnemonicOrPath = path; @@ -166111,11 +223451,11 @@ ${bz(e, r10)}`); return result; } static _fromSeed(seed, mnemonic) { - const seedArray = (0, import_bytes22.arrayify)(seed); + const seedArray = (0, import_bytes19.arrayify)(seed); if (seedArray.length < 16 || seedArray.length > 64) { throw new Error("invalid seed"); } - const I = (0, import_bytes22.arrayify)(computeHmac(SupportedAlgorithm.sha512, MasterSecret, seedArray)); + const I = (0, import_bytes19.arrayify)(computeHmac(SupportedAlgorithm.sha512, MasterSecret, seedArray)); return new HDNode(_constructorGuard2, bytes32(I.slice(0, 32)), null, "0x00000000", bytes32(I.slice(32)), 0, 0, mnemonic); } static fromMnemonic(mnemonic, password, wordlist2) { @@ -166133,25 +223473,25 @@ ${bz(e, r10)}`); static fromExtendedKey(extendedKey) { const bytes5 = Base58.decode(extendedKey); if (bytes5.length !== 82 || base58check(bytes5.slice(0, 78)) !== extendedKey) { - logger18.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); + logger14.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); } const depth = bytes5[4]; - const parentFingerprint = (0, import_bytes22.hexlify)(bytes5.slice(5, 9)); - const index = parseInt((0, import_bytes22.hexlify)(bytes5.slice(9, 13)).substring(2), 16); - const chainCode = (0, import_bytes22.hexlify)(bytes5.slice(13, 45)); + const parentFingerprint = (0, import_bytes19.hexlify)(bytes5.slice(5, 9)); + const index = parseInt((0, import_bytes19.hexlify)(bytes5.slice(9, 13)).substring(2), 16); + const chainCode = (0, import_bytes19.hexlify)(bytes5.slice(13, 45)); const key2 = bytes5.slice(45, 78); - switch ((0, import_bytes22.hexlify)(bytes5.slice(0, 4))) { + switch ((0, import_bytes19.hexlify)(bytes5.slice(0, 4))) { case "0x0488b21e": case "0x043587cf": - return new HDNode(_constructorGuard2, null, (0, import_bytes22.hexlify)(key2), parentFingerprint, chainCode, index, depth, null); + return new HDNode(_constructorGuard2, null, (0, import_bytes19.hexlify)(key2), parentFingerprint, chainCode, index, depth, null); case "0x0488ade4": case "0x04358394 ": if (key2[0] !== 0) { break; } - return new HDNode(_constructorGuard2, (0, import_bytes22.hexlify)(key2.slice(1)), null, parentFingerprint, chainCode, index, depth, null); + return new HDNode(_constructorGuard2, (0, import_bytes19.hexlify)(key2.slice(1)), null, parentFingerprint, chainCode, index, depth, null); } - return logger18.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); + return logger14.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]"); } }; function mnemonicToSeed(mnemonic, password) { @@ -166163,12 +223503,12 @@ ${bz(e, r10)}`); } function mnemonicToEntropy(mnemonic, wordlist2) { wordlist2 = getWordlist(wordlist2); - logger18.checkNormalize(); + logger14.checkNormalize(); const words2 = wordlist2.split(mnemonic); if (words2.length % 3 !== 0) { throw new Error("invalid mnemonic"); } - const entropy = (0, import_bytes22.arrayify)(new Uint8Array(Math.ceil(11 * words2.length / 8))); + const entropy = (0, import_bytes19.arrayify)(new Uint8Array(Math.ceil(11 * words2.length / 8))); let offset = 0; for (let i = 0; i < words2.length; i++) { let index = wordlist2.getWordIndex(words2[i].normalize("NFKD")); @@ -166185,15 +223525,15 @@ ${bz(e, r10)}`); const entropyBits = 32 * words2.length / 3; const checksumBits = words2.length / 3; const checksumMask = getUpperMask(checksumBits); - const checksum = (0, import_bytes22.arrayify)(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; + const checksum = (0, import_bytes19.arrayify)(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; if (checksum !== (entropy[entropy.length - 1] & checksumMask)) { throw new Error("invalid checksum"); } - return (0, import_bytes22.hexlify)(entropy.slice(0, entropyBits / 8)); + return (0, import_bytes19.hexlify)(entropy.slice(0, entropyBits / 8)); } function entropyToMnemonic(entropy, wordlist2) { wordlist2 = getWordlist(wordlist2); - entropy = (0, import_bytes22.arrayify)(entropy); + entropy = (0, import_bytes19.arrayify)(entropy); if (entropy.length % 4 !== 0 || entropy.length < 16 || entropy.length > 32) { throw new Error("invalid entropy"); } @@ -166212,7 +223552,7 @@ ${bz(e, r10)}`); } } const checksumBits = entropy.length / 4; - const checksum = (0, import_bytes22.arrayify)(sha256(entropy))[0] & getUpperMask(checksumBits); + const checksum = (0, import_bytes19.arrayify)(sha256(entropy))[0] & getUpperMask(checksumBits); indices[indices.length - 1] <<= checksumBits; indices[indices.length - 1] |= checksum >> 8 - checksumBits; return wordlist2.join(indices.map((index) => wordlist2.getWord(index))); @@ -166227,20 +223567,24 @@ ${bz(e, r10)}`); } function getAccountPath(index) { if (typeof index !== "number" || index < 0 || index >= HardenedBit || index % 1) { - logger18.throwArgumentError("invalid account index", "index", index); + logger14.throwArgumentError("invalid account index", "index", index); } return `m/44'/60'/${index}'/0/0`; } + // node_modules/@ethersproject/wallet/lib.esm/index.js + var import_keccak2569 = __toESM(require_lib8()); + var import_properties15 = __toESM(require_lib7()); + // ../../node_modules/@ethersproject/random/lib.esm/random.js - var import_bytes23 = __toESM(require_lib2()); - var import_logger19 = __toESM(require_lib()); + var import_bytes20 = __toESM(require_lib2()); + var import_logger15 = __toESM(require_lib()); // ../../node_modules/@ethersproject/random/lib.esm/_version.js - var version15 = "random/5.7.0"; + var version11 = "random/5.7.0"; // ../../node_modules/@ethersproject/random/lib.esm/random.js - var logger19 = new import_logger19.Logger(version15); + var logger15 = new import_logger15.Logger(version11); function getGlobal() { if (typeof self !== "undefined") { return self; @@ -166256,10 +223600,10 @@ ${bz(e, r10)}`); var anyGlobal = getGlobal(); var crypto2 = anyGlobal.crypto || anyGlobal.msCrypto; if (!crypto2 || !crypto2.getRandomValues) { - logger19.warn("WARNING: Missing strong random number source"); + logger15.warn("WARNING: Missing strong random number source"); crypto2 = { getRandomValues: function(buffer) { - return logger19.throwError("no secure random source avaialble", import_logger19.Logger.errors.UNSUPPORTED_OPERATION, { + return logger15.throwError("no secure random source avaialble", import_logger15.Logger.errors.UNSUPPORTED_OPERATION, { operation: "crypto.getRandomValues" }); } @@ -166267,11 +223611,11 @@ ${bz(e, r10)}`); } function randomBytes(length) { if (length <= 0 || length > 1024 || length % 1 || length != length) { - logger19.throwArgumentError("invalid length", "length", length); + logger15.throwArgumentError("invalid length", "length", length); } const result = new Uint8Array(length); crypto2.getRandomValues(result); - return (0, import_bytes23.arrayify)(result); + return (0, import_bytes20.arrayify)(result); } // ../../node_modules/@ethersproject/random/lib.esm/shuffle.js @@ -166288,21 +223632,24 @@ ${bz(e, r10)}`); // ../../node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.js var import_aes_js = __toESM(require_aes_js()); - var import_bytes25 = __toESM(require_lib2()); + var import_address7 = __toESM(require_lib10()); + var import_bytes22 = __toESM(require_lib2()); + var import_keccak2567 = __toESM(require_lib8()); var import_strings8 = __toESM(require_lib6()); - var import_logger20 = __toESM(require_lib()); + var import_properties13 = __toESM(require_lib7()); + var import_logger16 = __toESM(require_lib()); // ../../node_modules/@ethersproject/json-wallets/lib.esm/_version.js - var version16 = "json-wallets/5.7.0"; + var version12 = "json-wallets/5.7.0"; // ../../node_modules/@ethersproject/json-wallets/lib.esm/utils.js - var import_bytes24 = __toESM(require_lib2()); + var import_bytes21 = __toESM(require_lib2()); var import_strings7 = __toESM(require_lib6()); function looseArrayify(hexString) { if (typeof hexString === "string" && hexString.substring(0, 2) !== "0x") { hexString = "0x" + hexString; } - return (0, import_bytes24.arrayify)(hexString); + return (0, import_bytes21.arrayify)(hexString); } function zpad(value, length) { value = String(value); @@ -166315,7 +223662,7 @@ ${bz(e, r10)}`); if (typeof password === "string") { return (0, import_strings7.toUtf8Bytes)(password, import_strings7.UnicodeNormalizationForm.NFKC); } - return (0, import_bytes24.arrayify)(password); + return (0, import_bytes21.arrayify)(password); } function searchPath(object, path) { let currentChild = object; @@ -166336,10 +223683,10 @@ ${bz(e, r10)}`); return currentChild; } function uuidV4(randomBytes3) { - const bytes5 = (0, import_bytes24.arrayify)(randomBytes3); + const bytes5 = (0, import_bytes21.arrayify)(randomBytes3); bytes5[6] = bytes5[6] & 15 | 64; bytes5[8] = bytes5[8] & 63 | 128; - const value = (0, import_bytes24.hexlify)(bytes5); + const value = (0, import_bytes21.hexlify)(bytes5); return [ value.substring(2, 10), value.substring(10, 14), @@ -166350,8 +223697,8 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.js - var logger20 = new import_logger20.Logger(version16); - var CrowdsaleAccount = class extends Description { + var logger16 = new import_logger16.Logger(version12); + var CrowdsaleAccount = class extends import_properties13.Description { isCrowdsaleAccount(value) { return !!(value && value._isCrowdsaleAccount); } @@ -166359,22 +223706,22 @@ ${bz(e, r10)}`); function decrypt(json, password) { const data = JSON.parse(json); password = getPassword(password); - const ethaddr = getAddress(searchPath(data, "ethaddr")); + const ethaddr = (0, import_address7.getAddress)(searchPath(data, "ethaddr")); const encseed = looseArrayify(searchPath(data, "encseed")); if (!encseed || encseed.length % 16 !== 0) { - logger20.throwArgumentError("invalid encseed", "json", json); + logger16.throwArgumentError("invalid encseed", "json", json); } - const key2 = (0, import_bytes25.arrayify)(pbkdf2(password, password, 2e3, 32, "sha256")).slice(0, 16); + const key2 = (0, import_bytes22.arrayify)(pbkdf2(password, password, 2e3, 32, "sha256")).slice(0, 16); const iv2 = encseed.slice(0, 16); const encryptedSeed = encseed.slice(16); const aesCbc = new import_aes_js.default.ModeOfOperation.cbc(key2, iv2); - const seed = import_aes_js.default.padding.pkcs7.strip((0, import_bytes25.arrayify)(aesCbc.decrypt(encryptedSeed))); + const seed = import_aes_js.default.padding.pkcs7.strip((0, import_bytes22.arrayify)(aesCbc.decrypt(encryptedSeed))); let seedHex = ""; for (let i = 0; i < seed.length; i++) { seedHex += String.fromCharCode(seed[i]); } const seedHexBytes = (0, import_strings8.toUtf8Bytes)(seedHex); - const privateKey = keccak256(seedHexBytes); + const privateKey = (0, import_keccak2567.keccak256)(seedHexBytes); return new CrowdsaleAccount({ _isCrowdsaleAccount: true, address: ethaddr, @@ -166383,6 +223730,7 @@ ${bz(e, r10)}`); } // ../../node_modules/@ethersproject/json-wallets/lib.esm/inspect.js + var import_address8 = __toESM(require_lib10()); function isCrowdsaleWallet(json) { let data = null; try { @@ -166407,14 +223755,14 @@ ${bz(e, r10)}`); function getJsonWalletAddress(json) { if (isCrowdsaleWallet(json)) { try { - return getAddress(JSON.parse(json).ethaddr); + return (0, import_address8.getAddress)(JSON.parse(json).ethaddr); } catch (error) { return null; } } if (isKeystoreWallet(json)) { try { - return getAddress(JSON.parse(json).address); + return (0, import_address8.getAddress)(JSON.parse(json).address); } catch (error) { return null; } @@ -166425,9 +223773,12 @@ ${bz(e, r10)}`); // ../../node_modules/@ethersproject/json-wallets/lib.esm/keystore.js var import_aes_js2 = __toESM(require_aes_js()); var import_scrypt_js = __toESM(require_scrypt3()); - var import_bytes26 = __toESM(require_lib2()); - var import_logger21 = __toESM(require_lib()); - var __awaiter7 = function(thisArg, _arguments, P, generator) { + var import_address9 = __toESM(require_lib10()); + var import_bytes23 = __toESM(require_lib2()); + var import_keccak2568 = __toESM(require_lib8()); + var import_properties14 = __toESM(require_lib7()); + var import_logger17 = __toESM(require_lib()); + var __awaiter5 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -166454,11 +223805,11 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger21 = new import_logger21.Logger(version16); + var logger17 = new import_logger17.Logger(version12); function hasMnemonic(value) { return value != null && value.mnemonic && value.mnemonic.phrase; } - var KeystoreAccount = class extends Description { + var KeystoreAccount = class extends import_properties14.Description { isKeystoreAccount(value) { return !!(value && value._isKeystoreAccount); } @@ -166469,19 +223820,19 @@ ${bz(e, r10)}`); const iv2 = looseArrayify(searchPath(data, "crypto/cipherparams/iv")); const counter = new import_aes_js2.default.Counter(iv2); const aesCtr = new import_aes_js2.default.ModeOfOperation.ctr(key2, counter); - return (0, import_bytes26.arrayify)(aesCtr.decrypt(ciphertext)); + return (0, import_bytes23.arrayify)(aesCtr.decrypt(ciphertext)); } return null; } function _getAccount(data, key2) { const ciphertext = looseArrayify(searchPath(data, "crypto/ciphertext")); - const computedMAC = (0, import_bytes26.hexlify)(keccak256((0, import_bytes26.concat)([key2.slice(16, 32), ciphertext]))).substring(2); + const computedMAC = (0, import_bytes23.hexlify)((0, import_keccak2568.keccak256)((0, import_bytes23.concat)([key2.slice(16, 32), ciphertext]))).substring(2); if (computedMAC !== searchPath(data, "crypto/mac").toLowerCase()) { throw new Error("invalid password"); } const privateKey = _decrypt(data, key2.slice(0, 16), ciphertext); if (!privateKey) { - logger21.throwError("unsupported cipher", import_logger21.Logger.errors.UNSUPPORTED_OPERATION, { + logger17.throwError("unsupported cipher", import_logger17.Logger.errors.UNSUPPORTED_OPERATION, { operation: "decrypt" }); } @@ -166492,14 +223843,14 @@ ${bz(e, r10)}`); if (check.substring(0, 2) !== "0x") { check = "0x" + check; } - if (getAddress(check) !== address) { + if ((0, import_address9.getAddress)(check) !== address) { throw new Error("address mismatch"); } } const account = { _isKeystoreAccount: true, address, - privateKey: (0, import_bytes26.hexlify)(privateKey) + privateKey: (0, import_bytes23.hexlify)(privateKey) }; if (searchPath(data, "x-ethers/version") === "0.1") { const mnemonicCiphertext = looseArrayify(searchPath(data, "x-ethers/mnemonicCiphertext")); @@ -166508,7 +223859,7 @@ ${bz(e, r10)}`); const mnemonicAesCtr = new import_aes_js2.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter); const path = searchPath(data, "x-ethers/path") || defaultPath; const locale = searchPath(data, "x-ethers/locale") || "en"; - const entropy = (0, import_bytes26.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext)); + const entropy = (0, import_bytes23.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext)); try { const mnemonic = entropyToMnemonic(entropy, locale); const node = HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path); @@ -166517,7 +223868,7 @@ ${bz(e, r10)}`); } account.mnemonic = node.mnemonic; } catch (error) { - if (error.code !== import_logger21.Logger.errors.INVALID_ARGUMENT || error.argument !== "wordlist") { + if (error.code !== import_logger17.Logger.errors.INVALID_ARGUMENT || error.argument !== "wordlist") { throw error; } } @@ -166525,7 +223876,7 @@ ${bz(e, r10)}`); return new KeystoreAccount(account); } function pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc) { - return (0, import_bytes26.arrayify)(pbkdf2(passwordBytes, salt, count, dkLen, prfFunc)); + return (0, import_bytes23.arrayify)(pbkdf2(passwordBytes, salt, count, dkLen, prfFunc)); } function pbkdf22(passwordBytes, salt, count, dkLen, prfFunc) { return Promise.resolve(pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc)); @@ -166535,7 +223886,7 @@ ${bz(e, r10)}`); const kdf = searchPath(data, "crypto/kdf"); if (kdf && typeof kdf === "string") { const throwError = function(name6, value) { - return logger21.throwArgumentError("invalid key-derivation function parameters", name6, value); + return logger17.throwArgumentError("invalid key-derivation function parameters", name6, value); }; if (kdf.toLowerCase() === "scrypt") { const salt = looseArrayify(searchPath(data, "crypto/kdfparams/salt")); @@ -166572,7 +223923,7 @@ ${bz(e, r10)}`); return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc); } } - return logger21.throwArgumentError("unsupported key-derivation function", "kdf", kdf); + return logger17.throwArgumentError("unsupported key-derivation function", "kdf", kdf); } function decryptSync(json, password) { const data = JSON.parse(json); @@ -166580,7 +223931,7 @@ ${bz(e, r10)}`); return _getAccount(data, key2); } function decrypt2(json, password, progressCallback) { - return __awaiter7(this, void 0, void 0, function* () { + return __awaiter5(this, void 0, void 0, function* () { const data = JSON.parse(json); const key2 = yield _computeKdfKey(data, password, pbkdf22, import_scrypt_js.default.scrypt, progressCallback); return _getAccount(data, key2); @@ -166588,7 +223939,7 @@ ${bz(e, r10)}`); } function encrypt(account, password, options, progressCallback) { try { - if (getAddress(account.address) !== computeAddress(account.privateKey)) { + if ((0, import_address9.getAddress)(account.address) !== computeAddress(account.privateKey)) { throw new Error("address/privateKey mismatch"); } if (hasMnemonic(account)) { @@ -166608,14 +223959,14 @@ ${bz(e, r10)}`); if (!options) { options = {}; } - const privateKey = (0, import_bytes26.arrayify)(account.privateKey); + const privateKey = (0, import_bytes23.arrayify)(account.privateKey); const passwordBytes = getPassword(password); let entropy = null; let path = null; let locale = null; if (hasMnemonic(account)) { const srcMnemonic = account.mnemonic; - entropy = (0, import_bytes26.arrayify)(mnemonicToEntropy(srcMnemonic.phrase, srcMnemonic.locale || "en")); + entropy = (0, import_bytes23.arrayify)(mnemonicToEntropy(srcMnemonic.phrase, srcMnemonic.locale || "en")); path = srcMnemonic.path || defaultPath; locale = srcMnemonic.locale || "en"; } @@ -166625,14 +223976,14 @@ ${bz(e, r10)}`); } let salt = null; if (options.salt) { - salt = (0, import_bytes26.arrayify)(options.salt); + salt = (0, import_bytes23.arrayify)(options.salt); } else { salt = randomBytes(32); ; } let iv2 = null; if (options.iv) { - iv2 = (0, import_bytes26.arrayify)(options.iv); + iv2 = (0, import_bytes23.arrayify)(options.iv); if (iv2.length !== 16) { throw new Error("invalid iv"); } @@ -166641,7 +223992,7 @@ ${bz(e, r10)}`); } let uuidRandom = null; if (options.uuid) { - uuidRandom = (0, import_bytes26.arrayify)(options.uuid); + uuidRandom = (0, import_bytes23.arrayify)(options.uuid); if (uuidRandom.length !== 16) { throw new Error("invalid uuid"); } @@ -166661,14 +224012,14 @@ ${bz(e, r10)}`); } } return import_scrypt_js.default.scrypt(passwordBytes, salt, N11, r10, p, 64, progressCallback).then((key2) => { - key2 = (0, import_bytes26.arrayify)(key2); + key2 = (0, import_bytes23.arrayify)(key2); const derivedKey = key2.slice(0, 16); const macPrefix = key2.slice(16, 32); const mnemonicKey = key2.slice(32, 64); const counter = new import_aes_js2.default.Counter(iv2); const aesCtr = new import_aes_js2.default.ModeOfOperation.ctr(derivedKey, counter); - const ciphertext = (0, import_bytes26.arrayify)(aesCtr.encrypt(privateKey)); - const mac = keccak256((0, import_bytes26.concat)([macPrefix, ciphertext])); + const ciphertext = (0, import_bytes23.arrayify)(aesCtr.encrypt(privateKey)); + const mac = (0, import_keccak2568.keccak256)((0, import_bytes23.concat)([macPrefix, ciphertext])); const data = { address: account.address.substring(2).toLowerCase(), id: uuidV4(uuidRandom), @@ -166676,12 +224027,12 @@ ${bz(e, r10)}`); crypto: { cipher: "aes-128-ctr", cipherparams: { - iv: (0, import_bytes26.hexlify)(iv2).substring(2) + iv: (0, import_bytes23.hexlify)(iv2).substring(2) }, - ciphertext: (0, import_bytes26.hexlify)(ciphertext).substring(2), + ciphertext: (0, import_bytes23.hexlify)(ciphertext).substring(2), kdf: "scrypt", kdfparams: { - salt: (0, import_bytes26.hexlify)(salt).substring(2), + salt: (0, import_bytes23.hexlify)(salt).substring(2), n: N11, dklen: 32, p, @@ -166694,14 +224045,14 @@ ${bz(e, r10)}`); const mnemonicIv = randomBytes(16); const mnemonicCounter = new import_aes_js2.default.Counter(mnemonicIv); const mnemonicAesCtr = new import_aes_js2.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter); - const mnemonicCiphertext = (0, import_bytes26.arrayify)(mnemonicAesCtr.encrypt(entropy)); + const mnemonicCiphertext = (0, import_bytes23.arrayify)(mnemonicAesCtr.encrypt(entropy)); const now2 = new Date(); const timestamp = now2.getUTCFullYear() + "-" + zpad(now2.getUTCMonth() + 1, 2) + "-" + zpad(now2.getUTCDate(), 2) + "T" + zpad(now2.getUTCHours(), 2) + "-" + zpad(now2.getUTCMinutes(), 2) + "-" + zpad(now2.getUTCSeconds(), 2) + ".0Z"; data["x-ethers"] = { client, gethFilename: "UTC--" + timestamp + "--" + data.address, - mnemonicCounter: (0, import_bytes26.hexlify)(mnemonicIv).substring(2), - mnemonicCiphertext: (0, import_bytes26.hexlify)(mnemonicCiphertext).substring(2), + mnemonicCounter: (0, import_bytes23.hexlify)(mnemonicIv).substring(2), + mnemonicCiphertext: (0, import_bytes23.hexlify)(mnemonicCiphertext).substring(2), path, locale, version: "0.1" @@ -166739,13 +224090,13 @@ ${bz(e, r10)}`); } // node_modules/@ethersproject/wallet/lib.esm/index.js - var import_logger22 = __toESM(require_lib()); + var import_logger18 = __toESM(require_lib()); // node_modules/@ethersproject/wallet/lib.esm/_version.js - var version17 = "wallet/5.7.0"; + var version13 = "wallet/5.7.0"; // node_modules/@ethersproject/wallet/lib.esm/index.js - var __awaiter8 = function(thisArg, _arguments, P, generator) { + var __awaiter6 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -166772,27 +224123,27 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger22 = new import_logger22.Logger(version17); + var logger18 = new import_logger18.Logger(version13); function isAccount(value) { - return value != null && (0, import_bytes27.isHexString)(value.privateKey, 32) && value.address != null; + return value != null && (0, import_bytes24.isHexString)(value.privateKey, 32) && value.address != null; } function hasMnemonic2(value) { const mnemonic = value.mnemonic; return mnemonic && mnemonic.phrase; } - var Wallet = class extends Signer { + var Wallet = class extends import_abstract_signer2.Signer { constructor(privateKey, provider) { super(); if (isAccount(privateKey)) { const signingKey = new SigningKey(privateKey.privateKey); - defineReadOnly(this, "_signingKey", () => signingKey); - defineReadOnly(this, "address", computeAddress(this.publicKey)); - if (this.address !== getAddress(privateKey.address)) { - logger22.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]"); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => signingKey); + (0, import_properties15.defineReadOnly)(this, "address", computeAddress(this.publicKey)); + if (this.address !== (0, import_address10.getAddress)(privateKey.address)) { + logger18.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]"); } if (hasMnemonic2(privateKey)) { const srcMnemonic = privateKey.mnemonic; - defineReadOnly(this, "_mnemonic", () => ({ + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => ({ phrase: srcMnemonic.phrase, path: srcMnemonic.path || defaultPath, locale: srcMnemonic.locale || "en" @@ -166800,17 +224151,17 @@ ${bz(e, r10)}`); const mnemonic = this.mnemonic; const node = HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path); if (computeAddress(node.privateKey) !== this.address) { - logger22.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]"); + logger18.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]"); } } else { - defineReadOnly(this, "_mnemonic", () => null); + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => null); } } else { if (SigningKey.isSigningKey(privateKey)) { if (privateKey.curve !== "secp256k1") { - logger22.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); + logger18.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); } - defineReadOnly(this, "_signingKey", () => privateKey); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => privateKey); } else { if (typeof privateKey === "string") { if (privateKey.match(/^[0-9a-f]*$/i) && privateKey.length === 64) { @@ -166818,15 +224169,15 @@ ${bz(e, r10)}`); } } const signingKey = new SigningKey(privateKey); - defineReadOnly(this, "_signingKey", () => signingKey); + (0, import_properties15.defineReadOnly)(this, "_signingKey", () => signingKey); } - defineReadOnly(this, "_mnemonic", () => null); - defineReadOnly(this, "address", computeAddress(this.publicKey)); + (0, import_properties15.defineReadOnly)(this, "_mnemonic", () => null); + (0, import_properties15.defineReadOnly)(this, "address", computeAddress(this.publicKey)); } if (provider && !Provider.isProvider(provider)) { - logger22.throwArgumentError("invalid provider", "provider", provider); + logger18.throwArgumentError("invalid provider", "provider", provider); } - defineReadOnly(this, "provider", provider || null); + (0, import_properties15.defineReadOnly)(this, "provider", provider || null); } get mnemonic() { return this._mnemonic(); @@ -166844,34 +224195,34 @@ ${bz(e, r10)}`); return new Wallet(this, provider); } signTransaction(transaction) { - return resolveProperties(transaction).then((tx2) => { + return (0, import_properties15.resolveProperties)(transaction).then((tx2) => { if (tx2.from != null) { - if (getAddress(tx2.from) !== this.address) { - logger22.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); + if ((0, import_address10.getAddress)(tx2.from) !== this.address) { + logger18.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); } delete tx2.from; } - const signature2 = this._signingKey().signDigest(keccak256(serialize(tx2))); + const signature2 = this._signingKey().signDigest((0, import_keccak2569.keccak256)(serialize(tx2))); return serialize(tx2, signature2); }); } signMessage(message) { - return __awaiter8(this, void 0, void 0, function* () { - return (0, import_bytes27.joinSignature)(this._signingKey().signDigest(hashMessage(message))); + return __awaiter6(this, void 0, void 0, function* () { + return (0, import_bytes24.joinSignature)(this._signingKey().signDigest(hashMessage(message))); }); } _signTypedData(domain, types2, value) { - return __awaiter8(this, void 0, void 0, function* () { + return __awaiter6(this, void 0, void 0, function* () { const populated = yield TypedDataEncoder.resolveNames(domain, types2, value, (name6) => { if (this.provider == null) { - logger22.throwError("cannot resolve ENS names without a provider", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { + logger18.throwError("cannot resolve ENS names without a provider", import_logger18.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resolveName", value: name6 }); } return this.provider.resolveName(name6); }); - return (0, import_bytes27.joinSignature)(this._signingKey().signDigest(TypedDataEncoder.hash(populated.domain, types2, populated.value))); + return (0, import_bytes24.joinSignature)(this._signingKey().signDigest(TypedDataEncoder.hash(populated.domain, types2, populated.value))); }); } encrypt(password, options, progressCallback) { @@ -166893,7 +224244,7 @@ ${bz(e, r10)}`); options = {}; } if (options.extraEntropy) { - entropy = (0, import_bytes27.arrayify)((0, import_bytes27.hexDataSlice)(keccak256((0, import_bytes27.concat)([entropy, options.extraEntropy])), 0, 16)); + entropy = (0, import_bytes24.arrayify)((0, import_bytes24.hexDataSlice)((0, import_keccak2569.keccak256)((0, import_bytes24.concat)([entropy, options.extraEntropy])), 0, 16)); } const mnemonic = entropyToMnemonic(entropy, options.locale); return Wallet.fromMnemonic(mnemonic, options.path, options.locale); @@ -166924,8 +224275,8 @@ ${bz(e, r10)}`); var constants = __toESM(require_lib5()); // node_modules/@ethersproject/providers/lib.esm/index.js - var lib_exports3 = {}; - __export(lib_exports3, { + var lib_exports2 = {}; + __export(lib_exports2, { AlchemyProvider: () => AlchemyProvider, AlchemyWebSocketProvider: () => AlchemyWebSocketProvider, AnkrProvider: () => AnkrProvider, @@ -166956,13 +224307,13 @@ ${bz(e, r10)}`); }); // ../../node_modules/@ethersproject/networks/lib.esm/index.js - var import_logger23 = __toESM(require_lib()); + var import_logger19 = __toESM(require_lib()); // ../../node_modules/@ethersproject/networks/lib.esm/_version.js - var version18 = "networks/5.7.1"; + var version14 = "networks/5.7.1"; // ../../node_modules/@ethersproject/networks/lib.esm/index.js - var logger23 = new import_logger23.Logger(version18); + var logger19 = new import_logger19.Logger(version14); function isRenetworkable(value) { return value && typeof value.renetwork === "function"; } @@ -167163,12 +224514,12 @@ ${bz(e, r10)}`); const standard = networks[network3.name]; if (!standard) { if (typeof network3.chainId !== "number") { - logger23.throwArgumentError("invalid network chainId", "network", network3); + logger19.throwArgumentError("invalid network chainId", "network", network3); } return network3; } if (network3.chainId !== 0 && network3.chainId !== standard.chainId) { - logger23.throwArgumentError("network chainId mismatch", "network", network3); + logger19.throwArgumentError("network chainId mismatch", "network", network3); } let defaultProvider = network3._defaultProvider || null; if (defaultProvider == null && standard._defaultProvider) { @@ -167187,22 +224538,24 @@ ${bz(e, r10)}`); } // node_modules/@ethersproject/providers/lib.esm/base-provider.js - var import_bignumber12 = __toESM(require_lib3()); - var import_bytes31 = __toESM(require_lib2()); + var import_bignumber11 = __toESM(require_lib3()); + var import_bytes28 = __toESM(require_lib2()); var import_constants4 = __toESM(require_lib5()); + var import_properties18 = __toESM(require_lib7()); var import_strings10 = __toESM(require_lib6()); // ../../node_modules/@ethersproject/web/lib.esm/index.js - var import_bytes29 = __toESM(require_lib2()); + var import_bytes26 = __toESM(require_lib2()); + var import_properties16 = __toESM(require_lib7()); var import_strings9 = __toESM(require_lib6()); - var import_logger24 = __toESM(require_lib()); + var import_logger20 = __toESM(require_lib()); // ../../node_modules/@ethersproject/web/lib.esm/_version.js - var version19 = "web/5.7.1"; + var version15 = "web/5.7.1"; // ../../node_modules/@ethersproject/web/lib.esm/geturl.js - var import_bytes28 = __toESM(require_lib2()); - var __awaiter9 = function(thisArg, _arguments, P, generator) { + var import_bytes25 = __toESM(require_lib2()); + var __awaiter7 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -167230,7 +224583,7 @@ ${bz(e, r10)}`); }); }; function getUrl(href, options) { - return __awaiter9(this, void 0, void 0, function* () { + return __awaiter7(this, void 0, void 0, function* () { if (options == null) { options = {}; } @@ -167281,13 +224634,13 @@ ${bz(e, r10)}`); headers, statusCode: response.status, statusMessage: response.statusText, - body: (0, import_bytes28.arrayify)(new Uint8Array(body)) + body: (0, import_bytes25.arrayify)(new Uint8Array(body)) }; }); } // ../../node_modules/@ethersproject/web/lib.esm/index.js - var __awaiter10 = function(thisArg, _arguments, P, generator) { + var __awaiter8 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -167314,7 +224667,7 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger24 = new import_logger24.Logger(version19); + var logger20 = new import_logger20.Logger(version15); function staller(duration) { return new Promise((resolve) => { setTimeout(resolve, duration); @@ -167327,7 +224680,7 @@ ${bz(e, r10)}`); if (typeof value === "string") { return value; } - if ((0, import_bytes29.isBytesLike)(value)) { + if ((0, import_bytes26.isBytesLike)(value)) { if (type && (type.split("/")[0] === "text" || type.split(";")[0].trim() === "application/json")) { try { return (0, import_strings9.toUtf8String)(value); @@ -167335,7 +224688,7 @@ ${bz(e, r10)}`); } ; } - return (0, import_bytes29.hexlify)(value); + return (0, import_bytes26.hexlify)(value); } return value; } @@ -167346,10 +224699,10 @@ ${bz(e, r10)}`); } function _fetchData(connection, body, processFunc) { const attemptLimit = typeof connection === "object" && connection.throttleLimit != null ? connection.throttleLimit : 12; - logger24.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit); + logger20.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit); const throttleCallback = typeof connection === "object" ? connection.throttleCallback : null; const throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100; - logger24.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval); + logger20.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval); const errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false; const headers = {}; let url = null; @@ -167362,7 +224715,7 @@ ${bz(e, r10)}`); url = connection; } else if (typeof connection === "object") { if (connection == null || connection.url == null) { - logger24.throwArgumentError("missing URL", "connection.url", connection); + logger20.throwArgumentError("missing URL", "connection.url", connection); } url = connection.url; if (typeof connection.timeout === "number" && connection.timeout > 0) { @@ -167379,19 +224732,19 @@ ${bz(e, r10)}`); options.allowGzip = !!connection.allowGzip; if (connection.user != null && connection.password != null) { if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) { - logger24.throwError("basic authentication requires a secure https url", import_logger24.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" }); + logger20.throwError("basic authentication requires a secure https url", import_logger20.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" }); } const authorization = connection.user + ":" + connection.password; headers["authorization"] = { key: "Authorization", - value: "Basic " + encode2((0, import_strings9.toUtf8Bytes)(authorization)) + value: "Basic " + encode((0, import_strings9.toUtf8Bytes)(authorization)) }; } if (connection.skipFetchSetup != null) { options.skipFetchSetup = !!connection.skipFetchSetup; } if (connection.fetchOptions != null) { - options.fetchOptions = shallowCopy(connection.fetchOptions); + options.fetchOptions = (0, import_properties16.shallowCopy)(connection.fetchOptions); } } const reData = new RegExp("^data:([^;:]*)?(;base64)?,(.*)$", "i"); @@ -167402,7 +224755,7 @@ ${bz(e, r10)}`); statusCode: 200, statusMessage: "OK", headers: { "content-type": dataMatch[1] || "text/plain" }, - body: dataMatch[2] ? decode2(dataMatch[3]) : unpercent(dataMatch[3]) + body: dataMatch[2] ? decode(dataMatch[3]) : unpercent(dataMatch[3]) }; let result = response.body; if (processFunc) { @@ -167410,7 +224763,7 @@ ${bz(e, r10)}`); } return Promise.resolve(result); } catch (error) { - logger24.throwError("processing response error", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("processing response error", import_logger20.Logger.errors.SERVER_ERROR, { body: bodyify(dataMatch[1], dataMatch[2]), error, requestBody: null, @@ -167444,7 +224797,7 @@ ${bz(e, r10)}`); return; } timer2 = null; - reject(logger24.makeError("timeout", import_logger24.Logger.errors.TIMEOUT, { + reject(logger20.makeError("timeout", import_logger20.Logger.errors.TIMEOUT, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, timeout, @@ -167463,7 +224816,7 @@ ${bz(e, r10)}`); return { promise, cancel }; }(); const runningFetch = function() { - return __awaiter10(this, void 0, void 0, function* () { + return __awaiter8(this, void 0, void 0, function* () { for (let attempt = 0; attempt < attemptLimit; attempt++) { let response = null; try { @@ -167497,7 +224850,7 @@ ${bz(e, r10)}`); response = error.response; if (response == null) { runningTimeout.cancel(); - logger24.throwError("missing response", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("missing response", import_logger20.Logger.errors.SERVER_ERROR, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, serverError: error, @@ -167510,7 +224863,7 @@ ${bz(e, r10)}`); body2 = null; } else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) { runningTimeout.cancel(); - logger24.throwError("bad response", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("bad response", import_logger20.Logger.errors.SERVER_ERROR, { status: response.statusCode, headers: response.headers, body: bodyify(body2, response.headers ? response.headers["content-type"] : null), @@ -167537,7 +224890,7 @@ ${bz(e, r10)}`); } } runningTimeout.cancel(); - logger24.throwError("processing response error", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("processing response error", import_logger20.Logger.errors.SERVER_ERROR, { body: bodyify(body2, response.headers ? response.headers["content-type"] : null), error, requestBody: bodyify(options.body, flatHeaders["content-type"]), @@ -167549,7 +224902,7 @@ ${bz(e, r10)}`); runningTimeout.cancel(); return body2; } - return logger24.throwError("failed response", import_logger24.Logger.errors.SERVER_ERROR, { + return logger20.throwError("failed response", import_logger20.Logger.errors.SERVER_ERROR, { requestBody: bodyify(options.body, flatHeaders["content-type"]), requestMethod: options.method, url @@ -167565,7 +224918,7 @@ ${bz(e, r10)}`); try { result = JSON.parse((0, import_strings9.toUtf8String)(value)); } catch (error) { - logger24.throwError("invalid JSON", import_logger24.Logger.errors.SERVER_ERROR, { + logger20.throwError("invalid JSON", import_logger20.Logger.errors.SERVER_ERROR, { body: value, error }); @@ -167579,11 +224932,11 @@ ${bz(e, r10)}`); let body = null; if (json != null) { body = (0, import_strings9.toUtf8Bytes)(json); - const updated = typeof connection === "string" ? { url: connection } : shallowCopy(connection); + const updated = typeof connection === "string" ? { url: connection } : (0, import_properties16.shallowCopy)(connection); if (updated.headers) { const hasContentType = Object.keys(updated.headers).filter((k) => k.toLowerCase() === "content-type").length !== 0; if (!hasContentType) { - updated.headers = shallowCopy(updated.headers); + updated.headers = (0, import_properties16.shallowCopy)(updated.headers); updated.headers["content-type"] = "application/json"; } } else { @@ -167597,7 +224950,7 @@ ${bz(e, r10)}`); if (!options) { options = {}; } - options = shallowCopy(options); + options = (0, import_properties16.shallowCopy)(options); if (options.floor == null) { options.floor = 0; } @@ -167669,17 +225022,19 @@ ${bz(e, r10)}`); // node_modules/@ethersproject/providers/lib.esm/base-provider.js var import_bech32 = __toESM(require_bech32()); - var import_logger26 = __toESM(require_lib()); + var import_logger22 = __toESM(require_lib()); // node_modules/@ethersproject/providers/lib.esm/_version.js - var version20 = "providers/5.7.2"; + var version16 = "providers/5.7.2"; // node_modules/@ethersproject/providers/lib.esm/formatter.js - var import_bignumber11 = __toESM(require_lib3()); - var import_bytes30 = __toESM(require_lib2()); + var import_address11 = __toESM(require_lib10()); + var import_bignumber10 = __toESM(require_lib3()); + var import_bytes27 = __toESM(require_lib2()); var import_constants3 = __toESM(require_lib5()); - var import_logger25 = __toESM(require_lib()); - var logger25 = new import_logger25.Logger(version20); + var import_properties17 = __toESM(require_lib7()); + var import_logger21 = __toESM(require_lib()); + var logger21 = new import_logger21.Logger(version16); var Formatter = class { constructor() { this.formats = this.getDefaultFormats(); @@ -167775,7 +225130,7 @@ ${bz(e, r10)}`); transactions: Formatter.allowNull(Formatter.arrayOf(hash8)), baseFeePerGas: Formatter.allowNull(bigNumber) }; - formats.blockWithTransactions = shallowCopy(formats.block); + formats.blockWithTransactions = (0, import_properties17.shallowCopy)(formats.block); formats.blockWithTransactions.transactions = Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this))); formats.filter = { fromBlock: Formatter.allowNull(blockTag, void 0), @@ -167804,16 +225159,16 @@ ${bz(e, r10)}`); if (number4 === "0x") { return 0; } - return import_bignumber11.BigNumber.from(number4).toNumber(); + return import_bignumber10.BigNumber.from(number4).toNumber(); } type(number4) { if (number4 === "0x" || number4 == null) { return 0; } - return import_bignumber11.BigNumber.from(number4).toNumber(); + return import_bignumber10.BigNumber.from(number4).toNumber(); } bigNumber(value) { - return import_bignumber11.BigNumber.from(value); + return import_bignumber10.BigNumber.from(value); } boolean(value) { if (typeof value === "boolean") { @@ -167835,11 +225190,11 @@ ${bz(e, r10)}`); if (!strict && value.substring(0, 2) !== "0x") { value = "0x" + value; } - if ((0, import_bytes30.isHexString)(value)) { + if ((0, import_bytes27.isHexString)(value)) { return value.toLowerCase(); } } - return logger25.throwArgumentError("invalid hash", "value", value); + return logger21.throwArgumentError("invalid hash", "value", value); } data(value, strict) { const result = this.hex(value, strict); @@ -167849,17 +225204,17 @@ ${bz(e, r10)}`); return result; } address(value) { - return getAddress(value); + return (0, import_address11.getAddress)(value); } callAddress(value) { - if (!(0, import_bytes30.isHexString)(value, 32)) { + if (!(0, import_bytes27.isHexString)(value, 32)) { return null; } - const address = getAddress((0, import_bytes30.hexDataSlice)(value, 12)); + const address = (0, import_address11.getAddress)((0, import_bytes27.hexDataSlice)(value, 12)); return address === import_constants3.AddressZero ? null : address; } contractAddress(value) { - return getContractAddress(value); + return (0, import_address11.getContractAddress)(value); } blockTag(blockTag) { if (blockTag == null) { @@ -167877,15 +225232,15 @@ ${bz(e, r10)}`); case "finalized": return blockTag; } - if (typeof blockTag === "number" || (0, import_bytes30.isHexString)(blockTag)) { - return (0, import_bytes30.hexValue)(blockTag); + if (typeof blockTag === "number" || (0, import_bytes27.isHexString)(blockTag)) { + return (0, import_bytes27.hexValue)(blockTag); } throw new Error("invalid blockTag"); } hash(value, strict) { const result = this.hex(value, strict); - if ((0, import_bytes30.hexDataLength)(result) !== 32) { - return logger25.throwArgumentError("invalid hash", "value", value); + if ((0, import_bytes27.hexDataLength)(result) !== 32) { + return logger21.throwArgumentError("invalid hash", "value", value); } return result; } @@ -167893,7 +225248,7 @@ ${bz(e, r10)}`); if (value == null) { return null; } - const v = import_bignumber11.BigNumber.from(value); + const v = import_bignumber10.BigNumber.from(value); try { return v.toNumber(); } catch (error) { @@ -167901,10 +225256,10 @@ ${bz(e, r10)}`); return null; } uint256(value) { - if (!(0, import_bytes30.isHexString)(value)) { + if (!(0, import_bytes27.isHexString)(value)) { throw new Error("invalid uint256"); } - return (0, import_bytes30.hexZeroPad)(value, 32); + return (0, import_bytes27.hexZeroPad)(value, 32); } _block(value, format) { if (value.author != null && value.miner == null) { @@ -167912,7 +225267,7 @@ ${bz(e, r10)}`); } const difficulty = value._difficulty != null ? value._difficulty : value.difficulty; const result = Formatter.check(format, value); - result._difficulty = difficulty == null ? null : import_bignumber11.BigNumber.from(difficulty); + result._difficulty = difficulty == null ? null : import_bignumber10.BigNumber.from(difficulty); return result; } block(value) { @@ -167928,7 +225283,7 @@ ${bz(e, r10)}`); if (transaction.gas != null && transaction.gasLimit == null) { transaction.gasLimit = transaction.gas; } - if (transaction.to && import_bignumber11.BigNumber.from(transaction.to).isZero()) { + if (transaction.to && import_bignumber10.BigNumber.from(transaction.to).isZero()) { transaction.to = "0x0000000000000000000000000000000000000000"; } if (transaction.input != null && transaction.data == null) { @@ -167943,8 +225298,8 @@ ${bz(e, r10)}`); const result = Formatter.check(this.formats.transaction, transaction); if (transaction.chainId != null) { let chainId = transaction.chainId; - if ((0, import_bytes30.isHexString)(chainId)) { - chainId = import_bignumber11.BigNumber.from(chainId).toNumber(); + if ((0, import_bytes27.isHexString)(chainId)) { + chainId = import_bignumber10.BigNumber.from(chainId).toNumber(); } result.chainId = chainId; } else { @@ -167952,8 +225307,8 @@ ${bz(e, r10)}`); if (chainId == null && result.v == null) { chainId = transaction.chainId; } - if ((0, import_bytes30.isHexString)(chainId)) { - chainId = import_bignumber11.BigNumber.from(chainId).toNumber(); + if ((0, import_bytes27.isHexString)(chainId)) { + chainId = import_bignumber10.BigNumber.from(chainId).toNumber(); } if (typeof chainId !== "number" && result.v != null) { chainId = (result.v - 35) / 2; @@ -167982,18 +225337,18 @@ ${bz(e, r10)}`); const result = Formatter.check(this.formats.receipt, value); if (result.root != null) { if (result.root.length <= 4) { - const value2 = import_bignumber11.BigNumber.from(result.root).toNumber(); + const value2 = import_bignumber10.BigNumber.from(result.root).toNumber(); if (value2 === 0 || value2 === 1) { if (result.status != null && result.status !== value2) { - logger25.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status }); + logger21.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status }); } result.status = value2; delete result.root; } else { - logger25.throwArgumentError("invalid alt-root-status", "value.root", result.root); + logger21.throwArgumentError("invalid alt-root-status", "value.root", result.root); } } else if (result.root.length !== 66) { - logger25.throwArgumentError("invalid root hash", "value.root", result.root); + logger21.throwArgumentError("invalid root hash", "value.root", result.root); } } if (result.status != null) { @@ -168087,7 +225442,7 @@ ${bz(e, r10)}`); } // node_modules/@ethersproject/providers/lib.esm/base-provider.js - var __awaiter11 = function(thisArg, _arguments, P, generator) { + var __awaiter9 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -168114,14 +225469,14 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger26 = new import_logger26.Logger(version20); + var logger22 = new import_logger22.Logger(version16); var MAX_CCIP_REDIRECTS = 10; function checkTopic(topic) { if (topic == null) { return "null"; } - if ((0, import_bytes31.hexDataLength)(topic) !== 32) { - logger26.throwArgumentError("invalid topic", "topic", topic); + if ((0, import_bytes28.hexDataLength)(topic) !== 32) { + logger22.throwArgumentError("invalid topic", "topic", topic); } return topic.toLowerCase(); } @@ -168161,7 +225516,7 @@ ${bz(e, r10)}`); function getEventTag2(eventName) { if (typeof eventName === "string") { eventName = eventName.toLowerCase(); - if ((0, import_bytes31.hexDataLength)(eventName) === 32) { + if ((0, import_bytes28.hexDataLength)(eventName) === 32) { return "tx:" + eventName; } if (eventName.indexOf(":") === -1) { @@ -168170,7 +225525,7 @@ ${bz(e, r10)}`); } else if (Array.isArray(eventName)) { return "filter:*:" + serializeTopics(eventName); } else if (ForkEvent.isForkEvent(eventName)) { - logger26.warn("not implemented"); + logger22.warn("not implemented"); throw new Error("not implemented"); } else if (eventName && typeof eventName === "object") { return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []); @@ -168188,9 +225543,9 @@ ${bz(e, r10)}`); var PollableEvents = ["block", "network", "pending", "poll"]; var Event = class { constructor(tag, listener, once) { - defineReadOnly(this, "tag", tag); - defineReadOnly(this, "listener", listener); - defineReadOnly(this, "once", once); + (0, import_properties18.defineReadOnly)(this, "tag", tag); + (0, import_properties18.defineReadOnly)(this, "listener", listener); + (0, import_properties18.defineReadOnly)(this, "once", once); this._lastBlockNumber = -2; this._inflight = false; } @@ -168242,10 +225597,10 @@ ${bz(e, r10)}`); "700": { symbol: "xdai", ilk: "eth" } }; function bytes32ify(value) { - return (0, import_bytes31.hexZeroPad)(import_bignumber12.BigNumber.from(value).toHexString(), 32); + return (0, import_bytes28.hexZeroPad)(import_bignumber11.BigNumber.from(value).toHexString(), 32); } function base58Encode(data) { - return Base58.encode((0, import_bytes31.concat)([data, (0, import_bytes31.hexDataSlice)(sha256(sha256(data)), 0, 4)])); + return Base58.encode((0, import_bytes28.concat)([data, (0, import_bytes28.hexDataSlice)(sha256(sha256(data)), 0, 4)])); } var matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i"); var matchers = [ @@ -168265,9 +225620,9 @@ ${bz(e, r10)}`); if (result === "0x") { return null; } - const offset = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(result, start, start + 32)).toNumber(); - const length = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(result, offset, offset + 32)).toNumber(); - return (0, import_bytes31.hexDataSlice)(result, offset + 32, offset + 32 + length); + const offset = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(result, start, start + 32)).toNumber(); + const length = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(result, offset, offset + 32)).toNumber(); + return (0, import_bytes28.hexDataSlice)(result, offset + 32, offset + 32 + length); } function getIpfsLink(link) { if (link.match(/^ipfs:\/\/ipfs\//i)) { @@ -168275,12 +225630,12 @@ ${bz(e, r10)}`); } else if (link.match(/^ipfs:\/\//i)) { link = link.substring(7); } else { - logger26.throwArgumentError("unsupported IPFS format", "link", link); + logger22.throwArgumentError("unsupported IPFS format", "link", link); } return `https://gateway.ipfs.io/ipfs/${link}`; } function numPad(value) { - const result = (0, import_bytes31.arrayify)(value); + const result = (0, import_bytes28.arrayify)(value); if (result.length > 32) { throw new Error("internal; should not happen"); } @@ -168304,20 +225659,20 @@ ${bz(e, r10)}`); byteCount += 32; } for (let i = 0; i < datas.length; i++) { - const data = (0, import_bytes31.arrayify)(datas[i]); + const data = (0, import_bytes28.arrayify)(datas[i]); result[i] = numPad(byteCount); result.push(numPad(data.length)); result.push(bytesPad(data)); byteCount += 32 + Math.ceil(data.length / 32) * 32; } - return (0, import_bytes31.hexConcat)(result); + return (0, import_bytes28.hexConcat)(result); } var Resolver = class { constructor(provider, address, name6, resolvedAddress) { - defineReadOnly(this, "provider", provider); - defineReadOnly(this, "name", name6); - defineReadOnly(this, "address", provider.formatter.address(address)); - defineReadOnly(this, "_resolvedAddress", resolvedAddress); + (0, import_properties18.defineReadOnly)(this, "provider", provider); + (0, import_properties18.defineReadOnly)(this, "name", name6); + (0, import_properties18.defineReadOnly)(this, "address", provider.formatter.address(address)); + (0, import_properties18.defineReadOnly)(this, "_resolvedAddress", resolvedAddress); } supportsWildcard() { if (!this._supportsEip2544) { @@ -168325,9 +225680,9 @@ ${bz(e, r10)}`); to: this.address, data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000" }).then((result) => { - return import_bignumber12.BigNumber.from(result).eq(1); + return import_bignumber11.BigNumber.from(result).eq(1); }).catch((error) => { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return false; } this._supportsEip2544 = null; @@ -168337,21 +225692,21 @@ ${bz(e, r10)}`); return this._supportsEip2544; } _fetch(selector, parameters) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const tx2 = { to: this.address, ccipReadEnabled: true, - data: (0, import_bytes31.hexConcat)([selector, namehash(this.name), parameters || "0x"]) + data: (0, import_bytes28.hexConcat)([selector, namehash(this.name), parameters || "0x"]) }; let parseBytes = false; if (yield this.supportsWildcard()) { parseBytes = true; - tx2.data = (0, import_bytes31.hexConcat)(["0x9061b923", encodeBytes([dnsEncode(this.name), tx2.data])]); + tx2.data = (0, import_bytes28.hexConcat)(["0x9061b923", encodeBytes([dnsEncode(this.name), tx2.data])]); } try { let result = yield this.provider.call(tx2); - if ((0, import_bytes31.arrayify)(result).length % 32 === 4) { - logger26.throwError("resolver threw error", import_logger26.Logger.errors.CALL_EXCEPTION, { + if ((0, import_bytes28.arrayify)(result).length % 32 === 4) { + logger22.throwError("resolver threw error", import_logger22.Logger.errors.CALL_EXCEPTION, { transaction: tx2, data: result }); @@ -168361,7 +225716,7 @@ ${bz(e, r10)}`); } return result; } catch (error) { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return null; } throw error; @@ -168369,7 +225724,7 @@ ${bz(e, r10)}`); }); } _fetchBytes(selector, parameters) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const result = yield this._fetch(selector, parameters); if (result != null) { return _parseBytes(result, 0); @@ -168380,20 +225735,20 @@ ${bz(e, r10)}`); _getAddress(coinType, hexBytes) { const coinInfo = coinInfos[String(coinType)]; if (coinInfo == null) { - logger26.throwError(`unsupported coin type: ${coinType}`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError(`unsupported coin type: ${coinType}`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `getAddress(${coinType})` }); } if (coinInfo.ilk === "eth") { return this.provider.formatter.address(hexBytes); } - const bytes5 = (0, import_bytes31.arrayify)(hexBytes); + const bytes5 = (0, import_bytes28.arrayify)(hexBytes); if (coinInfo.p2pkh != null) { const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/); if (p2pkh) { const length = parseInt(p2pkh[1], 16); if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) { - return base58Encode((0, import_bytes31.concat)([[coinInfo.p2pkh], "0x" + p2pkh[2]])); + return base58Encode((0, import_bytes28.concat)([[coinInfo.p2pkh], "0x" + p2pkh[2]])); } } } @@ -168402,30 +225757,30 @@ ${bz(e, r10)}`); if (p2sh) { const length = parseInt(p2sh[1], 16); if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) { - return base58Encode((0, import_bytes31.concat)([[coinInfo.p2sh], "0x" + p2sh[2]])); + return base58Encode((0, import_bytes28.concat)([[coinInfo.p2sh], "0x" + p2sh[2]])); } } } if (coinInfo.prefix != null) { const length = bytes5[1]; - let version27 = bytes5[0]; - if (version27 === 0) { + let version23 = bytes5[0]; + if (version23 === 0) { if (length !== 20 && length !== 32) { - version27 = -1; + version23 = -1; } } else { - version27 = -1; + version23 = -1; } - if (version27 >= 0 && bytes5.length === 2 + length && length >= 1 && length <= 75) { + if (version23 >= 0 && bytes5.length === 2 + length && length >= 1 && length <= 75) { const words2 = import_bech32.default.toWords(bytes5.slice(2)); - words2.unshift(version27); + words2.unshift(version23); return import_bech32.default.encode(coinInfo.prefix, words2); } } return null; } getAddress(coinType) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (coinType == null) { coinType = 60; } @@ -168437,7 +225792,7 @@ ${bz(e, r10)}`); } return this.provider.formatter.callAddress(result); } catch (error) { - if (error.code === import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code === import_logger22.Logger.errors.CALL_EXCEPTION) { return null; } throw error; @@ -168449,7 +225804,7 @@ ${bz(e, r10)}`); } const address = this._getAddress(coinType, hexBytes); if (address == null) { - logger26.throwError(`invalid or unsupported coin data`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError(`invalid or unsupported coin data`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `getAddress(${coinType})`, coinType, data: hexBytes @@ -168459,7 +225814,7 @@ ${bz(e, r10)}`); }); } getAvatar() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const linkage = [{ type: "name", content: this.name }]; try { const avatar = yield this.getText("avatar"); @@ -168492,20 +225847,20 @@ ${bz(e, r10)}`); return null; } const addr = yield this.provider.formatter.address(comps[0]); - const tokenId = (0, import_bytes31.hexZeroPad)(import_bignumber12.BigNumber.from(comps[1]).toHexString(), 32); + const tokenId = (0, import_bytes28.hexZeroPad)(import_bignumber11.BigNumber.from(comps[1]).toHexString(), 32); if (scheme === "erc721") { const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({ to: addr, - data: (0, import_bytes31.hexConcat)(["0x6352211e", tokenId]) + data: (0, import_bytes28.hexConcat)(["0x6352211e", tokenId]) })); if (owner !== tokenOwner) { return null; } linkage.push({ type: "owner", content: tokenOwner }); } else if (scheme === "erc1155") { - const balance = import_bignumber12.BigNumber.from(yield this.provider.call({ + const balance = import_bignumber11.BigNumber.from(yield this.provider.call({ to: addr, - data: (0, import_bytes31.hexConcat)(["0x00fdd58e", (0, import_bytes31.hexZeroPad)(owner, 32), tokenId]) + data: (0, import_bytes28.hexConcat)(["0x00fdd58e", (0, import_bytes28.hexZeroPad)(owner, 32), tokenId]) })); if (balance.isZero()) { return null; @@ -168514,7 +225869,7 @@ ${bz(e, r10)}`); } const tx2 = { to: this.provider.formatter.address(comps[0]), - data: (0, import_bytes31.hexConcat)([selector, tokenId]) + data: (0, import_bytes28.hexConcat)([selector, tokenId]) }; let metadataUrl = _parseString(yield this.provider.call(tx2), 0); if (metadataUrl == null) { @@ -168558,7 +225913,7 @@ ${bz(e, r10)}`); }); } getContentHash() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const hexBytes = yield this._fetchBytes("0xbc1c58d1"); if (hexBytes == null || hexBytes === "0x") { return null; @@ -168587,24 +225942,24 @@ ${bz(e, r10)}`); if (skynet) { if (skynet[1].length === 34 * 2) { const urlSafe = { "=": "", "+": "-", "/": "_" }; - const hash8 = encode2("0x" + skynet[1]).replace(/[=+\/]/g, (a) => urlSafe[a]); + const hash8 = encode("0x" + skynet[1]).replace(/[=+\/]/g, (a) => urlSafe[a]); return "sia://" + hash8; } } - return logger26.throwError(`invalid or unsupported content hash data`, import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + return logger22.throwError(`invalid or unsupported content hash data`, import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getContentHash()", data: hexBytes }); }); } getText(key2) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let keyBytes = (0, import_strings10.toUtf8Bytes)(key2); - keyBytes = (0, import_bytes31.concat)([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]); + keyBytes = (0, import_bytes28.concat)([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]); if (keyBytes.length % 32 !== 0) { - keyBytes = (0, import_bytes31.concat)([keyBytes, (0, import_bytes31.hexZeroPad)("0x", 32 - key2.length % 32)]); + keyBytes = (0, import_bytes28.concat)([keyBytes, (0, import_bytes28.hexZeroPad)("0x", 32 - key2.length % 32)]); } - const hexBytes = yield this._fetchBytes("0x59d1d43c", (0, import_bytes31.hexlify)(keyBytes)); + const hexBytes = yield this._fetchBytes("0x59d1d43c", (0, import_bytes28.hexlify)(keyBytes)); if (hexBytes == null || hexBytes === "0x") { return null; } @@ -168621,7 +225976,7 @@ ${bz(e, r10)}`); this._emitted = { block: -2 }; this.disableCcipRead = false; this.formatter = new.target.getFormatter(); - defineReadOnly(this, "anyNetwork", network3 === "any"); + (0, import_properties18.defineReadOnly)(this, "anyNetwork", network3 === "any"); if (this.anyNetwork) { network3 = this.detectNetwork(); } @@ -168632,12 +225987,12 @@ ${bz(e, r10)}`); this._ready().catch((error) => { }); } else { - const knownNetwork = getStatic(new.target, "getNetwork")(network3); + const knownNetwork = (0, import_properties18.getStatic)(new.target, "getNetwork")(network3); if (knownNetwork) { - defineReadOnly(this, "_network", knownNetwork); + (0, import_properties18.defineReadOnly)(this, "_network", knownNetwork); this.emit("network", knownNetwork, null); } else { - logger26.throwArgumentError("invalid network", "network", network3); + logger22.throwArgumentError("invalid network", "network", network3); } } this._maxInternalBlockNumber = -1024; @@ -168647,7 +226002,7 @@ ${bz(e, r10)}`); this._fastQueryDate = 0; } _ready() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (this._network == null) { let network3 = null; if (this._networkPromise) { @@ -168660,13 +226015,13 @@ ${bz(e, r10)}`); network3 = yield this.detectNetwork(); } if (!network3) { - logger26.throwError("no network detected", import_logger26.Logger.errors.UNKNOWN_ERROR, {}); + logger22.throwError("no network detected", import_logger22.Logger.errors.UNKNOWN_ERROR, {}); } if (this._network == null) { if (this.anyNetwork) { this._network = network3; } else { - defineReadOnly(this, "_network", network3); + (0, import_properties18.defineReadOnly)(this, "_network", network3); } this.emit("network", network3, null); } @@ -168679,7 +226034,7 @@ ${bz(e, r10)}`); return this._ready().then((network3) => { return network3; }, (error) => { - if (error.code === import_logger26.Logger.errors.NETWORK_ERROR && error.event === "noNetwork") { + if (error.code === import_logger22.Logger.errors.NETWORK_ERROR && error.event === "noNetwork") { return void 0; } throw error; @@ -168696,7 +226051,7 @@ ${bz(e, r10)}`); return getNetwork(network3 == null ? "homestead" : network3); } ccipReadFetch(tx2, calldata, urls) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (this.disableCcipRead || urls.length === 0) { return null; } @@ -168716,18 +226071,18 @@ ${bz(e, r10)}`); } const errorMessage = result.message || "unknown error"; if (result.status >= 400 && result.status < 500) { - return logger26.throwError(`response not found during CCIP fetch: ${errorMessage}`, import_logger26.Logger.errors.SERVER_ERROR, { url, errorMessage }); + return logger22.throwError(`response not found during CCIP fetch: ${errorMessage}`, import_logger22.Logger.errors.SERVER_ERROR, { url, errorMessage }); } errorMessages.push(errorMessage); } - return logger26.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, import_logger22.Logger.errors.SERVER_ERROR, { urls, errorMessages }); }); } _getInternalBlockNumber(maxAge) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this._ready(); if (maxAge > 0) { while (this._internalBlockNumber) { @@ -168746,7 +226101,7 @@ ${bz(e, r10)}`); } } const reqTime = getTime(); - const checkInternalBlockNumber = resolveProperties({ + const checkInternalBlockNumber = (0, import_properties18.resolveProperties)({ blockNumber: this.perform("getBlockNumber", {}), networkError: this.getNetwork().then((network3) => null, (error) => error) }).then(({ blockNumber, networkError }) => { @@ -168757,7 +226112,7 @@ ${bz(e, r10)}`); throw networkError; } const respTime = getTime(); - blockNumber = import_bignumber12.BigNumber.from(blockNumber).toNumber(); + blockNumber = import_bignumber11.BigNumber.from(blockNumber).toNumber(); if (blockNumber < this._maxInternalBlockNumber) { blockNumber = this._maxInternalBlockNumber; } @@ -168775,7 +226130,7 @@ ${bz(e, r10)}`); }); } poll() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const pollId = nextPollId++; const runners = []; let blockNumber = null; @@ -168795,8 +226150,8 @@ ${bz(e, r10)}`); this._emitted.block = blockNumber - 1; } if (Math.abs(this._emitted.block - blockNumber) > 1e3) { - logger26.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`); - this.emit("error", logger26.makeError("network block skew detected", import_logger26.Logger.errors.NETWORK_ERROR, { + logger22.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`); + this.emit("error", logger22.makeError("network block skew detected", import_logger22.Logger.errors.NETWORK_ERROR, { blockNumber, event: "blockSkew", previousBlockNumber: this._emitted.block @@ -168900,14 +226255,14 @@ ${bz(e, r10)}`); return this._network; } detectNetwork() { - return __awaiter11(this, void 0, void 0, function* () { - return logger26.throwError("provider does not support network detection", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + return __awaiter9(this, void 0, void 0, function* () { + return logger22.throwError("provider does not support network detection", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: "provider.detectNetwork" }); }); } getNetwork() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const network3 = yield this._ready(); const currentNetwork = yield this.detectNetwork(); if (network3.chainId !== currentNetwork.chainId) { @@ -168924,7 +226279,7 @@ ${bz(e, r10)}`); yield stall(0); return this._network; } - const error = logger26.makeError("underlying network changed", import_logger26.Logger.errors.NETWORK_ERROR, { + const error = logger22.makeError("underlying network changed", import_logger22.Logger.errors.NETWORK_ERROR, { event: "changed", network: network3, detectedNetwork: currentNetwork @@ -169005,12 +226360,12 @@ ${bz(e, r10)}`); } } waitForTransaction(transactionHash, confirmations, timeout) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { return this._waitForTransaction(transactionHash, confirmations == null ? 1 : confirmations, timeout || 0, null); }); } _waitForTransaction(transactionHash, confirmations, timeout, replaceable) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const receipt = yield this.getTransactionReceipt(transactionHash); if ((receipt ? receipt.confirmations : 0) >= confirmations) { return receipt; @@ -169044,12 +226399,12 @@ ${bz(e, r10)}`); if (replaceable) { let lastBlockNumber = replaceable.startBlock; let scannedBlock = null; - const replaceHandler = (blockNumber) => __awaiter11(this, void 0, void 0, function* () { + const replaceHandler = (blockNumber) => __awaiter9(this, void 0, void 0, function* () { if (done) { return; } yield stall(1e3); - this.getTransactionCount(replaceable.from).then((nonce) => __awaiter11(this, void 0, void 0, function* () { + this.getTransactionCount(replaceable.from).then((nonce) => __awaiter9(this, void 0, void 0, function* () { if (done) { return; } @@ -169092,7 +226447,7 @@ ${bz(e, r10)}`); } else if (tx2.data === "0x" && tx2.from === tx2.to && tx2.value.isZero()) { reason = "cancelled"; } - reject(logger26.makeError("transaction was replaced", import_logger26.Logger.errors.TRANSACTION_REPLACED, { + reject(logger22.makeError("transaction was replaced", import_logger22.Logger.errors.TRANSACTION_REPLACED, { cancelled: reason === "replaced" || reason === "cancelled", reason, replacement: this._wrapTransaction(tx2), @@ -169129,7 +226484,7 @@ ${bz(e, r10)}`); if (alreadyDone()) { return; } - reject(logger26.makeError("timeout exceeded", import_logger26.Logger.errors.TIMEOUT, { timeout })); + reject(logger22.makeError("timeout exceeded", import_logger22.Logger.errors.TIMEOUT, { timeout })); }, timeout); if (timer2.unref) { timer2.unref(); @@ -169142,18 +226497,18 @@ ${bz(e, r10)}`); }); } getBlockNumber() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { return this._getInternalBlockNumber(0); }); } getGasPrice() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); const result = yield this.perform("getGasPrice", {}); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getGasPrice", result, error @@ -169162,17 +226517,17 @@ ${bz(e, r10)}`); }); } getBalance(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getBalance", params); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getBalance", params, result, @@ -169182,17 +226537,17 @@ ${bz(e, r10)}`); }); } getTransactionCount(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getTransactionCount", params); try { - return import_bignumber12.BigNumber.from(result).toNumber(); + return import_bignumber11.BigNumber.from(result).toNumber(); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getTransactionCount", params, result, @@ -169202,17 +226557,17 @@ ${bz(e, r10)}`); }); } getCode(addressOrName, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag) }); const result = yield this.perform("getCode", params); try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getCode", params, result, @@ -169222,18 +226577,18 @@ ${bz(e, r10)}`); }); } getStorageAt(addressOrName, position, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ address: this._getAddress(addressOrName), blockTag: this._getBlockTag(blockTag), - position: Promise.resolve(position).then((p) => (0, import_bytes31.hexValue)(p)) + position: Promise.resolve(position).then((p) => (0, import_bytes28.hexValue)(p)) }); const result = yield this.perform("getStorageAt", params); try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "getStorageAt", params, result, @@ -169243,14 +226598,14 @@ ${bz(e, r10)}`); }); } _wrapTransaction(tx2, hash8, startBlock) { - if (hash8 != null && (0, import_bytes31.hexDataLength)(hash8) !== 32) { + if (hash8 != null && (0, import_bytes28.hexDataLength)(hash8) !== 32) { throw new Error("invalid response - sendTransaction"); } const result = tx2; if (hash8 != null && tx2.hash !== hash8) { - logger26.throwError("Transaction hash mismatch from Provider.sendTransaction.", import_logger26.Logger.errors.UNKNOWN_ERROR, { expectedHash: tx2.hash, returnedHash: hash8 }); + logger22.throwError("Transaction hash mismatch from Provider.sendTransaction.", import_logger22.Logger.errors.UNKNOWN_ERROR, { expectedHash: tx2.hash, returnedHash: hash8 }); } - result.wait = (confirms, timeout) => __awaiter11(this, void 0, void 0, function* () { + result.wait = (confirms, timeout) => __awaiter9(this, void 0, void 0, function* () { if (confirms == null) { confirms = 1; } @@ -169274,7 +226629,7 @@ ${bz(e, r10)}`); } this._emitted["t:" + tx2.hash] = receipt.blockNumber; if (receipt.status === 0) { - logger26.throwError("transaction failed", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("transaction failed", import_logger22.Logger.errors.CALL_EXCEPTION, { transactionHash: tx2.hash, transaction: tx2, receipt @@ -169285,9 +226640,9 @@ ${bz(e, r10)}`); return result; } sendTransaction(signedTransaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const hexTx = yield Promise.resolve(signedTransaction).then((t) => (0, import_bytes31.hexlify)(t)); + const hexTx = yield Promise.resolve(signedTransaction).then((t) => (0, import_bytes28.hexlify)(t)); const tx2 = this.formatter.transaction(signedTransaction); if (tx2.confirmations == null) { tx2.confirmations = 0; @@ -169304,7 +226659,7 @@ ${bz(e, r10)}`); }); } _getTransactionRequest(transaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { const values = yield transaction; const tx2 = {}; ["from", "to"].forEach((key2) => { @@ -169317,7 +226672,7 @@ ${bz(e, r10)}`); if (values[key2] == null) { return; } - tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? import_bignumber12.BigNumber.from(v) : null); + tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? import_bignumber11.BigNumber.from(v) : null); }); ["type"].forEach((key2) => { if (values[key2] == null) { @@ -169332,13 +226687,13 @@ ${bz(e, r10)}`); if (values[key2] == null) { return; } - tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? (0, import_bytes31.hexlify)(v) : null); + tx2[key2] = Promise.resolve(values[key2]).then((v) => v ? (0, import_bytes28.hexlify)(v) : null); }); - return this.formatter.transactionRequest(yield resolveProperties(tx2)); + return this.formatter.transactionRequest(yield (0, import_properties18.resolveProperties)(tx2)); }); } _getFilter(filter) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { filter = yield filter; const result = {}; if (filter.address != null) { @@ -169356,25 +226711,25 @@ ${bz(e, r10)}`); } result[key2] = this._getBlockTag(filter[key2]); }); - return this.formatter.filter(yield resolveProperties(result)); + return this.formatter.filter(yield (0, import_properties18.resolveProperties)(result)); }); } _call(transaction, blockTag, attempt) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (attempt >= MAX_CCIP_REDIRECTS) { - logger26.throwError("CCIP read exceeded maximum redirections", import_logger26.Logger.errors.SERVER_ERROR, { + logger22.throwError("CCIP read exceeded maximum redirections", import_logger22.Logger.errors.SERVER_ERROR, { redirects: attempt, transaction }); } const txSender = transaction.to; const result = yield this.perform("call", { transaction, blockTag }); - if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && (0, import_bytes31.hexDataLength)(result) % 32 === 4) { + if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && (0, import_bytes28.hexDataLength)(result) % 32 === 4) { try { - const data = (0, import_bytes31.hexDataSlice)(result, 4); - const sender = (0, import_bytes31.hexDataSlice)(data, 0, 32); - if (!import_bignumber12.BigNumber.from(sender).eq(txSender)) { - logger26.throwError("CCIP Read sender did not match", import_logger26.Logger.errors.CALL_EXCEPTION, { + const data = (0, import_bytes28.hexDataSlice)(result, 4); + const sender = (0, import_bytes28.hexDataSlice)(data, 0, 32); + if (!import_bignumber11.BigNumber.from(sender).eq(txSender)) { + logger22.throwError("CCIP Read sender did not match", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169382,13 +226737,13 @@ ${bz(e, r10)}`); }); } const urls = []; - const urlsOffset = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, 32, 64)).toNumber(); - const urlsLength = import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, urlsOffset, urlsOffset + 32)).toNumber(); - const urlsData = (0, import_bytes31.hexDataSlice)(data, urlsOffset + 32); + const urlsOffset = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, 32, 64)).toNumber(); + const urlsLength = import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, urlsOffset, urlsOffset + 32)).toNumber(); + const urlsData = (0, import_bytes28.hexDataSlice)(data, urlsOffset + 32); for (let u = 0; u < urlsLength; u++) { const url = _parseString(urlsData, u * 32); if (url == null) { - logger26.throwError("CCIP Read contained corrupt URL string", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("CCIP Read contained corrupt URL string", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169398,19 +226753,19 @@ ${bz(e, r10)}`); urls.push(url); } const calldata = _parseBytes(data, 64); - if (!import_bignumber12.BigNumber.from((0, import_bytes31.hexDataSlice)(data, 100, 128)).isZero()) { - logger26.throwError("CCIP Read callback selector included junk", import_logger26.Logger.errors.CALL_EXCEPTION, { + if (!import_bignumber11.BigNumber.from((0, import_bytes28.hexDataSlice)(data, 100, 128)).isZero()) { + logger22.throwError("CCIP Read callback selector included junk", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, data: result }); } - const callbackSelector = (0, import_bytes31.hexDataSlice)(data, 96, 100); + const callbackSelector = (0, import_bytes28.hexDataSlice)(data, 96, 100); const extraData = _parseBytes(data, 128); const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls); if (ccipResult == null) { - logger26.throwError("CCIP Read disabled or provided no URLs", import_logger26.Logger.errors.CALL_EXCEPTION, { + logger22.throwError("CCIP Read disabled or provided no URLs", import_logger22.Logger.errors.CALL_EXCEPTION, { name: "OffchainLookup", signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", transaction, @@ -169419,19 +226774,19 @@ ${bz(e, r10)}`); } const tx2 = { to: txSender, - data: (0, import_bytes31.hexConcat)([callbackSelector, encodeBytes([ccipResult, extraData])]) + data: (0, import_bytes28.hexConcat)([callbackSelector, encodeBytes([ccipResult, extraData])]) }; return this._call(tx2, blockTag, attempt + 1); } catch (error) { - if (error.code === import_logger26.Logger.errors.SERVER_ERROR) { + if (error.code === import_logger22.Logger.errors.SERVER_ERROR) { throw error; } } } try { - return (0, import_bytes31.hexlify)(result); + return (0, import_bytes28.hexlify)(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "call", params: { transaction, blockTag }, result, @@ -169441,9 +226796,9 @@ ${bz(e, r10)}`); }); } call(transaction, blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const resolved = yield resolveProperties({ + const resolved = yield (0, import_properties18.resolveProperties)({ transaction: this._getTransactionRequest(transaction), blockTag: this._getBlockTag(blockTag), ccipReadEnabled: Promise.resolve(transaction.ccipReadEnabled) @@ -169452,16 +226807,16 @@ ${bz(e, r10)}`); }); } estimateGas(transaction) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ + const params = yield (0, import_properties18.resolveProperties)({ transaction: this._getTransactionRequest(transaction) }); const result = yield this.perform("estimateGas", params); try { - return import_bignumber12.BigNumber.from(result); + return import_bignumber11.BigNumber.from(result); } catch (error) { - return logger26.throwError("bad result from backend", import_logger26.Logger.errors.SERVER_ERROR, { + return logger22.throwError("bad result from backend", import_logger22.Logger.errors.SERVER_ERROR, { method: "estimateGas", params, result, @@ -169471,14 +226826,14 @@ ${bz(e, r10)}`); }); } _getAddress(addressOrName) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { addressOrName = yield addressOrName; if (typeof addressOrName !== "string") { - logger26.throwArgumentError("invalid address or ENS name", "name", addressOrName); + logger22.throwArgumentError("invalid address or ENS name", "name", addressOrName); } const address = yield this.resolveName(addressOrName); if (address == null) { - logger26.throwError("ENS name not configured", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { + logger22.throwError("ENS name not configured", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation: `resolveName(${JSON.stringify(addressOrName)})` }); } @@ -169486,26 +226841,26 @@ ${bz(e, r10)}`); }); } _getBlock(blockHashOrBlockTag, includeTransactions) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); blockHashOrBlockTag = yield blockHashOrBlockTag; let blockNumber = -128; const params = { includeTransactions: !!includeTransactions }; - if ((0, import_bytes31.isHexString)(blockHashOrBlockTag, 32)) { + if ((0, import_bytes28.isHexString)(blockHashOrBlockTag, 32)) { params.blockHash = blockHashOrBlockTag; } else { try { params.blockTag = yield this._getBlockTag(blockHashOrBlockTag); - if ((0, import_bytes31.isHexString)(params.blockTag)) { + if ((0, import_bytes28.isHexString)(params.blockTag)) { blockNumber = parseInt(params.blockTag.substring(2), 16); } } catch (error) { - logger26.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag); + logger22.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag); } } - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const block = yield this.perform("getBlock", params); if (block == null) { if (params.blockHash != null) { @@ -169552,11 +226907,11 @@ ${bz(e, r10)}`); return this._getBlock(blockHashOrBlockTag, true); } getTransaction(transactionHash) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); transactionHash = yield transactionHash; const params = { transactionHash: this.formatter.hash(transactionHash, true) }; - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const result = yield this.perform("getTransaction", params); if (result == null) { if (this._emitted["t:" + transactionHash] == null) { @@ -169580,11 +226935,11 @@ ${bz(e, r10)}`); }); } getTransactionReceipt(transactionHash) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); transactionHash = yield transactionHash; const params = { transactionHash: this.formatter.hash(transactionHash, true) }; - return poll(() => __awaiter11(this, void 0, void 0, function* () { + return poll(() => __awaiter9(this, void 0, void 0, function* () { const result = yield this.perform("getTransactionReceipt", params); if (result == null) { if (this._emitted["t:" + transactionHash] == null) { @@ -169611,9 +226966,9 @@ ${bz(e, r10)}`); }); } getLogs(filter) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); - const params = yield resolveProperties({ filter: this._getFilter(filter) }); + const params = yield (0, import_properties18.resolveProperties)({ filter: this._getFilter(filter) }); const logs = yield this.perform("getLogs", params); logs.forEach((log) => { if (log.removed == null) { @@ -169624,17 +226979,17 @@ ${bz(e, r10)}`); }); } getEtherPrice() { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { yield this.getNetwork(); return this.perform("getEtherPrice", {}); }); } _getBlockTag(blockTag) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { blockTag = yield blockTag; if (typeof blockTag === "number" && blockTag < 0) { if (blockTag % 1) { - logger26.throwArgumentError("invalid BlockTag", "blockTag", blockTag); + logger22.throwArgumentError("invalid BlockTag", "blockTag", blockTag); } let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval); blockNumber += blockTag; @@ -169647,7 +227002,7 @@ ${bz(e, r10)}`); }); } getResolver(name6) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let currentName = name6; while (true) { if (currentName === "" || currentName === ".") { @@ -169669,13 +227024,13 @@ ${bz(e, r10)}`); }); } _getResolver(name6, operation) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { if (operation == null) { operation = "ENS"; } const network3 = yield this.getNetwork(); if (!network3.ensAddress) { - logger26.throwError("network does not support ENS", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network3.name }); + logger22.throwError("network does not support ENS", import_logger22.Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network3.name }); } try { const addrData = yield this.call({ @@ -169689,17 +227044,17 @@ ${bz(e, r10)}`); }); } resolveName(name6) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { name6 = yield name6; try { return Promise.resolve(this.formatter.address(name6)); } catch (error) { - if ((0, import_bytes31.isHexString)(name6)) { + if ((0, import_bytes28.isHexString)(name6)) { throw error; } } if (typeof name6 !== "string") { - logger26.throwArgumentError("invalid ENS name", "name", name6); + logger22.throwArgumentError("invalid ENS name", "name", name6); } const resolver = yield this.getResolver(name6); if (!resolver) { @@ -169709,7 +227064,7 @@ ${bz(e, r10)}`); }); } lookupAddress(address) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { address = yield address; address = this.formatter.address(address); const node = address.substring(2).toLowerCase() + ".addr.reverse"; @@ -169729,9 +227084,9 @@ ${bz(e, r10)}`); }); } getAvatar(nameOrAddress) { - return __awaiter11(this, void 0, void 0, function* () { + return __awaiter9(this, void 0, void 0, function* () { let resolver = null; - if ((0, import_bytes31.isHexString)(nameOrAddress)) { + if ((0, import_bytes28.isHexString)(nameOrAddress)) { const address = this.formatter.address(nameOrAddress); const node = address.substring(2).toLowerCase() + ".addr.reverse"; const resolverAddress = yield this._getResolver(node, "getAvatar"); @@ -169745,7 +227100,7 @@ ${bz(e, r10)}`); return avatar2.url; } } catch (error) { - if (error.code !== import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code !== import_logger22.Logger.errors.CALL_EXCEPTION) { throw error; } } @@ -169756,7 +227111,7 @@ ${bz(e, r10)}`); }), 0); resolver = yield this.getResolver(name6); } catch (error) { - if (error.code !== import_logger26.Logger.errors.CALL_EXCEPTION) { + if (error.code !== import_logger22.Logger.errors.CALL_EXCEPTION) { throw error; } return null; @@ -169775,7 +227130,7 @@ ${bz(e, r10)}`); }); } perform(method, params) { - return logger26.throwError(method + " not implemented", import_logger26.Logger.errors.NOT_IMPLEMENTED, { operation: method }); + return logger22.throwError(method + " not implemented", import_logger22.Logger.errors.NOT_IMPLEMENTED, { operation: method }); } _startEvent(event) { this.polling = this._events.filter((e) => e.pollable()).length > 0; @@ -169879,15 +227234,21 @@ ${bz(e, r10)}`); } }; + // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js + var import_properties22 = __toESM(require_lib7()); + // node_modules/@ethersproject/providers/lib.esm/websocket-provider.js - var import_bignumber14 = __toESM(require_lib3()); + var import_bignumber13 = __toESM(require_lib3()); + var import_properties20 = __toESM(require_lib7()); // node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js - var import_bignumber13 = __toESM(require_lib3()); - var import_bytes32 = __toESM(require_lib2()); + var import_abstract_signer3 = __toESM(require_lib11()); + var import_bignumber12 = __toESM(require_lib3()); + var import_bytes29 = __toESM(require_lib2()); + var import_properties19 = __toESM(require_lib7()); var import_strings11 = __toESM(require_lib6()); - var import_logger27 = __toESM(require_lib()); - var __awaiter12 = function(thisArg, _arguments, P, generator) { + var import_logger23 = __toESM(require_lib()); + var __awaiter10 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -169914,14 +227275,14 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger27 = new import_logger27.Logger(version20); + var logger23 = new import_logger23.Logger(version16); var errorGas = ["call", "estimateGas"]; function spelunk(value, requireData) { if (value == null) { return null; } if (typeof value.message === "string" && value.message.match("reverted")) { - const data = (0, import_bytes32.isHexString)(value.data) ? value.data : null; + const data = (0, import_bytes29.isHexString)(value.data) ? value.data : null; if (!requireData || data) { return { message: value.message, data }; } @@ -169950,7 +227311,7 @@ ${bz(e, r10)}`); if (result) { return result.data; } - logger27.throwError("missing revert data in call exception; Transaction reverted without a reason string", import_logger27.Logger.errors.CALL_EXCEPTION, { + logger23.throwError("missing revert data in call exception; Transaction reverted without a reason string", import_logger23.Logger.errors.CALL_EXCEPTION, { data: "0x", transaction, error @@ -169962,7 +227323,7 @@ ${bz(e, r10)}`); result = spelunk(error, false); } if (result) { - logger27.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger27.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger23.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger23.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { reason: result.message, method, transaction, @@ -169971,7 +227332,7 @@ ${bz(e, r10)}`); } } let message = error.message; - if (error.code === import_logger27.Logger.errors.SERVER_ERROR && error.error && typeof error.error.message === "string") { + if (error.code === import_logger23.Logger.errors.SERVER_ERROR && error.error && typeof error.error.message === "string") { message = error.error.message; } else if (typeof error.body === "string") { message = error.body; @@ -169980,35 +227341,35 @@ ${bz(e, r10)}`); } message = (message || "").toLowerCase(); if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) { - logger27.throwError("insufficient funds for intrinsic transaction cost", import_logger27.Logger.errors.INSUFFICIENT_FUNDS, { + logger23.throwError("insufficient funds for intrinsic transaction cost", import_logger23.Logger.errors.INSUFFICIENT_FUNDS, { error, method, transaction }); } if (message.match(/nonce (is )?too low/i)) { - logger27.throwError("nonce has already been used", import_logger27.Logger.errors.NONCE_EXPIRED, { + logger23.throwError("nonce has already been used", import_logger23.Logger.errors.NONCE_EXPIRED, { error, method, transaction }); } if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) { - logger27.throwError("replacement fee too low", import_logger27.Logger.errors.REPLACEMENT_UNDERPRICED, { + logger23.throwError("replacement fee too low", import_logger23.Logger.errors.REPLACEMENT_UNDERPRICED, { error, method, transaction }); } if (message.match(/only replay-protected/i)) { - logger27.throwError("legacy pre-eip-155 transactions not supported", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + logger23.throwError("legacy pre-eip-155 transactions not supported", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { error, method, transaction }); } if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) { - logger27.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger27.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger23.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger23.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { error, method, transaction @@ -170037,28 +227398,28 @@ ${bz(e, r10)}`); return value; } var _constructorGuard3 = {}; - var JsonRpcSigner = class extends Signer { + var JsonRpcSigner = class extends import_abstract_signer3.Signer { constructor(constructorGuard, provider, addressOrIndex) { super(); if (constructorGuard !== _constructorGuard3) { throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner"); } - defineReadOnly(this, "provider", provider); + (0, import_properties19.defineReadOnly)(this, "provider", provider); if (addressOrIndex == null) { addressOrIndex = 0; } if (typeof addressOrIndex === "string") { - defineReadOnly(this, "_address", this.provider.formatter.address(addressOrIndex)); - defineReadOnly(this, "_index", null); + (0, import_properties19.defineReadOnly)(this, "_address", this.provider.formatter.address(addressOrIndex)); + (0, import_properties19.defineReadOnly)(this, "_index", null); } else if (typeof addressOrIndex === "number") { - defineReadOnly(this, "_index", addressOrIndex); - defineReadOnly(this, "_address", null); + (0, import_properties19.defineReadOnly)(this, "_index", addressOrIndex); + (0, import_properties19.defineReadOnly)(this, "_address", null); } else { - logger27.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex); + logger23.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex); } } connect(provider) { - return logger27.throwError("cannot alter JSON-RPC Signer connection", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + return logger23.throwError("cannot alter JSON-RPC Signer connection", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "connect" }); } @@ -170071,7 +227432,7 @@ ${bz(e, r10)}`); } return this.provider.send("eth_accounts", []).then((accounts2) => { if (accounts2.length <= this._index) { - logger27.throwError("unknown account #" + this._index, import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + logger23.throwError("unknown account #" + this._index, import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getAddress" }); } @@ -170079,7 +227440,7 @@ ${bz(e, r10)}`); }); } sendUncheckedTransaction(transaction) { - transaction = shallowCopy(transaction); + transaction = (0, import_properties19.shallowCopy)(transaction); const fromAddress = this.getAddress().then((address) => { if (address) { address = address.toLowerCase(); @@ -170087,29 +227448,29 @@ ${bz(e, r10)}`); return address; }); if (transaction.gasLimit == null) { - const estimate = shallowCopy(transaction); + const estimate = (0, import_properties19.shallowCopy)(transaction); estimate.from = fromAddress; transaction.gasLimit = this.provider.estimateGas(estimate); } if (transaction.to != null) { - transaction.to = Promise.resolve(transaction.to).then((to2) => __awaiter12(this, void 0, void 0, function* () { + transaction.to = Promise.resolve(transaction.to).then((to2) => __awaiter10(this, void 0, void 0, function* () { if (to2 == null) { return null; } const address = yield this.provider.resolveName(to2); if (address == null) { - logger27.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); + logger23.throwArgumentError("provided ENS name resolves to null", "tx.to", to2); } return address; })); } - return resolveProperties({ - tx: resolveProperties(transaction), + return (0, import_properties19.resolveProperties)({ + tx: (0, import_properties19.resolveProperties)(transaction), sender: fromAddress }).then(({ tx: tx2, sender }) => { if (tx2.from != null) { if (tx2.from.toLowerCase() !== sender) { - logger27.throwArgumentError("from address mismatch", "transaction", transaction); + logger23.throwArgumentError("from address mismatch", "transaction", transaction); } } else { tx2.from = sender; @@ -170119,7 +227480,7 @@ ${bz(e, r10)}`); return hash8; }, (error) => { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected transaction", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected transaction", import_logger23.Logger.errors.ACTION_REJECTED, { action: "sendTransaction", transaction: tx2 }); @@ -170129,16 +227490,16 @@ ${bz(e, r10)}`); }); } signTransaction(transaction) { - return logger27.throwError("signing transactions is unsupported", import_logger27.Logger.errors.UNSUPPORTED_OPERATION, { + return logger23.throwError("signing transactions is unsupported", import_logger23.Logger.errors.UNSUPPORTED_OPERATION, { operation: "signTransaction" }); } sendTransaction(transaction) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const blockNumber = yield this.provider._getInternalBlockNumber(100 + 2 * this.provider.pollingInterval); const hash8 = yield this.sendUncheckedTransaction(transaction); try { - return yield poll(() => __awaiter12(this, void 0, void 0, function* () { + return yield poll(() => __awaiter10(this, void 0, void 0, function* () { const tx2 = yield this.provider.getTransaction(hash8); if (tx2 === null) { return void 0; @@ -170152,14 +227513,14 @@ ${bz(e, r10)}`); }); } signMessage(message) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const data = typeof message === "string" ? (0, import_strings11.toUtf8Bytes)(message) : message; const address = yield this.getAddress(); try { - return yield this.provider.send("personal_sign", [(0, import_bytes32.hexlify)(data), address.toLowerCase()]); + return yield this.provider.send("personal_sign", [(0, import_bytes29.hexlify)(data), address.toLowerCase()]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "signMessage", from: address, messageData: message @@ -170170,14 +227531,14 @@ ${bz(e, r10)}`); }); } _legacySignMessage(message) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const data = typeof message === "string" ? (0, import_strings11.toUtf8Bytes)(message) : message; const address = yield this.getAddress(); try { - return yield this.provider.send("eth_sign", [address.toLowerCase(), (0, import_bytes32.hexlify)(data)]); + return yield this.provider.send("eth_sign", [address.toLowerCase(), (0, import_bytes29.hexlify)(data)]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "_legacySignMessage", from: address, messageData: message @@ -170188,7 +227549,7 @@ ${bz(e, r10)}`); }); } _signTypedData(domain, types2, value) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const populated = yield TypedDataEncoder.resolveNames(domain, types2, value, (name6) => { return this.provider.resolveName(name6); }); @@ -170200,7 +227561,7 @@ ${bz(e, r10)}`); ]); } catch (error) { if (typeof error.message === "string" && error.message.match(/user denied/i)) { - logger27.throwError("user rejected signing", import_logger27.Logger.errors.ACTION_REJECTED, { + logger23.throwError("user rejected signing", import_logger23.Logger.errors.ACTION_REJECTED, { action: "_signTypedData", from: address, messageData: { domain: populated.domain, types: types2, value: populated.value } @@ -170211,7 +227572,7 @@ ${bz(e, r10)}`); }); } unlock(password) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { const provider = this.provider; const address = yield this.getAddress(); return provider.send("personal_unlockAccount", [address.toLowerCase(), password, null]); @@ -170238,7 +227599,7 @@ ${bz(e, r10)}`); }); } }; - var allowedTransactionKeys4 = { + var allowedTransactionKeys3 = { chainId: true, data: true, gasLimit: true, @@ -170267,14 +227628,14 @@ ${bz(e, r10)}`); } super(networkOrReady); if (!url) { - url = getStatic(this.constructor, "defaultUrl")(); + url = (0, import_properties19.getStatic)(this.constructor, "defaultUrl")(); } if (typeof url === "string") { - defineReadOnly(this, "connection", Object.freeze({ + (0, import_properties19.defineReadOnly)(this, "connection", Object.freeze({ url })); } else { - defineReadOnly(this, "connection", Object.freeze(shallowCopy(url))); + (0, import_properties19.defineReadOnly)(this, "connection", Object.freeze((0, import_properties19.shallowCopy)(url))); } this._nextId = 42; } @@ -170297,7 +227658,7 @@ ${bz(e, r10)}`); return this._cache["detectNetwork"]; } _uncachedDetectNetwork() { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { yield timer(0); let chainId = null; try { @@ -170309,18 +227670,18 @@ ${bz(e, r10)}`); } } if (chainId != null) { - const getNetwork2 = getStatic(this.constructor, "getNetwork"); + const getNetwork2 = (0, import_properties19.getStatic)(this.constructor, "getNetwork"); try { - return getNetwork2(import_bignumber13.BigNumber.from(chainId).toNumber()); + return getNetwork2(import_bignumber12.BigNumber.from(chainId).toNumber()); } catch (error) { - return logger27.throwError("could not detect network", import_logger27.Logger.errors.NETWORK_ERROR, { + return logger23.throwError("could not detect network", import_logger23.Logger.errors.NETWORK_ERROR, { chainId, event: "invalidNetwork", serverError: error }); } } - return logger27.throwError("could not detect network", import_logger27.Logger.errors.NETWORK_ERROR, { + return logger23.throwError("could not detect network", import_logger23.Logger.errors.NETWORK_ERROR, { event: "noNetwork" }); }); @@ -170345,7 +227706,7 @@ ${bz(e, r10)}`); }; this.emit("debug", { action: "request", - request: deepCopy(request), + request: (0, import_properties19.deepCopy)(request), provider: this }); const cache = ["eth_chainId", "eth_blockNumber"].indexOf(method) >= 0; @@ -170390,7 +227751,7 @@ ${bz(e, r10)}`); case "getCode": return ["eth_getCode", [getLowerCase(params.address), params.blockTag]]; case "getStorageAt": - return ["eth_getStorageAt", [getLowerCase(params.address), (0, import_bytes32.hexZeroPad)(params.position, 32), params.blockTag]]; + return ["eth_getStorageAt", [getLowerCase(params.address), (0, import_bytes29.hexZeroPad)(params.position, 32), params.blockTag]]; case "sendTransaction": return ["eth_sendRawTransaction", [params.signedTransaction]]; case "getBlock": @@ -170405,11 +227766,11 @@ ${bz(e, r10)}`); case "getTransactionReceipt": return ["eth_getTransactionReceipt", [params.transactionHash]]; case "call": { - const hexlifyTransaction = getStatic(this.constructor, "hexlifyTransaction"); + const hexlifyTransaction = (0, import_properties19.getStatic)(this.constructor, "hexlifyTransaction"); return ["eth_call", [hexlifyTransaction(params.transaction, { from: true }), params.blockTag]]; } case "estimateGas": { - const hexlifyTransaction = getStatic(this.constructor, "hexlifyTransaction"); + const hexlifyTransaction = (0, import_properties19.getStatic)(this.constructor, "hexlifyTransaction"); return ["eth_estimateGas", [hexlifyTransaction(params.transaction, { from: true })]]; } case "getLogs": @@ -170423,15 +227784,15 @@ ${bz(e, r10)}`); return null; } perform(method, params) { - return __awaiter12(this, void 0, void 0, function* () { + return __awaiter10(this, void 0, void 0, function* () { if (method === "call" || method === "estimateGas") { const tx2 = params.transaction; - if (tx2 && tx2.type != null && import_bignumber13.BigNumber.from(tx2.type).isZero()) { + if (tx2 && tx2.type != null && import_bignumber12.BigNumber.from(tx2.type).isZero()) { if (tx2.maxFeePerGas == null && tx2.maxPriorityFeePerGas == null) { const feeData = yield this.getFeeData(); if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) { - params = shallowCopy(params); - params.transaction = shallowCopy(tx2); + params = (0, import_properties19.shallowCopy)(params); + params.transaction = (0, import_properties19.shallowCopy)(tx2); delete params.transaction.type; } } @@ -170439,7 +227800,7 @@ ${bz(e, r10)}`); } const args = this.prepareRequest(method, params); if (args == null) { - logger27.throwError(method + " not implemented", import_logger27.Logger.errors.NOT_IMPLEMENTED, { operation: method }); + logger23.throwError(method + " not implemented", import_logger23.Logger.errors.NOT_IMPLEMENTED, { operation: method }); } try { return yield this.send(args[0], args[1]); @@ -170504,7 +227865,7 @@ ${bz(e, r10)}`); super._stopEvent(event); } static hexlifyTransaction(transaction, allowExtra) { - const allowed = shallowCopy(allowedTransactionKeys4); + const allowed = (0, import_properties19.shallowCopy)(allowedTransactionKeys3); if (allowExtra) { for (const key2 in allowExtra) { if (allowExtra[key2]) { @@ -170512,13 +227873,13 @@ ${bz(e, r10)}`); } } } - checkProperties(transaction, allowed); + (0, import_properties19.checkProperties)(transaction, allowed); const result = {}; ["chainId", "gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function(key2) { if (transaction[key2] == null) { return; } - const value = (0, import_bytes32.hexValue)(import_bignumber13.BigNumber.from(transaction[key2])); + const value = (0, import_bytes29.hexValue)(import_bignumber12.BigNumber.from(transaction[key2])); if (key2 === "gasLimit") { key2 = "gas"; } @@ -170528,7 +227889,7 @@ ${bz(e, r10)}`); if (transaction[key2] == null) { return; } - result[key2] = (0, import_bytes32.hexlify)(transaction[key2]); + result[key2] = (0, import_bytes29.hexlify)(transaction[key2]); }); if (transaction.accessList) { result["accessList"] = accessListify(transaction.accessList); @@ -170538,7 +227899,7 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/ws.js - var import_logger28 = __toESM(require_lib()); + var import_logger24 = __toESM(require_lib()); var WS2 = null; try { WS2 = WebSocket; @@ -170546,17 +227907,17 @@ ${bz(e, r10)}`); throw new Error("inject please"); } } catch (error) { - const logger46 = new import_logger28.Logger(version20); + const logger42 = new import_logger24.Logger(version16); WS2 = function() { - logger46.throwError("WebSockets not supported in this environment", import_logger28.Logger.errors.UNSUPPORTED_OPERATION, { + logger42.throwError("WebSockets not supported in this environment", import_logger24.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new WebSocket()" }); }; } // node_modules/@ethersproject/providers/lib.esm/websocket-provider.js - var import_logger29 = __toESM(require_lib()); - var __awaiter13 = function(thisArg, _arguments, P, generator) { + var import_logger25 = __toESM(require_lib()); + var __awaiter11 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -170583,12 +227944,12 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger28 = new import_logger29.Logger(version20); + var logger24 = new import_logger25.Logger(version16); var NextId = 1; var WebSocketProvider = class extends JsonRpcProvider { constructor(url, network3) { if (network3 === "any") { - logger28.throwError("WebSocketProvider does not support 'any' network yet", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("WebSocketProvider does not support 'any' network yet", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "network:any" }); } @@ -170600,14 +227961,14 @@ ${bz(e, r10)}`); this._pollingInterval = -1; this._wsReady = false; if (typeof url === "string") { - defineReadOnly(this, "_websocket", new WS2(this.connection.url)); + (0, import_properties20.defineReadOnly)(this, "_websocket", new WS2(this.connection.url)); } else { - defineReadOnly(this, "_websocket", url); + (0, import_properties20.defineReadOnly)(this, "_websocket", url); } - defineReadOnly(this, "_requests", {}); - defineReadOnly(this, "_subs", {}); - defineReadOnly(this, "_subIds", {}); - defineReadOnly(this, "_detectNetwork", super.detectNetwork()); + (0, import_properties20.defineReadOnly)(this, "_requests", {}); + (0, import_properties20.defineReadOnly)(this, "_subs", {}); + (0, import_properties20.defineReadOnly)(this, "_subIds", {}); + (0, import_properties20.defineReadOnly)(this, "_detectNetwork", super.detectNetwork()); this.websocket.onopen = () => { this._wsReady = true; Object.keys(this._requests).forEach((id4) => { @@ -170633,8 +227994,8 @@ ${bz(e, r10)}`); let error = null; if (result.error) { error = new Error(result.error.message || "unknown error"); - defineReadOnly(error, "code", result.error.code || null); - defineReadOnly(error, "response", data); + (0, import_properties20.defineReadOnly)(error, "code", result.error.code || null); + (0, import_properties20.defineReadOnly)(error, "response", data); } else { error = new Error("unknown error"); } @@ -170672,17 +228033,17 @@ ${bz(e, r10)}`); return 0; } resetEventsBlock(blockNumber) { - logger28.throwError("cannot reset events block on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot reset events block on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "resetEventBlock" }); } set pollingInterval(value) { - logger28.throwError("cannot set polling interval on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot set polling interval on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "setPollingInterval" }); } poll() { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { return null; }); } @@ -170690,7 +228051,7 @@ ${bz(e, r10)}`); if (!value) { return; } - logger28.throwError("cannot set polling on WebSocketProvider", import_logger29.Logger.errors.UNSUPPORTED_OPERATION, { + logger24.throwError("cannot set polling on WebSocketProvider", import_logger25.Logger.errors.UNSUPPORTED_OPERATION, { operation: "setPolling" }); } @@ -170724,7 +228085,7 @@ ${bz(e, r10)}`); return "ws://localhost:8546"; } _subscribe(tag, param, processFunc) { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { let subIdPromise = this._subIds[tag]; if (subIdPromise == null) { subIdPromise = Promise.all(param).then((param2) => { @@ -170740,7 +228101,7 @@ ${bz(e, r10)}`); switch (event.type) { case "block": this._subscribe("block", ["newHeads"], (result) => { - const blockNumber = import_bignumber14.BigNumber.from(result.number).toNumber(); + const blockNumber = import_bignumber13.BigNumber.from(result.number).toNumber(); this._emitted.block = blockNumber; this.emit("block", blockNumber); }); @@ -170809,7 +228170,7 @@ ${bz(e, r10)}`); }); } destroy() { - return __awaiter13(this, void 0, void 0, function* () { + return __awaiter11(this, void 0, void 0, function* () { if (this.websocket.readyState === WS2.CONNECTING) { yield new Promise((resolve) => { this.websocket.onopen = function() { @@ -170826,11 +228187,12 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js - var import_logger31 = __toESM(require_lib()); + var import_logger27 = __toESM(require_lib()); // node_modules/@ethersproject/providers/lib.esm/url-json-rpc-provider.js - var import_logger30 = __toESM(require_lib()); - var __awaiter14 = function(thisArg, _arguments, P, generator) { + var import_properties21 = __toESM(require_lib7()); + var import_logger26 = __toESM(require_lib()); + var __awaiter12 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -170857,21 +228219,21 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger29 = new import_logger30.Logger(version20); + var logger25 = new import_logger26.Logger(version16); var StaticJsonRpcProvider = class extends JsonRpcProvider { detectNetwork() { const _super = Object.create(null, { detectNetwork: { get: () => super.detectNetwork } }); - return __awaiter14(this, void 0, void 0, function* () { + return __awaiter12(this, void 0, void 0, function* () { let network3 = this.network; if (network3 == null) { network3 = yield _super.detectNetwork.call(this); if (!network3) { - logger29.throwError("no network detected", import_logger30.Logger.errors.UNKNOWN_ERROR, {}); + logger25.throwError("no network detected", import_logger26.Logger.errors.UNKNOWN_ERROR, {}); } if (this._network == null) { - defineReadOnly(this, "_network", network3); + (0, import_properties21.defineReadOnly)(this, "_network", network3); this.emit("network", network3, null); } } @@ -170881,27 +228243,27 @@ ${bz(e, r10)}`); }; var UrlJsonRpcProvider = class extends StaticJsonRpcProvider { constructor(network3, apiKey) { - logger29.checkAbstract(new.target, UrlJsonRpcProvider); - network3 = getStatic(new.target, "getNetwork")(network3); - apiKey = getStatic(new.target, "getApiKey")(apiKey); - const connection = getStatic(new.target, "getUrl")(network3, apiKey); + logger25.checkAbstract(new.target, UrlJsonRpcProvider); + network3 = (0, import_properties21.getStatic)(new.target, "getNetwork")(network3); + apiKey = (0, import_properties21.getStatic)(new.target, "getApiKey")(apiKey); + const connection = (0, import_properties21.getStatic)(new.target, "getUrl")(network3, apiKey); super(connection, network3); if (typeof apiKey === "string") { - defineReadOnly(this, "apiKey", apiKey); + (0, import_properties21.defineReadOnly)(this, "apiKey", apiKey); } else if (apiKey != null) { Object.keys(apiKey).forEach((key2) => { - defineReadOnly(this, key2, apiKey[key2]); + (0, import_properties21.defineReadOnly)(this, key2, apiKey[key2]); }); } } _startPending() { - logger29.warn("WARNING: API provider does not support pending filters"); + logger25.warn("WARNING: API provider does not support pending filters"); } isCommunityResource() { return false; } getSigner(address) { - return logger29.throwError("API provider does not support signing", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" }); + return logger25.throwError("API provider does not support signing", import_logger26.Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" }); } listAccounts() { return Promise.resolve([]); @@ -170910,21 +228272,21 @@ ${bz(e, r10)}`); return apiKey; } static getUrl(network3, apiKey) { - return logger29.throwError("not implemented; sub-classes must override getUrl", import_logger30.Logger.errors.NOT_IMPLEMENTED, { + return logger25.throwError("not implemented; sub-classes must override getUrl", import_logger26.Logger.errors.NOT_IMPLEMENTED, { operation: "getUrl" }); } }; // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js - var logger30 = new import_logger31.Logger(version20); + var logger26 = new import_logger27.Logger(version16); var defaultApiKey = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"; var AlchemyWebSocketProvider = class extends WebSocketProvider { constructor(network3, apiKey) { const provider = new AlchemyProvider(network3, apiKey); const url = provider.connection.url.replace(/^http/i, "ws").replace(".alchemyapi.", ".ws.alchemyapi."); super(url, provider.network); - defineReadOnly(this, "apiKey", provider.apiKey); + (0, import_properties22.defineReadOnly)(this, "apiKey", provider.apiKey); } isCommunityResource() { return this.apiKey === defaultApiKey; @@ -170939,7 +228301,7 @@ ${bz(e, r10)}`); return defaultApiKey; } if (apiKey && typeof apiKey !== "string") { - logger30.throwArgumentError("invalid apiKey", "apiKey", apiKey); + logger26.throwArgumentError("invalid apiKey", "apiKey", apiKey); } return apiKey; } @@ -170971,7 +228333,7 @@ ${bz(e, r10)}`); host = "opt-goerli.g.alchemy.com/v2/"; break; default: - logger30.throwArgumentError("unsupported network", "network", arguments[0]); + logger26.throwArgumentError("unsupported network", "network", arguments[0]); } return { allowGzip: true, @@ -170990,8 +228352,8 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/ankr-provider.js - var import_logger32 = __toESM(require_lib()); - var logger31 = new import_logger32.Logger(version20); + var import_logger28 = __toESM(require_lib()); + var logger27 = new import_logger28.Logger(version16); var defaultApiKey2 = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972"; function getHost(name6) { switch (name6) { @@ -171008,7 +228370,7 @@ ${bz(e, r10)}`); case "arbitrum": return "rpc.ankr.com/arbitrum/"; } - return logger31.throwArgumentError("unsupported network", "name", name6); + return logger27.throwArgumentError("unsupported network", "name", name6); } var AnkrProvider = class extends UrlJsonRpcProvider { isCommunityResource() { @@ -171043,8 +228405,8 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/cloudflare-provider.js - var import_logger33 = __toESM(require_lib()); - var __awaiter15 = function(thisArg, _arguments, P, generator) { + var import_logger29 = __toESM(require_lib()); + var __awaiter13 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171071,11 +228433,11 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger32 = new import_logger33.Logger(version20); + var logger28 = new import_logger29.Logger(version16); var CloudflareProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { if (apiKey != null) { - logger32.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey); + logger28.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey); } return null; } @@ -171086,7 +228448,7 @@ ${bz(e, r10)}`); host = "https://cloudflare-eth.com/"; break; default: - logger32.throwArgumentError("unsupported network", "network", arguments[0]); + logger28.throwArgumentError("unsupported network", "network", arguments[0]); } return host; } @@ -171094,7 +228456,7 @@ ${bz(e, r10)}`); const _super = Object.create(null, { perform: { get: () => super.perform } }); - return __awaiter15(this, void 0, void 0, function* () { + return __awaiter13(this, void 0, void 0, function* () { if (method === "getBlockNumber") { const block = yield _super.perform.call(this, "getBlock", { blockTag: "latest" }); return block.number; @@ -171105,9 +228467,10 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/etherscan-provider.js - var import_bytes33 = __toESM(require_lib2()); - var import_logger34 = __toESM(require_lib()); - var __awaiter16 = function(thisArg, _arguments, P, generator) { + var import_bytes30 = __toESM(require_lib2()); + var import_properties23 = __toESM(require_lib7()); + var import_logger30 = __toESM(require_lib()); + var __awaiter14 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171134,7 +228497,7 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger33 = new import_logger34.Logger(version20); + var logger29 = new import_logger30.Logger(version16); function getTransactionPostData(transaction) { const result = {}; for (let key2 in transaction) { @@ -171146,13 +228509,13 @@ ${bz(e, r10)}`); continue; } if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key2]) { - value = (0, import_bytes33.hexValue)((0, import_bytes33.hexlify)(value)); + value = (0, import_bytes30.hexValue)((0, import_bytes30.hexlify)(value)); } else if (key2 === "accessList") { value = "[" + accessListify(value).map((set2) => { return `{address:"${set2.address}",storageKeys:["${set2.storageKeys.join('","')}"]}`; }).join(",") + "]"; } else { - value = (0, import_bytes33.hexlify)(value); + value = (0, import_bytes30.hexlify)(value); } result[key2] = value; } @@ -171206,24 +228569,24 @@ ${bz(e, r10)}`); return parseInt(blockTag.substring(2), 16); } function checkError2(method, error, transaction) { - if (method === "call" && error.code === import_logger34.Logger.errors.SERVER_ERROR) { + if (method === "call" && error.code === import_logger30.Logger.errors.SERVER_ERROR) { const e = error.error; if (e && (e.message.match(/reverted/i) || e.message.match(/VM execution error/i))) { let data = e.data; if (data) { data = "0x" + data.replace(/^.*0x/i, ""); } - if ((0, import_bytes33.isHexString)(data)) { + if ((0, import_bytes30.isHexString)(data)) { return data; } - logger33.throwError("missing revert data in call exception", import_logger34.Logger.errors.CALL_EXCEPTION, { + logger29.throwError("missing revert data in call exception", import_logger30.Logger.errors.CALL_EXCEPTION, { error, data: "0x" }); } } let message = error.message; - if (error.code === import_logger34.Logger.errors.SERVER_ERROR) { + if (error.code === import_logger30.Logger.errors.SERVER_ERROR) { if (error.error && typeof error.error.message === "string") { message = error.error.message; } else if (typeof error.body === "string") { @@ -171234,28 +228597,28 @@ ${bz(e, r10)}`); } message = (message || "").toLowerCase(); if (message.match(/insufficient funds/)) { - logger33.throwError("insufficient funds for intrinsic transaction cost", import_logger34.Logger.errors.INSUFFICIENT_FUNDS, { + logger29.throwError("insufficient funds for intrinsic transaction cost", import_logger30.Logger.errors.INSUFFICIENT_FUNDS, { error, method, transaction }); } if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) { - logger33.throwError("nonce has already been used", import_logger34.Logger.errors.NONCE_EXPIRED, { + logger29.throwError("nonce has already been used", import_logger30.Logger.errors.NONCE_EXPIRED, { error, method, transaction }); } if (message.match(/another transaction with same nonce/)) { - logger33.throwError("replacement fee too low", import_logger34.Logger.errors.REPLACEMENT_UNDERPRICED, { + logger29.throwError("replacement fee too low", import_logger30.Logger.errors.REPLACEMENT_UNDERPRICED, { error, method, transaction }); } if (message.match(/execution failed due to an exception|execution reverted/)) { - logger33.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger34.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { + logger29.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", import_logger30.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { error, method, transaction @@ -171266,8 +228629,8 @@ ${bz(e, r10)}`); var EtherscanProvider = class extends BaseProvider { constructor(network3, apiKey) { super(network3); - defineReadOnly(this, "baseUrl", this.getBaseUrl()); - defineReadOnly(this, "apiKey", apiKey || null); + (0, import_properties23.defineReadOnly)(this, "baseUrl", this.getBaseUrl()); + (0, import_properties23.defineReadOnly)(this, "apiKey", apiKey || null); } getBaseUrl() { switch (this.network ? this.network.name : "invalid") { @@ -171291,7 +228654,7 @@ ${bz(e, r10)}`); return "https://api-goerli-optimistic.etherscan.io"; default: } - return logger33.throwArgumentError("unsupported network", "network", this.network.name); + return logger29.throwArgumentError("unsupported network", "network", this.network.name); } getUrl(module2, params) { const query = Object.keys(params).reduce((accum, key2) => { @@ -171313,7 +228676,7 @@ ${bz(e, r10)}`); return params; } fetch(module2, params, post) { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { const url = post ? this.getPostUrl() : this.getUrl(module2, params); const payload = post ? this.getPostData(module2, params) : null; const procFunc = module2 === "proxy" ? getJsonResult : getResult2; @@ -171343,14 +228706,14 @@ ${bz(e, r10)}`); this.emit("debug", { action: "response", request: url, - response: deepCopy(result), + response: (0, import_properties23.deepCopy)(result), provider: this }); return result; }); } detectNetwork() { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { return this.network; }); } @@ -171358,7 +228721,7 @@ ${bz(e, r10)}`); const _super = Object.create(null, { perform: { get: () => super.perform } }); - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { switch (method) { case "getBlockNumber": return this.fetch("proxy", { action: "eth_blockNumber" }); @@ -171451,12 +228814,12 @@ ${bz(e, r10)}`); } if (params.filter.topics && params.filter.topics.length > 0) { if (params.filter.topics.length > 1) { - logger33.throwError("unsupported topic count", import_logger34.Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics }); + logger29.throwError("unsupported topic count", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics }); } if (params.filter.topics.length === 1) { const topic0 = params.filter.topics[0]; if (typeof topic0 !== "string" || topic0.length !== 66) { - logger33.throwError("unsupported topic format", import_logger34.Logger.errors.UNSUPPORTED_OPERATION, { topic0 }); + logger29.throwError("unsupported topic format", import_logger30.Logger.errors.UNSUPPORTED_OPERATION, { topic0 }); } args.topic0 = topic0; } @@ -171490,7 +228853,7 @@ ${bz(e, r10)}`); }); } getHistory(addressOrName, startBlock, endBlock) { - return __awaiter16(this, void 0, void 0, function* () { + return __awaiter14(this, void 0, void 0, function* () { const params = { action: "txlist", address: yield this.resolveName(addressOrName), @@ -171522,10 +228885,11 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/fallback-provider.js - var import_bignumber15 = __toESM(require_lib3()); - var import_bytes34 = __toESM(require_lib2()); - var import_logger35 = __toESM(require_lib()); - var __awaiter17 = function(thisArg, _arguments, P, generator) { + var import_bignumber14 = __toESM(require_lib3()); + var import_bytes31 = __toESM(require_lib2()); + var import_properties24 = __toESM(require_lib7()); + var import_logger31 = __toESM(require_lib()); + var __awaiter15 = function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -171552,7 +228916,7 @@ ${bz(e, r10)}`); step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var logger34 = new import_logger35.Logger(version20); + var logger30 = new import_logger31.Logger(version16); function now() { return new Date().getTime(); } @@ -171565,7 +228929,7 @@ ${bz(e, r10)}`); } if (result) { if (!(result.name === network3.name && result.chainId === network3.chainId && (result.ensAddress === network3.ensAddress || result.ensAddress == null && network3.ensAddress == null))) { - logger34.throwArgumentError("provider mismatch", "networks", networks2); + logger30.throwArgumentError("provider mismatch", "networks", networks2); } } else { result = network3; @@ -171592,7 +228956,7 @@ ${bz(e, r10)}`); return JSON.stringify(value); } else if (typeof value === "string") { return value; - } else if (import_bignumber15.BigNumber.isBigNumber(value)) { + } else if (import_bignumber14.BigNumber.isBigNumber(value)) { return value.toString(); } else if (Array.isArray(value)) { return JSON.stringify(value.map((i) => serialize2(i))); @@ -171635,11 +228999,11 @@ ${bz(e, r10)}`); return { cancel, getPromise, wait }; } var ForwardErrors = [ - import_logger35.Logger.errors.CALL_EXCEPTION, - import_logger35.Logger.errors.INSUFFICIENT_FUNDS, - import_logger35.Logger.errors.NONCE_EXPIRED, - import_logger35.Logger.errors.REPLACEMENT_UNDERPRICED, - import_logger35.Logger.errors.UNPREDICTABLE_GAS_LIMIT + import_logger31.Logger.errors.CALL_EXCEPTION, + import_logger31.Logger.errors.INSUFFICIENT_FUNDS, + import_logger31.Logger.errors.NONCE_EXPIRED, + import_logger31.Logger.errors.REPLACEMENT_UNDERPRICED, + import_logger31.Logger.errors.UNPREDICTABLE_GAS_LIMIT ]; var ForwardProperties = [ "address", @@ -171732,7 +229096,7 @@ ${bz(e, r10)}`); if (tx2 == null) { return null; } - tx2 = shallowCopy(tx2); + tx2 = (0, import_properties24.shallowCopy)(tx2); tx2.confirmations = -1; return serialize2(tx2); }; @@ -171743,9 +229107,9 @@ ${bz(e, r10)}`); if (block == null) { return null; } - block = shallowCopy(block); + block = (0, import_properties24.shallowCopy)(block); block.transactions = block.transactions.map((tx2) => { - tx2 = shallowCopy(tx2); + tx2 = (0, import_properties24.shallowCopy)(tx2); tx2.confirmations = -1; return tx2; }); @@ -171766,7 +229130,7 @@ ${bz(e, r10)}`); return normalizedTally(normalize7, provider.quorum); } function waitForSync(config7, blockNumber) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { const provider = config7.provider; if (provider.blockNumber != null && provider.blockNumber >= blockNumber || blockNumber === -1) { return provider; @@ -171787,7 +229151,7 @@ ${bz(e, r10)}`); }); } function getRunner(config7, currentBlockNumber, method, params) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { let provider = config7.provider; switch (method) { case "getBlockNumber": @@ -171801,23 +229165,23 @@ ${bz(e, r10)}`); case "getBalance": case "getTransactionCount": case "getCode": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider[method](params.address, params.blockTag || "latest"); case "getStorageAt": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider.getStorageAt(params.address, params.position, params.blockTag || "latest"); case "getBlock": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider[params.includeTransactions ? "getBlockWithTransactions" : "getBlock"](params.blockTag || params.blockHash); case "call": case "estimateGas": - if (params.blockTag && (0, import_bytes34.isHexString)(params.blockTag)) { + if (params.blockTag && (0, import_bytes31.isHexString)(params.blockTag)) { provider = yield waitForSync(config7, currentBlockNumber); } if (method === "call" && params.blockTag) { @@ -171829,13 +229193,13 @@ ${bz(e, r10)}`); return provider[method](params.transactionHash); case "getLogs": { let filter = params.filter; - if (filter.fromBlock && (0, import_bytes34.isHexString)(filter.fromBlock) || filter.toBlock && (0, import_bytes34.isHexString)(filter.toBlock)) { + if (filter.fromBlock && (0, import_bytes31.isHexString)(filter.fromBlock) || filter.toBlock && (0, import_bytes31.isHexString)(filter.toBlock)) { provider = yield waitForSync(config7, currentBlockNumber); } return provider.getLogs(filter); } } - return logger34.throwError("unknown method error", import_logger35.Logger.errors.UNKNOWN_ERROR, { + return logger30.throwError("unknown method error", import_logger31.Logger.errors.UNKNOWN_ERROR, { method, params }); @@ -171844,7 +229208,7 @@ ${bz(e, r10)}`); var FallbackProvider = class extends BaseProvider { constructor(providers, quorum) { if (providers.length === 0) { - logger34.throwArgumentError("missing providers", "providers", providers); + logger30.throwArgumentError("missing providers", "providers", providers); } const providerConfigs = providers.map((configOrProvider, index) => { if (Provider.isProvider(configOrProvider)) { @@ -171852,7 +229216,7 @@ ${bz(e, r10)}`); const priority = 1; return Object.freeze({ provider: configOrProvider, weight: 1, stallTimeout, priority }); } - const config7 = shallowCopy(configOrProvider); + const config7 = (0, import_properties24.shallowCopy)(configOrProvider); if (config7.priority == null) { config7.priority = 1; } @@ -171864,7 +229228,7 @@ ${bz(e, r10)}`); } const weight = config7.weight; if (weight % 1 || weight > 512 || weight < 1) { - logger34.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight); + logger30.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight); } return Object.freeze(config7); }); @@ -171872,7 +229236,7 @@ ${bz(e, r10)}`); if (quorum == null) { quorum = total / 2; } else if (quorum > total) { - logger34.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum); + logger30.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum); } let networkOrReady = checkNetworks(providerConfigs.map((c) => c.provider.network)); if (networkOrReady == null) { @@ -171883,18 +229247,18 @@ ${bz(e, r10)}`); }); } super(networkOrReady); - defineReadOnly(this, "providerConfigs", Object.freeze(providerConfigs)); - defineReadOnly(this, "quorum", quorum); + (0, import_properties24.defineReadOnly)(this, "providerConfigs", Object.freeze(providerConfigs)); + (0, import_properties24.defineReadOnly)(this, "quorum", quorum); this._highestBlockNumber = -1; } detectNetwork() { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { const networks2 = yield Promise.all(this.providerConfigs.map((c) => c.provider.getNetwork())); return checkNetworks(networks2); }); } perform(method, params) { - return __awaiter17(this, void 0, void 0, function* () { + return __awaiter15(this, void 0, void 0, function* () { if (method === "sendTransaction") { const results = yield Promise.all(this.providerConfigs.map((c) => { return c.provider.sendTransaction(params.signedTransaction).then((result) => { @@ -171915,7 +229279,7 @@ ${bz(e, r10)}`); yield this.getBlockNumber(); } const processFunc = getProcessFunc(this, method, params); - const configs = shuffled(this.providerConfigs.map(shallowCopy)); + const configs = shuffled(this.providerConfigs.map(import_properties24.shallowCopy)); configs.sort((a, b) => a.priority - b.priority); const currentBlockNumber = this._highestBlockNumber; let i = 0; @@ -171939,7 +229303,7 @@ ${bz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, now()), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -171951,7 +229315,7 @@ ${bz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, now()), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -171961,7 +229325,7 @@ ${bz(e, r10)}`); action: "request", rid, backend: exposeDebugConfig(config7, null), - request: { method, params: deepCopy(params) }, + request: { method, params: (0, import_properties24.deepCopy)(params) }, provider: this }); } @@ -172029,7 +229393,7 @@ ${bz(e, r10)}`); } props[name6] = e[name6]; }); - logger34.throwError(e.reason || e.message, errorCode, props); + logger30.throwError(e.reason || e.message, errorCode, props); }); if (configs.filter((c) => !c.done).length === 0) { break; @@ -172041,7 +229405,7 @@ ${bz(e, r10)}`); } c.cancelled = true; }); - return logger34.throwError("failed to meet quorum", import_logger35.Logger.errors.SERVER_ERROR, { + return logger30.throwError("failed to meet quorum", import_logger31.Logger.errors.SERVER_ERROR, { method, params, results: configs.map((c) => exposeDebugConfig(c)), @@ -172055,23 +229419,24 @@ ${bz(e, r10)}`); var IpcProvider = null; // node_modules/@ethersproject/providers/lib.esm/infura-provider.js - var import_logger36 = __toESM(require_lib()); - var logger35 = new import_logger36.Logger(version20); + var import_properties25 = __toESM(require_lib7()); + var import_logger32 = __toESM(require_lib()); + var logger31 = new import_logger32.Logger(version16); var defaultProjectId = "84842078b09946638c03157f83405213"; var InfuraWebSocketProvider = class extends WebSocketProvider { constructor(network3, apiKey) { const provider = new InfuraProvider(network3, apiKey); const connection = provider.connection; if (connection.password) { - logger35.throwError("INFURA WebSocket project secrets unsupported", import_logger36.Logger.errors.UNSUPPORTED_OPERATION, { + logger31.throwError("INFURA WebSocket project secrets unsupported", import_logger32.Logger.errors.UNSUPPORTED_OPERATION, { operation: "InfuraProvider.getWebSocketProvider()" }); } const url = connection.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/"); super(url, network3); - defineReadOnly(this, "apiKey", provider.projectId); - defineReadOnly(this, "projectId", provider.projectId); - defineReadOnly(this, "projectSecret", provider.projectSecret); + (0, import_properties25.defineReadOnly)(this, "apiKey", provider.projectId); + (0, import_properties25.defineReadOnly)(this, "projectId", provider.projectId); + (0, import_properties25.defineReadOnly)(this, "projectSecret", provider.projectSecret); } isCommunityResource() { return this.projectId === defaultProjectId; @@ -172093,8 +229458,8 @@ ${bz(e, r10)}`); if (typeof apiKey === "string") { apiKeyObj.projectId = apiKey; } else if (apiKey.projectSecret != null) { - logger35.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId); - logger35.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]"); + logger31.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId); + logger31.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]"); apiKeyObj.projectId = apiKey.projectId; apiKeyObj.projectSecret = apiKey.projectSecret; } else if (apiKey.projectId) { @@ -172134,7 +229499,7 @@ ${bz(e, r10)}`); host = "arbitrum-goerli.infura.io"; break; default: - logger35.throwError("unsupported network", import_logger36.Logger.errors.INVALID_ARGUMENT, { + logger31.throwError("unsupported network", import_logger32.Logger.errors.INVALID_ARGUMENT, { argument: "network", value: network3 }); @@ -172161,6 +229526,7 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/json-rpc-batch-provider.js + var import_properties26 = __toESM(require_lib7()); var JsonRpcBatchProvider = class extends JsonRpcProvider { send(method, params) { const request = { @@ -172186,7 +229552,7 @@ ${bz(e, r10)}`); const request2 = batch.map((inflight) => inflight.request); this.emit("debug", { action: "requestBatch", - request: deepCopy(request2), + request: (0, import_properties26.deepCopy)(request2), provider: this }); return fetchJson(this.connection, JSON.stringify(request2)).then((result) => { @@ -172225,18 +229591,18 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.js - var import_logger37 = __toESM(require_lib()); - var logger36 = new import_logger37.Logger(version20); + var import_logger33 = __toESM(require_lib()); + var logger32 = new import_logger33.Logger(version16); var defaultApiKey3 = "ETHERS_JS_SHARED"; var NodesmithProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { if (apiKey && typeof apiKey !== "string") { - logger36.throwArgumentError("invalid apiKey", "apiKey", apiKey); + logger32.throwArgumentError("invalid apiKey", "apiKey", apiKey); } return apiKey || defaultApiKey3; } static getUrl(network3, apiKey) { - logger36.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform."); + logger32.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform."); let host = null; switch (network3.name) { case "homestead": @@ -172255,15 +229621,15 @@ ${bz(e, r10)}`); host = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc"; break; default: - logger36.throwArgumentError("unsupported network", "network", arguments[0]); + logger32.throwArgumentError("unsupported network", "network", arguments[0]); } return host + "?apiKey=" + apiKey; } }; // node_modules/@ethersproject/providers/lib.esm/pocket-provider.js - var import_logger38 = __toESM(require_lib()); - var logger37 = new import_logger38.Logger(version20); + var import_logger34 = __toESM(require_lib()); + var logger33 = new import_logger34.Logger(version16); var defaultApplicationId = "62e1ad51b37b8e00394bda3b"; var PocketProvider = class extends UrlJsonRpcProvider { static getApiKey(apiKey) { @@ -172282,7 +229648,7 @@ ${bz(e, r10)}`); } else if (apiKey.applicationId) { apiKeyObj.applicationId = apiKey.applicationId; } else { - logger37.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey); + logger33.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey); } return apiKeyObj; } @@ -172311,7 +229677,7 @@ ${bz(e, r10)}`); host = "eth-ropsten.gateway.pokt.network"; break; default: - logger37.throwError("unsupported network", import_logger38.Logger.errors.INVALID_ARGUMENT, { + logger33.throwError("unsupported network", import_logger34.Logger.errors.INVALID_ARGUMENT, { argument: "network", value: network3 }); @@ -172330,8 +229696,9 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/web3-provider.js - var import_logger39 = __toESM(require_lib()); - var logger38 = new import_logger39.Logger(version20); + var import_properties27 = __toESM(require_lib7()); + var import_logger35 = __toESM(require_lib()); + var logger34 = new import_logger35.Logger(version16); var _nextId = 1; function buildWeb3LegacyFetcher(provider, sendFunc) { const fetcher = "Web3LegacyFetcher"; @@ -172346,7 +229713,7 @@ ${bz(e, r10)}`); this.emit("debug", { action: "request", fetcher, - request: deepCopy(request), + request: (0, import_properties27.deepCopy)(request), provider: this }); sendFunc(request, (error, response) => { @@ -172387,7 +229754,7 @@ ${bz(e, r10)}`); this.emit("debug", { action: "request", fetcher: "Eip1193Fetcher", - request: deepCopy(request), + request: (0, import_properties27.deepCopy)(request), provider: this }); return provider.request(request).then((response) => { @@ -172414,7 +229781,7 @@ ${bz(e, r10)}`); var Web3Provider = class extends JsonRpcProvider { constructor(provider, network3) { if (provider == null) { - logger38.throwArgumentError("missing provider", "provider", provider); + logger34.throwArgumentError("missing provider", "provider", provider); } let path = null; let jsonRpcFetchFunc = null; @@ -172438,15 +229805,15 @@ ${bz(e, r10)}`); } else if (provider.send) { jsonRpcFetchFunc = buildWeb3LegacyFetcher(provider, provider.send.bind(provider)); } else { - logger38.throwArgumentError("unsupported provider", "provider", provider); + logger34.throwArgumentError("unsupported provider", "provider", provider); } if (!path) { path = "unknown:"; } } super(path, network3); - defineReadOnly(this, "jsonRpcFetchFunc", jsonRpcFetchFunc); - defineReadOnly(this, "provider", subprovider); + (0, import_properties27.defineReadOnly)(this, "jsonRpcFetchFunc", jsonRpcFetchFunc); + (0, import_properties27.defineReadOnly)(this, "provider", subprovider); } send(method, params) { return this.jsonRpcFetchFunc(method, params); @@ -172454,8 +229821,8 @@ ${bz(e, r10)}`); }; // node_modules/@ethersproject/providers/lib.esm/index.js - var import_logger40 = __toESM(require_lib()); - var logger39 = new import_logger40.Logger(version20); + var import_logger36 = __toESM(require_lib()); + var logger35 = new import_logger36.Logger(version16); function getDefaultProvider(network3, options) { if (network3 == null) { network3 = "homestead"; @@ -172471,13 +229838,13 @@ ${bz(e, r10)}`); case "wss": return new WebSocketProvider(network3); default: - logger39.throwArgumentError("unsupported URL scheme", "network", network3); + logger35.throwArgumentError("unsupported URL scheme", "network", network3); } } } const n = getNetwork(network3); if (!n || !n._defaultProvider) { - logger39.throwError("unsupported getDefaultProvider network", import_logger40.Logger.errors.NETWORK_ERROR, { + logger35.throwError("unsupported getDefaultProvider network", import_logger36.Logger.errors.NETWORK_ERROR, { operation: "getDefaultProvider", network: network3 }); @@ -172511,9 +229878,9 @@ ${bz(e, r10)}`); Indexed: () => Indexed, Interface: () => Interface, LogDescription: () => LogDescription, - Logger: () => import_logger43.Logger, + Logger: () => import_logger39.Logger, ParamType: () => ParamType, - RLP: () => lib_exports, + RLP: () => RLP2, SigningKey: () => SigningKey, SupportedAlgorithm: () => SupportedAlgorithm, TransactionDescription: () => TransactionDescription, @@ -172525,20 +229892,20 @@ ${bz(e, r10)}`); _fetchData: () => _fetchData, _toEscapedUtf8String: () => import_strings13._toEscapedUtf8String, accessListify: () => accessListify, - arrayify: () => import_bytes36.arrayify, + arrayify: () => import_bytes33.arrayify, base58: () => Base58, - base64: () => lib_exports2, - checkProperties: () => checkProperties, + base64: () => lib_exports, + checkProperties: () => import_properties28.checkProperties, checkResultErrors: () => checkResultErrors, commify: () => commify, computeAddress: () => computeAddress, computeHmac: () => computeHmac, computePublicKey: () => computePublicKey, - concat: () => import_bytes36.concat, - deepCopy: () => deepCopy, + concat: () => import_bytes33.concat, + deepCopy: () => import_properties28.deepCopy, defaultAbiCoder: () => defaultAbiCoder, defaultPath: () => defaultPath, - defineReadOnly: () => defineReadOnly, + defineReadOnly: () => import_properties28.defineReadOnly, dnsEncode: () => dnsEncode, entropyToMnemonic: () => entropyToMnemonic, fetchJson: () => fetchJson, @@ -172546,29 +229913,29 @@ ${bz(e, r10)}`); formatEther: () => formatEther, formatUnits: () => formatUnits, getAccountPath: () => getAccountPath, - getAddress: () => getAddress, - getContractAddress: () => getContractAddress, - getCreate2Address: () => getCreate2Address, - getIcapAddress: () => getIcapAddress, + getAddress: () => import_address12.getAddress, + getContractAddress: () => import_address12.getContractAddress, + getCreate2Address: () => import_address12.getCreate2Address, + getIcapAddress: () => import_address12.getIcapAddress, getJsonWalletAddress: () => getJsonWalletAddress, - getStatic: () => getStatic, + getStatic: () => import_properties28.getStatic, hashMessage: () => hashMessage, - hexConcat: () => import_bytes36.hexConcat, - hexDataLength: () => import_bytes36.hexDataLength, - hexDataSlice: () => import_bytes36.hexDataSlice, - hexStripZeros: () => import_bytes36.hexStripZeros, - hexValue: () => import_bytes36.hexValue, - hexZeroPad: () => import_bytes36.hexZeroPad, - hexlify: () => import_bytes36.hexlify, + hexConcat: () => import_bytes33.hexConcat, + hexDataLength: () => import_bytes33.hexDataLength, + hexDataSlice: () => import_bytes33.hexDataSlice, + hexStripZeros: () => import_bytes33.hexStripZeros, + hexValue: () => import_bytes33.hexValue, + hexZeroPad: () => import_bytes33.hexZeroPad, + hexlify: () => import_bytes33.hexlify, id: () => id2, - isAddress: () => isAddress, - isBytes: () => import_bytes36.isBytes, - isBytesLike: () => import_bytes36.isBytesLike, - isHexString: () => import_bytes36.isHexString, + isAddress: () => import_address12.isAddress, + isBytes: () => import_bytes33.isBytes, + isBytesLike: () => import_bytes33.isBytesLike, + isHexString: () => import_bytes33.isHexString, isValidMnemonic: () => isValidMnemonic, isValidName: () => isValidName, - joinSignature: () => import_bytes36.joinSignature, - keccak256: () => keccak256, + joinSignature: () => import_bytes33.joinSignature, + keccak256: () => import_keccak25611.keccak256, mnemonicToEntropy: () => mnemonicToEntropy, mnemonicToSeed: () => mnemonicToSeed, namehash: () => namehash, @@ -172581,84 +229948,87 @@ ${bz(e, r10)}`); randomBytes: () => randomBytes, recoverAddress: () => recoverAddress, recoverPublicKey: () => recoverPublicKey, - resolveProperties: () => resolveProperties, + resolveProperties: () => import_properties28.resolveProperties, ripemd160: () => ripemd160, serializeTransaction: () => serialize, sha256: () => sha256, sha512: () => sha512, - shallowCopy: () => shallowCopy, + shallowCopy: () => import_properties28.shallowCopy, shuffled: () => shuffled, - solidityKeccak256: () => keccak2562, + solidityKeccak256: () => keccak25610, solidityPack: () => pack2, soliditySha256: () => sha2562, - splitSignature: () => import_bytes36.splitSignature, - stripZeros: () => import_bytes36.stripZeros, + splitSignature: () => import_bytes33.splitSignature, + stripZeros: () => import_bytes33.stripZeros, toUtf8Bytes: () => import_strings13.toUtf8Bytes, toUtf8CodePoints: () => import_strings13.toUtf8CodePoints, toUtf8String: () => import_strings13.toUtf8String, verifyMessage: () => verifyMessage, verifyTypedData: () => verifyTypedData, - zeroPad: () => import_bytes36.zeroPad + zeroPad: () => import_bytes33.zeroPad }); - var import_bytes36 = __toESM(require_lib2()); - var import_logger43 = __toESM(require_lib()); + var import_address12 = __toESM(require_lib10()); + var import_bytes33 = __toESM(require_lib2()); + var import_keccak25611 = __toESM(require_lib8()); + var import_logger39 = __toESM(require_lib()); // node_modules/@ethersproject/solidity/lib.esm/index.js - var import_bignumber16 = __toESM(require_lib3()); - var import_bytes35 = __toESM(require_lib2()); + var import_bignumber15 = __toESM(require_lib3()); + var import_bytes32 = __toESM(require_lib2()); + var import_keccak25610 = __toESM(require_lib8()); var import_strings12 = __toESM(require_lib6()); - var import_logger41 = __toESM(require_lib()); + var import_logger37 = __toESM(require_lib()); // node_modules/@ethersproject/solidity/lib.esm/_version.js - var version21 = "solidity/5.7.0"; + var version17 = "solidity/5.7.0"; // node_modules/@ethersproject/solidity/lib.esm/index.js var regexBytes = new RegExp("^bytes([0-9]+)$"); var regexNumber = new RegExp("^(u?int)([0-9]*)$"); var regexArray = new RegExp("^(.*)\\[([0-9]*)\\]$"); var Zeros2 = "0000000000000000000000000000000000000000000000000000000000000000"; - var logger40 = new import_logger41.Logger(version21); + var logger36 = new import_logger37.Logger(version17); function _pack(type, value, isArray4) { switch (type) { case "address": if (isArray4) { - return (0, import_bytes35.zeroPad)(value, 32); + return (0, import_bytes32.zeroPad)(value, 32); } - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); case "string": return (0, import_strings12.toUtf8Bytes)(value); case "bytes": - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); case "bool": value = value ? "0x01" : "0x00"; if (isArray4) { - return (0, import_bytes35.zeroPad)(value, 32); + return (0, import_bytes32.zeroPad)(value, 32); } - return (0, import_bytes35.arrayify)(value); + return (0, import_bytes32.arrayify)(value); } let match = type.match(regexNumber); if (match) { let size = parseInt(match[2] || "256"); if (match[2] && String(size) !== match[2] || size % 8 !== 0 || size === 0 || size > 256) { - logger40.throwArgumentError("invalid number type", "type", type); + logger36.throwArgumentError("invalid number type", "type", type); } if (isArray4) { size = 256; } - value = import_bignumber16.BigNumber.from(value).toTwos(size); - return (0, import_bytes35.zeroPad)(value, size / 8); + value = import_bignumber15.BigNumber.from(value).toTwos(size); + return (0, import_bytes32.zeroPad)(value, size / 8); } match = type.match(regexBytes); if (match) { const size = parseInt(match[1]); if (String(size) !== match[1] || size === 0 || size > 32) { - logger40.throwArgumentError("invalid bytes type", "type", type); + logger36.throwArgumentError("invalid bytes type", "type", type); } - if ((0, import_bytes35.arrayify)(value).byteLength !== size) { - logger40.throwArgumentError(`invalid value for ${type}`, "value", value); + if ((0, import_bytes32.arrayify)(value).byteLength !== size) { + logger36.throwArgumentError(`invalid value for ${type}`, "value", value); } if (isArray4) { - return (0, import_bytes35.arrayify)((value + Zeros2).substring(0, 66)); + return (0, import_bytes32.arrayify)((value + Zeros2).substring(0, 66)); } return value; } @@ -172667,45 +230037,47 @@ ${bz(e, r10)}`); const baseType = match[1]; const count = parseInt(match[2] || String(value.length)); if (count != value.length) { - logger40.throwArgumentError(`invalid array length for ${type}`, "value", value); + logger36.throwArgumentError(`invalid array length for ${type}`, "value", value); } const result = []; value.forEach(function(value2) { result.push(_pack(baseType, value2, true)); }); - return (0, import_bytes35.concat)(result); + return (0, import_bytes32.concat)(result); } - return logger40.throwArgumentError("invalid type", "type", type); + return logger36.throwArgumentError("invalid type", "type", type); } function pack2(types2, values) { if (types2.length != values.length) { - logger40.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values); + logger36.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values); } const tight = []; types2.forEach(function(type, index) { tight.push(_pack(type, values[index])); }); - return (0, import_bytes35.hexlify)((0, import_bytes35.concat)(tight)); + return (0, import_bytes32.hexlify)((0, import_bytes32.concat)(tight)); } - function keccak2562(types2, values) { - return keccak256(pack2(types2, values)); + function keccak25610(types2, values) { + return (0, import_keccak25610.keccak256)(pack2(types2, values)); } function sha2562(types2, values) { return sha256(pack2(types2, values)); } // node_modules/ethers/lib.esm/utils.js + var import_properties28 = __toESM(require_lib7()); + var RLP2 = __toESM(require_lib9()); var import_strings13 = __toESM(require_lib6()); // node_modules/@ethersproject/units/lib.esm/index.js - var import_bignumber17 = __toESM(require_lib3()); - var import_logger42 = __toESM(require_lib()); + var import_bignumber16 = __toESM(require_lib3()); + var import_logger38 = __toESM(require_lib()); // node_modules/@ethersproject/units/lib.esm/_version.js - var version22 = "units/5.7.0"; + var version18 = "units/5.7.0"; // node_modules/@ethersproject/units/lib.esm/index.js - var logger41 = new import_logger42.Logger(version22); + var logger37 = new import_logger38.Logger(version18); var names = [ "wei", "kwei", @@ -172718,7 +230090,7 @@ ${bz(e, r10)}`); function commify(value) { const comps = String(value).split("."); if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || comps[1] && !comps[1].match(/^[0-9]*$/) || value === "." || value === "-.") { - logger41.throwArgumentError("invalid value", "value", value); + logger37.throwArgumentError("invalid value", "value", value); } let whole = comps[0]; let negative = ""; @@ -172759,11 +230131,11 @@ ${bz(e, r10)}`); unitName = 3 * index; } } - return (0, import_bignumber17.formatFixed)(value, unitName != null ? unitName : 18); + return (0, import_bignumber16.formatFixed)(value, unitName != null ? unitName : 18); } function parseUnits(value, unitName) { if (typeof value !== "string") { - logger41.throwArgumentError("value must be a string", "value", value); + logger37.throwArgumentError("value must be a string", "value", value); } if (typeof unitName === "string") { const index = names.indexOf(unitName); @@ -172771,7 +230143,7 @@ ${bz(e, r10)}`); unitName = 3 * index; } } - return (0, import_bignumber17.parseFixed)(value, unitName != null ? unitName : 18); + return (0, import_bignumber16.parseFixed)(value, unitName != null ? unitName : 18); } function formatEther(wei) { return formatUnits(wei, 18); @@ -172784,13 +230156,13 @@ ${bz(e, r10)}`); var import_strings14 = __toESM(require_lib6()); // node_modules/ethers/lib.esm/ethers.js - var import_logger44 = __toESM(require_lib()); + var import_logger40 = __toESM(require_lib()); // node_modules/ethers/lib.esm/_version.js - var version23 = "ethers/5.7.2"; + var version19 = "ethers/5.7.2"; // node_modules/ethers/lib.esm/ethers.js - var logger42 = new import_logger44.Logger(version23); + var logger38 = new import_logger40.Logger(version19); // node_modules/ethers/lib.esm/index.js try { @@ -174842,7 +232214,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { var outputAmount = inputAmount.toLocaleString("en", { useGrouping: false, minimumFractionDigits: decimals, maximumFractionDigits: decimals }); return outputAmount.startsWith("0.") ? outputAmount.replace("0.", "") : outputAmount.replace(".", ""); }; - var calculateAmount = ({ decimals, amount }) => import_bignumber18.BigNumber.from(transformAmount(decimals, assertAmount(amount))).toString(); + var calculateAmount = ({ decimals, amount }) => import_bignumber17.BigNumber.from(transformAmount(decimals, assertAmount(amount))).toString(); var calculateAmountWithPercentage = ({ amount: oldAmount, decimals }, percentage) => { if (!oldAmount) { return "0"; @@ -175752,7 +233124,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { name: "REEF", address: "0x0000000000000000000000000000000001000000", iconUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/6951.png", - balance: import_bignumber18.BigNumber.from(0), + balance: import_bignumber17.BigNumber.from(0), decimals: 18, symbol: "REEF" }; @@ -175796,14 +233168,6 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { throw new Error("Unknown address"); } }; - var approveTokenAmount = async (tokenAddress, sellAmount, routerAddress, signer) => { - const tokenContract = await getREEF20Contract(tokenAddress, signer); - if (tokenContract) { - await tokenContract.approve(routerAddress, sellAmount); - return; - } - throw new Error(`Token contract does not exist addr=${tokenAddress}`); - }; var fetchTokenData = (httpClient, searchAddress, provider, factoryAddress, reefPrice) => firstValueFrom( F7e.queryGql$( httpClient, @@ -175845,6 +233209,8 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { }; // src/jsApi/swapApi.ts + var import_evm_provider = __toESM(require_evm_provider()); + var import_utils4 = __toESM(require_utils3()); var defaultSwapSettings = { deadline: 1, slippageTolerance: 0.8 @@ -175853,6 +233219,73 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { deadline: Number.isNaN(deadline) ? defaultSwapSettings.deadline : deadline, slippageTolerance: Number.isNaN(slippageTolerance) ? defaultSwapSettings.slippageTolerance : slippageTolerance }); + var hexToAscii = (str1) => { + const hex8 = str1.toString(); + let str2 = ""; + for (let n = 0; n < hex8.length; n += 2) { + str2 += String.fromCharCode(parseInt(hex8.substr(n, 2), 16)); + } + return str2; + }; + var captureError2 = (events) => { + for (const event of events) { + const eventCompression = `${event.event.section.toString()}.${event.event.method.toString()}`; + if (eventCompression === "evm.ExecutedFailed") { + const eventData = event.event.data.toJSON(); + let message = eventData[eventData.length - 2]; + if (typeof message === "string" || message instanceof String) { + message = hexToAscii(message.substring(138)); + } else { + message = JSON.stringify(message); + } + return message; + } + } + return void 0; + }; + var getReefCoinBalance = async (address, provider) => { + const balance = await provider.api.derive.balances.all(address).then((res) => import_bignumber17.BigNumber.from(res.freeBalance.toString(10))); + return balance; + }; + var signerToReefSigner = async (signer, provider, { + address, + name: name6, + source, + genesisHash + }) => { + const evmAddress = await signer.getAddress(); + const isEvmClaimed = await signer.isClaimed(); + let inj; + try { + inj = await V7e.web3FromAddress(address); + } catch (e) { + } + const balance = await getReefCoinBalance(address, provider); + return { + signer, + balance, + evmAddress, + isEvmClaimed, + name: name6, + address, + source, + genesisHash, + sign: inj?.signer + }; + }; + var accountToSigner = async (account, provider, sign4, source) => { + const signer = new import_evm_provider.Signer(provider, account.address, sign4); + return signerToReefSigner( + signer, + provider, + { + source, + address: account.address, + name: account.name || "", + genesisHash: account.genesisHash || "" + } + ); + }; var initApi3 = (signingKey) => { window.swap = { execute: (signerAddress, token1, token2, settings) => { @@ -175875,7 +233308,7 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { { decimals: token2.decimals, amount: token2.amount }, settings.slippageTolerance ); - const signer = await c9e(reefSigner.address, provider, signingKey); + const { signer } = await accountToSigner(reefSigner, provider, signingKey, "injected"); const swapRouter = new Contract( x7e.getReefswapNetworkConfig(network3).routerAddress, ReefswapRouter, @@ -175883,27 +233316,61 @@ query FETCH_NFT_INFO($nftId: BigInt!,$ownerAddress: String!) { ); try { observer.next({ status: "approve-started" }); - await approveTokenAmount( - token1.address, - sellAmount, + const tokenContract = await getREEF20Contract(token1.address, signer); + let approveTransaction = await tokenContract.populateTransaction.approve( x7e.getReefswapNetworkConfig(network3).routerAddress, - signer + sellAmount ); observer.next({ status: "approved" }); - console.log("Token approved"); - console.log("Waiting for confirmation of swap..."); - const tx2 = await swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens( + const tradeTransaction = await swapRouter.populateTransaction.swapExactTokensForTokensSupportingFeeOnTransferTokens( sellAmount, minBuyAmount, [token1.address, token2.address], reefSigner.evmAddress, calculateDeadline(settings.deadline) ); - observer.next({ status: "broadcast", transactionResponse: tx2 }); - const receipt = await tx2.wait(); - console.log("SWAP RESULT=", receipt); - observer.next({ status: "included-in-block", transactionReceipt: receipt }); - observer.next({ status: "finalized", transactionReceipt: receipt }); + const approveResources = await signer.provider.estimateResources(approveTransaction); + const approveExtrinsic = signer.provider.api.tx.evm.call( + approveTransaction.to, + approveTransaction.data, + (0, import_utils4.toBN)(approveTransaction.value || 0), + (0, import_utils4.toBN)(approveResources.gas), + approveResources.storage.lt(0) ? (0, import_utils4.toBN)(0) : (0, import_utils4.toBN)(approveResources.storage) + ); + const tradeExtrinsic = signer.provider.api.tx.evm.call( + tradeTransaction.to, + tradeTransaction.data, + (0, import_utils4.toBN)(tradeTransaction.value || 0), + (0, import_utils4.toBN)(582938 * 2), + (0, import_utils4.toBN)(64 * 2) + ); + const batch = signer.provider.api.tx.utility.batchAll([ + approveExtrinsic, + tradeExtrinsic + ]); + const signAndSend = new Promise((resolve, reject) => { + batch.signAndSend( + reefSigner.address, + { signer: signer.signingKey }, + (status) => { + const err = captureError2(status.events); + if (err) { + reject({ message: err }); + } + if (status.dispatchError) { + reject({ message: status.dispatchError.toString() }); + } + if (status.status.isInBlock) { + resolve(); + } + if (status.status.isFinalized) { + } + } + ); + }); + await signAndSend; + observer.next({ status: "included-in-block", transactionReceipt: "receipt" }); + observer.next({ status: "finalized", transactionReceipt: "receipt" }); observer.complete(); } catch (e) { console.log("ERROR swapping tokens", e.message); @@ -176006,12 +233473,12 @@ query FETCH_TX_INFO { var tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: "; var BASE = 1e14; var LOG_BASE = 14; - var MAX_SAFE_INTEGER2 = 9007199254740991; + var MAX_SAFE_INTEGER = 9007199254740991; var POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13]; var SQRT_BASE = 1e7; var MAX = 1e9; function clone(configObject) { - var div, convertBase, parseNumeric, P = BigNumber19.prototype = { constructor: BigNumber19, toString: null, valueOf: null }, ONE = new BigNumber19(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT2 = { + var div, convertBase, parseNumeric, P = BigNumber18.prototype = { constructor: BigNumber18, toString: null, valueOf: null }, ONE = new BigNumber18(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT2 = { prefix: "", groupSize: 3, secondaryGroupSize: 0, @@ -176021,10 +233488,10 @@ query FETCH_TX_INFO { fractionGroupSeparator: "\xA0", suffix: "" }, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true; - function BigNumber19(v, b) { + function BigNumber18(v, b) { var alphabet4, c, caseChanged, e, i, isNum, len, str2, x = this; - if (!(x instanceof BigNumber19)) - return new BigNumber19(v, b); + if (!(x instanceof BigNumber18)) + return new BigNumber18(v, b); if (b == null) { if (v && v._isBigNumber === true) { x.s = v.s; @@ -176070,7 +233537,7 @@ query FETCH_TX_INFO { } else { intCheck(b, 2, ALPHABET.length, "Base"); if (b == 10 && alphabetHasNormalDecimalDigits) { - x = new BigNumber19(v); + x = new BigNumber18(v); return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); } str2 = String(v); @@ -176078,7 +233545,7 @@ query FETCH_TX_INFO { if (v * 0 != 0) return parseNumeric(x, str2, isNum, b); x.s = 1 / v < 0 ? (str2 = str2.slice(1), -1) : 1; - if (BigNumber19.DEBUG && str2.replace(/^0\.0*|\./, "").length > 15) { + if (BigNumber18.DEBUG && str2.replace(/^0\.0*|\./, "").length > 15) { throw Error(tooManyDigits + v); } } else { @@ -176117,7 +233584,7 @@ query FETCH_TX_INFO { ; if (str2 = str2.slice(i, ++len)) { len -= i; - if (isNum && BigNumber19.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER2 || v !== mathfloor(v))) { + if (isNum && BigNumber18.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER || v !== mathfloor(v))) { throw Error(tooManyDigits + x.s * v); } if ((e = e - i - 1) > MAX_EXP) { @@ -176148,18 +233615,18 @@ query FETCH_TX_INFO { x.c = [x.e = 0]; } } - BigNumber19.clone = clone; - BigNumber19.ROUND_UP = 0; - BigNumber19.ROUND_DOWN = 1; - BigNumber19.ROUND_CEIL = 2; - BigNumber19.ROUND_FLOOR = 3; - BigNumber19.ROUND_HALF_UP = 4; - BigNumber19.ROUND_HALF_DOWN = 5; - BigNumber19.ROUND_HALF_EVEN = 6; - BigNumber19.ROUND_HALF_CEIL = 7; - BigNumber19.ROUND_HALF_FLOOR = 8; - BigNumber19.EUCLID = 9; - BigNumber19.config = BigNumber19.set = function(obj) { + BigNumber18.clone = clone; + BigNumber18.ROUND_UP = 0; + BigNumber18.ROUND_DOWN = 1; + BigNumber18.ROUND_CEIL = 2; + BigNumber18.ROUND_FLOOR = 3; + BigNumber18.ROUND_HALF_UP = 4; + BigNumber18.ROUND_HALF_DOWN = 5; + BigNumber18.ROUND_HALF_EVEN = 6; + BigNumber18.ROUND_HALF_CEIL = 7; + BigNumber18.ROUND_HALF_FLOOR = 8; + BigNumber18.EUCLID = 9; + BigNumber18.config = BigNumber18.set = function(obj) { var p, v; if (obj != null) { if (typeof obj == "object") { @@ -176260,10 +233727,10 @@ query FETCH_TX_INFO { ALPHABET }; }; - BigNumber19.isBigNumber = function(v) { + BigNumber18.isBigNumber = function(v) { if (!v || v._isBigNumber !== true) return false; - if (!BigNumber19.DEBUG) + if (!BigNumber18.DEBUG) return true; var i, n, c = v.c, e = v.e, s = v.s; out: @@ -176292,13 +233759,13 @@ query FETCH_TX_INFO { } throw Error(bignumberError + "Invalid BigNumber: " + v); }; - BigNumber19.maximum = BigNumber19.max = function() { + BigNumber18.maximum = BigNumber18.max = function() { return maxOrMin(arguments, -1); }; - BigNumber19.minimum = BigNumber19.min = function() { + BigNumber18.minimum = BigNumber18.min = function() { return maxOrMin(arguments, 1); }; - BigNumber19.random = function() { + BigNumber18.random = function() { var pow2_53 = 9007199254740992; var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() { return mathfloor(Math.random() * pow2_53); @@ -176306,7 +233773,7 @@ query FETCH_TX_INFO { return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0); }; return function(dp2) { - var a, b, e, k, v, i = 0, c = [], rand2 = new BigNumber19(ONE); + var a, b, e, k, v, i = 0, c = [], rand2 = new BigNumber18(ONE); if (dp2 == null) dp2 = DECIMAL_PLACES; else @@ -176374,8 +233841,8 @@ query FETCH_TX_INFO { return rand2; }; }(); - BigNumber19.sum = function() { - var i = 1, args = arguments, sum = new BigNumber19(args[0]); + BigNumber18.sum = function() { + var i = 1, args = arguments, sum = new BigNumber18(args[0]); for (; i < args.length; ) sum = sum.plus(args[i++]); return sum; @@ -176405,7 +233872,7 @@ query FETCH_TX_INFO { k = POW_PRECISION; POW_PRECISION = 0; str2 = str2.replace(".", ""); - y = new BigNumber19(baseIn); + y = new BigNumber18(baseIn); x = y.pow(str2.length - i); POW_PRECISION = k; y.c = toBaseOut( @@ -176502,11 +233969,11 @@ query FETCH_TX_INFO { return function(x, y, dp2, rm2, base2) { var cmp, e, i, more, n, prod, prodL, q, qc2, rem, remL, rem0, xi2, xL2, yc0, yL2, yz2, s = x.s == y.s ? 1 : -1, xc2 = x.c, yc2 = y.c; if (!xc2 || !xc2[0] || !yc2 || !yc2[0]) { - return new BigNumber19( + return new BigNumber18( !x.s || !y.s || (xc2 ? yc2 && xc2[0] == yc2[0] : !yc2) ? NaN : xc2 && xc2[0] == 0 || !yc2 ? s * 0 : s / 0 ); } - q = new BigNumber19(s); + q = new BigNumber18(s); qc2 = q.c = []; e = x.e - y.e; s = dp2 + e + 1; @@ -176623,7 +234090,7 @@ query FETCH_TX_INFO { str2 = coeffToString(n.c); str2 = id4 == 1 || id4 == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) ? toExponential(str2, ne) : toFixedPoint(str2, ne, "0"); } else { - n = round(new BigNumber19(n), i, rm2); + n = round(new BigNumber18(n), i, rm2); e = n.e; str2 = coeffToString(n.c); len = str2.length; @@ -176652,9 +234119,9 @@ query FETCH_TX_INFO { return n.s < 0 && c02 ? "-" + str2 : str2; } function maxOrMin(args, n) { - var k, y, i = 1, x = new BigNumber19(args[0]); + var k, y, i = 1, x = new BigNumber18(args[0]); for (; i < args.length; i++) { - y = new BigNumber19(args[i]); + y = new BigNumber18(args[i]); if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) { x = y; } @@ -176694,9 +234161,9 @@ query FETCH_TX_INFO { s = s.replace(dotAfter, "$1").replace(dotBefore, "0.$1"); } if (str2 != s) - return new BigNumber19(s, base2); + return new BigNumber18(s, base2); } - if (BigNumber19.DEBUG) { + if (BigNumber18.DEBUG) { throw Error(bignumberError + "Not a" + (b ? " base " + b : "") + " number: " + str2); } x.s = null; @@ -176803,13 +234270,13 @@ query FETCH_TX_INFO { return n.s < 0 ? "-" + str2 : str2; } P.absoluteValue = P.abs = function() { - var x = new BigNumber19(this); + var x = new BigNumber18(this); if (x.s < 0) x.s = 1; return x; }; P.comparedTo = function(y, b) { - return compare(this, new BigNumber19(y, b)); + return compare(this, new BigNumber18(y, b)); }; P.decimalPlaces = P.dp = function(dp2, rm2) { var c, n, v, x = this; @@ -176819,7 +234286,7 @@ query FETCH_TX_INFO { rm2 = ROUNDING_MODE; else intCheck(rm2, 0, 8); - return round(new BigNumber19(x), dp2 + x.e + 1, rm2); + return round(new BigNumber18(x), dp2 + x.e + 1, rm2); } if (!(c = x.c)) return null; @@ -176832,28 +234299,28 @@ query FETCH_TX_INFO { return n; }; P.dividedBy = P.div = function(y, b) { - return div(this, new BigNumber19(y, b), DECIMAL_PLACES, ROUNDING_MODE); + return div(this, new BigNumber18(y, b), DECIMAL_PLACES, ROUNDING_MODE); }; P.dividedToIntegerBy = P.idiv = function(y, b) { - return div(this, new BigNumber19(y, b), 0, 1); + return div(this, new BigNumber18(y, b), 0, 1); }; P.exponentiatedBy = P.pow = function(n, m) { var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y, x = this; - n = new BigNumber19(n); + n = new BigNumber18(n); if (n.c && !n.isInteger()) { throw Error(bignumberError + "Exponent not an integer: " + valueOf(n)); } if (m != null) - m = new BigNumber19(m); + m = new BigNumber18(m); nIsBig = n.e > 14; if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { - y = new BigNumber19(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); + y = new BigNumber18(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); return m ? y.mod(m) : y; } nIsNeg = n.s < 0; if (m) { if (m.c ? !m.c[0] : !m.s) - return new BigNumber19(NaN); + return new BigNumber18(NaN); isModExp = !nIsNeg && x.isInteger() && m.isInteger(); if (isModExp) x = x.mod(m); @@ -176861,12 +234328,12 @@ query FETCH_TX_INFO { k = x.s < 0 && isOdd(n) ? -0 : 0; if (x.e > -1) k = 1 / k; - return new BigNumber19(nIsNeg ? 1 / k : k); + return new BigNumber18(nIsNeg ? 1 / k : k); } else if (POW_PRECISION) { k = mathceil(POW_PRECISION / LOG_BASE + 2); } if (nIsBig) { - half = new BigNumber19(0.5); + half = new BigNumber18(0.5); if (nIsNeg) n.s = 1; nIsOdd = isOdd(n); @@ -176874,7 +234341,7 @@ query FETCH_TX_INFO { i = Math.abs(+valueOf(n)); nIsOdd = i % 2; } - y = new BigNumber19(ONE); + y = new BigNumber18(ONE); for (; ; ) { if (nIsOdd) { y = y.times(x); @@ -176919,7 +234386,7 @@ query FETCH_TX_INFO { return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; }; P.integerValue = function(rm2) { - var n = new BigNumber19(this); + var n = new BigNumber18(this); if (rm2 == null) rm2 = ROUNDING_MODE; else @@ -176927,25 +234394,25 @@ query FETCH_TX_INFO { return round(n, n.e + 1, rm2); }; P.isEqualTo = P.eq = function(y, b) { - return compare(this, new BigNumber19(y, b)) === 0; + return compare(this, new BigNumber18(y, b)) === 0; }; P.isFinite = function() { return !!this.c; }; P.isGreaterThan = P.gt = function(y, b) { - return compare(this, new BigNumber19(y, b)) > 0; + return compare(this, new BigNumber18(y, b)) > 0; }; P.isGreaterThanOrEqualTo = P.gte = function(y, b) { - return (b = compare(this, new BigNumber19(y, b))) === 1 || b === 0; + return (b = compare(this, new BigNumber18(y, b))) === 1 || b === 0; }; P.isInteger = function() { return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; }; P.isLessThan = P.lt = function(y, b) { - return compare(this, new BigNumber19(y, b)) < 0; + return compare(this, new BigNumber18(y, b)) < 0; }; P.isLessThanOrEqualTo = P.lte = function(y, b) { - return (b = compare(this, new BigNumber19(y, b))) === -1 || b === 0; + return (b = compare(this, new BigNumber18(y, b))) === -1 || b === 0; }; P.isNaN = function() { return !this.s; @@ -176961,10 +234428,10 @@ query FETCH_TX_INFO { }; P.minus = function(y, b) { var i, j10, t, xLTy, x = this, a = x.s; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); b = y.s; if (!a || !b) - return new BigNumber19(NaN); + return new BigNumber18(NaN); if (a != b) { y.s = -b; return x.plus(y); @@ -176972,9 +234439,9 @@ query FETCH_TX_INFO { var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc2 = x.c, yc2 = y.c; if (!xe || !ye) { if (!xc2 || !yc2) - return xc2 ? (y.s = -b, y) : new BigNumber19(yc2 ? x : NaN); + return xc2 ? (y.s = -b, y) : new BigNumber18(yc2 ? x : NaN); if (!xc2[0] || !yc2[0]) { - return yc2[0] ? (y.s = -b, y) : new BigNumber19(xc2[0] ? x : ROUNDING_MODE == 3 ? -0 : 0); + return yc2[0] ? (y.s = -b, y) : new BigNumber18(xc2[0] ? x : ROUNDING_MODE == 3 ? -0 : 0); } } xe = bitFloor(xe); @@ -177032,11 +234499,11 @@ query FETCH_TX_INFO { }; P.modulo = P.mod = function(y, b) { var q, s, x = this; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); if (!x.c || !y.s || y.c && !y.c[0]) { - return new BigNumber19(NaN); + return new BigNumber18(NaN); } else if (!y.c || x.c && !x.c[0]) { - return new BigNumber19(x); + return new BigNumber18(x); } if (MODULO_MODE == 9) { s = y.s; @@ -177053,7 +234520,7 @@ query FETCH_TX_INFO { return y; }; P.multipliedBy = P.times = function(y, b) { - var c, e, i, j10, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc2, base2, sqrtBase, x = this, xc2 = x.c, yc2 = (y = new BigNumber19(y, b)).c; + var c, e, i, j10, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc2, base2, sqrtBase, x = this, xc2 = x.c, yc2 = (y = new BigNumber18(y, b)).c; if (!xc2 || !yc2 || !xc2[0] || !yc2[0]) { if (!x.s || !y.s || xc2 && !xc2[0] && !yc2 || yc2 && !yc2[0] && !xc2) { y.c = y.e = y.s = null; @@ -177106,16 +234573,16 @@ query FETCH_TX_INFO { return normalise(y, zc2, e); }; P.negated = function() { - var x = new BigNumber19(this); + var x = new BigNumber18(this); x.s = -x.s || null; return x; }; P.plus = function(y, b) { var t, x = this, a = x.s; - y = new BigNumber19(y, b); + y = new BigNumber18(y, b); b = y.s; if (!a || !b) - return new BigNumber19(NaN); + return new BigNumber18(NaN); if (a != b) { y.s = -b; return x.minus(y); @@ -177123,9 +234590,9 @@ query FETCH_TX_INFO { var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc2 = x.c, yc2 = y.c; if (!xe || !ye) { if (!xc2 || !yc2) - return new BigNumber19(a / 0); + return new BigNumber18(a / 0); if (!xc2[0] || !yc2[0]) - return yc2[0] ? y : new BigNumber19(xc2[0] ? x : a * 0); + return yc2[0] ? y : new BigNumber18(xc2[0] ? x : a * 0); } xe = bitFloor(xe); ye = bitFloor(ye); @@ -177169,7 +234636,7 @@ query FETCH_TX_INFO { rm2 = ROUNDING_MODE; else intCheck(rm2, 0, 8); - return round(new BigNumber19(x), sd2, rm2); + return round(new BigNumber18(x), sd2, rm2); } if (!(c = x.c)) return null; @@ -177186,13 +234653,13 @@ query FETCH_TX_INFO { return n; }; P.shiftedBy = function(k) { - intCheck(k, -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2); + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); return this.times("1e" + k); }; P.squareRoot = P.sqrt = function() { - var m, n, r10, rep2, t, x = this, c = x.c, s = x.s, e = x.e, dp2 = DECIMAL_PLACES + 4, half = new BigNumber19("0.5"); + var m, n, r10, rep2, t, x = this, c = x.c, s = x.s, e = x.e, dp2 = DECIMAL_PLACES + 4, half = new BigNumber18("0.5"); if (s !== 1 || !c || !c[0]) { - return new BigNumber19(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + return new BigNumber18(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); } s = Math.sqrt(+valueOf(x)); if (s == 0 || s == 1 / 0) { @@ -177207,9 +234674,9 @@ query FETCH_TX_INFO { n = s.toExponential(); n = n.slice(0, n.indexOf("e") + 1) + e; } - r10 = new BigNumber19(n); + r10 = new BigNumber18(n); } else { - r10 = new BigNumber19(s + ""); + r10 = new BigNumber18(s + ""); } if (r10.c[0]) { e = r10.e; @@ -177304,23 +234771,23 @@ query FETCH_TX_INFO { P.toFraction = function(md2) { var d, d02, d12, d22, e, exp, n, n02, n12, q, r10, s, x = this, xc2 = x.c; if (md2 != null) { - n = new BigNumber19(md2); + n = new BigNumber18(md2); if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { throw Error(bignumberError + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n)); } } if (!xc2) - return new BigNumber19(x); - d = new BigNumber19(ONE); - n12 = d02 = new BigNumber19(ONE); - d12 = n02 = new BigNumber19(ONE); + return new BigNumber18(x); + d = new BigNumber18(ONE); + n12 = d02 = new BigNumber18(ONE); + d12 = n02 = new BigNumber18(ONE); s = coeffToString(xc2); e = d.e = s.length - x.e - 1; d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; md2 = !md2 || n.comparedTo(d) > 0 ? e > 0 ? d : n12 : n; exp = MAX_EXP; MAX_EXP = 1 / 0; - n = new BigNumber19(s); + n = new BigNumber18(s); n02.c[0] = 0; for (; ; ) { q = div(n, d, 0, 1); @@ -177367,7 +234834,7 @@ query FETCH_TX_INFO { if (b == null) { str2 = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(coeffToString(n.c), e) : toFixedPoint(coeffToString(n.c), e, "0"); } else if (b === 10 && alphabetHasNormalDecimalDigits) { - n = round(new BigNumber19(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); + n = round(new BigNumber18(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); str2 = toFixedPoint(coeffToString(n.c), n.e, "0"); } else { intCheck(b, 2, ALPHABET.length, "Base"); @@ -177385,8 +234852,8 @@ query FETCH_TX_INFO { P[Symbol.toStringTag] = "BigNumber"; P[Symbol.for("nodejs.util.inspect.custom")] = P.valueOf; if (configObject != null) - BigNumber19.set(configObject); - return BigNumber19; + BigNumber18.set(configObject); + return BigNumber18; } function bitFloor(n) { var i = n | 0; @@ -177457,8 +234924,8 @@ query FETCH_TX_INFO { } return str2; } - var BigNumber18 = clone(); - var bignumber_default = BigNumber18; + var BigNumber17 = clone(); + var bignumber_default = BigNumber17; // src/jsApi/utils/networkUtils.ts var getDexUrl = (network3) => { @@ -178742,7 +236209,7 @@ query FETCH_TX_INFO { isNaN(maxSize) ? -1 : maxSize ]; } - function logger43(origin) { + function logger39(origin) { const type = `${origin.toUpperCase()}:`.padStart(16); const [isDebug, maxSize] = parseEnv(origin.toLowerCase()); return { @@ -178832,9 +236299,9 @@ query FETCH_TX_INFO { } // ../../node_modules/@polkadot/wasm-crypto/node_modules/@polkadot/wasm-crypto-wasm/bytes.js - var import_bytes37 = __toESM(require_bytes(), 1); - var bytes = import_bytes37.bytes; - var sizeUncompressed = import_bytes37.sizeUncompressed; + var import_bytes34 = __toESM(require_bytes(), 1); + var bytes = import_bytes34.bytes; + var sizeUncompressed = import_bytes34.sizeUncompressed; // ../../node_modules/@polkadot/wasm-crypto/node_modules/@polkadot/wasm-crypto-wasm/fflate.js var u82 = Uint8Array; @@ -179403,7 +236870,7 @@ query FETCH_TX_INFO { wasm2.ext_hmac_sha512(8, ...allocU8a(key2), ...allocU8a(data)); return resultU8a(); }); - var keccak2563 = withWasm((wasm2, data) => { + var keccak25612 = withWasm((wasm2, data) => { wasm2.ext_keccak256(8, ...allocU8a(data)); return resultU8a(); }); @@ -180625,11 +238092,11 @@ query FETCH_TX_INFO { } // node_modules/@polkadot/util-crypto/keccak/asU8a.js - var import_js_sha32 = __toESM(require_sha32(), 1); + var import_js_sha3 = __toESM(require_sha32(), 1); function keccakAsU8a(value, bitLength = 256, onlyJs) { const is256 = bitLength === 256; const u8a = u8aToU8a(value); - return isWasmOnly(onlyJs) ? is256 ? keccak2563(u8a) : keccak512(u8a) : new Uint8Array(is256 ? import_js_sha32.default.keccak256.update(u8a).arrayBuffer() : import_js_sha32.default.keccak512.update(u8a).arrayBuffer()); + return isWasmOnly(onlyJs) ? is256 ? keccak25612(u8a) : keccak512(u8a) : new Uint8Array(is256 ? import_js_sha3.default.keccak256.update(u8a).arrayBuffer() : import_js_sha3.default.keccak512.update(u8a).arrayBuffer()); } var keccak256AsU8a = createBitHasher(256, keccakAsU8a); var keccak512AsU8a = createBitHasher(512, keccakAsU8a); @@ -183062,7 +240529,7 @@ zoo`.split("\n"); } // node_modules/@polkadot/util-crypto/scrypt/encode.js - var import_scryptsy = __toESM(require_lib7(), 1); + var import_scryptsy = __toESM(require_lib12(), 1); // node_modules/@polkadot/util-crypto/scrypt/defaults.js var DEFAULT_PARAMS = { @@ -183813,9 +241280,9 @@ zoo`.split("\n"); var sanitizeMap = /* @__PURE__ */ new Map(); function sanitize(value) { const startValue = value.toString(); - const memoized = sanitizeMap.get(startValue); - if (memoized) { - return memoized; + const memoized2 = sanitizeMap.get(startValue); + if (memoized2) { + return memoized2; } let result = startValue; for (let i = 0, count = mappings.length; i < count; i++) { @@ -184630,7 +242097,7 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types-codec/base/Vec.js var MAX_LENGTH = 64 * 1024; - var l = logger43("Vec"); + var l = logger39("Vec"); function decodeVecLength(value) { if (Array.isArray(value)) { return [value, value.length, 0]; @@ -185065,7 +242532,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types-codec/extended/Map.js - var l10 = logger43("Map"); + var l10 = logger39("Map"); function decodeMapFromU8a(registry, KeyClass, ValClass, u8a) { const output4 = /* @__PURE__ */ new Map(); const [offset, count] = compactFromU8aLim(u8a); @@ -185204,7 +242671,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types-codec/extended/BTreeSet.js - var l11 = logger43("BTreeSet"); + var l11 = logger39("BTreeSet"); function decodeSetFromU8a(registry, ValClass, u8a) { const output4 = /* @__PURE__ */ new Set(); const [offset, count] = compactFromU8aLim(u8a); @@ -186578,8 +244045,8 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types-create/util/xcm.js var XCM_MAPPINGS = ["AssetInstance", "Fungibility", "Junction", "Junctions", "MultiAsset", "MultiAssetFilter", "MultiLocation", "Response", "WildFungibility", "WildMultiAsset", "Xcm", "XcmError", "XcmOrder"]; - function mapXcmTypes(version27) { - return XCM_MAPPINGS.reduce((all, key2) => objectSpread2(all, { [key2]: `${key2}${version27}` }), {}); + function mapXcmTypes(version23) { + return XCM_MAPPINGS.reduce((all, key2) => objectSpread2(all, { [key2]: `${key2}${version23}` }), {}); } // ../../node_modules/@polkadot/types-known/chain/index.js @@ -189552,7 +247019,7 @@ zoo`.split("\n"); // src/jsApi/background/Signer.ts var sendRequest; var nextId = 0; - var Signer2 = class { + var Signer5 = class { constructor(_sendRequest) { sendRequest = _sendRequest; } @@ -199760,7 +257227,7 @@ zoo`.split("\n"); }; // ../../node_modules/@polkadot/types/metadata/PortableRegistry/PortableRegistry.js - var l12 = logger43("PortableRegistry"); + var l12 = logger39("PortableRegistry"); var TYPE_UNWRAP = { toNumber: () => -1 }; var PRIMITIVE_ALIAS = { Char: "u32", @@ -200510,7 +257977,7 @@ zoo`.split("\n"); } // ../../node_modules/@polkadot/types/metadata/util/validateTypes.js - var l13 = logger43("metadata"); + var l13 = logger39("metadata"); function validateTypes(registry, throwError, types2) { const missing = flattenUniq(extractTypes(types2)).filter((type) => !registry.hasType(type) && !registry.isLookupType(type)).sort(); if (missing.length !== 0) { @@ -201912,9 +259379,11 @@ zoo`.split("\n"); var hmac2 = (hash8, key2, message) => new HMAC(hash8, key2).update(message).digest(); hmac2.create = (hash8, key2) => new HMAC(hash8, key2); - // ../../node_modules/@noble/curves/esm/abstract/utils.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/abstract/utils.js var utils_exports2 = {}; __export(utils_exports2, { + aInRange: () => aInRange, + abool: () => abool, abytes: () => abytes, bitGet: () => bitGet, bitLen: () => bitLen, @@ -201929,7 +259398,10 @@ zoo`.split("\n"); equalBytes: () => equalBytes, hexToBytes: () => hexToBytes, hexToNumber: () => hexToNumber, + inRange: () => inRange, isBytes: () => isBytes5, + memoized: () => memoized, + notImplemented: () => notImplemented, numberToBytesBE: () => numberToBytesBE, numberToBytesLE: () => numberToBytesLE, numberToHexUnpadded: () => numberToHexUnpadded, @@ -201947,6 +259419,10 @@ zoo`.split("\n"); if (!isBytes5(item)) throw new Error("Uint8Array expected"); } + function abool(title, value) { + if (typeof value !== "boolean") + throw new Error(`${title} must be valid boolean, got "${value}".`); + } var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0")); function bytesToHex(bytes5) { abytes(bytes5); @@ -202056,6 +259532,14 @@ zoo`.split("\n"); throw new Error(`utf8ToBytes expected string, got ${typeof str2}`); return new Uint8Array(new TextEncoder().encode(str2)); } + var isPosBig = (n) => typeof n === "bigint" && _0n <= n; + function inRange(n, min, max2) { + return isPosBig(n) && isPosBig(min) && isPosBig(max2) && min <= n && n < max2; + } + function aInRange(title, n, min, max2) { + if (!inRange(n, min, max2)) + throw new Error(`expected valid ${title}: ${min} <= n < ${max2}, got ${typeof n} ${n}`); + } function bitLen(n) { let len; for (len = 0; n > _0n; n >>= _1n, len += 1) @@ -202148,8 +259632,22 @@ zoo`.split("\n"); checkField(fieldName, type, true); return object; } + var notImplemented = () => { + throw new Error("not implemented"); + }; + function memoized(fn2) { + const map2 = /* @__PURE__ */ new WeakMap(); + return (arg, ...args) => { + const val = map2.get(arg); + if (val !== void 0) + return val; + const computed = fn2(arg, ...args); + map2.set(arg, computed); + return computed; + }; + } - // ../../node_modules/@noble/curves/esm/abstract/modular.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/abstract/modular.js var _0n2 = BigInt(0); var _1n2 = BigInt(1); var _2n2 = BigInt(2); @@ -202412,15 +259910,22 @@ zoo`.split("\n"); return isLE4 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen); } - // ../../node_modules/@noble/curves/esm/abstract/curve.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/abstract/curve.js var _0n3 = BigInt(0); var _1n3 = BigInt(1); + var pointPrecomputes = /* @__PURE__ */ new WeakMap(); + var pointWindowSizes = /* @__PURE__ */ new WeakMap(); function wNAF(c, bits2) { const constTimeNegate = (condition, item) => { const neg3 = item.negate(); return condition ? neg3 : item; }; + const validateW = (W) => { + if (!Number.isSafeInteger(W) || W <= 0 || W > bits2) + throw new Error(`Wrong window size=${W}, should be [1..${bits2}]`); + }; const opts = (W) => { + validateW(W); const windows = Math.ceil(bits2 / W) + 1; const windowSize = 2 ** (W - 1); return { windows, windowSize }; @@ -202481,16 +259986,20 @@ zoo`.split("\n"); } return { p, f: f10 }; }, - wNAFCached(P, precomputesMap, n, transform) { - const W = P._WINDOW_SIZE || 1; - let comp = precomputesMap.get(P); + wNAFCached(P, n, transform) { + const W = pointWindowSizes.get(P) || 1; + let comp = pointPrecomputes.get(P); if (!comp) { comp = this.precomputeWindow(P, W); - if (W !== 1) { - precomputesMap.set(P, transform(comp)); - } + if (W !== 1) + pointPrecomputes.set(P, transform(comp)); } return this.wNAF(W, comp, n); + }, + setWindowSize(P, W) { + validateW(W); + pointWindowSizes.set(P, W); + pointPrecomputes.delete(P); } }; } @@ -202512,7 +260021,13 @@ zoo`.split("\n"); }); } - // ../../node_modules/@noble/curves/esm/abstract/weierstrass.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/abstract/weierstrass.js + function validateSigVerOpts(opts) { + if (opts.lowS !== void 0) + abool("lowS", opts.lowS); + if (opts.prehash !== void 0) + abool("prehash", opts.prehash); + } function validatePointOpts(curve) { const opts = validateBasic(curve); validateObject(opts, { @@ -202616,14 +260131,10 @@ zoo`.split("\n"); if (!Fp3.eql(Fp3.sqr(CURVE2.Gy), weierstrassEquation(CURVE2.Gx))) throw new Error("bad generator point: equation left != right"); function isWithinCurveOrder2(num) { - return typeof num === "bigint" && _0n4 < num && num < CURVE2.n; - } - function assertGE(num) { - if (!isWithinCurveOrder2(num)) - throw new Error("Expected valid bigint: 0 < bigint < curve.n"); + return inRange(num, _1n4, CURVE2.n); } function normPrivateKeyToScalar(key2) { - const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n } = CURVE2; + const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N11 } = CURVE2; if (lengths && typeof key2 !== "bigint") { if (isBytes5(key2)) key2 = bytesToHex(key2); @@ -202638,15 +260149,47 @@ zoo`.split("\n"); throw new Error(`private key must be ${nByteLength} bytes, hex or bigint, not ${typeof key2}`); } if (wrapPrivateKey) - num = mod(num, n); - assertGE(num); + num = mod(num, N11); + aInRange("private key", num, _1n4, N11); return num; } - const pointPrecomputes2 = /* @__PURE__ */ new Map(); function assertPrjPoint(other) { if (!(other instanceof Point4)) throw new Error("ProjectivePoint expected"); } + const toAffineMemo = memoized((p, iz2) => { + const { px: x, py: y, pz: z } = p; + if (Fp3.eql(z, Fp3.ONE)) + return { x, y }; + const is0 = p.is0(); + if (iz2 == null) + iz2 = is0 ? Fp3.ONE : Fp3.inv(z); + const ax2 = Fp3.mul(x, iz2); + const ay2 = Fp3.mul(y, iz2); + const zz2 = Fp3.mul(z, iz2); + if (is0) + return { x: Fp3.ZERO, y: Fp3.ZERO }; + if (!Fp3.eql(zz2, Fp3.ONE)) + throw new Error("invZ was invalid"); + return { x: ax2, y: ay2 }; + }); + const assertValidMemo = memoized((p) => { + if (p.is0()) { + if (CURVE2.allowInfinityPoint && !Fp3.is0(p.py)) + return; + throw new Error("bad point: ZERO"); + } + const { x, y } = p.toAffine(); + if (!Fp3.isValid(x) || !Fp3.isValid(y)) + throw new Error("bad point: x or y not FE"); + const left = Fp3.sqr(y); + const right = weierstrassEquation(x); + if (!Fp3.eql(left, right)) + throw new Error("bad point: equation left != right"); + if (!p.isTorsionFree()) + throw new Error("bad point: not in prime-order subgroup"); + return true; + }); class Point4 { constructor(px2, py2, pz2) { this.px = px2; @@ -202658,6 +260201,7 @@ zoo`.split("\n"); throw new Error("y required"); if (pz2 == null || !Fp3.isValid(pz2)) throw new Error("z required"); + Object.freeze(this); } static fromAffine(p) { const { x, y } = p || {}; @@ -202689,24 +260233,10 @@ zoo`.split("\n"); return Point4.BASE.multiply(normPrivateKeyToScalar(privateKey)); } _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes2.delete(this); + wnaf.setWindowSize(this, windowSize); } assertValidity() { - if (this.is0()) { - if (CURVE2.allowInfinityPoint && !Fp3.is0(this.py)) - return; - throw new Error("bad point: ZERO"); - } - const { x, y } = this.toAffine(); - if (!Fp3.isValid(x) || !Fp3.isValid(y)) - throw new Error("bad point: x or y not FE"); - const left = Fp3.sqr(y); - const right = weierstrassEquation(x); - if (!Fp3.eql(left, right)) - throw new Error("bad point: equation left != right"); - if (!this.isTorsionFree()) - throw new Error("bad point: not in prime-order subgroup"); + assertValidMemo(this); } hasEvenY() { const { y } = this.toAffine(); @@ -202819,22 +260349,19 @@ zoo`.split("\n"); return this.equals(Point4.ZERO); } wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes2, n, (comp) => { - const toInv = Fp3.invertBatch(comp.map((p) => p.pz)); - return comp.map((p, i) => p.toAffine(toInv[i])).map(Point4.fromAffine); - }); + return wnaf.wNAFCached(this, n, Point4.normalizeZ); } - multiplyUnsafe(n) { + multiplyUnsafe(sc2) { + aInRange("scalar", sc2, _0n4, CURVE2.n); const I = Point4.ZERO; - if (n === _0n4) + if (sc2 === _0n4) return I; - assertGE(n); - if (n === _1n4) + if (sc2 === _1n4) return this; const { endo } = CURVE2; if (!endo) - return wnaf.unsafeLadder(this, n); - let { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(n); + return wnaf.unsafeLadder(this, sc2); + let { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(sc2); let k1p = I; let k2p = I; let d = this; @@ -202855,12 +260382,11 @@ zoo`.split("\n"); return k1p.add(k2p); } multiply(scalar) { - assertGE(scalar); - let n = scalar; + const { endo, n: N11 } = CURVE2; + aInRange("scalar", scalar, _1n4, N11); let point3, fake; - const { endo } = CURVE2; if (endo) { - const { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(n); + const { k1neg, k1: k12, k2neg, k2: k22 } = endo.splitScalar(scalar); let { p: k1p, f: f1p } = this.wNAF(k12); let { p: k2p, f: f2p } = this.wNAF(k22); k1p = wnaf.constTimeNegate(k1neg, k1p); @@ -202869,7 +260395,7 @@ zoo`.split("\n"); point3 = k1p.add(k2p); fake = f1p.add(f2p); } else { - const { p, f: f10 } = this.wNAF(n); + const { p, f: f10 } = this.wNAF(scalar); point3 = p; fake = f10; } @@ -202882,18 +260408,7 @@ zoo`.split("\n"); return sum.is0() ? void 0 : sum; } toAffine(iz2) { - const { px: x, py: y, pz: z } = this; - const is0 = this.is0(); - if (iz2 == null) - iz2 = is0 ? Fp3.ONE : Fp3.inv(z); - const ax2 = Fp3.mul(x, iz2); - const ay2 = Fp3.mul(y, iz2); - const zz2 = Fp3.mul(z, iz2); - if (is0) - return { x: Fp3.ZERO, y: Fp3.ZERO }; - if (!Fp3.eql(zz2, Fp3.ONE)) - throw new Error("invZ was invalid"); - return { x: ax2, y: ay2 }; + return toAffineMemo(this, iz2); } isTorsionFree() { const { h: cofactor, isTorsionFree } = CURVE2; @@ -202912,10 +260427,12 @@ zoo`.split("\n"); return this.multiplyUnsafe(CURVE2.h); } toRawBytes(isCompressed = true) { + abool("isCompressed", isCompressed); this.assertValidity(); return toBytes4(Point4, this, isCompressed); } toHex(isCompressed = true) { + abool("isCompressed", isCompressed); return bytesToHex(this.toRawBytes(isCompressed)); } } @@ -202949,9 +260466,6 @@ zoo`.split("\n"); const { Fp: Fp3, n: CURVE_ORDER } = CURVE2; const compressedLen = Fp3.BYTES + 1; const uncompressedLen = 2 * Fp3.BYTES + 1; - function isValidFieldElement2(num) { - return _0n4 < num && num < Fp3.ORDER; - } function modN(a) { return mod(a, CURVE_ORDER); } @@ -202964,6 +260478,7 @@ zoo`.split("\n"); const a = point3.toAffine(); const x = Fp3.toBytes(a.x); const cat = concatBytes2; + abool("isCompressed", isCompressed); if (isCompressed) { return cat(Uint8Array.from([point3.hasEvenY() ? 2 : 3]), x); } else { @@ -202976,7 +260491,7 @@ zoo`.split("\n"); const tail = bytes5.subarray(1); if (len === compressedLen && (head === 2 || head === 3)) { const x = bytesToNumberBE(tail); - if (!isValidFieldElement2(x)) + if (!inRange(x, _1n4, Fp3.ORDER)) throw new Error("Point is not on curve"); const y22 = weierstrassEquation(x); let y; @@ -203026,10 +260541,8 @@ zoo`.split("\n"); return new Signature3(r10, s); } assertValidity() { - if (!isWithinCurveOrder2(this.r)) - throw new Error("r must be 0 < r < CURVE.n"); - if (!isWithinCurveOrder2(this.s)) - throw new Error("s must be 0 < s < CURVE.n"); + aInRange("r", this.r, _1n4, CURVE_ORDER); + aInRange("s", this.s, _1n4, CURVE_ORDER); } addRecoveryBit(recovery) { return new Signature3(this.r, this.s, recovery); @@ -203125,10 +260638,7 @@ zoo`.split("\n"); }; const ORDER_MASK = bitMask(CURVE2.nBitLength); function int2octets2(num) { - if (typeof num !== "bigint") - throw new Error("bigint expected"); - if (!(_0n4 <= num && num < ORDER_MASK)) - throw new Error(`bigint expected < 2^${CURVE2.nBitLength}`); + aInRange(`num < 2^${CURVE2.nBitLength}`, num, _0n4, ORDER_MASK); return numberToBytesBE(num, CURVE2.nByteLength); } function prepSig(msgHash, privateKey, opts = defaultSigOpts) { @@ -203139,6 +260649,7 @@ zoo`.split("\n"); if (lowS == null) lowS = true; msgHash = ensureBytes("msgHash", msgHash); + validateSigVerOpts(opts); if (prehash) msgHash = ensureBytes("prehashed msgHash", hash8(msgHash)); const h1int = bits2int_modN(msgHash); @@ -203187,6 +260698,7 @@ zoo`.split("\n"); publicKey = ensureBytes("publicKey", publicKey); if ("strict" in opts) throw new Error("options.strict was renamed to lowS"); + validateSigVerOpts(opts); const { lowS, prehash } = opts; let _sig = void 0; let P; @@ -203238,7 +260750,7 @@ zoo`.split("\n"); }; } - // ../../node_modules/@noble/curves/esm/_shortw_utils.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/_shortw_utils.js function getHash(hash8) { return { hash: hash8, @@ -203251,7 +260763,7 @@ zoo`.split("\n"); return Object.freeze({ ...create(defHash), create }); } - // ../../node_modules/@noble/curves/esm/secp256k1.js + // ../../node_modules/@polkadot/util-crypto/node_modules/@noble/curves/esm/secp256k1.js var secp256k1P = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"); var secp256k1N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); var _1n5 = BigInt(1); @@ -203519,7 +261031,7 @@ zoo`.split("\n"); var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8); // ../../node_modules/@polkadot/util-crypto/keccak/asU8a.js - var keccakAsU8a2 = /* @__PURE__ */ createDualHasher({ 256: keccak2563, 512: keccak512 }, { 256: keccak_256, 512: keccak_512 }); + var keccakAsU8a2 = /* @__PURE__ */ createDualHasher({ 256: keccak25612, 512: keccak512 }, { 256: keccak_256, 512: keccak_512 }); // ../../node_modules/@polkadot/util-crypto/secp256k1/expand.js function secp256k1Expand3(publicKey, onlyJs) { @@ -203926,25 +261438,25 @@ zoo`.split("\n"); "ExtrinsicUnknown", "ExtrinsicV4" ]; - function newFromValue(registry, value, version27) { + function newFromValue(registry, value, version23) { if (value instanceof GenericExtrinsic) { return value.unwrap(); } - const isSigned = (version27 & BIT_SIGNED) === BIT_SIGNED; - const type = VERSIONS[version27 & UNMASK_VERSION] || VERSIONS[0]; - return registry.createTypeUnsafe(type, [value, { isSigned, version: version27 }]); + const isSigned = (version23 & BIT_SIGNED) === BIT_SIGNED; + const type = VERSIONS[version23 & UNMASK_VERSION] || VERSIONS[0]; + return registry.createTypeUnsafe(type, [value, { isSigned, version: version23 }]); } - function decodeExtrinsic(registry, value, version27 = DEFAULT_VERSION) { + function decodeExtrinsic(registry, value, version23 = DEFAULT_VERSION) { if (isU8a2(value) || Array.isArray(value) || isHex2(value)) { - return decodeU8a3(registry, u8aToU8a2(value), version27); + return decodeU8a3(registry, u8aToU8a2(value), version23); } else if (value instanceof registry.createClassUnsafe("Call")) { - return newFromValue(registry, { method: value }, version27); + return newFromValue(registry, { method: value }, version23); } - return newFromValue(registry, value, version27); + return newFromValue(registry, value, version23); } - function decodeU8a3(registry, value, version27) { + function decodeU8a3(registry, value, version23) { if (!value.length) { - return newFromValue(registry, new Uint8Array(), version27); + return newFromValue(registry, new Uint8Array(), version23); } const [offset, length] = compactFromU8a(value); const total = offset + length.toNumber(); @@ -204026,8 +261538,8 @@ zoo`.split("\n"); }; var GenericExtrinsic = class extends ExtrinsicBase { __internal__hashCache; - constructor(registry, value, { version: version27 } = {}) { - super(registry, decodeExtrinsic(registry, value, version27)); + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsic(registry, value, version23)); } get hash() { if (!this.__internal__hashCache) { @@ -204240,15 +261752,15 @@ zoo`.split("\n"); "ExtrinsicPayloadUnknown", "ExtrinsicPayloadV4" ]; - function decodeExtrinsicPayload(registry, value, version27 = DEFAULT_VERSION) { + function decodeExtrinsicPayload(registry, value, version23 = DEFAULT_VERSION) { if (value instanceof GenericExtrinsicPayload) { return value.unwrap(); } - return registry.createTypeUnsafe(VERSIONS2[version27] || VERSIONS2[0], [value, { version: version27 }]); + return registry.createTypeUnsafe(VERSIONS2[version23] || VERSIONS2[0], [value, { version: version23 }]); } var GenericExtrinsicPayload = class extends AbstractBase { - constructor(registry, value, { version: version27 } = {}) { - super(registry, decodeExtrinsicPayload(registry, value, version27)); + constructor(registry, value, { version: version23 } = {}) { + super(registry, decodeExtrinsicPayload(registry, value, version23)); } get blockHash() { return this.inner.blockHash; @@ -204305,17 +261817,17 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types/extrinsic/ExtrinsicPayloadUnknown.js var GenericExtrinsicPayloadUnknown = class extends Struct { - constructor(registry, _value, { version: version27 = 0 } = {}) { + constructor(registry, _value, { version: version23 = 0 } = {}) { super(registry, {}); - throw new Error(`Unsupported extrinsic payload version ${version27}`); + throw new Error(`Unsupported extrinsic payload version ${version23}`); } }; // ../../node_modules/@polkadot/types/extrinsic/ExtrinsicUnknown.js var GenericExtrinsicUnknown = class extends Struct { - constructor(registry, _value, { isSigned = false, version: version27 = 0 } = {}) { + constructor(registry, _value, { isSigned = false, version: version23 = 0 } = {}) { super(registry, {}); - throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version27 & UNMASK_VERSION}`); + throw new Error(`Unsupported ${isSigned ? "" : "un"}signed extrinsic version ${version23 & UNMASK_VERSION}`); } }; @@ -205776,14 +263288,14 @@ zoo`.split("\n"); prefix }]); } - function convertExtrinsic(registry, { signedExtensions, version: version27 }) { + function convertExtrinsic(registry, { signedExtensions, version: version23 }) { return registry.createTypeUnsafe("ExtrinsicMetadataV14", [{ signedExtensions: signedExtensions.map((identifier) => ({ identifier, type: 0 })), type: 0, - version: version27 + version: version23 }]); } function createPallet(specs, registry, mod3, { calls, constants: constants2, errors: errors2, events, storage }) { @@ -205870,22 +263382,22 @@ zoo`.split("\n"); metadata: "MetadataAll" }, value); } - __internal__assertVersion = (version27) => { - if (this.version > version27) { - throw new Error(`Cannot convert metadata from version ${this.version} to ${version27}`); + __internal__assertVersion = (version23) => { + if (this.version > version23) { + throw new Error(`Cannot convert metadata from version ${this.version} to ${version23}`); } - return this.version === version27; + return this.version === version23; }; - __internal__getVersion = (version27, fromPrev) => { - if (version27 !== "latest" && this.__internal__assertVersion(version27)) { - const asCurr = `asV${version27}`; + __internal__getVersion = (version23, fromPrev) => { + if (version23 !== "latest" && this.__internal__assertVersion(version23)) { + const asCurr = `asV${version23}`; return this.__internal__metadata()[asCurr]; } - if (!this.__internal__converted.has(version27)) { - const asPrev = version27 === "latest" ? `asV${LATEST_VERSION}` : `asV${version27 - 1}`; - this.__internal__converted.set(version27, fromPrev(this.registry, this[asPrev], this.version)); + if (!this.__internal__converted.has(version23)) { + const asPrev = version23 === "latest" ? `asV${LATEST_VERSION}` : `asV${version23 - 1}`; + this.__internal__converted.set(version23, fromPrev(this.registry, this[asPrev], this.version)); } - return this.__internal__converted.get(version27); + return this.__internal__converted.get(version23); }; __internal__metadata = () => { return this.getT("metadata"); @@ -205980,7 +263492,7 @@ zoo`.split("\n"); // ../../node_modules/@polkadot/types/create/registry.js var DEFAULT_FIRST_CALL_IDX = new Uint8Array(2); - var l14 = logger43("registry"); + var l14 = logger39("registry"); function sortDecimalStrings(a, b) { return parseInt(a, 10) - parseInt(b, 10); } @@ -206004,13 +263516,13 @@ zoo`.split("\n"); function getVariantStringIdx({ index }) { return index.toString(); } - function injectErrors(_, { lookup, pallets }, version27, result) { + function injectErrors(_, { lookup, pallets }, version23, result) { clearRecord(result); for (let i = 0, count = pallets.length; i < count; i++) { const { errors: errors2, index, name: name6 } = pallets[i]; if (errors2.isSome) { const sectionName = stringCamelCase(name6); - lazyMethod(result, version27 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, errors2.unwrap(), getVariantStringIdx, ({ docs, fields, index: index2, name: name7 }) => ({ + lazyMethod(result, version23 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, errors2.unwrap(), getVariantStringIdx, ({ docs, fields, index: index2, name: name7 }) => ({ args: getFieldArgs(lookup, fields), docs: docs.map(valueToString), fields, @@ -206022,12 +263534,12 @@ zoo`.split("\n"); } } } - function injectEvents(registry, { lookup, pallets }, version27, result) { + function injectEvents(registry, { lookup, pallets }, version23, result) { const filtered = pallets.filter(filterEventsSome); clearRecord(result); for (let i = 0, count = filtered.length; i < count; i++) { const { events, index, name: name6 } = filtered[i]; - lazyMethod(result, version27 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, events.unwrap(), getVariantStringIdx, (variant) => { + lazyMethod(result, version23 >= 12 ? index.toNumber() : i, () => lazyVariants(lookup, events.unwrap(), getVariantStringIdx, (variant) => { const meta2 = registry.createType("EventMetadataLatest", objectSpread2({}, variant, { args: getFieldArgs(lookup, variant.fields) })); return class extends GenericEventData { constructor(registry2, value) { @@ -206037,13 +263549,13 @@ zoo`.split("\n"); })); } } - function injectExtrinsics(registry, { lookup, pallets }, version27, result, mapping2) { + function injectExtrinsics(registry, { lookup, pallets }, version23, result, mapping2) { const filtered = pallets.filter(filterCallsSome); clearRecord(result); clearRecord(mapping2); for (let i = 0, count = filtered.length; i < count; i++) { const { calls, index, name: name6 } = filtered[i]; - const sectionIndex = version27 >= 12 ? index.toNumber() : i; + const sectionIndex = version23 >= 12 ? index.toNumber() : i; const sectionName = stringCamelCase(name6); const allCalls = calls.unwrap(); lazyMethod(result, sectionIndex, () => lazyVariants(lookup, allCalls, getVariantStringIdx, (variant) => createCallFunction(registry, lookup, variant, sectionName, sectionIndex))); @@ -206631,9 +264143,9 @@ zoo`.split("\n"); this.createFromUri(suri, meta2, type) ); } - createFromJson({ address, encoded, encoding: { content, type, version: version27 }, meta: meta2 }, ignoreChecksum) { - assert2(version27 !== "3" || content[0] === "pkcs8", () => `Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); - const cryptoType = version27 === "0" || !Array.isArray(content) ? this.type : content[1]; + createFromJson({ address, encoded, encoding: { content, type, version: version23 }, meta: meta2 }, ignoreChecksum) { + assert2(version23 !== "3" || content[0] === "pkcs8", () => `Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; const encType = !Array.isArray(type) ? [type] : type; assert2(["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType), () => `Unknown crypto type ${cryptoType}`); const publicKey = isHex(address) ? hexToU8a(address) : this.decodeAddress(address, ignoreChecksum); @@ -207965,12 +265477,12 @@ zoo`.split("\n"); if (256 % W) { throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2"); } - let precomputes = affinePoint && pointPrecomputes.get(affinePoint); + let precomputes = affinePoint && pointPrecomputes2.get(affinePoint); if (!precomputes) { precomputes = this.precomputeWindow(W); if (affinePoint && W !== 1) { precomputes = JacobianPoint.normalizeZ(precomputes); - pointPrecomputes.set(affinePoint, precomputes); + pointPrecomputes2.set(affinePoint, precomputes); } } let p = JacobianPoint.ZERO; @@ -208039,7 +265551,7 @@ zoo`.split("\n"); }; JacobianPoint.BASE = new JacobianPoint(CURVE.Gx, CURVE.Gy, _1n8); JacobianPoint.ZERO = new JacobianPoint(_0n8, _1n8, _0n8); - var pointPrecomputes = /* @__PURE__ */ new WeakMap(); + var pointPrecomputes2 = /* @__PURE__ */ new WeakMap(); var Point3 = class { constructor(x, y) { this.x = x; @@ -208047,7 +265559,7 @@ zoo`.split("\n"); } _setWindowSize(windowSize) { this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); + pointPrecomputes2.delete(this); } static fromCompressedHex(bytes5) { const isShort = bytes5.length === 32; @@ -211040,7 +268552,7 @@ zoo`.split("\n"); // node_modules/@polkadot/keyring/node_modules/@polkadot/util-crypto/keccak/asU8a.js var keccakAsU8a3 = createDualHasher2({ - 256: keccak2563, + 256: keccak25612, 512: keccak512 }, { 256: keccak_2562, @@ -212083,14 +269595,14 @@ zoo`.split("\n"); encoding: { content, type, - version: version27 + version: version23 }, meta: meta2 }, ignoreChecksum) { - if (version27 === "3" && content[0] !== "pkcs8") { + if (version23 === "3" && content[0] !== "pkcs8") { throw new Error(`Unable to decode non-pkcs8 type, [${content.join(",")}] found}`); } - const cryptoType = version27 === "0" || !Array.isArray(content) ? this.type : content[1]; + const cryptoType = version23 === "0" || !Array.isArray(content) ? this.type : content[1]; const encType = !Array.isArray(type) ? [type] : type; if (!["ed25519", "sr25519", "ecdsa", "ethereum"].includes(cryptoType)) { throw new Error(`Unknown crypto type ${cryptoType}`); @@ -215245,7 +272757,7 @@ zoo`.split("\n"); }; function getFlutterSigningKey(flutterJS) { let sendRequest2 = getSignatureSendRequest(flutterJS); - return new Signer2(sendRequest2); + return new Signer5(sendRequest2); } // ../../node_modules/@firebase/util/dist/index.esm2017.js @@ -215913,7 +273425,7 @@ zoo`.split("\n"); throw new Error(`Attempted to log a message with an invalid logType (value: ${logType})`); } }; - var Logger45 = class { + var Logger41 = class { constructor(name6) { this.name = name6; this._logLevel = defaultLogLevel; @@ -216114,8 +273626,8 @@ zoo`.split("\n"); var unwrap = (value) => reverseTransformCache.get(value); // ../../node_modules/idb/build/index.js - function openDB(name6, version27, { blocked, upgrade, blocking, terminated } = {}) { - const request = indexedDB.open(name6, version27); + function openDB(name6, version23, { blocked, upgrade, blocking, terminated } = {}) { + const request = indexedDB.open(name6, version23); const openPromise = wrap(request); if (upgrade) { request.addEventListener("upgradeneeded", (event) => { @@ -216195,8 +273707,8 @@ zoo`.split("\n"); return (component === null || component === void 0 ? void 0 : component.type) === "VERSION"; } var name$p = "@firebase/app"; - var version$1 = "0.10.6"; - var logger44 = new Logger45("@firebase/app"); + var version$1 = "0.10.8"; + var logger40 = new Logger41("@firebase/app"); var name$o = "@firebase/app-compat"; var name$n = "@firebase/analytics-compat"; var name$m = "@firebase/analytics"; @@ -216259,13 +273771,13 @@ zoo`.split("\n"); try { app.container.addComponent(component); } catch (e) { - logger44.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e); + logger40.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e); } } function _registerComponent(component) { const componentName = component.name; if (_components.has(componentName)) { - logger44.debug(`There were multiple attempts to register component ${componentName}.`); + logger40.debug(`There were multiple attempts to register component ${componentName}.`); return false; } _components.set(componentName, component); @@ -216389,17 +273901,17 @@ zoo`.split("\n"); } return app; } - function registerVersion(libraryKeyOrName, version27, variant) { + function registerVersion(libraryKeyOrName, version23, variant) { var _a2; let library = (_a2 = PLATFORM_LOG_STRING[libraryKeyOrName]) !== null && _a2 !== void 0 ? _a2 : libraryKeyOrName; if (variant) { library += `-${variant}`; } const libraryMismatch = library.match(/\s|\//); - const versionMismatch = version27.match(/\s|\//); + const versionMismatch = version23.match(/\s|\//); if (libraryMismatch || versionMismatch) { const warning = [ - `Unable to register library "${library}" with version "${version27}":` + `Unable to register library "${library}" with version "${version23}":` ]; if (libraryMismatch) { warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`); @@ -216408,12 +273920,12 @@ zoo`.split("\n"); warning.push("and"); } if (versionMismatch) { - warning.push(`version name "${version27}" contains illegal characters (whitespace or "/")`); + warning.push(`version name "${version23}" contains illegal characters (whitespace or "/")`); } - logger44.warn(warning.join(" ")); + logger40.warn(warning.join(" ")); return; } - _registerComponent(new Component(`${library}-version`, () => ({ library, version: version27 }), "VERSION")); + _registerComponent(new Component(`${library}-version`, () => ({ library, version: version23 }), "VERSION")); } var DB_NAME = "firebase-heartbeat-database"; var DB_VERSION = 1; @@ -216449,12 +273961,12 @@ zoo`.split("\n"); return result; } catch (e) { if (e instanceof FirebaseError) { - logger44.warn(e.message); + logger40.warn(e.message); } else { const idbGetError = ERROR_FACTORY.create("idb-get", { originalErrorMessage: e === null || e === void 0 ? void 0 : e.message }); - logger44.warn(idbGetError.message); + logger40.warn(idbGetError.message); } } } @@ -216467,12 +273979,12 @@ zoo`.split("\n"); await tx2.done; } catch (e) { if (e instanceof FirebaseError) { - logger44.warn(e.message); + logger40.warn(e.message); } else { const idbGetError = ERROR_FACTORY.create("idb-set", { originalErrorMessage: e === null || e === void 0 ? void 0 : e.message }); - logger44.warn(idbGetError.message); + logger40.warn(idbGetError.message); } } } @@ -216640,14 +274152,14 @@ zoo`.split("\n"); // ../../node_modules/firebase/app/dist/esm/index.esm.js var name3 = "firebase"; - var version24 = "10.12.3"; - registerVersion(name3, version24, "app"); + var version20 = "10.12.5"; + registerVersion(name3, version20, "app"); // ../../node_modules/@firebase/installations/dist/esm/index.esm2017.js var name4 = "@firebase/installations"; - var version25 = "0.6.8"; + var version21 = "0.6.8"; var PENDING_TIMEOUT_MS = 1e4; - var PACKAGE_VERSION = `w:${version25}`; + var PACKAGE_VERSION = `w:${version21}`; var INTERNAL_AUTH_VERSION = "FIS_v2"; var INSTALLATIONS_API_URL = "https://firebaseinstallations.googleapis.com/v1"; var TOKEN_EXPIRATION_BUFFER = 60 * 60 * 1e3; @@ -217170,8 +274682,8 @@ zoo`.split("\n"); _registerComponent(new Component(INSTALLATIONS_NAME_INTERNAL, internalFactory, "PRIVATE")); } registerInstallations(); - registerVersion(name4, version25); - registerVersion(name4, version25, "esm2017"); + registerVersion(name4, version21); + registerVersion(name4, version21, "esm2017"); // ../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js var ANALYTICS_TYPE = "analytics"; @@ -217180,10 +274692,10 @@ zoo`.split("\n"); var FETCH_TIMEOUT_MILLIS = 60 * 1e3; var DYNAMIC_CONFIG_URL = "https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig"; var GTAG_URL = "https://www.googletagmanager.com/gtag/js"; - var logger45 = new Logger45("@firebase/analytics"); + var logger41 = new Logger41("@firebase/analytics"); var ERRORS2 = { ["already-exists"]: "A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.", - ["already-initialized"]: "initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.", + ["already-initialized"]: "initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.", ["already-initialized-settings"]: "Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.", ["interop-component-reg-failed"]: "Firebase Analytics Interop Component failed to instantiate: {$reason}", ["invalid-analytics-context"]: "Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}", @@ -217201,7 +274713,7 @@ zoo`.split("\n"); const err = ERROR_FACTORY3.create("invalid-gtag-resource", { gtagURL: url }); - logger45.warn(err.message); + logger41.warn(err.message); return ""; } return url; @@ -217248,7 +274760,7 @@ zoo`.split("\n"); } } } catch (e) { - logger45.error(e); + logger41.error(e); } gtagCore("config", measurementId, gtagParams); } @@ -217278,7 +274790,7 @@ zoo`.split("\n"); await Promise.all(initializationPromisesToWaitFor); gtagCore("event", measurementId, gtagParams || {}); } catch (e) { - logger45.error(e); + logger41.error(e); } } function wrapGtag(gtagCore, initializationPromisesMap2, dynamicConfigPromisesList2, measurementIdToAppId2) { @@ -217303,7 +274815,7 @@ zoo`.split("\n"); gtagCore(command, ...args); } } catch (e) { - logger45.error(e); + logger41.error(e); } } return gtagWrapper; @@ -217410,7 +274922,7 @@ zoo`.split("\n"); await setAbortableTimeout(signal, throttleEndTimeMillis); } catch (e) { if (measurementId) { - logger45.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${e === null || e === void 0 ? void 0 : e.message}]`); + logger41.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${e === null || e === void 0 ? void 0 : e.message}]`); return { appId, measurementId }; } throw e; @@ -217424,7 +274936,7 @@ zoo`.split("\n"); if (!isRetriableError(error)) { retryData.deleteThrottleMetadata(appId); if (measurementId) { - logger45.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${error === null || error === void 0 ? void 0 : error.message}]`); + logger41.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${measurementId} provided in the "measurementId" field in the local Firebase config. [${error === null || error === void 0 ? void 0 : error.message}]`); return { appId, measurementId }; } else { throw e; @@ -217436,7 +274948,7 @@ zoo`.split("\n"); backoffCount: backoffCount + 1 }; retryData.setThrottleMetadata(appId, throttleMetadata); - logger45.debug(`Calling attemptFetch again in ${backoffMillis} millis`); + logger41.debug(`Calling attemptFetch again in ${backoffMillis} millis`); return attemptFetchDynamicConfigWithRetry(appFields, throttleMetadata, signal, retryData); } } @@ -217490,7 +275002,7 @@ zoo`.split("\n"); } async function validateIndexedDB() { if (!isIndexedDBAvailable()) { - logger45.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { + logger41.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { errorInfo: "IndexedDB is not available in this environment." }).message); return false; @@ -217498,7 +275010,7 @@ zoo`.split("\n"); try { await validateIndexedDBOpenable(); } catch (e) { - logger45.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { + logger41.warn(ERROR_FACTORY3.create("indexeddb-unavailable", { errorInfo: e === null || e === void 0 ? void 0 : e.toString() }).message); return false; @@ -217512,9 +275024,9 @@ zoo`.split("\n"); dynamicConfigPromise.then((config7) => { measurementIdToAppId2[config7.measurementId] = config7.appId; if (app.options.measurementId && config7.measurementId !== app.options.measurementId) { - logger45.warn(`The measurement ID in the local Firebase config (${app.options.measurementId}) does not match the measurement ID fetched from the server (${config7.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`); + logger41.warn(`The measurement ID in the local Firebase config (${app.options.measurementId}) does not match the measurement ID fetched from the server (${config7.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`); } - }).catch((e) => logger45.error(e)); + }).catch((e) => logger41.error(e)); dynamicConfigPromisesList2.push(dynamicConfigPromise); const fidPromise = validateIndexedDB().then((envIsValid) => { if (envIsValid) { @@ -217578,7 +275090,7 @@ zoo`.split("\n"); const err = ERROR_FACTORY3.create("invalid-analytics-context", { errorInfo: details }); - logger45.warn(err.message); + logger41.warn(err.message); } } function factory(app, installations, options) { @@ -217589,7 +275101,7 @@ zoo`.split("\n"); } if (!app.options.apiKey) { if (app.options.measurementId) { - logger45.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${app.options.measurementId} provided in the "measurementId" field in the local Firebase config.`); + logger41.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${app.options.measurementId} provided in the "measurementId" field in the local Firebase config.`); } else { throw ERROR_FACTORY3.create("no-api-key"); } @@ -217633,10 +275145,10 @@ zoo`.split("\n"); } function logEvent(analyticsInstance, eventName, eventParams, options) { analyticsInstance = getModularInstance(analyticsInstance); - logEvent$1(wrappedGtagFunction, initializationPromisesMap[analyticsInstance.app.options.appId], eventName, eventParams, options).catch((e) => logger45.error(e)); + logEvent$1(wrappedGtagFunction, initializationPromisesMap[analyticsInstance.app.options.appId], eventName, eventParams, options).catch((e) => logger41.error(e)); } var name5 = "@firebase/analytics"; - var version26 = "0.10.5"; + var version22 = "0.10.7"; function registerAnalytics() { _registerComponent(new Component(ANALYTICS_TYPE, (container, { options: analyticsOptions }) => { const app = container.getProvider("app").getImmediate(); @@ -217644,8 +275156,8 @@ zoo`.split("\n"); return factory(app, installations, analyticsOptions); }, "PUBLIC")); _registerComponent(new Component("analytics-internal", internalFactory2, "PRIVATE")); - registerVersion(name5, version26); - registerVersion(name5, version26, "esm2017"); + registerVersion(name5, version22); + registerVersion(name5, version22, "esm2017"); function internalFactory2(container) { try { const analytics = container.getProvider(ANALYTICS_TYPE).getImmediate(); diff --git a/lib/js/yarn.lock b/lib/js/yarn.lock index e44c5e02..64866750 100644 --- a/lib/js/yarn.lock +++ b/lib/js/yarn.lock @@ -34,38 +34,38 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/compat-data@^7.20.5", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.8": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.9.tgz#53eee4e68f1c1d0282aa0eb05ddb02d033fc43a0" - integrity sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng== +"@babel/compat-data@^7.20.5", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5" + integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ== "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.17.8", "@babel/core@^7.7.2", "@babel/core@^7.8.0": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.9.tgz#dc07c9d307162c97fa9484ea997ade65841c7c82" - integrity sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg== + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" + integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.9" - "@babel/helper-compilation-targets" "^7.24.8" - "@babel/helper-module-transforms" "^7.24.9" - "@babel/helpers" "^7.24.8" - "@babel/parser" "^7.24.8" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.8" - "@babel/types" "^7.24.9" + "@babel/generator" "^7.25.0" + "@babel/helper-compilation-targets" "^7.25.2" + "@babel/helper-module-transforms" "^7.25.2" + "@babel/helpers" "^7.25.0" + "@babel/parser" "^7.25.0" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.2" + "@babel/types" "^7.25.2" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.8", "@babel/generator@^7.24.9", "@babel/generator@^7.7.2": - version "7.24.10" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.10.tgz#a4ab681ec2a78bbb9ba22a3941195e28a81d8e76" - integrity sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg== +"@babel/generator@^7.25.0", "@babel/generator@^7.7.2": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e" + integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw== dependencies: - "@babel/types" "^7.24.9" + "@babel/types" "^7.25.0" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" @@ -85,42 +85,40 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7", "@babel/helper-compilation-targets@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz#b607c3161cd9d1744977d4f97139572fe778c271" - integrity sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw== +"@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7", "@babel/helper-compilation-targets@^7.24.8", "@babel/helper-compilation-targets@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" + integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== dependencies: - "@babel/compat-data" "^7.24.8" + "@babel/compat-data" "^7.25.2" "@babel/helper-validator-option" "^7.24.8" browserslist "^4.23.1" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.24.7", "@babel/helper-create-class-features-plugin@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.8.tgz#47f546408d13c200c0867f9d935184eaa0851b09" - integrity sha512-4f6Oqnmyp2PP3olgUMmOwC3akxSm5aBYraQ6YDdKy7NcAMkDECHWG0DEnV6M2UAkERgIBhYt8S27rURPg7SxWA== +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.24.7", "@babel/helper-create-class-features-plugin@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.0.tgz#a109bf9c3d58dfed83aaf42e85633c89f43a6253" + integrity sha512-GYM6BxeQsETc9mnct+nIIpf63SAyzvyYN7UB/IlTyd+MBg06afFGp0mIeUqGyWgS2mxad6vqbMrHVlaL3m70sQ== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" "@babel/helper-member-expression-to-functions" "^7.24.8" "@babel/helper-optimise-call-expression" "^7.24.7" - "@babel/helper-replace-supers" "^7.24.7" + "@babel/helper-replace-supers" "^7.25.0" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" + "@babel/traverse" "^7.25.0" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.7.tgz#be4f435a80dc2b053c76eeb4b7d16dd22cfc89da" - integrity sha512-03TCmXy2FtXJEZfbXDTSqq1fRJArk7lX9DOFC/47VthYcxyIOx+eXQmdo6DOQvrbpIix+KfXwvuXdFDZHxt+rA== +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7", "@babel/helper-create-regexp-features-plugin@^7.25.0": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.2.tgz#24c75974ed74183797ffd5f134169316cd1808d9" + integrity sha512-+wqVGP+DFmqwFD3EH6TMTfUNeqDehV3E/dl+Sd54eaXqm17tEUNbEIn4sVivVowbvUpOtIGxdo3GoXyDH9N/9g== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" regexpu-core "^5.3.1" semver "^6.3.1" -"@babel/helper-define-polyfill-provider@^0.6.1", "@babel/helper-define-polyfill-provider@^0.6.2": +"@babel/helper-define-polyfill-provider@^0.6.2": version "0.6.2" resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== @@ -131,29 +129,7 @@ lodash.debounce "^4.0.8" resolve "^1.14.2" -"@babel/helper-environment-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" - integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" - integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-hoist-variables@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" - integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-member-expression-to-functions@^7.24.7", "@babel/helper-member-expression-to-functions@^7.24.8": +"@babel/helper-member-expression-to-functions@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz#6155e079c913357d24a4c20480db7c712a5c3fb6" integrity sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA== @@ -169,16 +145,15 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.24.7", "@babel/helper-module-transforms@^7.24.8", "@babel/helper-module-transforms@^7.24.9": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz#e13d26306b89eea569180868e652e7f514de9d29" - integrity sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw== +"@babel/helper-module-transforms@^7.24.7", "@babel/helper-module-transforms@^7.24.8", "@babel/helper-module-transforms@^7.25.0", "@babel/helper-module-transforms@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" + integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-module-imports" "^7.24.7" "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.2" "@babel/helper-optimise-call-expression@^7.24.7": version "7.24.7" @@ -192,23 +167,23 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== -"@babel/helper-remap-async-to-generator@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.24.7.tgz#b3f0f203628522713849d49403f1a414468be4c7" - integrity sha512-9pKLcTlZ92hNZMQfGCHImUpDOlAgkkpqalWEeftW5FBya75k8Li2ilerxkM/uBEj01iBZXcCIB/bwvDYgWyibA== +"@babel/helper-remap-async-to-generator@^7.24.7", "@babel/helper-remap-async-to-generator@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.0.tgz#d2f0fbba059a42d68e5e378feaf181ef6055365e" + integrity sha512-NhavI2eWEIz/H9dbrG0TuOicDhNexze43i5z7lEqwYm0WEZVTwnPpA0EafUTP7+6/W79HWIP2cTe3Z5NiSTVpw== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-wrap-function" "^7.24.7" + "@babel/helper-wrap-function" "^7.25.0" + "@babel/traverse" "^7.25.0" -"@babel/helper-replace-supers@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.7.tgz#f933b7eed81a1c0265740edc91491ce51250f765" - integrity sha512-qTAxxBM81VEyoAY0TtLrx1oAEJc09ZK67Q9ljQToqCnA+55eNwCORaxlKyu+rNfX86o8OXRUSNUnrtsAZXM9sg== +"@babel/helper-replace-supers@^7.24.7", "@babel/helper-replace-supers@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz#ff44deac1c9f619523fe2ca1fd650773792000a9" + integrity sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-member-expression-to-functions" "^7.24.7" + "@babel/helper-member-expression-to-functions" "^7.24.8" "@babel/helper-optimise-call-expression" "^7.24.7" + "@babel/traverse" "^7.25.0" "@babel/helper-simple-access@^7.24.7": version "7.24.7" @@ -226,13 +201,6 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-split-export-declaration@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" - integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== - dependencies: - "@babel/types" "^7.24.7" - "@babel/helper-string-parser@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" @@ -248,23 +216,22 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== -"@babel/helper-wrap-function@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.7.tgz#52d893af7e42edca7c6d2c6764549826336aae1f" - integrity sha512-N9JIYk3TD+1vq/wn77YnJOqMtfWhNewNE+DJV4puD2X7Ew9J4JvrzrFDfTfyv5EgEXVy9/Wt8QiOErzEmv5Ifw== +"@babel/helper-wrap-function@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.0.tgz#dab12f0f593d6ca48c0062c28bcfb14ebe812f81" + integrity sha512-s6Q1ebqutSiZnEjaofc/UKDyC4SbzV5n5SrA2Gq8UawLycr3i04f1dX4OzoQVnexm6aOCh37SQNYlJ/8Ku+PMQ== dependencies: - "@babel/helper-function-name" "^7.24.7" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.0" + "@babel/types" "^7.25.0" -"@babel/helpers@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.8.tgz#2820d64d5d6686cca8789dd15b074cd862795873" - integrity sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ== +"@babel/helpers@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a" + integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw== dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.8" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.0" "@babel/highlight@^7.24.7": version "7.24.7" @@ -276,25 +243,34 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.8.tgz#58a4dbbcad7eb1d48930524a3fd93d93e9084c6f" - integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== +"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065" + integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw== + dependencies: + "@babel/types" "^7.25.2" -"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.7.tgz#fd059fd27b184ea2b4c7e646868a9a381bbc3055" - integrity sha512-TiT1ss81W80eQsN+722OaeQMY/G4yTb4G9JrqeiDADs3N8lbPMGldWi9x8tyqCW5NLx1Jh2AvkE6r6QvEltMMQ== +"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.25.3": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.3.tgz#dca427b45a6c0f5c095a1c639dfe2476a3daba7f" + integrity sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/traverse" "^7.25.3" -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.7.tgz#468096ca44bbcbe8fcc570574e12eb1950e18107" - integrity sha512-unaQgZ/iRu/By6tsjMZzpeBZjChYfLYry6HrEXPoz3KmfF0sVBQ1l8zKMQ4xRGLWVsjuvB8nQfjNP/DcfEOCsg== +"@babel/plugin-bugfix-safari-class-field-initializer-scope@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.0.tgz#cd0c583e01369ef51676bdb3d7b603e17d2b3f73" + integrity sha512-Bm4bH2qsX880b/3ziJ8KD711LT7z4u8CFudmjqle65AZj/HNUFhEf90dqYv6O86buWvSBmeQDjv0Tn2aF/bIBA== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" + +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.0.tgz#749bde80356b295390954643de7635e0dffabe73" + integrity sha512-lXwdNZtTmeVOOFtwM/WDe7yg1PL8sYhRk/XH0FzbR2HDQ0xC+EnQ/JHeoMYSavtU115tnUk0q9CDyq8si+LMAA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.24.7": version "7.24.7" @@ -305,13 +281,13 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-transform-optional-chaining" "^7.24.7" -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.7.tgz#71b21bb0286d5810e63a1538aa901c58e87375ec" - integrity sha512-utA4HuR6F4Vvcr+o4DnjL8fCOlgRFGbeeBEGNg3ZTrLFw6VWG5XmUrvcQ0FjIYMU2ST4XcR2Wsp7t9qOAPnxMg== +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.0.tgz#3a82a70e7cb7294ad2559465ebcb871dfbf078fb" + integrity sha512-tggFrk1AIShG/RUQbEwt2Tr/E+ObkfwrPjR6BjbRvsx24+PSjK8zrq0GWPNCjo8qpRx4DuJzlcvWJqlm+0h3kw== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/traverse" "^7.25.0" "@babel/plugin-proposal-class-properties@^7.16.7": version "7.18.6" @@ -556,15 +532,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-async-generator-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.7.tgz#7330a5c50e05181ca52351b8fd01642000c96cfd" - integrity sha512-o+iF77e3u7ZS4AoAuJvapz9Fm001PuD2V3Lp6OSE4FYQke+cSewYtnek+THqGRWyQloRCyvWL1OkyfNEl9vr/g== +"@babel/plugin-transform-async-generator-functions@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.0.tgz#b785cf35d73437f6276b1e30439a57a50747bddf" + integrity sha512-uaIi2FdqzjpAMvVqvB51S42oC2JEVgh0LDsGfZVDysWE8LrJtQC2jvKmOqEYThKyB7bDEb7BP1GYWDm7tABA0Q== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-remap-async-to-generator" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-remap-async-to-generator" "^7.25.0" "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/traverse" "^7.25.0" "@babel/plugin-transform-async-to-generator@^7.24.7": version "7.24.7" @@ -582,12 +558,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-block-scoping@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.7.tgz#42063e4deb850c7bd7c55e626bf4e7ab48e6ce02" - integrity sha512-Nd5CvgMbWc+oWzBsuaMcbwjJWAcp5qzrbg69SZdHSP7AMY0AbWFqFO0WTFCA1jxhMCwodRwvRec8k0QUbZk7RQ== +"@babel/plugin-transform-block-scoping@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz#23a6ed92e6b006d26b1869b1c91d1b917c2ea2ac" + integrity sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-transform-class-properties@^7.24.7": version "7.24.7" @@ -606,18 +582,16 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-classes@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.8.tgz#ad23301fe5bc153ca4cf7fb572a9bc8b0b711cf7" - integrity sha512-VXy91c47uujj758ud9wx+OMgheXm4qJfyhj1P18YvlrQkNOSrwsteHk+EFS3OMGfhMhpZa0A+81eE7G4QC+3CA== +"@babel/plugin-transform-classes@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.0.tgz#63122366527d88e0ef61b612554fe3f8c793991e" + integrity sha512-xyi6qjr/fYU304fiRwFbekzkqVJZ6A7hOjWZd+89FVcBqPV3S9Wuozz82xdpLspckeaafntbzglaW4pqpzvtSw== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" "@babel/helper-compilation-targets" "^7.24.8" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.8" - "@babel/helper-replace-supers" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" + "@babel/helper-replace-supers" "^7.25.0" + "@babel/traverse" "^7.25.0" globals "^11.1.0" "@babel/plugin-transform-computed-properties@^7.24.7": @@ -650,6 +624,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" +"@babel/plugin-transform-duplicate-named-capturing-groups-regex@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.0.tgz#809af7e3339466b49c034c683964ee8afb3e2604" + integrity sha512-YLpb4LlYSc3sCUa35un84poXoraOiQucUTTu8X1j18JV+gNa8E0nyUf/CjZ171IRGr4jEguF+vzJU66QZhn29g== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.25.0" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/plugin-transform-dynamic-import@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz#4d8b95e3bae2b037673091aa09cd33fecd6419f4" @@ -682,14 +664,14 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" -"@babel/plugin-transform-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.7.tgz#6d8601fbffe665c894440ab4470bc721dd9131d6" - integrity sha512-U9FcnA821YoILngSmYkW6FjyQe2TyZD5pHt4EVIhmcTkrJw/3KqcrRSxuOo5tFZJi7TE19iDyI1u+weTI7bn2w== +"@babel/plugin-transform-function-name@^7.25.1": + version "7.25.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz#b85e773097526c1a4fc4ba27322748643f26fc37" + integrity sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA== dependencies: - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-compilation-targets" "^7.24.8" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/traverse" "^7.25.1" "@babel/plugin-transform-json-strings@^7.24.7": version "7.24.7" @@ -699,12 +681,12 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-transform-literals@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.7.tgz#36b505c1e655151a9d7607799a9988fc5467d06c" - integrity sha512-vcwCbb4HDH+hWi8Pqenwnjy+UiklO4Kt1vfspcQYFhJdpthSnW8XvWGyDZWKNVrVbVViI/S7K9PDJZiUmP2fYQ== +"@babel/plugin-transform-literals@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz#deb1ad14fc5490b9a65ed830e025bca849d8b5f3" + integrity sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-transform-logical-assignment-operators@^7.24.7": version "7.24.7" @@ -738,15 +720,15 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-simple-access" "^7.24.7" -"@babel/plugin-transform-modules-systemjs@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.7.tgz#f8012316c5098f6e8dee6ecd58e2bc6f003d0ce7" - integrity sha512-GYQE0tW7YoaN13qFh3O1NCY4MPkUiAH3fiF7UcV/I3ajmDKEdG3l+UOcbAm4zUE3gnvUU+Eni7XrVKo9eO9auw== +"@babel/plugin-transform-modules-systemjs@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.0.tgz#8f46cdc5f9e5af74f3bd019485a6cbe59685ea33" + integrity sha512-YPJfjQPDXxyQWg/0+jHKj1llnY5f/R6a0p/vP4lPymxLu7Lvl4k2WMitqi08yxwQcCVUUdG9LCUj4TNEgAp3Jw== dependencies: - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-module-transforms" "^7.25.0" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.0" "@babel/plugin-transform-modules-umd@^7.24.7": version "7.24.7" @@ -869,15 +851,15 @@ "@babel/plugin-transform-react-jsx" "^7.24.7" "@babel/plugin-transform-react-jsx@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.24.7.tgz#17cd06b75a9f0e2bd076503400e7c4b99beedac4" - integrity sha512-+Dj06GDZEFRYvclU6k4bme55GKBEWUmByM/eoKuqg4zTNQHiApWRhQph5fxQB2wAEFvRzL1tOEj1RJ19wJrhoA== + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.2.tgz#e37e8ebfa77e9f0b16ba07fadcb6adb47412227a" + integrity sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-syntax-jsx" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/types" "^7.25.2" "@babel/plugin-transform-react-pure-annotations@^7.24.7": version "7.24.7" @@ -951,13 +933,14 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-transform-typescript@^7.24.7": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.8.tgz#c104d6286e04bf7e44b8cba1b686d41bad57eb84" - integrity sha512-CgFgtN61BbdOGCP4fLaAMOPkzWUh6yQZNMr5YSt8uz2cZSSiQONCQFWqsE4NeVfOIhqDOlS9CR3WD91FzMeB2Q== + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz#237c5d10de6d493be31637c6b9fa30b6c5461add" + integrity sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-create-class-features-plugin" "^7.24.8" + "@babel/helper-create-class-features-plugin" "^7.25.0" "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-syntax-typescript" "^7.24.7" "@babel/plugin-transform-unicode-escapes@^7.24.7": @@ -992,18 +975,19 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/preset-env@^7.16.11": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.8.tgz#e0db94d7f17d6f0e2564e8d29190bc8cdacec2d1" - integrity sha512-vObvMZB6hNWuDxhSaEPTKCwcqkAIuDtE+bQGn4XMXne1DSLzFVY8Vmj1bm+mUQXYNN8NmaQEO+r8MMbzPr1jBQ== + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.3.tgz#0bf4769d84ac51d1073ab4a86f00f30a3a83c67c" + integrity sha512-QsYW7UeAaXvLPX9tdVliMJE7MD7M6MLYVTovRTIwhoYQVFHR1rM4wO8wqAezYi3/BpSD+NzVCZ69R6smWiIi8g== dependencies: - "@babel/compat-data" "^7.24.8" - "@babel/helper-compilation-targets" "^7.24.8" + "@babel/compat-data" "^7.25.2" + "@babel/helper-compilation-targets" "^7.25.2" "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-validator-option" "^7.24.8" - "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.24.7" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.24.7" + "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.25.3" + "@babel/plugin-bugfix-safari-class-field-initializer-scope" "^7.25.0" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.25.0" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.24.7" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.24.7" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.25.0" "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-class-properties" "^7.12.13" @@ -1024,29 +1008,30 @@ "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.24.7" - "@babel/plugin-transform-async-generator-functions" "^7.24.7" + "@babel/plugin-transform-async-generator-functions" "^7.25.0" "@babel/plugin-transform-async-to-generator" "^7.24.7" "@babel/plugin-transform-block-scoped-functions" "^7.24.7" - "@babel/plugin-transform-block-scoping" "^7.24.7" + "@babel/plugin-transform-block-scoping" "^7.25.0" "@babel/plugin-transform-class-properties" "^7.24.7" "@babel/plugin-transform-class-static-block" "^7.24.7" - "@babel/plugin-transform-classes" "^7.24.8" + "@babel/plugin-transform-classes" "^7.25.0" "@babel/plugin-transform-computed-properties" "^7.24.7" "@babel/plugin-transform-destructuring" "^7.24.8" "@babel/plugin-transform-dotall-regex" "^7.24.7" "@babel/plugin-transform-duplicate-keys" "^7.24.7" + "@babel/plugin-transform-duplicate-named-capturing-groups-regex" "^7.25.0" "@babel/plugin-transform-dynamic-import" "^7.24.7" "@babel/plugin-transform-exponentiation-operator" "^7.24.7" "@babel/plugin-transform-export-namespace-from" "^7.24.7" "@babel/plugin-transform-for-of" "^7.24.7" - "@babel/plugin-transform-function-name" "^7.24.7" + "@babel/plugin-transform-function-name" "^7.25.1" "@babel/plugin-transform-json-strings" "^7.24.7" - "@babel/plugin-transform-literals" "^7.24.7" + "@babel/plugin-transform-literals" "^7.25.2" "@babel/plugin-transform-logical-assignment-operators" "^7.24.7" "@babel/plugin-transform-member-expression-literals" "^7.24.7" "@babel/plugin-transform-modules-amd" "^7.24.7" "@babel/plugin-transform-modules-commonjs" "^7.24.8" - "@babel/plugin-transform-modules-systemjs" "^7.24.7" + "@babel/plugin-transform-modules-systemjs" "^7.25.0" "@babel/plugin-transform-modules-umd" "^7.24.7" "@babel/plugin-transform-named-capturing-groups-regex" "^7.24.7" "@babel/plugin-transform-new-target" "^7.24.7" @@ -1127,41 +1112,38 @@ integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.13", "@babel/runtime@^7.23.8", "@babel/runtime@^7.24.5", "@babel/runtime@^7.8.4": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e" - integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA== + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.0.tgz#3af9a91c1b739c569d5d80cc917280919c544ecb" + integrity sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw== dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.24.7", "@babel/template@^7.3.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" - integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== +"@babel/template@^7.24.7", "@babel/template@^7.25.0", "@babel/template@^7.3.3": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" + integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/parser" "^7.25.0" + "@babel/types" "^7.25.0" -"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8", "@babel/traverse@^7.7.2": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.8.tgz#6c14ed5232b7549df3371d820fbd9abfcd7dfab7" - integrity sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ== +"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8", "@babel/traverse@^7.25.0", "@babel/traverse@^7.25.1", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.3", "@babel/traverse@^7.7.2": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490" + integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.8" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/parser" "^7.24.8" - "@babel/types" "^7.24.8" + "@babel/generator" "^7.25.0" + "@babel/parser" "^7.25.3" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.2" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.24.9", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.9.tgz#228ce953d7b0d16646e755acf204f4cf3d08cc73" - integrity sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125" + integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" @@ -1928,12 +1910,12 @@ resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== -"@firebase/analytics-compat@0.2.11": - version "0.2.11" - resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.2.11.tgz#82995b29805f306ad862773e2cd907ae8fb7b7e5" - integrity sha512-wmXxJ49pEY7H549Pa4CDPOTzkPJnfG2Yolptg72ntTgSrbKVq+Eg9cAQY6Z5Kn9ATSQRX5oGXKlNfEk5DJBvvA== +"@firebase/analytics-compat@0.2.13": + version "0.2.13" + resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.2.13.tgz#de8858e578616c4b7a2e209ba14d21cef03e0f9d" + integrity sha512-aZ4wGfNDMsCxhKzDbK2g1aV0JKsdQ9FbeIsjpNJPzhahV0XYj+z36Y4RNLPpG/6hHU4gxnezxs+yn3HhHkNL8w== dependencies: - "@firebase/analytics" "0.10.5" + "@firebase/analytics" "0.10.7" "@firebase/analytics-types" "0.8.2" "@firebase/component" "0.6.8" "@firebase/util" "1.9.7" @@ -1944,10 +1926,10 @@ resolved "https://registry.yarnpkg.com/@firebase/analytics-types/-/analytics-types-0.8.2.tgz#947f85346e404332aac6c996d71fd4a89cd7f87a" integrity sha512-EnzNNLh+9/sJsimsA/FGqzakmrAUKLeJvjRHlg8df1f97NLUlFidk9600y0ZgWOp3CAxn6Hjtk+08tixlUOWyw== -"@firebase/analytics@0.10.5": - version "0.10.5" - resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.10.5.tgz#a455028952bdc25b9da2b0070ebb09ca487ee09f" - integrity sha512-d0X2ksTOKHMf5zFAMKFZWXa8hSbgohsG507xFsGhF4Uet2b8uEUL/YLrEth67jXEbGEi1UQZX4AaGBxKNiDzjw== +"@firebase/analytics@0.10.7": + version "0.10.7" + resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.10.7.tgz#6b6e51002d7a4c8f87c0a8c933cc5c26b37b205a" + integrity sha512-GE29uTT6y/Jv2EP0OjpTezeTQZ5FTCTaZXKrrdVGjb/t35AU4u/jiU+hUwUPpuK8fqhhiHkS/AawE3a3ZK/a9Q== dependencies: "@firebase/component" "0.6.8" "@firebase/installations" "0.6.8" @@ -1955,12 +1937,12 @@ "@firebase/util" "1.9.7" tslib "^2.1.0" -"@firebase/app-check-compat@0.3.12": - version "0.3.12" - resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.3.12.tgz#34d826f72e058baf1aad11713fda337046fb863c" - integrity sha512-p/5w3pMih3JVT6u7g04KXgSZr6HDsQXyeWZkIe0+r71dPOlcKyUooe9/feTc8BWpjha3rUOkqQ7+JXZObwvYoQ== +"@firebase/app-check-compat@0.3.14": + version "0.3.14" + resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.3.14.tgz#503593a6cf23b7d318f64dfa1f48f759325602eb" + integrity sha512-kK3bPfojAfXE53W+20rxMqIxrloFswXG9vh4kEdYL6Wa2IB3sD5++2dPiK3yGxl8oQiqS8qL2wcKB5/xLpEVEg== dependencies: - "@firebase/app-check" "0.8.5" + "@firebase/app-check" "0.8.7" "@firebase/app-check-types" "0.5.2" "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" @@ -1977,22 +1959,22 @@ resolved "https://registry.yarnpkg.com/@firebase/app-check-types/-/app-check-types-0.5.2.tgz#1221bd09b471e11bb149252f16640a0a51043cbc" integrity sha512-FSOEzTzL5bLUbD2co3Zut46iyPWML6xc4x+78TeaXMSuJap5QObfb+rVvZJtla3asN4RwU7elaQaduP+HFizDA== -"@firebase/app-check@0.8.5": - version "0.8.5" - resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.8.5.tgz#e8b0a6d603592f6a04f2d429029f5adfe1a4d2ca" - integrity sha512-WyIckkVYAfnzsPIw6EAt/qBUANkUAVl6irF0xuJ1R9ISNyUT1h7dPAwvs/g3rsx0fpBWaHRAH0IFiN6zO6yLqQ== +"@firebase/app-check@0.8.7": + version "0.8.7" + resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.8.7.tgz#b5f01116b99eb7d12d57a1cb1595796f8196ca7f" + integrity sha512-EkOeJcMKVR0zZ6z/jqcFTqHb/xq+TVIRIuBNGHdpcIuFU1czhSlegvqv2+nC+nFrkD8M6Xvd3tAlUOkdbMeS6A== dependencies: "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" "@firebase/util" "1.9.7" tslib "^2.1.0" -"@firebase/app-compat@0.2.36": - version "0.2.36" - resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.2.36.tgz#46926ee9ba0d54fc5ec4695e62588b63e2f7584a" - integrity sha512-qsf+pllpgy1IGe2f5vfenOHSX8Cs58sVR5L6h/zBlNy9Yo54B2jy61KxLpSOgyRZb18IlnLLGjo7VtGU1CHvHA== +"@firebase/app-compat@0.2.38": + version "0.2.38" + resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.2.38.tgz#eecb6c0e3ffbfe2b7c2e63e2781db8f623563b31" + integrity sha512-36ZrSvkYLW7QR01Sii2X+IY18ErMpRg6e2B2f/DVTtJBolthwXOnNBps+wvaVBvegdvdVPspgDXZUV0ppqh45w== dependencies: - "@firebase/app" "0.10.6" + "@firebase/app" "0.10.8" "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" "@firebase/util" "1.9.7" @@ -2003,10 +1985,10 @@ resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.9.2.tgz#8cbcceba784753a7c0066a4809bc22f93adee080" integrity sha512-oMEZ1TDlBz479lmABwWsWjzHwheQKiAgnuKxE0pz0IXCVx7/rtlkx1fQ6GfgK24WCrxDKMplZrT50Kh04iMbXQ== -"@firebase/app@0.10.6": - version "0.10.6" - resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.10.6.tgz#0f96a573c18d75723ddeedb45c02c5471d9de695" - integrity sha512-/r8Ikp7TOrIIdp7v2adD2kg9SqIXMGOoJXJB1HsX7LjpjWdsoy1fMkP0HlI7GQqqRxDueHNhETx5Zn5E8HyVAQ== +"@firebase/app@0.10.8": + version "0.10.8" + resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.10.8.tgz#153caf05ded90c80f1ee1810e43ab0b72782595a" + integrity sha512-xSLmW0/RShcnUEXH7l+wC0AFWaUtty4tUFF2loIgbtXTRmra0UH/SqYDf/IcfreUninRrCsusNmvoTidGkXJPw== dependencies: "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" @@ -2014,12 +1996,12 @@ idb "7.1.1" tslib "^2.1.0" -"@firebase/auth-compat@0.5.10": - version "0.5.10" - resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.5.10.tgz#7705fc27883a8fafb2e85271e1d5cd7314609276" - integrity sha512-epDhgNIXmhl9DPuTW9Ec5NDJJKMFIdXBXiQI9O0xNHveow/ETtBCY86srzF7iCacqsd30CcpLwwXlhk8Y19Olg== +"@firebase/auth-compat@0.5.11": + version "0.5.11" + resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.5.11.tgz#219eaea8ea52cb2b0839998a2d5c1cec033a17a9" + integrity sha512-7rE3MkQDoWwI2qd8qsra4/QZCO2GzQSbCL6AVQpult9+Nbimg+5A+YeHxpLTcYAxUV6HDg2CqTDQreFLhcm1CQ== dependencies: - "@firebase/auth" "1.7.5" + "@firebase/auth" "1.7.6" "@firebase/auth-types" "0.12.2" "@firebase/component" "0.6.8" "@firebase/util" "1.9.7" @@ -2036,10 +2018,10 @@ resolved "https://registry.yarnpkg.com/@firebase/auth-types/-/auth-types-0.12.2.tgz#f12d890585866e53b6ab18b16fa4d425c52eee6e" integrity sha512-qsEBaRMoGvHO10unlDJhaKSuPn4pyoTtlQuP1ghZfzB6rNQPuhp/N/DcFZxm9i4v0SogjCbf9reWupwIvfmH6w== -"@firebase/auth@1.7.5": - version "1.7.5" - resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-1.7.5.tgz#8135e0933e874231d7ebafc94f5796a19f5df39b" - integrity sha512-DMFR1OA/f1/voeuFbSORg9AP36pMgOoSb/DRgiDalLmIJsDTlQNMCu+givjMP4s/XL85+tBk2MerYnK/AscJjw== +"@firebase/auth@1.7.6": + version "1.7.6" + resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-1.7.6.tgz#0140f6acc0de555f35c232295728b9528a34799c" + integrity sha512-T+lA5xoug9CByGYkD5WkfTh2ujEYq/frGZPbk0H+fNU6fNl7nqg88KcsmzsC6Fsqbjm3LLEb/i6wJvF6NSNEig== dependencies: "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" @@ -2055,13 +2037,13 @@ "@firebase/util" "1.9.7" tslib "^2.1.0" -"@firebase/database-compat@1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-1.0.6.tgz#6a4966fe4a9d8bc2cb11ee98a1bb01ab954d7d66" - integrity sha512-1OGA0sLY47mkXjhICCrUTXEYFnSSXoiXWm1SHsN62b+Lzs5aKA3aWTjTUmYIoK93kDAMPkYpulSv8jcbH4Hwew== +"@firebase/database-compat@1.0.7": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-1.0.7.tgz#5c761bea1a78daea76fecc4bf5de5d6915a1c3b4" + integrity sha512-R/3B+VVzEFN5YcHmfWns3eitA8fHLTL03io+FIoMcTYkajFnrBdS3A+g/KceN9omP7FYYYGTQWF9lvbEx6eMEg== dependencies: "@firebase/component" "0.6.8" - "@firebase/database" "1.0.6" + "@firebase/database" "1.0.7" "@firebase/database-types" "1.0.4" "@firebase/logger" "0.4.2" "@firebase/util" "1.9.7" @@ -2075,10 +2057,10 @@ "@firebase/app-types" "0.9.2" "@firebase/util" "1.9.7" -"@firebase/database@1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@firebase/database/-/database-1.0.6.tgz#cf0592b140e207e35c14efe6776fc92266ac408a" - integrity sha512-nrexUEG/fpVlHtWKkyfhTC3834kZ1WS7voNyqbBsBCqHXQOvznN5Z0L3nxBqdXSJyltNAf4ndFlQqm5gZiEczQ== +"@firebase/database@1.0.7": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@firebase/database/-/database-1.0.7.tgz#0794801ab1e63336eda69401131228bb85aa6776" + integrity sha512-wjXr5AO8RPxVVg7rRCYffT7FMtBjHRfJ9KMwi19MbOf0vBf0H9YqW3WCgcnLpXI6ehiUcU3z3qgPnnU0nK6SnA== dependencies: "@firebase/app-check-interop-types" "0.3.2" "@firebase/auth-interop-types" "0.2.3" @@ -2088,13 +2070,13 @@ faye-websocket "0.11.4" tslib "^2.1.0" -"@firebase/firestore-compat@0.3.33": - version "0.3.33" - resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.3.33.tgz#8e591bfafb574c695b09101b98c1a1057f55c60e" - integrity sha512-i42a2l31N95CwYEB7zmfK0FS1mrO6pwOLwxavCrwu1BCFrVVVQhUheTPIda/iGguK/2Nog0RaIR1bo7QkZEz3g== +"@firebase/firestore-compat@0.3.34": + version "0.3.34" + resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.3.34.tgz#c9f9d37318151aed8438f10d0520ec61c7b2ea0d" + integrity sha512-OBP2F/Ccydl2U2j8XIfpKBxf0EnQHEhbZ4LTwbSS2QlG9+8TwhvKFkKk/ZljWYqaype+qFKPuXZ5flCqYEETeA== dependencies: "@firebase/component" "0.6.8" - "@firebase/firestore" "4.6.4" + "@firebase/firestore" "4.6.5" "@firebase/firestore-types" "3.0.2" "@firebase/util" "1.9.7" tslib "^2.1.0" @@ -2104,10 +2086,10 @@ resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-3.0.2.tgz#75c301acc5fa33943eaaa9570b963c55398cad2a" integrity sha512-wp1A+t5rI2Qc/2q7r2ZpjUXkRVPtGMd6zCLsiWurjsQpqPgFin3AhNibKcIzoF2rnToNa/XYtyWXuifjOOwDgg== -"@firebase/firestore@4.6.4": - version "4.6.4" - resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-4.6.4.tgz#f53fcfc3ecfeb844f2147a43382d013d21e64968" - integrity sha512-vk2MoH5HxYEhiNg1l+yBXq1Fkhue/11bFg4HdlTv6BJHcTnnAj2a+/afPpatcW4MOdYA3Tv+d5nGzWbbOC1SHw== +"@firebase/firestore@4.6.5": + version "4.6.5" + resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-4.6.5.tgz#21a8f60d7780c201a01bd50bc48c1e5af21256f8" + integrity sha512-0+Ascaht4qUzj4pCopMPWmoAujk8HKjwCpaNYOOjbYMZ65RVfZPsfZwwbWi/zWMXj6xvPsai5oBiErUUkrLwNw== dependencies: "@firebase/component" "0.6.8" "@firebase/logger" "0.4.2" @@ -2654,13 +2636,20 @@ resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz#323d72dd25103d0c4fbdce89dadf574a787b1f9b" integrity sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ== -"@noble/curves@1.4.2", "@noble/curves@^1.3.0", "@noble/curves@~1.4.0": +"@noble/curves@1.4.2", "@noble/curves@~1.4.0": version "1.4.2" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.2.tgz#40309198c76ed71bc6dbf7ba24e81ceb4d0d1fe9" integrity sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw== dependencies: "@noble/hashes" "1.4.0" +"@noble/curves@^1.3.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.5.0.tgz#7a9b9b507065d516e6dce275a1e31db8d2a100dd" + integrity sha512-J5EKamIHnKPyClwVrzmaf5wSdQXgdHcPZIZLu3bwnbeCx8/7NPK5q2ZBWF+5FvYGByjiQQsJYX6jfgB2wDPn3A== + dependencies: + "@noble/hashes" "1.4.0" + "@noble/hashes@1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.2.tgz#e9e035b9b166ca0af657a7848eb2718f0f22f183" @@ -3263,12 +3252,12 @@ tslib "^2.6.2" "@polkadot/ui-keyring@^3.6.5": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-3.7.1.tgz#2b9032353d459bb182c59629bdc613fa3289961b" - integrity sha512-ZO92nX5nSOPCrRoqvzqOS1CQl6nA67LtwUEkI7Oju56Tb2Dhu9eUsS6Y5xG7miLc5/fR6KqBWfTJsqpcUfFEiQ== + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-3.8.3.tgz#4532637090e4872f9c5f461c2c10563540cb1488" + integrity sha512-Dz0nMRjw6XfoY1jyZPK2MRvi6sBzKEz9lNVXBR16tcEeSsfszIGHrGjYdklmtrzvLjpxG7fnOAdlJ/yk+lYzcg== dependencies: "@polkadot/keyring" "^13.0.2" - "@polkadot/ui-settings" "3.7.1" + "@polkadot/ui-settings" "3.8.3" "@polkadot/util" "^13.0.2" "@polkadot/util-crypto" "^13.0.2" mkdirp "^3.0.1" @@ -3276,10 +3265,10 @@ store "^2.0.12" tslib "^2.6.2" -"@polkadot/ui-settings@3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-3.7.1.tgz#dd69d9455dec725687cd5e8473084c0329a28b58" - integrity sha512-0O+pGJH246AF93oIJiVS+FoCR1i2r7q+oLteGKzQYw9lTflCFbjgeRkqzR9ys8unrEFd63YfwGnB4ctkf1FzRg== +"@polkadot/ui-settings@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-3.8.3.tgz#5e2d97f5a4125f2f70ad8c1100fd6e94264b8059" + integrity sha512-GfPTngbgRqJ8CzEvCMkjgYctb+kuaYth4WRUEi/PMc+ph/GTDmuuE4P+c/nlibQAonstiEMu/F5h/w7sSFh7ag== dependencies: "@polkadot/networks" "^13.0.2" "@polkadot/util" "^13.0.2" @@ -3725,25 +3714,7 @@ blakejs "~1.2.1" ethers "~5.5.0" -"@reef-chain/util-lib@^2.5.10": - version "2.5.12" - resolved "https://registry.yarnpkg.com/@reef-chain/util-lib/-/util-lib-2.5.12.tgz#23d4007149806770cbfa5f7df0789921fa25c329" - integrity sha512-CDlhESSOwN6tU1AYW9SttpBOr0mi/vud8xkTNA4UiDOyULNA3BDc9wcetwSWa/MzBUaENm2b5x9kGREQg0c3vg== - dependencies: - "@metamask/providers" "^14.0.2" - "@polkadot/api" "^10.11.2" - "@polkadot/extension-inject" "^0.46.6" - "@polkadot/types" "^10.11.2" - "@reef-chain/evm-provider" "^2.0.2" - "@walletconnect/sign-client" "^2.12.2" - "@walletconnect/utils" "^2.12.2" - axios "^1.6.2" - bignumber.js "^9.1.2" - ethers "~5.5.4" - graphql "^16.8.1" - mqtt "^5.3.5" - -"@reef-chain/util-lib@^2.6.1": +"@reef-chain/util-lib@^2.5.10", "@reef-chain/util-lib@^2.6.1": version "2.6.1" resolved "https://registry.yarnpkg.com/@reef-chain/util-lib/-/util-lib-2.6.1.tgz#94c654fe03d0e37b766bc9f0ad95627430aa3ab9" integrity sha512-4tXZS5ZABvwCQQbR/EDNvOUf2ZO+DC/vfEivyvmabXtPAQUw4g9MHEbnQxZnx/tfyvcWh9DfxeeIQ0G19lvrkQ== @@ -3762,9 +3733,9 @@ mqtt "^5.3.5" "@rushstack/eslint-patch@^1.1.1": - version "1.10.3" - resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz#391d528054f758f81e53210f1a1eebcf1a8b1d20" - integrity sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg== + version "1.10.4" + resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz#427d5549943a9c6fce808e39ea64dbe60d4047f1" + integrity sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA== "@scure/base@1.1.1": version "1.1.1" @@ -3952,9 +3923,9 @@ integrity sha512-nKu8pDrE3LNCEgJjZe1iGXzaD6OSIDD4Xzz/yo4KO9mQ6LBvf49BVrt4qxBFGL6++NneLiWUZGoh+VSd4PyVIg== "@substrate/connect-known-chains@^1.1.1": - version "1.1.10" - resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.1.10.tgz#c05a85e422f22018b993748effdd1525835f1fca" - integrity sha512-HF9pMu8AsQBUR/K6txAYn1+v1vZ7/qH9U5uTonn0dNRtc8+33LSoZzHtH7TdZqi62OPoEm1vV0mvnWh79XLtcA== + version "1.2.2" + resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.2.2.tgz#fd0b290d9270d7bfc1e60cd9b6f1d39ecd9e11eb" + integrity sha512-gOGrXSWA2d/3kf8Yco00VlHZl48smzAGW5Z9MDxMht98hRpT2yEEN4N5QdoEKMI4ihDW8goXGzmp79D0hFPpuA== "@substrate/connect@0.8.8": version "0.8.8" @@ -4092,11 +4063,11 @@ integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== "@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0": - version "20.14.11" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.11.tgz#09b300423343460455043ddd4d0ded6ac579b74b" - integrity sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA== + version "22.1.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.1.0.tgz#6d6adc648b5e03f0e83c78dc788c2b037d0ad94b" + integrity sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw== dependencies: - undici-types "~5.26.4" + undici-types "~6.13.0" "@types/prettier@^2.1.5": version "2.7.3" @@ -4117,9 +4088,9 @@ integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== "@types/ws@^8.5.9": - version "8.5.11" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.11.tgz#90ad17b3df7719ce3e6bc32f83ff954d38656508" - integrity sha512-4+q7P5h3SpJxaBft0Dzpbr6lmMaqh0Jr2tbhJZ/luAwvD7ohSCniYkwz/pLxuT2h0EOa6QADgJj1Ko+TzRfZ+w== + version "8.5.12" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.12.tgz#619475fe98f35ccca2a2f6c137702d85ec247b7e" + integrity sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ== dependencies: "@types/node" "*" @@ -4742,16 +4713,6 @@ array.prototype.flatmap@^1.3.2: es-abstract "^1.22.1" es-shim-unscopables "^1.0.0" -array.prototype.toreversed@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz#b989a6bf35c4c5051e1dc0325151bf8088954eba" - integrity sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - array.prototype.tosorted@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz#fe954678ff53034e717ea3352a03f0b0b86f7ffc" @@ -4843,14 +4804,14 @@ aws-sign2@~0.7.0: integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== aws4@^1.8.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.13.0.tgz#d9b802e9bb9c248d7be5f7f5ef178dc3684e9dcc" - integrity sha512-3AungXC4I8kKsS9PuS4JH2nc+0bVY/mjgrephHTIi8fpEeGsTHBUJeosp0Wc1myYMElmD0B3Oc4XL/HVJ4PV2g== + version "1.13.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.13.1.tgz#bb5f8b8a20739f6ae1caeaf7eea2c7913df8048e" + integrity sha512-u5w79Rd7SU4JaIlA/zFqG+gOiuq25q5VLyZ8E+ijJeILuTxVzZgp2CaGw/UTw6pXYN9XMO9yiqj/nEHmhTG5CA== axios@^1.6.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" - integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== + version "1.7.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.3.tgz#a1125f2faf702bc8e8f2104ec3a76fab40257d85" + integrity sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw== dependencies: follow-redirects "^1.15.6" form-data "^4.0.0" @@ -4917,12 +4878,12 @@ babel-plugin-polyfill-corejs2@^0.4.10: semver "^6.3.1" babel-plugin-polyfill-corejs3@^0.10.1, babel-plugin-polyfill-corejs3@^0.10.4: - version "0.10.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz#789ac82405ad664c20476d0233b485281deb9c77" - integrity sha512-25J6I8NGfa5YkCDogHRID3fVCadIR8/pGl1/spvCkzb6lVn6SR3ojpx9nOn9iEBcUsjY24AmdKm5khcfKdylcg== + version "0.10.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz#2deda57caef50f59c525aeb4964d3b2f867710c7" + integrity sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.1" - core-js-compat "^3.36.1" + "@babel/helper-define-polyfill-provider" "^0.6.2" + core-js-compat "^3.38.0" babel-plugin-polyfill-regenerator@^0.6.1: version "0.6.2" @@ -5145,14 +5106,14 @@ browserify-sign@^4.0.0: readable-stream "^2.3.8" safe-buffer "^5.2.1" -browserslist@^4.20.2, browserslist@^4.23.0, browserslist@^4.23.1: - version "4.23.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" - integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== +browserslist@^4.20.2, browserslist@^4.23.1, browserslist@^4.23.3: + version "4.23.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" + integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== dependencies: - caniuse-lite "^1.0.30001640" - electron-to-chromium "^1.4.820" - node-releases "^2.0.14" + caniuse-lite "^1.0.30001646" + electron-to-chromium "^1.5.4" + node-releases "^2.0.18" update-browserslist-db "^1.1.0" bser@2.1.1: @@ -5227,10 +5188,10 @@ camelcase@^6.2.0, camelcase@^6.2.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001640: - version "1.0.30001642" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" - integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== +caniuse-lite@^1.0.30001646: + version "1.0.30001651" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz#52de59529e8b02b1aedcaaf5c05d9e23c0c28138" + integrity sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg== caseless@~0.12.0: version "0.12.0" @@ -5547,16 +5508,16 @@ convert-source-map@^2.0.0: integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== cookie-es@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-1.1.0.tgz#68f8d9f48aeb5a534f3896f80e792760d3d20def" - integrity sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw== + version "1.2.2" + resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-1.2.2.tgz#18ceef9eb513cac1cb6c14bcbf8bdb2679b34821" + integrity sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg== -core-js-compat@^3.36.1, core-js-compat@^3.37.1: - version "3.37.1" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee" - integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg== +core-js-compat@^3.37.1, core-js-compat@^3.38.0: + version "3.38.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.38.0.tgz#d93393b1aa346b6ee683377b0c31172ccfe607aa" + integrity sha512-75LAicdLa4OJVwFxFbQR3NdnZjNgX6ILpVcVzcC4T2smerB5lELMrJQQQoWV6TiuC/vlaFqgU2tKQx9w5s0e0A== dependencies: - browserslist "^4.23.0" + browserslist "^4.23.3" core-util-is@1.0.2: version "1.0.2" @@ -5735,9 +5696,9 @@ data-view-byte-offset@^1.0.0: is-data-view "^1.0.1" debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: - version "4.3.5" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== dependencies: ms "2.1.2" @@ -6044,10 +6005,10 @@ ed2curve@^0.3.0: dependencies: tweetnacl "1.x.x" -electron-to-chromium@^1.4.820: - version "1.4.829" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.829.tgz#3034a865b5eac9064c9db8b38ba99b60a446bb73" - integrity sha512-5qp1N2POAfW0u1qGAxXEtz6P7bO1m6gpZr5hdf5ve6lxpLM7MpiM4jIPz7xcrNlClQMafbyUDDWjlIQZ1Mw0Rw== +electron-to-chromium@^1.5.4: + version "1.5.5" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.5.tgz#03bfdf422bdd2c05ee2657efedde21264a1a566b" + integrity sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA== elliptic@6.5.4: version "6.5.4" @@ -6103,9 +6064,9 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: once "^1.4.0" enhanced-resolve@^5.8.3: - version "5.17.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.0.tgz#d037603789dd9555b89aaec7eb78845c49089bc5" - integrity sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA== + version "5.17.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15" + integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -6515,9 +6476,9 @@ eslint-plugin-prettier@^4.0.0: prettier-linter-helpers "^1.0.0" eslint-plugin-promise@^6.0.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.4.0.tgz#54926d53c79541efe9cea6ac1d823a58bbed1106" - integrity sha512-/KWWRaD3fGkVCZsdR0RU53PSthFmoHVhZl+y9+6DqeDLSikLdlUVpVEAmI6iCRR5QyOjBYBqHZV/bdv4DJ4Gtw== + version "6.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.6.0.tgz#acd3fd7d55cead7a10f92cf698f36c0aafcd717a" + integrity sha512-57Zzfw8G6+Gq7axm2Pdo3gW/Rx3h9Yywgn61uE/3elTCOePEHVrn2i5CdfBwA1BLK0Q0WqctICIUSqXZW/VprQ== eslint-plugin-react-hooks@^4.3.0: version "4.6.2" @@ -6525,14 +6486,13 @@ eslint-plugin-react-hooks@^4.3.0: integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ== eslint-plugin-react@^7.29.4: - version "7.34.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.34.4.tgz#1f0dc313a0937db7ce15fd1f6c3d77e70f3e02fb" - integrity sha512-Np+jo9bUwJNxCsT12pXtrGhJgT3T44T1sHhn1Ssr42XFn8TES0267wPGo5nNrMHi8qkyimDAX2BUmkf9pSaVzA== + version "7.35.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.35.0.tgz#00b1e4559896710e58af6358898f2ff917ea4c41" + integrity sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA== dependencies: array-includes "^3.1.8" array.prototype.findlast "^1.2.5" array.prototype.flatmap "^1.3.2" - array.prototype.toreversed "^1.1.2" array.prototype.tosorted "^1.1.4" doctrine "^2.1.0" es-iterator-helpers "^1.0.19" @@ -7087,23 +7047,23 @@ find-up@^5.0.0: path-exists "^4.0.0" firebase@^10.11.0: - version "10.12.3" - resolved "https://registry.yarnpkg.com/firebase/-/firebase-10.12.3.tgz#b94510728f603a15367b95e12a00b366700ba7f8" - integrity sha512-dO2cQ8eP6RnM2wcGzbxnoljjjMBf1suUrHYFftjSpbPn/8bEx959cwTRDHqBx3MwSzNsg6zZV/wiWydJPhUKgw== - dependencies: - "@firebase/analytics" "0.10.5" - "@firebase/analytics-compat" "0.2.11" - "@firebase/app" "0.10.6" - "@firebase/app-check" "0.8.5" - "@firebase/app-check-compat" "0.3.12" - "@firebase/app-compat" "0.2.36" + version "10.12.5" + resolved "https://registry.yarnpkg.com/firebase/-/firebase-10.12.5.tgz#381eccea39002c46d73883b7b0cfbef17d531a76" + integrity sha512-J0yL3yh12CfFprTkSOQ9HqBugERyqvWwOuOoo1j1QHmYe9cYLKnBmtNCvGIYInDcsVUnJoRXCM+hxbGf48oVhg== + dependencies: + "@firebase/analytics" "0.10.7" + "@firebase/analytics-compat" "0.2.13" + "@firebase/app" "0.10.8" + "@firebase/app-check" "0.8.7" + "@firebase/app-check-compat" "0.3.14" + "@firebase/app-compat" "0.2.38" "@firebase/app-types" "0.9.2" - "@firebase/auth" "1.7.5" - "@firebase/auth-compat" "0.5.10" - "@firebase/database" "1.0.6" - "@firebase/database-compat" "1.0.6" - "@firebase/firestore" "4.6.4" - "@firebase/firestore-compat" "0.3.33" + "@firebase/auth" "1.7.6" + "@firebase/auth-compat" "0.5.11" + "@firebase/database" "1.0.7" + "@firebase/database-compat" "1.0.7" + "@firebase/firestore" "4.6.5" + "@firebase/firestore-compat" "0.3.34" "@firebase/functions" "0.11.6" "@firebase/functions-compat" "0.3.12" "@firebase/installations" "0.6.8" @@ -7227,7 +7187,7 @@ function-bind@^1.1.2: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -function.prototype.name@^1.1.5, function.prototype.name@^1.1.6: +function.prototype.name@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== @@ -7796,9 +7756,9 @@ import-lazy@^2.1.0: integrity sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A== import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + version "3.2.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" + integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== dependencies: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" @@ -9358,9 +9318,9 @@ mqtt-packet@^9.0.0: process-nextick-args "^2.0.1" mqtt@^5.2.0, mqtt@^5.3.5: - version "5.8.0" - resolved "https://registry.yarnpkg.com/mqtt/-/mqtt-5.8.0.tgz#e246b1d8d6f1faaa3b9bf709e88a1bc631f24c6a" - integrity sha512-/+H04mv6goy6K5gHMNH3uS0icBzXapS+4uUf4yZyQWXi72APPZNb81bQhvkm99poEQettXVT8XETB0mPxl5Wjg== + version "5.9.1" + resolved "https://registry.yarnpkg.com/mqtt/-/mqtt-5.9.1.tgz#422ded61d432b995d931ae4d9c470684f33e3289" + integrity sha512-FMENfSUMfCSUCnkuUVAL4U01795SUEfrX0NZ53HNr1r2VNpwKhR5Au9viq9WCFGtgrDAmsll4fkloqFCFgStYA== dependencies: "@types/readable-stream" "^4.0.5" "@types/ws" "^8.5.9" @@ -9485,10 +9445,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.14: - version "2.0.17" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.17.tgz#d74bc4fec38d839eec5db2a3c9c963d4f33cb366" - integrity sha512-Ww6ZlOiEQfPfXM45v17oabk77Z7mg5bOt7AjDyzy7RjK9OrLrLC8dyZQoAPEOtFX9SaNf1Tdvr5gRJWdTJj7GA== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== node-source-walk@^4.0.0, node-source-walk@^4.2.0, node-source-walk@^4.2.2: version "4.3.0" @@ -9989,9 +9949,9 @@ postcss@^7.0.36: source-map "^0.6.1" postcss@^8.1.7, postcss@^8.4.6: - version "8.4.39" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.39.tgz#aa3c94998b61d3a9c259efa51db4b392e1bde0e3" - integrity sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw== + version "8.4.41" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.41.tgz#d6104d3ba272d882fe18fc07d15dc2da62fa2681" + integrity sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ== dependencies: nanoid "^3.3.7" picocolors "^1.0.1" @@ -10442,9 +10402,9 @@ requirejs-config-file@^4.0.0: stringify-object "^3.2.1" requirejs@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.6.tgz#e5093d9601c2829251258c0b9445d4d19fa9e7c9" - integrity sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg== + version "2.3.7" + resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.7.tgz#0b22032e51a967900e0ae9f32762c23a87036bd0" + integrity sha512-DouTG8T1WanGok6Qjg2SXuCMzszOo0eHeH9hDZ5Y4x8Je+9JB38HdTLT4/VA8OaUhBa0JPVHJ0pyBkM1z+pDsw== requires-port@^1.0.0: version "1.0.0" @@ -11378,9 +11338,9 @@ ufo@^1.4.0, ufo@^1.5.3: integrity sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ== uglify-js@^3.1.4: - version "3.19.0" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.19.0.tgz#6d45f1cad2c54117fa2fabd87fc2713a83e3bf7b" - integrity sha512-wNKHUY2hYYkf6oSFfhwwiHo4WCHzHmzcXsqXYTN9ja3iApYIFbb2U6ics9hBcYLHcYGQoAlwnZlTrf3oF+BL/Q== + version "3.19.1" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.19.1.tgz#2d5df6a0872c43da43187968308d7741d44b8056" + integrity sha512-y/2wiW+ceTYR2TSSptAhfnEtpLaQ4Ups5zrjB2d3kuVxHj16j/QJwPl5PvuGy9uARb39J0+iKxcRPvtpsx4A4A== uint8arrays@3.1.0: version "3.1.0" @@ -11411,10 +11371,10 @@ uncrypto@^0.1.3: resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b" integrity sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.13.0.tgz#e3e79220ab8c81ed1496b5812471afd7cf075ea5" + integrity sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg== undici@5.28.4: version "5.28.4" @@ -11756,12 +11716,12 @@ which-boxed-primitive@^1.0.2: is-symbol "^1.0.3" which-builtin-type@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.1.3.tgz#b1b8443707cc58b6e9bf98d32110ff0c2cbd029b" - integrity sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw== + version "1.1.4" + resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.1.4.tgz#592796260602fc3514a1b5ee7fa29319b72380c3" + integrity sha512-bppkmBSsHFmIMSl8BO9TbsyzsvGjVoppt8xUiGzwiu/bhDCGxnpOKCxgqj6GuyHE0mINMDecBFPlOm2hzY084w== dependencies: - function.prototype.name "^1.1.5" - has-tostringtag "^1.0.0" + function.prototype.name "^1.1.6" + has-tostringtag "^1.0.2" is-async-function "^2.0.0" is-date-object "^1.0.5" is-finalizationregistry "^1.0.2" @@ -11770,10 +11730,10 @@ which-builtin-type@^1.1.3: is-weakref "^1.0.2" isarray "^2.0.5" which-boxed-primitive "^1.0.2" - which-collection "^1.0.1" - which-typed-array "^1.1.9" + which-collection "^1.0.2" + which-typed-array "^1.1.15" -which-collection@^1.0.1: +which-collection@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.2.tgz#627ef76243920a107e7ce8e96191debe4b16c2a0" integrity sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw== @@ -11783,7 +11743,7 @@ which-collection@^1.0.1: is-weakmap "^2.0.2" is-weakset "^2.0.3" -which-typed-array@^1.1.14, which-typed-array@^1.1.15, which-typed-array@^1.1.2, which-typed-array@^1.1.9: +which-typed-array@^1.1.14, which-typed-array@^1.1.15, which-typed-array@^1.1.2: version "1.1.15" resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d" integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA== From a7274e3b3bd8fd2a9a7d398588b4ac00d0daaad1 Mon Sep 17 00:00:00 2001 From: matjazonline Date: Thu, 8 Aug 2024 14:36:13 +0200 Subject: [PATCH 5/5] build js --- lib/js/packages/reef-mobile-js/dist/index.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/js/packages/reef-mobile-js/dist/index.js b/lib/js/packages/reef-mobile-js/dist/index.js index a433f508..521d540f 100644 --- a/lib/js/packages/reef-mobile-js/dist/index.js +++ b/lib/js/packages/reef-mobile-js/dist/index.js @@ -42756,7 +42756,7 @@ ${formatDisplay(all, fmt)}`); exports2.skipWhile = void 0; var lift_1 = require_lift(); var OperatorSubscriber_1 = require_OperatorSubscriber(); - function skipWhile(predicate) { + function skipWhile2(predicate) { return lift_1.operate(function(source, subscriber) { var taking = false; var index = 0; @@ -42765,7 +42765,7 @@ ${formatDisplay(all, fmt)}`); })); }); } - exports2.skipWhile = skipWhile; + exports2.skipWhile = skipWhile2; } }); @@ -128376,6 +128376,17 @@ ${formatDisplay(all, fmt)}`); }); } + // ../../node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js + function skipWhile(predicate) { + return operate(function(source, subscriber) { + var taking = false; + var index = 0; + source.subscribe(createOperatorSubscriber(subscriber, function(value) { + return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); + })); + }); + } + // ../../node_modules/rxjs/dist/esm5/internal/operators/switchMap.js function switchMap(project, resultSelector) { return operate(function(source, subscriber) { @@ -235049,7 +235060,9 @@ query FETCH_TX_INFO { var fetchAllPools = async (limit, offset, search, signerAddress) => { try { const selectedNw = await firstValueFrom(z7e.selectedNetwork$); - let reefPrice = await firstValueFrom(v7e.reefPrice$); + let { data: reefPrice } = await firstValueFrom(v7e.reefPrice$.pipe(skipWhile( + (value) => !value.hasStatus(z7e.FeedbackStatusCode.COMPLETE_DATA) || value.getStatusList().length != 1 + ))); let tokenPrices = { "0x0000000000000000000000000000000001000000": reefPrice };